/* ============================================================
   ЧИТ-КОД ВСЕЛЕННОЙ — стили

   Светлая гамма: молочный фон #FAF8F2, чернила #2D2B1F,
   бежевые линии #C8BCA3, бордовый акцент #7B1A18.

   Бордовый — только кнопки, цена и активные линии графики
   (и фон полосы «Все эти знания…»): в зоне видимости он должен
   быть единственным пятном.
   Бежевый — только фон и линии, текстом не используется.

   1. Токены
   2. База
   3. Кнопки и утилиты
   4. Хедер
   5. Секции — общее
   6. Узнаваемые ситуации и «опыт уже есть»
   7. Как это сделать — практики соединяются в систему
   7.5 Как будем двигаться — три витка
   8. Кто проведёт тебя по этому пути
   9. Программа
   9.5 С чем выходишь из курса
   10. Что входит
   10.5 «Все эти знания становятся частью твоей жизни»
   11. Отзывы
   12. Стоимость и бонусы
   13. Вопросы
   14. Финал
   15. Подвал
   16. Модальное окно (оплата)
   17. Отзыв крупным планом
   18. Адаптив
   ============================================================ */

/* ------------------------------------------------------------
   1. Токены

   Вся гамма собрана здесь: чтобы перекрасить сайт, достаточно
   поменять значения в этом блоке.
   ------------------------------------------------------------ */
:root {
  /* Фон — молочный. Бордовый в фоне крупных блоков не появляется. */
  --bg: #FAF8F2;
  --bg-deep: #EFEAE0;                    /* кромки секций и подвал */
  --bg-deep-0: rgba(239, 234, 224, 0);   /* тот же цвет с нулевой прозрачностью */

  /* Текст. Контраст посчитан относительно #FAF8F2 */
  --ink: #2D2B1F;                        /* 13,39 : 1 — AAA */
  --ink-muted: #545454;                  /* 7,13 : 1 — AA основной текст, AAA крупный */
  --ink-faint: #545454;                  /* светлее не уходим: бежевый текстом не используется */

  /* Акцент. Только кнопки, цена и активные линии графики —
     в зоне видимости бордовый должен быть единственным пятном. */
  --bordo: #7B1A18;                      /* 9,87 : 1 — AAA */
  --bordo-dark: #66120F;                 /* наведение */

  /* Бежевый — только фон и линии. Текстом не использовать ни при каком размере. */
  --beige: #C8BCA3;                      /* 1,77 : 1 */

  /* Заголовки: градиент в пределах чернил, без бордо */
  --gradient-title: linear-gradient(271.8deg, #2D2B1F 0%, #4C4837 100%);

  /* Заливка акцентных элементов */
  --accent-fill: var(--bordo);
  --accent-fill-hover: var(--bordo-dark);
  --btn-ring: linear-gradient(252deg, rgba(250, 248, 242, .5) 0%, rgba(250, 248, 242, 0) 100%);

  /* Карточки */
  --card: linear-gradient(180deg, rgba(255, 253, 248, .96) 0%, rgba(249, 246, 238, .86) 100%);
  --card-solid: #EFEAE0;
  --card-line: rgba(200, 188, 163, .9);
  --card-line-soft: rgba(200, 188, 163, .5);

  /* Тени — тёплые и мягкие */
  --shadow-soft: 0 24px 60px -36px rgba(45, 43, 31, .3);
  --shadow-lift: 0 40px 80px -46px rgba(45, 43, 31, .4);

  /* Светлые плашки */
  --chip: linear-gradient(180deg, rgba(255, 253, 248, .95) 0%, rgba(242, 237, 227, .95) 100%);

  /* Шрифты */
  --font-display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Ритм */
  --container: 1440px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --section-y: clamp(44px, 10vw, 130px);

  --radius: 32px;
  --radius-sm: 16px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------
   2. База
   ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 188, 163, .95) transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s var(--ease), opacity .25s var(--ease);
}

button { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--bordo);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 700;
}
.skip-link:focus { left: 16px; }

/* Появление при прокрутке: блок ждёт своей очереди невидимым (см. script.js) */
.is-reveal-pending { opacity: 0; }

/* ------------------------------------------------------------
   3. Кнопки и утилиты
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Градиент на тексте: в пределах чернил, бордовый в заголовки не заходит */
.gradient-text {
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Фиолетовая кнопка: заливка + светлая обводка,
   затухающая к левому нижнему углу */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 36px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #8C2321 0%, var(--bordo) 45%, #6C1512 100%);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: clamp(.75rem, .95vw, .875rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 14px 30px -18px rgba(123, 26, 24, .6);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--btn-ring);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #7C1C1A 0%, var(--bordo-dark) 45%, #5C110E 100%);
  box-shadow: 0 20px 38px -18px rgba(123, 26, 24, .55);
}
.btn:active { transform: translateY(0); }

.btn__icon { flex: none; }

/* Стрелка в кнопке — отдельным кружком, как в макете */
.btn__arrow {
  flex: none;
  padding: 5px;
  margin: -5px -12px -5px 0;
  border: 1px solid rgba(250, 248, 242, .45);
  border-radius: 50%;
  box-sizing: content-box;
  transition: transform .3s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Кнопка «обводкой»: та же пилюля, но без заливки —
   второстепенное действие рядом с основной бордовой кнопкой. */
.btn--outline {
  background: rgba(255, 253, 248, .8);
  color: var(--bordo);
  box-shadow: none;
  border: 1px solid var(--card-line);
}
.btn--outline::after { display: none; }
.btn--outline:hover {
  background: rgba(123, 26, 24, .07);
  filter: none;
  box-shadow: var(--shadow-soft);
}

/* ------------------------------------------------------------
   4. Хедер и первый экран
   ------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: clamp(26px, 3vw, 46px);
  background: var(--bg) url("assets/hero-bg.webp") center top / cover no-repeat;
}

/* Баннер справа. Резкой границы у фото быть не должно: маска гасит
   левый край и низ, а поверх лежит ещё и заливка цветом фона. */
/* Баннер занимает всю ширину экрана, а не свою коробку справа: иначе
   на краю коробки виден шов. Границу рисует только маска. */
.hero__banner {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Маска стоит на обёртке, а не на самой картинке: Safari при маске
     на <img> перестаёт соблюдать object-fit и растягивает фото. */
  -webkit-mask-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, .55) 42%, #000 62%),
    linear-gradient(180deg, #000 56%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, .55) 42%, #000 62%),
    linear-gradient(180deg, #000 56%, rgba(0, 0, 0, 0) 100%);
  mask-composite: intersect;
}
.hero__banner picture,
.cta__banner picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 88% center;
}
/* Подстраховка на случай, если маски не поддерживаются */
.hero__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 22%, rgba(250, 248, 242, .5) 40%, rgba(250, 248, 242, 0) 64%),
    linear-gradient(180deg, rgba(250, 248, 242, 0) 55%, var(--bg) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Шапка: подпись слева, меню по центру, плашка справа ---- */
.topbar {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 40px);
  padding-top: clamp(18px, 2.8vw, 38px);
}

.topbar__brand {
  display: grid;
  justify-items: start;
  gap: 5px;
  flex: none;
}
.topbar__logo {
  width: clamp(132px, 14vw, 196px);
  height: auto;
}
.topbar__tagline {
  font-size: clamp(.58rem, .78vw, .7rem);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.topbar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 32px);
  margin-inline: auto;
}
.topbar__nav a {
  font-size: clamp(.66rem, .8vw, .74rem);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.topbar__nav a:hover { color: var(--bordo); }

/* Плашка курса — обводка, размер и посадка как в макете */
.topbar__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 12px 24px;
  border: 1px solid rgba(123, 26, 24, .35);
  border-radius: 999px;
  background: var(--chip);
  box-shadow: 0 10px 26px -18px rgba(45, 43, 31, .5);
  font-size: clamp(.62rem, .82vw, .74rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: var(--bordo);
}
.topbar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bordo);
  box-shadow: 0 0 0 4px rgba(123, 26, 24, .18);
  animation: pulse-dot 2.4s var(--ease) infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(123, 26, 24, .18); }
  50% { box-shadow: 0 0 0 8px rgba(123, 26, 24, .04); }
}

