/* ============================================================
   МАСТЕР БАЛАНСА — дизайн-система
   Направление: «Небо и золото»
   Заголовки: Unbounded (ТОЛЬКО заголовки)
   Текст: Golos Text
   ============================================================ */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: 'Unbounded';
  src: url('../assets/unbounded-v12-cyrillic_latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Unbounded';
  src: url('../assets/unbounded-v12-cyrillic_latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Golos Text';
  src: url('../assets/golos-text-v7-cyrillic_latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Golos Text';
  src: url('../assets/golos-text-v7-cyrillic_latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Golos Text';
  src: url('../assets/golos-text-v7-cyrillic_latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Переменные ---------- */
/* Чёрный + тёплое янтарное золото — премиальнее и спокойнее неонового лайма */
:root {
  --night: #0A0A0A;        /* основной фон — почти чёрный */
  --night-deep: #000000;   /* самый тёмный, низ градиентов */
  --azure: #FFB224;        /* второстепенные акценты — тот же янтарь */
  --gold: #FFB224;         /* главный акцент — тёплое янтарное золото */
  --gold-soft: #FFD685;    /* светлый край золота в градиентах */
  --paper: #121212;        /* секции «чуть светлее фона», не светлые — тёмно-серые */
  --ink: #F2F4F7;          /* основной текст — светлый (фон теперь тёмный) */
  --ink-soft: #ACB3C0;     /* вторичный текст — светлый приглушённый */
  --card: #181818;         /* фон карточек (было белым) */
  --card-border: rgba(255, 255, 255, 0.10);
  --white: #FFFFFF;

  --font-head: 'Unbounded', sans-serif;
  --font-text: 'Golos Text', sans-serif;

  --radius: 24px;
  --container: 1200px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
strong { font-weight: 700; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.section { padding: 72px 0; }
.section--paper { background: var(--paper); }

/* Заголовок секции — Unbounded только здесь и в h1/h3 */
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
  margin-bottom: 44px;
}

/* ---------- Кнопка (единый компонент) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 19px;
  color: #1A1405;
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 100%);
  border-radius: 999px;
  padding: 0 48px;
  height: 68px;
  min-width: 280px;
  box-shadow: 0 10px 34px rgba(255, 178, 36, 0.38);
  transition: box-shadow .25s ease, filter .25s ease;
}
.btn:hover {
  box-shadow: 0 14px 52px rgba(255, 178, 36, 0.65);
  filter: brightness(1.07);
}

/* ---------- Список с золотыми галочками ---------- */
.check-list li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 14px;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 2px;
  width: 24px; height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23FFB224'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' stroke='%230A0A0A' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}

/* ============================================================
   ЭКРАН 1. HERO
   ============================================================ */
/* ---------- Блоки-секции как полноэкранные оверлеи ---------- */
.block-section {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.98);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
.block-section.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear 0s;
}
.block-section__close {
  position: sticky;
  top: 18px;
  left: 100%;
  width: 46px; height: 46px;
  margin-right: 24px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card);
  border: 1.5px solid var(--card-border);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  z-index: 5;
  transition: transform .2s ease, background .2s ease;
}
.block-section__close:hover { transform: scale(1.08); background: var(--gold); color: #0A0A0A; }
.block-section__close svg { width: 22px; height: 22px; }
body.block-open { overflow: hidden; }

/* ---------- Сетка карточек-блоков на главной ---------- */
.block-menu { padding: 50px 0 60px; }
.block-menu__grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 680px;
  margin: 0 auto;
  gap: 14px;
}
.block-menu__card {
  position: relative;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px 40px 16px 18px;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.block-menu__card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 44px rgba(255, 178, 36, 0.14);
}
.block-menu__num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 8px;
  background: rgba(255, 178, 36, 0.14);
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 8px;
}
.block-menu__card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 3px;
}
.block-menu__card p {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-soft);
}
.block-menu__arrow {
  position: absolute;
  top: 18px; right: 16px;
  color: var(--gold);
  font-size: 16px;
  transition: transform .25s ease;
}
.block-menu__card:hover .block-menu__arrow { transform: translate(4px, -4px); }

@media (max-width: 640px) {
  .block-menu { padding: 36px 0 44px; }
  .block-menu__grid { grid-template-columns: 1fr; gap: 10px; }
  .block-menu__card { padding: 14px 40px 12px 16px; }
  .block-menu__num { width: 20px; height: 20px; font-size: 11px; margin-bottom: 6px; }
  .block-menu__card h3 { font-size: 15px; margin-bottom: 2px; }
  .block-menu__card p { font-size: 12px; }
  .block-menu__arrow { top: 14px; right: 12px; font-size: 14px; }
}

/* ---------- Моушн: мягкое появление карточек по очереди ---------- */
.block-menu__card.reveal { transition-delay: calc(var(--stagger, 0) * 60ms); }

