/* =========================================================================
   Cortex Challenge — онлайн-хакатон Visiology
   Стили страницы. Десктоп-дизайн сохранён 1:1, добавлена адаптивность.
   Брейкпоинты: 1920, 1600, 1200, 1024, 992, 768, 480, 375, 320.
   ========================================================================= */

/* ============================ ШРИФТЫ ==================================== */
/* Onest (основной текст) */
@font-face { font-family:'Onest'; font-style:normal; font-weight:400 800; font-display:swap; src:url("fonts/onest-cyrillic-ext.woff2") format('woff2'); unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family:'Onest'; font-style:normal; font-weight:400 800; font-display:swap; src:url("fonts/onest-cyrillic.woff2") format('woff2'); unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family:'Onest'; font-style:normal; font-weight:400 800; font-display:swap; src:url("fonts/onest-latin-ext.woff2") format('woff2'); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family:'Onest'; font-style:normal; font-weight:400 800; font-display:swap; src:url("fonts/onest-latin.woff2") format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* JetBrains Mono (моноширинный — метки, плейсхолдеры) */
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:400 500; font-display:swap; src:url("fonts/jetbrainsmono-cyrillic-ext.woff2") format('woff2'); unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:400 500; font-display:swap; src:url("fonts/jetbrainsmono-cyrillic.woff2") format('woff2'); unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:400 500; font-display:swap; src:url("fonts/jetbrainsmono-greek.woff2") format('woff2'); unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:400 500; font-display:swap; src:url("fonts/jetbrainsmono-vietnamese.woff2") format('woff2'); unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:400 500; font-display:swap; src:url("fonts/jetbrainsmono-latin-ext.woff2") format('woff2'); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:400 500; font-display:swap; src:url("fonts/jetbrainsmono-latin.woff2") format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============================ ПЕРЕМЕННЫЕ ================================ */
:root {
  --ink: #171717;
  --yellow: #FEE121;
  --red: #E5341E;            /* красный из фирменного знака Visiology */
  --white: #FFFFFF;
  --gray: #E8E9E9;
  --gray-line: #E0E0E0;
  --gray-2: #C9C9C9;
  --muted: #6B6B6B;
  --muted-2: #9A9A9A;
  --soft: #3D3D3D;
  --soft-2: #2B2B2B;
  --dark-card: #1A1A1A;
  --dark-line: #1F1F1F;
  --dark-line-2: #2A2A2A;
  --on-dark: #C8C8C6;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --maxw: 1280px;
  --gutter: 40px;            /* боковой отступ контейнера (всегда ≥ 15px) */
}

/* ============================ БАЗА / СБРОС ============================== */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }

