/* «Афиша» — вторая редакция оформления. Подключается последней (base.html), поверх app.css, site.css, ui.css
   и стилей разделов. Три знака системы:
   1) афишный шрифт Sofia Sans Extra Condensed — заголовки, даты, места, счёт;
   2) скос — кнопки, метки, плашки дат, срез шапки страницы;
   3) лента двух углов ринга (красный | синий) и канаты — тонкие горизонтальные линии на ночном поле.
   Всё здесь — только для экрана: печать (report.css, fed-reports.css, @media print) остаётся прежней.
   Правила — docs/design.md. */

@font-face { font-family: "Sofia Sans XC"; font-weight: 600 900; font-display: swap;
  src: url("../../fonts/sofia-condensed-cyrillic.7d3348a09b15.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia Sans XC"; font-weight: 600 900; font-display: swap;
  src: url("../../fonts/sofia-condensed-latin.8d75b504ea0d.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 {
  --display: "Sofia Sans XC", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  /* Канаты: четыре линии на ночном поле */
  --ropes: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0) 0 21px, rgba(255, 255, 255, .13) 21px 23px);
  /* Движение второй редакции: появление и отклик */
  --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-io: cubic-bezier(.77, 0, .175, 1);
  --cut: 12px;
}
/* Поле шире: на больших экранах содержимому и афишам есть где развернуться */
@media screen and (min-width: 1100px) { :root { --wrap: 1320px; } }

