:root {
  --bg: #3f4aa0;
  --bg-dark: #323b86;
  --bg-light: #5b66c2;
  --header-offset: 84px;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.2);
  --accent: #c5cbea;
  --font-heading: "Unbounded", sans-serif;
  --font-body: "Bounded", "Manrope", sans-serif;
  --bg-gradient:
    radial-gradient(500px 500px at 12% 12%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 60%),
    radial-gradient(420px 420px at 85% 18%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 60%),
    radial-gradient(560px 560px at 78% 82%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 65%),
    linear-gradient(180deg, var(--bg-light) 0%, var(--bg) 58%, var(--bg-dark) 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg);
  overscroll-behavior-y: none;
  height: 100%;
  min-height: 100%;
  background: var(--bg-gradient);
  background-attachment: fixed;
  overflow-x: hidden;
}

html.page--offer {
  background: #ffffff;
}

body {
  min-height: 100svh;
  height: 100%;
  font-family: var(--font-body);
  color: var(--text);
  background: transparent;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg-gradient);
  background-size: 140% 140%;
  background-position: 0% 0%;
  z-index: -1;
  pointer-events: none;
  animation: gradient-drift 18s ease-in-out infinite alternate;
}

.page--offer {
  color: #111111;
  background: #ffffff;
}

.page--offer::before {
  display: none;
}

.page--offer .glow {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 65%);
  filter: blur(10px);
  opacity: 0.6;
  animation: glow-run 12s ease-in-out infinite;
  pointer-events: none;
}

.glow--one {
  top: -120px;
  left: -80px;
}

.glow--two {
  top: 20%;
  right: -140px;
  width: 520px;
  height: 520px;
  animation-delay: -6s;
  animation-duration: 16s;
}

.glow--three {
  bottom: -160px;
  left: 30%;
  width: 460px;
  height: 460px;
  animation-delay: -12s;
  animation-duration: 18s;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100vw;
  height: var(--header-offset);
  padding: 0 8vw;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  backdrop-filter: blur(10px);
  background: rgba(63, 74, 160, 0.18);
}

