/* ===== Base ===== */
/* Шаблон standalone-совместим: свой reset, globals.css приложения не нужен. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background-color: var(--color-bg);
  background-image: var(--glow-hero), var(--sheen-top);
  background-attachment: fixed;
  font-family: var(--font-body);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}
img, svg, video { display: block; }
ul { list-style: none; }

/* Длинное непереносимое слово (ссылка, склейка без пробелов) переносится,
   а не уходит за край контейнера. */
.kicker, .headline, .subtitle, .side__title, .topic__text, .chip-text,
.cta__label, .proof__text { overflow-wrap: anywhere; }

/* Выделение текста — системное: globals.css приложения красит ::selection
   в акцент (в @layer base), здесь откатываем к дефолту браузера. */
::selection { background: revert; color: revert; }

/* Кастомный скроллбар (Boris 2026-10-01 «под стиль проекта»): тонкий,
   бегунок — полупрозрачный акцент темы (--color-sep, то же семейство
   альфы, что хайрлайны тикера и рамки программы), трек прозрачный.
   Стандартные свойства, не ::-webkit-заглушки: вьюпорт-скроллбар html по
   спецификации берёт значение с body, а темы перекрывают переменные
   именно на body.font-body — палитра подстраивается под все 21 тему,
   включая светлые. Превью в админке (iframe формы лендинга) грузит этот
   же css — кадр получает тот же скроллбар, что и публичная страница. */
body {
  scrollbar-width: thin;
  scrollbar-color: var(--color-sep) transparent;
}

/* ===== Каркас: тикер / сцена / футер (эталон Fkh5z, 1440×900) ===== */
.stage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* svh позже: вьюпорт без мобильного URL-бара, Safari/Chrome 108+ */
  min-height: 100svh;
}

/* Зерно-оверлей на весь вьюпорт: noise.svg — белые и чёрные вкрапления
   с прозрачной серединой. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: url("../assets/noise.svg") repeat;
  background-size: 240px 240px;
  opacity: 0.14;
}

/* ===== Появление страницы: один оркестрованный момент =====
   Узлы приезжают каскадом снизу вверх по DOM один раз при загрузке;
   fill-mode both держит «до»-состояние на время задержки.
   В iframe (живое превью админки перерисовывает кадр на каждое поле)
   анимации выключены — иначе превью мигает на каждый ввод. */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.ticker__in { animation: rise-in 0.5s 0s cubic-bezier(0.22, 1, 0.36, 1) both; }