@keyframes cc-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0; }
}
@keyframes cc-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================ ЛЕЙАУТ =================================== */
.page { max-width: 100%; overflow-x: hidden; background: var(--white); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Базовая секция: вертикальные отступы, горизонтальные даёт .container */
.section { padding: 120px 0; }
.section--light { background: var(--white); }
.section--gray  { background: var(--gray); }
.section--dark  { background: var(--ink); color: var(--white); }
.section--dark .section-title { color: var(--white); }

/* ============================ ШАПКА / НАВИГАЦИЯ ======================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--gray-line);
}
.site-header__inner { padding-block: 18px; display: flex; align-items: center; gap: 48px; }
.site-header__logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.site-header__logo img { height: 22px; width: auto; display: block; }
.site-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; color: var(--soft-2); margin-left: auto; }
.site-nav a { transition: color 0.15s ease; }
.site-nav a:hover { color: var(--ink); }

/* Бургер (только на узких экранах) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 100px; font-weight: 600; font-size: 16px; }

/* ============================ БЕГУЩАЯ СТРОКА =========================== */
.marquee { background: var(--ink); color: var(--white); padding: 22px 0; overflow: hidden; border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.marquee__track { display: flex; gap: 56px; animation: cc-marquee 50s linear infinite; width: max-content; }
.marquee__item { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.marquee__star { font-size: 18px; font-weight: 500; color: var(--yellow); }

/* ============================ ОБЩИЕ КОМПОНЕНТЫ ========================= */
.section-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.section-label__line { width: 24px; height: 1px; background: var(--ink); }
.section-label__text { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.section-label--accent .section-label__line { background: var(--yellow); }
.section-label--accent .section-label__text { color: var(--yellow); }

.section-title { font-size: clamp(40px, 5.5vw, 76px); line-height: 0.95; letter-spacing: -0.035em; font-weight: 700; color: var(--ink); }

/* Колонка заголовка была уже колонки текста (1fr против 1.4fr) — из-за этого
   короткие заголовки рвались на лишние строки поверх заданных <br>. */
/* Текст справа выравнивается по ВЕРХУ ЗАГОЛОВКА, а не по низу блока и не по
   метке раздела. Метка, заголовок и текст лежали в разных уровнях вложенности,
   поэтому обёртка растворяется через display:contents и все трое становятся
   ячейками одной сетки: метка занимает первый ряд, заголовок и текст — второй.
   Так их верх совпадает автоматически, без подгонки отступов под кегль.
   Было align-items:end — при длинном тексте справа он задавал высоту ряда,
   а заголовок слева уезжал вниз, оставляя дыру над ним. */
.section-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; margin-bottom: 64px; }
.section-head > div { display: contents; }
.section-head .section-label { grid-column: 1; grid-row: 1; }
.section-head .section-title { grid-column: 1; grid-row: 2; }
.section-head .section-intro { grid-column: 2; grid-row: 2; }
.section-head--narrow { margin-bottom: 56px; }
/* Шапка без правой колонки: заголовку незачем ужиматься в половину ширины. */
.section-head--solo { grid-template-columns: 1fr; }
.section-intro { margin: 0; font-size: 20px; line-height: 1.5; color: var(--soft); max-width: 560px; justify-self: end; }
.section-intro--muted { color: var(--muted-2); }

.overline { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.overline--mb18 { margin-bottom: 18px; }
.overline--mb24 { margin-bottom: 24px; }

.card--white { padding: 44px; background: var(--white); border-radius: 20px; }

/* Бейджи */
.badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 100px; }
.badge span { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.badge--accent { padding: 6px 12px; background: var(--yellow); margin-bottom: 24px; }
.badge--accent span { color: var(--ink); }
.badge--accent .badge__dot { width: 6px; height: 6px; background: var(--ink); border-radius: 50%; }
.badge--dark { padding: 6px 12px; background: var(--ink); margin-bottom: 24px; }
.badge--dark span { color: var(--yellow); }

/* ============================ УЧАСТНИКИ =============================== */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 80px; }
.audience-card { padding: 32px 28px; border: 1px solid var(--gray-line); border-radius: 16px; background: var(--white); transition: background 0.2s, transform 0.2s, border-color 0.2s; }
.audience-card:hover { background: var(--gray); transform: translateY(-2px); border-color: var(--gray-2); }
.audience-card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--yellow); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.audience-card__title { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.audience-card__text { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }

.conditions { background: var(--white); border-radius: 24px; padding: 44px 48px; display: grid; grid-template-columns: 240px 1fr 1fr; gap: 48px; align-items: start; }
.conditions__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.conditions__title { font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.conditions__item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.conditions__bullet { width: 10px; height: 10px; background: var(--yellow); border-radius: 2px; }
.conditions__item-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.conditions__item-text { margin: 0 0 0 20px; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ===== ПОДГОТОВКА И ЭКСПЕРТНЫЕ РАЗБОРЫ ===== */

/* ============================ ЗАДАЧА / ТАБЫ =========================== */
.task__head { margin-bottom: 56px; }
.task__title { max-width: 1050px; white-space: normal; }

.tabs { display: inline-flex; padding: 6px; background: var(--white); border: 1px solid var(--gray-line); border-radius: 100px; margin-bottom: 32px; gap: 4px; }
.tab-btn { padding: 12px 22px; border-radius: 100px; font-size: 14px; font-weight: 500; color: var(--muted); background: transparent; letter-spacing: -0.005em; transition: background 0.15s ease, color 0.15s ease; }
.tab-btn.is-active { font-weight: 600; color: var(--ink); background: var(--yellow); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.task-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.task-card__lead { margin: 0 0 36px; font-size: 18px; line-height: 1.6; color: var(--ink); }

.resource-list { display: flex; flex-direction: column; gap: 14px; }
.resource { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--gray-line); }
.resource--last { border-bottom: 1px solid var(--gray-line); }
.resource__icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--gray); display: flex; align-items: center; justify-content: center; }
.resource--accent .resource__icon { background: var(--yellow); }
.resource__text { font-size: 16px; font-weight: 600; color: var(--ink); }

.cortex-callout { padding: 44px; background: var(--ink); color: var(--white); border-radius: 20px; position: relative; overflow: hidden; }
.cortex-callout__glow { position: absolute; top: -50%; right: -30%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(254,225,33,0.18) 0%, transparent 70%); pointer-events: none; }
.cortex-callout__inner { position: relative; }
.cortex-callout__title { margin: 0 0 20px; font-size: 32px; font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; }
.cortex-callout__text { margin: 0 0 28px; font-size: 16px; line-height: 1.55; color: var(--on-dark); }
.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #262626; border: 1px solid #383838; border-radius: 12px; }
.feature svg { flex-shrink: 0; }
.feature span { font-size: 14px; font-weight: 500; }

/* Требования */
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--gray-line); }
.step--last { border-bottom: none; }
.step__num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--ink); font-family: var(--mono); }
.step__text { font-size: 16px; line-height: 1.55; color: var(--ink); padding-top: 5px; }
.req-aside { padding: 32px; background: var(--gray); border-radius: 16px; align-self: start; }
.req-aside__text { margin: 0 0 20px; font-size: 17px; line-height: 1.55; color: var(--ink); }
.req-aside__note { padding: 16px 18px; background: var(--white); border-left: 3px solid var(--yellow); border-radius: 4px; font-size: 16px; line-height: 1.5; color: var(--ink); font-weight: 500; }

