/* Стиль основного лендинга: белый фон, чёрный текст, Manrope и Didot.
   Бежевый (--soft) только как подложка. Никаких других цветов. */

/* Страница всегда белая: браузеры с автотёмной темой не должны её перекрашивать.
   И iPhone не должен сам увеличивать текст: из-за этого заголовок на первом экране переносился */
:root { color-scheme: only light; background: #fff; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }

/* ---------------------------- Экран 1 ---------------------------- */
.top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
  min-height: calc(100svh - 64px);
  padding-block: 24px;
}

.top__copy { min-width: 0; }

/* Главный заголовок страницы не меньше заголовков разделов. Две строки держим, как и строку ниже:
   длинная строка может зайти на отступ до иллюстрации, но до неё не достаёт */
.top h1 {
  font-size: calc(min(4.2vw, 9.5vh) * .925);
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: -.048em;
  line-height: 1.06;
}

/* Крупная сменяющаяся строка, всегда в одну строку, поэтому абзац под ней не прыгает.
   Длинная фраза может зайти на отступ до иллюстрации, но до неё не достаёт */
.wish {
  min-height: 1.15em;
  white-space: nowrap;
  margin-top: clamp(14px, 2.6vh, 26px);
  font-family: Didot, "Bodoni MT", "Times New Roman", serif;
  font-size: min(5.1vw, 11vh, 94px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.1;
}

.wish__text { transition: opacity .3s; }
.wish__text.is-out { opacity: 0; }

.top__about {
  max-width: 31em;
  margin-top: clamp(14px, 2.6vh, 26px);
  font-size: clamp(17px, 1.25vw, 22px);
  line-height: 1.32;
  color: var(--copy);
}

/* Иллюстрация пока стоит на месте будущего визуала */
/* Без filter: brightness. На iPhone он светится ярче белого страницы, и она рядом кажется серой. Яркость вшита в файл */
.art-hero { display: flex; justify-content: center; }
.art-hero img { height: min(74svh, 38vw); width: auto; max-width: 100%; object-fit: contain; }

/* ---------------------------- Заголовки: один стиль на всю страницу ---------------------------- */
/* Гротеск чуть меньше антиквы: у Didot низкие строчные, в одном размере он смотрится мельче */
.stories h2, .yours h2, .after h2, .includes h2, .faq h2 {
  font-size: calc(min(4.2vw, 9.5vh) * .925);
  font-weight: 800;
  letter-spacing: -.048em;
  line-height: 1.04;
}

main h2 .serif { font-size: calc(1em / .925); letter-spacing: -.04em; }

/* ---------------------------- Экран 2 ---------------------------- */
.stories { margin-top: clamp(60px, 11vh, 130px); }
.stories h2 { text-wrap: balance; }

/* Подпись автора. Та же, что в манифесте, только на белом */
.author, .manifest__sign { display: flex; align-items: center; gap: 14px; }
.author { margin-top: clamp(16px, 3vh, 28px); }
.author img, .manifest__sign img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.author b, .manifest__sign b { display: block; font-size: clamp(17px, 1.3vw, 22px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.author span, .manifest__sign span { display: block; margin-top: 2px; font-size: clamp(14px, 1.02vw, 17px); line-height: 1.25; }
.author span { color: var(--copy); }

.stories__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  margin-top: clamp(22px, 4vh, 40px);
}

.story {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(12px, 1.6vw, 26px);
  padding: clamp(16px, 1.6vw, 26px);
  border-radius: 18px;
  background: var(--soft);
}

.story__art { display: flex; align-items: center; justify-content: center; height: clamp(190px, 29vh, 270px); }
.story__text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.art-img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 10px rgba(40, 25, 10, .18)); }

/* Телефон целиком: собственный корпус, внутри живой экран */
.phone {
  position: relative;
  height: 100%;
  aspect-ratio: 326 / 666;
  padding: 5px;
  border-radius: 26px;
  background: #0a0a0a;
  box-shadow: 0 3px 12px rgba(40, 25, 10, .22);
}

.phone video, .phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 21px; background: #fff; }

.story__link { align-self: flex-start; margin-top: clamp(12px, 2vh, 20px); color: var(--copy); font-size: clamp(13px, .95vw, 15px); font-weight: 500; text-underline-offset: 3px; }
.story__link:hover { color: var(--ink); }

