/* Главная — «афиша боя». Ритм полей: ночь (первый экран) → бумага (цифры) → ночь (календарь
   афиш) → серое (этапы турнира) → бумага (фото) → синее табло (рейтинг) → бумага (новости, клубы) → три цветных входа.
   Общие знаки (шрифт, скос, лента, канаты) — afisha.css; здесь только секции главной. Правила — docs/design.md. */

main:has(.hm-doors) + .footer { margin-top: 0; }

/* ---------- Заголовки секций ---------- */
.hm-h { margin: 0; font: 800 clamp(44px, 6.2vw, 96px)/.88 var(--display); letter-spacing: .004em; text-transform: uppercase; }
.hm-h a { color: inherit; text-decoration: none; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 .06em no-repeat; transition: background-size .35s var(--ease-out); }
.hm-h a:hover { color: inherit; background-size: 100% .06em; }
.hm-h-s { font-size: clamp(34px, 4vw, 56px); line-height: .92; }
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; margin-bottom: 40px; }
.hm-sub { margin: 14px 0 0; max-width: 560px; font-size: var(--fs-l); color: var(--ink2); }
.hm-more { display: inline-flex; align-items: center; gap: 10px; font: 700 var(--fs-xl)/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-decoration: none; white-space: nowrap; padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; }
.hm-more::after { content: "\2192"; font-family: var(--font); font-weight: 400; transition: transform var(--dur) var(--ease-out); }
.hm-more:hover { color: var(--red-ink); }
@media (hover: hover) and (pointer: fine) { .hm-more:hover::after { transform: translateX(5px); } }

/* ---------- Первый экран ---------- */
.hm-hero { position: relative; isolation: isolate; overflow: clip; background: var(--night); color: var(--on-night); }
/* Низ первого экрана — лента двух углов ринга, как над подвалом: ночь закрыта, дальше бумага */
.hm-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 6px; background: var(--duo); pointer-events: none; }
.hm-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* Зерно: одна неподвижная плитка шума поверх света */
.hm-bg::after { content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.hm-glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.hm-glow-red { left: -16%; bottom: -62%; width: 56%; aspect-ratio: 1; background: var(--red); opacity: .34; }
.hm-glow-blue { right: -6%; top: -60%; width: 66%; aspect-ratio: 1; background: var(--brand); opacity: .7; }
.hm-ropes { position: absolute; left: -5%; right: -5%; top: 58%; height: 92px; background: var(--ropes); transform: rotate(-3deg); opacity: .9;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 34%, rgba(0, 0, 0, .15) 70%, #000 100%); mask-image: linear-gradient(90deg, #000 0, #000 34%, rgba(0, 0, 0, .15) 70%, #000 100%); }
.hm-hall { position: absolute; inset: 0; }
.hm-hall img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 40%; opacity: .34;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 30%, #000 80%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 30%, #000 80%); }
/* Афиши нет — зал вида спорта открыт справа в косом окне */
.has-hall .hm-hall { left: 46%; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.has-hall .hm-hall img { opacity: .95; object-position: 60% 40%; -webkit-mask-image: none; mask-image: none; }
.has-hall .hm-hall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 13, 38, .9), rgba(11, 13, 38, .35) 38%, rgba(11, 13, 38, 0) 62%), linear-gradient(0deg, rgba(11, 13, 38, .6), rgba(11, 13, 38, 0) 40%); }

.hm-in { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center;
  min-height: min(820px, calc(100dvh - var(--hdr) - 32px)); padding-top: 56px; padding-bottom: 72px; }