/* ---- Текстовый блок ---- */
.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-top: clamp(34px, 6vw, 96px);
}

.hero__title {
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1.02;
}

/* Подзаголовок — основной шрифт, бордовый: это второй акцент экрана
   после кнопки, поэтому набран не дисплейным шрифтом. */
.hero__sub {
  margin-top: clamp(12px, 1.8vw, 22px);
  font-size: clamp(1.05rem, 2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--bordo);
}

.hero__lead {
  max-width: 40ch;
  margin-top: clamp(14px, 1.8vw, 22px);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink);
}

/* «Старт 25 сентября · 10 недель · 24 кода · 4 живых эфира» */
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 6px;
  margin-top: clamp(16px, 2vw, 24px);
  font-size: clamp(.7rem, .88vw, .8rem);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero__facts li { display: inline-flex; align-items: center; }
.hero__facts li + li::before {
  content: "·";
  margin: 0 .75em;
  color: var(--ink-muted);
}
.hero__facts b { font-weight: 700; color: var(--ink); }
.hero__text {
  max-width: 44ch;
  margin-top: clamp(10px, 1.2vw, 16px);
  font-size: clamp(.92rem, 1.2vw, 1.06rem);
  line-height: 1.7;
  color: var(--ink-muted);
}

.hero__cta { margin-top: clamp(22px, 3vw, 40px); }

/* ---- Полоса преимуществ ---- */
.perks {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 26px);
  margin-top: clamp(38px, 6vw, 84px);
  padding-top: clamp(20px, 2.6vw, 32px);
  border-top: .8px solid var(--card-line-soft);
}

.perk {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon text";
  align-items: start;
  gap: 3px clamp(10px, 1.2vw, 16px);
}
.perk + .perk {
  padding-left: clamp(14px, 1.8vw, 26px);
  border-left: .8px solid var(--card-line-soft);
}
.perk__icon { grid-area: icon; }
.perk b {
  grid-area: title;
  font-size: clamp(.7rem, .88vw, .8rem);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--ink);
}
.perk span {
  grid-area: text;
  font-size: clamp(.74rem, .92vw, .84rem);
  line-height: 1.5;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------
   4.5 Разделитель со звездой — для выделенных фраз
   ------------------------------------------------------------ */
.stardiv {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: clamp(16px, 2vw, 24px);
}
.stardiv__line {
  width: clamp(44px, 7vw, 96px);
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 188, 163, 0) 0%, var(--beige) 100%);
}
.stardiv__line:last-child { transform: scaleX(-1); }

/* ------------------------------------------------------------
   5. Секции — общее
   ------------------------------------------------------------ */
.section {
  position: relative;
  padding-block: var(--section-y);
  background: var(--bg) url("assets/section-bg.webp") center / cover no-repeat;
}
.section + .section { background-position: center bottom; }

/* Верхняя и нижняя кромки высветляются — разделители между секциями */
.section::before,
.section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(60px, 7vw, 100px);
  pointer-events: none;
}
.section::before { top: 0; background: linear-gradient(0deg, var(--bg-deep-0) 0%, var(--bg-deep) 100%); }
.section::after { bottom: 0; background: linear-gradient(180deg, var(--bg-deep-0) 0%, var(--bg-deep) 100%); }

.section > .container { position: relative; z-index: 1; }

.section__head {
  max-width: 900px;
  margin: 0 auto clamp(32px, 4.5vw, 56px);
  text-align: center;
}
.section__title { font-size: clamp(1.8rem, 4.2vw, 3.5rem); }
.section__lead {
  margin-top: clamp(14px, 1.8vw, 22px);
  font-size: clamp(.9rem, 1.3vw, 1.1rem);
  font-weight: 400;
  line-height: 1.6;
  text-wrap: balance;
  color: var(--ink-muted);
}

/* Выделенный вывод: подложка со звездой */
.closing {
  position: relative;
  max-width: 860px;
  margin: clamp(34px, 4.4vw, 60px) auto 0;
  padding: clamp(24px, 3.2vw, 40px) clamp(22px, 4vw, 60px);
  border: 1px solid var(--card-line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #FFFDF8 0%, #F7F2E8 100%);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.closing .stardiv { margin-bottom: clamp(12px, 1.6vw, 18px); }
.closing__text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 2.05rem);
  line-height: 1.32;
  text-wrap: balance;
  color: var(--ink);
}

/* Строка-вывод в конце секции */
.section__closing {
  max-width: 780px;
  margin: clamp(34px, 4.4vw, 56px) auto 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.9rem);
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
}

/* ------------------------------------------------------------
   6. Узнаваемые ситуации и «опыт уже есть»
   ------------------------------------------------------------ */
/* Заголовок-предложение: дисплейный шрифт без капса —
   длинная фраза в верхнем регистре читается тяжело */
.section__title--sentence {
  max-width: 820px;
  margin-inline: auto;
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  line-height: 1.22;
  text-transform: none;
  text-wrap: balance;
  color: var(--ink);
}
.section__subtitle {
  margin-top: clamp(10px, 1.4vw, 16px);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.6rem);
  line-height: 1.25;
  color: var(--ink);
}
.section__lead--lead-in {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  color: var(--ink-muted);
}

