/* CoachHelper — рекламный лендинг.
   Дизайн-система утверждена Денисом 25.11: палитра ByZagid,
   функциональный минимализм, aurora-градиенты, Manrope × Playfair. */

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/Manrope-var.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/PlayfairDisplay-500-italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #101820;
  --deep: #354b60;
  --steel: #7394ac;
  --mist: #b8d0de;
  --paper: #f0f5f7;
  --radius: 24px;
  --shadow: 0 10px 30px -18px rgba(53, 75, 96, .35);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Страховка от горизонтального скролла на мобильных: декоративные
   элементы (плавающие карточки, 3D-наклон мокапа) не должны её давать */
body { overflow-x: clip; }

a, button, summary, label { -webkit-tap-highlight-color: transparent; }

img, video { max-width: 100%; }

/* Скролл к секциям не прячет заголовок под липкой шапкой */
section[id] { scroll-margin-top: 84px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  /* Единый тёмный градиент на весь лендинг (референс ByZagid),
     сквозной при скролле; белые карточки и белый текст поверх,
     синие — акцентные вставки. */
  background:
    radial-gradient(1000px 750px at -12% 12%, rgba(115, 148, 172, .3), transparent 55%),
    radial-gradient(1100px 750px at 112% 55%, rgba(53, 75, 96, .38), transparent 55%),
    radial-gradient(950px 650px at 50% 102%, rgba(157, 188, 212, .22), transparent 60%),
    linear-gradient(180deg, #16222e 0%, #101820 40%, #121d27 100%);
  background-attachment: fixed;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap--narrow { max-width: 820px; }
.wrap--wide { max-width: 1400px; }

/* ── Кнопки ─────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter .12s ease, background .12s ease;
}
.btn--primary {
  /* Перламутровая кнопка (референс Дениса 26.11): пастельный радужный
     градиент вместо тёмной заливки, тёмный текст. */
  color: var(--ink);
  background:
    linear-gradient(100deg, #ffe3ec 0%, #ece9ff 26%, #cfe8ff 52%,
                    #d4f4e6 78%, #fff3d9 100%);
  box-shadow: 0 6px 16px -8px rgba(53, 75, 96, .55),
              inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.btn--primary:hover { filter: brightness(1.04) saturate(1.1); }
.btn--ghost {
  color: var(--paper);
  background: rgba(240, 245, 247, .06);
  border: 1.5px solid rgba(184, 208, 222, .6);
}
.btn--ghost:hover { background: rgba(240, 245, 247, .14); }
.btn--light {
  color: var(--ink);
  background: var(--paper);
}
.btn--light:hover { filter: brightness(1.05); }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--wide { width: 100%; }

/* ── Шапка ─────────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 24, 32, .72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 208, 222, .22);
}
.top__in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  background:
    radial-gradient(120px 60px at 15% 0%, rgba(184, 208, 222, .5), transparent 62%),
    radial-gradient(100px 55px at 95% 110%, rgba(115, 148, 172, .4), transparent 62%),
    linear-gradient(158deg, #1a2836 0%, #101820 78%);
}
.brand__name {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--paper);
}
.brand__name em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--mist);
}
.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav a {
  color: var(--mist);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}
.nav a:hover { color: var(--paper); }
.top__cta { display: flex; gap: 10px; }
.top__cta .btn { padding: 9px 18px; font-size: 14px; }

/* ── Hero ─────────────────────────────── */

.hero {
  /* Градиент 1:1 с референсом Дениса (ByZagid): тёмно-синяя база,
     большое мягкое свечение стального в левом нижнем углу. */
  background:
    radial-gradient(760px 620px at -8% 108%, rgba(157, 188, 212, .55), transparent 58%),
    radial-gradient(1100px 800px at -15% 115%, rgba(115, 148, 172, .45), transparent 62%),
    radial-gradient(900px 500px at 95% -20%, rgba(53, 75, 96, .5), transparent 60%),
    /* подъём к свечению .how в правом верхнем углу — без шва */
    radial-gradient(1550px 950px at 108% 130%, rgba(53, 75, 96, .9), transparent 66%),
    /* финальный стоп — в цвет начала .how: без шва между секциями */
    linear-gradient(180deg, #16222e 0%, #101820 45%, #182634 100%);
  padding: 84px 0 96px;
}
.hero__in {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(240, 245, 247, .07);
  border: 1.5px solid rgba(184, 208, 222, .55);
  color: var(--mist);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 24px;
}
/* сгенерированный баннер-бейдж: подпись выше кнопок в hero.
   Бейджу задана определённая ширина: иначе циклический % у картинки
   раздувает min-content hero и распирает мобильную вёрстку */
.badge:has(.badge__img) {
  display: block;
  width: min(470px, 100%);
  padding: 0;
  background: none;
  border: none;
}
.badge__img {
  display: block;
  width: 100%;
  height: auto;
}
h1 {
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 800;
  margin-bottom: 22px;
  color: var(--paper);
}
h1 .accent {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}
.lead {
  font-size: 18px;
  color: var(--mist);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Мокап-карточка в hero: 3D-наклон */
.hero__art { position: relative; perspective: 1200px; }
.mock {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  transform: rotateY(-14deg) rotateX(6deg);
  transform-style: preserve-3d;
}
.mock__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.mock__title { font-weight: 800; font-size: 14.5px; color: var(--ink); }
.mock__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--steel);
}
.mock__label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--steel);
  margin: 12px 0 8px;
}
.lesson {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  margin-bottom: 8px;
}
.lesson b { font-weight: 800; }
.lesson--deep {
  color: var(--paper);
  background: linear-gradient(165deg, #41607d 0%, #354b60 55%, #2b3e50 100%);
}
.lesson--soft { background: var(--paper); color: var(--ink); }
.slot {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--mist);
  color: var(--steel);
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 8px;
}
.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 18px;
  box-shadow: 0 18px 40px -16px rgba(16, 24, 32, .5);
  padding: 12px 16px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--deep);
}
.float b { color: var(--ink); font-size: 13.5px; }
.float--pay { top: -22px; right: -14px; transform: translateZ(60px); }
.float--remind { bottom: -26px; left: -18px; transform: translateZ(90px); }
.float__ico {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: var(--paper);
  color: var(--deep);
  flex-shrink: 0;
}
.float__ico--dark {
  background:
    radial-gradient(60px 34px at 15% 0%, rgba(184, 208, 222, .5), transparent 62%),
    linear-gradient(158deg, #1a2836 0%, #101820 78%);
  color: var(--paper);
}

/* ── Цифры (светлая секция с aurora-свечением) ────── */

.stats {
  background:
    radial-gradient(1500px 950px at 88% -10%, rgba(184, 208, 222, 1), transparent 66%),
    radial-gradient(1350px 900px at -10% 110%, rgba(115, 148, 172, .94), transparent 68%),
    radial-gradient(1000px 650px at 50% 50%, rgba(206, 224, 236, .45), transparent 66%),
    linear-gradient(180deg, #f9fcfe 0%, #dce8f0 100%);
  padding: 88px 0 80px;
}
.stats__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat__n {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 92px;
  line-height: 1;
  letter-spacing: -.01em;
  background: linear-gradient(160deg, #7394ac 0%, #354b60 60%, #101820 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__t {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--steel);
}

/* ── Секции ─────────────────────────────── */

section { padding: 88px 0; }
.h2 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 50px;
  letter-spacing: 0;
  text-align: center;
  margin-bottom: 12px;
  color: var(--ink);
}
.sub {
  text-align: center;
  color: var(--steel);
  font-size: 16.5px;
  margin-bottom: 56px;
}

/* Чередование плоскостей: тёмные секции — белый заголовок */
.how .h2, .pricing .h2 { color: var(--paper); }
.how .sub, .pricing .sub { color: var(--mist); }

/* Как работает — тёмная секция со стальным свечением (референс ByZagid) */
.how {
  background:
    /* продолжение свечения hero из левого нижнего угла — без шва */
    radial-gradient(760px 620px at -8% -8%, rgba(157, 188, 212, .55), transparent 58%),
    radial-gradient(1100px 800px at -15% -15%, rgba(115, 148, 172, .45), transparent 62%),
    radial-gradient(1450px 1000px at -10% 110%, rgba(157, 188, 212, 1), transparent 64%),
    radial-gradient(1550px 950px at 108% -30%, rgba(53, 75, 96, .9), transparent 66%),
    radial-gradient(900px 700px at 50% 50%, rgba(115, 148, 172, .45), transparent 67%),
    linear-gradient(180deg, #182634 0%, #0e161e 70%);
}
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: s;
}
.step {
  background: #fff;
  border: 1px solid rgba(184, 208, 222, .45);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px -22px rgba(16, 24, 32, .22);
  padding: 28px 24px;
}
.step__n {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 14px;
  color: var(--paper);
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 18px;
  background:
    radial-gradient(70px 40px at 15% 0%, rgba(184, 208, 222, .5), transparent 62%),
    linear-gradient(158deg, #3e5a75 0%, #253545 100%);
}
.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 12px; min-height: 3.1em; }
.step__video {
  display: block;
  width: 100%;
  border-radius: 14px;
  margin-bottom: 12px;
  background: var(--paper);
}
.step p { font-size: 14.5px; color: var(--deep); }

/* Возможности — светлая секция */
.features {
  background:
    radial-gradient(1550px 1000px at -10% -10%, rgba(184, 208, 222, 1), transparent 66%),
    radial-gradient(1400px 950px at 110% 110%, rgba(115, 148, 172, .92), transparent 68%),
    linear-gradient(180deg, #f9fcfe 0%, #dbe7ef 100%);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tile {
  background: #fff;
  border: 1px solid rgba(184, 208, 222, .45);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px -20px rgba(16, 24, 32, .25);
  padding: 30px 26px;
}
.tile__ico {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  font-size: 19px;
  color: var(--deep);
  background: var(--paper);
  margin-bottom: 18px;
}
.tile h3 { font-size: 17.5px; font-weight: 800; margin-bottom: 8px; }
.tile p { font-size: 14.5px; color: var(--deep); }

/* Тарифы — тёмная секция, белые карточки */
.pricing {
  background:
    radial-gradient(1450px 1000px at 110% 110%, rgba(157, 188, 212, 1), transparent 64%),
    radial-gradient(1550px 950px at -10% -10%, rgba(53, 75, 96, 1), transparent 66%),
    radial-gradient(900px 700px at 50% 50%, rgba(115, 148, 172, .4), transparent 67%),
    linear-gradient(180deg, #0e161e 0%, #182634 100%);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: #fff;
  border: 1.5px solid rgba(184, 208, 222, .6);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px -22px rgba(16, 24, 32, .22);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.plan .btn--ghost {
  color: var(--deep);
  background: rgba(53, 75, 96, .05);
  border-color: var(--mist);
}
.plan .btn--ghost:hover { background: rgba(53, 75, 96, .1); }
.plan--hot {
  border: none;
  box-shadow: 0 18px 44px -20px rgba(53, 75, 96, .45);
  background:
    radial-gradient(120% 90% at 90% -10%, rgba(184, 208, 222, .35), transparent 60%),
    radial-gradient(100% 80% at 0% 110%, rgba(115, 148, 172, .25), transparent 60%),
    linear-gradient(165deg, #22303d 0%, #101820 90%);
  color: var(--paper);
}
.plan--hot .plan__who,
.plan--hot .plan__limit { color: rgba(240, 245, 247, .82); }
.plan--hot .plan__feats li { color: var(--paper); }
.plan--hot h3, .plan--hot .plan__price { color: #fff; }
.plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1.5px solid var(--mist);
  color: var(--deep);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { font-size: 20px; font-weight: 800; }
.plan__who { font-size: 13.5px; color: var(--steel); margin: 4px 0 20px; }
.plan__price { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.plan__price span { font-size: 15px; font-weight: 700; color: var(--steel); margin-left: 4px; }
.plan--hot .plan__price span { color: rgba(240, 245, 247, .85); }
.plan__price s {
  font-size: 16px; font-weight: 700; color: var(--steel);
  margin-left: 12px; text-decoration: none;   /* линия — анимированный ::after */
  position: relative;
}
.plan--hot .plan__price s { color: rgba(240, 245, 247, .85); }
.plan__per-year {
  display: block; margin-top: 8px;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0;
  color: var(--steel);
}
.plan--hot .plan__per-year { color: rgba(240, 245, 247, .85); }
.plan__off {
  display: inline-block; font-style: normal; font-size: 13px; font-weight: 800;
  color: var(--paper); background: var(--deep, #354b60);
  border-radius: 999px; padding: 3px 10px; margin-left: 10px;
  vertical-align: middle;
}
.plan--hot .plan__off { background: #fff; color: var(--ink); }

/* Свитчер «в год / в месяц» (без JS: radio + селекторы ~) —
   скользящая пилюля, цены перетекают, зачёркивание анимируется на год */
.bp { position: absolute; opacity: 0; pointer-events: none; }
.period-toggle {
  display: flex; width: fit-content; margin: 0 auto 44px;
  padding: 4px; border-radius: 999px;
  background: rgba(240, 245, 247, .1);
  border: 1px solid rgba(184, 208, 222, .25);
  position: relative;
}
.period-toggle::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px); border-radius: 999px; background: var(--paper);
  transition: transform .35s cubic-bezier(.22, .8, .3, 1);
}
#bp-month:checked ~ .period-toggle::before { transform: translateX(100%); }
.period-toggle label {
  position: relative; z-index: 1; width: 6.5rem; flex: 0 0 auto; text-align: center;
  padding: 9px 0; border-radius: 999px; cursor: pointer;
  font-size: 14.5px; font-weight: 800; color: var(--mist);
  transition: color .25s ease;
}
#bp-year:checked ~ .period-toggle label[for=bp-year],
#bp-month:checked ~ .period-toggle label[for=bp-month] {
  color: var(--ink);
}
#bp-year:checked ~ .plans .price-month { display: none; }
#bp-month:checked ~ .plans .price-year { display: none; }

/* Анимации смены цены: плавное перетекание всегда, зачёркивание — на год */
@keyframes price-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes strike-line {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
#bp-year:checked ~ .plans .price-year,
#bp-month:checked ~ .plans .price-month {
  animation: price-in .35s cubic-bezier(.22, .8, .3, 1) both;   /* перезапускается при смене display */
}
#bp-year:checked ~ .plans .price-year s::after {
  content: ""; position: absolute; left: -3%; right: -3%; top: 54%;
  height: 2px; background: currentColor; opacity: .85;
  transform: scaleX(0); transform-origin: 0 50%;
  animation: strike-line .35s cubic-bezier(.22, .8, .3, 1) .18s forwards;
}
.plan__limit {
  font-size: 14px;
  font-weight: 700;
  color: var(--deep);
  margin: 4px 0 20px;
}
.plan ul {
  list-style: none;
  margin-bottom: 26px;
  flex: 1;
}
.plan li {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--deep);
  padding: 7px 0 7px 26px;
  position: relative;
}
.plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--steel);
  font-weight: 800;
}
.hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
  cursor: help;
}
.hint:focus { outline: none; }
.hint:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.hint::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translate(-50%, 4px);
  width: max-content;
  max-width: 230px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: left;
  white-space: normal;
  box-shadow: 0 12px 26px -12px rgba(16, 24, 32, .55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 20;
}
.hint:hover::after,
.hint:focus::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.plan--hot .hint::after {
  background: var(--paper);
  color: var(--ink);
}
.plan__feats {
  flex: 1;
  margin-bottom: 26px;
}
.plan__feats ul {
  flex: none;
  margin-bottom: 14px;
}
.plan__feats ul:last-child { margin-bottom: 0; }
.plan__feats-title {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--deep);
}
.plan__feats-title--no {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(53, 75, 96, .14);
}
.plan--hot .plan__feats-title { color: var(--paper); }
.plan--hot .plan__feats-title--no {
  color: rgba(240, 245, 247, .82);
  border-top-color: rgba(240, 245, 247, .2);
}
.plan ul.plan__list--no li {
  color: var(--deep);
  opacity: .8;
}
.plan ul.plan__list--no li::before {
  content: '×';
  color: var(--deep);
  opacity: .8;
}
.plan--hot ul.plan__list--no li {
  color: rgba(240, 245, 247, .8);
  opacity: 1;
}
.plan--hot ul.plan__list--no li::before {
  color: rgba(240, 245, 247, .8);
  opacity: 1;
}
.plans__foot {
  text-align: center;
  margin-top: 32px;
  color: var(--mist);
  font-size: 15px;
}
.plans__foot a { color: var(--paper); font-weight: 800; }

/* FAQ — светлая секция, белые карточки */
.faq {
  background:
    radial-gradient(1600px 1000px at 50% -28%, rgba(184, 208, 222, 1), transparent 66%),
    radial-gradient(1400px 950px at 100% 110%, rgba(115, 148, 172, .92), transparent 68%),
    linear-gradient(180deg, #f9fcfe 0%, #dce8f0 100%);
}
.qa {
  background: #fff;
  border: 1px solid rgba(184, 208, 222, .55);
  border-radius: 18px;
  margin-bottom: 12px;
  box-shadow: 0 18px 44px -22px rgba(16, 24, 32, .25);
  overflow: hidden;
}
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--steel);
  flex-shrink: 0;
  transition: transform .15s ease;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa p {
  padding: 0 24px 22px;
  color: var(--deep);
  font-size: 15px;
  max-width: 90%;
}

/* Финальный CTA — тёмная секция со свечением */
.final {
  padding: 110px 0 120px;
  text-align: center;
  color: var(--paper);
  background:
    radial-gradient(1450px 1000px at 50% 140%, rgba(157, 188, 212, 1), transparent 64%),
    radial-gradient(1400px 800px at 110% -10%, rgba(53, 75, 96, .96), transparent 66%),
    radial-gradient(900px 600px at -10% 0%, rgba(115, 148, 172, .62), transparent 65%),
    linear-gradient(180deg, #16222e 0%, #101820 60%);
}
.final__eyebrow {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--mist);
  margin-bottom: 18px;
}
.final__big {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 130px;
  line-height: 1;
  letter-spacing: -.01em;
  background: linear-gradient(165deg, #f0f5f7 0%, #b8d0de 55%, #7394ac 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.final__h {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 10px 0 20px;
}
.final__p {
  color: var(--mist);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 34px;
}

/* Подвал */
.foot {
  border-top: 1px solid rgba(184, 208, 222, .22);
  padding: 36px 0;
  background: transparent;
}
.foot__in {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.brand--foot .brand__name { font-size: 17px; }
.foot__nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.foot__nav a {
  color: var(--steel);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.foot__nav a:hover { color: var(--mist); }
.foot__copy { color: rgba(184, 208, 222, .55); font-size: 13.5px; }

/* ── Адаптив ─────────────────────────────── */

@media (max-width: 960px) {
  /* minmax(0, 1fr): трек не растёт до min-content детей,
     иначе широкий бейдж распирает вёрстку за пределы экрана */
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero__in > * { min-width: 0; }
  /* Мокап по центру, наклон мягче — иначе на узком экране
     карточка «уезжает» влево и съедает место у плавающих бейджей */
  .hero__art { max-width: 480px; margin: 0 auto; }
  .mock { transform: rotateY(-7deg) rotateX(3deg); }
  /* Бейджи держим внутри карточки, не за краем экрана */
  .float--pay { right: 0; }
  .float--remind { left: 0; }
  h1 { font-size: 40px; }
  .h2 { font-size: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .nav { display: none; }
  /* fixed-фон на мобильных — лишние перерисовки при скролле */
  body { background-attachment: scroll; }
}

@media (max-width: 600px) {
  .top__in { height: 60px; gap: 12px; }
  .brand__name { font-size: 17px; }
  .top__cta .btn--ghost { display: none; }
  .top__cta .btn { padding: 10px 16px; }

  .wrap { padding: 0 18px; }
  section { padding: 60px 0; }
  .hero { padding: 52px 0 64px; }

  /* Главные кнопки во всю ширину: по одной в ряд, палец не промахивается */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .btn--lg { padding: 15px 24px; font-size: 15.5px; }

  .badge { margin-bottom: 18px; }
  .lead { font-size: 16px; margin-bottom: 28px; }
  .sub { font-size: 15px; margin-bottom: 40px; }

  .stats { padding: 56px 0 48px; }
  .stats__row { grid-template-columns: 1fr; gap: 36px; }
  .stat__n { font-size: 72px; }
  h1 { font-size: 32px; }
  .h2 { font-size: 30px; }
  .steps, .grid { grid-template-columns: 1fr; }
  .step, .tile { padding: 24px 20px; }
  .step h3 { min-height: 0; }

  .plan { padding: 26px 22px; }
  .plan__price { font-size: 34px; }

  /* FAQ: тап-зона компактнее, текст ответа без искусственного max-width */
  .qa summary { padding: 16px 18px; font-size: 15px; }
  .qa p { max-width: none; padding: 0 18px 18px; font-size: 14.5px; }

  .final { padding: 72px 0 80px; }
  .final__big { font-size: 76px; }
  .final__h { font-size: 26px; }
  .final__p { font-size: 15.5px; }

  /* Подвал столбиком: контакты не теснятся в одну строку */
  .foot__in { flex-direction: column; align-items: flex-start; gap: 18px; }
  .foot__nav { margin-left: 0; flex-direction: column; gap: 10px; }
}