/* Критерии */
.criteria { display: flex; flex-direction: column; }
.criterion { display: grid; grid-template-columns: 50px 1fr 120px; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--gray-line); }
.criterion--last { border-bottom: 1px solid var(--gray-line); }
.criterion__num { font-size: 13px; font-weight: 600; color: var(--muted-2); font-family: var(--mono); }
.criterion__title { font-size: 18px; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.criterion__desc { font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.criterion__bar { height: 6px; background: var(--gray); border-radius: 100px; overflow: hidden; }
.criterion__bar span { display: block; height: 100%; background: var(--yellow); border-radius: 100px; }
.criterion:nth-child(1) .criterion__bar span { width: 30%; }
.criterion:nth-child(2) .criterion__bar span { width: 25%; }
.criterion:nth-child(3) .criterion__bar span { width: 25%; }
.criterion:nth-child(4) .criterion__bar span { width: 10%; }
.criterion:nth-child(5) .criterion__bar span { width: 10%; }
.criterion__weight { text-align: right; }

/* ============================ ПРИЗЫ =================================== */
.prize-main { background: var(--yellow); color: var(--ink); border-radius: 24px; padding: 48px; margin-bottom: 20px; display: grid; grid-template-columns: 1.4fr auto; gap: 48px; align-items: center; overflow: hidden; }
.prize-main__title { margin: 0 0 18px; font-size: clamp(44px, 5.5vw, 72px); font-weight: 700; line-height: 0.95; letter-spacing: -0.035em; }
.prize-main__text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--soft-2); max-width: 560px; }
.prize-main__art { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.prize-section-title { font-size: clamp(42px, 4.6vw, 64px); line-height: .98; }
.prize-section-title span { display: block; white-space: nowrap; }

/* Отступ сверху был 56px и схлопывался с margin-bottom жёлтой карточки —
   заголовок прилипал к блоку призового фонда. Плюс колонка заголовка была уже
   текстовой, из-за чего он не делился на две ровные строки. */
.prize-secondary-head { margin: 96px 0 28px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: end; }
.prize-secondary-head__title { margin: 0; font-size: clamp(36px, 4.5vw, 62px); line-height: .98; letter-spacing: -.035em; }
.prize-secondary-head__text { margin: 0; max-width: 620px; justify-self: end; font-size: 18px; line-height: 1.55; color: var(--soft); }

.prize-rewards { background: var(--gray); border: 1px solid var(--gray-line); border-radius: 20px; overflow: hidden; }
.prize-rewards__group { padding: 36px 40px 40px; }
.prize-rewards__group--result { border-top: 1px solid var(--gray-line); background: var(--white); }
.prize-rewards__group-title { margin-bottom: 28px; font-size: 13px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.prize-rewards__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.prize-reward { min-width: 0; padding: 0 28px; border-left: 1px solid var(--gray-line); }
.prize-reward:first-child { padding-left: 0; border-left: 0; }
.prize-reward:last-child { padding-right: 0; }
.prize-reward__num { display: block; margin-bottom: 24px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--muted-2); }
.prize-reward__overline { display: block; margin-bottom: 18px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prize-reward__title { margin: 0 0 22px; font-size: 22px; line-height: 1.18; letter-spacing: -.02em; }
.prize-reward__sum { display: block; font-size: 28px; line-height: 1; letter-spacing: -.025em; }
.prize-reward--result .prize-reward__title { margin-bottom: 0; font-size: 20px; }

/* ============================ СРОКИ / ЭТАПЫ =========================== */
.timeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.stage { padding: 28px; background: #262626; border: 1px solid #383838; border-radius: 16px; position: relative; }
.stage--final { background: var(--yellow); border-color: var(--yellow); color: var(--ink); overflow: hidden; }
.stage__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.stage__num { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); font-family: var(--mono); }
.stage__num--final { color: var(--soft-2); }
.stage__badge { font-size: 11px; font-weight: 600; padding: 4px 10px; background: var(--yellow); color: var(--ink); border-radius: 100px; letter-spacing: 0.04em; }
.stage__title { margin: 0 0 8px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.stage__dates { margin-bottom: 16px; font-family: var(--mono); font-size: 13px; }
.stage__date-final { font-size: 14px; color: var(--ink); margin-bottom: 16px; font-family: var(--mono); font-weight: 600; }
.stage__progress { height: 4px; background: var(--dark-line-2); border-radius: 100px; overflow: hidden; }
.stage__progress span { display: block; height: 100%; width: 0; background: var(--yellow); }
.stage__progress--final { background: rgba(23,23,23,0.15); }
.stage__progress--final span { background: var(--ink); }
.stage__text { margin: 18px 0 0; font-size: 13px; color: var(--muted-2); line-height: 1.55; }
.stage__text--final { color: var(--soft-2); }
.stage__list { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.stage__list-item { display: flex; gap: 8px; align-items: flex-start; }
.stage__list-dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); margin-top: 6px; }
.stage__list-text { font-size: 12px; color: var(--on-dark); line-height: 1.45; }

/* ============================ ЖЮРИ =================================== */
/* Отступ переехал сверху вниз вместе с самой пилюлей: теперь она стоит ПОД
   сеткой жюри, а не над ней. */
.jury-note { margin-top: 32px; padding: 14px 20px; background: var(--yellow); border-radius: 100px; display: inline-flex; align-items: center; gap: 10px; }
.jury-note span { font-size: 13px; font-weight: 600; color: var(--ink); }
.jury-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.jury-card { padding: 18px; background: var(--gray); border-radius: 16px; transition: background 0.2s, transform 0.2s; }
.jury-card:hover { background: var(--gray-line); transform: translateY(-2px); }
.jury-card__photo { aspect-ratio: 1.06 / 1; background: var(--gray-line); border-radius: 12px; margin-bottom: 18px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.jury-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; } /* привязка к верху: у портретов мало запаса над головой, центр-кроп резал лоб */
.jury-card__photo--offset img { object-position: 50% 22%; } /* Биленко: лицо занимает почти весь кадр — «верх» режет подбородок, центр — макушку */
.jury-card__photo--contain img { object-fit: contain; object-position: center bottom; padding: 8px 8px 0; }
.jury-card__head { margin-bottom: 7px; }
.jury-card__role { font-size: 10px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); font-family: var(--mono); }
.jury-card__name { margin: 0 0 7px; font-size: 23px; line-height: 1.05; letter-spacing: -0.025em; color: var(--ink); }
.jury-card__position { margin: 0 0 12px; font-size: 14px; line-height: 1.35; color: var(--soft); font-weight: 600; }
.jury-card__bio { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* Prize structure: 3 main + 3 special nominations + finalists + verified certificate */
.prize-breakdown { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 720px; }
.prize-breakdown__item { padding: 15px 16px; border: 1px solid rgba(23,23,23,.22); border-radius: 12px; background: rgba(255,255,255,.24); }
.prize-breakdown__place { display: block; margin-bottom: 5px; font-size: 10px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .13em; font-weight: 700; }
.prize-breakdown__sum { display: block; font-size: 22px; font-weight: 750; letter-spacing: -.025em; }
.prize-tax-note { margin: 14px 0 0; max-width: 720px; font-size: 12px; line-height: 1.5; color: rgba(23,23,23,.68); }

/* ============================ FAQ =================================== */
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.faq-aside { position: sticky; top: 100px; }
.faq-aside__title { margin: 0 0 28px; }
.faq-aside__text { margin: 0 0 14px; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 360px; }
.faq-aside__contact { display: inline-flex; align-items: center; gap: 8px; }
.faq-aside__contact-link { font-size: 15px; color: var(--ink); border-bottom: 1px solid rgba(23,23,23,0.25); transition: color 0.15s ease, border-color 0.15s ease; }
.faq-aside__contact-link:hover { border-bottom-color: var(--ink); }

.faq-list { background: var(--white); border-radius: 20px; overflow: hidden; }
.faq-item__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; background: var(--white); cursor: pointer; text-align: left; border-bottom: 1px solid var(--gray-line); transition: background 0.15s ease; }
.faq-item.is-open .faq-item__btn { background: #F5F5F5; }
.faq-item:last-child .faq-item__btn { border-bottom-color: transparent; }
.faq-item:last-child.is-open .faq-item__btn { border-bottom-color: var(--gray-line); }
.faq-item__q { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; text-align: left; flex: 1; }
.faq-item__icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gray); color: var(--ink); transform: rotate(0deg); transition: transform 0.2s ease, background 0.15s ease, color 0.15s ease; }
.faq-item.is-open .faq-item__icon { background: var(--ink); color: var(--yellow); transform: rotate(45deg); }
.faq-item__content { display: none; background: #F5F5F5; border-bottom: 1px solid var(--gray-line); }
.faq-item.is-open .faq-item__content { display: block; }
.faq-item:last-child .faq-item__content { border-bottom-color: transparent; }
.faq-item__answer { padding: 0 28px 24px; font-size: 16px; line-height: 1.6; color: var(--soft); }

/* ============================ ЗАЯВКА / ФОРМА ========================== */
.register { padding: 120px 0; position: relative; overflow: hidden; }
.register__glow { position: absolute; pointer-events: none; }
.register__glow--1 { top: -10%; left: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(254,225,33,0.18) 0%, transparent 70%); }
.register__glow--2 { bottom: -20%; right: -10%; width: 700px; height: 700px; background: radial-gradient(circle, rgba(254,225,33,0.10) 0%, transparent 70%); }
.register__inner { position: relative; }
/* Колонки по центру, а не по верху: карточка заявки вдвое ниже заголовка,
   и при выравнивании по верху под ней зияла дыра во весь его рост. */