.eyebrow { animation: rise-in 0.5s 0.06s cubic-bezier(0.22, 1, 0.36, 1) both; }
.headline { animation: rise-in 0.55s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both; }
.subtitle { animation: rise-in 0.5s 0.19s cubic-bezier(0.22, 1, 0.36, 1) both; }
.cta-col { animation: rise-in 0.5s 0.26s cubic-bezier(0.22, 1, 0.36, 1) both; }
.video-side { animation: rise-in 0.55s 0.19s cubic-bezier(0.22, 1, 0.36, 1) both; }
.agenda { animation: rise-in 0.55s 0.32s cubic-bezier(0.22, 1, 0.36, 1) both; }
.footer__in { animation: rise-in 0.5s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
html.is-embed .ticker__in, html.is-embed .eyebrow, html.is-embed .headline,
html.is-embed .subtitle, html.is-embed .cta-col, html.is-embed .video-side,
html.is-embed .agenda, html.is-embed .footer__in { animation: none; }

/* ===== Тикер ===== */
/* Бегущая строка: лента течёт бесконечно (брендовый тик + WEBINAR FREE,
   группа повторена в разметке — две одинаковые половины для шва).
   Фон-полоса на всю ширину окна, содержимое — в общем контейнере 1440
   (как .main): края тикера, сцены и футера на одной линии; маска гасит
   ленту у краёв контейнера. */
.ticker {
  background: var(--color-surface);
  font-family: var(--font-mono);
  font-size: 10.5px;
  overflow: hidden;
  /* Капс всегда, независимо от регистра ввода пользователя (ревизия
     Boris 2026-09-23) — тикер читается как биржевая лента. */
  text-transform: uppercase;
}
.ticker__in {
  min-height: 48px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  /* Две одинаковые половины → ровно −50% = бесшовный цикл. */
  animation: ticker-scroll 64s linear infinite;
}
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.ticker__group { display: flex; align-items: center; gap: 44px; white-space: nowrap; margin-right: 44px; }
.tick { display: flex; align-items: center; gap: 8px; }
.tick__name { color: var(--color-text-muted); }
.tick__val { color: var(--color-text-soft); }
.tick__val--accent { color: var(--color-accent); }
.tick__sep { color: var(--color-text-faint); }

/* ===== Сцена ===== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--gap-main);
  padding: var(--pad-y) var(--pad-x);
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  gap: clamp(36px, 3.6vw, 56px);
}

/* --- Левая колонка --- */
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--gap-copy);
  width: clamp(440px, 39vw, 600px);
  flex-shrink: 0;
}
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow__dash { width: 26px; height: 1px; background: var(--color-accent); flex-shrink: 0; }
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.headline {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 1.05;
  font-weight: 800;
  /* Отрицательный трекинг в em: масштабируется вместе с fluid-размером. */
  letter-spacing: -0.022em;
  color: var(--color-text);
  /* Длинные заголовки: висячие короткие слова на последней строке — не надо */
  text-wrap: balance;
}
.subtitle {
  font-size: var(--fs-subtitle);
  line-height: 1.62;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}
.cta-col { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* --- CTA: круглая (полный радиус) пилюля без стрелки --- */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 38px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-on-accent);
  text-decoration: none;
  /* Блик-свип ездит внутри кнопки; isolate держит его под текстом. */
  overflow: hidden;
  isolation: isolate;
  /* «Монетный» кант: внутреннее кольцо + верхний свет 1px — тактильная
     выпуклость без внешних теней (декоративный пас стекла откачен). */
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--color-on-accent) 20%, transparent),
    inset 0 1px 0 color-mix(in srgb, #ffffff 32%, transparent);
  transition: filter 0.18s ease, transform 0.18s ease;
  /* Длинная подпись переносится, а не выталкивает форму за край. */
  min-width: 0;
  max-width: 100%;
}
.cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
.cta:active { transform: translateY(0) scale(0.99); }
.cta.is-disabled { opacity: 0.45; pointer-events: none; }
.cta:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.cta__label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  /* Обычный регистр (капс снесён Boris 2026-09-24); трекинг скромнее
     капсового — в смешанном регистре 0.04em читался разреженно. */
  letter-spacing: 0.01em;
  line-height: 1.25;
  min-width: 0;
}
/* Блик: диагональный свип по ховеру, один проход. */
.cta::after {
  content: "";
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 0;
  width: 34%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.32) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-140%) skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.cta:hover::after { animation: cta-sheen 0.7s cubic-bezier(0.33, 0.7, 0.4, 1); opacity: 1; }
@keyframes cta-sheen {
  from { transform: translateX(-140%) skewX(-18deg); }
  to { transform: translateX(460%) skewX(-18deg); }
}

.proof { display: flex; align-items: center; gap: 10px; }
.proof__icon { width: 14px; height: 14px; color: var(--color-accent); flex-shrink: 0; }
/* Информационная строка (число + «зарегистрировались») — secondary, а не
   muted: на части тёмных тем muted давал 3.3–3.9 против требуемых 4.5. */
.proof__text { font-size: 13px; color: var(--color-text-secondary); }

/* --- Правая колонка: видео + таймер ---
   Колонка не шире, чем постер при потолке высоты: на низких окнах видео
   и таймер сжимаются вместе и остаются на одной оси. */