/* ---------- Шапка-навигация ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.navbar__logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.navbar__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.navbar__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s ease;
}
.navbar__links a:hover { color: var(--gold); }
.navbar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #0A0A0A;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 22px;
  white-space: nowrap;
  transition: filter .2s ease;
}
.navbar__cta:hover { filter: brightness(1.08); }
@media (max-width: 860px) {
  .navbar__links { display: none; }
}
@media (max-width: 420px) {
  .navbar__inner { gap: 12px; }
  .navbar__logo { font-size: 15px; }
  .navbar__cta { padding: 9px 14px; font-size: 13px; }
}

.hero {
  position: relative;
  min-height: auto;
  padding: 44px 0 56px;
  display: flex;
  align-items: center;
  background: var(--night);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
  width: 100%;
}

.hero__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--card-border);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo { order: -1; aspect-ratio: 1 / 1; max-width: 420px; margin: 0 auto; }
}

.hero__content { max-width: 640px; }

.hero__badge {
  display: inline-block;
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 10px 24px;
  margin-bottom: 34px;
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 30px;
  text-shadow: 0 4px 30px rgba(6, 18, 36, 0.45);
}
.hero__title span { display: block; }
.hero__title em {
  font-style: normal;
  color: var(--gold);
}

.hero__sub {
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 38px;
  max-width: 560px;
}
.hero__sub strong { color: var(--gold); }

.hero__bonus { margin-bottom: 42px; }
.hero__bonus-title {
  font-weight: 700;
  font-size: 19px;
  color: var(--white);
  margin-bottom: 16px;
}
.check-list--hero li {
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.btn--hero { box-shadow: 0 12px 40px rgba(255, 178, 36, 0.45); }

/* Каскадное появление hero при загрузке */
.anim {
  opacity: 0;
  transform: translateY(26px);
  animation: heroRise .8s cubic-bezier(.22, .8, .3, 1) forwards;
}
.anim-1 { animation-delay: .1s; }
.anim-2 { animation-delay: .22s; }
.anim-3 { animation-delay: .32s; }
.anim-4 { animation-delay: .42s; }
.anim-5 { animation-delay: .52s; }
.anim-6 { animation-delay: .68s; }
.anim-7 { animation-delay: .82s; }
.anim-8 { animation-delay: .96s; }

@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ЭКРАН 2. ДЛЯ КОГО КУРС
   ============================================================ */
.audience__row {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}
.audience__row:last-child { margin-bottom: 0; }

/* чередование: фото справа во второй полосе */
.audience__row--flip .audience__photo { order: 2; }
.audience__row--flip .audience__text { order: 1; }

.audience__photo {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.audience__photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
}

.audience__text h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 14px;
}

/* Крупная золотая цифра в заголовке аудитории */
.audience__num {
  display: block;
  font-size: 2.1em;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 10px;
}
.audience__dash {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.audience__text p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.audience__text p:last-child { margin-bottom: 0; }
.audience__text strong { color: var(--ink); }

/* ---------- Появление на скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s cubic-bezier(.22, .8, .3, 1), transform .8s cubic-bezier(.22, .8, .3, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 960px) {
  .section { padding: 48px 0; }
  .section-title { margin-bottom: 36px; }

  .audience__row {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }
  .audience__row--flip .audience__photo { order: 0; }
  .audience__row--flip .audience__text { order: 1; }
  .audience__photo img { aspect-ratio: 4 / 3.4; object-position: center 22%; }
}

@media (max-width: 640px) {
  .container { padding-left: 20px; padding-right: 20px; }

  /* Hero моб: текст сверху, фото ниже (уже выставлено в общем .hero__inner на 900px) */
  .hero { padding: 20px 0 28px; }
  .hero__content { max-width: none; }
  .hero__inner { gap: 20px; }
  .hero__photo { max-width: 320px; }

  .hero__badge { font-size: 13px; padding: 7px 14px; margin-bottom: 12px; align-self: center; text-align: center; }
  .hero__title { font-size: clamp(28px, 8.6vw, 36px); margin-bottom: 10px; text-align: center; }
  .hero__title span { display: inline; }
  .hero__sub { font-size: 15px; margin: 0 auto 16px; text-align: center; }
  .hero__bonus { margin-bottom: 22px; }
  .hero__bonus-title { font-size: 16px; text-align: center; margin-bottom: 10px; }
  .check-list--hero li { font-size: 15px; }
  .btn--hero { margin-top: auto; }
  .btn { width: 100%; min-width: 0; }

  .audience__photo img { aspect-ratio: 4 / 4.2; object-position: center 100%; }
}

/* ============================================================
   ОБЩЕЕ ДЛЯ ЭТАПА 2
   ============================================================ */
.section--night { background: var(--night); }
.section-title--light { color: var(--white); }
.section-title--tight { margin-bottom: 16px; }

/* ---------- Главы внутри объединённого блока "Программа курса" ---------- */
.program-chapter { text-align: center; margin-bottom: 36px; }
.program-chapter__label {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #1A1405;
  background: var(--gold);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 14px;
}
.program-chapter__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.25;
  color: var(--ink);
}
.program-chapter__title--light { color: var(--white); }
.program-chapter__hint {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-soft);
}
.container--narrow { max-width: 860px; }

/* центрированная кнопка под секцией */
.section-cta { text-align: center; margin-top: 56px; }

/* подзаголовок бонусов */
.bonus__subtitle {
  text-align: center;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto 64px;
}

/* Светлый вариант чек-листа на тёмном фоне */
.check-list--light li { color: rgba(255, 255, 255, 0.92); }

/* Зона-заглушка под медиа (скрин/видео) */
.media-slot {
  border: 2px dashed rgba(30, 111, 217, 0.35);
  border-radius: 16px;
  background: rgba(30, 111, 217, 0.05);
  min-height: 150px;
  margin-top: 22px;
}
/* под embed-видео с YouTube: пропорции плеера 16:9 */
.media-slot--video {
  aspect-ratio: 16 / 9;
  width: min(640px, 100%);
  min-height: 0;
}

/* ---------- Мокапы устройств ---------- */
.device { position: relative; }
.device > img { position: relative; z-index: 1; width: 100%; }