@media screen {
  /* Антиква осталась только на бумаге: на экране её место занимает гротеск, крупное — афишный шрифт */
  :root { --serif: var(--font); --head: var(--display); }
  .fr-doc, .fr-sec, .sheet, .blank { --serif: "Source Serif 4", Georgia, "Times New Roman", serif; }

  /* ---------- Заголовки ---------- */
  h1 { font: 800 clamp(44px, 6.2vw, 92px)/.92 var(--display); letter-spacing: .004em; text-transform: uppercase; }
  h2 { font: 600 clamp(24px, 2.4vw, 30px)/1.15 var(--font); letter-spacing: -.01em; }
  h3 { font: 600 var(--fs-xl)/1.25 var(--font); }
  .head h2, .sec-head h2, .band-dark h2, .dsp { font: 800 clamp(34px, 3.7vw, 54px)/.95 var(--display); letter-spacing: .006em; text-transform: uppercase; }
  .fr-sec .head h2, .fr-doc h1, .fr-doc h2, .sheet h1, .sheet h2, .blank h1, .blank h2 { font-family: var(--serif); font-weight: 600; text-transform: none; letter-spacing: 0; }
  .fr-sec .head h2 { font-size: 26px; line-height: 1.15; }

  .kicker { font: 700 var(--fs-l)/1.1 var(--display); letter-spacing: .12em; }
  .cap-s { letter-spacing: .1em; }

  /* ---------- Верхняя строка и шапка ---------- */
  .util { font: 700 var(--fs-m)/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
  .util .container { min-height: 32px; }
  .topbar::after { height: 4px; }
  .nav > a, .nav-more-btn { font: 700 19px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
  .nav > a { padding: 10px 0; }
  .nav > a.active { box-shadow: inset 0 -4px 0 var(--red); }

  /* ---------- Кнопки: прописные, залитые — со срезанным углом ---------- */
  .btn { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: var(--fs-s); }
  .btn-sm { font-size: 13px; letter-spacing: .05em; }
  .btn:not(.btn-outline, .btn-ghost, .btn-line, .btn-vk, .btn-white) {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
  .btn:not(.btn-outline, .btn-ghost, .btn-line, .btn-vk, .btn-white):focus-visible { outline: 0; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--night); }
  .btn-sm:not(.btn-outline, .btn-ghost, .btn-line, .btn-vk, .btn-white) { --cut: 9px; }

  /* ---------- Метки-переключатели: скошенные плашки ---------- */
  .chip { min-height: 38px; padding: 0 20px; border: 0; background: var(--mist); font: 700 var(--fs-l)/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
  .chip:hover { background: var(--line); }
  .chip.on, .tc-view .chip.on { background: var(--red); color: #fff; }
  .chip:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 4px var(--blue); }
  .chip-row { gap: 6px; }

  /* ---------- Заголовок секции: скошенная лента ---------- */
  .head { border-bottom-width: 3px; padding-bottom: 14px; align-items: flex-end; }
  .head-plain { border-bottom: 0; padding-bottom: 0; }
  .head-plain, .sec-head { padding-top: 26px; }
  .head-plain::before, .sec-head::before { width: 84px; height: 10px; transform: skewX(-24deg); transform-origin: 0 100%; }
  .head > a, .head .more { font: 700 var(--fs-l)/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; border-bottom-width: 2px; }

  /* ---------- Шапка страницы: ночное поле, канаты, две косые ленты, срез снизу ---------- */
  .page-head { overflow: clip; }
  .page-head::before { background:
    linear-gradient(104deg, rgba(0, 0, 0, 0) 0 calc(100% - 232px), var(--red) calc(100% - 232px) calc(100% - 214px), rgba(0, 0, 0, 0) calc(100% - 214px) calc(100% - 196px), var(--brand) calc(100% - 196px) calc(100% - 100px), rgba(0, 0, 0, 0) calc(100% - 100px)),
    linear-gradient(90deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .001) 40%), var(--weave), var(--arena-light); }
  .page-head::after { content: ""; position: absolute; left: 0; right: 0; top: 56%; height: 92px; z-index: -1; pointer-events: none;
    background: var(--ropes); -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 30%, #000 75%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 30%, #000 75%); opacity: .8; }
  .page-head .container { position: relative; padding-top: 44px; padding-bottom: 60px; }
  .page-head h1 { font-size: clamp(46px, 6.6vw, 100px); line-height: .9; max-width: 13.5em; text-shadow: 0 2px 24px rgba(5, 6, 15, .5); }
  .page-head .kicker { margin-bottom: 16px; }
  .page-head .kicker::before { width: 34px; height: 10px; margin-right: 12px; vertical-align: 0; transform: skewX(-24deg); }
  .page-head p { font-size: var(--fs-l); max-width: 640px; }
  .page-head .crumbs { font: 700 var(--fs-m)/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px; }
  .page-head .crumbs a { font-weight: 700; }
  /* Срез: белый клин под шапкой, поле «Протокол» входит в «Арену» углом */
  .page-head > .container::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 100vw; height: 26px; margin-left: -50vw; pointer-events: none;
    background: linear-gradient(to bottom right, rgba(0, 0, 0, 0) 49.6%, var(--paper) 50.2%); }

  /* ---------- Таблицы: шапка афишным шрифтом, место — крупной цифрой ---------- */
  .table th { font: 700 var(--fs-m)/1.1 var(--display); letter-spacing: .12em; border-bottom-width: 3px; }
  .table tbody tr:hover { background: var(--mist); }

  /* ---------- Плитки с цифрами ---------- */
  .tile { border-top-width: 5px; padding-top: 18px; }
  .tile-v { font: 800 46px/.9 var(--display); letter-spacing: .01em; }
  .tile-v.tile-v-s { font: 800 28px/1 var(--display); text-transform: uppercase; }
  .tile-v small { font: 700 var(--fs-l)/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
  .tile-l { font: 700 var(--fs-m)/1.15 var(--display); letter-spacing: .12em; }
  .medal-tally b { font: 800 40px/.9 var(--display); }
  .medal-tally .mt-l { font: 700 var(--fs-m)/1.1 var(--display); letter-spacing: .12em; }

  /* ---------- Состояние: скошенная плашка вместо точки с текстом ---------- */
  .status { gap: 7px; padding: 5px 12px 5px 10px; background: var(--mist); font: 700 var(--fs-m)/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
    clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
  .status::before { width: 7px; height: 7px; }
  .status-open { background: color-mix(in srgb, var(--ok) 14%, var(--paper)); }
  .status-live { background: var(--red); color: #fff; --dot: #fff; }
  .status-soon { background: color-mix(in srgb, var(--blue) 12%, var(--paper)); }
  .status-on-dark { background: rgba(255, 255, 255, .14); color: #fff; }
  .status-on-dark.status-live { background: var(--red); }

  /* ---------- Пустое состояние: канаты и подпись ---------- */
  p.empty, div.empty, td.empty { position: relative; max-width: 760px; padding: 30px 28px 30px 104px; border: 0; color: var(--ink); background: var(--mist); font: 800 26px/1.05 var(--display); letter-spacing: .02em; text-transform: uppercase; overflow: hidden; }
  p.empty::before, div.empty::before, td.empty::before { content: ""; position: absolute; left: -10px; top: -20%; bottom: -20%; width: 78px; height: auto; margin: 0; opacity: 1; transform: skewX(-12deg); -webkit-mask: none; mask: none;
    background: linear-gradient(90deg, var(--red) 0 30px, rgba(0, 0, 0, 0) 30px 40px, var(--brand) 40px 100%); }
  td.empty { display: table-cell; }
  .empty-box { position: relative; overflow: hidden; border: 0; padding: 26px 28px 26px 104px; }
  .empty-box::before { content: ""; position: absolute; left: -10px; top: -20%; bottom: -20%; width: 78px; transform: skewX(-12deg);
    background: linear-gradient(90deg, var(--red) 0 30px, rgba(0, 0, 0, 0) 30px 40px, var(--brand) 40px 100%); }
  .empty-box > .ichip { display: none; }
  .empty-box h3 { font: 800 26px/1.05 var(--display); letter-spacing: .02em; text-transform: uppercase; margin-bottom: 6px; }

  /* ---------- Подвал ---------- */
  .footer { margin-top: 96px; border-top: 0; overflow: clip; font-size: var(--fs-m); }
  .footer::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--duo); }
  .foot-ropes { position: absolute; left: 0; right: 0; top: 46px; height: 92px; z-index: -1; background: var(--ropes); opacity: .7;
    -webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0) 55%); mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0) 55%); }
  .footer .container { position: relative; padding-top: 84px; padding-bottom: 26px; }
  .foot-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 64px; align-items: start; padding-bottom: 48px; border-bottom: 1px solid var(--night-line); }
  .foot-logo { height: 96px; }
  .foot-org { font-size: var(--fs-base); max-width: 400px; margin-top: 20px; }
  .footer h2 { font: 700 var(--fs-m)/1 var(--display); letter-spacing: .14em; color: var(--on-night-3); margin: 0 0 14px; }
  .foot-call { display: flex; flex-direction: column; align-items: flex-start; }
  .footer .foot-call > a[href^="tel:"] { font: 800 clamp(44px, 5.4vw, 84px)/.9 var(--display); letter-spacing: .01em; }
  .footer .foot-call > a[href^="tel:"]:hover { text-decoration: none; color: #fff; }
  .foot-call > a[href^="tel:"] { font-variant-numeric: lining-nums; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 6px no-repeat; transition: background-size .35s var(--ease-out); padding-bottom: 8px; }
  .foot-call > a[href^="tel:"]:hover { background-size: 100% 6px; }
  .foot-call > a[href^="mailto:"] { margin-top: 14px; font: 700 26px/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
  .foot-call > a[target] { margin-top: 12px; max-width: 420px; color: var(--on-night-2); }
  .foot-soc { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 20px; }
  .foot-soc a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--night-line); font-weight: 600;
    transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
  .footer .foot-soc a:hover { background: rgba(255, 255, 255, .1); border-color: #fff; text-decoration: none; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 64px; padding-top: 40px; }
  .footer li { padding: 0; }
  /* Ссылки подвала — афишным шрифтом, но небольшим и плотно: это оглавление сайта, а не второе меню */
  .footer li + li { margin-top: 6px; }
  .footer li a { font: 700 20px/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; }
  .footer li a { background: linear-gradient(var(--red), var(--red)) 0 100% / 0 3px no-repeat; transition: background-size .3s var(--ease-out); }
  .footer li a:hover { text-decoration: none; background-size: 100% 3px; }
  .foot-acts { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; justify-self: end; }
  .footer .foot-acts .btn-white { color: var(--night); }
  .footer .foot-acts .btn-white:hover { color: #fff; }
  .foot-acts .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .55); }
  .foot-acts .btn-outline:hover { background: #fff; border-color: #fff; color: var(--night); }
  .footer .foot-acts a:hover { text-decoration: none; }
  /* Крупные цифры и слова — сплошные с переходом, без контура: у контура вариативного шрифта видны внутренние линии
     букв (как у букв на карточке без фото). На светлом фоне — цвет темы с маской-переходом сверху вниз (--num-fade),
     на ночном — полупрозрачный белый или золотой градиент через background-clip: text */
  :root { --num-fade: linear-gradient(180deg, #000 18%, rgba(0, 0, 0, .3)); }
  /* Имя организации во всю ширину: крупный знак в конце страницы */
  .foot-word { position: absolute; right: var(--gut); bottom: 64px; z-index: -1; margin: 0; font: 900 clamp(150px, 30vw, 460px)/.74 var(--display); letter-spacing: .01em; text-transform: uppercase; white-space: nowrap;
    color: rgba(255, 255, 255, .06); background: linear-gradient(180deg, rgba(255, 255, 255, .085) 15%, rgba(255, 255, 255, .015) 85%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; user-select: none; pointer-events: none; }
  .footer .legal { margin-top: 72px; padding-top: 18px; }

  @media (max-width: 900px) {
    .page-head::before { background:
      linear-gradient(104deg, rgba(0, 0, 0, 0) 0 calc(100% - 64px), var(--red) calc(100% - 64px) calc(100% - 56px), rgba(0, 0, 0, 0) calc(100% - 56px) calc(100% - 48px), var(--brand) calc(100% - 48px) calc(100% - 14px), rgba(0, 0, 0, 0) calc(100% - 14px)),
      var(--weave), var(--arena-light); }
    .page-head .container { padding-top: 28px; padding-bottom: 44px; }
    .page-head > .container::after { height: 16px; }
    .page-head::after { display: none; }
    .nav > a, .nav-more-btn { font-size: 24px; }
    .foot-top { grid-template-columns: minmax(0, 1fr); padding-bottom: 36px; }
    /* «Турниры» и «Участникам» — две колонки рядом и на телефоне, кнопки — строкой ниже во всю ширину */
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-top: 32px; }
    .foot-grid > div:first-child { grid-column: auto; }
    .footer li + li { margin-top: 0; }
    .footer li a { min-height: 36px; font-size: 18px; }
    .foot-acts { grid-column: 1 / -1; justify-self: stretch; flex-direction: row; flex-wrap: wrap; }
    .footer .container { padding-top: 60px; }
    .footer { margin-top: 64px; }
    p.empty, div.empty { padding: 24px 18px 24px 80px; font-size: 22px; }
    .empty-box { padding: 22px 18px 22px 80px; }
    p.empty::before, div.empty::before, .empty-box::before { width: 58px; background: linear-gradient(90deg, var(--red) 0 22px, rgba(0, 0, 0, 0) 22px 30px, var(--brand) 30px 100%); }
  }
  @media (max-width: 520px) {
    .foot-acts { gap: 10px; }
    .foot-acts .btn { flex: 1 1 100%; min-height: 48px; }
    .footer li a { font-size: 17px; }
    .footer h2 { margin-bottom: 8px; }
    .foot-soc a { padding: 0 14px; }
    .foot-word { bottom: 150px; }
  }
}

/* ---------- Афиша турнира: карточка для ленты главной и плитки прошедших ----------
   Ночная карточка: картинка 3:4, на её нижнем крае — скошенная плашка с датой (цвет — по виду спорта),
   название афишным шрифтом, состояние и кнопки. Под курсором приподнимается, снизу проходит лента. */
@media screen {
  .tcal:not(.is-list) .tc { --sport: var(--red); position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto;
    grid-template-areas: "pic" "body" "acts"; column-gap: 0; padding: 0; border: 0; background: var(--night); color: #fff;
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
  .tc[data-sport="boxing"] { --sport: var(--brand); }
  .tc[data-sport="mma"] { --sport: #141414; }
  .tcal:not(.is-list) .tc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--duo); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease-out); }
  .tcal:not(.is-list) .tc:hover::after, .tcal:not(.is-list) .tc:focus-within::after { transform: scaleX(1); }
  @media (hover: hover) and (pointer: fine) { .tcal:not(.is-list) .tc:hover { transform: translateY(-6px); box-shadow: 0 26px 40px -24px rgba(11, 13, 38, .7); } }
  .tcal:not(.is-list) .tc-pic { grid-area: pic; }
  .tcal:not(.is-list) .tc-pic::after { left: 0; right: 0; top: 0; bottom: 0; height: auto; transform: none; background: linear-gradient(180deg, rgba(11, 13, 38, 0) 55%, rgba(11, 13, 38, .85)); }
  .tcal:not(.is-list) .tc-pic .cover, .tcal:not(.is-list) .tc-pic .slot { aspect-ratio: 3 / 4; }
  .tcal:not(.is-list) .tc-date { grid-area: pic; align-self: end; justify-self: start; z-index: 1; display: grid; grid-template-columns: auto auto; align-items: end; column-gap: 10px; row-gap: 0; margin: 0 0 -14px;
    padding: 10px 30px 9px 16px; background: var(--sport); color: #fff; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
  .tcal:not(.is-list) .tc-day { grid-row: 1 / span 3; align-self: center; font: 900 68px/.8 var(--display); color: #fff; }
  .tcal:not(.is-list) .tc-mon { margin: 0; font: 800 22px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #fff; }
  .tcal:not(.is-list) .tc-wd { margin: 2px 0 0; font: 700 var(--fs-s)/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
  .tcal:not(.is-list) .tc-time { margin: 3px 0 0; font: 800 var(--fs-l)/1 var(--display); letter-spacing: .04em; color: #fff; }
  .tcal:not(.is-list) .tc-when { grid-column: 2; margin: 3px 0 0; font: 700 var(--fs-s)/1 var(--display); letter-spacing: .1em; color: #fff; }
  .tcal:not(.is-list) .tc-body { grid-area: body; margin: 0; padding: 32px 18px 0; }
  .tcal:not(.is-list) .tc-k, .tcal:not(.is-list) .tc-k.kick, .tcal:not(.is-list) .tc-k.mma { font: 700 var(--fs-m)/1.1 var(--display); letter-spacing: .14em; color: var(--on-night-2); }
  .tcal:not(.is-list) .tc-k .sep { color: var(--on-night-3); }
  .tcal:not(.is-list) .tc-t { margin: 8px 0 0; font: 800 30px/.98 var(--display); letter-spacing: .01em; text-transform: uppercase; }
  .tcal:not(.is-list) .tc-t a { color: #fff; }
  .tcal:not(.is-list) .tc-t a:hover { color: #fff; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 4px; }
  .tcal:not(.is-list) .tc-where { margin-top: 10px; font-size: var(--fs-s); color: var(--on-night-2); }
  .tcal:not(.is-list) .tc-where b { color: #fff; }
  .tcal:not(.is-list) .tc-state { margin-top: 14px; }
  .tcal:not(.is-list) .tc .status { background: rgba(255, 255, 255, .13); color: #fff; }
  .tcal:not(.is-list) .tc .status-open { --dot: #3ecf7a; }
  .tcal:not(.is-list) .tc .status-live { background: var(--red); }
  .tcal:not(.is-list) .tc-note { color: var(--on-night-2); }
  .tcal:not(.is-list) .tc-note.hot { color: #ff8a8e; }
  .tcal:not(.is-list) .tc-acts { grid-area: acts; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0; padding: 18px 18px 22px; }
  .tcal:not(.is-list) .tc-acts .btn { flex: 0 1 auto; }
  .tcal:not(.is-list) .tc .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .55); }
  .tcal:not(.is-list) .tc .btn-outline:hover { background: #fff; border-color: #fff; color: var(--night); }
  .tcal:not(.is-list) .tc .btn-blue { background: #fff; border-color: #fff; color: var(--night); }
  .tcal:not(.is-list) .tc .btn-blue:hover { background: var(--red); border-color: var(--red); color: #fff; }
  .tcal:not(.is-list) .tc .lnk, .tcal:not(.is-list) .tc-sub a { color: #fff; }
  .tcal:not(.is-list) .tc .lnk:hover { color: #fff; }
  .tcal:not(.is-list) .tc-sub .sep { color: var(--on-night-3); }
  .tcal-tiles:not(.is-list) { gap: 28px 22px; }
  /* Ближайшие — широкой афишей: картинка слева, название во весь рост справа; на телефоне — столбцом */
  .tcal:not(.is-list, .tcal-tiles, .tcal-rail) { display: grid; gap: 22px; margin-top: 20px; }
  .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto; grid-template-areas: "pic body" "pic acts"; }
  .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-pic .cover, .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-pic .slot { aspect-ratio: 16 / 10; height: 100%; }
  .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-pic::after { background: linear-gradient(90deg, rgba(11, 13, 38, 0) 60%, var(--night)); }
  .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-date { margin: 0; padding: 14px 40px 12px 20px; clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%); }
  .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-day { font-size: 96px; }
  .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-mon { font-size: 30px; }
  .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-wd, .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-when { font-size: var(--fs-l); }
  .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-time { font-size: var(--fs-2xl); }
  .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-body { padding: 36px 40px 0 16px; }
  .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-k { font-size: var(--fs-xl); }
  .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-t { margin-top: 12px; font-size: clamp(40px, 4.6vw, 72px); line-height: .9; }
  .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-where { margin-top: 16px; font-size: var(--fs-l); }
  .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-state { margin-top: 20px; }
  .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-acts { padding: 26px 40px 36px 16px; }
  .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-acts .btn { min-height: 52px; padding: 10px 28px; font-size: var(--fs-s); }
  @media (max-width: 760px) {
    .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "pic" "body" "acts"; }
    .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-pic::after { background: linear-gradient(180deg, rgba(11, 13, 38, 0) 55%, rgba(11, 13, 38, .85)); }
    .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-date { margin-bottom: -14px; padding: 10px 30px 9px 16px; }
    .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-day { font-size: 68px; }
    .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-mon { font-size: 22px; }
    .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-body { padding: 34px 20px 0; }
    .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-acts { padding: 20px 20px 24px; }
    .tcal:not(.is-list, .tcal-tiles, .tcal-rail) .tc-acts .btn { flex: 1 1 100%; }
  }
  /* Список строками: дата и название — тем же афишным шрифтом */
  .tcal.is-list .tc-day { font: 900 46px/.82 var(--display); }
  .tcal.is-list .tc-mon { font: 800 var(--fs-xl)/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
  .tcal.is-list .tc-t { font: 800 30px/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
  .tc-month { font: 700 var(--fs-l)/1 var(--display); letter-spacing: .14em; border-bottom-width: 3px; }
  @media (max-width: 640px) {
    .tcal-tiles:not(.is-list) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
    .tcal-tiles:not(.is-list) .tc-day { font-size: 46px; }
    .tcal-tiles:not(.is-list) .tc-mon { font-size: 17px; }
    .tcal-tiles:not(.is-list) .tc-date { padding: 8px 22px 7px 10px; column-gap: 7px; }
    .tcal-tiles:not(.is-list) .tc-body { padding: 26px 12px 0; }
    .tcal-tiles:not(.is-list) .tc-t { font-size: 23px; }
    .tcal-tiles:not(.is-list) .tc-acts { padding: 14px 12px 16px; }
    .tcal-tiles:not(.is-list) .tc-wd { display: none; }
    .tcal-tiles:not(.is-list) .tc-k { font-size: 13px; letter-spacing: .06em; white-space: normal; overflow-wrap: anywhere; }
    .tcal-tiles:not(.is-list) .tc-k .sep { margin: 0 3px; }
    .tcal-tiles:not(.is-list) .tc-body, .tcal-tiles:not(.is-list) .tc-acts { min-width: 0; }
    .tcal-tiles:not(.is-list) .tc-acts .btn { flex: 1 1 100%; min-width: 0; padding: 7px 8px; white-space: normal; text-align: center; letter-spacing: .03em; }
  }
}

/* ---------- Внутренние страницы ---------- */
@media screen {
  /* Турнир: афиша во весь экран — плашка даты, название во весь рост, срез снизу */
  .bhero { min-height: clamp(520px, 46vw, 700px); background: var(--night); }
  .bhero::before { background: linear-gradient(90deg, rgba(11, 13, 38, .96) 0%, rgba(11, 13, 38, .86) 34%, rgba(11, 13, 38, .4) 64%, rgba(11, 13, 38, .2) 100%),
    linear-gradient(0deg, rgba(11, 13, 38, .8), rgba(11, 13, 38, 0) 40%); }
  .bhero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; z-index: 2; pointer-events: none; background: linear-gradient(to bottom right, rgba(0, 0, 0, 0) 49.6%, var(--paper) 50.2%); }
  .bhero-in { padding-top: 48px; padding-bottom: 76px; }
  .bhero-text { max-width: 820px; }
  .bhero-logo { display: none; }
  .bhero-crumbs { font: 700 var(--fs-m)/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px; }
  .bhero-crumbs a { font-weight: 700; }
  .bhero-k { font: 700 var(--fs-xl)/1.1 var(--display); letter-spacing: .12em; }
  .bhero-date { display: inline-flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 12px 38px 10px 18px; background: var(--red); color: #fff; clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%); }
  .bhero-date b { font: 900 84px/.8 var(--display); }
  .bhero-date span { font: 800 30px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
  .bhero-date small { display: block; margin-top: 5px; font: 700 var(--fs-l)/1 var(--display); letter-spacing: .1em; opacity: .88; }
  .bhero-t { margin: 20px 0 16px; font: 900 clamp(50px, 6.6vw, 112px)/.86 var(--display); letter-spacing: 0; text-transform: uppercase; hyphens: manual; }
  .bhero-t a:hover { text-decoration-color: var(--red); text-decoration-thickness: 5px; text-underline-offset: 8px; }
  .bhero-m { font-size: var(--fs-l); }
  .bhero-acts .btn { min-height: 54px; padding: 12px 28px; }
  .bhero-poster, .bhero.poster-tall .bhero-poster { border: 0; border-radius: 0; transform: rotate(2deg); box-shadow: -12px 12px 0 var(--red), 12px -12px 0 var(--brand), 0 40px 60px -30px rgba(0, 0, 0, .8); transition: transform .4s var(--ease-out); }
  @media (hover: hover) and (pointer: fine) { .bhero-poster:hover { transform: rotate(0deg) scale(1.02); } }
  .t-hero-after { padding-top: 28px; }
  .t-count { font: 800 .6em/1 var(--display); color: var(--red-ink); vertical-align: .35em; margin-left: 8px; }

  /* Турнир под афишей: слева «О турнире» (описание секретаря — слоган, подзаголовки, списки со значками),
     справа карточка: ночная плашка со сроком заявок и главным действием, факты, документы, серия.
     Шаги «Как попасть на турнир» ниже — той же системы: лента над заголовком, черта 3px над списком, афишный шрифт */
  .t-hero-after { padding-top: 48px; }
  .t-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 72px; }
  .t-side { position: static; }
  .t-about .sec-head { margin-bottom: 26px; }
  .t-main > h1 + .t-about, .t-main > figure + .t-about { margin-top: 44px; }
  .t-about .t-desc, .t-main > .t-about .t-desc { max-width: 72ch; margin: 0; font-size: var(--fs-l); line-height: 1.6; color: var(--ink2); }
  .t-main > .t-about .t-desc p + p { padding-left: 0; border-left: 0; }
  .t-about .t-desc p { margin: 0 0 1em; }
  .t-about .t-desc p:first-child { font-size: inherit; color: inherit; }
  .t-about .t-desc b { color: var(--ink); }
  .t-about .t-desc p.td-tag { margin: 0 0 20px; font: 800 clamp(28px, 2.6vw, 38px)/.98 var(--display); letter-spacing: .01em; text-transform: uppercase; color: var(--blue); }
  .t-about .t-desc .td-lead { font-size: var(--fs-xl); line-height: 1.55; color: var(--ink); }
  .td-h { display: flex; align-items: center; gap: 12px; margin: 30px 0 0; font: 800 26px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
  .td-list { list-style: none; margin: 14px 0 26px; padding: 0; border-top: 3px solid var(--ink); }
  .td-h + .td-list { margin-top: 14px; }
  .td-list:has(> li:only-child) { border-top: 0; margin-top: 0; }
  .td-list:has(> li:only-child) > li { border-bottom: 0; }
  .td-list > li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .td-list > li > .td-t:last-child { grid-column: 2 / -1; }
  .td-ico { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; background: var(--mist); font-size: 18px; line-height: 1; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
  .td-dot::before { content: ""; width: 12px; height: 6px; background: var(--red); transform: skewX(-24deg); }
  .td-t { font-weight: 600; color: var(--ink); }
  .td-when { font: 700 var(--fs-l)/1.1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); white-space: nowrap; text-align: right; }

  /* Карточка турнира */
  .t-card { border: 1px solid var(--line); background: var(--paper); }
  .t-card-top { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: 22px 24px 26px; background: var(--night); background-image: var(--weave); color: #fff; }
  .t-card-top::before { content: ""; position: absolute; left: 0; right: 0; top: 64px; height: 92px; z-index: -1; background: var(--ropes); opacity: .55;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 35%, #000); mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 35%, #000); }
  .t-card-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--duo); }
  .t-card-state .status { background: rgba(255, 255, 255, .13); color: #fff; }
  .t-card-state .status-open { --dot: #3ecf7a; }
  .t-card-state .status-live { background: var(--red); }
  .t-count-down { margin: 16px 0 0; }
  .t-count-down b { display: block; font: 900 clamp(52px, 4.6vw, 68px)/.84 var(--display); letter-spacing: .005em; text-transform: uppercase; color: #fff; }
  .t-card-top.hot .t-count-down b .num { color: #ff5a60; }
  .t-count-down > span { display: block; margin-top: 8px; font: 700 var(--fs-l)/1.1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-2); }
  .t-card-sub { margin: 12px 0 0; font-size: var(--fs-m); font-weight: 600; color: #fff; }
  .t-card-top .t-acts { flex-direction: row; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
  .t-card-top .t-acts .btn { flex: 1 1 auto; min-height: 52px; }
  .t-card-top .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .55); }
  .t-card-top .btn-outline:hover { background: #fff; border-color: #fff; color: var(--night); }

  /* Факты: линии под рядами сплошные (зазор между колонками — отступом ячейки), ячейки ряда одной высоты.
     .t-when — даты и сроки: по два в ряд, нечётный последний — во всю ширину. .t-terms — место, взнос, организатор */
  .t-card-body { padding: 4px 24px 24px; }
  .t-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
  .t-facts > div { min-width: 0; padding: 16px 20px 15px 0; border-bottom: 1px solid var(--line); }
  .t-facts > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .t-facts dd small a, .t-facts .long dd small a { font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
  .t-facts dt { margin: 0 0 5px; font: 700 var(--fs-s)/1.1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
  .t-facts dd { margin: 0; font: 800 23px/1.05 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); overflow-wrap: anywhere; }
  .t-facts dd small { display: block; margin-top: 4px; font: 400 var(--fs-s)/1.4 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink2); }
  .t-facts dd a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--line2); text-underline-offset: 4px; }
  .t-facts dd a:hover { text-decoration-color: var(--red); }
  .t-facts .hl dd { color: var(--red-ink); }
  /* Место одной длинной строкой (зал и адрес не разделились) — обычным шрифтом, не плакатом */
  .t-facts .long dd { font: 600 var(--fs-base)/1.4 var(--font); letter-spacing: 0; text-transform: none; }
  .t-facts .long dd a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
  .t-fee-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .t-fee-v b { font: 900 34px/.9 var(--display); }
  .t-fee-v, .t-fee-notes { font-family: var(--font); text-transform: none; letter-spacing: 0; }
  .t-fee-v { font-size: var(--fs-s); font-weight: 600; color: var(--ink2); }
  .t-fee-notes { list-style: none; margin: 10px 0 0; padding: 0; font-size: var(--fs-s); font-weight: 400; line-height: 1.45; color: var(--ink2); }
  .t-fee-notes li { position: relative; padding-left: 18px; }
  .t-fee-notes li + li { margin-top: 3px; }
  .t-fee-notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 4px; background: var(--red); transform: skewX(-24deg); }

  .t-card-h { margin: 0 0 12px; font: 700 var(--fs-s)/1.1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
  .t-extra { display: grid; grid-template-columns: minmax(0, 1fr); }
  .t-docs { display: grid; align-content: start; gap: 8px; padding: 22px 0 0; }
  .t-docs .t-card-h { margin-bottom: 4px; }
  .t-doc { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; padding: 7px 16px 7px 7px; border: 1px solid var(--line); color: var(--ink); text-decoration: none;
    transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
  .t-doc::after { content: "\2192"; font-size: var(--fs-l); color: var(--ink3); transition: transform .25s var(--ease-out), color var(--dur) var(--ease); }
  .t-doc[download]::after { content: "\2193"; }
  .t-doc:hover { border-color: var(--ink); background: var(--mist); color: var(--ink); text-decoration: none; }
  .t-doc:hover::after { color: var(--red); transform: translateX(3px); }
  .t-doc[download]:hover::after { transform: translateY(3px); }
  .t-doc-k { display: grid; place-items: center; height: 50px; background: var(--red); color: #fff; font: 800 var(--fs-m)/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
  .t-doc-k.is-xls { background: var(--brand); }
  .t-doc-t { min-width: 0; font: 800 21px/1.05 var(--display); letter-spacing: .03em; text-transform: uppercase; overflow-wrap: anywhere; }
  .t-doc-t small { display: block; margin-top: 3px; font: 400 var(--fs-s)/1.3 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink3); }

  /* Серия — той же карточкой-ссылкой, что документ: вместо значка файла лента двух углов */
  .t-doc-k.is-duo { background: linear-gradient(115deg, var(--red) 0 50%, var(--brand) 50% 100%); }
  /* Кто подаёт заявку — в ночной плашке под кнопкой; в высокой плашке прижато к низу */
  .t-note { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--night-line); font-size: var(--fs-s); line-height: 1.5; color: var(--on-night-2); }
  .t-acts + .t-note { margin-top: 22px; }
  .t-grid.solo .t-acts + .t-note { margin-top: auto; }

  /* Описания нет — карточка во всю ширину: ночная плашка слева во весь рост, справа сроки одним ровным рядом,
     условия по два в ряд, документы и серия — рядом */
  .t-grid.solo .t-card { display: grid; grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr); }
  .t-grid.solo .t-card-top { padding: 28px 28px 30px; }
  .t-grid.solo .t-card-body { padding: 10px 32px 30px; }
  .t-grid.solo .t-when { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
  .t-grid.solo .t-when > :last-child:nth-child(odd) { grid-column: auto; }
  .t-grid.solo .t-extra { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 32px; }
  .t-grid.solo .t-extra > .t-docs:only-child { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 12px; }
  .t-grid.solo .t-extra > .t-docs:only-child .t-card-h { grid-column: 1 / -1; }

  @media (max-width: 900px) {
    .t-hero-after { padding-top: 28px; }
    .t-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    /* Под афишей карточка с фактами — первой; без афиши сначала идёт заголовок турнира */
    .t-hero-after .t-side { order: -1; }
    /* Без афиши: заголовок, затем карточка с кнопкой, затем описание — колонка .t-main раскладывается в общую сетку */
    .t-hero:not(.t-hero-after) .t-main { display: contents; }
    .t-hero:not(.t-hero-after) .t-side { order: 1; }
    .t-hero:not(.t-hero-after) .t-about { order: 2; }
    .t-hero:not(.t-hero-after) .t-grid { row-gap: 0; }
    .t-hero:not(.t-hero-after) .t-side { margin-top: 8px; }
    .t-hero:not(.t-hero-after) .t-about { margin-top: 40px; }
    /* Под афишей плашка повторяла бы её кнопку и срок: остаётся только пояснение, кто подаёт заявку */
    .t-card-top.is-dup { padding: 16px 18px 0; background: none; color: inherit; overflow: visible; }
    .t-card-top.is-dup::before, .t-card-top.is-dup::after, .t-card-top.is-dup > :not(.t-note) { display: none; }
    .t-card-top.is-dup .t-note { margin: 0; padding: 0 0 0 14px; border-top: 0; border-left: 3px solid var(--line); color: var(--ink2); }
    .t-card:has(> .is-dup) { border-top: 3px solid var(--ink); }
    .t-grid.solo .t-card { display: block; }
    .t-grid.solo .t-card-body { padding: 4px 24px 24px; }
    .t-grid.solo .t-when { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .t-grid.solo .t-when > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .t-grid.solo .t-extra { grid-template-columns: minmax(0, 1fr); }
    .t-about .t-desc .td-lead { font-size: var(--fs-l); }
  }
  @media (max-width: 520px) {
    .t-card-top { padding: 20px 18px 24px; }
    .t-card-body { padding: 2px 18px 20px; }
    .t-facts dd { font-size: 20px; }
    .t-terms { grid-template-columns: minmax(0, 1fr); }
    .t-terms > div { padding-right: 0; }
    .t-card-top .t-acts .btn { flex-basis: 100%; }
    .td-h { font-size: 23px; }
    .td-list > li { grid-template-columns: 32px minmax(0, 1fr); row-gap: 2px; }
    .td-ico { width: 32px; height: 32px; font-size: 16px; }
    .td-when { grid-column: 2; text-align: left; font-size: var(--fs-m); }
  }
  @media (max-width: 1200px) and (min-width: 701px) { .bhero-t { font-size: clamp(46px, 6.6vw, 80px); } }
  @media (max-width: 700px) {
    .bhero-t { font-size: clamp(40px, 12vw, 64px); margin: 14px 0 12px; }
    .bhero-date b { font-size: 60px; } .bhero-date span { font-size: 24px; } .bhero-date { margin-top: 12px; padding: 10px 30px 8px 14px; }
    .bhero-in { padding-bottom: 48px; }
    .bhero::after { height: 16px; }
    .bhero-poster, .bhero.poster-tall .bhero-poster { transform: none; box-shadow: -8px 8px 0 var(--red), 8px -8px 0 var(--brand); }
  }

  /* Шаги (как попасть на турнир, путь спортсмена): крупный номер, как раунды на главной; пройденный и текущий — в полную силу */
  .flow { border-left: 0; border-top: 3px solid var(--ink); gap: 0 24px; }
  .flow-i { border: 0; margin: 0; padding: 14px 0 20px; }
  .flow-i::before { width: auto; height: auto; display: block; margin: 0 0 4px; background: none; font: 900 84px/.85 var(--display); color: var(--blue); -webkit-mask-image: var(--num-fade); mask-image: var(--num-fade); }
  .flow-i:nth-child(odd)::before { color: var(--red); }
  .flow-i.done::before { content: counter(flow); background: none; color: var(--ok); -webkit-mask-image: none; mask-image: none; }
  .flow-i.now { background: none; }
  .flow-i.now::before { background: none; color: var(--red); -webkit-mask-image: none; mask-image: none; }
  .flow-t { font: 800 28px/1 var(--display); letter-spacing: .01em; text-transform: uppercase; margin-bottom: 8px; }
  /* Шаги под описанием турнира, в левой колонке рядом с карточкой: по два в ряд */
  .t-journey.is-aside { margin-top: 56px; }
  @media (min-width: 901px) { .t-journey.is-aside .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; } }

  /* Карточка бойца и тренера */
  .fc .container { padding-bottom: 72px; }
  .fc .pr-top { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 64px; align-items: center; }
  .fc .pr-top > div:first-child { position: relative; margin: 14px; }
  .fc .pr-top > div:first-child::before { content: ""; position: absolute; inset: 0; z-index: -1; box-shadow: -14px 14px 0 var(--red), 14px -14px 0 var(--brand); }
  .fc .profile-photo { display: block; position: relative; }
  .fc .profile-photo.empty-photo { display: grid; border-bottom: 0; background: var(--night-2); background-image: var(--weave), linear-gradient(160deg, #2b2569, var(--night)); }
  /* Буквы вместо фото — сплошные, с мягким переходом сверху вниз: контур у вариативного шрифта показывал внутренние линии букв */
  .fc .empty-photo .ep-initials { font: 900 150px/1 var(--display); letter-spacing: .02em; color: #fff; -webkit-text-stroke: 0; text-shadow: none;
    background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .45)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .fc .empty-photo .ep-note { color: var(--on-night-3); font: 700 var(--fs-s)/1 var(--display); letter-spacing: .12em; }
  .fc .profile-photo.empty-photo img { filter: brightness(0) invert(1); opacity: .5; }
  .fc .pr-name { margin: 14px 0 26px; font-size: clamp(54px, 7.4vw, 124px); line-height: .84; max-width: none; }
  .fc .pr-name span { display: block; }
  /* Имя и отчество — тот же афишный шрифт, сплошной, мельче и светлее фамилии: читается сразу (контур имени — 13.11 убран) */
  .fc .fc-first { color: var(--on-night-2); font-weight: 800; font-size: .46em; line-height: 1; letter-spacing: .02em; margin-top: .22em; }
  .fc .factlist { max-width: 560px; border-top: 3px solid #fff; }
  .fc .factlist > div { font-size: var(--fs-base); }
  .fc .factlist dt { font: 700 var(--fs-m)/1.6 var(--display); letter-spacing: .12em; text-transform: uppercase; }
  .fc .factlist a { color: #fff; }
  .fc .score { max-width: 760px; border-top: 3px solid #fff; border-bottom: 1px solid var(--night-line); }
  .fc .score div { border-left-color: var(--night-line); text-align: left; padding: 16px 16px 14px; }
  .fc .score b { font: 900 64px/.85 var(--display); color: #fff; }
  .fc .score span { font: 700 var(--fs-m)/1.15 var(--display); letter-spacing: .12em; color: var(--on-night-2); }
  .fc .score-rank b { color: #ff7a7f; }
  .fc .score-rank em, .fc .score-rank a:hover span { color: #fff; }
  .fc .score-rank .medal { margin: 0; }
  .fc .score-note, .fc .pr-medals-l { color: var(--on-night-2); max-width: 760px; }
  .fc .score-note b { color: #fff; }
  .fc .medal-tally { max-width: 560px; margin-top: 20px; border: 0; color: var(--ink); }  /* бумажная вставка: на ночном поле число медалей было белым по светлому */
  .fc .share-status { color: var(--on-night-2); }
  .fc-body { padding-top: 40px; }
  @media (max-width: 900px) {
    .fc .pr-top { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .fc .pr-top > div:first-child { width: 190px; margin: 10px; }
    .fc .pr-top > div:first-child::before { box-shadow: -10px 10px 0 var(--red), 10px -10px 0 var(--brand); }
    .fc .pr-top .profile-photo { width: 100%; }
    .fc .empty-photo .ep-initials { font-size: 96px; }
    .fc .fc-first { font-size: .56em; margin-top: .18em; }
    .fc .score b { font-size: 46px; }
    .fc .score div { padding: 12px 10px; }
    .fc .container { padding-bottom: 52px; }
  }

  /* Тройка лидеров рейтинга — как табло на главной: ночные плашки, место крупной полупрозрачной цифрой, очки крупно */
  .podium { gap: 14px; margin-top: 22px; }
  .podium-i { position: relative; overflow: hidden; align-items: flex-start; text-align: left; padding: 22px 24px 24px; background: var(--brand); background-image: var(--weave); color: #fff; border: 0; border-top: 6px solid #c9ccd6; box-shadow: none; }
  .podium-1 { padding-top: 32px; padding-bottom: 40px; background-color: var(--night); border-top-color: #f0b93a; }
  .podium-3 { border-top-color: #c98a55; }
  .podium-i::after { position: absolute; right: 12px; top: -.04em; font: 900 190px/.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; }
  .podium-1::after { content: "1"; background-image: linear-gradient(180deg, rgba(240, 185, 58, .55) 20%, rgba(240, 185, 58, .08) 90%); font-size: 230px; } .podium-2::after { content: "2"; } .podium-3::after { content: "3"; }
  .podium-i .medal { margin-bottom: 18px; }
  .podium-b { position: relative; z-index: 1; }
  .podium-n, .podium-1 .podium-n { font: 800 clamp(26px, 2.6vw, 40px)/.98 var(--display); letter-spacing: .01em; text-transform: uppercase; color: #fff; }
  .podium-n:hover { color: #fff; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 5px; }
  .podium-s { color: var(--on-night-2); margin-top: 8px; }
  .podium-pt { position: relative; z-index: 1; margin-top: 18px; font: 700 var(--fs-m)/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); }
  .podium-pt b { font: 900 54px/.8 var(--display); letter-spacing: 0; color: #fff; }
  .podium-1 .podium-pt b { font-size: 76px; color: #f6c649; }
  @media (max-width: 700px) {
    .podium-i, .podium-1 { flex-direction: row; align-items: center; padding: 14px 16px; }
    .podium-i::after { display: none; }
    .podium-i .medal { margin-bottom: 0; }
    .podium-n, .podium-1 .podium-n { font-size: 24px; }
    .podium-pt { margin-top: 0; }
    .podium-pt b, .podium-1 .podium-pt b { font-size: 38px; display: block; }
  }

  /* Карточки людей и клубов: имя афишным шрифтом, цифры крупнее */
  .pcard { border-top-width: 4px; }
  .pcard::before { top: -4px; height: 4px; }
  .pcard-name { font: 800 24px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
  .pcard-stats b { font: 800 30px/.95 var(--display); }
  .pcard-stats > span { font: 700 var(--fs-s)/1.15 var(--display); letter-spacing: .1em; text-transform: uppercase; }
  .pcard .ava-initials { font-family: var(--display); font-weight: 800; }
  @media (hover: hover) and (pointer: fine) { .pcard:hover { border-color: var(--ink); } }

  /* Ошибка 404 / 403: код во весь рост полупрозрачной цифрой на ночном поле */
  .err-hero .container { padding-top: 72px; padding-bottom: 110px; }
  .err-hero .err-page { max-width: 720px; padding-top: 0; position: relative; z-index: 1; }
  .err-hero .err-page[data-code]::after { display: block; left: auto; right: -46vw; top: -40px; z-index: -1; font: 900 clamp(240px, 36vw, 560px)/.76 var(--display); letter-spacing: 0;
    color: rgba(255, 255, 255, .1); background: linear-gradient(180deg, rgba(255, 255, 255, .17) 20%, rgba(255, 255, 255, .03) 85%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .err-hero .lead { color: var(--on-night-2); font-size: var(--fs-xl); max-width: 560px; }
  .err-hero .lead a { color: #fff; }
  .err-hero .searchbar { max-width: 620px; }
  .err-hero .btn-blue { background: var(--red); border-color: var(--red); }
  .err-hero .btn-blue:hover { background: var(--red-hover); border-color: var(--red-hover); }
  main:has(.err-hero) + .footer { margin-top: 0; }
  @media (max-width: 900px) {
    .err-hero .container { padding-top: 40px; padding-bottom: 72px; }
    .err-hero .err-page[data-code]::after { right: -12px; top: auto; bottom: -70px; font-size: 200px; background-image: linear-gradient(180deg, rgba(255, 255, 255, .1) 20%, rgba(255, 255, 255, .02) 85%); }
  }

  /* Страница боя: два угла на ночном поле */
  .bout-hero .container { padding-bottom: 76px; }
  .bout-hero .facts { margin-top: 22px; }
  .bout-hero .facts b a { color: #fff; }
  .bout-hero .bout-corners { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; margin-top: 36px; border: 0; }
  .bout-hero .corner { position: relative; padding: 26px 30px 30px; }
  .bout-hero .red-corner { background: linear-gradient(100deg, var(--red) 0%, rgba(227, 30, 37, .28) 100%); clip-path: polygon(0 0, 100% 0, calc(100% - 34px) 100%, 0 100%); padding-right: 64px; }
  .bout-hero .blue-corner { background: linear-gradient(260deg, var(--brand) 0%, rgba(57, 49, 134, .35) 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); clip-path: polygon(34px 0, 100% 0, 100% 100%, 0 100%); padding-left: 64px; }
  .bout-hero .corner-label, .bout-hero .red-corner .corner-label, .bout-hero .blue-corner .corner-label { font: 700 var(--fs-l)/1 var(--display); letter-spacing: .14em; color: #fff; }
  .bout-hero .corner-label .result.win { display: inline-block; margin-left: 4px; padding: 4px 10px 3px; background: #fff; color: var(--night); font: 800 var(--fs-m)/1 var(--display); letter-spacing: .12em; }
  .bout-hero .corner-head { margin-top: 14px; }
  .bout-hero .corner-name { font: 900 clamp(34px, 4.6vw, 72px)/.88 var(--display); letter-spacing: 0; text-transform: uppercase; margin: 0 0 14px; }
  .bout-hero .corner-name a { color: #fff; }
  .bout-hero .corner-name a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
  .bout-hero .corner .kv { font-size: var(--fs-base); }
  .bout-hero .kv dt { color: rgba(255, 255, 255, .92); }
  .bout-hero .kv a { color: #fff; }
  .bout-hero .corner .muted { color: var(--on-night-2); }
  .bout-hero .versus { align-self: center; margin: 0 -18px; padding: 0; position: relative; z-index: 1; font: 900 clamp(60px, 8vw, 132px)/.8 var(--display); text-transform: uppercase; color: #fff;
    background: linear-gradient(180deg, #fff 35%, rgba(255, 255, 255, .55)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .bout-body { padding-top: 36px; }
  .bout-result { font: 900 clamp(34px, 4.4vw, 60px)/.95 var(--display); text-transform: uppercase; }
  @media (max-width: 700px) {
    .bout-hero .bout-corners { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
    .bout-hero .red-corner, .bout-hero .blue-corner { clip-path: none; padding: 20px 18px 22px; border-top: 0; }
    .bout-hero .versus { display: block; justify-self: center; margin: -22px 0; font-size: 64px; }
    .bout-hero .container { padding-bottom: 52px; }
  }

  /* Новость: заголовок афишным шрифтом, текст — как был */
  .post-head .post-title, .post-head .post-title.is-caps { font: 800 clamp(40px, 5.6vw, 76px)/.92 var(--display); letter-spacing: .004em; text-transform: uppercase; }
  .post-kicker { font: 700 var(--fs-l)/1 var(--display); letter-spacing: .12em; }

  /* Кабинет: шапка той же системы */
  .cab-head .cab-h { margin: 0; }
}

@media screen and (prefers-reduced-motion: reduce) {
  .foot-call > a, .footer li a { transition: none; }
}

/* Пустое состояние — во всю ширину своей секции, как линия заголовка над ним: узкая плашка под широкой линией
   смотрелась обрывком */
@media screen { p.empty, div.empty, td.empty { max-width: none; } }

/* «Сейчас на площадках»: карточки площадок делят всю ширину поровну (раньше справа оставалась пустая колонка);
   кнопки под ними — в ряд, по размеру подписи, а не двумя полосами во весь экран */
@media screen {
  main .lv-cards:not(.is-one) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
  .t-live-now .t-acts { flex-direction: row; flex-wrap: wrap; margin-top: 20px; }
}
@media screen and (max-width: 600px) { .t-live-now .t-acts .btn { flex: 1 1 100%; } }

/* Карточки клубов и тренеров: цифры — в трёх равных колонках, чтобы в соседних карточках стояли друг под другом
   (раньше ширина колонки зависела от числа плиток). На телефоне число над подписью: в строку подпись обрезалась */
@media screen {
  .pcard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pcard-stats > span:only-child { grid-column: 1 / -1; }
}
@media screen and (max-width: 600px) {
  .pcard-stats b { display: block; margin: 0 0 3px; }
  .pcard-stats > span { letter-spacing: .06em; }
  .pcard-stats > span:only-child b { display: inline; margin: 0 6px 0 0; }
  /* Поиск по спортсменам: поля парами — пол и порядок, год от и до; кнопка во всю ширину */
  .searchbar > input[type=search], .searchbar > select[name=club] { order: 1; flex-basis: 100%; }
  .searchbar > select[name=gender], .searchbar > select[name=sort] { order: 2; flex: 1 1 40%; }
  .searchbar > .year { order: 3; flex: 1 1 40%; }
  .searchbar > .btn, .searchbar > button { order: 4; flex: 1 1 100%; }
}

/* Плитки с цифрами на телефоне идут по две: нечётная последняя занимает весь ряд, без пустой ячейки рядом */
@media screen and (max-width: 600px) { .tiles:not(.tiles-1) > :last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ---------- Телефон: удобство нажатия ----------
   Всё, на что нажимают пальцем, — не ниже 44 px. Длинная подпись кнопки переносится на вторую строку,
   а не выталкивает страницу вбок. Подписи не мельче 11 px. Плотные рабочие экраны секретаря (схема
   жеребьёвки, площадки, редактор зала — draws.css) живут по своим размерам. */
@media screen and (max-width: 900px) {
  .btn, .btn-sm, .chip, .pp-sort button { min-height: 44px; }
  .btn { white-space: normal; }
  .pp-sort button { padding-left: 14px; padding-right: 14px; }
  /* «Раскрыть» без своего оформления: строка целиком под палец */
  summary, .ts-more > summary, .wz-more > summary { padding-top: 12px; padding-bottom: 12px; }
  .tcal:not(.is-list).tcal-rail .tc-acts .btn { min-height: 44px; }
  .ap .bc .disc-bouts { min-height: 44px; }
  body .lv-next-h, body .lv-no span, body .fc-no span { font-size: 11px; }
}
