/* Главная. Вёрстка по 01-главная.dc.html: значения размеров и цветов из макета. */

/* --- Шапка: два яруса, на главной лежат поверх кадра (пакет handoff_navbar_1f) --- */

.site-header { z-index: 40; }

/* Страница с первым экраном: шапка вне потока, кадр начинается под ней.
   Фиксирована сразу — так при прокрутке нечему прыгать, меняется только фон. */
.site-header--overlay { position: fixed; top: 0; left: 0; right: 0; background: transparent; }
/* Плотный фон лежит отдельным слоем и проявляется прозрачностью: переключать
   background и blur разом — рывок, который видно на каждом экране.
   Слой без z-index: с отрицательным он уходил под ярус 1 с его заливкой,
   и проявления там было не видно. Содержимое ярусов поднято ниже по файлу. */
.site-header--overlay::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(11, 12, 16, 0.94); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 300ms ease;
}
.site-header--overlay.is-stuck::before { opacity: 1; }
/* Заливка яруса 1 гаснет навстречу плотному фону. Гасить её через
   background/backdrop-filter нельзя — blur пропадает скачком, без перехода. */
.site-header--overlay.is-stuck .site-header__util::before { opacity: 0; }
.site-header--overlay.is-stuck .site-header__util { border-bottom-color: transparent; }
.site-header--overlay.is-stuck .site-header__main { border-bottom-color: var(--border); }

/* Страницы без кадра: сразу плотный фон */
.site-header--solid { position: sticky; top: 0; background: rgba(11, 12, 16, 0.94); backdrop-filter: blur(8px); }
.site-header--solid .site-header__util::before { opacity: 0; }

.site-header__util { position: relative; border-bottom: 1px solid var(--hairline); transition: border-color 300ms ease; }
.site-header__util::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(11, 12, 16, 0.55); backdrop-filter: blur(8px);
  opacity: 1; transition: opacity 300ms ease;
}
.site-header__util-inner { position: relative; display: flex; align-items: center; gap: 22px; padding-top: 9px; padding-bottom: 9px; font-size: 13px; }
.site-header__util-inner a {
  color: var(--ink-200); white-space: nowrap; transition: color var(--t-fast);
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px;
}
.site-header__util-inner a:hover { color: var(--ink); }

.site-header__main { position: relative; border-bottom: 1px solid var(--hairline); transition: border-color 300ms ease; }
.site-header__main-inner { position: relative; display: flex; align-items: center; gap: 36px; padding-top: 20px; padding-bottom: 20px; }

/* Согласовано с ShklAnim.reduced: кому движение противопоказано — сразу конечный вид */
@media (prefers-reduced-motion: reduce) {
  .site-header--overlay::before, .site-header__util, .site-header__util::before, .site-header__main { transition: none; }
}