.hm-text { grid-column: 1 / span 9; grid-row: 1; position: relative; z-index: 2; min-width: 0; }
.hm-k { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 26px; font: 700 var(--fs-xl)/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); }
.hm-k b { color: #fff; font-weight: 700; }
.hm-tag { display: inline-block; padding: 8px 20px 7px 16px; background: var(--red); color: #fff; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.hm-title { margin: 0; max-width: 6.4em; font: 900 clamp(60px, 10.6vw, 170px)/.82 var(--display); letter-spacing: 0; text-transform: uppercase; text-wrap: balance; }
.hm-w { display: inline-block; overflow: hidden; vertical-align: top; padding-top: .06em; margin-top: -.06em; }
.hm-w > span { display: inline-block; }
/* Первые два слова — сплошным светлым, вторая часть — белым: два тона афиши без контура (контур плохо читался, 13.11) */
.hm-w:nth-child(-n+2) > span { color: var(--on-night-3); }
.hm-title a { color: inherit; text-decoration: none; }
.hm-lead { margin: 28px 0 0; max-width: 460px; font-size: var(--fs-xl); line-height: 1.45; color: var(--on-night-2); }
.hm-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.hm-acts .btn { min-height: 56px; padding: 12px 30px; font-size: var(--fs-m); }
.hm-hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hm-hero .btn-outline:hover { background: #fff; border-color: #fff; color: var(--night); }

/* Три косые полосы с фото */
.hm-slabs { grid-column: 7 / -1; grid-row: 1; align-self: stretch; position: relative; z-index: 1; display: flex; gap: 14px; margin: -56px -9% -72px 0; transform: skewX(-12deg); transform-origin: 50% 100%; }
.hm-slab { position: relative; flex: 1 1 0; overflow: hidden; background: var(--night-2); }
.hm-slab-1 { margin: 9% 0 0; } .hm-slab-2 { margin: 0 0 12%; } .hm-slab-3 { margin: 16% 0 0; }
.hm-slab i { position: absolute; inset: -8% -46%; background: center / cover no-repeat; transform: skewX(12deg); }
.hm-slab-2 i { filter: grayscale(1) contrast(1.15); }
.hm-slab::after { content: ""; position: absolute; inset: 0; }
.hm-slab-1::after { background: linear-gradient(180deg, rgba(227, 30, 37, .1), rgba(11, 13, 38, .45)); }
.hm-slab-2::after { background: linear-gradient(180deg, var(--brand) 10%, var(--red)); mix-blend-mode: multiply; opacity: .7; }
.hm-slab-3::after { background: linear-gradient(180deg, rgba(57, 49, 134, .15), rgba(11, 13, 38, .75)); }
.hm-slabs.is-plain .hm-slab-1 { background: var(--red); } .hm-slabs.is-plain .hm-slab-2 { background: var(--paper); } .hm-slabs.is-plain .hm-slab-3 { background: var(--brand); }
.hm-slabs.is-plain .hm-slab::after { background: var(--weave); mix-blend-mode: normal; opacity: 1; }
/* Затемнение слева: заголовок заходит на полосы и остаётся читаемым */
.hm-slabs::after { content: ""; position: absolute; inset: 0 34% 0 -2px; background: linear-gradient(90deg, rgba(11, 13, 38, .92) 0, rgba(11, 13, 38, .4) 42%, rgba(11, 13, 38, 0)); pointer-events: none; }

/* Турнир на первом экране */
.is-event .hm-text { grid-column: 1 / span 7; }
.is-event .hm-title { max-width: none; font-size: clamp(46px, 6.3vw, 104px); line-height: .88; }
.is-event:not(.has-poster) .hm-text { grid-column: 1 / span 8; }
.hm-hero .hhero-state .status { background: rgba(255, 255, 255, .14); color: #fff; }
.hm-ticket { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin-top: 30px; max-width: 760px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--night-line); backdrop-filter: blur(6px); }
.hm-ticket .tk-date { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-content: center; column-gap: 12px; padding: 14px 34px 12px 20px; background: var(--red); color: #fff;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%); }
.hm-ticket .tk-d { grid-row: 1 / span 2; font: 900 92px/.8 var(--display); }
.hm-ticket .tk-m { align-self: end; font: 800 30px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.hm-ticket .tk-w { align-self: start; margin-top: 4px; font: 700 var(--fs-l)/1 var(--display); letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.hm-ticket .tk-where { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 14px 20px; }
.hm-ticket .tk-time { font: 800 30px/1 var(--display); letter-spacing: .03em; }
.hm-ticket .tk-time span { font: 700 var(--fs-m)/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-3); margin-left: 4px; }
.hm-ticket .tk-place { font-weight: 600; font-size: var(--fs-l); line-height: 1.25; color: #fff; }
.hm-ticket .tk-addr { font-size: var(--fs-s); color: var(--on-night-2); }
.hm-ticket .tk-addr a { color: #fff; }
.hm-ticket .tk-stats { margin: 0; display: flex; align-items: center; padding: 14px 22px; border-left: 2px dashed var(--night-line); }
.hm-ticket .tk-stats dt { font: 700 var(--fs-m)/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-3); }
.hm-ticket .tk-stats dd { margin: 6px 0 0; font: 800 34px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.hm-ticket .tk-stats dd small { display: block; margin-top: 6px; font: 400 var(--fs-s)/1.2 var(--font); letter-spacing: 0; text-transform: none; color: var(--on-night-2); }
.hm-ticket .tk-stats .hot dd { color: #ff8085; }
.hm-poster { grid-column: 9 / -1; grid-row: 1; position: relative; z-index: 1; justify-self: center; display: block; max-width: 400px; transform: rotate(2.5deg);
  box-shadow: -14px 14px 0 var(--red), 14px -14px 0 var(--brand), 0 40px 60px -30px rgba(0, 0, 0, .8); transition: transform .4s var(--ease-out); }
.hm-poster img { display: block; width: 100%; max-height: 600px; object-fit: contain; background: var(--night-2); }
.hm-poster.is-wide { grid-column: 8 / -1; max-width: 560px; }
@media (hover: hover) and (pointer: fine) { .hm-poster:hover { transform: rotate(0deg) scale(1.02); } }
.is-event .hm-slabs { grid-column: 9 / -1; margin-right: -14%; opacity: .9; }

/* ---------- Цифры и «О ЦРЕ» ---------- */
.hm-about { padding: 112px 0 104px; background: var(--paper); overflow: clip; }
.hm-about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 72px; align-items: end; }
.hm-nums { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.hm-nums > div { min-width: 0; padding-top: 16px; border-top: 3px solid var(--ink); }
.hm-nums dd { margin: 0; font: 900 clamp(60px, 7vw, 104px)/.82 var(--display); letter-spacing: 0; }
.hm-nums dt { margin-top: 12px; font: 700 var(--fs-xl)/1.1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
.hm-nums .hm-num-main { grid-column: 1 / -1; padding-top: 0; border-top: 0; }
.hm-num-main dd { font-size: clamp(112px, 20vw, 300px); line-height: .76; letter-spacing: -.01em; color: var(--red); white-space: nowrap; margin-left: -.03em; }
.hm-num-main dt { margin-top: 18px; max-width: 520px; font-size: clamp(22px, 2.2vw, 30px); color: var(--ink); }
.hm-about-text .kicker { margin-bottom: 14px; }
.hm-about-text .hm-h { font-size: clamp(40px, 4.6vw, 68px); margin-bottom: 24px; }
.hm-about-text p { margin: 0 0 14px; font-size: var(--fs-l); line-height: 1.55; color: var(--ink2); }
.hm-about-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; }

/* ---------- Календарь: лента афиш на ночном поле ---------- */
.hm-cal { position: relative; isolation: isolate; padding: 96px 0 104px; background: var(--night); color: #fff; overflow: clip; }
.hm-cal::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--weave), var(--arena-light); }
.hm-cal::after { content: ""; position: absolute; left: 0; right: 0; top: 150px; height: 92px; z-index: -1; background: var(--ropes); opacity: .55; transform: rotate(1.5deg); }
.hm-cal .hm-more { color: #fff; } .hm-cal .hm-more:hover { color: #fff; }
.hm-rail { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .4) transparent;
  padding: 8px max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))) 22px; scroll-padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); }
.tcal-rail { display: flex; gap: 22px; width: max-content; min-width: 100%; }
.tcal-rail .tc { flex: 1 0 296px; max-width: 400px; scroll-snap-align: start; background: #14173f; }
.hm-cal .empty { background: rgba(255, 255, 255, .08); color: #fff; }
.hm-cal-more { display: none; }
/* Компьютер: четыре афиши в ряд без прокрутки вбок, обложки ниже (10:9 вместо 3:4); пятая и дальше — в календаре, ссылка под рядом */
@media (min-width: 1100px) {
  .hm-rail { overflow: visible; scroll-snap-type: none; max-width: var(--wrap); margin: 0 auto; padding: 8px var(--gut) 0; }
  .tcal-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; width: auto; min-width: 0; }
  .tcal-rail .tc { max-width: none; }
  .tcal.tcal-rail .tc:nth-child(n+5) { display: none; }
  .tcal:not(.is-list).tcal-rail .tc-pic .cover, .tcal:not(.is-list).tcal-rail .tc-pic .slot { aspect-ratio: 10 / 9; }
  .tcal:not(.is-list).tcal-rail .tc-t { font-size: 26px; }
  .tcal:not(.is-list).tcal-rail .tc-day { font-size: 58px; }
  .hm-cal-more { display: flex; justify-content: flex-end; margin-top: 28px; }
  .hm-cal-more.is-few { display: none; }
}
/* Планшет и телефон: тоже без прокрутки вбок и не больше четырёх афиш; остальные — в календаре, ссылка под списком.
   Планшет — две колонки; телефон — столбец компактных карточек: небольшая афиша слева, справа дата, название,
   состояние и кнопка (название и афиша — ссылки на турнир, «Подробнее» не нужна) */
@media (max-width: 1099px) {
  .hm-rail { overflow: visible; scroll-snap-type: none; padding: 8px var(--gut) 0; }
  .tcal-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: auto; min-width: 0; }
  .tcal-rail .tc { max-width: none; }
  .tcal.tcal-rail .tc:nth-child(n+5) { display: none; }
  .tcal:not(.is-list).tcal-rail .tc-pic .cover, .tcal:not(.is-list).tcal-rail .tc-pic .slot { aspect-ratio: 10 / 9; }
  .hm-cal-more { display: flex; justify-content: flex-end; margin-top: 24px; }
}
@media (max-width: 640px) {
  .hm-cal { padding: 64px 0 72px; }
  .hm-rail { padding: 4px var(--gut) 0; }
  .tcal-rail { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tcal:not(.is-list).tcal-rail .tc { grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto auto 1fr; grid-template-areas: "pic date" "pic body" "pic acts"; }
  .tcal:not(.is-list).tcal-rail .tc-pic { grid-row: 1 / -1; align-self: stretch; }
  .tcal:not(.is-list).tcal-rail .tc-pic .cover, .tcal:not(.is-list).tcal-rail .tc-pic .slot { aspect-ratio: auto; width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
  .tcal:not(.is-list).tcal-rail .tc-date { grid-area: date; align-self: start; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0;
    padding: 7px 22px 6px 12px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
  .tcal:not(.is-list).tcal-rail .tc-day { font-size: 30px; line-height: .9; }
  .tcal:not(.is-list).tcal-rail .tc-mon { font-size: 18px; }
  .tcal:not(.is-list).tcal-rail .tc-wd, .tcal:not(.is-list).tcal-rail .tc-when { display: none; }
  .tcal:not(.is-list).tcal-rail .tc-time { margin: 0; font-size: var(--fs-m); white-space: nowrap; }
  .tcal:not(.is-list).tcal-rail .tc-body { padding: 10px 14px 0; }
  .tcal:not(.is-list).tcal-rail .tc-k { font-size: var(--fs-s); }
  .tcal:not(.is-list).tcal-rail .tc-t { margin-top: 4px; font-size: 21px; line-height: 1; overflow-wrap: break-word; }
  .tcal:not(.is-list).tcal-rail .tc-where { display: none; }
  .tcal:not(.is-list).tcal-rail .tc-state { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; font-size: var(--fs-xs); }
  .tcal:not(.is-list).tcal-rail .tc-note { margin: 0; font-size: var(--fs-s); line-height: 1.3; }
  .tcal:not(.is-list).tcal-rail .tc-acts { align-self: end; padding: 10px 14px 14px; }
  .tcal:not(.is-list).tcal-rail .tc-acts .btn { flex: 0 1 auto; min-height: 40px; padding: 8px 16px; }
  .tcal:not(.is-list).tcal-rail .tc-acts > .lnk.arr { display: none; }
  .hm-cal-more { justify-content: flex-start; margin-top: 28px; }
}

/* ---------- Турнир от заявки до медали: четыре раунда ---------- */
.hm-how { padding: 104px 0; background: var(--mist); }
.hm-rounds { list-style: none; margin: 0; padding: 0; counter-reset: rnd; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--ink); }
.hm-rounds li { counter-increment: rnd; position: relative; padding: 0 28px 4px 0; }
.hm-rounds li + li { padding-left: 28px; border-left: 1px solid var(--line2); }
.hm-rounds li::before { content: counter(rnd); display: block; margin: 18px 0 6px; font: 900 clamp(110px, 12vw, 176px)/.8 var(--display); color: var(--ink);
  /* Сплошная цифра с переходом (маска вдвое выше цифры: внизу — переход, вверху — в полную силу); при наведении маска
     съезжает и цифра наливается целиком. Раньше был контур — у него видны внутренние линии букв */
  -webkit-mask: linear-gradient(180deg, #000 50%, rgba(0, 0, 0, .3)) 0 100% / 100% 200% no-repeat;
  mask: linear-gradient(180deg, #000 50%, rgba(0, 0, 0, .3)) 0 100% / 100% 200% no-repeat;
  transition: -webkit-mask-position .35s var(--ease-out), mask-position .35s var(--ease-out); }
.hm-rounds li:nth-child(odd)::before { color: var(--red); }
.hm-rounds li:nth-child(even)::before { color: var(--blue); }
@media (hover: hover) and (pointer: fine) {
  .hm-rounds li:hover::before { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
.hm-round-t { display: block; font: 800 38px/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.hm-rounds p { margin: 10px 0 0; color: var(--ink2); font-size: var(--fs-base); line-height: 1.5; max-width: 260px; }

/* ---------- Как это было ---------- */
.hm-shots { padding: 104px 0 96px; }
.hm-shots-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(0, auto); gap: 8px; }
.hm-shot-main { grid-column: 1 / span 8; grid-row: 1 / span 2; }
.hm-shots-grid.is-one .hm-shot-main { grid-column: 1 / -1; }
.hm-shot { grid-column: span 2; position: relative; display: block; overflow: hidden; background: var(--slot); }
.hm-shot-main img { height: 100%; aspect-ratio: 3 / 2; }
.hm-shot img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.hm-shot img, .hm-shot-main img { transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .hm-shot:hover img, .hm-shot-main:hover img { transform: scale(1.045); } }
.hm-shot::after, .hm-shot-main::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--duo); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease-out); z-index: 1; }
.hm-shot:hover::after, .hm-shot-main:hover::after { transform: scaleX(1); }

/* ---------- Рейтинг: табло ---------- */
.hm-rank { position: relative; isolation: isolate; padding: 104px 0; background: var(--brand); color: #fff; overflow: clip; }
.hm-rank::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--weave), radial-gradient(70% 120% at 0 100%, rgba(11, 13, 38, .7), rgba(11, 13, 38, 0) 70%), linear-gradient(104deg, rgba(0, 0, 0, 0) 0 calc(100% - 150px), var(--red) calc(100% - 150px) calc(100% - 126px), rgba(0, 0, 0, 0) calc(100% - 126px) calc(100% - 110px), var(--night) calc(100% - 110px) calc(100% - 30px), rgba(0, 0, 0, 0) calc(100% - 30px)); }
.hm-rank .hm-sub { color: var(--on-night-2); }
.hm-rank .hm-more { color: #fff; } .hm-rank .hm-more:hover { color: #fff; }
.hm-podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.hm-pod { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 22px 24px 24px; background: #2b2569; border-top: 6px solid #c9ccd6; overflow: hidden; }
.hm-pod-1 { order: 2; padding-top: 34px; padding-bottom: 44px; background: var(--night); border-top-color: #f0b93a; }
.hm-pod-2 { order: 1; }
.hm-pod-3 { order: 3; border-top-color: #c98a55; }
.hm-pod-pl { position: absolute; right: 10px; top: -.06em; font: 900 clamp(150px, 17vw, 250px)/.8 var(--display); color: rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .22) 20%, rgba(255, 255, 255, .04) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; pointer-events: none; }
.hm-pod-1 .hm-pod-pl { background-image: linear-gradient(180deg, rgba(240, 185, 58, .55) 20%, rgba(240, 185, 58, .08) 90%); }
.hm-pod .medal { margin-bottom: 26px; }
.hm-pod .logo-plate { flex: none; width: 56px; height: 56px; margin-bottom: 12px; }
.hm-pod-n { position: relative; font: 800 clamp(30px, 3.2vw, 46px)/.95 var(--display); letter-spacing: .01em; text-transform: uppercase; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.hm-pod-n:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: var(--red); }
.hm-pod-c { position: relative; margin-top: 8px; font-size: var(--fs-m); color: var(--on-night-2); }
.hm-pod-pt { position: relative; margin-top: 22px; font: 700 var(--fs-l)/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); }
.hm-pod-pt b { font: 900 60px/.8 var(--display); letter-spacing: 0; color: #fff; margin-right: 4px; }
.hm-pod-1 .hm-pod-pt b { font-size: 84px; color: #f6c649; }
.hm-rows { list-style: none; margin: 14px 0 0; padding: 0; columns: 2; column-gap: 14px; }
.hm-rows li { break-inside: avoid; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 64px; padding: 8px 20px 8px 14px; margin-bottom: 4px; background: #2f2872;
  transition: background-color var(--dur) var(--ease); }
.hm-rows li:hover { background: var(--night); }
.hm-row-pl { font: 900 38px/1 var(--display); color: rgba(255, 255, 255, .55); text-align: center; }
.hm-row-who { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
.hm-row-who .logo-plate { flex: none; width: 36px; height: 36px; }  /* логотип клуба — значок, а не на весь ряд */
.hm-row-who a { font-weight: 600; font-size: var(--fs-l); color: #fff; text-decoration: none; }
.hm-row-who a:hover { color: #fff; text-decoration: underline; }
.hm-row-who small { flex-basis: 100%; margin-top: -8px; font-size: var(--fs-s); color: var(--on-night-3); }
.hm-row-pt { font: 900 32px/1 var(--display); white-space: nowrap; }
.hm-row-pt small { font: 700 var(--fs-s)/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-3); }
.hm-rank .logo-plate { background: #fff; }
.hm-series { margin-top: 72px; }
.hm-board + .hm-series { padding-top: 56px; border-top: 1px solid var(--night-line); }
.hm-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px; }
.hm-stages a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px 16px; background: rgba(11, 13, 38, .42); color: #fff; text-decoration: none; border-top: 4px solid rgba(255, 255, 255, .3);
  transition: background-color var(--dur) var(--ease); }
.hm-stages a:hover { background: var(--night); color: #fff; }
.hm-stages .cur a { background: var(--red); border-top-color: #fff; }
.hm-st-k { font: 700 var(--fs-l)/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); }
.hm-st-d { font: 900 44px/.9 var(--display); text-transform: uppercase; }
.hm-st-s { font-size: var(--fs-s); font-weight: 600; color: var(--on-night-2); }
.hm-stages .cur .hm-st-k, .hm-stages .cur .hm-st-s { color: #fff; }

/* ---------- Новости и клубы ---------- */
.hm-news { padding: 104px 0 40px; }
.hm-clubs { padding: 64px 0 104px; }
.hm-clubs-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 32px; }
.hm-clubs-n { display: flex; align-items: flex-end; gap: 20px; min-width: 0; }
.hm-clubs-n b { font: 900 clamp(110px, 15vw, 220px)/.76 var(--display); color: var(--blue); }
.hm-clubs-n .hm-h { font-size: clamp(34px, 4.4vw, 64px); padding-bottom: .08em; }
.hm-clubs-n .hm-h span { display: block; color: var(--ink2); }
.hm-clubs-find { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; flex: 1 1 380px; max-width: 520px; }
.hm-clubs-find .h-clubfind { display: flex; gap: 8px; width: 100%; margin: 0; max-width: none; }
.hm-clubs-find .h-clubfind input { flex: 1 1 auto; min-width: 0; min-height: 48px; }

/* ---------- Родителям: поиск ребёнка (идёт турнир) ---------- */
.hm-find { padding: 56px 0; background: var(--mist); border-bottom: 1px solid var(--line); }
.hm-find-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 56px; align-items: center; }
.hm-find-form .qf { display: flex; gap: 8px; }
.hm-find-form .qf input { flex: 1 1 auto; min-width: 0; min-height: 56px; font-size: var(--fs-l); }
.hm-find-form .qf .btn { min-height: 56px; }
.hm-find-form p { margin: 10px 0 0; }

/* ---------- Три входа ---------- */
.hm-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); color: #fff; }
.hm-door { position: relative; isolation: isolate; overflow: hidden; min-height: 460px; display: flex; }
.hm-door-red { background: #c8171e; } .hm-door-blue { background: var(--brand); } .hm-door-night { background: var(--night); }
.hm-door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--weave), linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(5, 6, 15, .38)); }
/* Косая полоса света: проходит по входу под курсором */
.hm-door::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 46%; z-index: -1; background: rgba(255, 255, 255, .12); transform: skewX(-12deg) translateX(0); transition: transform .7s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .hm-door:hover::after { transform: skewX(-12deg) translateX(480%); } }
.hm-door-in { display: flex; flex-direction: column; width: 100%; padding: 56px clamp(24px, 4vw, 64px) 52px; }
.hm-door-t { margin: 0; font: 900 clamp(56px, 6.4vw, 108px)/.84 var(--display); letter-spacing: 0; text-transform: uppercase; }
.hm-door p { margin: 16px 0 0; font-size: var(--fs-l); color: rgba(255, 255, 255, .92); max-width: 320px; }
.hm-door ul { list-style: none; margin: auto 0 0; padding: 40px 0 0; }
.hm-door li { border-top: 1px solid rgba(255, 255, 255, .3); }
.hm-door li a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; color: #fff; font-weight: 600; font-size: var(--fs-l); text-decoration: none; }
.hm-door li a::after { content: "\2192"; font-weight: 400; transition: transform var(--dur) var(--ease-out); }
.hm-door li a:hover { color: #fff; }
@media (hover: hover) and (pointer: fine) { .hm-door li a:hover::after { transform: translateX(6px); } }
.hm-door li a:focus-visible { outline-color: #fff; }

/* ---------- Идёт турнир ---------- */
.hm-live { position: relative; z-index: 3; background: var(--paper); border-bottom: 1px solid var(--line); }
.hh-live .container { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto; gap: 16px 32px; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.live-k { color: var(--red-ink); display: flex; align-items: center; gap: 8px; }
.live-dot { width: 9px; height: 9px; background: var(--red); border-radius: 50%; }
.hh-live-t { display: block; margin-top: 6px; font: 800 30px/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.hh-live-p { margin: 0; font-size: var(--fs-m); color: var(--ink2); }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: hm-live 1.8s ease-out infinite; } }
@keyframes hm-live { from { box-shadow: 0 0 0 0 rgba(227, 30, 37, .5); } to { box-shadow: 0 0 0 10px rgba(227, 30, 37, 0); } }
@media (max-width: 900px) { .hh-live .container { grid-template-columns: minmax(0, 1fr); gap: 12px; } .hh-live .btn { width: 100%; } }

/* Новости на главной: главная крупно, остальные строками с картинкой слева */
@media (min-width: 901px) {
  .h-news .news-side { gap: 0; }
  .h-news .news-side .nc { border-top: 1px solid var(--line); padding: 16px 0; }
  .h-news .news-side .nc:first-child { border-top: 0; padding-top: 0; }
  .h-news .news-side .nc-link { display: grid; grid-template-columns: 160px minmax(0, 1fr); column-gap: 16px; align-content: start; }
  .h-news .news-side .nc-media { grid-row: 1 / span 2; margin: 0; aspect-ratio: 4 / 3; }
  .h-news .news-side .nc-title { font-size: var(--fs-l); }
  .h-news .news-side .nc-badge { font-size: var(--fs-xs); padding: 4px 6px; }
}

/* ---------- Движение ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Первый экран собирается один раз: метка, слова заголовка снизу из-под маски, текст и кнопки, полосы — по очереди */
  .hm-k { animation: hm-up .6s var(--ease-out) both; }
  .hm-w > span { animation: hm-word .9s var(--ease-out) both; animation-delay: calc(.12s + var(--i, 0) * .07s); }
  .is-event .hm-title { animation: hm-up .8s var(--ease-out) .1s both; }
  .hm-lead, .hm-ticket { animation: hm-up .7s var(--ease-out) .5s both; }
  .hm-acts { animation: hm-up .7s var(--ease-out) .62s both; }
  .hm-slab { animation: hm-slab .9s var(--ease-out) both; }
  .hm-slab-1 { animation-delay: .15s; } .hm-slab-2 { animation-delay: .25s; } .hm-slab-3 { animation-delay: .35s; }
  .hm-poster { animation: hm-poster .9s var(--ease-out) .25s both; }
  .hm-ropes { animation: hm-ropes 1.1s var(--ease-out) .2s both; transform-origin: 0 50%; }
  /* Лёгкий параллакс на прокрутке — там, где браузер умеет вести анимацию по прокрутке сам (без скрипта) */
  @supports (animation-timeline: scroll()) {
    .hm-slab i { animation: hm-par linear both; animation-timeline: scroll(root); animation-range: 0 900px; }
    .hm-slab-2 i { animation-name: hm-par-2; }
    .hm-glow-blue { animation: hm-glow linear both; animation-timeline: scroll(root); animation-range: 0 900px; }
    .hm-hall { animation: hm-hall linear both; animation-timeline: scroll(root); animation-range: 0 900px; }
  }
  /* Секции: заголовок и содержимое появляются с небольшим сдвигом; афиши и раунды — по очереди */
  .rv-on .hm-rail[data-rv] .tc, .rv-on [data-rv] .hm-rounds li, .rv-on [data-rv] .hm-pod, .rv-on [data-rv] .hm-shot { opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  .rv-on .hm-rail[data-rv].rv-in .tc, .rv-on [data-rv].rv-in .hm-rounds li, .rv-on [data-rv].rv-in .hm-pod, .rv-on [data-rv].rv-in .hm-shot { opacity: 1; transform: none; }
  .rv-on [data-rv] .tc:nth-child(2), .rv-on [data-rv] .hm-rounds li:nth-child(2), .rv-on [data-rv] .hm-pod-1, .rv-on [data-rv] .hm-shot:nth-child(3) { transition-delay: .07s; }
  .rv-on [data-rv] .tc:nth-child(3), .rv-on [data-rv] .hm-rounds li:nth-child(3), .rv-on [data-rv] .hm-pod-3, .rv-on [data-rv] .hm-shot:nth-child(4) { transition-delay: .14s; }
  .rv-on [data-rv] .tc:nth-child(4), .rv-on [data-rv] .hm-rounds li:nth-child(4), .rv-on [data-rv] .hm-shot:nth-child(5) { transition-delay: .21s; }
  .rv-on [data-rv] .tc:nth-child(n+5) { transition-delay: .28s; }
}
@keyframes hm-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes hm-word { from { transform: translateY(108%); } to { transform: none; } }
@keyframes hm-slab { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: none; } }
@keyframes hm-poster { from { opacity: 0; transform: rotate(7deg) translateY(50px); } to { opacity: 1; } }
@keyframes hm-ropes { from { opacity: 0; transform: rotate(-3deg) scaleX(.4); } to { opacity: .9; transform: rotate(-3deg) scaleX(1); } }
@keyframes hm-par { to { transform: skewX(12deg) translateY(-7%); } }
@keyframes hm-par-2 { to { transform: skewX(12deg) translateY(7%); } }
@keyframes hm-glow { to { transform: translateY(26%); } }
@keyframes hm-hall { to { transform: translateY(8%) scale(1.06); } }

/* ---------- Ширины ---------- */
@media (max-width: 1100px) {
  .hm-text { grid-column: 1 / span 10; }
  .hm-slabs { grid-column: 6 / -1; opacity: .8; }
  .is-event .hm-text, .is-event:not(.has-poster) .hm-text { grid-column: 1 / span 8; }
  .hm-poster, .hm-poster.is-wide { grid-column: 9 / -1; }
  .hm-about-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hm-rounds { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .hm-rounds li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hm-rounds li:nth-child(n+3) { border-top: 1px solid var(--line2); }
  .hm-door { min-height: 400px; }
}
@media (max-width: 900px) {
  .hm-in { min-height: 0; padding-top: 40px; padding-bottom: 48px; }
  .hm-text, .is-event .hm-text, .is-event:not(.has-poster) .hm-text { grid-column: 1 / -1; }
  .hm-slabs, .is-event .hm-slabs { grid-column: 5 / -1; margin: -40px -30% -48px 0; opacity: .55; }
  .hm-slabs::after { inset: 0 20% 0 -2px; }
  /* Афиша на телефоне — часть «билета»: небольшая, наклонная, в рамке двух углов, справа от названия, а не отдельно под кнопками */
  .has-poster .hm-in { grid-template-columns: minmax(0, 1fr) clamp(118px, 35vw, 220px); grid-template-areas: "k k" "t p" "tk tk" "a a"; column-gap: 26px; align-items: start; }
  .has-poster .hm-text { display: contents; }
  .has-poster .hm-k { grid-area: k; position: relative; z-index: 2; margin-bottom: 18px; }
  .has-poster .hm-title.hhero-t { grid-area: t; align-self: center; position: relative; z-index: 2; overflow-wrap: break-word; hyphens: auto; font-size: clamp(34px, 9.4vw, 72px); }
  .has-poster .hm-ticket { grid-area: tk; position: relative; z-index: 2; margin-top: 26px; }
  .has-poster .hm-acts { grid-area: a; position: relative; z-index: 2; }
  .hm-poster, .hm-poster.is-wide { grid-area: p; grid-column: auto; grid-row: auto; justify-self: end; align-self: start; width: 100%; max-width: none; margin: 8px 8px 0 0;
    transform: rotate(3deg); box-shadow: -8px 8px 0 var(--red), 8px -8px 0 var(--brand), 0 24px 40px -20px rgba(0, 0, 0, .8); }
  .hm-poster img { max-height: 320px; }
  /* Широкая афиша рядом с названием не помещается — она идёт полосой над билетом */
  .has-poster:has(.hm-poster.is-wide) .hm-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "k" "t" "p" "tk" "a"; }
  .hm-poster.is-wide { justify-self: start; width: auto; max-width: min(420px, 92%); margin: 26px 0 0 8px; transform: rotate(-1.5deg); }
  .hm-title { font-size: clamp(54px, 15.5vw, 120px); }
  .is-event .hm-title { font-size: clamp(40px, 10.5vw, 84px); }
  .hm-lead { font-size: var(--fs-l); }
  .hm-about, .hm-how, .hm-shots, .hm-rank { padding: 72px 0; }
  .hm-cal { padding: 72px 0 76px; }
  .hm-news { padding: 72px 0 24px; } .hm-clubs { padding: 48px 0 72px; }
  .hm-head { margin-bottom: 28px; }
  .hm-podium { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hm-pod-1 { order: 0; padding-top: 22px; padding-bottom: 24px; } .hm-pod-2 { order: 1; } .hm-pod-3 { order: 2; }
  .hm-pod-pl { font-size: 150px; }
  .hm-rows { columns: 1; }
  .hm-shot-main { grid-column: 1 / -1; grid-row: auto; }
  .hm-shot { grid-column: span 3; }
  .hm-shot img { aspect-ratio: 1; }
  .hm-doors { grid-template-columns: minmax(0, 1fr); }
  .hm-door { min-height: 0; }
  .hm-door ul { padding-top: 28px; }
  .hm-find-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-clubs-find { align-items: flex-start; max-width: none; }
  .tcal-rail .tc { flex-basis: 264px; }
  .hm-rank::before { background: var(--weave), radial-gradient(70% 120% at 0 100%, rgba(11, 13, 38, .7), rgba(11, 13, 38, 0) 70%); }
}
@media (max-width: 560px) {
  .hm-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .hm-rounds { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .hm-rounds li, .hm-rounds li + li { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 8px; padding: 18px 0; border-left: 0; border-top: 1px solid var(--line2); }
  .hm-rounds li:first-child { border-top: 0; }
  .hm-rounds li::before { grid-row: 1 / span 2; margin: 0; font-size: 104px; }
  .hm-rounds p { max-width: none; }
  .hm-round-t { font-size: 32px; align-self: end; }
  .hm-ticket .tk-date { flex: 1 1 100%; clip-path: none; padding-right: 20px; }
  .hm-ticket .tk-stats { flex: 1 1 100%; border-left: 0; border-top: 2px dashed var(--night-line); }
  .hm-ticket .tk-d { font-size: 76px; }
  .hm-acts .btn { flex: 1 1 100%; }
  .hm-clubs-n { gap: 12px; }
  .hm-clubs-find .h-clubfind { flex-wrap: wrap; } .hm-clubs-find .h-clubfind .btn { flex: 1 1 100%; }
  .hm-find-form .qf { flex-wrap: wrap; } .hm-find-form .qf .btn { flex: 1 1 100%; }
  .hm-row-pt small { display: none; }
  .hm-rows li { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 8px 14px 8px 8px; }
  .hm-row-pl { font-size: 30px; }
}