/* iPhone X: экран в PNG прозрачный — контент подкладывается ПОД рамку */
.device__screen {
  position: absolute;
  z-index: 0;
  left: 5.8%; right: 5.8%; top: 1.9%; bottom: 1.9%;
  background: #1A1A1A;
  border-radius: 14% / 7%;
  overflow: hidden;
}
/* скрин внутри экрана устройства — заполняет, не растягивает персонажа */
.device__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* скрин вписывается ЦЕЛИКОМ (горизонтальный контент в ноутбуке) */
.device__shot--contain { object-fit: contain; }
.device__screen--white { background: #fff; }
/* подпись поверх мокапа — читаемая плашка, не перекрывает суть кадра */
.device__label {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  z-index: 6;
  white-space: nowrap;
  background: rgba(10, 28, 51, 0.86);
  color: #fff;
  font-weight: 700;
  font-size: clamp(11px, 1vw, 15px);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(6, 18, 36, 0.3);
  backdrop-filter: blur(4px);
}
/* подпись над/у верхнего края устройства (где не заслоняют другие мокапы) */
.device__label--top { top: -6%; bottom: auto; }
.device__label--phone {
  font-size: clamp(9px, 0.85vw, 12px);
  padding: 6px 12px;
  bottom: 4%;
  white-space: normal;
  max-width: 150px;
  text-align: center;
  line-height: 1.25;
}
/* подпись на уровне всей группы (для повёрнутого правого айпада) */
.group-label {
  position: absolute;
  z-index: 6;
  left: auto;
  bottom: auto;
  transform: none;
  white-space: normal;
  max-width: 170px;
  text-align: center;
  line-height: 1.25;
}
.group-label--rt { top: 19%; right: 2%; }
/* подпись у верхнего края телефона (на нём) */
.device__label--ontop { top: 5%; bottom: auto; }
.device__screen--dark {
  background: linear-gradient(160deg, #16304F 0%, #0E2138 100%);
}

/* MacBook: экран в PNG непрозрачный — контент накладывается СВЕРХУ */
.device--macbook .device__screen,
.device--solo-macbook .device__screen {
  z-index: 2;
  left: 9.9%; right: 9.9%; top: 6.5%; bottom: 11.3%;
  border-radius: 4px;
}

/* ============================================================
   ЭКРАН 3. ЧТО ДАСТ СТОЙКА
   ============================================================ */
/* Небо в гамме хиро */
.gains {
  background:
    radial-gradient(ellipse 120% 70% at 50% 0%, rgba(255, 178, 36, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, #161616 0%, #0F0F0F 48%, var(--night-deep) 100%);
  overflow: hidden;
}
.gains .container { max-width: 1540px; }

/* Сцена с фиксированными пропорциями: фото + SVG-линии + плашки
   масштабируются как единое целое, привязки не разъезжаются */
.gains__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 2249 / 1528;
}

/* Фото уже с небом и свечением — края растворяются в фон секции,
   низ не трогаем: там гриф уходит в кнопку */
.gains__figure-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

.gains__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.gains__lines polyline {
  fill: none;
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 3.5;
}
.gains__lines circle { fill: var(--gold); }
.gains__lines .gains__dot-halo { fill: rgba(255, 178, 36, 0.3); }

.gains__callout {
  position: absolute;
  transform: translateY(-50%);
  white-space: nowrap;
}
.gains__callout span {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 15px 26px;
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
}

/* левые плашки: правый край на старте линии (x=820 из 2249) */
.gains__callout--l1, .gains__callout--l2, .gains__callout--l3 {
  right: 63.54%;
  text-align: right;
}
/* правые плашки: левый край на старте линии (x=1480 из 2249) */
.gains__callout--r1, .gains__callout--r2, .gains__callout--r3 {
  left: 65.8%;
}

/* вертикали = y старта линии / 1528 */
.gains__callout--l1 { top: 39.3%; }   /* кор — бок на талии */
.gains__callout--l2 { top: 56.3%; }   /* поясница */
.gains__callout--l3 { top: 81.2%; }   /* баланс — кисти на опоре */
.gains__callout--r1 { top: 49.7%; }   /* страхи — голова */
.gains__callout--r2 { top: 65.4%; }   /* связки — плечевой сустав */
.gains__callout--r3 { top: 81.2%; }   /* руки и плечи — предплечье */

/* ---- кнопка начинается там, где кончается гриф ----
   x низа грифа на фото = 51.2% сцены; кнопка наезжает на зону
   растворения низа, чтобы гриф входил в неё без разрыва */
.gains__cta {
  position: relative;
  height: 68px;
  margin-top: 0;
  z-index: 1;
}
.gains__btn {
  position: absolute;
  left: 51.2%;
  top: 0;
  transform: translateX(-50%);
}

/* мобильный список выгод — на десктопе скрыт */
.gains__list { display: none; }

/* ============================================================
   ЭКРАН 4. ЧТО ВНУТРИ
   ============================================================ */
/* Группа мокапов: пропорциональная сцена, масштабируется целиком */
.device-group {
  display: none;
  position: relative;
  aspect-ratio: 1136 / 540;
  margin-bottom: 90px;
  perspective: 1500px;
}
.device-group .device { position: absolute; }
.device-group .device > img { filter: drop-shadow(0 30px 40px rgba(21, 36, 59, 0.28)); }
/* те же 2 мокапа, что убраны на телефоне — коллаж короче и без дублей */
.device-group .device--ipad-land,
.device-group .device--phone-left { display: none; }

.device--macbook {
  width: 56%;
  left: 22%; top: 9.3%;
  z-index: 2;
}
.device--ipad {
  width: 21%;
  left: 3%; top: 14.8%;
  z-index: 1;
  transform: rotateY(18deg);
}
.device--ipad .device__screen {
  left: 5.2%; right: 5.2%; top: 7.3%; bottom: 7.3%;
  z-index: 2;
  border-radius: 6px;
  background: #1A1A1A;
}
.device--phone-left {
  width: 13.5%;
  left: 19.5%; top: 37%;
  z-index: 3;
  transform: rotateY(9deg);
}
.device--phone-right {
  width: 14.5%;
  right: 14%; top: 29.6%;
  z-index: 3;
  transform: rotateY(-11deg);
}
/* айпад горизонтально, сзади справа */
.device--ipad-land {
  width: 17%;
  right: 0; top: 16.7%;
  z-index: 0;
  transform: rotate(90deg);
}
.device--ipad-land .device__screen {
  left: 5.2%; right: 5.2%; top: 7.3%; bottom: 7.3%;
  z-index: 2;
  border-radius: 6px;
  background: #1A1A1A;
}
/* фото-карточки по краям спереди (вместо коробок) */
.device--box-left { left: 0.5%; top: 42%; width: 18%; z-index: 4; }
.device--box-right { right: 0.5%; top: 52%; width: 14.5%; z-index: 4; }
.photo-card {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(21, 36, 59, 0.28);
}
.photo-card img { width: 100%; display: block; }
.device--box-left .photo-card { transform: rotate(-4deg); }
.device--box-right .photo-card { transform: rotate(5deg); }

/* превью урока (16:9) */
.lesson-preview {
  position: relative;
  display: block;
  width: min(640px, 100%);
  aspect-ratio: 16 / 9;
  margin-top: 22px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(21, 36, 59, 0.16);
}
.lesson-preview img { width: 100%; height: 100%; object-fit: cover; }
.lesson-preview__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  border-radius: 50%;
  color: #1A1405;
  box-shadow: 0 8px 26px rgba(21, 36, 59, 0.35);
  transition: transform .25s ease;
}
.lesson-preview { border: none; padding: 0; cursor: pointer; }
.lesson-preview:hover .lesson-preview__play { transform: translate(-50%, -50%) scale(1.08); }
.lesson-preview__play svg { width: 34px; height: 34px; margin-left: 4px; }

/* Карусель видео-кейсов — вертикальные (YouTube Shorts), в ряд */
.case-video-row {
  display: flex;
  gap: 24px;
  margin-top: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 4px 4px 12px;
}
.case-video-item {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
}
.case-video {
  width: 220px;
  aspect-ratio: 9 / 16;
  margin-top: 0;
}
.case-video-caption {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-align: center;
}
#cases .case-video-caption { color: var(--white); }
.case-video-story {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
  text-align: center;
}
#cases .case-video-story { color: rgba(255, 255, 255, 0.72); }
@media (max-width: 640px) {
  .case-video-item, .case-video { width: 42vw; max-width: 220px; }
  /* В блоке "Какие элементы" карточек всего 3 — показываем все сразу */
  .author__skills-row { gap: 10px; }
  .author__skills-row .case-video-item,
  .author__skills-row .case-video { width: 28vw; max-width: 140px; }
}

/* Видео-модалка */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal.is-open { display: flex; }
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 24, 0.85);
  backdrop-filter: blur(4px);
}
.video-modal__inner {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
}
.video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.video-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-modal__close {
  position: absolute;
  top: -52px; right: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
}
.video-modal__close svg { width: 20px; height: 20px; }

