/* Основа: алиасы концепта на токены v3, сброс, утилиты. Шрифт Bebas (@font-face) приходит из tokens.css.
   Перенесено из design/concept-v2/index.html, строки 30–77. */
/* =========================================================================
   Главная «Адреналин», концепт v2: три экрана по одобренным кадрам
   comps/01-hero-a.jpg, 02-drum.jpg, 03-path-atlas.jpg. Моушн-дизайнер, 16.10.2026.
   Движение: быстрая атака, длинное расслабление, одна ось, без отскоков.
   ========================================================================= */
:root {
  /* Алиасы концепта на токены v3 (assets/css/tokens.css, копия design-system/tokens.css). Своих значений здесь нет, кроме помеченных «legacy».
     Токены грузятся раньше этого файла, шрифты, поле контейнера (--gutter) и кривая --ease-out берутся из них напрямую. */
  --red: var(--brand-red);          /* концепт: #E53131, токен: #E53132 — разница 1/255, бренд-значение берём из токена */
  --logo: var(--brand-red);
  --red-press: var(--red-hot);
  --red-soft: var(--red-400);
  --ink: var(--ink-deep);           /* #070707 */
  --ink-2: var(--ink-deep-2);       /* #101010 */
  --grey-2: var(--ink-650);
  --grey-4: var(--ink-400);
  --ease-expo: var(--ease-out-expo);
  /* legacy: значений нет в токенах, взяты из принятого концепта. Дизайнеру: заменить на токены или внести в v3 */
  --sa: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); /* ландшафт iPhone: вырез и Dynamic Island по бокам (viewport-fit=cover) */
  --gutter: max(clamp(16px, 3vw, 56px), var(--sa));
  --ink-3: #161616; --ink-4: #292929; --ink-5: #414141;
  --chalk: #F4F4F4;                 /* токен --ink-50 = #F5F5F5 */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.7 -.66'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* B17 (0.3.7): пока Bebas грузится (font-display: swap в tokens.css остаётся), заголовки набраны запасным начертанием с метриками Bebas,
   поэтому строки и переносы после подмены не прыгают. Замер в Chrome на заглавных строках заголовков сайта (700, 100 px, 12 строк):
   Bebas 10 665 px, ascent 0,75 em, descent 0,25 em; DIN Condensed Bold 10 824, Arial Narrow Bold 15 061, Arial Bold 18 206.
   size-adjust = ширина Bebas / ширина запасного; ascent-override и descent-override = метрика Bebas / size-adjust.
   DIN Condensed есть на Mac и iPhone, Arial Narrow — на Windows и Mac, Arial — почти везде. Нет ни одного — дальше по списку, как раньше. */