.video-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  max-width: calc(var(--poster-max-h) * 16 / 9);
  margin-inline: auto;
  width: 100%;
}

.poster {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-poster);
  overflow: hidden;
  background: var(--color-surface) center / cover no-repeat;
  cursor: pointer;
}
.poster__overlay { position: absolute; inset: 0; background: rgba(11, 13, 16, 0.4); }
.poster__scrim { position: absolute; left: 0; right: 0; pointer-events: none; }
.poster__scrim--top { top: 0; height: 30%; background: linear-gradient(180deg, var(--overlay-top), transparent); z-index: 1; }
.poster__scrim--bottom { bottom: 0; height: 36%; background: linear-gradient(0deg, var(--overlay-bottom), transparent); }
/* Пока видео играет, 40% затемнение и нижний скрим убираются (картинка
   честная); верхний скрим остаётся — под ним читаются чипы. */
.poster__overlay, .poster__scrim { transition: opacity 0.35s ease; }
.poster.is-playing .poster__overlay,
.poster.is-playing .poster__scrim--bottom { opacity: 0; }

.poster__bar {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* Шапка живёт НАД видео: <video> аппендится в .poster последним и без
     стека красился бы поверх чипов (при воспроизведении шапка исчезала).
     Сами чипы не интерактивны — клики проходят сквозь бар в видео. */
  z-index: 2;
  pointer-events: none;
}
.brand-chip, .live-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-chip-glass);
  font-family: var(--font-mono);
  font-size: 10.5px;
  white-space: nowrap;
}
/* Длинное название бренда усаживается с многоточием, live-чип не сдвигается
   за край (long-тексты выталкивали его за вьюпорт на мобиле). */