/* Модалка с текстом — детали блока курса */
.info-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.info-modal.is-open { display: flex; }
.info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}
.info-modal__inner {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: 84vh;
  overflow-y: auto;
  background: var(--card);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.info-modal__body h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 22px;
}
.info-modal__body .check-list { margin-bottom: 20px; }
.info-modal__body .check-list li {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.info-modal__body .step__result {
  background: rgba(255, 178, 36, 0.12);
  border-radius: 14px;
  padding: 18px 22px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}
.info-modal__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  z-index: 2;
}
.info-modal__close svg { width: 20px; height: 20px; }

/* Краткая карточка блока курса + кнопка "Подробнее" */
.step__teaser {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.step__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
}
.step__more::after { content: '→'; transition: transform .2s ease; }
.step__more:hover::after { transform: translateX(3px); }

/* ---- Состав курса: один блок, 4 строки ---- */
.inside__pack {
  background: var(--card);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 10px 56px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.3);
}
.inside__row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  align-items: start;
  padding: 38px 0;
  border-bottom: 1.5px solid var(--card-border);
}
.inside__row:last-child { border-bottom: none; }

.inside__icon {
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 178, 36, 0.15);
  border-radius: 18px;
  color: var(--gold);
}
.inside__icon svg { width: 34px; height: 34px; }

.inside__row-body p { font-size: 18px; line-height: 1.65; color: var(--ink-soft); }
.inside__row-body strong { color: var(--ink); }

.inside__chain-intro { margin-bottom: 14px; }
.inside__chain span { display: block; padding: 5px 0; color: var(--ink); font-weight: 500; }
.inside__chain em {
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
  margin-right: 10px;
}

/* ============================================================
   ЭКРАН 5. ЛЕСТНИЦА — 5 БЛОКОВ
   ============================================================ */
.steps { background: var(--paper); }

