/* ============================================================================
   Jur Trading Academy — лендинг первого потока, версия 2
   Визуальное направление: сдержанный dark fintech.
   Зелёный — единственный акцент действия, красный — только про риск.
   ========================================================================== */

:root{
  --bg:            #050706;
  --bg-raise:      #090d0b;
  --surface:       #0c1210;
  --surface-2:     #101815;
  --line:          #1b2521;
  --line-strong:   #26332d;

  --green:         #2ed573;
  --green-ink:     #05140b;   /* текст на зелёной кнопке */
  --green-soft:    rgba(46,213,115,.12);
  --red:           #e0685f;
  --red-soft:      rgba(224,104,95,.12);

  --text:          #eef1ef;
  --text-2:        #c3ccc7;
  --muted:         #98a39d;
  --faint:         #7b857f;

  --radius:        16px;
  --radius-lg:     22px;
  --wrap:          1400px;
  --gutter:        clamp(16px, 4vw, 32px);

  --font-head:     'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-body:     'Inter', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  scroll-padding-top: 88px;   /* чтобы якоря не уезжали под шапку */
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img{ display: block; max-width: 100%; height: auto; }

/* Ни один элемент сетки не должен раздувать колонку своим содержимым:
   min-width: 0 снимает автоматический минимум grid/flex-детей.
   Без этого правила длинные слова расширяли документ за пределы вьюпорта,
   что раньше маскировалось overflow-x: hidden на <body>. */
.wrap > *,
.hero__content > *,
.manifesto > *,
.process > li,
.audience > li,
.includes > li,
.author > *,
.author__story > *,
.compare > *,
.compare__col > *,
.reviews > li,
.weeks > *,
.price > *,
.price__box > *,
.faq > *,
.stats > *,
.footer__top > *,
.site-header__inner > *,
.sticky-cta > *,
.cta-row > *,
.pill-list > li,
.pill-list li > *,
.process li > *,
.audience li > *,
.includes li > *,
.compare__col > ul > li,
.compare__col li > *,
.price__list > li,
.reviews figure > *,
.week summary > *,
.week ol > li,
.week ol li > *,
.footer__col ul > li{ min-width: 0; }

/* Длинные слова, ссылки и e-mail переносятся, а не расширяют колонку */
.lede,
.disclaimer,
.risk,
.reviews p,
.week ol li span,
.footer__col p,
.footer__col a{ overflow-wrap: anywhere; }

h1, h2, h3{
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}

p{ margin: 0; }
ul, ol{ margin: 0; padding: 0; list-style: none; }

a{ color: var(--green); text-decoration: none; }
a:hover{ text-decoration: underline; }

:focus-visible{
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap{
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section{ padding-block: clamp(56px, 8vw, 104px); }
.section--raise{
  background: var(--bg-raise);
  border-block: 1px solid var(--line);
}

.eyebrow{
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.h2{ font-size: clamp(26px, 3.4vw, 42px); }
.h3{ font-size: clamp(19px, 2vw, 23px); font-weight: 700; }

.lede{
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--text-2);
  max-width: 62ch;
}

.section-head{ margin-bottom: clamp(28px, 4vw, 48px); display: grid; gap: 16px; }

/* ── Видео об обучении ───────────────────────────────────────────────────── */
.intro-video{
  background:
    radial-gradient(circle at 84% 20%, rgba(46,213,115,.10), transparent 34%),
    var(--bg);
}
.intro-video__layout{
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.intro-video__copy{
  display: grid;
  gap: 18px;
}
.intro-video__frame{
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 24px 64px rgba(0,0,0,.34);
}
.intro-video__frame video{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

@media (max-width: 820px){
  .intro-video__layout{ grid-template-columns: 1fr; }
}

/* ── Кнопки ───────────────────────────────────────────────────────────────── */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover{ text-decoration: none; }

/* Главная кнопка выглядит одинаково во всех секциях */
.btn--primary{
  background: var(--green);
  color: var(--green-ink);
}
.btn--primary:hover{ background: #46e485; transform: translateY(-1px); }

.btn--ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover{ border-color: var(--green); color: var(--green); }

.btn--sm{ min-height: 44px; padding: 10px 20px; font-size: 15px; }

.cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cta-note{
  font-size: 15px;
  color: var(--muted);
}

/* ── Шапка ────────────────────────────────────────────────────────────────── */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5,7,6,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner{
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding-block: 10px;
}
.brand{ display: flex; align-items: center; flex: 0 0 auto; }
.brand__name{
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(36px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand__name .brand__accent{ color: var(--green); }

.site-nav{ margin-inline: auto; display: flex; gap: 22px; }
.header-actions{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}
.site-nav a{
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover{ color: var(--green); text-decoration: none; }

.header-status{
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.header-status b{ color: var(--text-2); font-weight: 600; }

/* Между планшетом и мобильным (когда навигация уже скрыта, но брейкпоинт
   мобильной шапки ещё не включился) дата рядом с крупным словесным логотипом
   и кнопкой уже не помещается — прячем её здесь же, а не только на мобильном. */
@media (max-width: 860px){
  .header-status{ display: none; }
}

.site-header .btn{ flex: 0 0 auto; }

/* ── Первый экран ─────────────────────────────────────────────────────────── */
.hero{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(36px, 5vw, 72px) clamp(48px, 6vw, 88px);
}
/* Фоновая графика: на мобильных не тянем тяжёлый файл (даже WebP-копия
   больше отдающегося сразу CSS-свечения), вместо него — эквивалентное по
   настроению CSS-свечение. bg.webp ≈ 43 КБ вместо оригинального bg.png
   ≈ 1,3 МБ — оригинал не удалён, оставлен как исходник в папке assets */
.hero__bg{
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(80% 60% at 12% 18%, rgba(46,213,115,.16), transparent 60%),
    radial-gradient(70% 55% at 88% 78%, rgba(224,104,95,.12), transparent 62%);
}
@media (min-width: 700px){
  .hero__bg{
    background-image: url('assets/bg.webp');
    background-size: cover;
    background-position: 18% center;
    opacity: .5;
  }
}
.hero::after{           /* мягкий переход фона в чёрный */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(5,7,6,.97) 0%, rgba(5,7,6,.88) 42%, rgba(5,7,6,.55) 70%, rgba(5,7,6,.9) 100%),
    linear-gradient(180deg, rgba(5,7,6,.5) 0%, rgba(5,7,6,0) 30%, var(--bg) 100%);
}
/* Портрет — не элемент сетки, а слой у левого края секции: так он доходит
   до края экрана независимо от ширины контейнера и не влияет на ширину текста. */
.hero__portrait{
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 0;
  /* Размер задаём по ширине экрана, а не по высоте секции: тогда портрет
     предсказуемо не доходит до текста на любой ширине от 900 px. */
  width: clamp(300px, 30vw, 620px);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: left bottom;
  pointer-events: none;
  /* Растворяем не только верх, но и правый край исходника: плечо в файле
     заканчивается ровным срезом, который без маски заметен на тёмном фоне. */
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0, #000 12%),
    linear-gradient(90deg, #000 0, #000 68%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(180deg, transparent 0, #000 12%),
    linear-gradient(90deg, #000 0, #000 68%, transparent 100%);
          mask-composite: intersect;
}

/* Логотип-водяной знак в правом просвете секции, симметрично портрету слева.
   Просвет появляется только когда экран шире --wrap (1400px); ширина считается
   от реального зазора. От 1401 до ~1540px зазор даёт только 0–220px —
   осмысленный знак туда не помещается и превращается в случайную точку,
   поэтому в этом диапазоне прячем его целиком (media query ниже), а не
   пытаемся уместить нечитаемый огрызок. */
.hero__logo-mark{
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 0;
  width: clamp(0px, calc((100vw - 1400px) * 1.6), 460px);
  aspect-ratio: 1 / 1;
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: .92;
  /* Квадратный холодец картинки почти впритык к кольцу логотипа: без маски
     угол картинки виден как плоский чёрный квадрат на фоне со свечением.
     Гасим всё за пределами кольца в прозрачность, чтобы остался только сам знак. */
  -webkit-mask-image: radial-gradient(circle closest-side, #000 94%, transparent 100%);
          mask-image: radial-gradient(circle closest-side, #000 94%, transparent 100%);
}
@media (max-width: 1540px){
  .hero__logo-mark{ display: none; }
}

/* Оффер занимает правую часть контейнера, чтобы не заходить на портрет. */
.hero__content{
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(18px, 2vw, 24px);
  max-width: 62%;
  margin-left: auto;
}
.hero h1{
  font-size: clamp(28px, 4.2vw, 58px);
  max-width: 24ch;               /* держим строку в комфортном диапазоне */
}
.hero__sub{
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--text-2);
  max-width: 54ch;
}

.hero__for{
  font-size: 16px;
  font-style: italic;
  color: var(--text);
  padding-left: 14px;
  border-left: 2px solid var(--green);
  max-width: 56ch;
}

/* ── Манифест ─────────────────────────────────────────────────────────────── */
.manifesto{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.manifesto h2 .accent{ color: var(--green); }
/* В две колонки заголовку на обычный .h2 не хватает ширины — он ломался
   на «VIPов —» / «у нас трейдеры». Своя, чуть меньшая шкала шрифта только
   для широких экранов, где есть куда его ужать; на мобильном/планшете
   (колонка на всю ширину секции) остаётся обычный перенос. */
@media (min-width: 1081px){
  .manifesto__title{
    white-space: nowrap;
    font-size: clamp(20px, 1.9vw, 33px);
  }
}
.pill-list{ display: grid; gap: 12px; }
.pill-list li{
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 18px;
  color: var(--text-2);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.pill-list li:last-child{ border-bottom: 0; padding-bottom: 0; }
.pill-list svg{ width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--green); stroke-width: 2; }

/* ── Процесс: проблема и результат ────────────────────────────────────────── */
/* Простая равномерная сетка отдельных карточек: с gap 14 px и minmax(190px, 1fr)
   от 1081 px всегда ровно пять колонок в одну строку, на планшете — три (3 + 2),
   на мобильном — одна. Раньше здесь был «лист с хайрлайнами» (общий фон --line
   и gap 2 px): при любом числе колонок, не делящем 5, пустая клетка сетки
   проявлялась цветной плашкой, и блок выглядел разъезжающимся. */
.process{
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.process li{
  counter-increment: step;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 26px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.process li::before{
  content: "0" counter(step);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--green);
}
.process b{ font-size: 17px; font-weight: 700; font-family: var(--font-head); }
.process span{ font-size: 16px; color: var(--muted); }

/* ── Для кого ─────────────────────────────────────────────────────────────── */
/* Все карточки одного визуального уровня и одинаковой ширины. */
.audience{
  counter-reset: aud;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
.audience li{
  counter-increment: aud;
  height: 100%;
  background: linear-gradient(168deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  /* поля чуть меньше: пять карточек в ряд, тексту нужна ширина */
  padding: 24px 20px;
  display: grid;
  gap: 10px;
  align-content: start;
}
/* нумерация делает эту сетку визуально не такой же, как «Что входит»;
   цвет — тот же зелёный, что у шагов процесса выше */
.audience li::before{
  content: "0" counter(aud);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--green);
}
.audience b{ font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.audience p{ font-size: 16px; color: var(--muted); }

/* ── Что входит ───────────────────────────────────────────────────────────── */
.includes{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 18px);
}
.includes li{
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.includes .num{
  font-family: var(--font-head);
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1;
  color: var(--green);
  letter-spacing: -.03em;
}
.includes b{ font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.includes p{ font-size: 16px; color: var(--muted); }

/* ── Автор ────────────────────────────────────────────────────────────────── */
.author{
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
/* Одно основное фото с фиксированным соотношением сторон вместо мозаики:
   высота блока предсказуема и не зависит от длины текста рядом. */
.author__photo{
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.author__photo img{
  width: 100%;
  /* кадр квадратный: так в него целиком попадает и Саша, и логотип на экране */
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: 50% 50%;
  /* без обесцвечивания: на фоне фирменный зелёный логотип, его глушить нельзя */
  filter: brightness(.97);
}
.author__photo::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,7,6,0) 55%, rgba(5,7,6,.5) 100%);
  pointer-events: none;
}
.author__story{ display: grid; gap: 18px; }
/* 68ch — иначе на контейнере 1400 px строка биографии уходит за 760 px */
.author__story p{ color: var(--text-2); max-width: 68ch; }
.stats{
  display: grid;
  /* Фактов пять: держим 3 + 2 на всех ширинах от 641 px. Автосетка давала
     то 4 + 1 с одинокой карточкой, то пять колонок по 140 px. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}
.stats div{
  border-top: 2px solid var(--line-strong);
  padding-top: 12px;
}
.stats .k{
  display: block;
  font-family: var(--font-head);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.stats .v{ font-size: 15px; color: var(--muted); }

/* ── До / после ───────────────────────────────────────────────────────────── */
.compare{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.compare__col{
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  background: var(--surface);
}
.compare__col--before{ background: var(--bg-raise); }
.compare__col h3{ display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.compare__tag{
  font-family: var(--font-body);
  /* «ДО КУРСА» и «ПОСЛЕ КУРСА» втрое крупнее прежних 12 px. На узких экранах
     ужимаем: при 36 px «ПОСЛЕ КУРСА» шире колонки на телефоне. Разрядку
     уменьшили с .12em — на таком кегле она уже не нужна. */
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.25;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 999px;
}
.compare__col--before .compare__tag{ background: var(--red-soft); color: var(--red); }
.compare__col--after  .compare__tag{ background: var(--green-soft); color: var(--green); }
.compare__col ul{ display: grid; gap: 14px; }
.compare__col li{
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  font-size: 16px;
  color: var(--text-2);
}
.compare__col li::before{ font-weight: 700; line-height: 1.5; }
.compare__col--before li::before{ content: "—"; color: var(--red); }
.compare__col--after  li::before{ content: "→"; color: var(--green); }

.disclaimer{
  margin-top: 22px;
  font-size: 15.5px;
  color: var(--muted);
  border-left: 2px solid var(--line-strong);
  padding-left: 16px;
  max-width: 80ch;
}

/* ── Отзывы (скриншоты Telegram) ──────────────────────────────────────────── */
/* Две колонки. Карточка: тема, короткий дословный фрагмент текстом, превью
   оригинального скриншота естественной высоты (длинный показан нужной
   частью), затем «Читать целиком». Карточки не выравниваются по высоте
   ценой пустых рамок. Полный оригинал — в диалоге просмотра. */
.reviews{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
  align-items: start;
}
.reviews > li{ display: flex; }
/* Свёрнутое состояние включает только скрипт: без JS видны все карточки. */
.reviews.is-collapsed > .review-card--extra{ display: none; }
.reviews figure{
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Тёмная карточка в стиле остальных блоков; светлыми остаются только сами
     скриншоты Telegram — они показаны как есть, без фильтров. */
  background: var(--surface);
  border: 1px solid rgba(46,213,115,.25);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 22px);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.reviews figure:hover{ border-color: rgba(46,213,115,.5); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.review-card__title{
  order: -3;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.25;
  color: var(--text);
}
.review-card__label{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--muted);
}
.review-card__quote{
  margin: -4px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--green);
}
.review-card__quote p{
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}
.review-card__open{
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.review-card__open:focus-visible{ outline: 3px solid var(--green); outline-offset: 4px; border-radius: 12px; }
.review-thumb{
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg);
}
.review-thumb img{ display: block; width: 100%; height: auto; }
/* Высокий скриншот: показываем часть с самим отзывом, не дорисовывая оригинал.
   Пропорция рамки и позиция заданы относительно ширины, поэтому одинаковы на
   любом экране. Целиком — в диалоге. */
.review-thumb--crop-thanks{ aspect-ratio: 489 / 190; }
.review-thumb--crop-thanks img{ height: 100%; object-fit: cover; object-position: 50% 47%; }
.review-card__cta{
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  align-self: flex-start;
  transition: background .18s ease, border-color .18s ease;
}
.review-card__open:hover .review-card__cta{ background: var(--green-soft); border-color: var(--green); }
.reviews-more{ display: flex; justify-content: center; margin-top: 24px; }
.reviews-more[hidden]{ display: none; }

/* Диалог просмотра скриншота */
.review-viewer[hidden]{ display: none; }
.review-viewer{
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
}
.review-viewer__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(3,5,4,.82);
  backdrop-filter: blur(3px);
}
.review-viewer__dialog{
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.review-viewer__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 20px;
}
.review-viewer__title{ margin: 0; min-width: 0; font-family: var(--font-head); font-size: 17px; }
.review-viewer__actions{ flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.review-viewer__zoom[hidden]{ display: none; }
.review-viewer__zoom{
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.review-viewer__zoom:hover{ background: rgba(255,255,255,.08); border-color: var(--green); }
.review-viewer__close{
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.review-viewer__close svg{ width: 22px; height: 22px; }
.review-viewer__close:hover{ background: rgba(255,255,255,.08); }
.review-viewer__scroll{
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px 12px;
}
.review-viewer__scroll:focus-visible{ outline: 2px solid var(--green); outline-offset: -2px; }
.review-viewer__scroll img{ display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 12px; }
/* Увеличенный режим: оригинал в исходной ширине, прокрутка по обеим осям
   только внутри этой области — заголовок и закрытие остаются на месте. */
.review-viewer__scroll.is-zoomed{ touch-action: pan-x pan-y; }
.review-viewer__scroll.is-zoomed img{ max-width: none; width: auto; margin: 0; }

/* ── Программа ────────────────────────────────────────────────────────────── */
/* Desktop — две равные колонки, мобильный — одна (см. медиазапросы ниже). */
.weeks{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
  align-items: start;
}
.week{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.week[open]{ background: var(--surface-2); }
.week summary{
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
}
.week summary::-webkit-details-marker{ display: none; }
/* Номер недели — единственный заголовок карточки (подзаголовки убраны),
   поэтому кегль крупный; стрелка прижата вправо и не сжимается. */
.week__no{
  flex: 0 0 auto;
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green);
}
.week__chev{
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  transition: transform .2s ease;
}
.week[open] .week__chev{ transform: rotate(180deg); }
.week ol{ margin-top: 16px; display: grid; gap: 10px; }
.week ol li{
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  font-size: 16px;
  color: var(--text-2);
}
.week ol li i{ color: var(--faint); font-style: normal; font-variant-numeric: tabular-nums; }
.week__note{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--green);
}

/* ── Тариф ────────────────────────────────────────────────────────────────── */
.price{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  background:
    radial-gradient(120% 130% at 88% 12%, rgba(46,213,115,.10), transparent 58%),
    var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 46px);
}
.price__list{ display: grid; gap: 10px; margin-top: 20px; }
.price__list li{
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 16px;
  color: var(--text-2);
}
.price__list li::before{ content: "•"; color: var(--green); }
.price__box{ display: grid; gap: 8px; justify-items: start; }
.price__value{
  font-family: var(--font-head);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}
.price__value span{ font-size: .45em; color: var(--muted); font-weight: 700; }
.price__box .btn{ margin-top: 10px; width: 100%; max-width: 340px; }
.price__method{ max-width: 380px; margin-top: 8px; font-size: 15px; color: var(--text-2); }
.price__method b{ color: var(--green); }
.price__fine{ font-size: 15px; color: var(--muted); }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq{ display: grid; gap: 12px; max-width: 900px; }
.faq details{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 22px;
}
.faq details[open]{ background: var(--surface-2); }
.faq summary{
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{
  content: "+";
  margin-left: auto;
  color: var(--green);
  font-size: 20px;
  line-height: 1;
}
.faq details[open] summary::after{ content: "–"; }
.faq p{ margin-top: 12px; color: var(--text-2); font-size: 16px; max-width: 72ch; }

/* ── Финальный призыв ─────────────────────────────────────────────────────── */
.final{
  text-align: center;
  display: grid;
  gap: 20px;
  justify-items: center;
}
.final h2{ max-width: 26ch; }
.final p{ max-width: 60ch; color: var(--text-2); }

/* ── Подвал ───────────────────────────────────────────────────────────────── */
.site-footer{
  border-top: 1px solid var(--line);
  background: #030504;
  padding-block: clamp(36px, 5vw, 56px) 28px;
}
.footer__top{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  align-items: start;
}
.footer__col h3{
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.footer__col p, .footer__col a{ font-size: 16px; color: var(--text-2); }
.footer__col a:hover{ color: var(--green); }
.footer__col ul{ display: grid; gap: 8px; }
.socials{ display: flex; gap: 12px; }
.socials a{
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color .18s ease;
}
.socials a:hover{ border-color: var(--green); }
.socials svg{ width: 20px; height: 20px; fill: var(--text-2); }
.socials a:hover svg{ fill: var(--green); }

/* Реквизиты ИП под логотипом: юридический блок, читается, но не спорит
   с контактами. Цифры — табличными, чтобы ИНН и ОГРНИП стояли ровно. */
.footer__col .legal{
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.footer-cookie-settings{
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.footer-cookie-settings:hover{ text-decoration: underline; }

.risk{
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 88ch;
}
.copyright{ margin-top: 22px; font-size: 14.5px; color: var(--faint); }

/* ── Липкая мобильная панель CTA ──────────────────────────────────────────── */
.sticky-cta{
  position: fixed;
  inset: auto 0 0 0;
  z-index: 45;
  display: none;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(5,7,6,.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.sticky-cta.is-visible{ transform: translateY(0); }
.sticky-cta[hidden]{ display: none; }

/* ── Плавающая кнопка «чат заботы» ────────────────────────────────────────── */
.care-widget{
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 55;
  display: grid;
  justify-items: end;
  gap: 14px;
}
.care-widget__toggle{
  width: 58px;
  height: 58px;
  flex: none;
  border: none;
  border-radius: 50%;
  background: var(--green);
  color: var(--green-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,.4);
  transition: background-color .18s ease, transform .18s ease;
}
.care-widget__toggle:hover{ background: #46e485; transform: translateY(-1px); }
.care-widget__toggle svg{ width: 26px; height: 26px; }
.care-widget__icon-close{ display: none; }
.care-widget.is-open .care-widget__icon-chat{ display: none; }
.care-widget.is-open .care-widget__icon-close{ display: block; }

.care-widget__popup[hidden]{ display: none; }
.care-widget__popup{
  width: min(300px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 20px 48px rgba(0,0,0,.5);
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}
.care-widget__popup p{ margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.care-widget__link{ display: grid; justify-items: center; gap: 8px; }
.care-widget__link svg{ width: 40px; height: 40px; fill: #2aabee; }
.care-widget__link span{ font-size: 14px; color: var(--muted); }
.care-widget__link:hover span{ color: var(--green); }

@media (max-width: 640px){
  /* На мобильном снизу уже липкая CTA-панель — поднимаем кнопку над ней. */
  .care-widget{ right: 16px; bottom: calc(78px + env(safe-area-inset-bottom)); }
}

/* ── Согласие на аналитические cookies ───────────────────────────────────── */
.cookie-banner[hidden]{ display: none; }
.cookie-banner{
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 70;
  width: min(760px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 20px;
  background: rgba(12,18,16,.98);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 20px 56px rgba(0,0,0,.58);
}
.cookie-banner__copy{ display: grid; gap: 7px; }
.cookie-banner__copy h2{
  margin: 0;
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1.3;
}
.cookie-banner__copy p{
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}
.cookie-banner__copy a{ white-space: nowrap; }
.cookie-banner__actions{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-banner__button{
  min-width: 112px;
  min-height: 44px;
  padding: 10px 16px;
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
  font-size: 14px;
}
.cookie-banner__button:hover{
  color: var(--green);
  border-color: var(--green);
  transform: none;
}
#cookie-accept{ background: var(--green); border-color: var(--green); color: var(--green-ink); }
#cookie-accept:hover{ background: #46e485; color: var(--green-ink); }

/* ── Модалка оформления заявки ────────────────────────────────────────────── */
.checkout-modal[hidden]{ display: none; }
.checkout-modal{
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.checkout-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(3,5,4,.72);
  backdrop-filter: blur(3px);
}
.checkout-modal__dialog{
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  display: grid;
  gap: 16px;
}
.checkout-modal__dialog h3{ font-family: var(--font-head); font-size: 22px; margin: 0; padding-right: 30px; }
.checkout-modal__price{ margin: 0; color: var(--text-2); font-size: 15px; }
.checkout-modal__price b{ color: var(--text); }
.checkout-modal__intro{ margin: -6px 0 0; color: var(--muted); font-size: 14px; }
.checkout-modal__close{
  position: absolute;
  top: clamp(24px, 4vw, 36px);
  right: clamp(24px, 4vw, 36px);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.checkout-modal__close:hover{ color: var(--text); }
.checkout-modal__close svg{ width: 16px; height: 16px; }
.checkout-modal__dialog form{ display: grid; gap: 14px; }
.checkout-field{ display: grid; gap: 6px; }
.checkout-field span{ font-size: 13px; color: var(--muted); }
.checkout-field input{
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-raise);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
}
.checkout-field input:focus-visible{ outline: 2px solid var(--green); outline-offset: 2px; }
.checkout-consent{
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.checkout-consent input{ margin-top: 2px; accent-color: var(--green); width: 16px; height: 16px; }
.checkout-consent a{ color: var(--text-2); }
.checkout-consent a:hover{ color: var(--green); }
.checkout-payment-actions{ display: grid; gap: 10px; margin-top: 4px; }
.checkout-modal__submit{ width: 100%; }
.checkout-payment-actions__fine{ margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
/* Honeypot: за экраном, но не display:none — так его видят и заполняют
   простые скрипты, а обычные посетители и клавиатурная навигация не видят. */
.checkout-honeypot{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
body.has-modal-open{ overflow: hidden; }

/* Мелкие утилиты вместо inline-стилей */
.mt-16{ margin-top: 16px; }
.mt-28{ margin-top: 28px; }
.round{ border-radius: 50%; }
.sticky-cta__label{ font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.sticky-cta__label span{ display: block; font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--muted); }

/* ── Планшет ──────────────────────────────────────────────────────────────── */
/* Пять карточек «Узнаёте себя?» держим в один ряд, пока колонка не ужимается
   до ~200 px: ниже 1200 текст в них рвался на два-три слова в строку. */
@media (max-width: 1200px){
  .audience{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Между 1081 и ~1260px nav (5 ссылок) и дата в шапке одновременно видны и
   налезают друг на друга при увеличенном словесном логотипе — реального
   переполнения страницы нет (scrollW==clientW), но текст визуально бьётся.
   Прячем nav до заметно большей ширины, чем раньше, а не только до 1080. */
@media (max-width: 1300px){
  .site-nav{ display: none; }
}

@media (max-width: 1080px){
  /* три колонки: пять шагов ложатся как 3 + 2, без одинокой полустроки */
  .process{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .includes{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px){
  /* На планшете тот же портрет становится мягким фоновым слоем: он не
     занимает отдельную строку и не отодвигает оффер и CTA вниз. */
  .hero__portrait{
    display: block;
    left: auto;
    right: -48px;
    bottom: -8px;
    width: clamp(280px, 42vw, 380px);
    max-height: 82%;
    opacity: .32;
    filter: brightness(.72) contrast(1.04);
    -webkit-mask-image: radial-gradient(ellipse 76% 88% at 48% 62%, #000 38%, transparent 82%);
            mask-image: radial-gradient(ellipse 76% 88% at 48% 62%, #000 38%, transparent 82%);
  }
  .hero__content{ max-width: 76%; margin-left: 0; }
  .manifesto,
  .author,
  .compare,
  .price{ grid-template-columns: 1fr; }
  .author__story{ order: 1; }   /* сначала заголовок и текст, потом фото */
  .author__photo{ order: 2; max-width: 420px; }
  .price__box .btn{ max-width: none; }
}

/* ── Мобильные ────────────────────────────────────────────────────────────── */
@media (max-width: 640px){
  body{ font-size: 16px; }
  /* Плавно уменьшаем словесный логотип к узким телефонам: на 640px это ~28px,
     на 320px ~16px — иначе на самых маленьких экранах кнопка «Записаться»
     съезжает за край (текст логотипа не сжимается сам, только шрифтом). */
  .brand__name{ font-size: clamp(16px, 4px + 3.75vw, 28px); }
  .site-header__inner{ min-height: 60px; gap: 10px; }
  .header-actions{ gap: 10px; }
  /* Крупный словесный логотип в одну строку уже не помещается рядом с датой
     старта — на мобильном дата уходит, кнопка «Записаться» остаётся всегда. */
  .header-status{ display: none; }
  .site-header .btn--sm{ min-height: 44px; padding: 10px 16px; font-size: 14px; }

  .hero{ padding-block: 26px 40px; }
  .hero__portrait{
    top: 88px;
    right: -62px;
    bottom: auto;
    width: 270px;
    max-height: none;
    opacity: .2;
    filter: brightness(.64) contrast(1.06);
    -webkit-mask-image: radial-gradient(ellipse 72% 76% at 50% 46%, #000 34%, transparent 78%);
            mask-image: radial-gradient(ellipse 72% 76% at 50% 46%, #000 34%, transparent 78%);
  }
  .hero h1{ font-size: 25px; max-width: none; }
  .hero__sub{ font-size: 16px; }
  .hero__content{ gap: 16px; }
  .cta-row .btn{ width: 100%; }

  .process{ grid-template-columns: 1fr; }
  .process li{ padding: 20px 20px 22px; }
  .audience{ grid-template-columns: 1fr; }
  .includes{ grid-template-columns: 1fr; }
  .weeks{ grid-template-columns: 1fr; }

  .reviews{ grid-template-columns: 1fr; }
  .reviews figure{ padding: 14px 14px 16px; }

  /* На телефоне пять фактов — 2 + 2, последний занимает всю строку,
     чтобы не оставалось половины пустой */
  .stats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > :last-child{ grid-column: 1 / -1; }

  .price{ padding: 24px 20px; }
  .price__box{ justify-items: stretch; }

  .sticky-cta{ display: flex; }
  /* Запас под липкую панель добавляем подвалу, а не <body>: панель не
     перекрывает юридический блок, и под подвалом не появляется полоса
     другого оттенка. */
  body.has-sticky-cta .site-footer{
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .cookie-banner{
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 17px;
  }
  .cookie-banner__copy h2{ font-size: 17px; }
  .cookie-banner__copy p{ font-size: 13.5px; }
  .cookie-banner__copy a{ white-space: normal; }
  .cookie-banner__button{ width: 100%; min-width: 0; }
}

@media (max-width: 380px){
  .hero__portrait{ right: -78px; opacity: .17; }
  .hero h1{ font-size: 23px; }
}

/* ── Уважение к настройкам движения ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

@media print{
  .site-header, .sticky-cta, .cookie-banner, .care-widget{ display: none; }
}