.brand-chip { min-width: 0; flex-shrink: 1; }
.live-chip { flex-shrink: 0; }
.brand-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); flex-shrink: 0; }
.brand-text { color: var(--color-accent); letter-spacing: 0.05em; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* Чипы живут поверх видео на тёмном стекле — текст фиксированно светлый,
   как у кнопки play (на светлых темах --color-text тёмный и пропадал бы).
   Тона из макетов: у всех 21 варианта LIVE-подпись #F5F3EE, зрители #C9CDD3. */
.live-label { color: #f5f3ee; letter-spacing: 0.05em; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-live); }
.chip-div { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.15); }
.viewers-icon { width: 12px; height: 12px; color: #c9cdd3; }
.viewers { color: #c9cdd3; }

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  /* Эталон pencil Fkh5z (iluLT/O72U4r): тёплое стекло #F5F3EE на 12%,
     обводка 1px #FFFFFF40, без тени. Светлые тона фиксированы — кнопка
     живёт поверх медиа, а не темы (на светлых темах --color-text тёмный
     и пропадал на тёмном видео). */
  background: rgba(245, 243, 238, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f5f3ee;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, scale 0.15s ease;
  /* Стек как у шапки: после паузы кнопка видна над видео, а не под ним. */
  z-index: 2;
}
.play:hover { background: rgba(245, 243, 238, 0.2); scale: 1.04; }
.play:focus-visible { outline: 2px solid #f5f3ee; outline-offset: 3px; }
/* Острый треугольник эталона (24×28), сдвиг вправо 6px — оптический центр. */
.play svg { width: 24px; height: 28px; margin-left: 6px; }
/* Пока играет, кнопка прозрачна и не ловит клики, но остаётся в фокусе
   (поставить паузу можно и ей, и кликом по видео с клавиатуры). */
.poster.is-playing .play { opacity: 0; pointer-events: none; }
/* Клик по постеру вне кнопки — тоже play/pause (делегирует main.js). */

/* Полосы прогресса у видео больше нет вовсе (ревизия Boris 2026-09-23
   «полоска не нужна» — каркас её не рендерит). */
.poster__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
/* Пауза/плей с клавиатуры: после старта кнопка play прозрачна, фокус
   получает само видео (tabindex ставит main.js). */
.poster__video:focus-visible { outline: 2px solid #f2f3f5; outline-offset: -4px; }

/* ---- Панель контролов видео: плей/пауза, перемотка, время «прошло /
   всего». Строится main.js вместе с <video>, поверх кадра — тона
   фиксированные светлые, как у шапки и кнопки play. ---- */
.vcontrols {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(11, 13, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f5f3ee;
}
.vc__toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f5f3ee;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease;
}
.vc__toggle:hover { color: #ffffff; }
.vc__toggle svg { display: none; width: 11px; height: 14px; }
/* На паузе — треугольник «продолжить», в воспроизведении — пауза. */
.vc__toggle svg:first-child { display: block; }
.poster.is-playing .vc__toggle svg:first-child { display: none; }
.poster.is-playing .vc__toggle svg:last-child { display: block; }
/* Громкость: мьют-кнопка + мини-ползунок (филл тёплый, не конкурирует
   с золотым филлом перемотки). При мьюте филл нулевой — честно к слуху. */
.vc__vol {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f5f3ee;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease;
}
.vc__vol:hover { color: #ffffff; }
.vc__vol svg { display: none; width: 15px; height: 15px; }
.vc__vol svg:first-child { display: block; }
.vc__vol.is-muted svg:first-child { display: none; }
.vc__vol.is-muted svg:last-child { display: block; }
.vc__voltrack {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 18px;
  cursor: pointer;
  touch-action: none;
}
.vc__voltrack::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin-top: -1.5px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
}
.vc__volfill {
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -1.5px;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(245, 243, 238, 0.9);
}
/* Полоса перемотки: линия 3px по центру, зона клика/драга 18px. */
.vc__track {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 18px;
  cursor: pointer;
  touch-action: none;
}
.vc__track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin-top: -1.5px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
}
.vc__fill {
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -1.5px;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
}
.vc__time {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: rgba(245, 243, 238, 0.92);
}
.vc__time b { font-weight: 400; }
.vc__sep { font-style: normal; color: rgba(245, 243, 238, 0.45); }
.vc__dur { color: rgba(245, 243, 238, 0.6); }

/* --- Таймер --- */
.countdown { display: flex; flex-direction: column; gap: clamp(10px, 1.8vh, 16px); }
.countdown__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.urgency { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-live);
  flex-shrink: 0;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.timer__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* nowrap даёт min-content = всей строке: без min-width:0 подпись
     вытолкивала .urgency за вьюпорт на длинных текстах (≤540px). */
  min-width: 0;
}
.free-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-accent) 8%, transparent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  white-space: nowrap;
  max-width: 100%;
}
.free-pill__icon { width: 13px; height: 13px; flex-shrink: 0; }
.chip-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.timer-strip {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: clamp(10px, 1.6vh, 16px) 0 clamp(9px, 1.3vh, 13px);
  border-radius: var(--radius-seg);
  background: color-mix(in srgb, var(--color-text) 4%, transparent);
}
.seg { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.seg__digits {
  font-family: var(--font-mono);
  font-size: var(--fs-digit);
  font-weight: 500;
  line-height: 1;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
/* Смена секунды: цифра мягко проявляется (класс ставит main.js). */
.seg__digits.is-tick { animation: digit-in 0.28s ease; }
@keyframes digit-in { from { opacity: 0.25; } }
.seg__unit {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}
.seg-div { width: 1px; background: color-mix(in srgb, var(--color-text) 8%, transparent); }
.timer__status {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  min-height: 36px;
}
/* Не scheduled: цифры прячет main.js (класс на .timer-strip), вместо них
   статусная строка. У live/ended подпись «до старта» тоже не по смыслу.
   Пульс-точка без подписи висит одиноким «живым» маркером на завершённом
   эфире — в статусных состояниях прячется вместе с ней. */
.countdown.is-live .timer__label { display: none; }
.countdown.is-live .pulse-dot { display: none; }
.timer-strip.is-status .seg,
.timer-strip.is-status .seg-div { display: none; }
.timer-strip.is-status .timer__status { display: flex; }

/* ===== Программа ===== */
.agenda { display: flex; flex-direction: column; gap: clamp(12px, 2vh, 18px); }
.agenda__head { display: flex; align-items: center; gap: 14px; }
.side__title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  /* Подпись полосы программы — одной строкой; остаток ширины забирает линия. */
  white-space: nowrap;
}
.agenda__line { flex: 1; height: 1px; background: var(--border-subtle); }
.topics { display: flex; gap: clamp(16px, 1.8vw, 28px); }
.topic {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 2px 8px 2px 0;
}
.topic__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-accent);
}
.topic__icon { width: 16px; height: 16px; color: var(--color-accent); }
.topic__icon svg { width: 100%; height: 100%; }
.topic__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-soft);
}