.brand { flex-shrink: 0; display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { height: 46px; width: auto; display: block; }
.brand__name {
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  line-height: 1.3; letter-spacing: -0.01em; white-space: nowrap;
}

.nav-main { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 16px; font-weight: 500; }
.nav-main a {
  color: var(--ink); white-space: nowrap; padding-bottom: 4px;
  border-bottom: 2px solid transparent; transition: color var(--t-fast), border-color var(--t-fast);
}
.nav-main a:hover { color: var(--scarlet-light); }
.nav-main a.is-active { border-bottom-color: var(--scarlet); color: var(--ink); }
/* Страницы-разделы и вход дублируются в меню только на узком экране */
.nav-main__divider, .nav-main__page { display: none; }

.site-header__actions { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.btn-ghost {
  padding: 11px 18px; border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap;
  transition: border-color var(--t-fast);
}
.btn-ghost:hover { border-color: #FFFFFF; color: var(--ink); }
.btn-solid {
  padding: 13px 22px; background: var(--scarlet);
  font-size: 15px; font-weight: 600; color: #FFFFFF; white-space: nowrap;
  transition: background var(--t-fast);
}
.btn-solid:hover { background: var(--scarlet-light); color: #FFFFFF; }
/* На первом экране кнопка не нужна: там уже есть крупная «Зарегистрироваться».
   Проявляется, когда герой уходит вверх. */
.btn-solid.is-hidden { opacity: 0; pointer-events: none; }

.burger { display: none; background: none; border: 0; padding: 10px 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform var(--t-base), opacity var(--t-base); }
.burger span + span { margin-top: 4px; }
/* Открытое меню превращает бургер в крестик — закрывают им же */
.nav-main.is-open ~ .site-header__actions .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-main.is-open ~ .site-header__actions .burger span:nth-child(2) { opacity: 0; }
.nav-main.is-open ~ .site-header__actions .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
body.is-locked { overflow: hidden; }

@media (max-width: 1199px) {
  /* Ярус 1 и навигация уходят в полноэкранное меню, наверху остаются знак,
     «Регистрация» и бургер. */
  .site-header__util { display: none; }
  .site-header__main-inner { padding-top: 14px; padding-bottom: 14px; gap: 16px; }
  .btn-ghost { display: none; }
  .burger { display: block; }
  .site-header__actions { margin-left: auto; }

  .nav-main {
    display: none; position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 0; margin: 0; padding: 96px var(--gutter-mobile) 40px;
    background: var(--bg); overflow-y: auto; font-size: 20px;
  }
  .nav-main.is-open { display: flex; }
  /* Панель перекрывает ярус, но знак и бургер остаются поверх неё */
  .brand, .site-header__actions { position: relative; z-index: 2; }
  .nav-main a { width: 100%; min-height: 52px; display: flex; align-items: center; padding: 6px 0; border-bottom: 0; }
  .nav-main a.is-active { color: var(--scarlet-light); }
  .nav-main__divider { display: block; width: 100%; height: 1px; margin: 14px 0; background: var(--border); }
  .nav-main__page { display: flex; font-size: 17px; color: var(--ink-200); }
}

@media (max-width: 599px) {
  .brand__name { display: none; }
}

/* --- Общие блоки секций --- */

.section--rule { border-top: 1px solid var(--border); }
.section--white { background: var(--surface-light); color: var(--ink-dark); padding-top: 64px; padding-bottom: 64px; }
.section--white h1, .section--white h2, .section--white h3, .section--white h4 { color: var(--ink-dark); }
.section__head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 38px; }
.section__head--narrow { max-width: 800px; }
.section__lead { max-width: 800px; }
.section__head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section__title { margin-bottom: 34px; }
.section__foot { margin-top: 22px; }
.section__aside { max-width: 400px; text-align: right; }

.over { font-size: 15px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--scarlet-light); }
.over--dark { color: var(--scarlet-hover); }
.over--light { color: #FFD5DD; }
.over--muted { font-size: 15px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dark-600); }
.over--muted-dark { font-size: 15px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-500); }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Карточки держат ширину и стоят в строку слева: когда их две, растягивать
   их на весь контейнер незачем. */
.grid--auto { grid-template-columns: repeat(auto-fit, 360px); justify-content: start; }
.grid--gap-top { margin-top: 44px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.split--even { gap: 56px; }
.split__text { display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.65; color: var(--ink-200); }
.stack { display: flex; flex-direction: column; gap: 16px; }

.tile { background: var(--surface); padding: 34px 30px; display: flex; flex-direction: column; gap: 16px; }
.tile--outline { background: transparent; border: 1px solid var(--disabled); padding: 30px; gap: 14px; }

@media (max-width: 1023px) {
  .grid--2, .grid--3, .split { grid-template-columns: minmax(0, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .split { gap: 32px; }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section__aside { text-align: left; }
}

/* --- 02. Герой --- */

.hero {
  position: relative; width: 100%; overflow: hidden; background: var(--bg);
  /* Пропорция макета — 16:9. На широком мониторе она дала бы высоту 1080,
     и плашки дат ушли бы за пределы видимой области, поэтому потолок ниже:
     900 px, но не выше 88% высоты окна — чтобы низ героя всегда был виден. */
  height: min(56.25vw, 88vh, 900px);
  min-height: 640px;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__gradient {
  position: absolute; inset: 0;
  /* Верхняя вуаль — под шапку: её правая часть лежит на светлой части кадра.
     Ниже работает прежняя боковая растяжка под заголовок. */
  background:
    linear-gradient(180deg, rgba(11,12,16,0.6) 0%, rgba(11,12,16,0.25) 18%, rgba(11,12,16,0) 40%),
    linear-gradient(90deg, #0B0C10 0%, #0B0C10 26%, rgba(11,12,16,0.82) 52%, rgba(11,12,16,0.45) 68%, rgba(11,12,16,0) 80%);
}
/* Рамка ширины макета: всё, что в макете прижато к краю канвы 1440,
   на широком экране прижимается к контейнеру, а не к краю монитора. */
.hero__frame {
  position: absolute; inset: 0;
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin: 0 auto; padding: 0 var(--gutter);
}
.hero__frame { padding: 0 var(--gutter); }
/* Знак-вымпел: правая часть кадра, по вертикальному центру. */
/* Монограмма знака — тем же шрифтом, что и заголовки. */
.hero__pennant-mark {
  font-family: var(--font-head); font-weight: 800; font-size: 33px;
  letter-spacing: 0.02em; fill: #FFFFFF;
}
.hero__pennant { position: absolute; right: 110px; top: 50%; transform: translateY(-50%); width: 151px; height: 189px; }
.hero__badges { position: absolute; right: var(--gutter); bottom: 40px; display: flex; align-items: stretch; gap: 12px; z-index: 2; }
.hero__badge { padding: 18px 22px; background: rgba(11, 12, 16, 0.82); display: flex; flex-direction: column; gap: 6px; }
.hero__badge--accent { background: var(--scarlet); }
.hero__badge--accent .t-over { color: #FFD5DD; }
.hero__badge-value { font-family: var(--font-head); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.hero__badge--accent .hero__badge-value { font-weight: 800; color: #FFFFFF; }
.hero__content { position: absolute; inset: 0; display: flex; align-items: center; }
/* Поля сетки герой берёт общие: заголовок стоит под знаком в шапке */
.hero__presents { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.hero__presents-text { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-400); }
.hero__title {
  font-family: var(--font-head); font-weight: 800; font-size: 56px; line-height: 1.12;
  letter-spacing: -0.035em; text-shadow: 0 2px 24px rgba(11, 12, 16, 0.9); margin: 0 0 30px;
}
.hero__title span { display: block; }
.hero__cta { display: flex; align-items: center; gap: 14px; }

@media (max-width: 1199px) {
  .hero__pennant { width: 104px; height: 130px; right: 32px; }
  .hero__badges { display: none; }
  .hero__title { font-size: 40px; }
}
@media (max-width: 767px) {
  /* На телефоне герой перестаёт быть слоёным: фон уходит вниз подложкой,
     а текст течёт обычным потоком — иначе абсолютный блок налезает на секции. */
  .hero { height: auto; min-height: 0; }
  .hero__frame { position: static; padding: 0; max-width: none; }
  .hero__content { position: static; padding: 48px 0 40px; }
  .hero__content .wrap { padding-left: var(--gutter-mobile); padding-right: var(--gutter-mobile); }
  .hero__bg { position: absolute; top: 0; left: 0; height: 55%; }
  .hero__gradient { height: 100%; }
  /* Разбивка на строки из макета в 375 не влезает — строки ложатся сами. */
  .hero__title span { display: inline; }
  /* Шапка лежит поверх кадра — освобождаем под неё место сверху */
  .hero__content { position: relative; padding: 124px 0 56px; }
  .hero__gradient { background: linear-gradient(180deg, rgba(11,12,16,0.55) 0%, rgba(11,12,16,0.94) 55%, #0B0C10 100%); }
  .hero__title { font-size: 32px; line-height: 1.15; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__pennant { display: none; }
}

/* --- 03. Цифры --- */

.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.numbers__item { padding: 30px 28px; background: var(--surface); border-top: 3px solid var(--scarlet); display: flex; flex-direction: column; gap: 12px; }
.numbers__value {
  font-family: var(--font-head); font-weight: 800; font-size: 52px; line-height: 1;
  letter-spacing: -0.035em; font-variant-numeric: tabular-nums;
}
.numbers__label { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); }
.numbers--light .numbers__item { background: var(--surface-light); padding: 28px 26px; }
.numbers--light .numbers__value { font-size: 40px; }
.numbers--light .numbers__label { font-size: 16px; letter-spacing: normal; text-transform: none; color: var(--ink-dark-600); }

@media (max-width: 1023px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .numbers { grid-template-columns: minmax(0, 1fr); } .numbers__value { font-size: 40px; } }

/* --- 04. Дисциплины --- */

.disc { padding: 40px 36px; background: var(--surface); display: flex; flex-direction: column; gap: 22px; }
.disc__title { display: flex; flex-direction: column; gap: 8px; }
.disc__name { font-size: 32px; line-height: 1.15; }
.disc__game { font-size: 17px; color: var(--scarlet-light); font-style: italic; }
.disc__specs { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--disabled); font-size: 17px; line-height: 1.5; color: var(--ink-200); }

/* --- 07. Три шага --- */

.step__num { font-family: var(--font-head); font-weight: 800; font-size: 34px; line-height: 1; color: var(--scarlet); }
.callout { margin-top: 20px; padding: 32px 34px; border: 1px solid var(--scarlet); display: flex; align-items: baseline; gap: 24px; }
.callout__title { white-space: nowrap; }
@media (max-width: 767px) { .callout { flex-direction: column; gap: 14px; } .callout__title { white-space: normal; } }

/* --- 08. Призыв --- */

.cta { background: var(--scarlet); }
.cta__inner { padding: 76px 40px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.cta__title { font-family: var(--font-head); font-weight: 800; font-size: 54px; letter-spacing: -0.035em; color: #FFFFFF; margin: 0; }
.cta__text { font-size: 19px; line-height: 1.6; color: #FFE3E8; max-width: 720px; }
.cta__actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.cta__btn--white { background: #FFFFFF; color: var(--bg); }
.cta__btn--white:hover { background: #FFFFFF; color: var(--bg); opacity: 0.9; }
.cta__btn--outline { background: transparent; border: 1px solid rgba(255, 255, 255, 0.6); color: #FFFFFF; font-weight: 500; }
.cta__btn--outline:hover { border-color: #FFFFFF; color: #FFFFFF; }
.cta__req { font-size: 15px; line-height: 1.5; color: #FFD5DD; max-width: 820px; }
@media (max-width: 767px) {
  .cta__inner { padding: 48px 20px; }
  /* «Зарегистрироваться» — одно длинное слово: на 360 px при 30 px оно шире экрана
     и растягивало страницу по горизонтали. */
  .cta__title { font-size: 26px; }
  .cta__actions { flex-direction: column; align-self: stretch; }
}

/* --- 09. Календарь --- */

.timeline { display: flex; align-items: stretch; gap: 6px; }
.timeline__item { display: flex; flex-direction: column; gap: 14px; }
.timeline__bar { height: 8px; background: #4A4C55; }
.timeline__bar--accent { background: var(--scarlet); }
.timeline__bar--light { background: var(--scarlet-light); }
.timeline__month { font-family: var(--font-mono); font-size: 15px; }
.timeline__text { font-size: 16px; line-height: 1.45; color: var(--ink-400); }
@media (max-width: 1023px) {
  .timeline { flex-direction: column; gap: 20px; }
  .timeline__item { flex: none !important; }
  .timeline__bar { width: 64px; }
}

/* --- 10. Сетка --- */

.switch { display: flex; border: 1px solid var(--disabled); }
.switch__item { padding: 12px 22px; font-size: 15px; color: var(--ink-400); }
.switch__item--active { background: #FFFFFF; color: var(--bg); font-weight: 600; }
.tabs { display: flex; gap: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--disabled); font-size: 16px; }
.tabs__item { color: var(--ink-500); }
.tabs__item--active { font-weight: 600; color: var(--ink); padding-bottom: 14px; margin-bottom: -17px; border-bottom: 2px solid var(--scarlet); }
.tabs__aside { margin-left: auto; color: var(--ink-500); }
.empty { margin-top: 26px; padding: 74px 40px; background: var(--surface); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
@media (max-width: 767px) { .tabs { overflow-x: auto; } .tabs__aside { display: none; } }

/* --- 11. География --- */

.geo { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
.geo__map { height: 420px; background: #14151A; border: 1px solid var(--disabled); display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.geo__side { padding: 34px 30px; background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.geo__stats { display: flex; flex-direction: column; gap: 16px; }
.geo__value { font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.geo__note { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid var(--disabled); font-size: 16px; line-height: 1.5; color: var(--ink-400); }
@media (max-width: 1023px) { .geo { grid-template-columns: minmax(0, 1fr); } .geo__map { height: 280px; } }

/* --- 12. Зачёты --- */

.rows__item { display: grid; grid-template-columns: 340px 1fr; gap: 40px; padding: 28px 0; border-top: 1px solid var(--disabled); font-size: 18px; line-height: 1.55; }
.rows__item:last-child { border-bottom: 1px solid var(--disabled); }
@media (max-width: 767px) { .rows__item { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* --- 13. Фотографии --- */

.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 14px; }
.photos__item { overflow: hidden; }
.photos__item img { width: 100%; height: 100%; object-fit: cover; }
.photos__item--big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 767px) {
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .photos__item--big { grid-column: span 2; grid-row: span 1; }
}

/* --- 14. Родителям --- */

.parents__col { display: flex; flex-direction: column; gap: 18px; }
.parents__list { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.55; color: #2A2724; }
.parents__item { padding: 22px 24px; background: var(--surface-light); border-left: 3px solid var(--scarlet); }
.spec { width: 100%; border-collapse: collapse; border-top: 2px solid var(--bg); }
.spec td { padding: 16px 0; font-size: 16px; line-height: 1.45; color: #2A2724; border-bottom: 1px solid #D8D3CC; vertical-align: top; }
.spec td:first-child { width: 200px; padding-right: 20px; font-weight: 600; color: var(--ink-dark); }
.docs { margin-top: 44px; padding-top: 34px; border-top: 1px solid #D8D3CC; }
.docs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.docs__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.docs__item { padding: 22px; background: var(--surface-light); border-top: 3px solid var(--bg); font-size: 16px; line-height: 1.4; color: var(--ink-dark); }
.docs__item:hover { color: var(--scarlet-hover); }
.docs__item--form { background: #E9E5E0; border-top-color: var(--scarlet); }
@media (max-width: 1023px) { .docs__grid, .docs__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .docs__grid, .docs__grid--2 { grid-template-columns: minmax(0, 1fr); } .spec td:first-child { width: 140px; } }

/* --- 16–17. Оператор и основатели --- */

.operator__title { font-size: 42px; line-height: 1.14; margin: 18px 0 0; }
.operator__title img { display: inline-block; vertical-align: baseline; margin-right: 14px; }
.operator__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.operator__stat { padding: 22px 24px; background: var(--bg-light); display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--ink-dark-600); }
.operator__num { font-family: var(--font-head); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -0.03em; color: var(--ink-dark); }
.operator__text { display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.65; color: #2A2724; }
.operator__photo { height: 240px; overflow: hidden; margin-top: 8px; }
.operator__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder { background: var(--bg-light); display: flex; flex-direction: column; }
/* Карточки не растягиваются на всю ширину: четыре портрета по 220 px
   стоят слева, а не расползаются по контейнеру. */
.founders__grid { display: grid; grid-template-columns: repeat(4, 220px); gap: 20px; justify-content: start; }

@media (max-width: 1023px) { .founders__grid { grid-template-columns: repeat(2, minmax(0, 220px)); } }
@media (max-width: 599px) { .founders__grid { grid-template-columns: minmax(0, 1fr); } }

/* Портретная пропорция: люди на снимке стоят, а не лежат. */
.founder__photo {
  aspect-ratio: 3 / 4;
  background: repeating-linear-gradient(118deg, #EFECE7 0 14px, #E7E3DD 14px 28px);
  display: flex; align-items: flex-end; padding: 20px; overflow: hidden;
}
/* Со снимком отступ не нужен: он оставлял поля и полосатую подложку по краям.
   Padding остаётся только у пустой карточки — под подпись «фото на площадке». */
.founder__photo--filled { padding: 0; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder__body { padding: 26px 28px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.founder--empty { border: 1px dashed #C8C2BA; justify-content: center; gap: 12px; padding: 30px 28px; }

/* --- 18. Вопросы --- */

.faq__item { padding: 26px 0; border-top: 1px solid var(--disabled); }
.faq__item:last-child { border-bottom: 1px solid var(--disabled); }
.faq__q { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__sign { font-size: 24px; color: var(--ink-500); line-height: 1; }
.faq__sign::before { content: '+'; }
.faq__item[open] .faq__sign { color: var(--scarlet); }
.faq__item[open] .faq__sign::before { content: '−'; }
.faq__a { margin-top: 16px; font-size: 18px; line-height: 1.6; max-width: 900px; }

/* --- 19–20. Партнёрам и контакты --- */

.partners__cta { margin-top: 32px; }
.contacts { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 240px; gap: 40px; align-items: start; }
.contacts__people { display: flex; flex-direction: column; gap: 22px; }
.contacts__person, .contacts__mail { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.contacts__mail { padding-top: 20px; border-top: 1px solid var(--disabled); }
.contacts__name { font-size: 19px; font-weight: 600; }
.contacts__phone { font-family: var(--font-mono); font-size: 18px; color: var(--ink); }
.contacts__social { display: flex; gap: 20px; font-size: 17px; }
.contacts__venues { display: flex; flex-direction: column; gap: 14px; }
.contacts__venue-list { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.45; }
.contacts__venue { display: flex; flex-direction: column; gap: 4px; }
.contacts__venue-name { color: var(--ink); }
.contacts__qr { padding: 22px; background: #FFFFFF; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ink-dark-600); justify-self: start; }
@media (max-width: 1023px) { .contacts { grid-template-columns: minmax(0, 1fr); } }

/* --- Подвал --- */

.footer { background: #07080B; border-top: 1px solid var(--border); padding: 60px 0 40px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 0.63fr)); gap: 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 22px; }
.footer__operators { display: flex; align-items: center; gap: 28px; }
.footer__fks { filter: brightness(0) invert(1); opacity: 0.8; }
.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.footer__col a { color: var(--ink-400); }
.footer__col a:hover { color: var(--ink); }
.footer__legal { margin-top: 44px; padding-top: 26px; border-top: 1px solid #1A1C21; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.6; color: var(--ink-600); }
.footer__legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal-links a { color: var(--ink-500); }
@media (max-width: 1023px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
@media (max-width: 599px) { .footer__top { grid-template-columns: minmax(0, 1fr); } }

/* --- Правки после первого просмотра --- */

/* Заголовок «Не турнир на один день, а сезон» держим в одну строку на десктопе. */
.t-nowrap { white-space: nowrap; }
@media (max-width: 1023px) { .t-nowrap { white-space: normal; } }

/* Переключатель дисциплин и вкладки — кнопки, а не текст. */
.switch__item, .tabs__item {
  background: none; border: 0; cursor: pointer; font-family: inherit;
  transition: background var(--t-fast), color var(--t-fast);
}
.switch__item:hover { color: var(--ink); }
.switch__item--active:hover { color: var(--bg); }
.tabs__item { padding: 0 0 14px; margin-bottom: -17px; border-bottom: 2px solid transparent; }
.tabs__item:hover { color: var(--ink); }

/* --- Просмотр фотографий --- */

.photos__item { padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.photos__item img { transition: opacity var(--t-fast); }
.photos__item:hover img { opacity: 0.82; }

.lightbox {
  position: fixed; inset: 0; z-index: 60;
  /* display: flex ниже перебивает атрибут hidden, поэтому гасим окно явно. */
  background: rgba(5, 7, 10, 0.94);
  display: flex; align-items: center; justify-content: center; gap: 20px;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; gap: 16px; max-width: min(1160px, 100%); max-height: 100%; }
.lightbox__figure img { max-height: calc(100vh - 180px); width: auto; margin: 0 auto; object-fit: contain; }
.lightbox__caption { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; font-size: 16px; color: var(--ink-200); }
.lightbox__nav, .lightbox__close {
  background: none; border: 1px solid var(--border-strong); color: var(--ink);
  width: 52px; height: 52px; flex-shrink: 0; cursor: pointer; font-size: 20px; line-height: 1;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.lightbox__nav:hover, .lightbox__close:hover { border-color: var(--ink); background: var(--surface); }
.lightbox__close { position: absolute; top: 24px; right: 24px; }

@media (max-width: 767px) {
  .lightbox { padding: 16px; gap: 8px; }
  .lightbox__nav { position: absolute; bottom: 24px; }
  .lightbox__nav--prev { left: 16px; }
  .lightbox__nav--next { right: 16px; }
  .lightbox__figure img { max-height: calc(100vh - 220px); }
  .lightbox__caption { flex-direction: column; gap: 6px; }
}

/* Длинные русские слова в крупных заголовках не должны растягивать страницу. */
@media (max-width: 767px) {
  .t-hero, .t-h1, .t-h2, .cta__title, .hero__title { overflow-wrap: break-word; }
}

/* --- Страница документов --- */

.docs__grid--dark { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.docs__grid--dark .doc-tile {
  padding: 24px 22px; background: var(--surface); border-top: 3px solid var(--scarlet);
  display: flex; flex-direction: column; gap: 10px; color: var(--ink);
  transition: background var(--t-fast);
}
.docs__grid--dark .doc-tile:hover { background: #1E1D22; color: var(--ink); }
.doc-tile--form { border-top-color: var(--cyan); }
.doc-tile__title { font-size: 16px; line-height: 1.4; }
.doc-tile--pending { border-top-color: var(--border-strong); opacity: 0.65; cursor: default; }

/* --- География: список школ --- */

.geo__empty { max-width: 420px; text-align: center; }
.geo__toggle {
  align-self: flex-start; padding: 0; background: none; border: 0;
  border-bottom: 1px solid var(--scarlet);
  font-size: 17px; font-weight: 500; color: var(--ink); cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.geo__toggle:hover { color: var(--scarlet-light); border-bottom-color: var(--scarlet-light); }

.schools { margin-top: 20px; background: #14151A; border: 1px solid var(--disabled); }
.schools[hidden] { display: none; }
.schools__head, .schools__row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 150px 120px 110px; gap: 20px;
}
.schools__head {
  padding: 16px 26px; border-bottom: 1px solid var(--disabled);
  font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-400);
}
.schools__row { padding: 15px 26px; border-bottom: 1px solid #1E2026; font-size: 17px; align-items: center; }
.schools__num { font-variant-numeric: tabular-nums; color: var(--ink-400); }
.schools__num--value { color: var(--ink); }
.schools__foot {
  padding: 16px 26px; display: flex; justify-content: space-between; gap: 20px;
  font-size: 15px; color: var(--ink-500);
}

/* --- Зачёты: три карточки --- */

.score { background: #14151A; border: 1px solid var(--disabled); border-top: 3px solid var(--scarlet); display: flex; flex-direction: column; }
.score__head { padding: 30px 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.score__title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.score__tag { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-400); }
.score__body { padding: 0 28px 24px; }
.score__body--gap { display: flex; flex-direction: column; gap: 14px; }
.score__foot { margin-top: auto; padding: 16px 28px; border-top: 1px solid var(--disabled); font-size: 15px; line-height: 1.5; color: var(--ink-500); }

.score__table { display: flex; flex-direction: column; }
.score__thead, .score__row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 44px; gap: 12px; }
.score__thead {
  padding-bottom: 10px; border-bottom: 1px solid var(--disabled);
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400);
}
.score__row { padding: 12px 0; font-size: 16px; align-items: center; }
.score__row--line { border-bottom: 1px solid #1E2026; padding: 11px 0; }
.score__row--cutoff { border-bottom: 1px dashed var(--disabled); }
.score__row--out { color: var(--ink-500); }
.score__place { font-variant-numeric: tabular-nums; color: var(--ink-400); }
.score__place--top { color: var(--scarlet-light); font-weight: 600; }
.score__right { text-align: right; font-variant-numeric: tabular-nums; }
.score__points { font-weight: 600; }

.roster { padding: 16px 18px; background: var(--bg); border: 1px solid var(--disabled); display: flex; flex-direction: column; gap: 12px; }
.roster__label { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); }
.roster__chips { display: flex; gap: 6px; }
.roster__chip {
  flex: 1; height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; background: #22242A; color: var(--ink-400);
}
.roster__chip--own { background: var(--scarlet); color: #FFFFFF; font-weight: 600; }

.mass { display: flex; flex-direction: column; gap: 8px; }
.mass__line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 16px; }
.mass__line--dim { color: var(--ink-500); }
.mass__line--dim .score__points { font-weight: 400; }
.mass__bar { height: 10px; background: #22242A; }
.mass__bar i { display: block; height: 10px; background: var(--scarlet); }
.mass__bar i.mass__fill--dim { background: #6B655F; }

/* --- Партнёры --- */

.partner { background: #14151A; border: 1px solid var(--disabled); display: flex; flex-direction: column; }
.partner__logo {
  height: 148px; padding: 0 32px; border-bottom: 1px solid var(--disabled);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px;
}
.partner__plate { padding: 14px 20px; background: #FFFFFF; display: inline-flex; }
.partner__wordmark { font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: 0.04em; }
.partner__body { padding: 26px 32px; display: flex; flex-direction: column; gap: 10px; }
.partner__role { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-400); }
.partner__role--accent { color: var(--scarlet-light); }

.partner-cta {
  margin-top: 20px; padding: 26px 32px; background: #14151A; border: 1px solid var(--disabled);
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: center;
}
.partner-cta__text { display: flex; flex-direction: column; gap: 10px; }
.partner-cta__button { justify-self: end; }

@media (max-width: 1023px) {
  .schools__head { display: none; }
  .schools__row { grid-template-columns: 40px minmax(0, 1fr) 70px; }
  .schools__row span:nth-child(3) { display: none; }
  .partner-cta { grid-template-columns: minmax(0, 1fr); }
  .partner-cta__button { justify-self: start; }
}

/* --- Лига в цифрах: приставная полоса под первым экраном --- */

.figures { padding-top: 18px; padding-bottom: 40px; }
.figures__bar { background: var(--bg); display: flex; align-items: stretch; }
.figures__mark { width: 8px; background: var(--scarlet); flex-shrink: 0; }
.figures__body {
  flex: 1; padding: 34px 40px; display: flex; align-items: center;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.figures__title { display: flex; flex-direction: column; gap: 8px; }
.figures__heading { font-family: var(--font-head); font-weight: 600; font-size: 30px; line-height: 1.15; }
.figures__values { display: flex; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.figures__item { display: flex; flex-direction: column; gap: 8px; }
.figures__value {
  font-family: var(--font-head); font-weight: 800; font-size: 54px; line-height: 1;
  letter-spacing: -0.035em; font-variant-numeric: tabular-nums;
}
.figures__value--accent { color: var(--scarlet-light); }
.figures__label { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); }

/* --- Дисциплины: диагональное разделение --- */

.disciplines { padding-top: 40px; padding-bottom: 76px; }
.split-block { position: relative; height: 560px; overflow: hidden; background: var(--bg); margin-top: 38px; }
.split-block__half { position: absolute; inset: 0; overflow: hidden; }
.split-block__half img { width: 100%; height: 100%; object-fit: cover; }
.split-block__half--left { clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%); background: #16171C; }
.split-block__half--left img { object-position: 46% center; }
.split-block__half--right { clip-path: polygon(58% 0, 100% 0, 100% 100%, 42% 100%); background: #101116; }
.split-block__half--right img { object-position: 54% center; }
/* Алая линия по разрезу */
.split-block__line { position: absolute; inset: 0; clip-path: polygon(58% 0, 58.25% 0, 42.25% 100%, 42% 100%); background: var(--scarlet); }

/* Затемнения поверх фото нет — читаемость держится на тени текста */
.split-block__text {
  position: absolute; top: 0; bottom: 0; width: 46%; padding: 20px 44px 46px;
  display: flex; flex-direction: column; justify-content: space-between;
  text-shadow: 0 2px 10px rgba(11, 12, 16, 0.95), 0 0 28px rgba(11, 12, 16, 0.8);
}
.split-block__text--left { left: 0; }
.split-block__text--right { right: 0; align-items: flex-end; text-align: right; }
.split-block__top { display: flex; flex-direction: column; gap: 14px; }
.split-block__meta { display: flex; align-items: baseline; gap: 14px; font-size: 16px; }
.split-block__text--right .split-block__meta { justify-content: flex-end; }
.split-block__game {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--scarlet-light);
  /* Название дисциплины ложится на пёстрый кадр — тень плотнее, чем у остального текста */
  text-shadow: 0 1px 3px rgba(11, 12, 16, 1), 0 0 14px rgba(11, 12, 16, 0.95);
}
.split-block__specs { display: flex; flex-direction: column; gap: 7px; font-size: 16px; line-height: 1.45; color: var(--ink-200); }
.split-block__bottom { display: flex; align-items: baseline; gap: 18px; }
.split-block__bottom--right { justify-content: flex-end; }
.split-block__title {
  font-family: var(--font-head); font-weight: 800; font-size: 34px; line-height: 1.08;
  text-shadow: 0 2px 12px rgba(11, 12, 16, 0.95), 0 0 34px rgba(11, 12, 16, 0.85);
}
.split-block__format {
  font-family: var(--font-head); font-weight: 800; font-size: 26px;
  color: var(--scarlet-light); white-space: nowrap;
}

/* Слои наведения поверх текста: сами прозрачные, ссылок внутри блока нет */
.split-block__hit { position: absolute; inset: 0; z-index: 2; }
.split-block__hit--left { clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%); }
.split-block__hit--right { clip-path: polygon(58% 0, 100% 0, 100% 100%, 42% 100%); }
.split-block__half img { will-change: transform; }

@media (max-width: 1023px) {
  /* На узком экране диагональ не читается: половины встают друг под другом */
  .split-block { height: auto; display: flex; flex-direction: column; }
  /* Половины встают парами «кадр + подпись», иначе подписи наезжают друг на друга */
  .split-block__half--left { order: 1; }
  .split-block__text--left { order: 2; }
  .split-block__half--right { order: 3; }
  .split-block__text--right { order: 4; }
  .split-block__half, .split-block__line { position: relative; clip-path: none; height: 220px; }
  .split-block__bottom { flex-wrap: wrap; gap: 10px 18px; }
  .split-block__hit { display: none; }
  .split-block__line { display: none; }
  .split-block__text {
    position: relative; width: 100%; padding: 26px 24px; gap: 20px;
    background: rgba(11, 12, 16, 0.86); margin-top: -220px; min-height: 220px;
  }
  .split-block__text--right { align-items: flex-start; text-align: left; }
  .split-block__text--right .split-block__meta, .split-block__bottom--right { justify-content: flex-start; }
  .figures__body { padding: 24px 20px; gap: 24px; }
  .figures__values { gap: 24px; }
  .figures__value { font-size: 40px; }
}

/* --- Почему стоит играть --- */

.reason { padding: 30px 28px; background: var(--surface); display: flex; flex-direction: column; gap: 20px; }
.reason__body { display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 1.5; }
.reason__title { line-height: 1.2; }
/* Слот под Lottie: пунктир и метка снимаются, когда придут анимации */
.reason__icon {
  box-sizing: border-box; width: 72px; height: 72px; border: 1px dashed var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-600); flex-shrink: 0;
}

.parents-bar {
  margin-top: 20px; padding: 32px 36px; background: var(--bg);
  border: 1px solid var(--disabled); border-left: 3px solid var(--scarlet);
  display: grid; grid-template-columns: 74px minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start;
}
.parents-bar__col { display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 1.5; }

@media (max-width: 1023px) {
  .parents-bar { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* --- Внутренние страницы --- */

.page-head { border-bottom: 1px solid var(--border); background: var(--bg); }
.page-head__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.page-head__back { font-size: 16px; color: var(--ink-400); }
.page-head__back:hover { color: var(--ink); }
.page-head__cta { padding: 12px 24px; background: var(--scarlet); color: #FFFFFF; font-weight: 600; }
.page-head__cta:hover { background: var(--scarlet-hover); color: #FFFFFF; }

.page-title { font-family: var(--font-head); font-weight: 600; font-size: 52px; letter-spacing: -0.03em; margin: 0 0 32px; }
.page-title--dark { color: var(--ink-dark); }
.page--light { background: var(--bg-light); }

/* --- Ряд карточек-переходов --- */

.section--links { padding-top: 64px; padding-bottom: 72px; }
.links-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.links-row__card {
  padding: 26px; background: #14151A; border: 1px solid var(--disabled);
  border-top: 3px solid var(--scarlet); display: flex; flex-direction: column; gap: 10px;
  color: var(--ink); transition: border-color var(--t-fast);
}
.links-row__card:hover { border-color: var(--scarlet); color: var(--ink); }
.links-row__title { font-family: var(--font-head); font-weight: 600; font-size: 20px; }
.links-row__text { font-size: 16px; line-height: 1.45; color: var(--ink-400); }

@media (max-width: 1023px) {
  .links-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-title { font-size: 34px; }
}
@media (max-width: 599px) {
  .links-row { grid-template-columns: minmax(0, 1fr); }
}