.register__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
/* Кегль снижен с 76px: пятнадцать слов в колонке ~570px давали по одному
   слову в строке. На 52px фраза ложится в 3–4 строки и читается. Интерлиньяж
   поднят с 0.95 — на меньшем кегле такая плотность склеивает строки. */
.register__title { margin: 0 0 28px; font-size: clamp(32px, 3.4vw, 52px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; }
.register__title-accent { color: var(--yellow); }

.form-card { background: var(--white); color: var(--ink); border-radius: 24px; padding: 40px; }
.form__title { margin: 0 0 24px; font-size: 28px; font-weight: 700; letter-spacing: -0.025em; }
.btn-submit { margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 18px 24px; background: var(--ink); color: var(--yellow); border-radius: 100px; font-weight: 600; font-size: 16px; cursor: pointer; transition: background 0.15s ease, transform 0.15s ease; }
.btn-submit:hover { background: #0A0A0A; transform: translateY(-1px); }
/* Карточка заявки: заголовок, короткий текст и кнопка, открывающая общий попап сайта. */
.register__cta-card { display: flex; flex-direction: column; justify-content: center; }
.register__cta-text { margin: 0 0 24px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ============================ ФУТЕР =================================== */
.site-footer { background: var(--ink); color: var(--muted-2); padding: 64px 0 40px; border-top: 1px solid var(--dark-line); }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 64px; margin-bottom: 56px; align-items: start; }
.site-footer__logo-link { display: inline-block; }
.site-footer__logo { height: 26px; width: auto; display: block; margin-bottom: 14px; }
.site-footer__tagline { font-size: 14px; color: var(--on-dark); }
.site-footer__col-title { font-size: 11px; font-weight: 600; color: var(--white); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer__links { display: flex; flex-direction: column; gap: 10px; }
.site-footer__link { font-size: 13px; }
a.site-footer__link { color: var(--on-dark); text-decoration: none; transition: color 0.15s ease; }
a.site-footer__link:hover { color: var(--yellow); }
.site-footer__social { display: flex; gap: 14px; margin-top: 18px; }
.site-footer__social a { display: inline-flex; color: var(--on-dark); transition: color 0.15s ease, transform 0.15s ease; }
.site-footer__social a:hover { color: var(--yellow); transform: translateY(-1px); }
.site-footer__social svg { width: 24px; height: 24px; display: block; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--dark-line); }
.site-footer__copy { font-size: 13px; color: var(--muted); }
.site-footer__site { font-size: 13px; color: var(--muted); font-family: var(--mono); transition: color 0.15s ease; }
.site-footer__site:hover { color: var(--yellow); }

/* Якоря с учётом липкой шапки */
:where(section[id]) { scroll-margin-top: 80px; }
@media (max-width: 1600px) {
  .section-head, .faq-layout, .register__grid { gap: 64px; }
}

/* ----- 1200px: чуть теснее, контейнер уже ----- */
@media (max-width: 1200px) {
  :root { --gutter: 32px; }
  .section { padding: 96px 0; }
  .section-head { gap: 48px; margin-bottom: 48px; }
  .section-head--narrow { margin-bottom: 44px; }
  .faq-layout, .register__grid { gap: 56px; }
  .prize-main { padding: 40px; }
  .card--white, .cortex-callout { padding: 36px; }
  .site-footer__top { gap: 48px; }
}

/* ----- 1024px: планшет — ключевые сетки в одну колонку ----- */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }

  .section-head,
  .section-head--narrow { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  /* В одну колонку раскладка из рядов не нужна: текст встаёт третьим блоком
     под заголовком, иначе он полез бы во второй ряд рядом с ним. */
  .section-head .section-title { grid-column: 1; grid-row: 2; }
  .section-head .section-intro { grid-column: 1; grid-row: 3; }
  .section-intro { justify-self: start; max-width: 640px; }

  .task-grid { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }

  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .faq-aside { position: static; top: auto; }

  .register__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ----- 992px ----- */
@media (max-width: 992px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .jury-grid { grid-template-columns: repeat(2, 1fr); }
  .conditions { grid-template-columns: 1fr; gap: 28px; padding: 36px; }
  .req-grid { grid-template-columns: 1fr; gap: 32px; }
  .prize-secondary-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .prize-secondary-head__text { justify-self: start; }
}

/* ----- 768px: мобильный — бургер, всё в один столбец ----- */
@media (max-width: 768px) {
  :root { --gutter: 24px; }

  /* шапка + бургер */
  .site-header__inner { gap: 16px; justify-content: space-between; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(255,255,255,0.98);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--gray-line);
    padding: 8px var(--gutter) 16px;
    margin-left: 0;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--gray-line); }
  .site-nav a:last-child { border-bottom: none; }

  .section { padding: 72px 0; }
  .section-title { font-size: clamp(36px, 8vw, 52px); }
  .task__title { white-space: normal; }
  /* Раньше здесь стояло до 56px — больше, чем на десктопе после снижения
     кегля. Держим не крупнее десктопного. */
  .register__title { font-size: clamp(30px, 7vw, 44px); }

  .audience-grid { grid-template-columns: 1fr; }
  .jury-grid { grid-template-columns: 1fr; }
  .prize-breakdown { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: 1fr; }

  /* призы — главный приз в столбик */
  .prize-main { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
  .prize-main__art { justify-content: flex-start; }
  .prize-main__art svg { width: 140px; height: 140px; }
  .prize-secondary-head { margin-top: 44px; }
  .prize-section-title span { white-space: normal; }
  .prize-rewards__group { padding: 28px 24px; }
  .prize-rewards__grid { grid-template-columns: 1fr; }
  .prize-reward { padding: 24px 0; border-left: 0; border-top: 1px solid var(--gray-line); }
  .prize-reward:first-child { padding-top: 0; border-top: 0; }
  .prize-reward:last-child { padding-bottom: 0; }
  .prize-reward__num { margin-bottom: 14px; }

  /* критерии — вес уходит на отдельную строку */
  .criterion { grid-template-columns: 36px 1fr; gap: 12px 16px; }
  .criterion__weight { grid-column: 1 / -1; text-align: left; padding-left: 52px; }

  .card--white, .cortex-callout, .form-card { padding: 28px; }
  .req-aside { padding: 24px; }
  .conditions { padding: 28px; }

  /* Табы: переносим строками (текст не режется), подложка крупнее и с меньшим скруглением */
  .tabs { flex-wrap: wrap; row-gap: 8px; padding: 8px; border-radius: 16px; }
  .tab-btn { white-space: nowrap; }

  .site-footer__top { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ----- 480px ----- */
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .section { padding: 56px 0; }
  .marquee__item, .marquee__star { font-size: 16px; }
  .marquee__track { gap: 40px; }

  .card--white, .cortex-callout, .form-card, .prize-main, .conditions, .req-aside { padding: 22px; }
  .prize-main__title { font-size: 38px; }
  .cortex-callout__title { font-size: 26px; }

  .tab-btn { padding: 10px 16px; font-size: 13px; }
  .faq-item__btn { padding: 20px 18px; gap: 14px; }
  .faq-item__q { font-size: 16px; }
  .faq-item__answer { padding: 0 18px 20px; }
  .jury-note { align-items: flex-start; border-radius: 16px; }
}

/* ----- 375px ----- */
@media (max-width: 375px) {
  .section-title { font-size: 32px; }
  .prize-main__title { font-size: 34px; }
  .stage { padding: 22px; }
}

/* ----- 320px ----- */
@media (max-width: 320px) {
  .section-title { font-size: 29px; }
  .register__title { font-size: 30px; }
  .prize-main__title { font-size: 30px; }
  .form-card, .card--white { padding: 18px; }
}

/* Уважение к настройке «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==================== ПЕРВЫЙ ЭКРАН: ВИДЕО ============================== */
/* Шапка sticky и стоит в потоке, поэтому высота первого экрана — окно минус
   её фактическая высота. Значение подставляет scripts.js, значение здесь —
   запас на случай, если JS не выполнился. */
:root { --hero-header-h: 60px; }

/* ============================ СТАТИЧНЫЙ HERO ========================== */
.hero-static {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--hero-header-h) - 48px);
  padding: clamp(64px, 8vh, 104px) 0;
  overflow: hidden;
  background: #171717;
  color: var(--white);
}
.hero-static__inner { position: relative; z-index: 1; width: 100%; }
.hero-static__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.75fr);
  gap: clamp(48px, 4vw, 72px);
  align-items: center;
}
.hero-static__title {
  max-width: 900px;
  margin: 0 0 30px;
  color: var(--white);
  font-size: clamp(52px, 4.2vw, 72px);
  font-weight: 720;
  line-height: 0.98;
  letter-spacing: 0;
}
.hero-static__title-line { display: block; white-space: nowrap; }
.hero-static__lead {
  max-width: 780px;
  margin: 0 0 24px;
  color: #C9C9C9;
  font-size: clamp(18px, 1.25vw, 22px);
  line-height: 1.48;
}
/* Стилей .hero-static__statement здесь больше нет: фраза «Побеждает
   аналитик…» снята 31.08.2026 вместе с ними. Акцент жёлтой линейкой,
   который был у неё, отдан не тексту, а сумме призового фонда в блоке
   фактов ниже (.hero-facts). */