/* ===== Футер ===== */
.footer {
  font-family: var(--font-mono);
}
.footer__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  padding: 8px var(--pad-x);
  max-width: 1440px;
  margin: 0 auto;
}
.footer__brand-slot { display: flex; align-items: center; gap: 10px; min-width: 0; }
.footer__logo { max-height: 22px; max-width: 160px; width: auto; }
.footer__brand { font-size: 10.5px; color: var(--color-text-muted); white-space: nowrap; }
.footer__note {
  font-size: 10px;
  color: var(--color-text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Ступень низких ноутбуков: держим один экран по высоте =====
   Только десктопная раскладка (>1080): ужимаются гэпы, таймер, полосы
   каркаса и типографика — тексты не режутся. */
@media (min-width: 1081px) and (max-height: 840px) {
  :root, body.font-body {
    --fs-display: clamp(25px, 2.55vw, 40px);
    --fs-digit: clamp(22px, 2vw, 30px);
    --pad-y: 16px;
    --gap-main: 22px;
    --gap-copy: 14px;
    --poster-max-h: 42vh;
  }
  .ticker__in { min-height: 40px; }
  .footer__in { min-height: 44px; }
}

@media (min-width: 1081px) and (max-height: 740px) {
  :root, body.font-body {
    --fs-display: clamp(24px, 2.3vw, 34px);
    --fs-digit: clamp(20px, 1.8vw, 26px);
    --pad-y: 12px;
    --gap-main: 18px;
    --poster-max-h: 38vh;
  }
}

/* ===== Адаптив ===== */
@media (max-width: 1080px) {
  /* Герой в столбец: текст → видео+таймер → CTA-блок. Кнопка и строка
     доверия уезжают ПОД таймер (репорт Boris 2026-09-27): DOM не меняется —
     hero__copy «растворяется» (display: contents), её дети становятся
     флекс-элементами hero, порядок дописывает order (видео = 1, CTA = 2);
     у растворённого узла нет коробки, но rise-in висит на самих детях —
     каскад появления жив (видео 0.19s → CTA 0.26s и раньше шёл в этом
     порядке). Десктопную раскладку (текст | видео) это не затрагивает. */
  .hero { flex-direction: column; align-items: stretch; gap: 0; }
  .hero__copy { display: contents; }
  /* Ритм текстовых строк (был gap колонки) и потолок ширины на планшетах
     (был max-width hero__copy): с display: contents свойства коробки
     не работают — переносятся на детей. */
  .eyebrow, .headline, .subtitle, .cta-col { max-width: 640px; }
  .eyebrow, .headline { margin-bottom: var(--gap-copy); }
  .video-side { order: 1; margin-top: 32px; }
  .cta-col { order: 2; margin-top: 32px; }
  .topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  /* fixed-фон на мобилах дорого перерисовывается при скролле и глючит
     в Android-браузерах; свечение остаётся, но листается вместе со страницей. */
  body { background-attachment: scroll; }
}

/* Планшетная полоса (761–1080): герой уже столбец, но блоки жались влево
   при центрированном видео — несогласованно (ревизия Boris 2026-09-27
   «всё по центру»). Центрируется всё, включая пункты программы (та же
   ревизия, вторым заходом: «три вверху, два внизу» с центральной
   выключкой). Телефоны (≤760) и десктоп (>1080) не затрагиваются. */
@media (min-width: 761px) and (max-width: 1080px) {
  .eyebrow, .headline, .subtitle, .cta-col { margin-inline: auto; }
  .eyebrow { justify-content: center; }
  .headline, .subtitle { text-align: center; }
  .cta-col { align-items: center; }
  /* Заголовок программы центрируем группой с линией (линия укорачивается,
     иначе flex:1 прижимала её к правому краю, а титул — к левому). */
  .agenda__head { justify-content: center; }
  .agenda__line { flex: 0 0 auto; width: clamp(48px, 8vw, 140px); }
  .footer__in { justify-content: center; }
  /* Пункты программы: ряд по три (треть ширины минус гэпы), нижний неполный
     ряд — у пяти пунктов это два — центрируется сам: flex-wrap с
     justify-content: center центрует каждый ряд независимо от числа
     пунктов (3 → один ряд, 4-5 → «3 сверху, остальные по центру снизу»).
     Базис именно фиксированный, а не grow: перенос строки flex считает по
     гипотетическому размеру — при basis 0 все пять молча влезали в один
     ряд; −1px страховает субпиксельное округление тройки. */
  .topics { display: flex; flex-wrap: wrap; justify-content: center; }
  .topic {
    flex: 0 0 calc((100% - 2 * clamp(16px, 1.8vw, 28px)) / 3 - 1px);
    align-items: center;
    text-align: center;
    padding: 2px 8px;
  }
}

@media (max-width: 760px) {
  :root, body.font-body {
    --fs-display: clamp(26px, 7.2vw, 34px);
    --fs-digit: clamp(24px, 7vw, 32px);
    --pad-y: 24px;
  }
  .main { gap: 32px; }
  /* было .hero { gap: 28px } — с order-раскладкой hero расстояния несут
     сами блоки (см. ≤1080): на телефоне до видео и до CTA по 28px */
  .video-side, .cta-col { margin-top: 28px; }
  .subtitle { font-size: 14px; }
  .poster { aspect-ratio: 4 / 3; }
  .poster__bar { left: 12px; right: 12px; top: 12px; }
  .vcontrols { left: 12px; right: 12px; bottom: 12px; padding: 7px 12px; gap: 10px; }
  .vc__voltrack { width: 40px; }
  .brand-chip, .live-chip { padding: 6px 10px; }
  .play { width: 68px; height: 68px; }
  .countdown__meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .topics { grid-template-columns: 1fr; gap: 16px; }
  /* Один строкой подпись на узком экране не помещается — возвращаем перенос,
     иначе длинный текст уводит страницу в горизонтальный скролл. */
  .side__title { white-space: normal; }
  .footer__in { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 12px; padding-bottom: 12px; }
  .footer__note { white-space: normal; }
  .cta { width: 100%; }
}

@media (max-width: 420px) {
  :root, body.font-body {
    --fs-display: 26px;
    --fs-digit: 22px;
  }
  .timer-strip { gap: 6px; }
  .seg__unit { font-size: 9px; }
  .free-pill { padding: 7px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  /* Пульс, появление, бегущая лента, блик CTA и тик цифр — только
     украшения: при reduce отключаются целиком, смена состояний (статусы,
     прогресс) не зависит от них. */
  .pulse-dot { animation: none; }
  .ticker__track { animation: none; }
  .cta, .play, .poster__overlay, .poster__scrim { transition: none; }
  .cta:hover::after { animation: none; }
  .ticker__in, .eyebrow, .headline, .subtitle, .cta-col, .video-side, .agenda, .footer__in { animation: none; }
  .seg__digits.is-tick { animation: none; }
}