/* Карусель блоков-шагов — горизонтальная прокрутка, карточка-целиком */
.steps__track {
  position: relative;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 10px 4px 20px;
}
.steps__axis, .steps__axis-fill { display: none; }

.step {
  position: relative;
  flex: 0 0 auto;
  width: min(300px, 78vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
  padding-top: 0;
  background: var(--card);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.step--flip .step__card { order: 2; }
.step--flip .step__media { order: 1; }

.step__num {
  align-self: flex-start;
  width: auto; height: auto;
  border: none;
  border-radius: 10px;
  background: var(--gold);
  color: #1A1405;
  padding: 5px 12px;
  margin: 16px 0 0 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
}
.step__num::before { content: 'Блок\00a0'; }
.step__prefix { display: none; }

.step__card {
  background: transparent;
  border-radius: 0;
  padding: 10px 20px 20px;
  box-shadow: none;
}

.step__card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 10px;
}
.step__card .check-list li {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.step__result {
  margin-top: 20px;
  background: rgba(255, 178, 36, 0.14);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}

.step__media {
  background: #1A1A1A;
}
.step__media img {
  width: 100%;
  border-radius: 0;
  aspect-ratio: 4 / 2.8;
  object-fit: contain;
}
.step__media:has(.device) { background: #1A1A1A; padding: 24px 20px; }

.step__media--pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.step__compare img { aspect-ratio: 4 / 5; }

/* стрелка между кадрами: последовательность движений */
.step__seq-arrow {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  border-radius: 50%;
  color: #1A1405;
  box-shadow: 0 8px 26px rgba(21, 36, 59, 0.3);
}
.step__seq-arrow svg { width: 30px; height: 30px; }

/* Итог пути */
.steps__summary {
  max-width: 680px;
  margin: 90px auto 0;
  background: var(--card);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 44px 52px;
  box-shadow: 0 18px 56px rgba(255, 178, 36, 0.14);
}
.steps__summary-title {
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 20px;
}
.steps__summary .check-list li {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.steps__summary .check-list strong { color: var(--ink); }

.device--solo-macbook { width: 100%; }
.device--solo-macbook .device__screen { background: #1A1A1A; }
/* ноутбук сохраняет родную горизонтальную пропорцию (не как фото-блоки) */
.step__media .device--solo-macbook > img {
  aspect-ratio: auto;
  object-fit: fill;
  border-radius: 0;
  width: 100%;
  filter: drop-shadow(0 24px 36px rgba(21, 36, 59, 0.22));
}
.step__media .device--solo-macbook .device__shot--contain {
  aspect-ratio: auto;
  object-fit: contain;
}

/* Блок 2: вертикальная раскладка — текст сверху, широкое окно браузера под ним */
.step--stack { grid-template-columns: 1fr; }
.step--stack .step__card { order: 1; }
.step--stack .step__media {
  order: 2;
  width: 100%;
  max-width: 820px;
  margin: 8px auto 0;
}

/* Браузерное окно — под горизонтальный контент */
.browser-mock {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 56px rgba(21, 36, 59, 0.18);
  border: 1px solid #E3DCCB;
}
.browser-mock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: #ECE7DC;
  border-bottom: 1px solid #DDD5C4;
}
.browser-mock__bar span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #C6BEAC;
}
.browser-mock__bar span:nth-child(1) { background: #E8675A; }
.browser-mock__bar span:nth-child(2) { background: #F0B72E; }
.browser-mock__bar span:nth-child(3) { background: #5BB05A; }
.browser-mock img { width: 100%; display: block; }

/* ============================================================
   ЭКРАН 6. УДОБСТВО
   ============================================================ */
.comfort__row {
  position: relative;
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 90px;
}
.comfort__row > * { min-width: 0; }

.comfort__row:last-child { margin-bottom: 0; }
.comfort__row--flip .comfort__text { order: 2; }
.comfort__row--flip .comfort__media { order: 1; }

.comfort__text p {
  font-size: 20px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}
.comfort__text strong { color: var(--white); }

.comfort__chat-title {
  font-weight: 700;
  color: var(--white) !important;
  margin: 26px 0 16px;
}
.comfort__row .check-list li { font-size: 18px; }

.comfort__row--featured {
  border: 1.5px solid rgba(255, 178, 36, 0.55);
  border-radius: var(--radius);
  padding: 52px 56px;
  grid-template-columns: 1fr;
}

.device--comfort-phone {
  width: min(280px, 100%);
  margin: 0 auto;
}
.device--comfort-phone > img { filter: drop-shadow(0 26px 50px rgba(0, 0, 0, 0.5)); }

/* Карусель реальных скринов разбора техники — свайп/скролл вручную */
.feedback-row {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 4px 4px 12px;
}
.feedback-row img {
  flex: 0 0 auto;
  scroll-snap-align: start;
  height: 420px;
  width: auto;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
@media (max-width: 640px) {
  .feedback-row img { height: 320px; }
}

/* ============================================================
   ЭКРАН 7. АВТОР
   ============================================================ */
.author__row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: start;
}
.author__text { min-width: 0; }
.author__photo {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.author__photo img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
}
.author__text h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 32px;
}
.author__creds {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 48px;
}
.author__creds li {
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 0;
}

.author__skills { margin-top: 44px; text-align: center; }
.author__skills-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 23px);
  color: var(--ink);
  margin-bottom: 20px;
}
.author__skills-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 4px 4px 12px;
}
.author__skills-row .case-video-item { flex: 0 0 auto; }
.author__story p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.author__story strong { color: var(--ink); }
.author__proof {
  margin: 24px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 420px;
}
.author__proof img { width: 100%; display: block; }

.author__videos { display: flex; flex-wrap: wrap; gap: 16px; }
.author__video { width: min(220px, 46%); margin: 22px 0 0; border-radius: 16px; background: #000; }
video.author__video { aspect-ratio: 9 / 16; object-fit: cover; }

/* ============================================================
   ЭКРАН 8. СТОИМОСТЬ
   ============================================================ */
.price {
  background: linear-gradient(180deg, rgba(30, 111, 217, 0.07) 0%, var(--paper) 26%);
}

.price__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.price__card {
  background: var(--card);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 46px 44px;
}
.price__card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 24px;
}
.price__intro {
  font-weight: 700;
  margin-bottom: 18px;
}
.price__list { margin-bottom: 32px; }
.price__list li {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* чего нет в тарифе — серый минус */
.price__list-minus { color: #97A0AF !important; }
.price__list-minus::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23C8CDD6'/%3E%3Cpath d='M7 12h10' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

/* главный пункт дорогого тарифа */
.price__list-gold {
  background: rgba(255, 178, 36, 0.16);
  border-radius: 12px;
  padding: 14px 16px 14px 44px !important;
  font-weight: 700;
  color: var(--ink) !important;
}
.price__list-gold::before { left: 12px !important; top: 16px !important; }

.price__value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 30px;
}
/* актуальная цена — крупная и акцентная, старая — приглушённый якорь сравнения */
.price__value s {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-soft);
}
.price__current {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
}

.price__btn { width: 100%; min-width: 0; }

.price__deadline-note {
  margin-top: 14px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
}
.price__installment {
  margin-top: 8px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
}
.price__email-note {
  margin-top: 28px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- Таймер до повышения цены ---------- */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 40px;
}
.countdown__lead {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  margin-right: 4px;
}
.countdown__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 10px 10px;
  background: rgba(255, 178, 36, 0.12);
  border: 1.5px solid rgba(255, 178, 36, 0.5);
  box-shadow: 0 0 22px rgba(255, 178, 36, 0.25);
  border-radius: 14px;
}
.countdown__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.countdown__unit {
  font-style: normal;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.countdown--hero {
  justify-content: flex-start;
  margin: 0 0 22px;
}
.countdown--hero .countdown__cell { min-width: 52px; padding: 7px 8px; border-radius: 11px; }
.countdown--hero .countdown__num { font-size: 20px; }
.countdown--hero .countdown__lead { font-size: 14px; }
@media (max-width: 640px) {
  .countdown { gap: 7px; row-gap: 8px; margin: 24px 0 44px; }
  .countdown__lead { flex-basis: 100%; text-align: center; margin: 0 0 2px; }
  .countdown__cell { min-width: 52px; padding: 8px 7px; border-radius: 11px; }
  .countdown__num { font-size: 20px; }
  .countdown--hero { justify-content: center; row-gap: 8px; }
  .countdown--hero .countdown__lead { flex-basis: 100%; text-align: center; margin: 0 0 2px; }
  .countdown--hero .countdown__cell { min-width: 52px; padding: 7px 6px; }
  .countdown--hero .countdown__num { font-size: 19px; }
}

.price__card--featured {
  position: relative;
  border: 2.5px solid var(--gold);
  box-shadow: 0 22px 70px rgba(255, 178, 36, 0.22);
  transform: translateY(-22px);
}
.price__ribbon {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 100%);
  color: #1A1405;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  padding: 8px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(255, 178, 36, 0.35);
  white-space: nowrap;
}

/* ============================================================
   ЭКРАН 9. КЕЙСЫ
   ============================================================ */
/* золотой бейдж-результат */
.case-badge {
  display: inline-block;
  background: var(--gold);
  color: #1A1405;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  border-radius: 999px;
  padding: 8px 16px;
}
.case-badge--big { font-size: 17px; padding: 11px 22px; }

/* Кейс-герой: крупные ДО→ПОСЛЕ сверху, текст под ними */
.case-hero {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 18px 50px rgba(21, 36, 59, 0.09);
  margin-bottom: 56px;
}
.case-hero__photos {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 34px;
}
.case-hero__shot { position: relative; margin: 0; border-radius: 18px; overflow: hidden; }
.case-hero__shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.case-hero__shot figcaption {
  position: absolute;
  left: 16px; top: 16px;
  background: rgba(10, 28, 51, 0.82);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 999px;
}
.case-hero__arrow {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #1A1405;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(255, 178, 36, 0.4);
}
.case-hero__arrow svg { width: 32px; height: 32px; }
.case-hero__body { max-width: 820px; }
.case-hero__body .case-badge--big { margin-bottom: 16px; }
.case-hero__body h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--ink);
  margin: 0 0 6px;
}
.case-hero__where { color: var(--azure); font-weight: 500; margin-bottom: 16px; font-size: 18px; }
.case-hero__body p { font-size: 18px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 12px; }