/* Скрин ролика целиком. Цифры лежат внутри корпуса поверх мелкой колонки TikTok */
/* Картинка лежит под видео: видно её, пока видео не заиграло или если телефон его не запустил */
.phone__poster { position: absolute; inset: 5px; width: calc(100% - 10px) !important; height: calc(100% - 10px) !important; }
.phone video { position: relative; }
.js .phone video:not(.is-on) { opacity: 0; }
.phone--shot { aspect-ratio: 1027 / 1824; }
.phone--shot img { object-fit: contain; background: #000; }

.stats {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 7%;
  display: grid;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 10px;
  background: rgba(10, 10, 10, .84);
  color: #fff;
}

.stat { display: grid; justify-items: center; gap: 1px; }
.stat svg { width: 12px; height: 12px; fill: #fff; }
.stat b { font-size: 9.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }

.art--slot { height: 100%; aspect-ratio: .78; padding: 6px; border-radius: 6px; background: #fff; box-shadow: 0 2px 10px rgba(40, 25, 10, .12); }

.compare { position: relative; width: 100%; height: 100%; overflow: hidden; --cut: 50%; }
.compare__layer { position: absolute; inset: 0; }
.compare__layer img { display: block; width: 100%; height: 100%; object-fit: cover; }
.compare__tag { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 5px; background: rgba(5, 5, 5, .78); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.3; }
.compare__tag--right { left: auto; right: 6px; }
.compare__layer--before { z-index: 1; clip-path: inset(0 calc(100% - var(--cut)) 0 0); }
.compare__handle { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--cut); width: 2px; margin-left: -1px; background: #151515; pointer-events: none; }
.compare__handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; display: grid; place-items: center; border-radius: 50%; background: #151515; color: #fff; font-size: 13px; font-weight: 700; }
.compare input { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }

.story__idea { font-size: clamp(24px, 2.05vw, 36px); line-height: 1.1; letter-spacing: -.03em; }

.story__result { margin-top: clamp(8px, 1.4vh, 14px); font-size: clamp(16px, 1.2vw, 20px); line-height: 1.1; color: var(--copy); }
.story__result strong {
  margin-right: 3px;
  display: block;
  margin: 0 0 3px -.03em;
  font-size: clamp(42px, 4.3vw, 76px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
  color: var(--ink);
}


/* ---------------------------- Экран 3: стена желаний ---------------------------- */
.yours {
  margin: clamp(70px, 13vh, 150px) calc(50% - 50vw) 0;
  padding-block: clamp(48px, 9vh, 100px);
  background: var(--soft);
}

.wall { display: grid; gap: 10px; margin-top: clamp(24px, 4.5vh, 48px); padding-block: 2px; overflow: clip; }
.wall__row { display: flex; gap: 10px; width: max-content; will-change: transform; }

.chip {
  flex: none;
  padding: .36em .72em;
  border: 1.5px solid #151515;
  border-radius: 99px;
  background: #fff;
  color: var(--ink);
  font: 800 min(2.5vw, 5.4vh) / 1.1 Manrope, Arial, sans-serif;
  letter-spacing: -.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s, color .18s;
}

.chip--serif { font-family: Didot, "Bodoni MT", "Times New Roman", serif; font-style: italic; font-weight: 400; letter-spacing: -.03em; }
/* На телефоне наведения нет: иначе подсветка залипает после касания */
@media (hover: hover) { .chip:hover { background: #f1e7df; } }
.chip.is-on { background: #050505; color: #fff; }
.chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.yours__after {
  max-width: 25em;
  margin-top: clamp(28px, 5.4vh, 58px);
  font-size: min(3vw, 6.6vh);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.14;
}

.yours__turn { display: block; margin-top: .08em; font-size: 1.12em; letter-spacing: -.035em; }

/* ---------------------------- Экран 4: большая типографика ---------------------------- */
/* Шире контейнера на 5% с каждой стороны: длинные строки так и остаются по центру */
.say {
  margin: clamp(70px, 14vh, 160px) calc(50% - 45vw) clamp(20px, 6vh, 70px);
  font-size: min(4.7vw, 9.4vh);
  font-weight: 800;
  letter-spacing: -.048em;
  line-height: 1.12;
  text-align: center;
}

/* Без скрипта и при отключённой анимации разрыв просто открыт */
.say__one { --open: 1; --gap: min(15vh, 9vw); }
.say__line { display: block; white-space: nowrap; }
.say .serif { font-size: 1.05em; letter-spacing: -.035em; }

.say__top, .say__low { display: block; will-change: transform; }
.say__top { transform: translateY(calc((1 - var(--open)) * var(--gap) / 2)); }
.say__low { transform: translateY(calc((1 - var(--open)) * var(--gap) / -2)); }

/* Двойная стрелка между строками показывает тот самый разрыв */
.say__gap { position: relative; display: block; width: .4em; height: var(--gap); margin-inline: auto; opacity: calc((var(--open) - .35) * 4); }
.say__gap::before { content: ""; position: absolute; left: 50%; top: .1em; bottom: .1em; width: 3px; margin-left: -1.5px; background: #151515; transform: scaleY(var(--open)); }
.say__gap i { position: absolute; left: 50%; width: .2em; height: .2em; border-top: 3px solid #151515; border-left: 3px solid #151515; }
.say__gap i:first-child { top: .08em; transform: translate(-50%, calc((1 - var(--open)) * var(--gap) / 2)) rotate(45deg); }
.say__gap i:last-child { bottom: .08em; transform: translate(-50%, calc((1 - var(--open)) * var(--gap) / -2)) rotate(225deg); }

/* Абзац длиннее первой фразы и идёт за ней: чуть мельче, иначе длинные строки не помещаются */
.say__two { margin-top: 1em; font-size: .88em; line-height: 1.2; }

/* Маркер идёт по строкам одна за другой, вместе со скроллом. Текст чёрный, без скрипта выделено всё */
.say__mark {
  padding-inline: .12em;
  margin-inline: -.12em;
  /* Высота полосы равна высоте строки: иначе следующая полоса срезает хвостики букв в строке выше */
  background: linear-gradient(#f1e0cf, #f1e0cf) 0 50% / calc(var(--p, 1) * 100%) 1.2em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------------------------- Узкие экраны ---------------------------- */
@media (max-width: 1180px) {
  .stories__grid { grid-template-columns: 1fr; }
  .stories__grid { grid-auto-rows: auto; }
  .story { grid-template-columns: minmax(250px, 34%) minmax(0, 1fr); }
  .story__idea { font-size: clamp(24px, 3vw, 34px); }
  .story__result { font-size: clamp(15px, 1.8vw, 18px); }
  .story__result strong { font-size: clamp(42px, 6.4vw, 68px); }
}

@media (max-width: 860px) {
  .top { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 22px; padding-top: 28px; }
  .top h1 { font-size: calc(min(8.8vw, 56px) * .925); white-space: normal; }
  .top h1 br { display: none; }
  .wish { min-height: 1.15em; margin-top: 10px; font-size: min(10.4vw, 66px); white-space: normal; }
  .top__about { font-size: 16px; }
  .art-hero img { height: auto; width: min(62vw, 40svh); }
  .stories h2, .yours h2, .after h2, .includes h2, .faq h2 { font-size: calc(min(8.8vw, 56px) * .925); }
  .chip { font-size: clamp(17px, 4.6vw, 24px); }
  .yours__after { font-size: min(7vw, 40px); }
  .yours__turn { font-size: 1.08em; }
  /* На телефоне боком экран низкий: текст не должен занимать его целиком */
  .say { font-size: min(8vw, max(13vh, 40px)); }
  .say__line { display: inline; white-space: normal; }
  .say__two { margin-top: 2em; font-size: 1em; }
}

@media (max-width: 560px) {
  .story { grid-template-columns: 1fr; gap: 12px; padding: 14px; border-radius: 15px; }
  .story__art { height: 56vw; }
  .phone { padding: 4px; border-radius: 18px; }
  .phone video, .phone img { border-radius: 14px; }
  .phone__poster { inset: 4px; width: calc(100% - 8px) !important; height: calc(100% - 8px) !important; }
  .story__idea { font-size: 22px; }
  .story__result strong { font-size: 40px; }
  .story__result { margin-top: 8px; font-size: 14px; }
}

/* ---------------------------- Манифест ---------------------------- */
.belief { margin-top: clamp(70px, 13vh, 150px); }

.manifest {
  padding: clamp(36px, 7vh, 80px) clamp(28px, 4.6vw, 80px);
  border-radius: 22px;
  background: #0a0a0a;
  color: #fff;
}

.manifest__line {
  font-size: min(3.5vw, 7.4vh);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.manifest__line span { opacity: .2; transition: opacity .3s linear; }
.manifest__line span.is-on { opacity: 1; }

.manifest__sign { margin-top: clamp(22px, 4vh, 40px); opacity: .2; transition: opacity .4s; }
.manifest__sign.is-on { opacity: 1; }
.manifest__sign span { color: #bcbcbc; }

/* ---------------------------- Как мы будем двигаться: лестница ---------------------------- */
.path { margin-top: clamp(70px, 13vh, 150px); }

/* Блок задерживается на экране по центру, линия идёт за скроллом. Скролл обычный, как у книги */
.path__pin { position: sticky; top: max(76px, calc((100svh + 64px - var(--pin-h, 0px)) / 2)); }
.path__space { height: 90vh; }

/* Наклонная подпись со стрелкой, как у фрагментов книги, только тёмная: здесь она заменяет заголовок */
.path .st-note { margin: 0 0 6px; font-size: clamp(30px, 2.9vw, 50px); line-height: 1.04; letter-spacing: -.035em; color: var(--ink); white-space: nowrap; transform: rotate(-6deg); transform-origin: left bottom; }
.st-arrow { display: block; width: clamp(66px, 6.4vw, 104px); margin: 0 0 8px clamp(22px, 2.4vw, 40px); overflow: visible; }
.st-arrow path { fill: none; stroke: #151515; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }

.st { --step: clamp(44px, 7.6vh, 78px); position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(14px, 2.6vh, 26px); }
.st__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.st__base, .st__line { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.st__base { stroke: #e4ded6; }
.st__line { stroke: #050505; stroke-dasharray: 1; stroke-dashoffset: 1; }

.st-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 clamp(10px, 1.2vw, 20px) calc(var(--i) * var(--step)) clamp(8px, .9vw, 14px); }
/* Главное здесь тезисы и модули, поэтому названия этапов мельче, а текст плотнее и темнее */
.st-col h3 { font-size: clamp(20px, 1.7vw, 29px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.st-col p { margin: 5px 0 clamp(12px, 2vh, 18px); font-size: clamp(15px, 1.14vw, 19px); font-weight: 500; line-height: 1.28; color: var(--ink); }
.st-col small { display: block; padding-top: 12px; font-size: clamp(12px, .9vw, 14px); font-weight: 600; color: var(--copy); }

.st-tread { position: relative; display: flex; gap: 6px; height: 0; }
.st-tread i { width: 13px; height: 13px; margin-top: -6px; border: 2px solid #d9d2c9; border-radius: 50%; background: #fff; transition: background .2s, border-color .2s; }
.st-tread i.is-on { border-color: #050505; background: #050505; }

/* Подсказка нужна только там, где лестница листается */
.st-hint { display: none; }

/* Телефон и узкий планшет: лестница листается вправо. --gutter повторяет отступ .container из styles.css */
@media (max-width: 960px) {
  .path { --gutter: 6vw; }
  .path__pin { position: static; }
  .path__space { display: none; }
  .path .st-note { font-size: 30px; }

  .st-scroll {
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .st-scroll::-webkit-scrollbar { display: none; }
  .st-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

  .st { --step: 34px; --col: min(74vw, 320px); grid-template-columns: repeat(5, var(--col)); width: max-content; margin-top: 24px; }
  .st-col { padding: 0 18px calc(var(--i) * var(--step)) 10px; scroll-snap-align: start; }
  .st-col h3 { font-size: 23px; }
  .st-col p { margin: 6px 0 16px; font-size: 16px; line-height: 1.3; }
  .st-col small { font-size: 13px; }

  .st-hint { display: block; margin-top: 14px; font-size: 14px; color: #8d8d8d; transition: opacity .3s; }
  .st-hint.is-off { opacity: 0; }
}

@media (max-width: 900px) { .path { --gutter: 24px; } }
@media (max-width: 650px) { .path { --gutter: 18px; } }

@media (max-width: 860px) {
  .manifest__line { font-size: min(7vw, 44px); }
}

/* ---------------------------- Отступы разделов ---------------------------- */
.after, .includes, .faq { margin-top: clamp(70px, 13vh, 150px); }

/* ---------------------------- Экран 7: книга ----------------------------
   Блок на один лишний скролл прилипает к экрану, листки собираются на глазах. Скролл обычный. */
.after { height: calc(100svh - 64px + 120vh); }

.after__pin {
  position: sticky;
  top: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  height: calc(100svh - 64px);
}

.after__text h2 .serif { display: block; }
.after__text p { margin-top: clamp(14px, 2.4vh, 24px); font-size: clamp(18px, 1.4vw, 24px); line-height: 1.34; color: var(--copy); }

.frags { position: relative; width: min(100%, calc((100svh - 104px) * .849)); aspect-ratio: 854 / 1006; }
.frags__label { position: absolute; left: 0; top: 2%; font-size: clamp(22px, 2vw, 34px); line-height: 1.12; letter-spacing: -.03em; color: #8d8d8d; }
.frags__arrow { position: absolute; left: 15%; top: 13.5%; width: 21%; overflow: visible; }
.frags__arrow path { fill: none; stroke: #b4b4b4; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }

/* Углы файлов белые, поэтому скругляем чуть сильнее, чем в самом листке */
.frag { position: absolute; display: block; height: auto; visibility: hidden; border-radius: 3.4% / 2.4%; box-shadow: 0 6px 22px rgba(40, 25, 10, .18); will-change: transform; }
.frag--a { left: 2%; top: 43%; width: 46%; z-index: 1; }
.frag--b { left: 51%; top: 7%; width: 44%; z-index: 2; }
.frag--c { left: 26%; top: 28%; width: 47%; z-index: 3; }

/* На телефоне и узком планшете книга не закрепляется: сначала текст, ниже листки */
@media (max-width: 860px) {
  /* Листок на лету не должен заезжать на чёрный манифест ниже, а тень листков не должна обрезаться.
     Safari не понимает overflow-clip-margin, поэтому запас для тени сделан отступами */
  .after { height: auto; overflow: clip; margin-inline: -18px; margin-bottom: -44px; padding: 0 18px 44px; }
  .after__pin { position: static; display: flex; flex-direction: column; align-items: stretch; height: auto; }
  .after__text { order: -1; }
  .after__text p { font-size: clamp(17px, 2.4vw, 20px); }
  .frags { width: min(100%, 520px); margin: 24px auto 0; }
}

/* ---------------------------- Что входит и вопросы: те же размеры, что на всей странице ---------------------------- */
.faq__list { margin-top: clamp(22px, 4vh, 40px); }

/* ---------------------------- Вводный урок и вопросы ---------------------------- */
.intro-lesson {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-areas: "player copy";
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  margin-top: clamp(48px, 9vh, 100px);
  padding: clamp(16px, 3vw, 48px);
  border-radius: clamp(16px, 1.6vw, 26px);
  background: var(--soft);
  scroll-margin-top: 80px;
}
.intro-lesson__copy { grid-area: copy; }
.intro-lesson h2, .ask h2 { font-weight: 800; letter-spacing: -.045em; line-height: 1.08; }
.intro-lesson h2 { max-width: 12em; font-size: clamp(29px, 3.4vw, 54px); text-wrap: balance; }
.intro-lesson__meta { margin-top: 10px; color: var(--copy); font-size: clamp(15px, 1.35vw, 20px); }
.intro-lesson__about { margin-top: clamp(14px, 1.6vw, 24px); color: var(--copy); font-size: clamp(14px, 1.14vw, 18px); line-height: 1.45; }
.intro-lesson__about ul { margin: 8px 0 0; padding-inline-start: 1.2em; }
.intro-lesson__player { grid-area: player; border-radius: clamp(12px, 1.6vw, 26px); }

.ask { display: flex; flex-direction: column; align-items: center; margin-top: clamp(44px, 8vh, 88px); text-align: center; }
.ask h2 { font-size: clamp(27px, 3.1vw, 48px); }
.ask p { max-width: 28em; margin-top: clamp(10px, 1.7vh, 18px); color: var(--copy); font-size: clamp(16px, 1.3vw, 21px); line-height: 1.4; }
.ask__button { margin-top: clamp(16px, 2.8vh, 28px); padding: clamp(12px, 1.8vh, 18px) clamp(24px, 2.8vw, 40px); border-radius: 14px; background: #050505; color: #fff; font-size: clamp(16px, 1.2vw, 19px); font-weight: 800; text-decoration: none; }
.ask__button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

@media (max-width: 650px) {
  .intro-lesson { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "player"; gap: 16px; }
}

/* Главное в блоке: как проходит каждый модуль. Остальные пункты идут ниже как дополнение */
.mod-panel { margin-top: clamp(18px, 3.4vh, 34px); padding: clamp(22px, 3vw, 52px); border-radius: clamp(16px, 1.6vw, 26px); background: var(--soft); }
.mod-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(16px, 3vw, 48px); align-items: end; }
.mod-title { font-size: clamp(27px, 2.8vw, 48px); font-weight: 800; letter-spacing: -.04em; line-height: 1.08; }
.mod-title .serif { display: block; font-size: 1.08em; font-weight: 400; letter-spacing: -.03em; line-height: 1.04; }
.mod-lead { font-size: clamp(16px, 1.3vw, 22px); line-height: 1.32; color: var(--copy); }

.mod-path { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 36px); margin: clamp(26px, 5vh, 50px) 0 0; padding: 0; list-style: none; }
.mod-rail { position: absolute; background: #e8dfd6; }
.mod-rail i { display: block; width: 100%; height: 100%; background: #050505; transform-origin: 0 0; }
.mod-step { position: relative; }
.mod-step h4 { margin: clamp(10px, 1.8vh, 18px) 0 0; font-size: clamp(20px, 1.8vw, 31px); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; }
.mod-step p { margin-top: 5px; font-size: clamp(15px, 1.12vw, 19px); font-weight: 500; line-height: 1.28; color: var(--copy); }
.mod-dot { position: relative; display: grid; place-items: center; width: clamp(38px, 3.2vw, 50px); height: clamp(38px, 3.2vw, 50px); border: 2px solid #050505; border-radius: 50%; background: #050505; color: #fff; font-size: clamp(15px, 1.15vw, 19px); font-weight: 800; transition: background .25s, border-color .25s, color .25s; }
.js .mod-dot:not(.is-on) { border-color: #e8dfd6; background: var(--soft); color: #a39b91; }

.includes__items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.6vh, 26px) clamp(16px, 2.4vw, 40px); margin-top: clamp(26px, 5vh, 50px); }
.includes__item { display: grid; grid-template-columns: clamp(58px, 5.4vw, 84px) minmax(0, 1fr); gap: clamp(10px, 1vw, 16px); align-items: start; }
.includes__item img { width: 100%; height: auto; }
.includes__item h3 { font-size: clamp(18px, 1.55vw, 26px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.includes__item p { margin-top: 3px; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.28; color: var(--copy); }

/* Кнопка обычной ширины: под ней вопрос про цену, рядом другой способ оплаты */
.includes .includes__buy { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px clamp(16px, 2.2vw, 36px); max-width: none; margin-top: clamp(22px, 4vh, 40px); padding: 0; border-radius: 0; background: none; text-align: left; }
.includes__buy .price-card__button { position: relative; width: auto; margin: 0; padding: clamp(18px, 2.6vh, 24px) clamp(28px, 3vw, 48px); border-radius: 16px; font-size: clamp(17px, 1.3vw, 21px); }
/* Кнопка заметна при скролле: по ней идёт белый блик, в покое он стоит в центре. Силу и положение задаёт v3.js */
.includes__buy .price-card__button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .1) 38%, rgba(255, 255, 255, .42) 45%, rgba(255, 255, 255, .72) 50%, rgba(255, 255, 255, .42) 55%, rgba(255, 255, 255, .1) 62%, transparent 70%) var(--sheen, 50%) 0 / 200% 100%; opacity: var(--glow, 0); }
.includes__buy .price-card__why { grid-column: 1; grid-row: 2; justify-self: center; margin: 0; padding: 4px 0; font-size: 14px; }
.includes__hints { grid-column: 2; grid-row: 1; display: grid; gap: 4px; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.28; color: var(--copy); }
.includes__hints p { max-width: 34em; }
.includes__hints a { color: var(--ink); text-underline-offset: 3px; }
/* Временно скрытые подсказки у кнопки (атрибут hidden): иначе их display из правил выше перебивает hidden */
.price-card [hidden] { display: none; }

@media (max-width: 1100px) {
  .includes__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .includes h2 .serif { display: block; }
  .mod-head { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .mod-path { grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 3vh, 24px); }
  .mod-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
  .mod-dot { grid-row: span 2; width: 40px; height: 40px; }
  .mod-step h4 { margin-top: 0; align-self: center; font-size: 21px; }
  .mod-step p { grid-column: 2; font-size: 16px; }
  .includes__items { grid-template-columns: 1fr; }
  .includes__item { grid-template-columns: 64px minmax(0, 1fr); }
  .includes__item h3 { font-size: 20px; }
  .includes__item p { font-size: 15px; }
}

@media (max-width: 640px) {
  .includes .includes__buy { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .includes__buy .price-card__button { width: 100%; padding-inline: 12px; font-size: 16px; white-space: normal; }
  .includes__buy .price-card__why { grid-row: auto; }
  .includes__hints { grid-column: 1; grid-row: auto; margin-top: 4px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .after { height: auto; }
  .after__pin { position: static; height: auto; }
  .frag { visibility: visible; }
  .st__line, .st-arrow path { stroke-dashoffset: 0; }
  .path__pin { position: static; }
  .path__space { display: none; }
  .st-tread i { border-color: #050505; background: #050505; }
  .wall__row { flex-wrap: wrap; width: auto; padding-inline: 24px; }
  * { transition-duration: .01ms !important; animation: none !important; }
}

/* Главная кнопка в шапке: та же чёрная кнопка, что в блоке цены, только меньше.
   Блик пробегает раз в 7 секунд, остальное время кнопка спокойная */
.site-header__actions { gap: clamp(18px, 2vw, 28px); }
.header-cta { position: relative; overflow: hidden; padding: 11px 20px; border: 0; border-radius: 12px; background: #050505; color: #fff; font: inherit; font-size: 15px; font-weight: 800; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.header-cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .1) 38%, rgba(255, 255, 255, .42) 45%, rgba(255, 255, 255, .72) 50%, rgba(255, 255, 255, .42) 55%, rgba(255, 255, 255, .1) 62%, transparent 70%) 150% 0 / 200% 100% no-repeat; animation: header-sheen 7s ease-in-out 1.5s infinite; }
@keyframes header-sheen { 0% { background-position: 150% 0; } 20%, 100% { background-position: -50% 0; } }
@media (hover: hover) { .header-cta:hover { background: #2a2a2a; } }
.header-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.header-action--login img { width: 24px; height: 24px; }

/* При открытии фокус на заголовке, иначе Safari обводит крестик рамкой */
.price-dialog h2:focus { outline: none; }

/* ---------------------------- Окно заявки ---------------------------- */
.apply-dialog { width: min(680px, calc(100% - 36px)); padding: 28px 34px 22px; overflow-y: auto; overscroll-behavior: contain; }
.apply-dialog h2 { padding-right: 30px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.apply-dialog p { margin-top: 0; font-size: 15px; line-height: 1.45; }
.apply-dialog .apply-intro { margin: 12px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--soft); color: var(--ink); font-size: 14px; line-height: 1.45; }
.apply-form { display: grid; gap: 12px; margin-top: 18px; }
.apply-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.apply-field label span { margin-left: 6px; font-weight: 500; color: #8a847e; }
/* 16px в полях: меньше — и Safari на iPhone приближает страницу при вводе */
.apply-field textarea, .apply-field input { display: block; width: 100%; padding: 11px 13px; border: 1px solid #d9d4cf; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4; resize: vertical; transition: border-color .15s, box-shadow .15s; }
.apply-field textarea::placeholder, .apply-field input::placeholder { color: #9a948e; }
.apply-field textarea:focus, .apply-field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(21, 21, 21, .08); }
.apply-field .is-invalid { border-color: #b3261e; }
.apply-dialog .apply-hint { margin-top: 5px; font-size: 13px; line-height: 1.4; }
.apply-dialog .apply-hint.is-error { color: #b3261e; }
.apply-hint a, .apply-consent a { color: var(--ink); text-underline-offset: 3px; }
.apply-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Отступ перед согласием сохраняется и при показе ошибки Telegram. */
.apply-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--copy); cursor: pointer; }
.apply-consent input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: #050505; }
.apply-consent.is-invalid { color: #b3261e; }
/* Условия заявки и стоимость обучения сразу под кнопкой. */
.apply-dialog .apply-price { margin-top: -4px; text-align: center; font-size: 13px; color: #77716b; }
.apply-dialog .apply-error { padding: 10px 12px; border-radius: 10px; background: #fdecea; color: #8a1f12; font-size: 14px; }
.apply-submit { width: 100%; padding: 16px 18px; border: 0; border-radius: 14px; background: #050505; color: #fff; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.apply-submit:disabled { opacity: .6; cursor: wait; }
.apply-submit:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Видеоурок внизу окна (под формой и после заявки): слева обычный плеер браузера,
   справа на его высоту бежевая плашка с названием — урок заметен, но не спорит с формой */
.apply-video { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 40px; }
.apply-video__player, .intro-lesson__player { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #1a1a1a; }
.apply-video__player { align-self: center; border-radius: 12px; }
.apply-video__text { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: 12px; background: var(--soft); }
.apply-dialog .apply-video__title { margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.3; }
.apply-video__about-toggle { align-self: flex-start; }
.apply-video__about-toggle, .apply-paynow button { padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.apply-video__about { grid-column: 1 / -1; padding: 2px 2px 0; }
.apply-video__about ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.45; }
.apply-video__about li::before { content: "— "; }
.apply-dialog .apply-video__about ul + p { margin-top: 6px; }
.apply-dialog .apply-video__about p { font-size: 14px; color: var(--copy); }
.apply-dialog .apply-paynow { margin-top: 8px; text-align: center; font-size: 13px; color: #77716b; }

/* Состояние «спасибо» */
.apply-done h2 { margin-top: 8px; }
.apply-dialog.apply-dialog .apply-done p { margin-top: 12px; color: var(--copy); }
.apply-done .apply-submit { margin-top: 22px; }

@media (max-width: 860px) {
  .top { padding-top: 52px; }
}

/* Невысокий экран ноутбука: чуть плотнее, чтобы форма целиком помещалась в окне */
@media (max-height: 820px) and (min-width: 561px) {
  .apply-dialog { padding-top: 22px; padding-bottom: 18px; }
  .apply-form { gap: 10px; margin-top: 14px; }
  .apply-field textarea, .apply-field input { padding-top: 9px; padding-bottom: 9px; }
  .apply-submit { padding-block: 14px; }
  .apply-video { margin-top: 30px; }
  .apply-dialog .apply-paynow { margin-top: 6px; }
  .apply-field label { margin-bottom: 5px; }
}

/* Телефон: окно почти на весь экран, листается само по себе */
@media (max-width: 560px) {
  .apply-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 20px 16px 16px; border-radius: 16px; }
  .apply-dialog h2 { padding-right: 60px; font-size: 18px; }
  .apply-dialog p { font-size: 14px; }
  #apply-situation { min-height: 80px; }
  .apply-dialog .apply-hint, .apply-consent { font-size: 12.5px; }
  .apply-dialog .apply-price { font-size: 12.5px; }
  .apply-dialog .apply-paynow { margin-top: 6px; }
  .apply-form { gap: 9px; margin-top: 12px; }
  .apply-field label { margin-bottom: 4px; font-size: 13.5px; }
  .apply-field textarea, .apply-field input { padding: 9px 12px; }
  .apply-submit { padding: 14px 16px; font-size: 16px; }
  .apply-field textarea { resize: none; overflow: hidden; }
  .apply-field textarea::placeholder, .apply-field input::placeholder { font-size: 14px; }
  .apply-video { gap: 8px; margin-top: 32px; }
  .apply-video__text { gap: 4px; padding: 8px 10px; }
  .apply-dialog .apply-video__title { font-size: 12.5px; }
  .apply-video__about-toggle { font-size: 12px; }
}

/* На телефоне в шапке логотип, кнопка и значок «Задать вопрос»; вход убран, чтобы шапка не была перегружена */
@media (max-width: 650px) {
  .site-header__actions { gap: 12px; }
  .header-cta { padding: 9px 13px; border-radius: 10px; font-size: 13px; }
  .header-action__text { display: none; }
  .header-action--login { display: none; }
  .header-action img { width: 21px; height: 21px; }
  .top { padding-top: 44px; }
}

@media (max-width: 380px) {
  .site-header__logo { width: 98px; }
  .site-header__actions { gap: 9px; }
  .header-cta { padding: 8px 11px; font-size: 12.5px; }
}

/* Шире 1920 страница не растёт: размеры как на 1920, на большом мониторе просто больше воздуха по краям */
@media (min-width: 1921px) {
  .top h1, .stories h2, .yours h2, .after h2, .includes h2, .faq h2 { font-size: calc(min(80.64px, 9.5vh) * .925); }
  .art-hero img { height: min(74svh, 730px); }
  .chip { font-size: min(48px, 5.4vh); }
  .yours__after { font-size: min(57.6px, 6.6vh); }
  .say { font-size: min(90.24px, 9.4vh); }
  .say__one { --gap: min(15vh, 162px); }
  .manifest__line { font-size: min(67.2px, 7.4vh); }
}