.situations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  max-width: 1080px;
  margin-inline: auto;
}
.situation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 1.8vw, 20px);
  padding: clamp(20px, 2.4vw, 30px);
  border: .8px solid var(--card-line-soft);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.situation__icon {
  display: grid;
  place-items: center;
  width: clamp(42px, 3.8vw, 50px);
  height: clamp(42px, 3.8vw, 50px);
  border: .8px solid var(--card-line-soft);
  border-radius: 50%;
  background: linear-gradient(180deg, #FDFAF4 0%, #F7F1E6 100%);
}
.situation__text {
  font-size: clamp(.98rem, 1.28vw, 1.12rem);
  font-weight: 600;
  line-height: 1.5;
  text-wrap: pretty;
  color: var(--ink);
}

/* «Опыт уже есть»: фон секции уходит на пару тонов темнее к низу */
.section--experience {
  background: linear-gradient(180deg, var(--bg) 0%, #F6F1E7 55%, #F1EADD 100%);
}

.familiar {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 2.6vw, 44px);
  padding: clamp(18px, 2.4vw, 34px);
  border: .8px solid var(--card-line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #FFFDF8 0%, #FDFAF4 100%);
  box-shadow: var(--shadow-soft);
}

/* Фон подложки совпадает с фоном самой картинки — стыка не видно */
.familiar__fig {
  position: relative;
  padding: clamp(10px, 1.4vw, 18px);
  border-radius: var(--radius-sm);
  background: #F7F2EB;
}
.familiar__fig img {
  width: 100%;
  height: auto;
}

/* Подписи к веткам лежат поверх схемы */
.familiar__label {
  position: absolute;
  font-size: clamp(.72rem, .95vw, .85rem);
  line-height: 1.45;
}
.familiar__label--best {
  top: 7%;
  left: 8%;
}
.familiar__label--best b {
  display: block;
  font-weight: 700;
  color: var(--bordo);
}
.familiar__label--best span { color: var(--ink-muted); }

.experience__copy { padding: clamp(4px, 1vw, 14px) clamp(4px, 1.6vw, 24px); }
.experience__copy p {
  font-size: clamp(.95rem, 1.2vw, 1.08rem);
  line-height: 1.7;
  color: var(--ink-muted);
}
.experience__copy p + p { margin-top: 14px; }
.experience__copy .experience__turn {
  margin-top: clamp(20px, 2.4vw, 28px);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.3;
  color: var(--bordo);                 /* «Нет, это было не просто везение» */
}

/* ------------------------------------------------------------
   7. Как это сделать — практики соединяются в систему

   По умолчанию схема нарисована целиком: так она выглядит без JS
   и при «уменьшении движения». script.js заранее ставит
   .is-waiting — связи пунктирные и разорванные — и снимает класс,
   когда схема на экране: пунктир гаснет, рёбра прорисовываются
   бордовым, опоры выпрямляются, в центре появляется «ты»,
   и к нему сходятся линии.
   ------------------------------------------------------------ */
.connect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(22px, 4vw, 64px);
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(24px, 3.4vw, 48px);
  border: .8px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.connect__copy { order: 1; }
.connect__lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  line-height: 1.28;
  text-wrap: balance;
  color: var(--ink);
}
.connect__text {
  margin-top: clamp(14px, 1.8vw, 20px);
  font-size: clamp(.95rem, 1.2vw, 1.08rem);
  line-height: 1.7;
  color: var(--ink-muted);
}
/* Выделение внутри текста — бордовым, как активные линии схемы */
.text-accent {
  font-weight: 700;
  color: var(--bordo);
}
.connect__key {
  margin-top: clamp(18px, 2.2vw, 26px);
  padding-top: clamp(14px, 1.8vw, 18px);
  border-top: .8px solid var(--card-line-soft);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

/* Схема: проценты у опор совпадают с координатами viewBox 200 × 112.
   Поля по бокам — место для плашек, которые стоят на концах линий. */
.connect__figure {
  order: 2;
  position: relative;
  width: calc(100% - 2 * clamp(26px, 2.6vw, 36px));
  aspect-ratio: 200 / 112;
  margin: clamp(16px, 2.2vw, 26px) auto;
}
.connect__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
}
.connect__broken path {
  stroke: var(--beige);
  stroke-width: .9;
  stroke-dasharray: 2.2 3;
  opacity: 0;
}
/* Длина каждой линии = 1 (pathLength): смещение штриха на 1 прячет линию */
.connect__edge {
  stroke: var(--bordo);
  stroke-width: 1.1;
  stroke-dasharray: 1 2;
}
.connect__spoke {
  stroke: #B99C63;
  stroke-width: .75;
  stroke-dasharray: 1 2;
}

.connect__node {
  position: absolute;
  z-index: 1;
  padding: 8px 15px;
  border: .8px solid rgba(123, 26, 24, .4);
  border-radius: 999px;
  background: #FFFDF8;
  box-shadow: 0 10px 24px -16px rgba(45, 43, 31, .45);
  font-size: clamp(.6rem, .78vw, .72rem);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  transform: translate(-50%, -50%) translate(0, 0) rotate(0deg);
}
.connect__node--a { left: 50%; top: 16.07%; }
.connect__node--b { left: 20%; top: 83.93%; }
.connect__node--c { left: 80%; top: 83.93%; }
.connect__node--you {
  left: 50%;
  top: 61.6%;
  display: grid;
  place-items: center;
  width: clamp(30px, 11%, 46px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bordo);
  box-shadow: 0 0 0 6px rgba(123, 26, 24, .12);
  font-family: var(--font-display);
  font-size: clamp(.78rem, 1vw, .95rem);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bg);
  transform: translate(-50%, -50%) scale(1);
}

/* Исходное состояние: связей нет */
.connect.is-waiting .connect__broken path { opacity: 1; }
.connect.is-waiting .connect__edge,
.connect.is-waiting .connect__spoke { stroke-dashoffset: 1.02; opacity: 0; }
.connect.is-waiting .connect__node { border-color: var(--card-line); box-shadow: none; color: var(--ink-muted); }
.connect.is-waiting .connect__node--a { transform: translate(-50%, -50%) translate(-10px, -6px) rotate(-5deg); }
.connect.is-waiting .connect__node--b { transform: translate(-50%, -50%) translate(-8px, 8px) rotate(4deg); }
.connect.is-waiting .connect__node--c { transform: translate(-50%, -50%) translate(10px, 10px) rotate(-3deg); }
.connect.is-waiting .connect__node--you { opacity: 0; transform: translate(-50%, -50%) scale(.4); }

/* Связывание: переходы объявлены только для итогового состояния,
   поэтому .is-waiting при загрузке ставится мгновенно */
.connect:not(.is-waiting) .connect__broken path { transition: opacity .45s var(--ease); }
.connect:not(.is-waiting) .connect__edge,
.connect:not(.is-waiting) .connect__spoke { transition: stroke-dashoffset .75s var(--ease), opacity 0s; }
.connect:not(.is-waiting) .connect__edge--1 { transition-delay: .2s; }
.connect:not(.is-waiting) .connect__edge--2 { transition-delay: .42s; }
.connect:not(.is-waiting) .connect__edge--3 { transition-delay: .64s; }
.connect:not(.is-waiting) .connect__spoke--1 { transition-delay: 1.45s; }
.connect:not(.is-waiting) .connect__spoke--2 { transition-delay: 1.6s; }
.connect:not(.is-waiting) .connect__spoke--3 { transition-delay: 1.75s; }
.connect:not(.is-waiting) .connect__node {
  transition: transform .9s var(--ease) .15s, border-color .6s var(--ease) .5s,
              color .6s var(--ease) .5s, box-shadow .6s var(--ease) .5s;
}
.connect:not(.is-waiting) .connect__node--you {
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1) 1.15s, opacity .25s var(--ease) 1.15s;
}

/* ------------------------------------------------------------
   7.5 Как будем двигаться — три витка
   ------------------------------------------------------------ */
.trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  align-items: stretch;
}

.tcard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(26px, 3vw, 38px) clamp(22px, 2.4vw, 30px);
  border: .8px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.tcard__icon { flex: none; overflow: visible; }   /* искры в углах чуть выходят за квадрат — зато не лежат на кольцах */
/* Кольца витка вращаются, точка бежит по активному кольцу, искры мерцают.
   С каждым витком активных колец на одно больше. */
.tcard__icon .orbit,
.tcard__icon .dash {
  transform-box: view-box;
  transform-origin: center;
  animation: spin 26s linear infinite;
}
.tcard__icon .orbit--1 { animation-duration: 7s; }
.tcard__icon .orbit--2 { animation-duration: 11s; animation-direction: reverse; }
.tcard__icon .orbit--3 { animation-duration: 16s; }
.tcard__icon .dash--2 { animation-duration: 34s; animation-direction: reverse; }
.tcard__icon .dash--3 { animation-duration: 44s; }
.tcard__icon .twinkle { animation: twinkle 3.4s var(--ease) infinite; }
.tcard:hover .tcard__icon .orbit { animation-duration: 3.5s; }

@keyframes spin { to { transform: rotate(360deg); } }
/* Только прозрачность: CSS-transform затёр бы transform-атрибут,
   которым искра поставлена на место, и она уехала бы в угол иконки */
@keyframes twinkle {
  0%, 100% { opacity: .2; }
  50% { opacity: 1; }
}
.tcard__title {
  font-size: clamp(.95rem, 1.4vw, 1.15rem);
  line-height: 1.45;
  color: var(--ink);
}
.tcard__text {
  font-size: clamp(.88rem, 1.15vw, 1rem);
  line-height: 1.6;
  color: var(--ink-muted);
}
/* Второй абзац витка — вывод: плашкой внизу карточки, у всех витков на одной высоте */
.tcard__next {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #F4EEE3;
  font-size: clamp(.86rem, 1.1vw, .97rem);
  line-height: 1.6;
  color: var(--ink);
}