.hero-static__btn {
  padding: 16px 24px;
  background: var(--yellow);
  color: var(--ink);
}
.hero-static__btn:hover { background: #FFEA5E; transform: translateY(-2px); }

@media (max-width: 1100px) {
  .hero-static__grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 767px) {
  .hero-static { min-height: auto; padding: 52px 0 64px; }
  .hero-static__grid { gap: 40px; }
  .hero-static__title { font-size: clamp(28px, 8.8vw, 48px); line-height: 1.04; }
  .hero-static__lead { font-size: 17px; }
}

/* ==================== СТАТИЧНЫЙ HERO V2: СИТУАЦИОННЫЙ ЦЕНТР ============ */

/* ======================================================================
   ПЕРВЫЙ ЭКРАН: ПРАВЫЙ БЛОК «СИТУАЦИОННЫЙ ЦЕНТР»
   ----------------------------------------------------------------------
   Блок объясняет сам термин, а не подписывает его. Четыре яруса читаются
   сверху вниз как логика ситуационного центра:
     источники → сведённое отклонение → откуда сигнал → какое действие.
   Механика взята из двух реальных проектов на Visiology: разнородные
   источники и иерархия «верхний показатель → детализация» из ситуационного
   центра Ульяновской области, статусы критичности и вынесение проблемы
   на решение — из Тульской области. Цифры внутри блока демонстрационные:
   это сценарий соревнования, а не показатели заказчика.
   Оформление, отступы и размеры шрифтов совпадают с прежней карточкой.
   ====================================================================== */
.hero-static__sc {
  overflow: hidden;
  border: 1px solid #3C3C3C;
  border-radius: 6px;
  background: #1E1E1E;
  box-shadow: 18px 18px 0 #101010;
}
.hero-static__sc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #3C3C3C;
  color: #AFAFAF;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
/* Акцент отдан живому индикатору: он и означает непрерывность наблюдения. */
.hero-static__sc-state { display: inline-flex; align-items: center; gap: 12px; }
.hero-static__sc-live { display: inline-flex; align-items: center; gap: 6px; color: var(--yellow); }
.hero-static__sc-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  animation: sc-live 2s ease-in-out infinite;
}
/* Пульс индикатора — не часть сборки блока, а признак состояния, поэтому
   он продолжается и после того, как сборка закончилась. Отключается одной
   строкой: убрать animation у .hero-static__sc-live i. */