/* Сетка кейсов */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.case-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(21, 36, 59, 0.07);
  display: flex;
  flex-direction: column;
}
.case-card__photo { position: relative; }
.case-card__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.case-card__photo .case-badge { position: absolute; left: 14px; top: 14px; }
.case-card__name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(6, 18, 36, 0.85));
  color: #fff;
}
.case-card__name strong { display: block; font-size: 18px; }
.case-card__name span { font-size: 14px; opacity: 0.85; }
.case-card p { padding: 20px 22px 24px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

/* Лента отзывов */
.reviews { margin-top: 80px; }
.reviews__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--ink);
  text-align: center;
  margin-bottom: 40px;
}
.reviews__title--light { color: var(--white); }
.reviews__marquee {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
}
.reviews__track {
  display: flex;
  gap: 22px;
  width: max-content;
}
.reviews__track img { scroll-snap-align: start; }
.reviews__track img {
  height: 340px;
  width: auto;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(21, 36, 59, 0.12);
  background: var(--white);
  cursor: zoom-in;
  transition: transform .2s ease;
}
.reviews__track img:hover { transform: translateY(-4px); }

/* ---------- Лайтбокс для скриншотов отзывов ---------- */
.image-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.82);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.image-modal.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.image-modal__img {
  max-width: min(520px, 90vw);
  max-height: 86vh;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.image-modal__close {
  position: absolute;
  top: 22px; right: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.image-modal__close:hover { background: var(--gold); color: #0A0A0A; }
.image-modal__close svg { width: 22px; height: 22px; }

.image-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.image-modal__nav:hover { background: var(--gold); color: #0A0A0A; }
.image-modal__nav svg { width: 26px; height: 26px; }
.image-modal__nav--prev { left: 16px; }
.image-modal__nav--next { right: 16px; }
@media (max-width: 640px) {
  .image-modal__nav { width: 44px; height: 44px; }
  .image-modal__nav--prev { left: 6px; }
  .image-modal__nav--next { right: 6px; }
}

/* ============================================================
   ЭКРАН 10. БОНУСЫ
   ============================================================ */
.bonus { background: var(--paper); }
.bonus::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(1136px, calc(100% - 64px));
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 18%, var(--gold) 82%, transparent);
}

.bonus__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: stretch;
}
.bonus__card {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 44px 36px 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* золотой уголок-метка */
.bonus__card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 74px 74px 0;
  border-color: transparent var(--gold) transparent transparent;
}
.bonus__card p {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.bonus__card strong { color: var(--ink); }

/* обложка-коробка бонуса (готовый рендер) */
.bonus__box {
  height: 240px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.bonus__box img {
  max-height: 100%;
  width: auto;
  filter: drop-shadow(0 18px 30px rgba(21, 36, 59, 0.22));
}
/* телефон-обложка (дневник КБЖУ) приведён к высоте коробок */
.bonus__box--phone { align-items: center; }
.device--bonus-phone { width: 132px; margin: 0 auto; }
.device--bonus-phone > img { filter: drop-shadow(0 18px 30px rgba(21, 36, 59, 0.25)); }

/* ============================================================
   ЭКРАН 11. FAQ
   ============================================================ */
.faq__item {
  border-bottom: 1.5px solid var(--card-border);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 26px 64px 26px 0;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '';
  position: absolute;
  right: 8px; top: 50%;
  width: 28px; height: 28px;
  margin-top: -14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 4v20M4 14h20' stroke='%23FFB224' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain;
  transition: transform .3s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__body {
  padding: 4px 0 26px;
}
.faq__body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.faq__body p:last-child { margin-bottom: 0; }

/* ============================================================
   ЭКРАН 12. ЗАКРЫВАЮЩИЙ
   ============================================================ */
/* «За мной наблюдают»: автор крупно по центру с лёгким смещением влево,
   смотрит в камеру; справа — компактный текст и кнопка */
.final {
  position: relative;
  background: linear-gradient(180deg, #1F160A 0%, var(--night) 55%, var(--night-deep) 100%);
  padding-top: 110px;
  overflow: hidden;
}
.final .container { max-width: 1400px; }

/* тёплое свечение за спиной автора, как низкое солнце */
.final__glow {
  position: absolute;
  left: 10%; bottom: -28%;
  width: 820px; height: 820px;
  background: radial-gradient(circle, rgba(255, 178, 36, 0.34) 0%, transparent 62%);
  filter: blur(30px);
  pointer-events: none;
}

.final__inner {
  position: relative;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: end;
}

.final__photo {
  align-self: end;
}
.final__photo img {
  width: 112%;
  max-width: none;
  margin-left: -6%;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(2, 10, 22, 0.6));
}

.final__content {
  align-self: center;
  padding-bottom: 90px;
}

.final__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 26px;
}
.final__text {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 18px;
}
.final__text strong { color: var(--gold); }
.final__decide {
  font-weight: 700;
  font-size: 21px;
  color: var(--white);
  margin: 26px 0 36px;
}

.btn--final {
  height: 76px;
  font-size: 20px;
  min-width: 300px;
}

/* ============================================================
   АДАПТИВ ЭТАПА 2
   ============================================================ */
@media (max-width: 960px) {
  /* Экран 3: схема → фото + список, кнопка ПОД списком */
  .gains .container { display: flex; flex-direction: column; }
  .gains .section-title { order: 0; }
  .gains__stage { order: 1; aspect-ratio: auto; }
  .gains__list { order: 2; }
  .gains__cta { order: 3; }
  .gains__figure-img {
    position: static;
    height: auto;
    width: min(480px, 100%);
    margin: 0 auto;
    display: block;
  }
  .gains__callout, .gains__lines { display: none; }
  .gains__list { margin-bottom: 8px; }
  .gains__cta { height: auto; text-align: center; margin: 28px 0 8px; }
  .gains__btn { position: static; transform: none; }
  .gains__list {
    display: block;
    max-width: 480px;
    margin: 0 auto;
  }
  .gains__list li { font-size: 18px; }
  .gains__note { margin-top: 48px; }

  /* Экран 4: вся композиция мокапов сохраняется, просто масштабируется */
  .device-group { margin-bottom: 48px; }
  .inside__pack { padding: 4px 20px; }
  .inside__row { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; }
  .inside__icon { width: 40px; height: 40px; border-radius: 12px; }
  .inside__icon svg { width: 22px; height: 22px; }
  .inside__row-body p { font-size: 15px; line-height: 1.5; }

  /* Экран 5: карусель уже одинаковая на всех экранах, тут только мелкая доводка */
  .step { width: 82vw; }
  .step__seq-arrow { width: 48px; height: 48px; }
  .step__seq-arrow svg { width: 24px; height: 24px; }
  .steps__summary { margin-top: 56px; padding: 30px 26px; }

  /* Экран 6 */
  .comfort__row { grid-template-columns: 1fr; gap: 40px; margin-bottom: 72px; }
  .comfort__row--flip .comfort__text { order: 1; }
  .comfort__row--flip .comfort__media { order: 2; }
  .comfort__row--featured { padding: 36px 28px; }

  /* Экран 7 */
  .author__row { grid-template-columns: 1fr; gap: 36px; }

  /* Экран 8 */
  .price__grid { grid-template-columns: 1fr; gap: 32px; }
  .price__card--featured { transform: none; order: -1; }
  .price__card { padding: 36px 28px; }

  /* Экран 9: кейс-герой и сетка */
  .case-hero { padding: 18px; }
  .case-hero__photos { gap: 10px; margin-bottom: 22px; }
  .case-hero__arrow { width: 40px; height: 40px; }
  .case-hero__arrow svg { width: 20px; height: 20px; }
  .case-hero__shot figcaption { font-size: 13px; padding: 5px 12px; left: 10px; top: 10px; }
  .case-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .reviews__track img { height: 260px; }

  /* Экран 10 */
  .bonus__grid { grid-template-columns: 1fr 1fr; gap: 22px; }

  /* Экран 12: текст и кнопка сверху, автор снизу по центру */
  .final { padding-top: 70px; }
  .final__inner { grid-template-columns: 1fr; gap: 0; }
  .final__photo { order: 2; }
  .final__photo img { width: min(460px, 96%); margin: 0 auto; }
  .final__content { order: 1; padding-bottom: 48px; }
  .final__glow { left: 50%; transform: translateX(-50%); }
  .btn--final { width: 100%; min-width: 0; }
}

@media (max-width: 640px) {
  .price__value s { font-size: 19px; }
  .price__current { font-size: 36px; }
  .faq__item summary { font-size: 17.5px; padding-right: 52px; }
  .device--comfort-phone { width: min(240px, 80%); }
  .bonus::before { width: calc(100% - 40px); }
  .case-hero__body p { font-size: 16px; }
  .case-card p { font-size: 15px; padding: 16px 16px 20px; }
  .case-card__name strong { font-size: 16px; }
  .reviews__track img { height: 220px; }

  /* Экран 4: гроздь мокапов -> вертикальная лента, подписи под устройствами */
  .device-group {
    position: static;
    aspect-ratio: auto;
    perspective: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
  }
  /* relative (НЕ static!) — чтобы absolute-экран остался внутри рамки */
  .device-group .device { position: relative; inset: auto; margin: 0; }
  /* размеры и трансформы поштучно; margin-bottom — место под absolute-подпись */
  .device-group .device--macbook { width: 86%; max-width: 320px; transform: none; margin-bottom: 28px; }
  .device-group .device--ipad { width: 56%; max-width: 200px; transform: none; margin-bottom: 28px; }
  .device-group .device--phone-left,
  .device-group .device--phone-right { width: 44%; max-width: 158px; transform: none; margin-bottom: 28px; }
  /* горизонтальный планшет остаётся повёрнутым (контент предрисован под поворот) */
  .device-group .device--ipad-land { width: 46%; max-width: 168px; transform: rotate(90deg); margin: 22px 0; }
  /* inline-подписи: absolute ПОД рамкой, вне высоты устройства (экран остаётся в рамке) */
  .device-group .device__label {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%; right: auto; bottom: auto;
    transform: translateX(-50%);
    display: block;
    width: max-content;
    max-width: 150px;
    margin: 0;
    white-space: normal;
    text-align: center;
  }
  /* подпись повёрнутого айпада — отдельный flex-элемент-капшен */
  .device-group .group-label {
    position: static;
    inset: auto;
    transform: none;
    display: block;
    width: max-content;
    max-width: 200px;
    margin: 8px auto 0;
    white-space: normal;
    text-align: center;
  }
  /* на телефоне оставляем 3 самых показательных мокапа вместо 5 — меньше листать */
  .device-group .device--ipad-land,
  .device-group .device--phone-left { display: none; }
  .device-group .device--ipad      { order: 1; }
  .device-group .device--macbook   { order: 2; }
  .device-group .device--phone-right { order: 3; }
  .device-group .group-label--rt   { order: 4; margin-top: 0; }

  /* На самом узком экране вообще убираем коллаж мокапов — то же самое
     уже сказано текстом ниже, а картинки сильно растягивают блок */
  .device-group { display: none; }

  /* Экран 10: бонусы в один столбец */
  .bonus__grid { grid-template-columns: 1fr; gap: 22px; max-width: 360px; margin: 0 auto; }
  .bonus__box { height: 210px; }
}

/* ---------- Уважение к reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .anim { animation: none; opacity: 1; transform: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