.brand {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.brand--dark {
  color: #111111;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

main {
  padding: calc(40px + var(--header-offset)) 8vw 48px;
  display: flex;
  flex-direction: column;
  gap: 90px;
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  margin-top: 40px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.eyebrow--inline {
  margin-top: 18px;
  margin-bottom: 0;
  letter-spacing: 0.18em;
}

.title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 96px);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
}

.gradient-text {
  background: linear-gradient(90deg, #ffffff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 36px;
}

.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn--primary {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 24px rgba(16, 19, 55, 0.3);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.page--offer .btn {
  color: #111111;
}

.page--offer .btn--primary {
  background: #64ac58;
  border-color: #5aa04f;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(50, 90, 40, 0.25);
}

.page--offer .btn--ghost {
  background: #ffffff;
  border-color: rgba(17, 17, 17, 0.2);
}

.page--offer .btn:hover {
  box-shadow: 0 14px 26px rgba(17, 17, 17, 0.15);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 30px rgba(16, 19, 55, 0.35);
}

.page--login .btn--primary {
  background: #3f4aa0;
  border-color: #3f4aa0;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(26, 32, 86, 0.28);
}

.page--login .btn--primary:hover {
  box-shadow: 0 18px 34px rgba(26, 32, 86, 0.36);
}

.page--login .btn {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: none;
}

.page--login .btn--telegram {
  background: #0088cc;
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(0, 136, 204, 0.3);
}

.page--login .btn--telegram:hover {
  box-shadow: 0 18px 34px rgba(0, 136, 204, 0.38);
}

.btn--telegram {
  background: #0088cc;
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.btn--telegram:hover {
  box-shadow: 0 18px 30px rgba(0, 136, 204, 0.35);
}

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}

.meta__value {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
}

.meta__label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.hero__panel {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(14, 16, 45, 0.35);
}

.panel__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.panel__text {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.panel__list {
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.section {
  display: grid;
  gap: 32px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 22px;
  line-height: 1.6;
  box-shadow: 0 16px 32px rgba(12, 15, 38, 0.3);
}

.card--mobile {
  padding: 30px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.1);
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
}

.split {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 20px;
  color: var(--muted);
}

.list li::before {
  content: "•";
  margin-right: 10px;
  color: var(--accent);
}

.note {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text);
}

.protocol-grid {
  align-items: stretch;
}

.stat-card {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  padding: 26px;
  text-align: center;
}

.stat-card__title {
  font-size: 14px;
  color: var(--muted);
}

.stat-card__value {
  font-family: var(--font-heading);
  font-size: 46px;
  margin: 12px 0 8px;
}

.stat-card__foot {
  font-size: 12px;
  color: var(--muted);
}

.grid--plans {
  align-items: stretch;
}

.card--plan {
  display: grid;
  gap: 16px;
}

.card--plan .btn {
  align-self: center;
  justify-content: center;
  text-align: center;
}

.highlight {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.12);
}

.highlight--big {
  transform: translateY(-16px) scale(1.02);
  box-shadow: 0 24px 48px rgba(12, 15, 38, 0.38);
}

.plan__name {
  font-family: var(--font-heading);
  font-size: 20px;
}

.plan__price {
  font-size: 26px;
  font-weight: 600;
}

.footer {
  padding: 32px 8vw 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: auto;
}

.footer__note {
  color: var(--muted);
  margin-top: 10px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  justify-content: center;
}

.footer__center {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  margin: 0 auto;
}

.footer__contact {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.footer__contact a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__partner {
  display: flex;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.footer__partner-accent {
  color: #64ac58;
}

@keyframes glow-run {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  20% {
    transform: translate(120px, -40px) scale(1.05);
  }
  45% {
    transform: translate(200px, 30px) scale(0.98);
  }
  70% {
    transform: translate(110px, 90px) scale(1.02);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

.offer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100vw;
  height: var(--header-offset);
  padding: 0 8vw;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
}

.offer-back {
  font-size: 14px;
  color: rgba(17, 17, 17, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.offer {
  padding: calc(48px + var(--header-offset)) 8vw 80px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 36px;
}

.offer__hero {
  display: grid;
  gap: 16px;
}

.offer__meta {
  color: rgba(17, 17, 17, 0.6);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.offer__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5.6vw, 56px);
  letter-spacing: 0.06em;
}

.offer__lead {
  color: rgba(17, 17, 17, 0.7);
  line-height: 1.7;
  font-size: 17px;
}

.offer__section {
  display: grid;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.offer__section h2 {
  font-family: var(--font-heading);
  font-size: 22px;
}

.offer__section h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.7);
  margin-top: 12px;
}

.offer__section p {
  color: rgba(17, 17, 17, 0.7);
  line-height: 1.7;
}

.offer__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(17, 17, 17, 0.7);
  line-height: 1.7;
}

.offer__final {
  background: rgba(17, 17, 17, 0.04);
  border-radius: 18px;
  padding: 18px 20px;
}

.offer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 10px 0 12px;
}

.offer__contact {
  font-size: 15px;
  color: rgba(17, 17, 17, 0.75);
}

.offer__contact a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eyebrow--dark {
  color: rgba(17, 17, 17, 0.6);
}

.page--offer .footer {
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.page--offer .footer__note,
.page--offer .footer__links,
.page--offer .footer__contact {
  color: rgba(17, 17, 17, 0.65);
}

.page--offer .footer__partner {
  color: #111111;
}

.page--login {
  color: #111111;
  background: #f3f5ff;
}

html.page--login {
  background: #f3f5ff;
}

body.page--login {
  background: #f3f5ff;
}

body.page--login::before {
  display: none;
}

.login {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.login-visual {
  position: relative;
  display: flex;
  align-items: center;
  padding: 72px 8vw;
  overflow: hidden;
  color: #ffffff;
  background: var(--bg-gradient);
  background-size: 140% 140%;
  background-position: 10% 10%;
  animation: gradient-drift 18s ease-in-out infinite alternate;
}

.login-visual__content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  display: grid;
  gap: 16px;
}

.login-visual__title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 0.08em;
}

.login-visual__text {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.login-visual__meta {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.login-glows {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.85;
}

.login-visual .glow {
  opacity: 0.7;
  filter: blur(18px);
}

.login-panel {
  background: #fdfdff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: flex-start;
  box-shadow: -20px 0 50px rgba(32, 38, 90, 0.08);
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.login-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  padding: 32px;
  display: grid;
  gap: 16px;
  box-shadow: 0 18px 40px rgba(22, 26, 60, 0.12);
}

.login-title {
  font-family: var(--font-heading);
  font-size: 28px;
}

.login-subtitle {
  color: rgba(17, 17, 17, 0.7);
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.6);
}

.field input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-body);
  background: rgba(17, 17, 17, 0.04);
  color: #111111;
}

.field input:focus {
  outline: none;
  border-color: rgba(63, 74, 160, 0.6);
  box-shadow: 0 0 0 3px rgba(63, 74, 160, 0.15);
}

.btn--login {
  width: 100%;
  justify-content: center;
}

.login-alert {
  background: rgba(255, 195, 105, 0.18);
  border: 1px solid rgba(230, 150, 40, 0.35);
  color: #8a4f12;
  border-radius: 14px;
  padding: 0 14px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, max-height 0.25s ease, padding 0.25s ease;
}

.login-alert.is-visible {
  padding: 12px 14px;
  max-height: 120px;
  opacity: 1;
}

.login-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.btn--login-ghost {
  width: 100%;
  justify-content: center;
}

.login-hint {
  font-size: 14px;
  color: rgba(17, 17, 17, 0.65);
  line-height: 1.5;
}

@keyframes gradient-drift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 55% 35%;
  }
  100% {
    background-position: 100% 70%;
  }
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }

  .hero {
    margin-top: 20px;
  }

  .footer__links {
    justify-content: center;
  }

  .login {
    grid-template-columns: 1fr;
  }

  .login-visual {
    order: 2;
    min-height: 38vh;
    padding: 56px 8vw;
  }

  .login-panel {
    order: 1;
    padding: 36px 8vw 48px;
    box-shadow: none;
  }

  .login-header {
    margin-bottom: 8px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-offset: 52px;
  }

  .nav {
    padding: 0 6vw;
  }

  main {
    padding: calc(16px + var(--header-offset)) 6vw 60px;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand {
    font-size: 18px;
  }

  .nav .btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .cta .btn,
  .card--plan .btn {
    width: 100%;
    justify-content: center;
  }

  .card--mobile {
    grid-column: span 1;
  }

  .hero {
    margin-top: 0;
  }

  .offer-header {
    padding: 0 6vw;
    gap: 12px;
    flex-wrap: wrap;
  }

  .offer {
    padding: calc(32px + var(--header-offset)) 6vw 56px;
    gap: 28px;
  }

  .offer__title {
    font-size: clamp(26px, 7.5vw, 40px);
    letter-spacing: 0.04em;
  }

  .offer__section h2 {
    font-size: 20px;
  }

  .offer__section h3 {
    font-size: 14px;
  }

  .offer__section p,
  .offer__list {
    font-size: 15px;
  }

  .footer {
    gap: 20px;
  }

  .footer__links {
    justify-content: flex-start;
  }

  .login {
    padding: 0;
  }

  .login-visual {
    padding: 48px 6vw;
  }

  .login-visual__meta {
    letter-spacing: 0.12em;
    font-size: 12px;
  }

  .login-panel {
    padding: 28px 6vw 40px;
  }

  .login-card {
    padding: 24px;
  }

  .login-title {
    font-size: 24px;
  }
}