@keyframes sc-live { 0%, 100% { opacity: 1; transform: scale(1); }
                     50% { opacity: 0.45; transform: scale(0.8); } }

.hero-static__sc-cap {
  display: block;
  color: #8F8F8F;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

/* --- ярус 1: источники и их сведение в контур */
.hero-static__sc-feeds {
  padding: 16px 20px 14px;
  border-bottom: 1px solid #343434;
}
.hero-static__sc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}
.hero-static__sc-chips i {
  padding: 4px 8px;
  border: 1px solid #4A4A4A;
  border-radius: 3px;
  color: #D4D4D4;
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}
/* Полоса сведения: шесть источников превращаются в одну линию контура. */
.hero-static__sc-rail {
  height: 2px;
  margin-top: 12px;
  border-radius: 2px;
  background: #343434;
}
.hero-static__sc-rail b {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(to right, #4A4A4A, var(--yellow));
}

/* --- ярус 2: главное отклонение */
.hero-static__sc-alert {
  display: grid;
  grid-template-columns: minmax(118px, 0.55fr) minmax(0, 1.45fr);
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #343434;
}
.hero-static__sc-alert > div { display: grid; gap: 6px; }
.hero-static__sc-alert strong {
  max-width: 100%;
  color: var(--yellow);
  font-size: clamp(32px, 2.2vw, 38px);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 0.95;
  white-space: nowrap;
}
.hero-static__sc-persist {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}
.hero-static__sc-alert p {
  margin: 0;
  color: #D4D4D4;
  font-size: 15px;
  line-height: 1.45;
}

/* --- ярус 3: откуда сигнал, со статусами критичности */
.hero-static__sc-trace {
  padding: 14px 20px 16px;
  border-bottom: 1px solid #343434;
}
.hero-static__sc-row {
  position: relative;
  display: grid;
  grid-template-columns: 8px minmax(0, auto) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px 0;
}
.hero-static__sc-row + .hero-static__sc-row { border-top: 1px solid #2C2C2C; }
.hero-static__sc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6A6A6A;
}
.hero-static__sc-row[data-state="ok"]       .hero-static__sc-dot { background: #29C44A; }
.hero-static__sc-row[data-state="risk"]     .hero-static__sc-dot { background: var(--yellow); }
.hero-static__sc-row[data-state="critical"] .hero-static__sc-dot { background: var(--red); }
.hero-static__sc-name {
  color: var(--white);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.hero-static__sc-value {
  color: #AFAFAF;
  font-size: 13px;
  line-height: 1.35;
}

/* --- ярус 4: управленческое действие */
.hero-static__sc-decision {
  display: grid;
  gap: 7px;
  padding: 20px;
  background: var(--yellow);
  color: var(--ink);
}
.hero-static__sc-decision span {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.hero-static__sc-decision strong { font-size: 20px; line-height: 1.2; }

@media (max-width: 1100px) {
  .hero-static__sc { max-width: 680px; box-shadow: 12px 12px 0 #101010; }
}
@media (max-width: 767px) {
  .hero-static__sc { box-shadow: 8px 8px 0 #101010; }
  .hero-static__sc-alert { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 420px) {
  .hero-static__sc-row { grid-template-columns: 8px minmax(0, 1fr); row-gap: 4px; }
  .hero-static__sc-value { grid-column: 2; }
}

/* ======================================================================
   АНИМАЦИЯ ПРАВОГО БЛОКА
   ----------------------------------------------------------------------
   Финальное состояние задано правилами выше и работает без JavaScript.
   Ниже — только путь к нему, включается классами is-anim-prep и is-anim-run.
   Порядок повторяет логику центра: источники поступают, сводятся в контур,
   всплывает отклонение, раскрывается причина, ставится вопрос о действии.
   Анимируются только opacity и transform: вёрстка не дёргается.
   ====================================================================== */
@keyframes sc-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sc-chip { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes sc-rail { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sc-soft { from { opacity: 0; } to { opacity: 1; } }
/* Однократная отметка критичной строки: показывает зону риска и гаснет,
   поэтому финал совпадает со статикой. */
@keyframes sc-mark { 0% { box-shadow: 0 0 0 0 rgba(229, 52, 30, 0); }
                     35% { box-shadow: 0 0 0 5px rgba(229, 52, 30, 0.28); }
                     100% { box-shadow: 0 0 0 0 rgba(229, 52, 30, 0); } }

.hero-static.is-anim-prep .hero-static__sc-chips i,
.hero-static.is-anim-prep .hero-static__sc-feeds .hero-static__sc-cap,
.hero-static.is-anim-prep .hero-static__sc-alert > div,
.hero-static.is-anim-prep .hero-static__sc-alert p,
.hero-static.is-anim-prep .hero-static__sc-trace .hero-static__sc-cap,
.hero-static.is-anim-prep .hero-static__sc-row,
.hero-static.is-anim-prep .hero-static__sc-decision { opacity: 0; }
.hero-static.is-anim-prep .hero-static__sc-rail b { transform: scaleX(0); }

.hero-static.is-anim-run .hero-static__sc-feeds .hero-static__sc-cap { animation: sc-soft 0.4s ease both; animation-delay: 0.15s; }

/* Источники поступают по одному. */
.hero-static.is-anim-run .hero-static__sc-chips i { animation: sc-chip 0.34s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.hero-static.is-anim-run .hero-static__sc-chips i:nth-child(1) { animation-delay: 0.30s; }
.hero-static.is-anim-run .hero-static__sc-chips i:nth-child(2) { animation-delay: 0.41s; }
.hero-static.is-anim-run .hero-static__sc-chips i:nth-child(3) { animation-delay: 0.52s; }
.hero-static.is-anim-run .hero-static__sc-chips i:nth-child(4) { animation-delay: 0.63s; }
.hero-static.is-anim-run .hero-static__sc-chips i:nth-child(5) { animation-delay: 0.74s; }
.hero-static.is-anim-run .hero-static__sc-chips i:nth-child(6) { animation-delay: 0.85s; }

/* Сведение в единый контур. */
.hero-static.is-anim-run .hero-static__sc-rail b {
  transform-origin: left center;
  animation: sc-rail 0.60s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: 1.15s;
}

/* Отклонение всплывает в сведённой картине; число считается от 0,0%. */
.hero-static.is-anim-run .hero-static__sc-alert > div,
.hero-static.is-anim-run .hero-static__sc-alert p { animation: sc-rise 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.hero-static.is-anim-run .hero-static__sc-alert > div { animation-delay: 1.30s; }
.hero-static.is-anim-run .hero-static__sc-alert p { animation-delay: 1.45s; }

/* Повторяемость отклонения проявляется, когда число уже досчитало:
   снимок превращается в наблюдаемый тренд. */
.hero-static.is-anim-prep .hero-static__sc-persist { opacity: 0; }
.hero-static.is-anim-run .hero-static__sc-persist { animation: sc-soft 0.45s ease both; animation-delay: 3.50s; }

/* Переход к причине. */
.hero-static.is-anim-run .hero-static__sc-trace .hero-static__sc-cap { animation: sc-soft 0.4s ease both; animation-delay: 1.95s; }
.hero-static.is-anim-run .hero-static__sc-row { animation: sc-rise 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.hero-static.is-anim-run .hero-static__sc-row:nth-of-type(1) { animation-delay: 2.15s; }
.hero-static.is-anim-run .hero-static__sc-row:nth-of-type(2) { animation-delay: 2.55s; }
.hero-static.is-anim-run .hero-static__sc-row:nth-of-type(3) { animation-delay: 2.95s; }

/* Зона риска отмечается один раз. */
.hero-static.is-anim-run .hero-static__sc-row[data-state="critical"] .hero-static__sc-dot {
  animation: sc-mark 0.75s ease-out both;
  animation-delay: 3.45s;
}

/* Управленческий вопрос — последним. */
.hero-static.is-anim-run .hero-static__sc-decision { animation: sc-soft 0.55s ease both; animation-delay: 4.15s; }

@media (prefers-reduced-motion: reduce) {
  /* Постоянный пульс индикатора гасим всегда, независимо от режима показа. */
  .hero-static__sc-live i { animation: none !important; }

  .hero-static:not(.is-anim-force).is-anim-prep .hero-static__sc-persist,
  .hero-static:not(.is-anim-force).is-anim-run .hero-static__sc-persist,
  .hero-static:not(.is-anim-force).is-anim-prep .hero-static__sc-chips i,
  .hero-static:not(.is-anim-force).is-anim-prep .hero-static__sc-cap,
  .hero-static:not(.is-anim-force).is-anim-prep .hero-static__sc-alert > div,
  .hero-static:not(.is-anim-force).is-anim-prep .hero-static__sc-alert p,
  .hero-static:not(.is-anim-force).is-anim-prep .hero-static__sc-row,
  .hero-static:not(.is-anim-force).is-anim-prep .hero-static__sc-decision,
  .hero-static:not(.is-anim-force).is-anim-prep .hero-static__sc-rail b,
  .hero-static:not(.is-anim-force).is-anim-run .hero-static__sc-chips i,
  .hero-static:not(.is-anim-force).is-anim-run .hero-static__sc-cap,
  .hero-static:not(.is-anim-force).is-anim-run .hero-static__sc-alert > div,
  .hero-static:not(.is-anim-force).is-anim-run .hero-static__sc-alert p,
  .hero-static:not(.is-anim-force).is-anim-run .hero-static__sc-row,
  .hero-static:not(.is-anim-force).is-anim-run .hero-static__sc-row .hero-static__sc-dot,
  .hero-static:not(.is-anim-force).is-anim-run .hero-static__sc-decision,
  .hero-static:not(.is-anim-force).is-anim-run .hero-static__sc-rail b {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
  }
}

/* ======================================================================
   ПЕРВЫЙ ЭКРАН: ДВА ЗАГОЛОВКА И ФАКТЫ СОБЫТИЯ
   ----------------------------------------------------------------------
   Первый заголовок называет событие и сразу опознаётся как соревнование,
   второй держит смысловое обещание. Размеры разведены: они не спорят
   и не читаются как две одинаковые надписи подряд.
   Плитки-теги убраны, на их месте перед кнопкой стоят факты события —
   даты, формат, стоимость участия и призовой фонд. Все взяты из разделов
   «Сроки и этапы» и «Условия» этого же лендинга.
   ====================================================================== */
.hero-static__announce {
  max-width: 780px;
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
}
/* Жёлтым — то, по чему событие узнаётся как соревнование. */
.hero-static__announce span { color: var(--yellow); }

/* Второй заголовок ниже первого по кеглю: так стопка не выглядит налепленной. */
.hero-static__title {
  margin: 0 0 28px;
  font-size: clamp(42px, 3.5vw, 58px);
  line-height: 1.0;
}

/* Факты события — там, где раньше стояли плитки-теги, а до 31.08.2026 шла
   сплошная строка через точки. Строку заменили колонками «подпись →
   значение»: она читалась как сноска, и увеличение кегля этого не решало —
   глазу не за что зацепиться, пока факты не названы. Теперь заметность даёт
   структура, а жёлтый остаётся только у суммы и у кнопки.
   Колонки — по содержимому (max-content), а не равные: в равных
   «Сентябрь — ноябрь 2026» рвалось на две строки. Разделитель сверху
   отделяет факты от лида, не утяжеляя блок рамкой. */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 0 clamp(24px, 3vw, 44px);
  margin: 10px 0 34px;
  padding-top: 22px;
  border-top: 1px solid #3C3C3C;
}
.hero-facts__item { min-width: 0; }
.hero-facts dt {
  margin-bottom: 7px;
  color: #8F8F8F;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.hero-facts dd {
  margin: 0;
  color: var(--white);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}
.hero-facts__prize { color: var(--yellow); font-weight: 700; }

@media (max-width: 767px) {
  .hero-static__announce { margin-bottom: 14px; font-size: clamp(21px, 5.6vw, 27px); }
  .hero-static__title { margin-bottom: 22px; font-size: clamp(26px, 7.6vw, 40px); line-height: 1.04; }
  /* На узких экранах заданные переносы заголовка перестают быть жёсткими:
     строка «Из аналитика данных —» при nowrap упиралась бы в кромку экрана,
     а на самых узких (320 px) вылезала бы за неё. Заданные переносы остаются
     как есть, просто строка при нехватке места переносится ещё раз. */
  .hero-static__title-line { white-space: normal; }
  /* Четыре колонки в телефон не помещаются. Раскладка в две, но сроки и
     призовой фонд занимают всю ширину: «Сентябрь — ноябрь 2026» в половину
     экрана не влезает, а сумме своя строка идёт на пользу — она главный
     довод. Получается три ряда вместо четырёх, и кнопка остаётся на первом
     экране. */
  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    margin-bottom: 26px;
    padding-top: 18px;
  }
  .hero-facts__item:first-child,
  .hero-facts__item:last-child { grid-column: 1 / -1; }
  .hero-facts dd { font-size: 17px; }
}

/* ======================================================================
   ПЕРВЫЙ ЭКРАН: КОРОТКАЯ ЗАСТАВКА
   ----------------------------------------------------------------------
   Слой лежит поверх первого экрана и уходит по окончании ролика. Фон слоя
   совпадает с фоном экрана и с фоном самого ролика (#171717), поэтому ни
   при появлении, ни при уходе не видно стыка.
   Кадр вписывается через contain, а не cover: при cover на нетипичных
   пропорциях окна текст ролика обрезался бы, а поля не видны — они того же
   цвета. По умолчанию слой скрыт: без JavaScript экран показывается сразу.
   ====================================================================== */
.hero-intro {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #171717;
}
.hero-intro[hidden] { display: none; }
.hero-intro__media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #171717;
}
/* Уход заставки: экран под ней уже начал собираться. */
.hero-intro.is-done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
  /* Гасим только ту заставку, которую скрипт НЕ включал. Класс is-on ставит
     scripts.js, когда решил её показать: без этой оговорки стиль перебивал бы
     решение скрипта и ролик не появлялся вовсе. */
  .hero-intro:not(.is-on) { display: none !important; }
}