@font-face { font-family: "Bebas Neue Fallback"; src: local("DIN Condensed Bold"), local("DINCondensed-Bold"); font-weight: 700; font-style: normal; size-adjust: 98.5%; ascent-override: 76.1%; descent-override: 25.4%; line-gap-override: 0%; }
@font-face { font-family: "Bebas Neue Fallback Narrow"; src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"); font-weight: 700; font-style: normal; size-adjust: 70.8%; ascent-override: 105.9%; descent-override: 35.3%; line-gap-override: 0%; }
@font-face { font-family: "Bebas Neue Fallback Arial"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 700; font-style: normal; size-adjust: 58.6%; ascent-override: 128%; descent-override: 42.7%; line-gap-override: 0%; }
:root { --font-display: "Bebas Neue", "Bebas Neue Fallback", "Bebas Neue Fallback Narrow", "Bebas Neue Fallback Arial", "Arial Narrow", "Roboto Condensed", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; color: #fff; background: transparent; font: 400 16px/1.5 var(--font-text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
body::after { content: ""; position: fixed; inset: 0; z-index: 30; pointer-events: none; background-image: var(--grain); opacity: .22; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: inherit; text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; } /* цель якоря получает фокус, но рамка вокруг блока не нужна */
.on-chalk :focus-visible { outline-color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.d { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: .86; letter-spacing: 0; font-kerning: normal; }
.ln { display: block; overflow: clip; padding-block: .1em .02em; margin-block: -.1em -.02em; }
.ln > span { display: block; }
.hot { color: var(--red); }
.nb { white-space: nowrap; }

/* служебная кнопка паузы фона: видна при фокусе с клавиатуры (WCAG 2.2.2) */
.skip { position: fixed; z-index: 50; left: 12px; top: -80px; padding: 10px 14px; border: 0; background: #fff; color: var(--ink); font: 600 14px/1.2 var(--font-text); cursor: pointer; }
.skip:focus { top: 12px; }


/* Эффект heat: тепловое поле (WebGL-холст, статичный запасной градиент) и интро.
   Перенесено из design/concept-v2/index.html, строки 78–95. */
/* ---------- Тепловое поле ---------- */
.heat, .heat-fallback { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; }
.heat { z-index: -1; opacity: 0; transition: opacity .6s ease; background: var(--ink); }
.heat.is-on { opacity: 1; }
.heat-fallback {
  z-index: -2;
  background: radial-gradient(60% 46% at 24% 108%, #E53131 0%, #B01B21 22%, #7A0E15 44%, #2A0507 68%, #070707 90%);
}
.is-intro .heat-fallback { opacity: 0; }

/* ---------- Интро ---------- */


/* Кнопка со срезом 45°, перекат подписи, нагрев.
   Перенесено из design/concept-v2/index.html, строки 96–128. */
/* ---------- Кнопка: срез 45° на всех четырёх углах, как в кадре ---------- */
.mag { display: inline-block; will-change: transform; }
.btn {
  --cut: 10px; position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border: 0; background: none; color: #fff; text-decoration: none; white-space: nowrap;
  font: 700 16px/1.2 var(--font-text); letter-spacing: .01em; text-transform: none;
  -webkit-tap-highlight-color: transparent; user-select: none; cursor: pointer;
  transition: transform .16s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); /* правило срезов: у кнопки правый верхний и левый нижний */
  transition: background-color .26s ease;
}
.btn::after { /* нагрев под кнопкой: 260 мс, остывание 700 мс */
  content: ""; position: absolute; z-index: -2; left: 6%; right: 6%; top: 40%; height: 110%;
  background: radial-gradient(50% 50% at 50% 30%, rgba(255,74,77,.7), rgba(229,49,49,0)); opacity: 0; transition: opacity .7s ease;
}
.btn:active { transform: scale(.97); }
.btn__roll { display: block; height: 1.25em; overflow: hidden; } /* окно ровно в одну строку Golos; вторая копия ниже, при наведении съезжает наверх */
.btn__roll > span { display: block; line-height: 1.25; transition: transform .45s var(--ease-out); }
.btn__roll > span::after { content: attr(data-t); content: attr(data-t) / ""; display: block; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { background-color: var(--red-press); }
  .btn:hover::after { opacity: 1; transition-duration: .26s; }
  .btn:hover .btn__roll > span { transform: translateY(-50%); }
}
.btn--l { min-height: 60px; padding: 0 36px; font-size: 18px; --cut: 12px; }
.btn--m { min-height: 50px; padding: 0 22px; font-size: 16px; --cut: 10px; }
.btn--s { min-height: 44px; padding: 0 16px; font-size: 14px; --cut: 8px; }
.rm .btn__roll > span { transition: none; }


/* Эффект cut: срез 45° на стыке экранов.
   Перенесено из design/concept-v2/index.html, строки 129–137. */
/* ---------- Срез 45° на стыке экранов ---------- */
.cut { position: absolute; z-index: 4; bottom: -1px; width: min(54vw, 74svh); aspect-ratio: 1; pointer-events: none; opacity: 0; will-change: transform; }
.cut--r { right: 0; transform-origin: 100% 100%; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.cut--l { left: 0; transform-origin: 0 100%; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.cut--chalk { background: var(--chalk); }
.cut--ink { background: var(--ink); }
.cut--atlas { background: #181617; }
.hero > .cut { z-index: 2; } /* клин растёт под билетом и условием, текст не закрывает */


/* высота шапки: закреплённые экраны (барабан, атлас) начинаются под ней */
:root { --hdr-h: 76px; }
/* Шапка, подменю на 1440, шторка меню до 1199.
   Перенесено из design/concept-v2/index.html, строки 138–265. */
/* =========================================================================
   Шапка v1.3 — comps/header-v13-desktop.png и header-v13-mobile.png, эталон comps/header-v13.html, handoff-motion.md, раздел 6
   ========================================================================= */
.hdr { position: absolute; z-index: 20; top: 0; left: 0; right: 0; height: var(--hdr-h); display: flex; align-items: center; gap: 44px; padding-inline: max(48px, var(--sa)); }
.hdr::before { /* затемнение под прозрачной шапкой: меню не ложится на освещённое лицо */
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 140px; pointer-events: none;
  background: linear-gradient(rgba(7,7,7,.72), rgba(7,7,7,0)); transition: opacity .2s ease;
}
.hdr__brand { display: flex; align-items: center; gap: 14px; flex: none; }
/* подпись у логотипа — только «Школа фитнеса», от 1200 px: «Адреналин» есть в логотипе, «при сети клубов» — в подстроке H1 (решение стратега 16.10).
   Уже 1200 подписи нет, бренд — первые слова лида, выделенные белым */
.hdr__mark { font: 500 12px/15px var(--font-text); color: var(--grey-4); padding-left: 14px; border-left: 1px solid var(--ink-5); white-space: nowrap; }
.hdr__logo { display: block; height: 30px; color: var(--logo); }
.hdr__logo svg { display: block; height: 100%; width: auto; }
.hdr__logo { position: relative; opacity: 1; transform: none; }
.hdr__logo::before { content: ""; position: absolute; inset: -10px -8px; } /* зона касания не меньше 44 px при высоте знака 24-30 px */ /* логотип всегда виден и неподвижен: без интро, свечения, ухода при прокрутке */
.hdr__nav { display: flex; gap: 28px; white-space: nowrap; }
.hdr__nav > a, .hdr__vl, .hdr__tel, .hdr__act { font: 600 14px/1.2 var(--font-text); letter-spacing: .01em; text-transform: none; text-decoration: none; }
.hdr__nav > a { display: inline-flex; align-items: center; gap: 8px; height: 44px; transition: color .2s ease; }
.hdr__right { margin-left: auto; display: flex; align-items: center; gap: 26px; white-space: nowrap; }
.hdr__vl { display: inline-flex; align-items: center; height: 44px; padding-left: 26px; color: var(--grey-4); box-shadow: inset 1px 0 0 var(--ink-5); transition: color .2s ease; } /* вход для учеников, за чертой */
.hdr__tel { display: inline-flex; align-items: center; height: 44px; transition: color .2s ease; }
.btn--h { min-height: 44px; padding: 0 20px; font-size: 15px; --cut: 10px; }
@media (hover: hover) and (pointer: fine) { .hdr__nav > a:hover, .hdr__vl:hover, .hdr__tel:hover { color: var(--red-soft); } }
.chev { flex: none; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.chev--r { transform: rotate(-45deg); } /* уголок вправо */
.hdr__m { display: none; gap: 4px; margin-right: -8px; }
.hdr__act { display: inline-flex; align-items: center; height: 44px; padding: 0 8px; border: 0; background: none; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; } /* «Позвонить», «Меню» словами, зона 44 px */
/* Подменю «Курсы и семинары» на 1440 — кадр comps/header-v13-desktop.png (нижний), эталон comps/header-v13.html (.dd), handoff-motion.md, раздел 11.
   Открывается наведением и по клику, закрывается Esc, кликом вне и прокруткой. Появление — 200 мс: прозрачность и 6 px сверху */
.hdr__navbtn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; font: 600 14px/1.2 var(--font-text); letter-spacing: .01em; text-transform: none; transition: color .2s ease, box-shadow .2s ease; -webkit-tap-highlight-color: transparent; }
.hdr__navbtn .chev { transition: transform .2s var(--ease-out); }
.hdr__navbtn[aria-expanded="true"] { box-shadow: inset 0 -2px 0 var(--red); }
.hdr__navbtn[aria-expanded="true"] .chev { transform: translateY(2px) rotate(-135deg); }
@media (hover: hover) and (pointer: fine) { .hdr__navbtn:hover { color: var(--red-soft); } }
.ddp {
  position: absolute; z-index: 1; left: 0; right: 0; top: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 300px; column-gap: 40px;
  padding: 36px 48px 28px; background: var(--ink-2); box-shadow: inset 0 1px 0 var(--ink-4); white-space: normal; cursor: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s ease, transform .15s var(--ease-out), visibility 0s linear .15s;
}
.ddp.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s var(--ease-out), visibility 0s; }
.ddp__g h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 600 14px/1.2 var(--font-text); letter-spacing: .01em; text-transform: uppercase; color: var(--grey-4); }
.ddp__g h3::before { content: ""; flex: none; width: 14px; height: 2px; background: var(--red); }
.ddp__g a { display: block; padding: 7px 0; font: 500 16px/1.35 var(--font-text); color: #fff; text-decoration: none; transition: color .2s ease; }
.ddp__g small { display: block; margin-top: 2px; font: 400 13px/1.4 var(--font-text); color: #838383; }
.ddp__g .warn { font-size: 10px; }
.ddp__links { grid-column: 1 / 5; display: flex; gap: 32px; margin-top: 18px; padding-top: 18px; box-shadow: inset 0 1px 0 var(--ink-4); }
.ddp__links a { display: inline-flex; align-items: center; gap: 10px; height: 44px; font: 600 14px/1.2 var(--font-text); letter-spacing: .01em; text-transform: none; color: #fff; text-decoration: none; transition: color .2s ease; }
.ddp__links .chev { width: 8px; height: 8px; }
.ddp__tag { /* бирка ближайшего старта: тот же билет, что на первом экране, срез справа сверху */
  --cut: 16px; grid-column: 5; grid-row: 1 / 3; align-self: start; padding: 18px 18px 16px; background: #fff; color: var(--ink);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.ddp__lab { margin-bottom: 8px; font: 500 11px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--grey-2); }
.ddp__nm { font: 600 17px/1.3 var(--font-text); }
.ddp__vals { display: flex; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 2px dashed #E9E9E9; font: 600 17px/1.2 var(--font-text); letter-spacing: .01em; }
.ddp__go { display: inline-flex; align-items: center; height: 32px; margin-top: 14px; font: 600 14px/1.2 var(--font-text); letter-spacing: .01em; text-transform: none; color: var(--red-press); text-decoration: none; box-shadow: inset 0 -2px 0 rgba(228, 0, 0, .35); transition: box-shadow .26s ease; }
@media (hover: hover) and (pointer: fine) {
  .ddp__g a:hover, .ddp__links a:hover { color: var(--red-soft); }
  .ddp__go:hover { box-shadow: inset 0 -2px 0 var(--red-press); }
}
.rm .ddp, .rm .ddp.is-open { transform: none; }
.hdr.is-dd { background: var(--ink); } /* панель открыта — шапка сплошная, как в кадре: меню не ложится на фото */
.hdr.is-dd::before { opacity: 0; }
@media (max-width: 1329px) { .ddp { column-gap: 28px; grid-template-columns: repeat(4, minmax(0, 1fr)) 270px; } }
@media (max-width: 1199px) { .ddp { display: none; } }
/* После прокрутки шапка прилипает: фон #070707, линия снизу. Прокрутка вниз — уходит вверх за 320 мс, вверх — возвращается:
   так шапка не закрывает закреплённые экраны атласа и барабана */
.hdr.is-stuck { position: fixed; background: var(--ink); box-shadow: inset 0 -1px 0 var(--ink-4); transform: none; } /* шапка (и логотип) после прокрутки не уходит вверх: решение 05.11 */
.hdr.is-stuck::before { display: none; }
/* ширины по замеру дизайнера: вся шапка — 1383 px, без телефона — 1207 */
@media (max-width: 1329px) { .hdr { gap: 36px; } .hdr__nav { gap: 24px; } .hdr__tel { display: none; } }
@media (max-width: 1199px) { /* компактная: логотип, «Позвонить», «Меню» и красная «Записаться» */
  .hdr__mark, .hdr__nav, .hdr__vl { display: none; }
  .hdr__m { display: flex; order: 2; margin-left: auto; }
  .hdr__right { order: 3; margin-left: 8px; }
}
@media (max-width: 899px) { :root { --hdr-h: 56px; } /* «Записаться» — в меню и в липкой нижней панели */
  .hdr { padding-inline: max(16px, var(--sa)); gap: 8px; }
  .hdr__logo { height: 24px; }
  .hdr__right { display: none; }
}

/* Меню до 1199 px — кадр header-v13-mobile.png; движение — шторка дизайн-системы: опускается за 520 мс, пункты поднимаются по очереди с шагом 50 мс */
.msheet {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 max(16px, var(--sa)) calc(24px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff;
  transform: translateY(-102%); visibility: hidden;
  transition: transform .52s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .52s;
}
.msheet[data-open="true"] { transform: none; visibility: visible; transition: transform .52s cubic-bezier(.32, .72, 0, 1), visibility 0s; }
.msheet__bar { flex: none; display: flex; align-items: center; height: 56px; margin: 0 calc(-1 * max(16px, var(--sa))); padding: 0 max(16px, var(--sa)); box-shadow: inset 0 -1px 0 var(--ink-4); }
.msheet__bar .hdr__logo { height: 24px; }
.msheet__bar .hdr__m { display: flex; margin-left: auto; }
.msheet__nav ul { list-style: none; margin: 0; padding: 16px 0 0; }
.msheet__nav li { opacity: 0; transform: translateY(16px); transition: opacity .32s var(--ease-out), transform .32s var(--ease-out); }
.msheet[data-open="true"] .msheet__nav li { opacity: 1; transform: none; transition-delay: calc(120ms + var(--i, 0) * 50ms); }
.msheet__nav li > a, .msheet__ddbtn { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 58px; padding: 0; border: 0; border-bottom: 1px solid var(--ink-4); background: none; color: #fff; text-align: left; text-decoration: none; font: 700 40px/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* «Курсы и семинары» раскрывается на месте (кадр header-v13-mobile.png, третий), остальные пункты уезжают вниз: высота — 0fr → 1fr за 360 мс */
.msheet__ddbtn[aria-expanded="true"] { border-bottom-color: transparent; }
.msheet__ddbtn .chev { transition: transform .26s var(--ease-out); }
.msheet__ddbtn[aria-expanded="true"] .chev { transform: translateY(3px) rotate(-135deg); }
.msheet__dd { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .36s var(--ease-out); }
.msheet__dd.is-open { grid-template-rows: 1fr; box-shadow: inset 0 -1px 0 var(--ink-4); }
.msheet__dd > div { min-height: 0; overflow: hidden; }
.msheet__dd > div > :last-child { margin-bottom: 14px; }
.msheet__grp { margin: 14px 0 4px; font: 500 11px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: #838383; }
.msheet__dd a { display: flex; align-items: center; min-height: 40px; padding: 6px 0; font: 500 16px/1.25 var(--font-text); color: #fff; text-decoration: none; }
.rm .msheet__dd, .rm .msheet__ddbtn .chev { transition: none; }
.msheet__nav .chev { width: 10px; height: 10px; color: #838383; transform: translateY(-4px) rotate(45deg); }
.msheet__sub { list-style: none; margin: 0; padding: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.msheet__sub a { display: flex; align-items: center; height: 44px; font: 500 16px/1 var(--font-text); color: #BFBFBF; text-decoration: none; }
.msheet__vl { /* контурная кнопка: контур 2 px #414141, два среза */
  position: relative; isolation: isolate; flex: none; display: flex; align-items: center; justify-content: space-between; height: 52px; margin-top: 20px; padding: 0 16px;
  font: 600 16px/1.2 var(--font-text); text-transform: none; letter-spacing: .01em; color: #fff; text-decoration: none;
  background: var(--ink-5);
}
.msheet__vl::before { content: ""; position: absolute; z-index: -1; inset: 2px; background: var(--ink-2); }
.msheet__vl small { font: 400 13px/1 var(--font-text); color: var(--grey-4); text-transform: none; letter-spacing: 0; }
.msheet__tel { margin: 28px 0 24px; }
.msheet__tel a { font: 700 34px/1 var(--font-display); letter-spacing: .01em; text-decoration: none; }
.msheet__tel p { margin: 6px 0 0; font: 400 13px/1.4 var(--font-text); color: var(--grey-4); }
.msheet__cta { flex: none; width: 100%; min-height: 52px; margin-top: auto; font-size: 17px; }
.rm .msheet { transform: none; opacity: 0; transition: opacity .2s ease, visibility 0s linear .2s; } /* без анимации — только проявление, как в дизайн-системе */
.rm .msheet[data-open="true"] { opacity: 1; transition: opacity .2s ease, visibility 0s; }
.rm .msheet__nav li { opacity: 1; transform: none; transition: none; }

/* ЗАДАЧА-24 (аудит телефонов 10.11). Баг 4: пока меню открыто, липкие «Записаться» (.stk на главной, .enroll-bar на курсах и семинарах) не закрывают его низ.
   Класс menu-open ставит header.js. */
/* Баг 17: нагрев под кнопкой (.btn::after) выходит за её низ на 26 px и давал лишнюю прокрутку шторки на 2 px; в шторке он не выходит за кнопку. */
.msheet__cta::after { height: 60%; }
html.menu-open .stk, html.menu-open .stk.is-on, html.menu-open .enroll-bar { transform: translateY(110%); visibility: hidden; pointer-events: none; }
/* Баг 15: меню в ландшафте и на крышке Flip (окно ниже 520 px) — два столбца: пункты слева, остальное справа. Размеры шрифтов те же, ужаты только высоты строк. */
@media (max-height: 520px) and (max-width: 1199px) {
  .msheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto auto 1fr; align-content: start; column-gap: clamp(20px, 5vw, 48px); padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .msheet__bar { grid-column: 1 / -1; height: 48px; }
  .msheet__nav { grid-column: 1; grid-row: 2 / 7; }
  .msheet__sub, .msheet__vl, .msheet__tel, .msheet__cta { grid-column: 2; }
  .msheet__nav ul { padding-top: 6px; }
  .msheet__nav li > a, .msheet__ddbtn { height: 46px; font-size: 34px; }
  .msheet__sub { padding-top: 6px; }
  .msheet__sub a { height: 40px; }
  .msheet__vl { height: 46px; margin-top: 8px; }
  .msheet__tel { margin: 12px 0 10px; }
  .msheet__tel a { font-size: 30px; }
  .msheet__tel p { margin-top: 4px; }
  .msheet__cta { margin-top: 0; min-height: 48px; }
}
/* ЗАДАЧА-27, баг 15: крышка Flip (окно не шире и не выше 479 px, 349x316, 352x355, 424x360): два столбца тесные, «Курсы и семинары» уходило на две строки и наезжало на соседние пункты.
   Здесь одна колонка, как на телефоне в портрете, меню прокручивается; шрифты те же, что в ландшафте (34 px). Телефон в портрете, ландшафт от 480 px, Fold и компьютер не затронуты. */
@media (max-width: 479px) and (max-height: 479px) {
  .msheet { display: flex; flex-direction: column; }
  .msheet__nav li > a, .msheet__ddbtn { height: 46px; white-space: nowrap; }
  .msheet__cta { margin-top: 14px; }
}

/* Общее для секций: мел, заголовок h2x, маска фото .rv, ссылки, кнопки ghost.
   Перенесено из design/concept-v2/index.html, строки 546–596. */
/* =========================================================================
   Блоки 2–5 главной v1.3 — кадры comps/04-start.jpg и 05-pair.jpg, handoff-motion.md, разделы 9, 10 и 12.
   Тексты — prototype/v2/home-structure-v2.md v1.3, слово в слово как в prototype/lofi/assets/data-v2.js
   ========================================================================= */
.chalk { position: relative; background: var(--chalk); color: var(--ink); }
.h2x { font-size: clamp(56px, 10.4vw, 168px); line-height: .84; }
.h2x .ln > span, .half__h .ln > span { text-wrap: balance; }
/* фото с маской (эффект 6, как в ролике): обёртка едет снизу, картинка внутри компенсирует сдвиг — кадр стоит, маска поднимается.
   Фото людей — в естественном цвете: красный на них не кладём ни плёнкой, ни по скроллу, ни при наведении (решение заказчика 21.10, ЗАДАЧА-13) */
.rv { position: absolute; inset: 0; overflow: hidden; }
.rv__img { position: absolute; inset: 0; }
.rv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* постер-ссылка при наведении и фокусе: кадр чуть приближается внутри маски, цвет не меняется.
   Атака 450 мс, расслабление 700 мс — как у черты указателя; масштабируется сама картинка, а не обёртка, которую двигает маска */
.pst .rv img, .apost .rv img { transition: transform .7s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  html:not(.rm) .pst:hover .rv img, html:not(.rm) .apost:hover .rv img { transform: scale(1.03); transition-duration: .45s; }
}
html:not(.rm) .pst:focus-visible .rv img, html:not(.rm) .apost:focus-visible .rv img { transform: scale(1.03); transition-duration: .45s; }
/* ссылки: Bebas с чертой (как «Расписание семинаров») и текстовая внутри абзаца */
.tlink { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 600 14px/1.2 var(--font-text); letter-spacing: .01em; text-transform: none; color: var(--red-press); text-decoration: none; }
.tlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: currentColor; opacity: .35; transition: opacity .26s ease; }
.tlink .chev { width: 8px; height: 8px; transition: transform .26s var(--ease-out); }
.on-ink .tlink { color: var(--red-soft); }
.ilink { position: relative; color: inherit; font-weight: 500; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .24em; transition: color .2s ease; }
.ilink::before { content: ""; position: absolute; inset: -12px -4px; } /* зона касания 44 px без изменения вида */
@media (hover: hover) and (pointer: fine) {
  .tlink:hover::after { opacity: 1; }
  html:not(.rm) .tlink:hover .chev { transform: translateX(3px) rotate(-45deg); }
  .ilink:hover { color: var(--red-press); }
  .on-ink .ilink:hover { color: var(--red-soft); }
}
/* плашка «до проверки юристом»: отметка для заказчика, на боевом сайте её нет */
.lawtag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px dashed currentColor; font: 600 10.5px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--grey-2); }
.lawtag--ph { position: absolute; z-index: 3; left: 12px; top: 12px; color: #fff; background: rgba(7, 7, 7, .78); } /* групповые фото — до согласия людей (вопрос 15 заказчику) */
.gcard__fig .lawtag--ph { top: auto; bottom: 12px; }
/* чёрная кнопка на «меле»: при наведении нагревается до красного за 260 мс, остывает за 700 мс */
.btn--ink::before { background: var(--ink); transition-duration: .7s; }
@media (hover: hover) and (pointer: fine) { .btn--ink:hover::before { background-color: var(--red); transition-duration: .26s; } }
/* вторичное действие — ссылка (не вторая кнопка того же веса): подчёркивание, без рамки и среза */
.ghost {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  font: 600 16px/1.2 var(--font-text); color: inherit; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; white-space: normal;
  -webkit-tap-highlight-color: transparent; transition: color .2s ease;
}
@media (hover: hover) and (pointer: fine) { .ghost:hover { color: var(--red-400); } }
.on-chalk .ghost:hover, .surface-chalk .ghost:hover { color: var(--red-650); }


/* ЗАДАЧА-24, баг 11: зоны касания 44 px на телефоне без изменения вида (логотип; кнопка «Остановить анимацию» при фокусе; ссылки в «Контактах») */
@media (max-width: 899px) { .hdr__logo::after { content: ""; position: absolute; inset: -10px -8px; } }
.skip { min-height: 44px; }
@media (max-width: 899px) { .v3 .cinfo dd > a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; } }

/* Первый экран (посыл 3) и билет ticket.
   Перенесено из design/concept-v2/index.html, строки 266–412. */
/* =========================================================================
   1. Первый экран — кадр 01-hero-a, вариант A: атлет и билет, заголовок без перекрытия
   ========================================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(80px, 12.5svh, 140px) var(--gutter) clamp(20px, 3.6svh, 48px); }
.hero__plate { position: absolute; right: 0; top: 0; height: 100%; width: auto; aspect-ratio: 1400 / 1220; object-fit: cover; object-position: 100% 0; max-width: none; pointer-events: none; mix-blend-mode: screen; will-change: transform; } /* чистая плашка дизайнера, фон ровно 0: растворяется в поле без серой дымки.
   will-change — фото на собственном слое композиции: без него Safari (WebKit) рисует фото внутрь слоя .hero и считает screen с пустым слоем, а не с холстом поля,
   поэтому чёрный фон фото закрывает поле с жёсткой границей по левому краю фото (проверено по дереву слоёв WebKit, 05.11) */
/* Смысловой блок (посыл 3, 4.3в): H1 меньше, чем в кадре, — под ним лид из трёх предложений и три опоры, всё рядом с атлетом */
.hero__h1 { position: relative; font-size: calc(clamp(56px, min(10.2vw, 15.6svh), 210px) * var(--h1-k, 1) * var(--h1-fit, 1)); line-height: .8; letter-spacing: -.004em; } /* --h1-k: крупная строка посыла не шире «Персональный» — заголовок не заходит на атлета; --h1-fit: на низком окне (1366 × 768, 1024 × 768) посыл с плашками помещается в первый экран, не меньше 0,82 */
.hero__h1 .ln { padding-top: .24em; margin-top: -.24em; } /* бреве «Й» не срезается маской строки */
.hero__h1s { font-size: calc(.3em / var(--h1-k, 1)); line-height: .9; margin-top: .2em; color: var(--red); } /* «курсы в Минске при сети клубов „Адреналин“» — красная, как в кадре v1.3; по ширине со словом «Персональный» */
/* лид слева, опоры справа; ни текст, ни кнопка с плашками не заходят под билет */
.hero__deck {
  position: relative; z-index: 3; margin-top: clamp(16px, 2.8svh, 32px); max-width: min(980px, calc(100% - var(--side-w) - 40px));
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: "l1 pr" "l2 pr" "l3 pr"; column-gap: clamp(24px, 2.6vw, 44px); align-items: start;
}
.hero__lead { grid-area: l1; position: relative; z-index: 3; margin: 0; font: 500 clamp(17px, 1.3vw, 20px)/1.45 var(--font-text); color: #fff; }
.hero__lead b { font-weight: 600; color: #fff; } /* бренд — первые слова лида, белым (кадр header-v13-mobile) */
.hero__lead--more { grid-area: l2; margin-top: 8px; font-weight: 400; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.5; color: #D6D6D6; }
.hero__props { grid-area: pr; position: relative; z-index: 3; margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.hero__props li { position: relative; padding-left: 22px; font: 500 clamp(14px, 1vw, 15px)/1.38 var(--font-text); color: #EDEDED; }
.hero__props li::before { content: ""; position: absolute; left: 0; top: .66em; width: 12px; height: 2px; background: var(--red); } /* красная черта, как выноски атласа */
.hero__props .warn { font-size: 11px; }
@media (max-width: 1199px) { /* узкий экран лёжа: опоры списком под лидом */
  .hero__deck { grid-template-columns: minmax(0, 1fr); grid-template-areas: "l1" "l2" "l3" "pr"; max-width: min(640px, calc(100% - var(--side-w) - 40px)); }
  .hero__props { margin-top: 10px; gap: 6px; }
}
@media (min-width: 768px) and (max-width: 1199px) and (orientation: landscape) { /* текст поднимается до грифа: левая часть фото уходит в темноту, атлет остаётся справа */
  .hero__plate { -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 66%); mask-image: linear-gradient(90deg, transparent 38%, #000 66%); }
  /* опоры — строкой в три колонки, черта сверху: списком на 1024 × 768 плашки уходили за первый экран */
  .hero__props { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 18px; margin-top: 14px; }
  .hero__props li { padding: 10px 0 0; font-size: 13.5px; line-height: 1.32; }
  .hero__props li::before { top: 0; }
}
.hero__h1s > span { text-wrap: balance; max-width: var(--sub-max, 16.5em); } /* --sub-max ставит скрипт (ширина «Персональный»); запас без JS — тот же замер на 1440 */
/* Надзаголовок посыла 3 (research/05-razbor.md, 4.3в; решение заказчика 26.10, ЗАДАЧА-15) — до 1200 px: лид начинается не с бренда, а подпись у логотипа есть только от 1200 */
.hero__over { position: relative; z-index: 3; width: max-content; max-width: 100%; margin: 0 0 12px; font: 600 15px/1.3 var(--font-text); color: #fff; }
@media (min-width: 1200px) { .hero__over { display: none; } }
.hero__cta { position: relative; z-index: 3; margin-top: clamp(14px, 2.6svh, 28px); display: grid; gap: 10px; width: max-content; max-width: calc(100% - var(--side-w) - 40px); } /* над клином на выходе: на телефоне кнопка и плашки стоят у нижнего края */
.hero__cta .btn { width: 100%; }
.hero { --side-w: clamp(340px, 27.4vw, 430px); }
.hero__side { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(18px, 3.2svh, 40px); width: var(--side-w); display: grid; gap: 10px; }

/* Плашки-дорожки «Учусь для себя» и «Хочу работать в фитнесе»: навигация, а не второй призыв — призрачная кнопка из дизайн-системы
   (контур 2 px со срезом 45°, внутри заливка). Наведение: контур нагревается за 260 мс, остывает за 700 мс, стрелка сдвигается на 3 px */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.path {
  --cut: 10px; position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 8px 16px 8px 18px; color: #fff; text-decoration: none;
  font: 600 14px/1.2 var(--font-text); letter-spacing: .02em; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent; transition: transform .12s var(--ease-out);
}
.path::before, .path::after { content: ""; position: absolute; z-index: -1; }
.path::before { inset: 0; background: var(--ink-5); transition: background-color .7s ease; }
.path::after { --ci: calc(var(--cut) - 1.17px); inset: 2px; background: #121212; } /* плашка — тоже кнопка: два среза; у внутреннего слоя срез меньше на 1,17 px, диагональ контура тоже 2 px */
.path .chev { width: 9px; height: 9px; transition: transform .26s var(--ease-out); }
.path:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .path:hover::before { background-color: var(--red); transition-duration: .26s; }
  html:not(.rm) .path:hover .chev { transform: translateX(3px) rotate(-45deg); }
}
.warn { font: 600 .32em/1 var(--font-text); color: var(--red-soft); text-decoration: none; vertical-align: super; margin-left: .15em; cursor: help; }
.tix .warn { font-size: 12px; color: var(--red-press); }

/* Билет: три колонки с перфорацией и строка «Включено»; при наведении растёт вверх и показывает курс (эффект 10).
   Форма — clip-path (атака 220 мс, возврат 560 мс), содержимое — размытие 2 px за 160 мс. --top ставит скрипт по высоте скрытой части */
.tix {
  --cut: 24px; --top: 64px;
  position: relative; width: 100%; background: #fff; color: var(--ink);
  clip-path: polygon(0 var(--top), calc(100% - var(--cut)) var(--top), 100% calc(var(--top) + var(--cut)), 100% 100%, 0 100%);
  transition: clip-path .56s var(--ease-in-out);
}
.tix.is-open { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); transition: clip-path .22s var(--ease-out); }
.tix__more { padding: 16px 20px 14px; display: grid; gap: 4px; opacity: 0; filter: blur(2px); transition: opacity .16s ease, filter .16s ease; }
.tix.is-open .tix__more { opacity: 1; filter: none; transition-delay: .06s; }
.tix__name { font: 600 15px/1.3 var(--font-text); }
.tix__plan { font-size: 13px; line-height: 1.35; color: var(--grey-2); }
/* билет — компонент по эталону дизайнера (comps/header-v13.html, .tk): перфорация — пунктир 2 px #E9E9E9,
   вырезы 12 px цвета фона у верхнего края между колонками и по бокам горизонтальной линии над «Включено» */
.tix__row { position: relative; display: grid; grid-template-columns: 1.14fr 1.04fr 1fr; min-height: clamp(66px, 8.2svh, 80px); }
.tix__row > div { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 12px 12px 18px; }
.tix__row > div + div::before { content: ""; position: absolute; left: -1px; top: 8px; bottom: 0; border-left: 2px dashed #E9E9E9; }
.tix__row > div + div::after, .tix__inc::before, .tix__inc::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); transition: opacity .16s ease; }
.tix__row > div + div::after { left: -7px; top: -7px; }
.tix.is-open .tix__row > div + div::after { opacity: 0; } /* билет раскрыт вверх — верхний край уже не здесь */
.tix__row dt { font: 500 12px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--grey-2); }
.tix__row dd { font: 700 clamp(24px, 2vw, 30px)/.9 var(--font-display); letter-spacing: .01em; white-space: nowrap; }
.tix__row dd.tix__tbd { white-space: normal; font-size: clamp(20px, 1.6vw, 24px); line-height: .95; text-wrap: balance; } /* «Дата уточняется» в две строки */
.tix__row dd.tix__alt { font: 500 12px/1.1 var(--font-text); color: var(--grey-2); letter-spacing: 0; }
.tix__inc { position: relative; padding: 10px 18px 12px; border-top: 2px dashed #E9E9E9; font: 400 12.5px/1.36 var(--font-text); color: #3D3D3D; }
.tix__inc::before { left: -6px; top: -7px; } .tix__inc::after { right: -6px; top: -7px; }
@media (max-width: 1240px) { /* билет 340 px: «Стоимость» не заходит под срез угла */
  .tix__row > div { padding-left: 14px; }
  .tix__row dt { letter-spacing: .02em; }
}
/* Телефон и планшет стоя — порядок 4.3в: H1, первое предложение лида, билет, кнопка, две плашки — на первом экране;
   остальной лид и опоры — сразу под ними. В HTML порядок смысловой (лид целиком, опоры, билет, кнопка), здесь его меняет order */
@media (max-width: 767px), (max-width: 1023px) and (orientation: portrait) {
  .hero { justify-content: flex-start; padding-top: var(--top-pad, calc(48px + 24svh)); } /* --top-pad на планшете стоя ставит скрипт: блок поднимается по фото, пока плашки не войдут в первый экран */
  .hero__plate { height: 52svh; top: 48px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 58%, transparent 96%); mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 58%, transparent 96%); }
  .hero__h1 { font-size: calc(14.6vw * var(--h1-k, 1) * var(--h1-fit, 1)); } /* --h1-fit — на планшете стоя, если посыл с плашками не входит в первый экран; на телефоне не действует */
  .hero__deck { display: contents; }
  .hero__lead { max-width: 560px; margin-top: 16px; font-size: 16px; line-height: 1.45; }
  .hero__side { order: 1; position: relative; right: auto; bottom: auto; width: 100%; max-width: 520px; margin-top: 18px; }
  .hero__cta { order: 2; width: 100%; max-width: 520px; margin-top: 14px; gap: 8px; }
  .hero__lead--more { order: 3; margin-top: 28px; font-size: 15px; }
  .hero__props { order: 4; max-width: 560px; margin-top: 16px; gap: 10px; }
  .hero__props li { font-size: 15px; }
  .paths { gap: 8px; }
  .path { min-height: 52px; padding: 8px 12px; font-size: 14px; line-height: 1.1; } /* кадр: Bebas 19, перенос на вторую строку допустим */
  /* билет компактный: три колонки и «Включено», без названия курса. Наведения нет, форма не меняется */
  .tix { --cut: 16px; }
  .tix .tix__more { display: none; }
  .tix.is-open .tix__row > div + div::after { opacity: 1; }
  .hero__h1s { font-size: calc(.5em / var(--h1-k, 1)); }
  .hero__h1s > span { max-width: var(--sub-max, 10em); }
  .btn--l { font-size: 17px; padding: 0 16px; }
}
/* Телефон — кадр comps/header-v13-mobile.png и ticket-mobile.png, handoff-motion.md, раздел 7.
   Фото — гибкая зона над текстом: прижато к верху, не больше ширины × 339/375, низ растворяется в чёрный с 68 %.
   Высоту (--photo-h) считает скрипт: на коротком экране сжимается фото, а не текст, гриф уходит из кадра */
@media (max-width: 767px) {
  .hero { padding-top: var(--photo-h, calc(48px + 24svh)); }
  .hero__plate {
    top: 0; left: 0; right: 0; width: 100%; height: var(--photo-h, calc(48px + 24svh)); max-height: calc(100vw * 339 / 375);
    object-fit: cover; object-position: 50% 0; mix-blend-mode: screen; /* чистая плашка на чёрном: поле просвечивает в тенях */
    -webkit-mask-image: linear-gradient(#000 68%, transparent); mask-image: linear-gradient(#000 68%, transparent);
  }
  .hero__h1 { font-size: calc(min(17.6vw, 76px) * var(--h1-k, 1)); line-height: .87; } /* 66 px на 375 */
  .hero__h1s { font-size: calc(.394em / var(--h1-k, 1)); line-height: .95; margin-top: 8px; } /* 26 px */
  .hero__h1s > span { max-width: var(--sub-max, 12.6em); }
  .hero__lead:not(.hero__lead--more) { margin-top: 12px; font: 400 15px/22px var(--font-text); color: #BFBFBF; }
  .hero__side { margin-top: 16px; }
  .tix__row > div { padding: 14px 12px 12px; justify-content: flex-start; }
  .tix__row dt { font-size: 11px; letter-spacing: .06em; }
  .tix__row dd { font-size: 24px; margin-top: 3px; }
  .tix__row dd.tix__tbd { font-size: 22px; }
  .tix__inc { padding: 10px 12px 12px; font-size: 12px; line-height: 17px; color: var(--grey-2); }
  .hero__cta .btn { min-height: 52px; }
}
/* уже 375 px (Android 360, iPhone SE 320) — бирка столбиком: старт и цена, срок строкой ниже, «Включено» внизу */
@media (max-width: 374px) {
  .tix__row { grid-template-columns: 1fr 1fr; grid-template-areas: "s p" "t t"; }
  .tix__row > div:nth-child(1) { grid-area: s; }
  .tix__row > div:nth-child(3) { grid-area: p; }
  .tix__row > div:nth-child(2) { grid-area: t; flex-direction: row; align-items: baseline; gap: 12px; padding: 12px 12px 10px; border-top: 2px dashed #E9E9E9; }
  .tix__row > div:nth-child(2)::before { left: -6px; top: -7px; bottom: auto; width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--ink); }
  .tix__row > div:nth-child(2)::after { left: auto; right: -6px; }
}


/* Барабан курсов (drum).
   Перенесено из design/concept-v2/index.html, строки 413–493. */
/* =========================================================================
   2. Барабан курсов на «меле» — кадр 02-drum
   ========================================================================= */
.drum { position: relative; color: var(--ink); background: radial-gradient(90% 80% at 38% 46%, #FBFBFB 0%, #F4F4F4 56%, #E9E9E9 100%); }
.drum__pin { position: relative; height: calc(100vh - var(--hdr-h)); height: calc(100svh - var(--hdr-h)); overflow: hidden; }
.drum.is-flow .drum__pin { height: auto; overflow: visible; }  /* сцена не помещается в окно: без закрепления, обычным потоком */
.drum.is-flow .drum__grid { height: auto; grid-template-rows: auto auto auto auto; row-gap: 12px; }
.drum.is-flow .wheel { overflow: hidden; } /* в потоке барабан не выходит за свой блок */
.drum__fig { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; max-width: none; pointer-events: none; display: none; }
.drum__grid {
  position: relative; height: 100%; display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 28vw, 380px);
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: clamp(28px, 5.4svh, 60px) var(--gutter);
}
@media (min-width: 1200px) {
  .drum__fig { display: block; }
  .drum__grid { grid-template-columns: minmax(0, 1fr) 24vw 13.7vw; }
  .ctk { justify-self: end; width: 21.1vw; }
}
.drum__h { grid-column: 1 / -1; font-size: clamp(28px, 1.85vw, 30px); }
/* «Расписание семинаров» — сразу под заголовком на всех ширинах (кадр comps/drum-cta-placement.jpg, handoff-motion.md, раздел 8):
   расписание относится ко всем семинарам, а на телефоне ссылку под билетом закрыла бы липкая панель */
.drum__sched {
  grid-column: 1 / -1; justify-self: start; position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 600 14px/1.2 var(--font-text); letter-spacing: .01em; text-transform: uppercase; color: var(--red-press); text-decoration: none;
}
.drum__sched::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: rgba(228, 0, 0, .35); transition: background-color .26s ease; }
.drum__sched .chev { width: 8px; height: 8px; transition: transform .26s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .drum__sched:hover::after { background: var(--red-press); }
  html:not(.rm) .drum__sched:hover .chev { transform: translateX(3px) rotate(-45deg); }
}
.wheel {
  --fs: min(6.25vw, 11svh); --row: calc(var(--fs) * 1.34);
  position: relative; grid-column: 1; align-self: center; height: calc(var(--row) * var(--vis, 5));
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.wheel__list { position: absolute; left: 0; right: 0; top: calc(var(--row) * (var(--vis, 5) - 1) / 2); will-change: transform; }
.wheel__item {
  display: flex; align-items: center; justify-content: center; width: 100%; height: var(--row);
  padding: 0; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font: 700 var(--fs)/1 var(--font-display); text-transform: uppercase; letter-spacing: -.005em;
  color: #E3E3E3; transition: color .35s ease;
}
.wheel__item > span { display: block; padding-top: .07em; }
.wheel__item[data-d="2"] { color: #C4C4C4; }
.wheel__item[data-d="1"] { color: #8C8C8C; }
.wheel__item[data-d="0"] { color: var(--red); }
.wheel { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; } /* ЗАДАЧА-29: долгий тап и свайп по колесу не выделяют слова */
.wheel__item:focus-visible { outline: none; }
.wheel__item:focus-visible > span { outline: 3px solid var(--ink); outline-offset: 8px; } /* фокус вокруг слова, а не всей строки */
/* скобки: толстый шеврон с плоскими концами, высота около 1,7 строки, как в кадре */
.br { position: absolute; left: 0; top: calc(var(--row) * var(--vis, 5) / 2 - var(--row) * .86); height: calc(var(--row) * 1.72); width: auto; aspect-ratio: 32 / 100; color: var(--red); pointer-events: none; will-change: transform; overflow: visible; }
.ctk {
  grid-column: 2; align-self: center; position: relative;
  justify-self: end; width: 100%; background: var(--ink); color: #fff; padding: clamp(20px, 1.6vw, 26px) clamp(20px, 1.6vw, 26px) clamp(22px, 1.8vw, 28px);
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
}
.ctk__body { display: grid; gap: 14px; transition: opacity .16s ease, filter .16s ease; }
.ctk__body.is-swap { opacity: 0; filter: blur(2px); }
.ctk__type { font: 600 clamp(14px, 1.5vw, 16px)/1.2 var(--font-text); color: var(--red); letter-spacing: .02em; }
.ctk__head { font-size: clamp(19px, 1.6vw, 24px); min-height: calc(3.48em + 24px); } /* три строки названия и строка «для кого»: высота билета не прыгает при смене курса */
.ctk__name { font: 500 1em/1.16 var(--font-text); }
.ctk__note { margin: 6px 0 0; font: 400 14px/1.3 var(--font-text); color: #BDBDBD; }
.ctk__note:empty { display: none; }
/* старт отдельной строкой: «Дата уточняется | 4 дня по 4 часа | 590 BYN» в одну строку в билет шириной 304 px не входит */
.ctk__facts { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: end; row-gap: 10px; margin-top: 6px; }
.ctk__facts > div { padding-inline: 14px; }
.ctk__facts > div:nth-child(-n+2) { padding-left: 0; }
.ctk__facts > div:first-child { grid-column: 1 / -1; }
.ctk__facts > div:last-child { border-left: 1px solid #4A4A4A; }
.ctk__facts dt { font: 500 11px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--grey-4); margin-bottom: 6px; } /* подпись поля — Golos 11 капсом, как в билете первого экрана, а не мелкий Bebas */
.ctk__facts dd { font: 600 clamp(14px, 1.42vw, 15px)/1.2 var(--font-text); letter-spacing: .02em; white-space: nowrap; }
.ctk .btn { margin-top: 10px; }
@media (max-width: 899px) {
  .drum__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; row-gap: 14px; }
  .wheel { --fs: min(9.4vw, 7.4svh); --vis: 3.6; } /* ЗАДАЧА-23: на телефоне барабан 3,6 строки (было 5): помещается в отведённое место и не наезжает на заголовок и ссылку */
  .wheel { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
  .ctk { grid-column: 1; align-self: end; justify-self: center; max-width: 520px; }
  .br { height: calc(var(--row) * 1.1); top: calc(var(--row) * var(--vis, 5) / 2 - var(--row) * .55); } /* на телефоне соседние строки шире: скобки ниже, чтобы не наезжать */
  .ctk__head { min-height: 0; }
}
.rm .wheel__item { transition: color .2s ease; }
/* без анимации закрепления нет (drum.js выходит раньше): на телефоне сцена обычным потоком, чтобы на низком окне билет не обрезался */
@media (max-width: 1199px) {
  .rm .drum__pin { height: auto; overflow: visible; }
  .rm .drum__grid { height: auto; grid-template-rows: auto auto auto auto; row-gap: 12px; }
  .rm .wheel { overflow: hidden; }
}


/* ЗАДАЧА-23, баг 14: пока барабан на экране, липкая «Записаться» уходит вниз (drum.js ставит html.drum-on): у билета своя кнопка, а пункты колеса не попадают под плашку */
@media (max-width: 899px) {
  html.drum-on .stk, html.drum-on .stk.is-on { transform: translateY(110%); pointer-events: none; visibility: hidden; transition: transform .2s var(--ease-out), visibility 0s linear .2s; } /* visibility: при свёрнутой панели Safari видимое окно ниже раскладочного, 110 % не хватает */
  .drum .drum__pin { z-index: 5; } /* срез в конце сцены (.cut, z-index 4) уходит под билет: чёрный клин закрывал левый край текста билета (Safari, 18 Pro) */
  .drum .drum__grid { padding-bottom: calc(40px + env(safe-area-inset-bottom)); } /* резерв 92 px под плашку не нужен (она уходит вниз); 40 px остаётся, чтобы билет не касался растущего среза у конца сцены */
}

/* ЗАДАЧА-29: на сенсорном экране вертикальный жест над колесом крутит колесо (drum.js), страницу прокручивают вне его */
@media (hover: none) and (pointer: coarse) { .wheel { touch-action: none; } }

/* ЗАДАЧА-29: сцена сжимается под окно, а не выключает вращение. drum.js перебирает ступени is-t1..is-t3 и берёт первую, где помещаются
   заголовок, ссылка, колесо и самая высокая карточка. Только размеры и отступы: тексты, цвета, шрифты те же. */
@media (max-width: 899px) {
  .drum.is-t1 .drum__grid { row-gap: 10px; padding-top: 20px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .drum.is-t1 .drum__h { font-size: 26px; }
  .drum.is-t1 .drum__sched { min-height: 36px; }
  .drum.is-t1 .wheel { --fs: min(8.6vw, 6.4svh); --vis: 3.2; }
  .drum.is-t1 .ctk { padding: 16px 18px 18px; }
  .drum.is-t1 .ctk__body { gap: 8px; }
  .drum.is-t1 .ctk__head { font-size: 17px; }
  .drum.is-t1 .ctk__facts { row-gap: 6px; margin-top: 2px; }
  .drum.is-t1 .ctk__facts dt { margin-bottom: 4px; }
  .drum.is-t1 .ctk .btn { margin-top: 4px; }

  .drum.is-t2 .drum__grid { row-gap: 6px; padding-top: 12px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .drum.is-t2 .drum__h { font-size: 23px; }
  .drum.is-t2 .drum__sched { min-height: 32px; font-size: 13px; }
  .drum.is-t2 .wheel { --fs: min(7.4vw, 5.4svh); --vis: 2.8; }
  .drum.is-t2 .ctk { padding: 12px 16px 14px; }
  .drum.is-t2 .ctk__body { gap: 6px; }
  .drum.is-t2 .ctk__type { font-size: 13px; }
  .drum.is-t2 .ctk__head { font-size: 16px; }
  .drum.is-t2 .ctk__note { font-size: 13px; margin-top: 2px; }
  .drum.is-t2 .ctk__facts { row-gap: 4px; margin-top: 0; }
  .drum.is-t2 .ctk__facts dt { margin-bottom: 3px; }
  .drum.is-t2 .ctk .btn { margin-top: 2px; }

  .drum.is-t3 .drum__grid { row-gap: 4px; padding-top: 8px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .drum.is-t3 .drum__h { font-size: 21px; }
  .drum.is-t3 .drum__sched { min-height: 28px; font-size: 12px; }
  .drum.is-t3 .wheel { --fs: min(6.4vw, 4.6svh); --vis: 2.4; }
  .drum.is-t3 .ctk { padding: 10px 14px 12px; }
  .drum.is-t3 .ctk__body { gap: 4px; }
  .drum.is-t3 .ctk__type { font-size: 12px; }
  .drum.is-t3 .ctk__head { font-size: 15px; }
  .drum.is-t3 .ctk__note { font-size: 12px; margin-top: 1px; }
  .drum.is-t3 .ctk__facts dd { font-size: 13px; }
  .drum.is-t3 .ctk__facts dt { font-size: 10px; margin-bottom: 2px; }
  .drum.is-t3 .ctk .btn { margin-top: 0; }
}

/* Атлас «Как проходит обучение».
   Перенесено из design/concept-v2/index.html, строки 494–545. */
/* =========================================================================
   3. Анатомический атлас — кадр 03-path-atlas: координаты по передаче дизайнера
   ========================================================================= */
.atlas { position: relative; background: #181617; } /* цвет кромки чистой плашки атласа: без полос над и под кадром */
.atlas__pin { height: calc(100vh - var(--hdr-h)); height: calc(100svh - var(--hdr-h)); display: grid; place-items: center; overflow: hidden; }
.atlas__stage {
  position: relative; width: min(100vw, calc((100vh - var(--hdr-h)) * 2752 / 1536)); width: min(100vw, calc((100svh - var(--hdr-h)) * 2752 / 1536)); aspect-ratio: 2752 / 1536; /* высота сцены не больше окна под шапкой: на низких экранах не обрезается (QA, 5) */
  container-type: inline-size;
}
.atlas__canvas { position: absolute; inset: 0; }
.atlas__plate, .atlas__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.atlas__plate { object-fit: cover; }
.atlas__title { position: absolute; z-index: 2; left: 4.6cqw; top: 4.1cqw; font-size: 10.15cqw; line-height: .8; }
.atlas__legend { position: absolute; z-index: 2; left: 73.6cqw; top: 0; bottom: 0; width: 25cqw; }
.leg { position: absolute; left: 0; display: flex; align-items: baseline; gap: 1.1cqw; transform: translateY(-50%); }
.leg__n { font: 700 2.62cqw/1 var(--font-display); color: var(--ink-5); transition: color .26s ease; }
.leg__t { display: block; overflow: clip; padding-block: .12em .02em; }
.leg__t > span { display: block; font: 700 2.62cqw/1 var(--font-display); text-transform: uppercase; color: var(--ink-5); transition: color .26s ease; }
.leg.is-on .leg__n { color: var(--red); }
.leg.is-on .leg__t > span { color: #fff; }
.atlas__note { position: absolute; z-index: 2; left: 73.6cqw; top: 83.2%; width: 24.4cqw; display: grid; gap: .5em; font: 400 max(12px, .96cqw)/1.4 var(--font-text); color: #C8C8C8; }
.atlas__note p { margin: 0; }
.atlas__note a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.atlas__bottom { position: absolute; z-index: 2; left: 4.9cqw; bottom: 1.7cqw; font-size: 5.44cqw; line-height: .86; white-space: nowrap; }
.atlas__bottom .bw { display: inline-block; overflow: clip; vertical-align: bottom; padding-block: .1em .02em; margin-block: -.1em -.02em; }
.atlas__bottom .bw > span { display: inline-block; transition: color .7s var(--ease-out); }
.atlas__bottom .bw.is-grey > span { color: #666; }
.mk polygon { fill: #2A0507; transition: fill .7s ease; }      /* остывание 700 мс */
.mk.is-on polygon { fill: var(--red); transition-duration: .26s; } /* нагрев 260 мс */
.mk text { font: 700 40px/1 var(--font-display); fill: #fff; opacity: .55; transition: opacity .26s ease; }
.mk.is-on text { opacity: 1; }
.lead { fill: none; stroke: #fff; stroke-width: 3.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.rm .lead { stroke-dashoffset: 0; }
/* Волна 2 (0.3.5): 900–1179 px. Подпись под списком (12 px минимум) выше доли кадра, 16,8 %: она вылезала за сцену и обрезалась (на низких окнах пропадал второй абзац).
   Сцена чуть ниже окна, снизу запас под подпись; заголовок «Практика в залах Адреналин» остаётся внутри сцены. */
@media (min-width: 900px) and (max-width: 1179px) {
  .atlas__pin { place-items: start center; }
  .atlas__stage { width: min(100vw, calc((100vh - var(--hdr-h) - 56px) * 2752 / 1536)); width: min(100vw, calc((100svh - var(--hdr-h) - 56px) * 2752 / 1536)); }
  .atlas__note { font-size: max(11.5px, .9cqw); gap: .35em; }
}
/* ЗАДАЧА-26 (0.8.3): телефон. Сцена как у скелета: вся в одном экране. Кадр обрезан по окну X 700–2400, Y 250–1400 (единицы кадра 2752x1536):
   слева фигура с шестью маркерами, справа подписи 01–06 на тех же высотах, что на компьютере, и линия от маркера к подписи.
   Подписи стоят ровно через 177 единиц, маркеры 4 и 5 (119 единиц) и 1 и 2 (37 единиц) линиями разведены. Окно стоит на месте при любой ширине (доля кадра, не пиксели). */
@media (max-width: 899px) {
  .atlas__pin { height: auto; display: block; padding: 72px var(--gutter) 64px; }
  .atlas__stage { width: auto; aspect-ratio: auto; container-type: normal; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .atlas__title { position: static; font-size: 16vw; margin-bottom: 18px; }
  .atlas__canvas { position: relative; inset: auto; grid-area: 2 / 1; aspect-ratio: 1700 / 1150; overflow: hidden; margin-inline: calc(var(--gutter) * -1); }
  .atlas__canvas .atlas__plate, .atlas__canvas .atlas__svg { width: 161.88%; max-width: none; height: 133.57%; left: -41.18%; top: -21.74%; }
  /* линия: на компьютере идёт до X 1995; здесь до X 1580, поэтому сжимается по горизонтали от маркера (--ls = (1580 − X маркера) / (1995 − X маркера)) */
  .atlas .atlas__svg .lead { display: block; stroke-width: 6; transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(var(--ls, .55)); }
  .atlas .atlas__svg .lead:nth-of-type(1) { --ls: .610; }
  .atlas .atlas__svg .lead:nth-of-type(2) { --ls: .461; }
  .atlas .atlas__svg .lead:nth-of-type(3) { --ls: .314; }
  .atlas .atlas__svg .lead:nth-of-type(4) { --ls: .583; }
  .atlas .atlas__svg .lead:nth-of-type(5) { --ls: .556; }
  .atlas .atlas__svg .lead:nth-of-type(6) { --ls: .521; }
  /* маркер — 24 px, цифра Golos 600 12 px. --mk-s ставит скрипт: 24 px / ширина шестигранника в масштабе кадра; 27,5 единицы × масштаб = 12 px */
  .atlas .atlas__svg .mk polygon { transform-box: fill-box; transform-origin: center; transform: scale(var(--mk-s, 1)); }
  .atlas .atlas__svg .mk text { font: 600 27.5px/1 var(--font-text); dominant-baseline: central; transform-box: fill-box; transform-origin: center; transform: translateY(-14px) scale(var(--mk-s, 1)); }
  .atlas .atlas__svg .mk.is-on polygon { fill: var(--red-press); } /* цифра Golos 12 px — обычный текст, норма 4,5: белый на #E40000 — 4,9; на #E53131 было 4,36 */
  /* подписи лежат поверх кадра той же ячейкой сетки: top = (Y подписи − 250) / 1150 */
  .atlas .atlas__legend { position: relative; inset: auto; grid-area: 2 / 1; width: auto; margin: 0 calc(var(--gutter) * -1); padding: 0; list-style: none; pointer-events: none; }
  .atlas .leg { position: absolute; left: 54.1%; right: var(--gutter); transform: translateY(-50%); align-items: center; gap: 8px; }
  .atlas .leg:nth-child(1) { top: 6.96% !important; }
  .atlas .leg:nth-child(2) { top: 22.17% !important; }
  .atlas .leg:nth-child(3) { top: 37.65% !important; }
  .atlas .leg:nth-child(4) { top: 53.04% !important; }
  .atlas .leg:nth-child(5) { top: 68.52% !important; }
  .atlas .leg:nth-child(6) { top: 83.91% !important; }
  /* правило «Bebas на телефоне не мельче 28 px» (light.css) здесь сильнее подписей не делает: как у скелета, 18–24 px, иначе подпись в две строки не влезает рядом с фото */
  html .atlas .leg__n { font-size: clamp(17px, 4vw, 24px); line-height: 1; }
  html .atlas .leg__t > span { font-size: clamp(18px, 4.4vw, 26px); line-height: .92; }
  .atlas__note { position: static; grid-area: 3 / 1; width: auto; margin-top: 22px; font-size: 14px; }
  .atlas__bottom { position: static; grid-area: 4 / 1; margin-top: 36px; font-size: 9.2vw; white-space: normal; }
}
/* ландшафт на телефоне: фото и текст в две колонки, как у скелета; сцена справа целиком в окне высотой до 520 px */
@media (max-width: 899px) and (orientation: landscape) and (max-height: 520px) {
  .atlas__pin { padding-block: 40px 40px; }
  .atlas__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 28px; grid-template-rows: auto auto 1fr; align-content: start; }
  .atlas__title { grid-area: 1 / 1; font-size: clamp(40px, 8vw, 64px); margin-bottom: 14px; }
  .atlas__canvas { grid-area: 1 / 2 / 5 / 3; align-self: start; margin-inline: 0 calc(var(--gutter) * -1); -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%); mask-image: linear-gradient(90deg, transparent, #000 9%); } /* левый край кадра обрезан по окну: мягкая кромка вместо шва */
  .atlas .atlas__legend { grid-area: 1 / 2 / 5 / 3; align-self: start; aspect-ratio: 1700 / 1150; margin: 0 calc(var(--gutter) * -1) 0 0; }
  html .atlas .leg__n { font-size: 16px; }
  html .atlas .leg__t > span { font-size: 18px; }
  .atlas__note { grid-area: 2 / 1; margin-top: 0; }
  .atlas__bottom { grid-area: 3 / 1; margin-top: 18px; font-size: clamp(26px, 5vw, 40px); }
}

/* «С чего начать»: постеры и указатель.
   Перенесено из design/concept-v2/index.html, строки 597–655. */
/* ---------- 2. «С чего начать»: два равных постера и указатель из четырёх строк ---------- */
.start { padding: clamp(56px, 5.4vw, 96px) var(--gutter) clamp(44px, 5vw, 80px); }
.start__h { margin-bottom: clamp(24px, 2.6vw, 40px); }
.start__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .95fr); column-gap: clamp(16px, 2.1vw, 32px); }
/* постер: фото и подписи в одной ячейке сетки, подписи прижаты к низу. Надписи кадра дизайнер убрал диффузией —
   эту зону закрывают затемнение снизу и живой текст (handoff-motion.md, раздел 12) */
.pst { position: relative; display: grid; grid-template-areas: "fig"; color: #fff; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.pst__fig { grid-area: fig; position: relative; display: block; aspect-ratio: 812 / 999; overflow: hidden; }
.pst__fig::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7,7,7,0) 40%, rgba(7,7,7,.5) 62%, rgba(7,7,7,.9) 100%); transition: opacity .6s ease .15s; }
.js:not(.rm) .pst:not(.is-in) .pst__fig::after { opacity: 0; transition: none; } /* затемнение проявляется вместе с кадром, а не висит пустой рамкой */
.pst__txt { grid-area: fig; align-self: end; position: relative; z-index: 2; display: grid; justify-items: center; gap: 12px; padding: 0 clamp(16px, 2vw, 28px) clamp(20px, 2.2vw, 32px); text-align: center; }
.pst__t { font-size: clamp(36px, 4.3vw, 64px); line-height: .86; text-wrap: balance; }
.pst__ts { display: block; margin-top: .16em; font-size: max(.4em, 28px); line-height: 1.02; } /* 0.3.7: как на Vercel — Bebas прописными, мельче заголовка; не мельче 28 px (правило 05.11). От 1200 px: 28 px при заголовке 52–64 px */
.pst__d { max-width: 32ch; font: 400 14px/1.4 var(--font-text); color: #E6E6E6; text-wrap: balance; }
.pst__btn { pointer-events: none; }
.pst__over { display: contents; }
.pst__t { order: 1; } .pst__d { order: 2; } .pst__btn { order: 3; }
.pst__dts { display: none; }
@media (hover: hover) and (pointer: fine) { /* красного свечения под кнопкой нет: оно легло бы на фото */
  .pst:hover .pst__btn::before { background-color: var(--red-press); }
  .pst:hover .pst__btn .btn__roll > span { transform: translateY(-50%); }
}
/* указатель: строка — Bebas, подпись — Golos, тонкая стрелка; черта под строкой нагревается при наведении */
.idx { display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); margin-left: clamp(0px, 1.2vw, 18px); }
.idx li { position: relative; display: flex; }
.idx__a { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; column-gap: clamp(16px, 1.6vw, 24px); row-gap: 8px; padding: 14px 0 18px; color: var(--ink); text-decoration: none; }
.idx__t { font-size: clamp(24px, 2.25vw, 36px); line-height: .9; text-wrap: balance; }
.idx__d { grid-column: 1; font: 400 clamp(14px, 1.1vw, 16px)/1.35 var(--font-text); color: var(--grey-2); }
.idx__d .warn { font-size: 11px; color: var(--red-press); }
.idx__ln { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform-origin: 0 50%; pointer-events: none; }
.idx__ln::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease-out); }
.arw { grid-column: 2; grid-row: 1 / span 2; align-self: center; position: relative; width: clamp(40px, 3.4vw, 56px); height: 2px; background: currentColor; transition: transform .26s var(--ease-out), color .26s ease; }
.arw::after { content: ""; position: absolute; right: 1px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) {
  .idx li:hover .idx__ln::after { transform: scaleX(1); transition-duration: .45s; }
  .idx li:hover .arw { transform: translateX(6px); color: var(--red-press); }
}
.start__call { margin-top: clamp(28px, 3.6vw, 56px); font: 600 clamp(14px, 1.6vw, 17px)/1.2 var(--font-text); letter-spacing: .01em; text-transform: uppercase; }
.start__call a { white-space: nowrap; text-decoration: none; box-shadow: inset 0 -2px 0 rgba(228, 0, 0, .35); transition: box-shadow .26s ease; }
@media (hover: hover) and (pointer: fine) { .start__call a:hover { box-shadow: inset 0 -2px 0 var(--red-press); } }
@media (max-width: 1199px) { /* указатель уходит под постеры, на всю ширину */
  .start__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: clamp(28px, 4vw, 44px); }
  .idx { grid-column: 1 / -1; grid-template-rows: none; margin-left: 0; }
}
@media (min-width: 768px) and (max-width: 1199px) { /* 0.3.7: на планшете заголовок плитки 36–51 px, строка в 28 px была бы почти равна ему —
     поэтому как на телефоне: на фото заголовок и кнопка, строка «Тренироваться и питаться…» — началом подписи под фото. Размер заголовка — как на компьютере */
  .pst { grid-template-areas: "fig" "txt"; grid-template-rows: auto 1fr; }
  .pst__txt { display: contents; }
  .pst__over { grid-area: fig; align-self: end; position: relative; z-index: 2; display: grid; justify-items: center; gap: 12px; padding: 0 clamp(16px, 2vw, 28px) clamp(20px, 2.2vw, 32px); text-align: center; }
  .pst__ts { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pst__d { grid-area: txt; align-self: start; max-width: none; padding-top: 10px; font-size: 14px; line-height: 1.4; color: var(--grey-2); text-align: left; text-wrap: pretty; }
  .pst__dts { display: inline; }
}
@media (max-width: 767px) { /* структура v1.3, «Мобильный порядок»: две большие плитки во всю ширину, одна под другой, одного размера */
  .start__grid { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  /* правка дизайнера: Bebas мельче 19 px не ставим — на фото только заголовок и кнопка, строка «тренироваться и питаться…» — началом подписи под фото, Golos 13 */
  .pst { grid-template-areas: "fig" "txt"; }
  .pst__txt { display: contents; }
  .pst__over { grid-area: fig; align-self: end; position: relative; z-index: 2; display: grid; justify-items: center; gap: 12px; padding: 0 16px 20px; text-align: center; }
  .pst__t { font-size: min(11vw, 46px); }
  .pst__ts { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* скринридер читает её в заголовке, на экране она в подписи */
  .pst__d { grid-area: txt; max-width: none; padding-top: 10px; font-size: 13px; line-height: 1.4; color: var(--grey-2); text-align: left; text-wrap: pretty; }
  .pst__dts { display: inline; }
  .idx__a { padding: 16px 0 18px; }
  .idx__t { font-size: 26px; }
  .arw { width: 34px; }
}


/* 0.3.7: «С чего начать» снова как на Vercel (постеры и указатель выше); правила слияния с парой (D2, 0.3.5) убраны.
   Звонок обычным регистром (V10, 0.3.5) остаётся. */
html .start__call { text-transform: none; }

/* Опоры «Учимся в залах».
   Перенесено из design/concept-v2/index.html, строки 656–681. */
/* ---------- 3. «Учимся в залах, где работают тренеры»: опоры разного размера, фото в цвете ---------- */
.opr { padding: clamp(40px, 5vw, 80px) var(--gutter) clamp(64px, 6.4vw, 104px); }
.opr__h { margin-bottom: clamp(28px, 3.4vw, 52px); }
.opr__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(20px, 2.6vw, 40px); row-gap: clamp(36px, 3.6vw, 56px); }
.op { display: flex; flex-direction: column; }
.op--big { grid-row: span 2; }
.op__fig { position: relative; flex: none; aspect-ratio: 2 / 1; overflow: hidden; margin: 0; }
.op--big .op__fig { flex: 1 1 auto; aspect-ratio: auto; min-height: 380px; } /* большая опора — на всю высоту двух малых */
.op__txt { display: grid; gap: 10px; max-width: 64ch; padding-top: clamp(16px, 1.6vw, 24px); }
.op__t { font-size: clamp(28px, 2.6vw, 40px); line-height: .9; }
.op__n { color: var(--red); margin-right: .18em; }
.op__say { font: 500 clamp(16px, 1.2vw, 18px)/1.45 var(--font-text); }
.op__proof { display: grid; gap: 6px; }
.op__proof li, .mini li { position: relative; padding-left: 20px; }
.op__proof li { font: 400 15px/1.45 var(--font-text); color: var(--grey-2); }
.op__proof li::before, .mini li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--red); } /* красная черта, как выноски атласа */
.op__proof .warn, .mini .warn { font-size: 11px; color: var(--red-press); }
.op__cond { display: grid; justify-items: start; gap: 6px; margin-top: 4px; font: 400 13px/1.4 var(--font-text); }
.opr__more { margin-top: clamp(24px, 3vw, 40px); }
@media (max-width: 899px) { /* столбиком, большая опора первой */
  .opr__grid { grid-template-columns: minmax(0, 1fr); }
  .op--big { grid-row: auto; }
  .op--big .op__fig { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .op__fig { aspect-ratio: 3 / 2; }
}


/* Пара «Для себя» и «Работа в фитнесе», вкладки до 1023.
   Перенесено из design/concept-v2/index.html, строки 682–754. */
/* ---------- 4–5. Пара «Для себя» и «Работа в фитнесе»: диптих «мел + тепло» на одной сетке; на телефоне — вкладки ---------- */
.pair { position: relative; }
.pair__tabs { display: none; }
.pair__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto; }
/* обе половины на общих строках (subgrid): фото, заголовки, лиды и кнопки стоят на одной высоте — ни одна не «главнее» */
.half {
  position: relative; grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; align-content: start;
  padding: clamp(40px, 4.4vw, 72px) clamp(24px, 3.9vw, 64px) clamp(72px, 7vw, 112px);
}
.half--self { background: var(--chalk); color: var(--ink); }
.half--work { background: linear-gradient(180deg, var(--ink) calc(100% - 220px), #181617); color: #fff; } /* к атласу — в цвет его кромки, без ступеньки на стыке */
.half__fig { position: relative; aspect-ratio: 1194 / 511; overflow: hidden; margin: 0; }
.half__fig .lawtag { position: absolute; z-index: 2; left: 12px; top: 12px; color: #fff; background: rgba(7, 7, 7, .78); }
.half__h { margin-top: clamp(28px, 3vw, 44px); font-size: clamp(40px, 4.1vw, 64px); line-height: .88; }
.half__lead { margin-top: 16px; max-width: 48ch; font: 500 clamp(16px, 1.25vw, 19px)/1.45 var(--font-text); }
.half--work .half__lead { font-weight: 400; color: #D6D6D6; }
.half--work .half__lead b { font-weight: 600; color: #fff; }
.half__body { display: grid; align-content: start; gap: clamp(20px, 2vw, 28px); margin-top: clamp(22px, 2.2vw, 32px); }
.half__say { max-width: 52ch; font: 400 16px/1.5 var(--font-text); }
.half__say b { font-weight: 600; }
.half__law { display: grid; gap: 10px; max-width: 56ch; font: 400 15px/1.5 var(--font-text); color: #D6D6D6; }
.half__law .half__art { font-size: 14px; color: var(--grey-4); }
.half__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: clamp(28px, 3vw, 44px); }
@supports not (grid-template-rows: subgrid) {
  .half { display: flex; flex-direction: column; }
  .half__cta { margin-top: auto; padding-top: clamp(28px, 3vw, 44px); }
}
/* крупные красные номера: при входе нагреваются от цвета фона к красному, по очереди */
.nums { display: grid; gap: clamp(18px, 1.8vw, 26px) clamp(20px, 2.4vw, 36px); }
.nums--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nums > li { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; } /* нумерации нет: пункты не образуют последовательности */
.nums__n { --n0: #2A2A2A; font-size: clamp(48px, 4.6vw, 76px); line-height: .8; color: var(--red); transition: color .26s ease; transition-delay: calc(var(--i, 0) * 120ms); }
.half--work .nums__n { --n0: var(--ink-4); }
.js:not(.rm) .half:not(.is-hot) .nums__n { color: var(--n0); transition: none; }
.nums__t { padding-top: .08em; font-size: clamp(22px, 1.9vw, 30px); line-height: .92; }
.nums p { margin-top: 6px; font: 400 14px/1.45 var(--font-text); color: var(--grey-2); }
.half--work .nums p { color: var(--grey-4); }
.nums--rows { gap: 0; }
.nums--rows > li { padding: 16px 0 18px; border-top: 1px solid var(--ink-4); }
.nums--rows > li:last-child { border-bottom: 1px solid var(--ink-4); }
.flow { margin-top: 8px; font: 400 14px/1.5 var(--font-text); color: #C8C8C8; }
.flow li { display: inline; }
.flow li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 9px 2px 6px; border-right: 1.5px solid var(--red-soft); border-bottom: 1.5px solid var(--red-soft); transform: rotate(-45deg); } /* шаг пути → следующий */
.mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; padding-top: clamp(16px, 1.6vw, 22px); border-top: 1px solid #D4D4D4; }
.mini li { font: 500 14px/1.4 var(--font-text); }
.half--work .ghost { color: #fff; }
@media (max-width: 1199px) { .nums--2 { grid-template-columns: minmax(0, 1fr); } }
/* до 1024 — вкладки «Для себя · Для работы» над парой. Оба текста в HTML; вкладки появляются только со скриптом */
@media (max-width: 1023px) {
  .pair.is-tabs .pair__tabs {
    position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 0 var(--gutter);
    background: var(--chalk); box-shadow: inset 0 -1px 0 #D4D4D4; transition: background-color .32s ease, box-shadow .32s ease;
  }
  .pair__tab { height: 60px; padding: 0; border: 0; background: none; font: 600 17px/1.2 var(--font-text); letter-spacing: .02em; text-transform: uppercase; color: #737373; cursor: pointer; transition: color .32s ease; -webkit-tap-highlight-color: transparent; } /* неактивная — 4,7:1 на «меле» */
  .pair__tab[aria-selected="true"] { color: var(--ink); }
  .pair__ind { position: absolute; left: var(--gutter); bottom: 0; width: calc(50% - var(--gutter)); height: 3px; background: var(--red); transition: transform .32s var(--ease-out); }
  .pair[data-tab="work"] .pair__ind { transform: translateX(100%); }
  .pair.is-tabs[data-tab="work"] .pair__tabs { background: var(--ink); box-shadow: inset 0 -1px 0 var(--ink-4); }
  .pair[data-tab="work"] .pair__tab { color: #7A7A7A; }
  .pair[data-tab="work"] .pair__tab[aria-selected="true"] { color: #fff; }
  .pair__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .half { grid-row: auto; display: block; padding: 28px var(--gutter) 72px; }
  .pair.is-tabs .half:not(.is-on) { display: none; }
  .half__fig { margin-inline: calc(var(--gutter) * -1); aspect-ratio: 375 / 220; }
  .half__h { font-size: min(12.8vw, 64px); }
  .half__body, .half__cta { margin-top: 24px; }
}
@media (max-width: 767px) { .mini { grid-template-columns: minmax(0, 1fr); } .half__cta { gap: 12px 18px; } .half__cta .mag, .half__cta .ghost { flex: 1 1 100%; } .half__cta .btn, .half__cta .ghost { width: 100%; } }
.rm .pair__ind, .rm .pair__tabs, .rm .pair__tab { transition: none; }
.pair > .cut { z-index: 0; width: min(50%, 54vw, 74svh); } /* клин атласа растёт в «меловую» половину под текстом и кнопками */
.half > * { position: relative; z-index: 1; }
@media (max-width: 1023px) { .pair > .cut { width: min(54vw, 74svh); } }


/* Флагман и билет курса.
   Перенесено из design/concept-v2/index.html, строки 755–810. */
/* =========================================================================
   Волна B: блоки 7–10 главной v1.3 — кадр comps/06-flagship.jpg, handoff-motion.md, разделы 2, 9 и 10.
   Тексты — prototype/v2/home-structure-v2.md v1.3
   ========================================================================= */
/* ---------- 7. Флагман: постер атлета, две строки пользы, белый билет курса ---------- */
.flag { position: relative; background: var(--ink); color: #fff; padding: clamp(64px, 7vw, 112px) var(--gutter) clamp(72px, 7.4vw, 120px); }
.flag__grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); column-gap: clamp(28px, 4.4vw, 64px); align-items: center; }
.flag__fig { position: relative; aspect-ratio: 1199 / 1377; overflow: hidden; margin: 0; }
.flag__body { display: grid; gap: clamp(20px, 2.4vw, 32px); align-content: center; }
.flag__h { font-size: clamp(40px, 5.4vw, 88px); line-height: .86; } /* «Персональный тренер,» — в одну строку на ширину колонки, как в кадре */
.flag__h .ln { padding-top: .2em; margin-top: -.2em; } /* бреве «Й» в «Персональный» не срезается маской */
.flag__hs { font-size: .68em; } /* «инструктор тренажерного зала» — по ширине со строкой «Персональный тренер», как в кадре */
.flag__use { display: grid; gap: 10px; }
.flag__use li { font: 400 clamp(15px, 1.2vw, 18px)/1.45 var(--font-text); color: #BFBFBF; }
.flag__use b { margin-right: .45em; font: 600 clamp(14px, 1.7vw, 19px)/1.2 var(--font-text); letter-spacing: .01em; text-transform: uppercase; color: var(--red); }
.flag__use .warn { font-size: 11px; }
/* билет курса — полный формат системы: три факта, перфорация с вырезами, состав в три колонки с красными чертами; срез 24 px справа сверху */
.ftk { --cut: 24px; position: relative; background: #fff; color: var(--ink); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.ftk__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; padding: 20px 24px 18px; }
.ftk__row > div { min-width: 0; }
.ftk__row dt { font: 500 12.5px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--grey-2); }
.ftk__row dd { margin-top: 8px; font: 700 clamp(28px, 2.8vw, 44px)/.9 var(--font-display); letter-spacing: .01em; white-space: nowrap; }
.ftk__row dd.ftk__tbd { white-space: normal; font-size: clamp(24px, 2.2vw, 34px); line-height: .95; text-wrap: balance; }
.ftk__row dd.ftk__alt { margin-top: 6px; font: 500 12px/1.3 var(--font-text); letter-spacing: 0; white-space: normal; color: var(--grey-2); }
.ftk .warn { font-size: 12px; color: var(--red-press); }
.ftk__inc { position: relative; display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; padding: 18px 24px 22px; border-top: 2px dashed #E9E9E9; }
.ftk__inc::before, .ftk__inc::after { content: ""; position: absolute; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.ftk__inc::before { left: -6px; } .ftk__inc::after { right: -6px; }
.ftk__inc li { position: relative; padding-left: 22px; font: 600 clamp(14px, 1.5vw, 16px)/1.2 var(--font-text); letter-spacing: .01em; text-transform: uppercase; }
.ftk__inc li::before { content: ""; position: absolute; left: 0; top: .36em; width: 14px; height: 3px; background: var(--red); transform-origin: 0 50%; transition: transform .5s var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
.js:not(.rm) .ftk:not(.is-in) .ftk__inc li::before { transform: scaleX(0); transition: none; } /* черты прочерчиваются по очереди, как у состава в ролике */
.flag__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.flag__cta .mag { min-width: min(100%, 340px); } /* крупная, как в кадре 06: рядом с билетом не теряется */
.flag__cta .btn { width: 100%; min-height: 60px; font-size: 18px; --cut: 12px; }
.ftk__more { display: none; position: relative; width: 100%; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 14px; border: 0; border-top: 2px dashed #E9E9E9; background: none; color: var(--ink); cursor: pointer; font: 600 14px/1.2 var(--font-text); letter-spacing: .01em; text-transform: uppercase; }
.ftk__more::before, .ftk__more::after { content: ""; position: absolute; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.ftk__more::before { left: -6px; } .ftk__more::after { right: -6px; }
.ftk__more .chev { width: 9px; height: 9px; transition: transform .2s var(--ease-out); }
.ftk__more[aria-expanded="true"] .chev { transform: translateY(2px) rotate(-135deg); }
@media (max-width: 899px) {
  .flag__grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .flag__fig { aspect-ratio: 4 / 5; margin-inline: calc(var(--gutter) * -1); }
  .flag__h { font-size: min(11.6vw, 64px); }
  .ftk { --cut: 16px; }
  .ftk__row { padding: 16px 14px 14px; column-gap: 10px; }
  .ftk__row dt { font-size: 11px; letter-spacing: .04em; }
  .ftk__row dd { font-size: min(7vw, 30px); }
  .ftk__inc { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 14px 18px; }
  .ftk__inc li { font-size: 19px; }
  .ftk.is-acc .ftk__more { display: flex; } /* стек на телефоне — раскрывающимся списком (структура, «Мобильный порядок») */
  .ftk.is-acc .ftk__inc { border-top: 0; padding-top: 4px; }
  .ftk.is-acc .ftk__inc::before, .ftk.is-acc .ftk__inc::after { display: none; }
  .ftk.is-acc.is-shut .ftk__inc { display: none; }
  .flag__cta { justify-content: flex-start; }
  .flag__cta .mag, .flag__cta .btn { width: 100%; }
}


/* Цифры.
   Перенесено из design/concept-v2/index.html, строки 811–831. */
/* ---------- 8. Цифры: одна цифра на постерный размер, две — стопкой; нагрев от чёрного к красному ---------- */
.cnt { position: relative; background: var(--ink); color: #fff; padding: clamp(56px, 6vw, 96px) var(--gutter) clamp(88px, 9vw, 144px); }
.cnt::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--ink-4); } /* стык двух тёмных экранов — тонкая линия, клин здесь не виден */
.cnt__h { font-size: clamp(26px, 2.4vw, 38px); line-height: .95; color: var(--grey-4); margin-bottom: clamp(32px, 4vw, 64px); }
.cnt__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 64px); align-items: end; }
.cnt__i { display: flex; flex-direction: column-reverse; gap: 12px; }
.cnt__n { display: block; font-variant-numeric: tabular-nums; color: var(--red); white-space: nowrap; }
.cnt__big .cnt__n { font-size: min(34vw, 60svh); line-height: .76; margin-bottom: -.05em; } /* подпись ближе к низу цифры: у Bebas под базовой линией запас */
.cnt__i dt { font: 400 clamp(15px, 1.2vw, 18px)/1.35 var(--font-text); color: var(--grey-4); }
.cnt__i .warn { font-size: 11px; }
.cnt__side { display: grid; }
.cnt__side .cnt__i { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: clamp(14px, 1.6vw, 24px); padding: clamp(16px, 1.6vw, 24px) 0; border-top: 1px solid var(--ink-4); }
.cnt__side .cnt__n { font-size: clamp(64px, 8vw, 128px); line-height: .8; }
@media (max-width: 899px) { /* 640 во всю ширину, 900 и 20 — рядом */
  .cnt__grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .cnt__big .cnt__n { font-size: 46vw; margin-bottom: 0; } /* ЗАДАЧА-23, баг 16: без отрицательного поля подпись не заходит на цифру ни в Safari, ни при запасном шрифте */
  .cnt__i { gap: 14px; }
  .cnt__side { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .cnt__side .cnt__i { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
  .cnt__side .cnt__n { font-size: 22vw; }
}


/* Выпускники: лента.
   Перенесено из design/concept-v2/index.html, строки 832–869. */
/* ---------- 9. Выпускники: лента вертикальных портретов «Документ» и оценка на Яндекс Картах ---------- */
.grad { padding: clamp(64px, 7vw, 112px) 0 clamp(72px, 8vw, 128px); }
.grad__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 var(--gutter); margin-bottom: clamp(24px, 3vw, 44px); }
.grad__h { font-size: clamp(48px, 7vw, 120px); line-height: .86; }
.grad__nav { display: none; gap: 8px; }
.grad__nav button { position: relative; width: 52px; height: 52px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.grad__nav button::before { content: ""; position: absolute; inset: 0; border: 2px solid currentColor; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); transition: color .7s ease; }
.grad__nav .chev { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -7px; }
.grad__nav button:first-child .chev { transform: rotate(135deg); margin-left: -3px; }
.grad__nav button:disabled { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .grad__nav { display: flex; } .grad__nav button:not(:disabled):hover { color: var(--red-press); } }
.grad__grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 25vw, 380px); column-gap: clamp(24px, 3vw, 48px); }
.grad__rail { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); padding: 0 0 6px var(--gutter); scrollbar-width: none; }
.grad__rail::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .grad__rail { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); } } /* лента уходит под оценку мягко, а не обрезом */
.grad__rail:focus-visible { outline-offset: -3px; }
.gcard { flex: 0 0 clamp(220px, 19vw, 290px); scroll-snap-align: start; }
.gcard:last-child { margin-right: var(--gutter); }
.gcard__fig { position: relative; aspect-ratio: 3 / 4; overflow: hidden; margin: 0; }
.gcard--empty .gcard__fig { background: #E2E2E2; display: grid; place-items: center; }
.gcard__empty { font: 500 14px/1.3 var(--font-text); color: var(--grey-2); }
.gcard__tag { position: absolute; z-index: 2; left: 12px; top: 12px; padding: 6px 9px 5px; background: var(--ink); color: #fff; font: 600 14px/1.2 var(--font-text); letter-spacing: .02em; text-transform: uppercase; }
.gcard__name { margin-top: 14px; font: 600 19px/1.2 var(--font-text); letter-spacing: .01em; text-transform: uppercase; }
.gcard__name small { margin-left: 8px; font: 500 14px/1 var(--font-text); letter-spacing: 0; text-transform: none; color: var(--grey-2); }
.gcard__txt { margin-top: 8px; font: 400 14px/1.45 var(--font-text); color: var(--grey-2); }
.gcard .ilink { display: inline-block; margin-top: 8px; font-size: 14px; }
.grad__ya { display: grid; align-content: start; gap: 12px; padding-right: var(--gutter); }
.grad__score { font: 700 clamp(120px, 15vw, 240px)/.78 var(--font-display); letter-spacing: -.01em; }
.grad__ya p:not(.grad__score) { font: 400 16px/1.45 var(--font-text); }
.grad__ya .lawtag { justify-self: start; }
@media (max-width: 899px) {
  .grad__grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .grad__ya { padding: 0 var(--gutter); grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 18px; }
  .grad__score { font-size: 30vw; }
  .grad__ya .lawtag { grid-column: 1 / -1; } /* плашка — строкой под оценкой: на 320 в колонку не входит */
  .gcard { flex-basis: 64vw; }
}


/* ---------- 0.8.6 (ЗАДАЧА-30): лента из 9 карточек как в концепте (кнопки на компьютере, свайп со snap на телефоне), бирка на фото убрана ---------- */
.gcard__tag { display: none !important; }
.grad__rail { overflow-y: hidden; } /* только горизонтальная прокрутка: иначе тень зоны касания ссылок (.ilink::before) даёт ленте 6 px по вертикали, и вертикальный свайп по ленте на iPhone не листает страницу */
html .gcard__name { text-transform: none; }
@media (min-width: 600px) and (max-width: 899px) { .gcard { flex-basis: 34vw; } }
.grad .gcard__more { display: inline-block; margin: 8px 0 0; padding: 0; border: 0; background: none; font: 500 14px/1.45 var(--font-text); color: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.grad .gcard__full { display: none; }
.grad .gcard { display: flex; flex-direction: column; } /* ссылка у всех карточек на одной высоте, сколько бы строк ни занял текст */
.grad .gcard__txt { margin-bottom: 8px; }
.grad .gcard > .ilink, .grad .gcard__more { margin-top: auto; align-self: flex-start; }

/* Полный отзыв: диалог по образцу окна записи (pages/booking.css): вход 320 мс cubic-bezier(.32,.72,0,1), выход 200 мс, фон только прозрачность.
   Анимируются opacity и transform. На телефоне до 767 px окно прижато к низу, длинный текст прокручивается внутри. */
.grad .rdlg { box-sizing: border-box; width: min(100% - 2rem, 46rem); max-width: 46rem; max-height: calc(100dvh - 2rem); margin: auto; padding: 0; border: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--chalk); color: var(--ink); box-shadow: 0 24px 64px rgba(7, 7, 7, .35); opacity: 0; transform: translateY(16px);
  transition: opacity 200ms cubic-bezier(.4, 0, 1, 1), transform 200ms cubic-bezier(.4, 0, 1, 1); }
.grad .rdlg.is-open { opacity: 1; transform: none; transition: opacity 320ms cubic-bezier(.32, .72, 0, 1), transform 320ms cubic-bezier(.32, .72, 0, 1); }
.grad .rdlg::backdrop { background: rgba(7, 7, 7, .72); opacity: 0; transition: opacity 200ms linear; }
.grad .rdlg.is-open::backdrop { opacity: 1; }
.grad .rdlg__bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; height: 56px; padding: 4px 4px 0 0; background: var(--chalk); }
.grad .rdlg__x { position: relative; flex: none; width: 48px; height: 48px; padding: 0; border: 0; background: var(--chalk); color: var(--ink); cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.grad .rdlg__x svg { width: 24px; height: 24px; transition: transform .26s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .grad .rdlg__x:hover { color: var(--red-press); } html:not(.rm) .grad .rdlg__x:hover svg { transform: rotate(90deg); } }
.grad .rdlg__x:focus-visible { outline-offset: -4px; }
/* фокус при открытии: на тексте (tabindex -1, фокус из reviews.js), а не на кнопке «Закрыть», чтобы на касании не было рамки; Tab идёт дальше к кнопке и ссылке */
.grad .rdlg__body:focus { outline: 0; }
.grad .rdlg__body { padding: 0 clamp(20px, 4vw, 44px) clamp(28px, 4vw, 48px); display: grid; gap: clamp(20px, 3vw, 32px); }
.grad .rdlg__who { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 18px; align-items: end; }
.grad .rdlg__ph { width: 96px; height: 128px; object-fit: cover; background: #E2E2E2; }
.grad .rdlg__name { font: 600 22px/1.2 var(--font-text); letter-spacing: .01em; }
.grad .rdlg__nm::after { content: "\2197"; margin-left: .25em; font-size: .8em; text-decoration: none; display: inline-block; } /* стрелка ↗: имя ведёт на Instagram, в новой вкладке */
.grad .rdlg__name small { margin-left: 8px; font: 500 14px/1 var(--font-text); color: var(--grey-2); }
.grad .rdlg__role { margin-top: 8px; font: 400 14px/1.45 var(--font-text); color: var(--grey-2); }
.grad .rdlg__text { display: grid; gap: 14px; max-width: 62ch; font: 400 16px/1.6 var(--font-text); }
.grad .rdlg__text h3 { margin-top: 10px; font: 600 16px/1.4 var(--font-text); letter-spacing: .01em; }
.grad .rdlg__text h3:first-child { margin-top: 0; }
@media (max-width: 767px) {
  .grad .rdlg { width: 100%; max-width: none; max-height: 94dvh; margin: auto 0 0; }
  .grad .rdlg__body { padding-bottom: max(56px, calc(env(safe-area-inset-bottom) + 32px)); }
  .grad .rdlg__who { grid-template-columns: 80px minmax(0, 1fr); column-gap: 14px; }
  .grad .rdlg__ph { width: 80px; height: 107px; }
  .grad .rdlg__name { font-size: 20px; }
}
.rm .grad .rdlg, .rm .grad .rdlg.is-open { transform: none; transition: opacity 150ms linear; }
.rm .grad .rdlg::backdrop { transition-duration: 150ms; }
@media (prefers-reduced-motion: reduce) { .grad .rdlg, .grad .rdlg.is-open { transform: none; transition: opacity 150ms linear; } .grad .rdlg::backdrop { transition-duration: 150ms; } }

/* Преподаватели и выноски.
   Перенесено из design/concept-v2/index.html, строки 870–902. */
/* ---------- 10. Преподаватели: портреты в цвете, регалии — выносками, как в атласе ---------- */
.tch { position: relative; background: var(--ink); color: #fff; padding: clamp(64px, 7vw, 112px) var(--gutter) clamp(88px, 9vw, 144px); }
.tch__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 3.4vw, 52px); }
.tch__h { font-size: clamp(48px, 7vw, 112px); line-height: .86; }
/* врач — крупный портрет на три строки сетки, текст его выноски справа сверху; двое — строками справа внизу */
.tch__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: clamp(32px, 5vw, 80px); row-gap: clamp(28px, 3vw, 44px); }
.tp--big { display: contents; }
.tp--big .tp__fig { grid-column: 1; grid-row: 1 / span 3; }
.tp--big .tp__fig { aspect-ratio: 800 / 853; }
.tp--big .tp__txt { grid-column: 2; grid-row: 1; margin-top: calc(14% - 12px); } /* процент — от ширины колонки; выноска идёт диагональю от плеча к имени */
.tp--row:nth-of-type(2) { grid-column: 2; grid-row: 2; align-self: end; }
.tp--row:nth-of-type(3) { grid-column: 2; grid-row: 3; }
.tp__fig { position: relative; aspect-ratio: 3 / 4; overflow: hidden; margin: 0; }
.tp__name { font: 700 clamp(22px, 1.9vw, 28px)/1 var(--font-display); letter-spacing: .01em; text-transform: uppercase; }
.tp__role { margin-top: 6px; font: 500 13px/1.3 var(--font-text); letter-spacing: .04em; text-transform: uppercase; color: var(--grey-4); }
.tp__reg { margin-top: 10px; max-width: 44ch; font: 400 15px/1.5 var(--font-text); color: #D6D6D6; }
.tp--row { display: grid; grid-template-columns: clamp(120px, 10.5vw, 160px) minmax(0, 1fr); column-gap: clamp(40px, 4.4vw, 72px); align-items: center; }
.tch__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tln { fill: none; stroke: #fff; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.rm .tln, .no-js .tln { stroke-dashoffset: 0; }
/* маркер выноски лежит на портрете — без красного: тёмный, загорается белым, контур тёмный, чтобы читался и на белой футболке */
.tch .mk polygon { fill: var(--ink); stroke: var(--ink); stroke-width: 1.6; transition: fill .7s ease; }
.tch .mk.is-on polygon { fill: #fff; transition-duration: .26s; }
@media (max-width: 899px) { /* столбиком: портрет врача крупно, двое — строками; выноски заменяет красная черта */
  .tch__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 32px; }
  .tp--big .tp__fig, .tp--big .tp__txt, .tp--row:nth-of-type(n) { grid-column: 1; grid-row: auto; }
  .tch__lines { display: none; }
  .tp--big .tp__fig { aspect-ratio: 4 / 5; }
  .tp--big .tp__txt { margin-top: -14px; }
  .tp--row { grid-template-columns: 120px minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .tp__name::before { content: ""; display: inline-block; width: 14px; height: 2px; margin: 0 10px 6px 0; vertical-align: middle; background: var(--red); }
}


/* Точка входа (лекция врача).
   Перенесено из design/concept-v2/index.html, строки 903–924. */
/* =========================================================================
   Волна C: блоки 12–18 главной v1.3 — handoff-motion.md, раздел 10; тексты — prototype/v2/home-structure-v2.md v1.3
   ========================================================================= */
/* ---------- 12. Точка входа: лекция врача, постер анатомии в красном свете ---------- */
.entry { position: relative; background: var(--ink); color: #fff; padding: clamp(64px, 7vw, 112px) var(--gutter) clamp(80px, 8vw, 128px); }
.entry__grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1fr); column-gap: clamp(28px, 5vw, 80px); align-items: center; }
.entry__fig { position: relative; aspect-ratio: 3 / 4; overflow: hidden; margin: 0; }
.entry__h { font-size: clamp(48px, 6.4vw, 104px); line-height: .86; }
.entry__topic { display: grid; gap: 8px; margin-top: clamp(22px, 2.6vw, 36px); padding-top: 18px; border-top: 1px solid var(--ink-4); }
.entry__lab { font: 500 12.5px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--grey-4); }
.entry__t { font: 700 clamp(26px, 2.4vw, 36px)/.95 var(--font-display); letter-spacing: .01em; text-transform: uppercase; }
.entry__d { max-width: 46ch; font: 400 16px/1.5 var(--font-text); color: #BFBFBF; }
.entry__topic .lawtag { justify-self: start; margin-top: 4px; color: var(--grey-4); }
.entry__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 40px); }
.entry .ghost, .vl .ghost { color: #fff; }
.entry__note { max-width: 52ch; margin-top: 14px; font: 400 14px/1.5 var(--font-text); color: var(--grey-4); }
@media (max-width: 899px) {
  .entry__grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .entry__fig { aspect-ratio: 4 / 5; margin-inline: calc(var(--gutter) * -1); }
  .entry__cta .ghost { flex: 1 1 100%; white-space: normal; text-align: center; line-height: 1.05; padding-block: 10px; } /* на 320 «Записаться на открытую практику» переносится, а не вылезает за край */
}


/* ---------- Волна 2 (0.3.5): лекция со сценой «выноски к точкам скелета», модуль атласа (шестигранные маркеры, линии, подписи по очереди), без закрепления ---------- */
.entry__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.entry__h { font-size: clamp(44px, 4.6vw, 76px); }
.entry__scene { position: relative; }
.entry__scene .entry__fig { width: 52%; margin: 0; overflow: visible; aspect-ratio: 3 / 4; }
.entry__scene .entry__fig .rv, .entry__scene .entry__fig .rv__img { display: block; height: 100%; }
.entry__scene .entry__fig img { width: 100%; height: 100%; object-fit: cover; }
.entry__svg { overflow: visible; }
.entry__svg .mk polygon { transform-box: fill-box; transform-origin: center; transform: scale(var(--mk-s, 1.2)); }
.entry__svg .mk text { font: 600 27.5px/1 var(--font-text); dominant-baseline: central; transform-box: fill-box; transform-origin: center; transform: translateY(-14px) scale(var(--mk-s, 1.2)); }
.entry__svg .mk.is-on polygon { fill: var(--red-press); }
.entry .entry__legend { position: absolute; left: 60.1%; top: 0; bottom: 0; width: 39.9%; margin: 0; padding: 0; list-style: none; }
.entry .leg { gap: 14px; }
.entry .leg__n, .entry .leg__t > span { font-size: clamp(28px, 2.3vw, 36px); }
.entry .leg__t { overflow: visible; }
/* ЗАДАЧА-23 (0.8.1): телефон. Сцена целиком в один экран, как на компьютере: скелет слева (58 %), справа подписи на уровне своих точек, линия от точки к подписи.
   Раньше фото шло на всю ширину (высота 492 px при ширине 370), список лежал под ним, и в окне оставались колени и стопы, а точка 1 уходила под шапку. */
@media (max-width: 899px) {
  .entry__grid { grid-template-columns: minmax(0, 1fr); }
  .entry__scene .entry__fig { width: 58%; aspect-ratio: 3 / 4; margin-inline: 0; }
  .entry .entry__svg .lead { display: block; transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(.905); stroke-width: 4.5; } /* конец линии у левого края подписи (62,5 % сцены) */
  .entry .entry__legend { position: absolute; left: 62.5%; top: 0; bottom: 0; width: 37.5%; margin: 0; display: block; }
  .entry .leg { position: absolute; left: 0; right: 0; transform: translateY(-50%); display: grid; gap: 2px; }
  .entry .leg__n { font-size: 18px; }
  .entry .leg__t > span { font-size: clamp(19px, 5.6vw, 24px); line-height: .95; }
}
@media (max-width: 899px) and (orientation: landscape) and (max-height: 520px) {
  .entry__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: center; }
}

/* Вопросы и ответы.
   Перенесено из design/concept-v2/index.html, строки 925–946. */
/* ---------- 13. Вопросы: на 1440 — две колонки, ответы открыты; до 900 — аккордеон ---------- */
.faq { padding: clamp(64px, 7vw, 112px) var(--gutter) clamp(72px, 8vw, 128px); }
.faq__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 3.4vw, 52px); }
.faq__h { font-size: clamp(48px, 7vw, 120px); line-height: .86; }
.faq__list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); }
.faq__i { padding: 20px 0 24px; border-top: 1px solid #D4D4D4; }
.faq__q { font: 600 clamp(15px, 1.6vw, 17px)/1.2 var(--font-text); letter-spacing: .01em; text-transform: uppercase; color: var(--ink); }
.faq__btn { display: flex; width: 100%; min-height: 56px; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.faq__btn .chev { flex: none; width: 9px; height: 9px; transition: transform .2s var(--ease-out); }
.faq__btn[aria-expanded="true"] .chev { transform: translateY(2px) rotate(-135deg); }
.faq__a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .2s var(--ease-out); }
.faq__a > div { min-height: 0; overflow: hidden; }
.faq__a p { max-width: 60ch; padding-top: 10px; font: 400 16px/24px var(--font-text); color: #3D3D3D; }
.faq__a .warn { font-size: 11px; color: var(--red-press); }
@media (max-width: 899px) {
  .faq__list { grid-template-columns: minmax(0, 1fr); }
  .faq__i { padding: 0; }
  .faq.is-acc .faq__i:not(.is-open) .faq__a { grid-template-rows: 0fr; }
  .faq__a p { padding: 0 0 18px; }
}
.rm .faq__a, .rm .faq__btn .chev, .faq.is-init .faq__a { transition: none; } /* начальное сворачивание — без анимации: иначе триггеры ниже считались бы по раскрытым ответам */


/* Волна 2 (0.3.5, V10): вопросы обычным регистром */
html .faq__q, html .faq__btn { text-transform: none; }

/* Видеолекции и кинетическая «21».
   Перенесено из design/concept-v2/index.html, строки 947–965. */
/* ---------- 14. Видеолекции: кинетическая «21» на тёмном ---------- */
.vl { position: relative; background: var(--ink); color: #fff; padding: clamp(64px, 7vw, 112px) var(--gutter) clamp(80px, 8vw, 128px); overflow: hidden; }
.vl__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(28px, 5vw, 80px); align-items: center; }
.k21 { position: relative; display: inline-block; font-size: min(36vw, 64svh); line-height: .76; color: var(--red); white-space: nowrap; }
.k21__t { display: block; will-change: transform; }
.k21__g { position: absolute; left: 0; top: 0; display: block; filter: blur(14px); opacity: 0; pointer-events: none; will-change: transform, opacity; } /* размытая копия тянется хвостом в проезде, как в ролике */
.vl__cap { margin-top: 14px; font: 400 clamp(16px, 1.3vw, 19px)/1.35 var(--font-text); color: var(--grey-4); }
.vl__fig { position: relative; aspect-ratio: 3 / 2; overflow: hidden; margin: 0 0 clamp(20px, 2.4vw, 32px); }
.vl__h { font-size: clamp(40px, 4.6vw, 72px); line-height: .88; }
.vl__p { max-width: 50ch; margin-top: 14px; font: 400 16px/1.5 var(--font-text); color: #BFBFBF; }
.vl__topics { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; }
.vl__topics li { position: relative; padding-left: 18px; font: 600 14px/1.2 var(--font-text); letter-spacing: .01em; text-transform: uppercase; }
.vl__topics li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 2px; background: var(--red); }
.vl__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: clamp(22px, 2.6vw, 34px); }
@media (max-width: 899px) {
  .vl__grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .k21 { font-size: 64vw; }
}


/* Статьи.
   Перенесено из design/concept-v2/index.html, строки 966–991. */
/* ---------- 15. Статьи: три постера разного формата, «Документ»; на телефоне — свайп ---------- */
.art { padding: clamp(64px, 7vw, 112px) 0 clamp(72px, 8vw, 128px); }
.art__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding: 0 var(--gutter); margin-bottom: clamp(24px, 3vw, 44px); }
.art__h { font-size: clamp(48px, 7vw, 120px); line-height: .86; }
.art__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 2vw, 28px); padding: 0 var(--gutter); }
.apost { position: relative; display: grid; grid-template-areas: "fig"; color: #fff; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.apost--tall { grid-row: span 2; }
.apost__fig { grid-area: fig; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.apost--tall .apost__fig { aspect-ratio: auto; min-height: 100%; }
.apost__fig::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7,7,7,0) 38%, rgba(7,7,7,.55) 66%, rgba(7,7,7,.9) 100%); transition: opacity .6s ease .15s; }
.js:not(.rm) .apost:not(.is-in) .apost__fig::after { opacity: 0; transition: none; }
.apost__txt { grid-area: fig; align-self: end; position: relative; z-index: 2; display: grid; gap: 8px; padding: 56px clamp(16px, 1.8vw, 26px) clamp(16px, 1.8vw, 26px); background: linear-gradient(180deg, rgba(7,7,7,0) 0, rgba(7,7,7,.8) 56px, rgba(7,7,7,.88) 100%); } /* подложка у самой подписи: реальные фото могут быть светлее заглушек */
.apost__rub { font: 600 12px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: #E6E6E6; }
.apost__t { max-width: 22ch; font: 700 clamp(24px, 2.3vw, 38px)/.95 var(--font-display); letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
.apost--tall .apost__t { font-size: clamp(30px, 3vw, 48px); }
.apost__date { font: 400 13px/1 var(--font-text); color: #CFCFCF; }
.art__rubs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 var(--gutter); margin-top: clamp(24px, 3vw, 40px); }
.art__rubs .ghost { min-height: 44px; padding: 0; font-size: 15px; }
@media (max-width: 899px) { /* свайп-лента постеров, как у выпускников */
  .art__grid { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); scrollbar-width: none; }
  .art__grid::-webkit-scrollbar { display: none; }
  .apost { flex: 0 0 78vw; scroll-snap-align: start; }
  .apost:last-child { margin-right: var(--gutter); }
  .apost .apost__fig, .apost--tall .apost__fig { aspect-ratio: 4 / 5; min-height: 0; }
}


/* Запись или вопрос: форма (разметка CF7).
   Перенесено из design/concept-v2/index.html, строки 992–1033. */
/* ---------- 16. Запись: финальный горячий экран, форма в чёрном билете ---------- */
.zap { position: relative; color: #fff; padding: clamp(80px, 10vw, 160px) var(--gutter) clamp(80px, 9vw, 144px); } /* фона нет: под экраном — раскалённое поле */
.zap__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); column-gap: clamp(28px, 5vw, 96px); align-items: start; }
.zap__h { font-size: clamp(56px, 8vw, 140px); line-height: .84; }
/* Форма внутри — компонент .zf (assets/css/components/zform.css), вид B «Фраза». Прежний чёрный билет .ztk с зерном и срезами убран. */
@media (max-width: 899px) {
  .zap__grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .zap__h { font-size: min(15vw, 72px); }
}

/* SEO-текст.
   Перенесено из design/concept-v2/index.html, строки 1034–1048. */
/* ---------- 17. SEO-текст: свёрнут, типографика длинного текста ---------- */
.seo { position: relative; background: var(--ink-2); color: #BFBFBF; padding: clamp(40px, 4.4vw, 72px) var(--gutter); }
.seo details { max-width: 880px; }
.seo summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 52px; cursor: pointer; list-style: none; font: 700 clamp(28px, 1.9vw, 30px)/1.05 var(--font-display); letter-spacing: .01em; text-transform: uppercase; color: #fff; }
.seo summary::-webkit-details-marker { display: none; }
.seo summary small { flex: none; display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1.2 var(--font-text); color: var(--red-soft); }
.seo summary .chev { width: 8px; height: 8px; transition: transform .2s var(--ease-out); }
.seo details[open] summary .chev { transform: translateY(2px) rotate(-135deg); }
.seo__body { display: grid; gap: 14px; margin-top: 18px; max-width: 70ch; font: 400 16px/1.65 var(--font-text); }
.seo__body ul { display: grid; gap: 6px; }
.seo__body li { position: relative; padding-left: 20px; }
.seo__body li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 2px; background: var(--red); }
.seo__body .lawtag { justify-self: start; color: var(--grey-4); }
.seo__body .warn { font-size: 11px; }


/* Подвал и бегущая строка (marquee).
   Перенесено из design/concept-v2/index.html, строки 1049–1080. */
/* ---------- 18. Подвал: контакты и документы, бегущая строка с паузой, гигантская «АДРЕНАЛИН» — фактура ---------- */
.ftr { position: relative; overflow: hidden; background: var(--ink); color: #BFBFBF; padding-top: clamp(48px, 5vw, 80px); }
.mq { position: relative; display: flex; align-items: center; height: 64px; margin-bottom: clamp(40px, 4.4vw, 72px); border-block: 1px solid var(--ink-4); overflow: hidden; }
.mq__track { display: flex; flex: none; width: max-content; animation: mq 46s linear infinite; }
.mq__track span { flex: none; padding-right: 48px; font: 600 19px/1.2 var(--font-text); letter-spacing: .02em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.mq__track b { color: var(--red); font-weight: inherit; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq.is-paused .mq__track, .mq:hover .mq__track { animation-play-state: paused; }
.mq__pause { position: absolute; right: var(--gutter); top: 50%; z-index: 2; transform: translateY(-50%); display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border: 1px solid var(--ink-5); background: var(--ink); color: #fff; cursor: pointer; font: 600 13px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; }
.rm .mq__track { animation: none; }
.rm .mq__pause { display: none; }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 48px); padding: 0 var(--gutter); }
.ftr__col h3 { margin-bottom: 14px; font: 600 14px/1.2 var(--font-text); letter-spacing: .01em; text-transform: uppercase; color: #fff; }
.ftr__col ul a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font: 400 15px/1.3 var(--font-text); color: #BFBFBF; text-decoration: none; transition: color .2s ease; }
.ftr__tel { display: inline-flex; align-items: center; min-height: 44px; font: 700 clamp(28px, 2.4vw, 36px)/1 var(--font-display); letter-spacing: .02em; color: #fff; text-decoration: none; }
.ftr__col p { margin-top: 8px; font: 400 14px/1.5 var(--font-text); }
.ftr__mail { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: underline; text-decoration-color: var(--ink-5); text-underline-offset: .22em; }
.ftr__col .warn { font-size: 11px; }
.ftr__soc { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 6px; }
.ftr__soc a { display: inline-flex; align-items: center; justify-content: flex-start; min-height: 44px; min-width: 44px; padding-inline: 0; margin-right: 8px; font: 600 14px/1.2 var(--font-text); letter-spacing: .02em; text-transform: uppercase; color: #fff; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .ftr__col ul a:hover, .ftr__soc a:hover { color: var(--red-soft); } }
.ftr__why { max-width: 92ch; margin: clamp(36px, 4vw, 56px) var(--gutter) 0; padding-top: 24px; border-top: 1px solid var(--ink-4); font: 400 14px/1.6 var(--font-text); color: #8C8C8C; }
.ftr__why h3 { margin-bottom: 8px; font: 600 14px/1.2 var(--font-text); letter-spacing: .01em; text-transform: uppercase; color: #BFBFBF; }
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: 24px var(--gutter) 0; font: 400 12.5px/1.5 var(--font-text); color: #8C8C8C; }
/* Нижняя планка по сетке подвала (вариант B, 09.11): копирайт под первой колонкой, подпись разработчика под четвёртой, на одной базовой линии */
.ftr__bar { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 8px clamp(24px, 3vw, 48px); align-items: baseline; margin: 28px var(--gutter) 0; padding-top: 18px; border-top: 1px solid var(--ink-4); font: 400 12.5px/1.5 var(--font-text); color: #8C8C8C; }
.ftr__bar > p { grid-column: 1 / 4; margin: 0; }
.foot-dev { grid-column: 4; display: flex; flex-direction: row; align-items: baseline; gap: 8px; margin: 0; font: 400 12.5px/1.5 var(--font-text); color: #8C8C8C; white-space: nowrap; }
.foot-dev a { position: relative; font-weight: 600; letter-spacing: .1em; color: #fff; text-decoration: none; padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease-out-expo), color .2s; }
.foot-dev a::after { content: "\2197"; display: inline-block; margin-left: .35em; font-weight: 400; letter-spacing: 0; color: var(--red-soft); transition: transform .3s var(--ease-out-expo); }
.foot-dev a::before { content: ""; position: absolute; inset: -16px -8px; } /* зона касания 44 px */
@media (hover: hover) and (pointer: fine) { .foot-dev a:hover { background-size: 100% 1px; } .foot-dev a:hover::after { transform: translate(2px, -2px); } }
.foot-dev a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (max-width: 899px) { .ftr__bar { grid-template-columns: minmax(0, 1fr); } .ftr__bar > p, .foot-dev { grid-column: 1 / -1; } }
.ftr__giant { margin: clamp(16px, 2vw, 32px) 0 0; padding: 0 var(--gutter); font: 700 23.4vw/.78 var(--font-display); letter-spacing: -.01em; color: #161616; white-space: nowrap; user-select: none; transform: translateY(.08em); } /* фактура, а не текст: aria-hidden */
@media (max-width: 899px) {
  .ftr__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ftr__col--contacts { grid-column: 1 / -1; }
  .mq { padding-right: 0; }
  /* ЗАДАЧА-23, баг 20: «Пауза» рядом с лентой, а не поверх текста (marquee.js оборачивает ленту в .mq__view) */
  .mq__view { display: block; flex: 1 1 0; min-width: 0; overflow: hidden; }
  .mq__view + .mq__pause { position: static; transform: none; flex: none; margin-inline: 8px 8px; }
}
.mq__view { display: contents; }
@media (max-width: 899px) { .mq__view { display: block; } }


/* Форма заявки .zf: одна разметка, два вида. Вид задаёт класс обёртки (разметка и имена полей не меняются):
   .zf--a  «Бланк»: линия вместо рамки, чёрная кнопка по размеру текста. Окно записи, «Контакты», формы внутренних страниц.
   .zf--b  «Фраза»: поля вставлены в предложение «Меня зовут …, мой телефон …». Финальные экраны: форма главной и «Не знаете, что выбрать?».
   .zf--dark  тёмная поверхность для A (финал страницы на чёрном). B всегда тёмная.
   Состояния: покой, фокус (красная линия 3 px), ошибка (сводка + текст у поля), успех (.zf__ok вместо формы).
   Разметка совместима с Contact Form 7 (формы 182): .wpcf7-form-control-wrap, .wpcf7-not-valid(-tip), .wpcf7-response-output, события wpcf7mailsent / wpcf7invalid.
   Анимируются только opacity и transform. */
.zf { min-width: 0; --zf-fg: #121212; --zf-mut: #5E5E5E; --zf-line: #121212; --zf-bg: #fff; --zf-err: #C81E25; --zf-acc: #C81E25; --zf-btn-bg: #121212; --zf-btn-fg: #fff; --zf-arrow: #E53132; position: relative; color: var(--zf-fg); text-align: left; }
.zf--a.zf--dark { --zf-fg: #fff; --zf-mut: #BDBDBD; --zf-line: #BDBDBD; --zf-bg: #121212; --zf-err: #FF6466; --zf-acc: #FF6466; --zf-btn-bg: #E53132; --zf-btn-fg: #fff; --zf-arrow: #fff; }
/* Тёмная тема: окно записи и формы A на графите (.surface-chalk) берут те же тёмные значения, иначе поля и «Заявка принята» тёмно-серые на тёмном */
:root[data-theme="dark"] .surface-chalk .zf--a { --zf-fg: #fff; --zf-mut: #BDBDBD; --zf-line: #BDBDBD; --zf-bg: #121212; --zf-err: #FF6466; --zf-acc: #FF6466; --zf-btn-bg: #E53132; --zf-btn-fg: #fff; --zf-arrow: #fff; }
.zf--b { --zf-fg: #E8E8E8; --zf-mut: #A8A8A8; --zf-line: #757575; --zf-bg: #070707; --zf-err: #FF6466; --zf-acc: #FF6466; --zf-btn-bg: #E53132; --zf-btn-fg: #fff; --zf-arrow: #fff; }
.zf__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; margin: 0; padding: 0; border: 0; }
.zf--a .zf__form { border-top: 4px solid var(--zf-fg); padding-top: 24px; }
.zf__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.zf__f { display: grid; gap: 4px; min-width: 0; }
.zf__f--course, .zf__f--q { grid-column: 1 / -1; }
.zf .zf__l, .zf__goal legend { font: 500 14px/1.2 var(--font-text); color: var(--zf-mut); padding: 0; }
.zf__req { color: var(--zf-err); margin-left: 2px; }
.zf .wpcf7-form-control-wrap { display: block; position: relative; min-width: 0; }
.zf .zf__i { width: 100%; height: 52px; padding: 0 0 4px; margin: 0; background: transparent; border: 0; border-bottom: 1px solid var(--zf-line); border-radius: 0; font: 400 20px/1 var(--font-text); color: var(--zf-fg); appearance: none; -webkit-appearance: none; transition: border-color var(--dur-instant) linear; }
.zf .zf__i::placeholder { color: #8a8a8a; opacity: 1; }
.zf .zf__i:focus { outline: 0; border-bottom: 3px solid var(--zf-acc); padding-bottom: 2px; }
.zf__f:focus-within .zf__l { color: var(--zf-acc); }
.zf .zf__i[aria-invalid="true"] { border-bottom: 2px solid var(--zf-err); padding-bottom: 3px; }
.zf .zf__sel { padding-right: 28px; text-overflow: ellipsis; cursor: pointer; }
.zf .zf__sel option { color: #121212; background: #fff; }
.zf .wpcf7-form-control-wrap:has(.zf__sel)::after { content: ""; position: absolute; right: 4px; bottom: 20px; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.zf .zf__ta { height: auto; min-height: 120px; padding: 10px 0; resize: vertical; line-height: 1.45; }
.zf .wpcf7-not-valid-tip { display: block; margin-top: 4px; font: 500 14px/1.35 var(--font-text); color: var(--zf-err); }
/* Цель */
.zf__goal { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.zf__goal legend { margin-bottom: 8px; }
.zf__opts { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.zf .zf__opt { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 500 17px/1 var(--font-text); cursor: pointer; }
.zf .zf__opt input { position: absolute; opacity: 0; width: 100%; height: 100%; left: 0; top: 0; margin: 0; cursor: pointer; }
.zf .zf__opt i { width: 18px; height: 18px; border: 2px solid var(--zf-fg); display: inline-block; position: relative; flex: none; }
.zf .zf__opt input:checked + i::after { content: ""; position: absolute; inset: 2px; background: var(--zf-btn-bg); }
.zf--a:not(.zf--dark) .zf__opt input:checked + i::after { background: #E53132; }
.zf .zf__opt input:focus-visible + i { outline: 3px solid var(--zf-acc); outline-offset: 3px; }
/* Уведомление под кнопкой вместо флажка согласия (решение 05.11, legal/02, раздел 2): мелкий текст, ссылка на политику */
.zf__legal { margin: -8px 0 0; max-width: 62ch; font: 400 14px/1.5 var(--font-text); color: var(--zf-mut); }
.zf__legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.zf__legal a:hover { color: var(--zf-fg); }
.zf__legal a:focus-visible { outline: 3px solid var(--zf-acc); outline-offset: 2px; }
/* Сводка ошибок */
.zf__sum { margin: 0; padding: 2px 0 2px 12px; border-left: 4px solid var(--zf-err); font: 500 15px/1.4 var(--font-text); color: var(--zf-err); }
.zf__sum[hidden] { display: none; }
.zf__sum a { color: inherit; text-underline-offset: 3px; }
.zf__sum ul { display: none; }
/* Действия: главная кнопка по размеру текста, вторичное действие ссылкой */
.zf__act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.zf .zf__btn { position: relative; display: inline-flex; align-items: center; gap: 18px; min-height: 56px; padding: 0 20px 0 26px; border: 0; border-radius: 0; background: var(--zf-btn-bg); color: var(--zf-btn-fg); font: 600 18px/1 var(--font-text); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.zf .zf__btn svg { width: 22px; height: 12px; stroke: var(--zf-arrow); fill: none; stroke-width: 2; transition: transform var(--dur-fast) var(--ease-out); }
.zf .zf__btn:focus-visible { outline: 3px solid var(--zf-acc); outline-offset: 3px; }
@media (hover: hover) { .zf__btn:hover svg { transform: translateX(4px); } .zf--a:not(.zf--dark) .zf__btn:hover { background: #E53132; } .zf--a:not(.zf--dark) .zf__btn:hover svg { stroke: #fff; } .zf--b .zf__btn:hover, .zf--dark .zf__btn:hover { background: var(--red-hot); } }
.zf .zf__btn:active { transform: scale(.98); }
.zf .zf__btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.zf .zf__alt { appearance: none; background: none; border: 0; padding: 12px 0; margin: -12px 0; min-height: 44px; font: 500 16px/1.2 var(--font-text); color: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.zf .zf__alt:focus-visible { outline: 3px solid var(--zf-acc); outline-offset: 3px; }
.zf .wpcf7-response-output { margin: 0; font: 500 15px/1.4 var(--font-text); color: var(--zf-err); }
.zf .wpcf7-response-output:empty { display: none; }
.zf__note { margin: 0; font: 400 14px/1.45 var(--font-text); color: var(--zf-mut); }
/* Успех: вместо формы */
.zf__ok { display: grid; gap: 14px; border-top: 4px solid #E53132; padding-top: 24px; max-width: 560px; }
.zf__ok[hidden] { display: none; }
.zf__ok h3 { margin: 0; font: 700 clamp(44px, 6vw, 64px)/.92 var(--font-display); text-transform: uppercase; }
.zf__ok p { margin: 0; font-size: 18px; line-height: 1.5; max-width: 44ch; }
.zf__ok a.zf__tel { font: 700 30px/1 var(--font-display); letter-spacing: .02em; text-decoration: none; color: inherit; }
/* Успех на тёмном: заголовок белый, текст светлый (#E8E8E8), телефон и «ещё одну заявку» белые. Контраст на #1A1A1A / #121212 выше 12:1 */
.zf--a.zf--dark .zf__ok h3, .zf--b .zf__ok h3 { color: #fff; }
.zf--a.zf--dark .zf__ok p, .zf--b .zf__ok p { color: #E8E8E8; }
.zf--a.zf--dark .zf__ok a.zf__tel, .zf--a.zf--dark .zf__ok .zf__alt, .zf--b .zf__ok a.zf__tel, .zf--b .zf__ok .zf__alt { color: #fff; }
:root[data-theme="dark"] .surface-chalk .zf--a .zf__ok h3 { color: #fff; }
:root[data-theme="dark"] .surface-chalk .zf--a .zf__ok p { color: #E8E8E8; }
:root[data-theme="dark"] .surface-chalk .zf--a .zf__ok a.zf__tel, :root[data-theme="dark"] .surface-chalk .zf--a .zf__ok .zf__alt { color: #fff; }
.zf.is-sent .zf__form { display: none; }
.zf.is-sent .zf__ok { animation: zf-in var(--dur-slow) var(--ease-out-expo) both; }
@keyframes zf-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rm .zf.is-sent .zf__ok { animation: none; }
/* ---------- B. Фраза ---------- */
.zf--b { max-width: 640px; }
.zf--b .zf__form { gap: 28px; font: 400 clamp(21px, 2.1vw, 28px)/1.9 var(--font-text); }
.zf--b .zf__row { display: block; }
.zf--b .zf__f { display: inline; }
.zf--b .zf__f > .zf__l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.zf--b .zf__f > .wpcf7-form-control-wrap { display: inline-block; vertical-align: baseline; max-width: 100%; }
.zf--b .zf__f::before { color: var(--zf-fg); white-space: pre-wrap; }
.zf--b .zf__f--name::before { content: "Меня зовут "; }
.zf--b .zf__f--phone::before { content: ", мой телефон "; }
.zf--b .zf__f--phone::after { content: "."; color: var(--zf-fg); }
.zf--b .zf__f--course::before { content: "Хочу на курс:"; display: block; margin-top: 6px; }

.zf--b .zf__i { display: inline-block; width: auto; height: auto; padding: 0 4px 2px; line-height: 1.5; font: 500 inherit/1.5 var(--font-text); color: var(--zf-acc); border-bottom: 2px solid var(--zf-line); }
.zf--b .zf__f--name .zf__i { width: 9ch; }
.zf--b .zf__f--phone .zf__i { width: 15.5ch; }
.zf--b .zf__f--course .zf__i { width: 100%; max-width: 100%; padding-right: 26px; text-overflow: ellipsis; }
.zf--b .zf__f--course > .wpcf7-form-control-wrap { display: block; margin-top: 2px; }
.zf--b .zf__i:placeholder-shown { color: var(--zf-mut); }
.zf--b .zf__i:focus { border-bottom: 3px solid #E53132; padding-bottom: 1px; }
.zf--b .zf__i[aria-invalid="true"] { border-bottom: 2px dashed var(--zf-err); padding-bottom: 2px; }
.zf--b .wpcf7-form-control-wrap:has(.zf__sel)::after { right: 6px; bottom: 50%; margin-bottom: -2px; border-color: var(--zf-acc); }
.zf--b .wpcf7-not-valid-tip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.zf--b .zf__goal { display: inline; border: 0; }
.zf--b .zf__goal legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.zf--b .zf__goal .zf__opts { display: block; margin-top: 4px; }
.zf--b .zf__opts::before { content: "Моя цель: "; font-size: inherit; color: var(--zf-fg); }
.zf--b .zf__opts { gap: 6px; }
.zf--b .zf__opt { display: inline-flex; min-height: 44px; margin-right: 6px; padding: 0 10px; border: 1px solid #757575; font: 500 18px/1.9 var(--font-text); color: #d6d6d6; }
.zf--b .zf__opt i { display: none; }
.zf--b .zf__opt:has(input:checked) { border-color: var(--zf-acc); color: var(--zf-acc); }
.zf--b .zf__opt:has(input:focus-visible) { outline: 3px solid var(--zf-acc); outline-offset: 3px; }
.zf--b .zf__sum { border-left: 0; padding: 0; }
.zf--b .zf__sum ul { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.zf--b .zf__sum li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--zf-err); margin-right: 10px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.zf--b .zf__btn { justify-self: start; min-height: 58px; padding: 0 26px; font-weight: 700; font-size: 18px; }
.zf--b .zf__alt { color: #fff; }
.zf--b .zf__legal { font-size: 14px; line-height: 1.5; color: var(--zf-mut); }
.zf--b .zf__ok { border-top: 0; padding-top: 0; max-width: 640px; }
.zf--b .zf__ok h3 { font-size: clamp(36px, 5vw, 56px); }
.zf--b .zf__ok p { color: #e8e8e8; }
.zf--b .zf__ok em { font-style: normal; color: var(--zf-acc); }
@media (max-width: 560px) {
  .zf__row { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .zf--a .zf__btn { width: 100%; justify-content: space-between; }
  .zf--b .zf__btn { width: 100%; justify-content: space-between; }
  .zf--b .zf__form { font-size: 22px; }
}
.zf .zf__i:focus-visible { outline: 0; }
.book__block:has(.zf.is-sent) > .book__label { display: none; }
.zf.is-sent .zf__note { display: none; }

/* Облегчение приёмов (решение 05.11 «Да, все по аудиту»), все страницы:
   1. Срез угла только на билете цены и главной кнопке. 2. Bebas только в заголовках от 28 px, остальное Golos.
   3. Зерно и красное свечение: главная и один финальный экран страницы. 4. Пара «заливка + призрак» с равным весом: вторичное действие ссылкой.
   Селекторы с html: перекрывают .v3-слой (assets/css/pages/v3.css), который грузится позже. */
/* зерно поверх всей страницы — только на главной */
body::after { display: none; }
body.is-home::after { display: block; }
/* 1. Срезы: убраны с карточек, фото, форм, плашек и бирок */
html .v3 .photo--cut, html .v3 .photo--facet, html .v3 .photo--facet-xl { --photo-clip: none; }
html .v3 .post, html .v3 .art-cta, html .v3 .person__photo, html .v3 .form-card, html .v3 .mods a, html .v3 .door,
html .v3 .tcl__card, html .v3 .who__card, html .v3 .feat, html .v3 .screen, html .v3 .self__photo, html .v3 .path6__img,
html .v3 .band, html .v3 .course-hero__media, html .v3 .certificate::before, html .v3 .badge::before, html .v3 .enroll-side { clip-path: none; }
/* 3. Зерно на фото и свечение карточек — только на главной */
html .v3 .photo--grain::after, html .v3 .grain::after { display: none; }
html .v3 .feat::before, html .v3 .map, html .v3 .screen { background-image: none; }
/* 4. Вторичное действие: ссылка */
html .v3 .btn--ghost, html .v3 .btn--secondary { --btn-surface: transparent; background: none; color: inherit; clip-path: none; min-height: var(--tap-min, 44px); padding: 0; border: 0; box-shadow: none;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
html .v3 .btn--ghost::before, html .v3 .btn--ghost::after, html .v3 .btn--secondary::before, html .v3 .btn--secondary::after { display: none; }
@media (hover: hover) { html .v3 .btn--ghost:hover, html .v3 .btn--secondary:hover { color: var(--red-650); } html .v3 .surface-ink .btn--ghost:hover, html .v3 .surface-ink .btn--secondary:hover { color: var(--red-400); } }
/* 2. Bebas: малые тексты на Golos */
html .v3 .btn, html .v3 .book__label, html .v3 .book__facts, html .v3 .book__or, html .v3 .pay-link__title, html .v3 .pay-link__go,
html .v3 .feat__kind, html .v3 .cat-facts span, html .v3 .week dt, html .v3 .tcl__role, html .v3 .who__card a, html .v3 .site-footer__col h3,
html .v3 .course-hero__kind, html .v3 .filter button, html .v3 .badge, html .v3 .ticket dt, html .v3 .ticket dd, html .v3 .pay-link__sum small,
html .v3 .site-footer h2, html .v3 .site-footer__phone, html .v3 .enroll-bar__sum, html .v3 .program__list li::before, html .v3 .steps li::before, html .v3 .program__n {
  font-family: var(--font-text); font-stretch: normal; letter-spacing: .01em; }
html .v3 .book__facts, html .v3 .ticket dd { font-weight: 700; font-size: 1.0625rem; }
html .v3 .book__label, html .v3 .feat__kind, html .v3 .cat-facts span, html .v3 .week dt, html .v3 .tcl__role, html .v3 .course-hero__kind { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; }
html .v3 .btn { font-weight: 700; font-size: 1rem; }
html .v3 .btn--l { font-size: 1.0625rem; }
html .v3 .pay-link__title, html .v3 .who__card a, html .v3 .pay-link__go, html .v3 .book__or { font-size: 1rem; font-weight: 700; }
/* 2 (продолжение). Всё, что мельче 28 px и было Bebas, — Golos: подписи, названия карточек и строк, служебные метки */
html .v3 .pager a, html .v3 .pager span, html .v3 .e404__tel a, html .v3 .sched__title a, html .v3 .sched__meta, html .v3 .sched__date, html .v3 .sched__date small,
html .v3 .mods b, html .v3 .path6__list b, html .v3 .q4 b, html .v3 .art-cta b, html .v3 .empty-state b, html .v3 .map b, html .v3 .cinfo dt,
html .v3 .player .t-title, html .v3 .who__card h3, html .v3 .self__list h3, html .v3 .door i, html .v3 .e404__label, html .v3 .legal__cap, html .v3 .pl-head,
html .v3 .feat__price small, html .v3 .program__name, html .v3 .post__rub, html .v3 .lessons__n, html .v3 .nums__t, html .v3 .tp__name, html .v3 .tcl__card h3,
html .v3 .doc__col h3, html .v3 .price-block__alt, html .v3 .price-block__alt span { font-family: var(--font-text); font-stretch: normal; font-weight: 700; letter-spacing: 0; text-transform: none; }
html .v3 .mods b, html .v3 .path6__list b, html .v3 .q4 b, html .v3 .who__card h3, html .v3 .self__list h3, html .v3 .program__name, html .v3 .player .t-title { font-size: 1.1875rem; line-height: 1.25; }
html .v3 .sched__title a, html .v3 .sched__date { font-size: 1.125rem; }
html .tix__tbd, html .nums__t { font-family: var(--font-text); font-weight: 700; letter-spacing: 0; text-transform: none; }
html .tix .tix__tbd { font-size: 16px; white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: manual; } @media (max-width: 1099px) { html .tix .tix__tbd { font-size: 14px; } } @media (max-width: 479px) { html .tix .tix__tbd { font-size: 12.5px; } } html .nums__t { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.2; }
/* Билет цены на узком экране: ячейки не шире колонки, текст переносится (Golos шире Bebas) */
html .v3 .ticket > div { min-width: 0; }
html .v3 .ticket dt, html .v3 .ticket dd { white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: manual; min-width: 0; }
@media (max-width: 479px) { html .v3 .ticket dt { font-size: .6875rem; letter-spacing: .02em; } html .v3 .ticket dd { font-size: .8125rem; } }
@media (max-width: 479px) { html .v3 .ticket { grid-template-columns: repeat(3, minmax(0, 1fr)); } html .v3 .ticket > div { padding-right: .4rem; } html .v3 .ticket > div + div { padding-left: .5rem; } }
/* Bebas мельче 28 px: остатки */
html .v3 .sched__meta b, html .v3 .player h2, html .v3 .player .t-title { font-family: var(--font-text); font-stretch: normal; font-weight: 700; letter-spacing: 0; text-transform: none; font-size: 1.125rem; }
html .tp__name { font-size: 28px; }
html body .sched__meta b, html body .player h2 { font-family: var(--font-text); font-stretch: normal; font-weight: 700; letter-spacing: 0; text-transform: none; font-size: 1.125rem; }
html .v3 .post__title, html .v3 .post__title a, html .v3 .course-card__title, html .v3 .course-card__title a, html .v3 .book__course { font-size: 28px; }
html .v3 .zf__ok h3 { font-size: clamp(40px, 6vw, 64px); line-height: .92; }

/* Волна 2 (0.3.5, V10): Bebas на телефоне не мельче 28 px (правило сайта), было 24-26 */
@media (max-width: 767px) {
  html .hero__h1s > span, html .idx__t, html .leg__n, html .leg__t > span, html .cnt__h, html .entry__t, html .apost__t { font-size: 28px; }
  html .tix__row dd, html .ftk__row dd, html .ftk__tbd { font-size: 28px; }
}

/* ЗАДАЧА-24, баги 22 и 23: на телефоне мелкий текст не меньше 13 px (подписи билета и меню, строка «входит», рубрика), «переполнение» на 4-8 px у .tix__inc и .ftk__more — это вырезы-кружки билета (::before/::after на -6 px), так задумано и не режется */
@media (max-width: 767px) {
  html .v3 .ticket dt, html .ticket dt, .msheet__grp, html .apost__rub { font-size: 13px; }
  html .v3 .ticket dt { font-size: .8125rem; }
  html .tix__inc { font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
}

/* Подсказка-заглушка для страниц, которых ещё нет (только на время сборки).
   Перенесено из design/concept-v2/index.html, строки 1081–1085. */
/* заглушка страниц, которых в концепте нет: короткая подсказка вместо перехода */
.stub { position: fixed; z-index: 45; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: min(420px, calc(100% - 32px)); padding: 14px 16px; background: #fff; color: var(--ink); font: 500 14px/1.45 var(--font-text); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s var(--ease-out); pointer-events: none; }
.stub.is-on { opacity: 1; transform: none; }
@media (max-width: 899px) { .stub { bottom: calc(84px + env(safe-area-inset-bottom)); } }


/* Липкая «Записаться» на телефоне.
   Перенесено из design/concept-v2/index.html, строки 1086–1095. */
/* ---------- Липкая кнопка «Записаться» на телефоне: после первого экрана, прячется у формы записи ---------- */
.stk { display: none; }
@media (max-width: 899px) { /* там, где в шапке нет «Записаться» */
  .stk { display: flex; justify-content: center; position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; padding: 10px max(16px, var(--sa)) calc(10px + env(safe-area-inset-bottom)); background: var(--ink); transform: translateY(110%); transition: transform .2s var(--ease-out); }
  .stk.is-on { transform: none; transition-duration: .32s; }
  .stk .btn { width: 100%; max-width: 520px; }
  .drum__grid { padding-bottom: calc(92px + env(safe-area-inset-bottom)); } /* барабан закреплён на весь экран: билет курса не уходит под липкую кнопку */
}
.rm .stk { transition: none; }


/* Cookie-баннер. Десктоп: полоса внизу, одна строка. Телефон: компактный, два предложения и две кнопки в одну строку по 44 px,
   «Настроить» ссылкой. Пока баннер показан, липкая «Записаться» скрыта (html.has-cookie). Движение: transform и opacity, 200 мс. */
.ckb { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: none; background: #121212; color: #fff; box-shadow: 0 -1px 0 #333; padding: 14px var(--gutter, 24px) calc(14px + env(safe-area-inset-bottom)); }
.ckb.is-on { display: block; animation: ckb-in .32s var(--ease-out-expo) both; }
@keyframes ckb-in { from { transform: translateY(100%); } to { transform: none; } }
.ckb__in { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.ckb__t { flex: 1 1 420px; margin: 0; font: 400 14px/1.45 var(--font-text); color: #E2E2E2; }
.ckb__t a { color: #fff; text-underline-offset: 3px; }
.ckb__act { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.ckb__b { min-height: 44px; padding: 0 20px; border: 0; background: #E53132; color: #fff; font: 600 15px/1 var(--font-text); cursor: pointer; }
.ckb__b--n { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #757575; }
.ckb__l { appearance: none; background: none; border: 0; padding: 0; min-height: 44px; font: 500 15px/1 var(--font-text); color: #fff; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ckb__b:focus-visible, .ckb__l:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.has-cookie .stk { display: none; }
@media (max-width: 599px) {
  .ckb { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .ckb__in { display: grid; gap: 8px; }
  .ckb__t { font-size: 13px; line-height: 1.4; }
  .ckb__act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ckb__b { width: 100%; padding: 0 8px; }
  .ckb__l { grid-column: 1 / -1; justify-self: start; min-height: 32px; font-size: 14px; }
}
.rm .ckb.is-on { animation: none; }

/* Начальные состояния и служебные правила каркаса (новое, в концепте их не было в таком виде).

   1. Скрытые состояния — ТОЛЬКО второстепенного. H1 и фото первого экрана (.hero__plate) не прячутся ни в CSS, ни в JS: это элемент LCP.
      Класс .js ставит inline-скрипт в head; если core.js не стартовал за 3 с, класс снимается и всё видно.
      (В концепте здесь же прятались строки H1 и фото на время интро — убрано, передача разработчику, раздел 5.) */
.js:not(.rm) .hero [data-in],
.js:not(.rm):has(.hero) .hdr .hdr__mark, .js:not(.rm):has(.hero) .hdr .hdr__nav, .js:not(.rm):has(.hero) .hdr .hdr__right, .js:not(.rm):has(.hero) .hdr .hdr__m { opacity: 0; }
/* шапка прячет пункты только там, где есть первый экран с интро (hero); на внутренних страницах она видна сразу.
   :has() — в браузерах без него шапка просто остаётся видимой */

/* 2. Панель администратора WordPress у залогиненных: шапка и закрепления сдвигаются на --admin-bar-h (ставит core.js: 32 px / 46 px / 0 до 600 px) */
.admin-bar .hdr { top: var(--admin-bar-h, 0px); }
.admin-bar .msheet { top: var(--admin-bar-h, 0px); }

/* 3. «Без анимации»: позиционные движения убраны в самих эффектах (RM), здесь — запасное правило на непредвиденные переходы */
@media (prefers-reduced-motion: reduce) {
  .btn, .btn__roll > span, .btn::before, .btn::after { transition-duration: .01ms; }
  .mq__track { animation: none; }
}