/* ------------------------------------------------------------
   8. Кто я — портрет и текст в одной карточке
   ------------------------------------------------------------ */
.about {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3.4vw, 56px);
  padding: clamp(22px, 2.6vw, 40px);
  border: .8px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.about__figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--card-solid);
}
.about__figure img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
}

.about__title {
  margin-bottom: clamp(14px, 1.8vw, 22px);
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  text-wrap: balance;
}
.about__copy b { font-weight: 700; color: var(--ink); }
.about__copy p {
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
  line-height: 1.65;
  color: var(--ink-muted);
}
.about__copy p + p { margin-top: 14px; }
.about__copy p:first-of-type {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.4;
  color: var(--ink);
}
/* Итоговая фраза — плашкой с бордовой чертой, как выводы в карточках витков */
.about__copy .about__key {
  margin-top: clamp(18px, 2.2vw, 24px);
  padding: 14px 18px;
  border-left: 3px solid var(--bordo);
  border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
  background: #F4EEE3;
  font-weight: 600;
  color: var(--ink);
}

/* Подпись под рассказом о себе */
.about__sign {
  width: clamp(150px, 17vw, 220px);
  height: auto;
  margin-top: clamp(18px, 2.4vw, 30px);
  opacity: .92;
}

/* ------------------------------------------------------------
   9. Программа
   ------------------------------------------------------------ */
/* Плашки «10 недель · 3 витка · 24 кода · 4 живых эфира» */
.program__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(22px, 2.6vw, 32px);
}
.program__meta li {
  padding: 10px 22px;
  border: .8px solid var(--card-line-soft);
  border-radius: 999px;
  background: var(--chip);
  font-size: clamp(.72rem, 1vw, .85rem);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: clamp(24px, 3.2vw, 38px);
}

.tabs__expand {
  padding: 12px 24px;
  border: .8px dashed var(--card-line);
  border-radius: 999px;
  background: none;
  color: var(--ink-muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.tabs__expand:hover { color: var(--ink); border-color: var(--bordo); }

/* Аккордеон витков */
.weeks {
  display: grid;
  gap: 12px;
  max-width: 960px;
  margin-inline: auto;
}

.week {
  border: .8px solid var(--card-line-soft);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.week:hover { border-color: var(--card-line); }
/* Открытый виток отмечен бордовым номером — рамку держим бежевой,
   чтобы бордовый не расползался по большому блоку. */
.week[open] { border-color: var(--beige); }

.week__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 2.2vw, 24px);
  padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.4vw, 28px);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.week__head::-webkit-details-marker { display: none; }
.week__head::marker { content: ""; }

/* Номер витка + подпись «виток» */
.week__num {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  width: 58px;
  height: 58px;
  border: .8px solid var(--card-line-soft);
  border-radius: 16px;
  color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.week__num-value {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 400;
  line-height: 1;
}
.week__num-label {
  font-family: var(--font-body);
  font-size: .5rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
  opacity: .7;
}
.week[open] .week__num {
  background: var(--accent-fill);
  border-color: transparent;
  color: var(--bg);
}

.week__title {
  font-family: var(--font-display);
  font-size: clamp(.82rem, 1.35vw, 1rem);
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink);
}

/* Кружок «плюс/минус» — общий для программы и вопросов */
.acc__icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border: .8px solid var(--card-line);
  border-radius: 50%;
  transition: transform .35s var(--ease), border-color .3s var(--ease);
}
.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1.5px;
  background: var(--ink);
  translate: -50% -50%;
  transition: opacity .3s var(--ease);
}
.acc__icon::after { rotate: 90deg; }
.week[open] .acc__icon { transform: rotate(180deg); border-color: var(--card-line); }
.qa[open] .acc__icon { transform: rotate(180deg); border-color: var(--bordo); }
.week[open] .acc__icon::after,
.qa[open] .acc__icon::after { opacity: 0; }

/* Коды внутри витка */
.lessons { padding: 0 clamp(18px, 2.4vw, 28px) clamp(20px, 2.4vw, 28px); }
.lessons li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 4px clamp(14px, 1.6vw, 20px);
  padding: 15px 0;
  border-top: .8px solid var(--card-line-soft);
}
.lesson__tag {
  grid-row: span 2;
  padding-top: 3px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.lesson__name {
  font-size: clamp(.88rem, 1.2vw, 1rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.lesson__text {
  font-size: clamp(.82rem, 1.1vw, .94rem);
  line-height: 1.55;
  color: var(--ink-muted);
}

.week[open] .lessons { animation: reveal .4s var(--ease); }
@keyframes reveal {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------
   9.5 С чем выходишь из курса
   ------------------------------------------------------------ */
.results {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(28px, 5vw, 80px);
}
.results__head {
  position: sticky;
  top: 32px;
}
.results__head .section__title { text-align: left; }
.results__lead {
  margin-top: clamp(14px, 1.8vw, 22px);
  font-size: clamp(.95rem, 1.25vw, 1.1rem);
  line-height: 1.7;
  color: var(--ink-muted);
}
.results__list { display: grid; }
.result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: clamp(18px, 2.2vw, 26px) 0;
  border-top: .8px solid var(--card-line-soft);
}
.result:first-child { border-top: 0; padding-top: 0; }
.result__icon { margin-top: 3px; }
.result__title {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 700;
  line-height: 1.4;
  text-transform: none;
  color: var(--ink);
}
.result__text {
  margin-top: 6px;
  font-size: clamp(.9rem, 1.1vw, 1rem);
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------
   10. Что входит
   ------------------------------------------------------------ */
.incs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.ic {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 2.8vw, 34px) clamp(20px, 2.4vw, 28px);
  border: .8px solid var(--card-line-soft);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s var(--ease);
}
.ic:hover {
  transform: translateY(-4px);
  border-color: var(--card-line);
  box-shadow: var(--shadow-lift);
}
.ic__icon { flex: none; }
.ic__title {
  font-size: clamp(.9rem, 1.25vw, 1.05rem);
  line-height: 1.45;
  color: var(--ink);
}
.ic__text {
  font-size: clamp(.85rem, 1.12vw, .97rem);
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------
   10.5 «Все эти знания становятся частью твоей жизни»

   Самое сильное выделение на странице: полоса во всю ширину
   с бордовым фоном — единственный крупный блок, где бордовый
   идёт в фон. Текст молочный с золотом.
   ------------------------------------------------------------ */
.statement {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 124px);
  background:
    radial-gradient(60% 85% at 50% 50%, rgba(255, 214, 170, .16) 0%, rgba(255, 214, 170, 0) 72%),
    linear-gradient(180deg, var(--bordo) 0%, var(--bordo-dark) 100%);
  text-align: center;
}
.statement__inner { position: relative; z-index: 1; }
.statement .stardiv { margin: 0; }
.statement .stardiv__line {
  width: clamp(56px, 12vw, 170px);
  background: linear-gradient(90deg, rgba(232, 208, 160, 0) 0%, rgba(232, 208, 160, .85) 100%);
}
.statement__text {
  max-width: 1200px;
  margin: clamp(20px, 2.6vw, 34px) auto;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5.4vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
  background: linear-gradient(180deg, #FFFDF8 20%, #E6D3A8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.statement__spark {
  position: absolute;
  opacity: .25;
  animation: twinkle 3.6s var(--ease) infinite;
}
.statement__spark--1 { top: 16%; left: 7%; }
.statement__spark--2 { top: 70%; left: 13%; animation-delay: 1.2s; }
.statement__spark--3 { top: 20%; right: 9%; animation-delay: .6s; }
.statement__spark--4 { top: 74%; right: 15%; animation-delay: 1.9s; }
.statement__spark--5 { top: 46%; left: 3%; animation-delay: 2.6s; }

/* ------------------------------------------------------------
   11. Отзывы — лента со стрелками

   Лента в одну линию: листается стрелками и свайпом и уходит за
   края экрана — видно, что справа продолжение. В карточке один
   длинный скриншот или два коротких, поэтому карточки почти одной
   высоты, а текст скриншотов читается без увеличения. По клику
   отзыв открывается крупно (раздел 17).
   ------------------------------------------------------------ */
.slider {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider__track {
  display: flex;
  align-items: stretch;
  gap: clamp(14px, 1.4vw, 20px);
  flex: 1;
  min-width: 0;
  padding: 8px var(--gutter) 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 188, 163, .95) transparent;
}
.slider__track::-webkit-scrollbar { height: 6px; }
.slider__track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(200, 188, 163, .95);
}

/* Карточка ленты: один длинный скриншот или два коротких столбиком */
.slide {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: clamp(260px, 22vw, 320px);
  scroll-snap-align: start;
}

.review__btn {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: .8px solid var(--card-line-soft);
  border-radius: var(--radius-sm);
  background: var(--card-solid);
  box-shadow: 0 16px 36px -26px rgba(45, 43, 31, .35);
  cursor: zoom-in;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.review__btn:hover {
  transform: translateY(-4px);
  border-color: var(--bordo);
  box-shadow: 0 24px 44px -28px rgba(45, 43, 31, .45);
}
.review__btn img {
  display: block;
  width: 100%;
  height: auto;
}

.slider__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(40px, 3.4vw, 52px);
  height: clamp(40px, 3.4vw, 52px);
  margin-inline: max(0px, calc(var(--gutter) - 56px));
  border: .8px solid var(--card-line);
  border-radius: 50%;
  background: rgba(255, 253, 248, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), opacity .25s var(--ease);
}
.slider__arrow:hover { background: var(--accent-fill); border-color: transparent; color: var(--bg); }
.slider__arrow[disabled] { opacity: .3; cursor: default; }
.slider__arrow[disabled]:hover {
  background: rgba(255, 253, 248, .85);
  border-color: var(--card-line);
  color: var(--ink);
}

/* ------------------------------------------------------------
   12. Стоимость — цена до 23 сентября и после, бонусы
   ------------------------------------------------------------ */
.price {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(32px, 4.4vw, 56px) clamp(22px, 3vw, 48px);
  border: .8px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--card-solid);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.price__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid rgba(123, 26, 24, .35);
  border-radius: 999px;
  background: var(--chip);
  font-size: clamp(.66rem, .85vw, .76rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bordo);
}
.price__now {
  margin-top: clamp(14px, 1.8vw, 20px);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 3.1rem);
  line-height: 1.1;
  color: var(--bordo);
}

/* Шкала: сейчас → после 23 сентября */
.price__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  margin: clamp(22px, 2.8vw, 32px) auto 0;
}
.price__steps::before {
  content: "";
  position: absolute;
  top: 7.25px;                         /* центр линии = центр точек */
  left: 16.667%;
  right: 16.667%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--bordo) 0%, var(--beige) 100%);
}
.price__step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding-top: 28px;
}
.price__step::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 8px);
  width: 16px;
  height: 16px;
  border: 2px solid var(--beige);
  border-radius: 50%;
  background: var(--card-solid);
}
.price__step--now::before {
  border-color: var(--bordo);
  background: var(--bordo);
  box-shadow: 0 0 0 5px rgba(123, 26, 24, .14);
}
.price__when {
  font-size: clamp(.64rem, .82vw, .72rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.price__sum {
  font-size: clamp(.95rem, 1.25vw, 1.08rem);
  font-weight: 700;
  color: var(--ink-muted);
}
.price__step--now .price__sum { color: var(--bordo); }

/* Счётчик до следующего повышения цены */
.countdown {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  margin-top: clamp(16px, 2vw, 22px);
  padding: 9px 18px;
  border: 1px solid rgba(123, 26, 24, .25);
  border-radius: 999px;
  background: rgba(255, 253, 248, .8);
}
.countdown[hidden] { display: none; }
.countdown__label {
  font-size: clamp(.62rem, .8vw, .7rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.countdown__time {
  font-family: var(--font-display);
  font-size: clamp(.95rem, 1.3vw, 1.15rem);
  font-variant-numeric: tabular-nums;
  color: var(--bordo);
}

/* Предоплата: закрепить место и условия */
.fix {
  max-width: 520px;
  margin: clamp(18px, 2.4vw, 26px) auto 0;
  padding: clamp(16px, 2.2vw, 22px) clamp(16px, 2.4vw, 26px);
  border: 1px dashed rgba(123, 26, 24, .3);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, .75);
}
.fix__text {
  font-size: clamp(.9rem, 1.15vw, 1rem);
  line-height: 1.55;
  text-wrap: balance;
  color: var(--ink);
}
.fix__text b { font-weight: 700; color: var(--bordo); }
.fix__btn { margin-top: 14px; }

/* Бонусы при оплате до 23 сентября — плитками, в одном стиле со шкалой цены */
.bonus { margin-top: clamp(26px, 3.2vw, 36px); }
.bonus__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(.66rem, .85vw, .76rem);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--bordo);
}
.bonus__title svg { flex: none; }
.bonus__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.bonus__item {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 18px 14px 16px;
  border: 1px solid rgba(123, 26, 24, .2);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #FFFDF8 0%, #FAF6EE 100%);
  text-align: center;
}
.bonus__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(123, 26, 24, .3);
  border-radius: 50%;
  background: var(--chip);
  color: var(--bordo);
}
.bonus__label {
  font-size: clamp(.62rem, .8vw, .7rem);
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.bonus__value {
  font-size: clamp(.84rem, 1.05vw, .93rem);
  line-height: 1.45;
  color: var(--ink);
}
.bonus__value b { font-weight: 700; color: var(--bordo); }

.price__note {
  margin-top: clamp(20px, 2.4vw, 28px);
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  color: var(--ink-muted);
}
.price__btn { margin-top: clamp(22px, 2.8vw, 34px); }
.price__start {
  margin-top: 16px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------
   13. Вопросы
   ------------------------------------------------------------ */
.qas {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin-inline: auto;
}

.qa {
  border: .8px solid var(--card-line-soft);
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.qa:hover { border-color: var(--card-line); }
.qa[open] { border-color: var(--beige); }

.qa__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 26px);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.qa__head::-webkit-details-marker { display: none; }
.qa__head::marker { content: ""; }

.qa__q {
  font-size: clamp(.92rem, 1.25vw, 1.08rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}
.qa__body {
  padding: 0 clamp(18px, 2.2vw, 26px) clamp(18px, 2.2vw, 26px);
  font-size: clamp(.86rem, 1.12vw, .98rem);
  line-height: 1.65;
  color: var(--ink-muted);
}
.qa[open] .qa__body { animation: reveal .4s var(--ease); }
.qa__body p + p { margin-top: .75em; }

.qas__more {
  margin-top: clamp(22px, 2.6vw, 32px);
  font-size: clamp(.85rem, 1.1vw, 1rem);
  color: var(--ink-muted);
  text-align: center;
}
.qas__more a {
  color: var(--bordo);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.qas__more a:hover { color: var(--bordo-dark); }

/* ------------------------------------------------------------
   14. Финал — баннер с фото, текст справа
   ------------------------------------------------------------ */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  /* высота следует пропорциям фото (2001 × 786) — кадр не режется */
  min-height: max(460px, min(39.3vw, 900px));
  padding: clamp(56px, 7vw, 110px) 0;
  background: var(--bg);
}
.cta__banner {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* верх и низ растворяются в фоне. Маска — на обёртке, не на <img>:
     иначе Safari игнорирует object-fit и сплющивает фото */
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 14%, #000 86%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 14%, #000 86%, rgba(0, 0, 0, 0) 100%);
}
.cta__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.cta__inner {
  position: relative;
  z-index: 1;
  width: min(560px, 46%);
  margin-left: auto;
  margin-right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  text-align: center;
}
.cta__title {
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 1.1;
  color: var(--ink);
}
.cta__text {
  margin-top: clamp(14px, 1.8vw, 22px);
  font-size: clamp(.92rem, 1.15vw, 1.05rem);
  line-height: 1.65;
  color: var(--ink-muted);
}
.cta__sub {
  margin-top: clamp(14px, 1.8vw, 24px);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  line-height: 1.25;
  color: var(--ink);
}
.cta__start {
  margin-top: clamp(18px, 2.2vw, 28px);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cta__btn { margin-top: 14px; }

/* Телефон: фото полосой сверху, текст под ним */
@media (max-width: 800px) {
  .cta {
    display: block;
    min-height: 0;
    padding: 0 0 clamp(48px, 10vw, 72px);
  }
  .cta__banner {
    position: relative;
    inset: auto;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 12%, #000 66%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 12%, #000 66%, rgba(0, 0, 0, 0) 100%);
  }
  .cta__banner picture { height: auto; }
  .cta__banner img {
    height: auto;
    aspect-ratio: 960 / 786;
    object-position: center;
  }
  .cta__inner {
    width: 100%;
    margin: clamp(-56px, -8vw, -24px) 0 0;
    padding-inline: var(--gutter);
  }
}

/* ------------------------------------------------------------
   15. Подвал — документы: Россия слева, Германия справа
   ------------------------------------------------------------ */
.legal {
  padding-block: clamp(32px, 4vw, 52px);
  border-top: .8px solid var(--card-line-soft);
  background: var(--bg-deep);
  font-size: .86rem;
  color: var(--ink-muted);
}
.legal__cols {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 64px);
}
.legal__col--de { text-align: right; }
.legal__name {
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--ink);
}
.legal__nav { display: grid; gap: 6px; }
.legal__nav a,
.legal__bottom a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-decoration-color: var(--beige);
  text-underline-offset: 3px;
}
.legal__nav a:hover,
.legal__bottom a:hover {
  color: var(--bordo);
  text-decoration-color: currentColor;
}
.legal__bottom {
  margin-top: clamp(20px, 2.6vw, 30px);
  padding-top: 16px;
  border-top: .8px solid var(--card-line-soft);
}
@media (max-width: 620px) {
  .legal__cols { flex-direction: column; }
  .legal__col--de { text-align: left; }
}

/* ------------------------------------------------------------
   16. Модальное окно — оплата

   Шаг 1 — выбор региона, шаг 2 — форма оплаты GetCourse.
   Форма (iframe) подгружается в .modal__widget только после
   выбора региона, высоту iframe выставляет сам виджет.
   ------------------------------------------------------------ */
.modal {
  width: min(560px, calc(100vw - 32px));
  max-height: min(88vh, 760px);
  padding: 0;
  border: .8px solid var(--card-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #FFFDF8 0%, #F2EDE3 100%);
  color: var(--ink);
  box-shadow: 0 60px 120px -40px rgba(45, 43, 31, .35);
  overflow: hidden;
}
.modal::backdrop {
  background: rgba(45, 43, 31, .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__inner {
  position: relative;
  max-height: min(88vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(28px, 4vw, 40px) clamp(22px, 3.4vw, 38px) clamp(24px, 3vw, 32px);
  border-radius: inherit;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 188, 163, .95) transparent;
}
.modal__inner::-webkit-scrollbar { width: 8px; }
.modal__inner::-webkit-scrollbar-track { background: transparent; }
.modal__inner::-webkit-scrollbar-thumb { background: rgba(200, 188, 163, .95); border-radius: 999px; }

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: .8px solid var(--card-line-soft);
  border-radius: 50%;
  background: rgba(255, 253, 248, .8);
  color: var(--ink-muted);
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.modal__close:hover { color: var(--ink); border-color: var(--bordo); transform: rotate(90deg); }

.modal__eyebrow {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.modal__title {
  margin-top: 12px;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
}
.modal__sub {
  margin-top: 14px;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--ink-muted);
}
.modal__sub b { color: var(--bordo); font-weight: 700; }

/* Шаг 1: регионы — кнопки */
.countries {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}
.country {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 18px;
  border: .8px solid var(--card-line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, .7);
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.country:hover,
.country:focus-visible {
  border-color: var(--bordo);
  background: rgba(200, 188, 163, .28);
  transform: translateX(4px);
}
.country__code {
  display: grid;
  place-items: center;
  width: 46px;
  height: 32px;
  border: .8px solid var(--card-line-soft);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: .66rem;
  color: var(--ink);
}
.country__name { display: block; font-size: .93rem; font-weight: 600; }
.country__note { display: block; margin-top: 3px; font-size: .72rem; color: var(--ink-faint); }
.country__arrow { color: var(--ink-faint); transition: color .25s var(--ease), transform .25s var(--ease); }
.country:hover .country__arrow,
.country:focus-visible .country__arrow { color: var(--ink); transform: translateX(3px); }

/* Шаг 2: форма оплаты */
.modal__step[hidden],
.modal__frame[hidden],
.modal__status[hidden] { display: none; }

.modal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 14px -4px;
  padding: 6px 12px 6px 4px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color .25s var(--ease);
}
.modal__back:hover { color: var(--ink); }

/* Переключатель «Полная оплата» / «Предоплата» */
.payswitch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  border: .8px solid var(--card-line-soft);
  border-radius: 999px;
  background: rgba(255, 253, 248, .75);
}
.payswitch[hidden] { display: none; }
.payswitch__btn {
  padding: 11px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.payswitch__btn:hover { color: var(--ink); }
.payswitch__btn.is-active {
  background: var(--accent-fill);
  color: var(--bg);
}

.modal__widget { position: relative; margin-top: 14px; }
.modal__frame { transition: opacity .3s var(--ease), filter .3s var(--ease); }
.modal__frame iframe { display: block; }

/* Согласия под формой (оплата из России): пока обе галочки не стоят,
   форма затемнена, а нажатие по ней подсвечивает согласия */
.consents {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border: .8px solid var(--card-line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, .9);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink);
  cursor: pointer;
}
.consents[hidden],
.consent__hint[hidden] { display: none; }
.consent__box {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--bordo);
  cursor: pointer;
}
.consent a { color: var(--bordo); text-decoration: underline; text-underline-offset: 3px; }
.consents.is-attention {
  border-color: var(--bordo);
  box-shadow: 0 0 0 3px rgba(123, 26, 24, .12);
  animation: consent-nudge .45s var(--ease);
}
@keyframes consent-nudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.consent__hint {
  margin: -2px 0 0;
  font-size: .76rem;
  line-height: 1.4;
  color: var(--bordo);
}
.modal__lock {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  cursor: pointer;
}
.modal__widget.is-locked .modal__lock { display: block; }
.modal__widget.is-locked .modal__frame { opacity: .4; filter: saturate(.5); }

.modal__status {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 44px 12px;
  font-size: .85rem;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-muted);
}
.modal__status::before {               /* индикатор загрузки */
  content: "";
  width: 28px;
  height: 28px;
  border: 2px solid var(--card-line);
  border-top-color: var(--bordo);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
.modal__status.is-error::before { content: none; }
.modal__status a { color: var(--bordo); text-decoration: underline; text-underline-offset: 3px; }

.modal__note {
  margin-top: 22px;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--ink-faint);
  text-align: center;
}
.modal__note a { color: var(--bordo); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------
   17. Отзыв крупным планом
   ------------------------------------------------------------ */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: clamp(16px, 3vw, 40px);
  border: 0;
  background: transparent;
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(250, 248, 242, .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 28px);
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  min-width: 0;
}
.lightbox__img {
  max-width: min(1100px, 100%);
  max-height: calc(100dvh - clamp(110px, 14vw, 170px));
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 40px 100px -50px rgba(45, 43, 31, .55);
}
.lightbox__counter {
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .06em;
  color: var(--ink-faint);
}

.lightbox__nav,
.lightbox__close {
  flex: none;
  display: grid;
  place-items: center;
  border: .8px solid var(--card-line);
  border-radius: 50%;
  background: rgba(255, 253, 248, .9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.lightbox__nav { width: clamp(44px, 4vw, 58px); height: clamp(44px, 4vw, 58px); }
.lightbox__nav:hover,
.lightbox__close:hover { background: var(--accent-fill); border-color: transparent; color: var(--bg); }

.lightbox__close {
  position: absolute;
  top: clamp(14px, 2.4vw, 28px);
  right: clamp(14px, 2.4vw, 28px);
  width: 44px;
  height: 44px;
  z-index: 2;
}

body.is-locked { overflow: hidden; }

/* ------------------------------------------------------------
   18. Адаптив
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .familiar { grid-template-columns: 1fr; }
  .familiar__fig { max-width: 420px; margin-inline: auto; }
  .about { grid-template-columns: 1fr; }
  .about__figure img { max-height: 380px; }
}

@media (max-width: 1000px) {
  /* Телефон: шапка → фото → текст → преимущества, всё в потоке.
     display: contents растворяет .hero__inner, и баннер встаёт
     обычным блоком между шапкой и заголовком — наложений нет. */
  .hero {
    display: grid;
    grid-template-columns: 100%;
    padding-bottom: clamp(28px, 5vw, 44px);
    /* под фото идёт ровный молочный фон — иначе на стыке видна ступенька */
    background: var(--bg);
  }
  .hero__inner { display: contents; }

  .topbar,
  .hero__copy,
  .perks {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  .topbar { order: 1; justify-content: space-between; gap: 12px; }
  .topbar__nav { display: none; }

  .hero__banner {
    order: 2;
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    margin-top: 0;
  }
  /* мягко гасим верх и низ, чтобы фото не обрывалось линией */
  .hero__banner {
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 14%, #000 62%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 14%, #000 62%, rgba(0, 0, 0, 0) 100%);
    mask-composite: add;
  }
  .hero__banner picture { height: auto; }
  /* Над головой в кадре много пустого фона — срезаем его: верх волос
     встаёт в 64 px от края фото (в исходнике он на 53,35 % ширины от верха) */
  .hero__banner img {
    height: auto;
    aspect-ratio: 776 / 900;
    max-height: min(58vh, 520px);
    object-position: 50% calc(64px - 53.35vw);
  }
  .hero__banner::after {
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(250, 248, 242, 0) 16%),
      linear-gradient(180deg, rgba(250, 248, 242, 0) 58%, var(--bg) 96%);
  }

  .hero__copy {
    order: 3;
    max-width: none;
    padding-top: 0;
    margin-top: clamp(-70px, -9vw, -30px);
    text-align: center;
  }
  .hero__lead,
  .hero__text { margin-inline: auto; }
  .hero__copy .btn { display: inline-flex; }

  .perks {
    order: 4;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(26px, 5vw, 48px);
  }

  /* Схема веток уходит под текст */
  .familiar__fig { order: 2; }
  .experience__copy { order: 1; }

  .results { grid-template-columns: 1fr; }
  .results__head { position: static; text-align: center; }
  .results__head .section__title { text-align: center; }
}

@media (max-width: 760px) {
  .hero { background-position: center top; }

  /* факты первого экрана переносятся — без точек, иначе строка начнётся с «·» */
  .hero__facts { justify-content: center; column-gap: 16px; }
  .hero__facts li + li::before { content: none; }

  .topbar {
    padding-top: 20px;
    gap: 10px;
  }
  .topbar__pill {
    padding: 9px 14px;
    font-size: .56rem;
    letter-spacing: .07em;
    line-height: 1.35;
    white-space: normal;      /* даём перенос: «Старт 25-го · групповой курс» */
    text-align: center;
    max-width: 42vw;
  }

  .perks { grid-template-columns: 1fr; gap: 16px; }
  .perk + .perk { padding-left: 0; border-left: 0; }

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

/* Узкие телефоны: шапка должна помещаться в одну строку целиком */
@media (max-width: 560px) {
  .topbar { gap: 10px; align-items: flex-start; }
  .topbar__brand { min-width: 0; }
  .topbar__logo { width: clamp(108px, 31vw, 150px); }
  .topbar__tagline {
    font-size: .5rem;
    letter-spacing: .09em;
    line-height: 1.3;
  }
  .topbar__pill {
    min-width: 0;
    max-width: 45vw;
    padding: 8px 12px;
    font-size: .5rem;
    letter-spacing: .05em;
  }
  .topbar__dot { width: 6px; height: 6px; }
}

/* Самые узкие телефоны (320–400 px): шапка, заголовок и подписи схем */
@media (max-width: 400px) {
  .topbar__brand { flex: 0 1 auto; }
  .topbar__tagline { max-width: 10.5em; }          /* подпись в две строки */
  .topbar__pill { flex: 0 1 auto; max-width: none; }
  .hero__title { font-size: clamp(1.8rem, 9.6vw, 2.1rem); }
}

@media (max-width: 620px) {
  .week__head {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num icon"
      "title title";
    gap: 14px;
  }
  .week__num { grid-area: num; width: 50px; height: 50px; }
  .week__icon { grid-area: icon; justify-self: end; }
  .week__title { grid-area: title; }

  .lessons li { grid-template-columns: 1fr; gap: 4px; }
  .lesson__tag { grid-row: auto; padding-top: 0; }

  .cta__photo { opacity: .3; left: -30%; }
  .btn { padding: 16px 26px; }

  .familiar__label { position: static; display: block; }

  /* На телефоне стрелки по бокам съедают картинку — уводим их под неё, в один ряд. */
  .lightbox[open] { flex-flow: row wrap; justify-content: center; align-content: center; column-gap: 24px; }
  .lightbox__nav { order: 2; }
  .lightbox__figure { order: 1; flex: 1 1 100%; }
  .lightbox__img { max-height: calc(100dvh - 190px); }
}

/* Новые блоки: связь практик, лента отзывов, бонусы, тёмная полоса */
@media (max-width: 900px) {
  .connect { grid-template-columns: 1fr; }
  .connect__figure { width: min(calc(100% - 52px), 480px); }
}
@media (max-width: 760px) {
  /* Лента отзывов: карточка почти во всю ширину, стрелки под лентой */
  .slider { flex-wrap: wrap; justify-content: center; gap: 2px 16px; }
  .slider__track { order: -1; flex: 1 1 100%; }
  .slider__arrow { margin-inline: 0; }
  .slide { width: min(78vw, 330px); }

  /* Ссылки текстом: область нажатия больше самой строки */
  .legal__nav { gap: 0; }
  .legal__nav a { padding-block: 10px; }
  .qas__more a,
  .legal__bottom a,
  .modal__note a { position: relative; }
  .qas__more a::after,
  .legal__bottom a::after,
  .modal__note a::after { content: ""; position: absolute; inset: -12px -8px; }
}
@media (max-width: 620px) {
  /* Бонусы: плитки столбиком, значок слева */
  .bonus__grid { grid-template-columns: 1fr; }
  .bonus__item {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "icon label" "icon value";
    justify-items: start;
    align-items: center;
    column-gap: 14px;
    row-gap: 3px;
    padding: 14px 16px;
    text-align: left;
  }
  .bonus__icon { grid-area: icon; }
  .bonus__label { grid-area: label; }
  .bonus__value { grid-area: value; }
}
@media (max-width: 560px) {
  /* Шкала цены: три ступени в столбик, точки на вертикальной линии */
  .price__steps { grid-template-columns: 1fr; gap: 16px; max-width: 320px; }
  .price__steps::before {
    top: 12px;
    bottom: 12px;
    left: 8px;
    right: auto;
    width: 1.5px;
    height: auto;
    background: linear-gradient(180deg, var(--bordo) 0%, var(--beige) 100%);
  }
  .price__step { justify-items: start; padding: 0 0 0 30px; text-align: left; }
  .price__step::before { top: calc(50% - 8px); left: 0; }
}
@media (max-width: 600px) {
  .statement__spark--2,
  .statement__spark--4,
  .statement__spark--5 { display: none; }
  .statement__spark--1 { top: 8%; left: 6%; }
  .statement__spark--3 { top: auto; bottom: 8%; right: 6%; }
}
@media (max-width: 400px) {
  .connect { padding: 18px; }
  .connect__figure { width: calc(100% - 36px); }
  .connect__node { padding: 5px 10px; font-size: .56rem; letter-spacing: .05em; }
}

/* ------------------------------------------------------------
   19. Первый экран и «Про меня» — уточнения
   ------------------------------------------------------------ */
/* Подзаголовок первого экрана — длинная фраза, переносится по балансу */
.hero__sub {
  max-width: 640px;
  font-size: clamp(1rem, 1.55vw, 1.4rem);
  line-height: 1.3;
  text-wrap: balance;
}
@media (min-width: 1001px) {
  .hero__copy { max-width: 680px; }
}
@media (max-width: 1000px) {
  .hero__sub { margin-inline: auto; }
  .hero__facts { justify-content: center; }
}

/* Портрет вертикальный: показываем лицо, а не середину кадра */
.about__figure img {
  aspect-ratio: 4 / 5;
  max-height: 560px;
  object-position: 50% 22%;
}
@media (max-width: 1100px) {
  .about__figure img { max-height: 440px; }
}

/* ------------------------------------------------------------
   20. Страницы документов
   ------------------------------------------------------------ */
.doc-page { background: var(--bg); }

.doc-top {
  border-bottom: .8px solid var(--card-line-soft);
  background: linear-gradient(180deg, #FFFDF8 0%, var(--bg) 100%);
}
.doc-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(14px, 2vw, 22px);
}
.doc-back {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-muted);
}
.doc-back:hover { color: var(--bordo); }

.doc { padding-block: clamp(32px, 5vw, 72px) clamp(48px, 7vw, 96px); }
.doc__inner { max-width: 880px; }

.doc__title {
  font-size: clamp(1.3rem, 2.8vw, 2.2rem);
  line-height: 1.22;
  text-wrap: balance;
  color: var(--ink);
}
.doc-meta {
  margin-top: 14px;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.doc-toc {
  margin-top: clamp(22px, 3vw, 32px);
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.4vw, 26px);
  border: .8px solid var(--card-line-soft);
  border-radius: var(--radius-sm);
  background: #FFFDF8;
}
.doc-toc__title {
  margin-bottom: 8px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.doc-toc ol { display: grid; gap: 4px; }
.doc-toc a {
  font-size: .9rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--beige);
  text-underline-offset: 3px;
}
.doc-toc a:hover { color: var(--bordo); }

.doc__body {
  margin-top: clamp(24px, 3vw, 36px);
  font-size: clamp(.94rem, 1.05vw, 1rem);
  line-height: 1.7;
  color: var(--ink);
  overflow-wrap: anywhere;          /* длинные ссылки не распирают страницу */
}
.doc__body > * + * { margin-top: .75em; }
.doc__body h2 {
  margin-top: 2em;
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  color: var(--ink);
  scroll-margin-top: 20px;
}
.doc__body h3 {
  margin-top: 1.5em;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: none;
  color: var(--ink);
}
.doc__body a {
  color: var(--bordo);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc__body hr {
  border: 0;
  border-top: .8px solid var(--beige);
  margin-block: 1.6em;
}

.doc-item--l1 { padding-left: 1.2em; }
.doc-item--l2 { padding-left: 2.4em; }
.doc-num { font-weight: 700; }
.doc-center { text-align: center; }
.doc-strong strong { font-weight: 700; }

.doc-list { display: grid; gap: .35em; padding-left: 1.3em; }
.doc-list--dot { list-style: disc; }
.doc-list--dot li::marker { color: var(--ink-muted); }
.doc-list--dash { list-style: none; }
.doc-list--dash li { position: relative; }
.doc-list--dash li::before {
  content: "—";
  position: absolute;
  left: -1.3em;
  color: var(--ink-muted);
}
.doc-list--plain { list-style: none; padding-left: 0; }

.doc-table-wrap { margin-block: 1.2em; overflow-x: auto; }
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  line-height: 1.55;
}
.doc-table th,
.doc-table td {
  padding: 10px 14px;
  border: .8px solid var(--card-line);
  text-align: left;
  vertical-align: top;
}
.doc-table tbody th { width: 34%; font-weight: 600; background: #FBF8F1; }
.doc-table thead th,
.doc-table__group th { background: var(--card-solid); font-weight: 700; }
.doc-table__pct {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.doc-form {
  margin-top: 1.2em;
  padding: clamp(18px, 2.6vw, 30px);
  border: .8px dashed var(--card-line);
  border-radius: var(--radius-sm);
  background: #FFFDF8;
}
.doc-form > * + * { margin-top: .6em; }
.doc-form__to { text-align: right; }
.doc-form__title { text-align: center; font-weight: 700; letter-spacing: .1em; }

/* Страница-оглавление «Политика обработки персональных данных» */
.doc-links {
  display: grid;
  gap: 10px;
  margin-top: 1.2em;
  padding: 0;
  list-style: none;
}
.doc-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: .8px solid var(--card-line-soft);
  border-radius: var(--radius-sm);
  background: #FFFDF8;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.doc-links a:hover { border-color: var(--bordo); transform: translateX(3px); }
.doc-links__go { color: var(--bordo); font-size: 1.2rem; }

@media (max-width: 620px) {
  /* таблица целей: строки складываются в карточки */
  .doc-table:not(.doc-table--price),
  .doc-table:not(.doc-table--price) tbody,
  .doc-table:not(.doc-table--price) tr,
  .doc-table:not(.doc-table--price) th,
  .doc-table:not(.doc-table--price) td { display: block; width: 100%; }
  .doc-table:not(.doc-table--price) td { border-top: 0; }
  .doc-table:not(.doc-table--price) tr + tr th { border-top: 0; }
  .doc-table th, .doc-table td { padding: 9px 12px; }
  .doc-top .topbar__tagline { display: none; }
}

/* ------------------------------------------------------------
   Доступность и печать
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html,
  .slider__track { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .tabs, .modal { display: none !important; }
  .is-reveal-pending { opacity: 1 !important; }
  .statement { background: #fff !important; }
  .statement__text { background: none !important; color: #000 !important; }
  body, .hero, .section, .cta { background: #fff !important; color: #000 !important; }
  .week > .lessons { display: block !important; }
}
