@charset "UTF-8";
/* ==========================================================================
   Федерация спорта по нардам Тамбовской области
   Единая дизайн-система сайта.
   Структура файла:
     01. Токены (CSS-переменные)
     02. Сброс и базовая типографика
     03. Утилиты и доступность
     04. Кнопки
     05. Шапка, навигация, бургер-меню
     06. Подвал
     07. Каркас страниц и панели-секции
     08. Слайдер
     09. Карточки новостей
     10. Соревнования: карточки, формы, модальные окна
     11. Рейтинг: статистика, пьедестал, таблица
     12. Документы
     13. Контакты
     14. О федерации
     15. Страница новости
     16. Анимации появления (reveal)
     17. prefers-reduced-motion
     18. Светлая тема (prefers-color-scheme: light)
     19. Печать
   ========================================================================== */

/* ==========================================================================
   01. ТОКЕНЫ
   ========================================================================== */

:root {
    color-scheme: dark;

    /* --- палитра: тёмная база --- */
    --bg: #080d17;
    --bg-deep: #05080f;
    --bg-glow-1: rgba(224, 179, 65, 0.07);
    --bg-glow-2: rgba(96, 165, 250, 0.05);

    --header-bg: rgba(6, 11, 22, 0.86);
    --header-border: rgba(148, 163, 184, 0.16);

    --surface: rgba(14, 22, 38, 0.78);
    --surface-solid: #0e1626;
    --surface-2: rgba(8, 14, 26, 0.72);
    --surface-3: rgba(20, 30, 50, 0.95);
    --surface-hover: rgba(22, 33, 55, 0.92);
    --field-bg: rgba(6, 11, 22, 0.85);
    --overlay: rgba(3, 7, 15, 0.78);

    /* --- текст --- */
    --text: #f2f5f9;
    --text-2: #b6c1d3;
    --text-3: #93a1b8;

    /* --- акцент --- */
    --accent: #e3b74a;
    --accent-light: #f5d989;
    --accent-dark: #a97f1c;
    --accent-ink: #1a1204;
    --accent-soft: rgba(227, 183, 74, 0.1);
    --accent-soft-strong: rgba(227, 183, 74, 0.18);
    --accent-line: rgba(227, 183, 74, 0.34);
    --accent-glow: rgba(227, 183, 74, 0.3);

    /* --- служебные цвета --- */
    --blue: #7cb4fb;
    --blue-soft: rgba(59, 130, 246, 0.14);
    --blue-line: rgba(96, 165, 250, 0.42);
    --green: #6ee7a0;
    --green-soft: rgba(34, 197, 94, 0.16);
    --green-line: rgba(34, 197, 94, 0.5);
    --red: #fca5a5;
    --red-soft: rgba(239, 68, 68, 0.16);
    --red-line: rgba(239, 68, 68, 0.5);

    --border: rgba(148, 163, 184, 0.16);
    --border-strong: rgba(148, 163, 184, 0.3);
    --focus: #f5d989;

    /* --- тени --- */
    --shadow-1: 0 2px 10px rgba(0, 0, 0, 0.28);
    --shadow-2: 0 14px 40px rgba(0, 0, 0, 0.45);
    --shadow-3: 0 24px 70px rgba(0, 0, 0, 0.55);
    --shadow-accent: 0 10px 30px rgba(227, 183, 74, 0.24);

    /* --- геометрия --- */
    --radius-xs: 6px;
    --radius-sm: 9px;
    --radius-md: 13px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    /* --- типографика --- */
    --font-sans: "Inter", "PT Sans", system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", "Noto Sans", Arial, sans-serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.8125rem;
    --fs-base: 0.9375rem;
    --fs-md: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
    --fs-2xl: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem);
    --fs-3xl: clamp(1.7rem, 1.35rem + 1.4vw, 2.35rem);

    /* --- движение --- */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur-1: 150ms;
    --dur-2: 220ms;
    --dur-3: 320ms;

    --container: 1180px;
    --header-h: 64px;

    /* иконка ВКонтакте для маски (без внешних зависимостей) */
    --vk-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.07 2H8.93C3.33 2 2 3.33 2 8.93v6.14C2 20.67 3.33 22 8.93 22h6.14C20.67 22 22 20.67 22 15.07V8.93C22 3.33 20.67 2 15.07 2zm3.58 13.89h-1.51c-.57 0-.75-.43-1.78-1.48-.9-.81-1.34-.96-1.55-.96-.32 0-.42.13-.42.5v1.22c0 .36-.12.58-1.08.58-1.59 0-3.35-.98-4.6-2.8-1.6-2.26-2.04-3.95-2.04-4.3 0-.19.08-.37.42-.37h1.51c.4 0 .55.17.7.56.77 2.06 2.05 3.87 2.58 3.87.2 0 .3-.1.3-.4v-2.6c-.07-.93-.56-1.01-.56-1.34 0-.17.13-.32.33-.32h2.44c.28 0 .38.14.38.46v2.48c0 .28.12.38.2.38.16 0 .3-.1.49-.3.7-.8 1.37-2.15 1.37-2.15.1-.2.27-.37.48-.37h1.52c.46 0 .56.24.46.55-.17.78-2 3.02-2 3.02-.16.24-.2.36 0 .65.14.2.63.62 1 1.02 1.17 1.32 1.65 1.99 1.74 2.31.16.42-.12.63-.57.63z'/%3E%3C/svg%3E");
}

/* ==========================================================================
   02. СБРОС И БАЗОВАЯ ТИПОГРАФИКА
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 90% 60% at 18% 0%, var(--bg-glow-1) 0%, transparent 62%),
        radial-gradient(ellipse 80% 55% at 88% 100%, var(--bg-glow-2) 0%, transparent 60%),
        linear-gradient(180deg, #0d1526 0%, var(--bg) 55%, var(--bg-deep) 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.is-locked {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--space-3);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -0.012em;
    color: var(--text);
    text-wrap: balance;
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

p {
    margin: 0 0 var(--space-3);
}

p:last-child {
    margin-bottom: 0;
}

ul, ol {
    margin: 0 0 var(--space-3);
    padding-left: 1.25em;
}

li + li {
    margin-top: 2px;
}

strong, b {
    font-weight: 650;
    color: var(--text);
}

small {
    font-size: var(--fs-xs);
}

a {
    color: var(--accent-light);
    text-decoration-color: var(--accent-line);
    text-underline-offset: 3px;
    transition: color var(--dur-2) var(--ease), text-decoration-color var(--dur-2) var(--ease);
}

a:hover {
    color: #fff;
    text-decoration-color: currentColor;
}

img, svg, iframe, video {
    max-width: 100%;
}

img {
    height: auto;
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: var(--space-5) 0;
}

::selection {
    background: var(--accent-soft-strong);
    color: var(--text);
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

/* ==========================================================================
   03. УТИЛИТЫ И ДОСТУПНОСТЬ
   ========================================================================== */

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 300;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 650;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform var(--dur-2) var(--ease);
}

.skip-link:focus-visible {
    transform: translateY(0);
    color: var(--accent-ink);
}

.section-note {
    margin-top: var(--space-4);
    font-size: var(--fs-xs);
    color: var(--text-3);
    line-height: 1.55;
}

.empty-state {
    margin-top: var(--space-4);
    padding: var(--space-6) var(--space-4);
    text-align: center;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: var(--text-2);
    font-size: var(--fs-base);
}

.empty-state__icon {
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: var(--space-3);
}

/* ==========================================================================
   04. КНОПКИ
   ========================================================================== */

.btn {
    --btn-bg: var(--surface-2);
    --btn-fg: var(--text);
    --btn-border: var(--border-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    min-height: 42px;
    border: 1px solid var(--btn-border);
    border-radius: var(--radius-pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font: inherit;
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease),
        background-color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease),
        color var(--dur-2) var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-1);
}

.btn:active {
    transform: translateY(0) scale(0.985);
}

.btn[disabled],
.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn--accent {
    --btn-bg: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 55%, var(--accent-dark) 100%);
    --btn-fg: var(--accent-ink);
    --btn-border: transparent;
    box-shadow: 0 8px 22px rgba(227, 183, 74, 0.24);
}

.btn--accent:hover {
    box-shadow: var(--shadow-accent);
    color: var(--accent-ink);
}

.btn--blue {
    --btn-bg: linear-gradient(135deg, #2f6fd0 0%, var(--blue) 100%);
    --btn-fg: #061223;
    --btn-border: transparent;
    box-shadow: 0 8px 22px rgba(59, 130, 246, 0.28);
}

.btn--blue:hover {
    color: #061223;
}

.btn--ghost {
    --btn-bg: rgba(255, 255, 255, 0.03);
    --btn-fg: var(--text-2);
}

.btn--ghost:hover {
    --btn-fg: var(--text);
    border-color: var(--accent-line);
    background: var(--accent-soft);
}

.btn--sm {
    min-height: 34px;
    padding: 6px 14px;
    font-size: var(--fs-xs);
}

.btn--block {
    width: 100%;
}

/* ==========================================================================
   05. ШАПКА, НАВИГАЦИЯ, БУРГЕР
   ========================================================================== */

.wrapper {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: clamp(12px, 3vw, 24px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
    backdrop-filter: blur(14px) saturate(1.25);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02), 0 10px 30px rgba(0, 0, 0, 0.28);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    min-height: var(--header-h);
    padding-block: 8px;
}

/* --- лого --- */

.logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 0 1 auto;
    text-decoration: none;
}

.logo-min {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #2b2008 0%, #150e03 100%);
    border: 1px solid var(--accent-line);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}

.logo-row:hover .logo-min {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent-line);
}

.logo-min img {
    width: 88%;
    height: 88%;
    object-fit: contain;
    display: block;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.logo-text-main {
    font-size: 0.9375rem;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -0.012em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--accent-light);
}

.logo-text-sub {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    white-space: nowrap;
}

/* --- десктопная навигация --- */

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    flex: 1;
    min-width: 0;
}

.menu {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--fs-sm);
    font-weight: 500;
    white-space: nowrap;
}

.menu li {
    margin: 0;
}

.menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border-radius: var(--radius-pill);
    color: var(--text-2);
    text-decoration: none;
    transition: color var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}

.menu a::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--dur-3) var(--ease-out);
}

.menu a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
}

.menu a:hover::after,
.menu a.active::after {
    transform: scaleX(1);
}

.menu a.active,
.menu a[aria-current="page"] {
    color: var(--text);
    background: var(--accent-soft);
}

.menu-icon {
    /* иконки в десктопном меню скрыты: они дублируют подписи и не дают
       шести пунктам уместиться рядом с логотипом */
    display: none;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}

.menu a:hover .menu-icon,
.menu a.active .menu-icon {
    opacity: 1;
    color: var(--accent-light);
}

.menu-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* --- выпадающее «Ещё» --- */

.more-wrapper {
    position: relative;
    flex-shrink: 0;
}

.more-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-2);
    font: inherit;
    font-size: var(--fs-xs);
    font-weight: 500;
    cursor: pointer;
    transition: color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease),
        background-color var(--dur-2) var(--ease);
}

.more-btn:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
}

.more-btn .arrow {
    font-size: 0.6rem;
    transition: transform var(--dur-2) var(--ease);
}

.more-btn[aria-expanded="true"] .arrow {
    transform: rotate(180deg);
}

.more-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 190px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(8, 14, 26, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-3);
    z-index: 210;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease),
        visibility var(--dur-2);
}

.more-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.more-menu li {
    margin: 0;
}

.more-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: var(--fs-sm);
    text-decoration: none;
}

.more-menu a::after {
    display: none;
}

.more-menu a:hover,
.more-menu a.active {
    color: var(--text);
    background: var(--accent-soft);
}

/* --- правая часть шапки --- */

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.header-contact {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: right;
    font-size: var(--fs-xs);
    line-height: 1.35;
    white-space: nowrap;
}

.header-contact .org-name {
    font-size: 0.6875rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-3);
}

.header-contact a {
    color: var(--text-2);
    text-decoration: none;
}

.header-contact a:hover {
    color: var(--accent-light);
}

/* --- бургер --- */

.burger {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    transition: background-color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}

.burger:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-line);
}

.burger-line {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform var(--dur-3) var(--ease), opacity var(--dur-1) linear;
}

.burger[aria-expanded="true"] .burger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.2);
}

.burger[aria-expanded="true"] .burger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* --- мобильное меню --- */

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 190;
    padding-top: calc(var(--header-h) + 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: radial-gradient(ellipse at 25% 10%, rgba(20, 30, 52, 0.98), rgba(3, 6, 12, 0.995));
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur-3) var(--ease), visibility var(--dur-3) linear;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-panel {
    max-width: var(--container);
    margin: 0 auto;
    padding: 8px clamp(16px, 5vw, 28px) 40px;
}

.mobile-nav-title {
    margin-bottom: var(--space-3);
    font-size: 0.6875rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(14, 22, 38, 0.72);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease),
        border-color var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}

.mobile-nav-overlay.open .mobile-nav-item {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-overlay.open .mobile-nav-item:nth-child(1) { transition-delay: 40ms; }
.mobile-nav-overlay.open .mobile-nav-item:nth-child(2) { transition-delay: 80ms; }
.mobile-nav-overlay.open .mobile-nav-item:nth-child(3) { transition-delay: 120ms; }
.mobile-nav-overlay.open .mobile-nav-item:nth-child(4) { transition-delay: 160ms; }
.mobile-nav-overlay.open .mobile-nav-item:nth-child(5) { transition-delay: 200ms; }
.mobile-nav-overlay.open .mobile-nav-item:nth-child(6) { transition-delay: 240ms; }
.mobile-nav-overlay.open .mobile-nav-item:nth-child(7) { transition-delay: 280ms; }

.mobile-nav-item:hover {
    border-color: var(--accent-line);
    background: rgba(20, 30, 50, 0.9);
}

.mobile-nav-item:has(a[aria-current="page"]) {
    border-color: var(--accent-line);
    background: var(--accent-soft);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--text);
    font-size: var(--fs-md);
    font-weight: 500;
    text-decoration: none;
}

.mobile-nav-link small {
    display: block;
    margin-top: 2px;
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--text-3);
    white-space: normal;
}

.mobile-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
}

.mobile-nav-icon svg {
    width: 15px;
    height: 15px;
    fill: var(--accent-light);
}

.mobile-nav-arrow {
    color: var(--text-3);
    font-size: var(--fs-md);
}

.mobile-nav-item.badge-vk {
    border-color: var(--blue-line);
    background: radial-gradient(circle at 0% 50%, var(--blue-soft), rgba(14, 22, 38, 0.75));
}

.mobile-nav-item.badge-vk .mobile-nav-icon {
    border-color: var(--blue-line);
    background: var(--blue-soft);
}

.mobile-nav-item.badge-vk svg {
    fill: var(--blue);
}

.mobile-nav-contacts {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
    font-size: var(--fs-sm);
    line-height: 1.7;
    color: var(--text-3);
}

.mobile-nav-contacts strong {
    color: var(--text);
    font-weight: 600;
}

.mobile-nav-contacts a {
    color: var(--text-2);
}

.mobile-nav-contacts a:hover {
    color: var(--accent-light);
}

/* ==========================================================================
   06. ПОДВАЛ
   ========================================================================== */

.site-footer {
    margin-top: var(--space-7);
    padding: var(--space-6) 0 var(--space-4);
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(6, 11, 22, 0.4), rgba(4, 8, 15, 0.9));
    font-size: var(--fs-sm);
    color: var(--text-2);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.9fr 1.1fr 1.3fr;
    gap: var(--space-6);
    align-items: start;
}

.footer-col-title {
    margin-bottom: var(--space-3);
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
    font-size: 0.6875rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-light);
}

.footer-main-text {
    font-size: var(--fs-sm);
    line-height: 1.65;
    color: var(--text-2);
}

.footer-main-text .highlight {
    color: var(--text);
}

.footer-links,
.footer-contacts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li,
.footer-contacts li {
    margin-bottom: 6px;
    line-height: 1.45;
}

.footer-links a,
.footer-contacts a {
    display: inline-block;
    color: var(--text-2);
    text-decoration: none;
    transition: color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}

.footer-links a:hover,
.footer-contacts a:hover {
    color: var(--accent-light);
    transform: translateX(3px);
}

.footer-contacts .contact-label {
    color: var(--text-3);
    font-size: var(--fs-xs);
}

.footer-contacts .contact-value {
    color: var(--text);
}

.footer-vk-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    padding: 5px 12px;
    border: 1px solid var(--blue-line);
    border-radius: var(--radius-pill);
    background: var(--blue-soft);
    color: var(--blue);
    font-size: var(--fs-xs);
}

.footer-vk-link:hover {
    color: #dbeafe;
    transform: none;
}

.footer-vk-link .vk-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: var(--vk-mask) no-repeat center / contain;
    mask: var(--vk-mask) no-repeat center / contain;
}

.footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-5);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
}

.footer-copyright {
    font-size: var(--fs-xs);
    color: var(--text-3);
    line-height: 1.5;
}

.footer-dev {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-xs);
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    font-weight: 500;
    color: var(--accent-light);
}

.footer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

.footer-dev-sep {
    color: var(--text-3);
}

.footer-dev-link {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

.footer-dev-link:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* ==========================================================================
   07. КАРКАС СТРАНИЦ И ПАНЕЛИ-СЕКЦИИ
   ========================================================================== */

.main {
    display: block;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--space-3) clamp(12px, 3vw, 24px) var(--space-5);
}

.panel,
.section-main,
.section-news,
.section-competitions,
.section-ratings,
.section-documents,
.section-about {
    margin-top: var(--space-3);
    padding: clamp(16px, 3vw, 28px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-2);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.panel > h1:first-child,
.section-main > h1:first-child,
.section-competitions > h1:first-child,
.section-ratings > h1:first-child,
.section-documents > h1:first-child,
.section-about > h1:first-child {
    margin-top: 0;
}

.panel-lead,
.section-competitions > p,
.section-ratings > p,
.section-documents > p,
.section-about > p {
    color: var(--text-2);
    max-width: 68ch;
}

.section-title {
    margin-bottom: var(--space-3);
    font-size: var(--fs-2xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent-light);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .section-title {
        background-image: linear-gradient(100deg, var(--accent-light) 0%, var(--accent) 55%, var(--accent-dark) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.subsection-title {
    margin: var(--space-4) 0 var(--space-2);
    font-size: var(--fs-lg);
    font-weight: 650;
}

.section-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.15fr);
    gap: var(--space-5);
    align-items: start;
}

.section-desc {
    max-width: 62ch;
    margin-bottom: var(--space-4);
    color: var(--text-2);
    font-size: var(--fs-base);
    line-height: 1.65;
}

.goals-list {
    margin: 0;
    padding-left: 1.1em;
    color: var(--text-2);
    font-size: var(--fs-base);
    line-height: 1.75;
}

.goals-list li::marker {
    color: var(--accent);
}

/* мини-карточка контактов на главной */

.contacts-card {
    padding: var(--space-4);
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    font-size: var(--fs-sm);
    color: var(--text-2);
    transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}

.contacts-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.contacts-card h3 {
    margin: 0 0 var(--space-3);
    font-size: var(--fs-md);
    font-weight: 650;
}

.contacts-card p {
    margin: 0 0 6px;
    line-height: 1.55;
}

.contacts-card .contact-value {
    color: var(--text);
    font-weight: 500;
}

.contacts-card .contacts-card__note {
    margin-top: var(--space-3);
    font-size: var(--fs-xs);
    color: var(--text-3);
}

.contacts-card .vk-link {
    display: inline-block;
    margin-top: 4px;
    color: var(--blue);
    font-size: var(--fs-xs);
}

.contacts-card .vk-link:hover {
    color: #dbeafe;
    text-decoration: underline;
}

/* ==========================================================================
   08. СЛАЙДЕР
   ========================================================================== */

.slider-section {
    margin-top: var(--space-3);
}

.slider-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--bg-deep);
    box-shadow: var(--shadow-2);
    isolation: isolate;
}

.slider-track {
    display: flex;
    aspect-ratio: 16 / 7;
    will-change: transform;
    transition: transform 600ms var(--ease-out);
}

.slide-item {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 800ms var(--ease-out);
}

.slide-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 8, 16, 0.12) 0%, rgba(4, 8, 16, 0.55) 58%, rgba(4, 8, 16, 0.9) 100%);
    pointer-events: none;
}

.slide-bg.is-fallback,
.slide-item.is-fallback {
    background: radial-gradient(circle at 15% 15%, rgba(96, 165, 250, 0.28), rgba(10, 16, 30, 0.98));
}

.slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: clamp(16px, 4vw, 34px);
    max-width: 46rem;
}

.slide-counter {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-pill);
    background: rgba(6, 11, 22, 0.55);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #e8edf6;
}

.slide-title {
    margin: 0 0 6px;
    font-size: clamp(1.1rem, 2.4vw, 1.85rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.slide-text {
    margin: 0;
    max-width: 40rem;
    font-size: var(--fs-base);
    line-height: 1.55;
    color: #dde5f1;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(6, 11, 22, 0.62);
    color: #f2f5f9;
    font-size: var(--fs-md);
    line-height: 1;
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background-color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease),
        transform var(--dur-2) var(--ease);
}

.slider-arrow:hover {
    background: rgba(227, 183, 74, 0.9);
    border-color: transparent;
    color: var(--accent-ink);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.94);
}

.slider-arrow svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.slider-prev { left: 12px; }
.slider-next { right: 12px; }

.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 3;
    display: flex;
    gap: 6px;
    transform: translateX(-50%);
}

.slider-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width var(--dur-3) var(--ease), background-color var(--dur-2) var(--ease);
}

.slider-dots button:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-dots button[aria-current="true"] {
    width: 26px;
    background: var(--accent);
}

/* ==========================================================================
   09. КАРТОЧКИ НОВОСТЕЙ
   ========================================================================== */

.news-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.news-section-title {
    margin: 0 0 4px;
    font-size: var(--fs-xl);
    font-weight: 650;
}

.news-section-sub {
    font-size: var(--fs-xs);
    color: var(--text-3);
}

.news-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent-light);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease),
        transform var(--dur-2) var(--ease);
}

.news-all-link:hover {
    background: var(--accent-soft-strong);
    border-color: var(--accent);
    color: var(--accent-light);
    transform: translateX(2px);
}

.news-empty {
    margin-top: var(--space-4);
    color: var(--text-3);
    font-size: var(--fs-sm);
}

.news-grid,
.news-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
    padding: 0;
    list-style: none;
}

.news-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    font-size: var(--fs-sm);
    transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease),
        border-color var(--dur-3) var(--ease), background-color var(--dur-3) var(--ease);
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-line);
    background: var(--surface-hover);
    box-shadow: var(--shadow-2);
}

.news-card:focus-within {
    border-color: var(--accent-line);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-xs);
    color: var(--text-3);
}

.source-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.625rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.source-badge.vk {
    border: 1px solid var(--blue-line);
    background: var(--blue-soft);
    color: var(--blue);
}

.source-badge.site {
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent-light);
}

.news-title-link {
    color: var(--text);
    font-size: var(--fs-base);
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    transition: color var(--dur-2) var(--ease);
}

.news-title-link:hover {
    color: var(--accent-light);
}

.news-image-link {
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    line-height: 0;
}

.news-image-link img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 500ms var(--ease-out);
}

.news-card:hover .news-image-link img,
.news-image-link:hover img {
    transform: scale(1.06);
}

.news-video-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 12px;
    border: 1px solid var(--blue-line);
    border-radius: var(--radius-sm);
    background: radial-gradient(circle at 0% 0%, var(--blue-soft), var(--surface-2));
}

.news-video-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--blue);
}

.news-video-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.8);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.news-video-link {
    padding: 5px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--text-2);
    font-size: var(--fs-xs);
    text-decoration: none;
}

.news-video-link:hover {
    color: var(--text);
    border-color: var(--blue-line);
}

.news-text-preview {
    flex: 1 0 auto;
    color: var(--text-2);
    font-size: var(--fs-sm);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.news-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.news-btn {
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease),
        color var(--dur-2) var(--ease);
}

.news-btn-read {
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent-light);
}

.news-btn-read:hover {
    background: var(--accent-soft-strong);
    border-color: var(--accent);
    color: var(--text);
}

.news-btn-vk {
    border: 1px solid var(--blue-line);
    background: var(--blue-soft);
    color: var(--blue);
}

.news-btn-vk:hover {
    border-color: var(--blue);
    color: #dbeafe;
}

/* ==========================================================================
   10. СОРЕВНОВАНИЯ
   ========================================================================== */

.section-competitions > h2 {
    margin: var(--space-6) 0 var(--space-3);
    font-size: var(--fs-lg);
    color: var(--accent-light);
}

.tournament-card {
    margin-top: var(--space-4);
    padding: clamp(14px, 2.5vw, 22px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    box-shadow: var(--shadow-1);
    transition: border-color var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease),
        transform var(--dur-3) var(--ease);
}

.tournament-card:hover {
    border-color: var(--accent-line);
    box-shadow: var(--shadow-2);
}

.t-title {
    margin: 0 0 6px;
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--text);
}

.t-meta {
    margin: 0 0 6px;
    font-size: var(--fs-sm);
    color: var(--text-3);
}

.t-meta strong {
    color: var(--text-2);
    font-weight: 600;
}

.t-capacity {
    margin-top: 6px;
    font-size: var(--fs-xs);
}

.t-capacity span {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--green-line);
    border-radius: var(--radius-pill);
    background: var(--green-soft);
    color: var(--green);
    font-weight: 500;
}

.t-capacity .full {
    border-color: var(--red-line);
    background: var(--red-soft);
    color: var(--red);
}

.t-description {
    margin: var(--space-3) 0 6px;
    color: var(--text-2);
    font-size: var(--fs-base);
    line-height: 1.7;
}

.t-gallery {
    display: flex;
    gap: 10px;
    margin: var(--space-3) 0 4px;
    padding: 4px 0 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
    scroll-snap-type: x proximity;
}

.t-gallery::-webkit-scrollbar {
    height: 6px;
}

.t-gallery::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
}

.gallery-item {
    flex-shrink: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: none;
    cursor: zoom-in;
    scroll-snap-align: start;
    transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}

.gallery-item img {
    display: block;
    height: 180px;
    width: auto;
    max-width: none;
    object-fit: cover;
    transition: transform 400ms var(--ease-out);
}

.gallery-item:hover {
    border-color: var(--accent-line);
    transform: translateY(-2px);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.t-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--space-3);
}

/* форма заявки: плавное раскрытие без «прыжка» */

.apply-form {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    transition: grid-template-rows var(--dur-3) var(--ease), margin-top var(--dur-3) var(--ease);
}

.apply-form.is-open {
    grid-template-rows: 1fr;
    margin-top: var(--space-4);
}

.apply-form-inner {
    overflow: hidden;
    min-height: 0;
}

.apply-form[aria-hidden="true"] .apply-form-inner {
    visibility: hidden;
}

.apply-form .apply-form__body {
    padding: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.apply-form h3 {
    margin: 0 0 var(--space-3);
    font-size: var(--fs-md);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: var(--fs-xs);
    color: var(--text-2);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--field-bg);
    color: var(--text);
    font: inherit;
    font-size: var(--fs-sm);
    transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease),
        background-color var(--dur-2) var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-3);
    opacity: 1;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--accent-line);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-group textarea {
    min-height: 72px;
    resize: vertical;
}

.form-group .required {
    color: var(--red);
}

.form-submit {
    margin-top: var(--space-3);
}

.rank-fieldset {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.rank-fieldset legend {
    padding: 0;
    margin-bottom: 5px;
    font-size: var(--fs-xs);
    color: var(--text-2);
}

.rank-radio-group {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 42px;
    font-size: var(--fs-sm);
}

.rank-radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text);
    cursor: pointer;
}

.rank-radio-group input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

.success-msg,
.error-msg,
.info-msg {
    margin-top: var(--space-3);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    line-height: 1.5;
}

.success-msg {
    border: 1px solid var(--green-line);
    background: var(--green-soft);
    color: var(--green);
}

.error-msg {
    border: 1px solid var(--red-line);
    background: var(--red-soft);
    color: var(--red);
}

.info-msg {
    border: 1px solid var(--blue-line);
    background: var(--blue-soft);
    color: #cfe4ff;
}

/* архив */

.archive-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: 8px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}

.archive-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.archive-card .a-title {
    color: var(--text);
    font-size: var(--fs-base);
    font-weight: 600;
}

.archive-card .a-meta {
    font-size: var(--fs-xs);
    color: var(--text-3);
}

.archive-card .a-badge {
    padding: 3px 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: rgba(148, 163, 184, 0.08);
    color: var(--text-3);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* модальные окна */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    overflow-y: auto;
    background: var(--overlay);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-3) var(--ease), visibility var(--dur-3) linear;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: min(600px, 100%);
    max-height: 82vh;
    overflow-y: auto;
    padding: var(--space-5);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface-solid);
    box-shadow: var(--shadow-3);
    transform: translateY(14px) scale(0.985);
    transition: transform var(--dur-3) var(--ease-out);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-content h3 {
    margin: 0 0 8px;
    padding-right: 32px;
    font-size: var(--fs-lg);
}

.modal-sub {
    margin: 0 0 var(--space-3);
    font-size: var(--fs-xs);
    color: var(--text-3);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}

.modal-close:hover {
    background: var(--accent-soft);
    color: var(--text);
}

.participant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.participant-item:last-child {
    border-bottom: none;
}

.participant-item .p-name {
    color: var(--text);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.participant-item .p-city {
    color: var(--text-3);
    font-size: var(--fs-xs);
}

.participant-item .p-date {
    flex-shrink: 0;
    color: var(--text-3);
    font-size: var(--fs-xs);
}

.no-participants {
    padding: var(--space-5) 0;
    text-align: center;
    color: var(--text-3);
    font-size: var(--fs-sm);
}

/* лайтбокс */

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    background: rgba(2, 5, 12, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-3) var(--ease), visibility var(--dur-3) linear;
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.image-lightbox img {
    max-width: 92vw;
    max-height: 86vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-3);
    transform: scale(0.98);
    transition: transform var(--dur-3) var(--ease-out);
}

.image-lightbox.active img {
    transform: scale(1);
}

.image-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(10, 16, 30, 0.7);
    color: #f2f5f9;
    font-size: 1.1rem;
    cursor: pointer;
}

.image-lightbox-close:hover {
    background: var(--accent);
    color: var(--accent-ink);
}

/* ==========================================================================
   11. РЕЙТИНГ
   ========================================================================== */

.rating-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.stat-card {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    text-align: center;
    transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}

.stat-card:hover {
    border-color: var(--accent-line);
    transform: translateY(-2px);
}

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--accent-light);
    font-variant-numeric: tabular-nums;
}

.stat-card .stat-label {
    margin-top: 2px;
    font-size: var(--fs-xs);
    color: var(--text-3);
}

.podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.podium-item {
    padding: 16px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
    text-align: center;
    transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease);
}

.podium-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
}

.podium-item .p-rank {
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 6px;
}

.podium-item .p-name {
    font-size: var(--fs-base);
    font-weight: 650;
    color: var(--text);
}

.podium-item .p-rating {
    margin-top: 4px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-light);
    font-variant-numeric: tabular-nums;
}

.podium-item .p-city {
    font-size: var(--fs-xs);
    color: var(--text-3);
}

.podium-item.p-1 { border-color: rgba(227, 183, 74, 0.55); }
.podium-item.p-2 { border-color: rgba(203, 213, 225, 0.4); }
.podium-item.p-3 { border-color: rgba(196, 132, 74, 0.5); }

.table-scroll {
    margin-top: var(--space-4);
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

.table-scroll::-webkit-scrollbar {
    height: 8px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
}

.table-hint {
    display: none;
    margin: var(--space-2) 0 0;
    font-size: var(--fs-xs);
    color: var(--text-3);
}

.rating-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}

.rating-table thead th.games-cell,
.rating-table thead th.wins-cell,
.rating-table thead th.losses-cell {
    text-align: right;
}

.rating-table thead th {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-strong);
    background: var(--surface-3);
    color: var(--text-3);
    font-size: var(--fs-xs);
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

.rating-table tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.rating-table tbody tr {
    transition: background-color var(--dur-1) var(--ease);
}

.rating-table tbody tr:hover {
    background: var(--accent-soft);
}

.rating-table tbody tr:last-child td {
    border-bottom: none;
}

.rank-cell {
    width: 64px;
    color: var(--text-2);
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.rank-1 { color: var(--accent-light); }
.rank-2 { color: #dbe3ee; }
.rank-3 { color: #e0a878; }

.player-name {
    color: var(--text);
    font-weight: 600;
}

.player-city {
    color: var(--text-3);
    font-size: var(--fs-xs);
}

.rating-cell {
    color: var(--accent-light);
    font-size: var(--fs-md);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.games-cell,
.wins-cell,
.losses-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.wins-cell { color: var(--green); }
.losses-cell { color: var(--red); }

.winrate-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 110px;
}

.winrate-bar .bar {
    flex: 1;
    max-width: 90px;
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(148, 163, 184, 0.22);
}

.winrate-bar .bar-fill {
    width: var(--wp, 0%);
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #34d399, var(--green));
}

.winrate-text {
    min-width: 34px;
    color: var(--text-2);
    font-size: var(--fs-xs);
    font-variant-numeric: tabular-nums;
}

.cell-last {
    color: var(--text-3);
    font-size: var(--fs-xs);
}

.no-players {
    padding: var(--space-7) var(--space-4);
    text-align: center;
    color: var(--text-2);
}

.no-players .icon {
    margin-bottom: var(--space-2);
    font-size: 2.5rem;
    line-height: 1;
}

/* ==========================================================================
   12. ДОКУМЕНТЫ
   ========================================================================== */

.doc-category {
    margin-bottom: var(--space-5);
}

.doc-category:last-of-type {
    margin-bottom: 0;
}

.doc-category h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 var(--space-3);
    font-size: var(--fs-md);
    font-weight: 650;
    color: var(--accent-light);
}

.doc-category h2 .cat-count {
    color: var(--text-3);
    font-size: var(--fs-xs);
    font-weight: 400;
}

.doc-list {
    display: grid;
    gap: 8px;
}

.doc-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: inherit;
    text-decoration: none;
    transition: border-color var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease),
        transform var(--dur-2) var(--ease);
}

.doc-item:hover {
    border-color: var(--accent-line);
    background: var(--surface-hover);
    transform: translateX(3px);
}

.doc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    font-size: 1.1rem;
}

.doc-info {
    min-width: 0;
}

.doc-info .doc-title {
    display: block;
    color: var(--text);
    font-size: var(--fs-base);
    font-weight: 600;
    line-height: 1.35;
}

.doc-info .doc-desc {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: var(--text-3);
    font-size: var(--fs-xs);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doc-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--text-3);
    font-size: var(--fs-xs);
    font-variant-numeric: tabular-nums;
}

.doc-meta .doc-size {
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    background: rgba(148, 163, 184, 0.12);
}

.doc-download {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    font-size: 0.95rem;
    transition: background-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}

.doc-item:hover .doc-download {
    background: var(--accent-soft-strong);
    transform: translateY(1px);
}

.no-docs {
    padding: var(--space-7) var(--space-4);
    text-align: center;
    color: var(--text-2);
}

.no-docs .icon {
    margin-bottom: var(--space-2);
    font-size: 2.5rem;
    line-height: 1;
}

.info-block {
    margin-top: var(--space-5);
    padding: 14px 16px;
    border: 1px solid var(--blue-line);
    border-radius: var(--radius-sm);
    background: var(--blue-soft);
    color: #cfe4ff;
    font-size: var(--fs-xs);
    line-height: 1.6;
}

.info-block a {
    color: #dbeafe;
    text-decoration: underline;
}

/* ==========================================================================
   13. КОНТАКТЫ
   ========================================================================== */

.contacts-page {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
    gap: var(--space-4);
    margin-top: var(--space-3);
}

.contact-panel,
.contacts-map-card {
    padding: clamp(16px, 2.5vw, 24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-2);
}

.contacts-title-main {
    margin: 0 0 8px;
    font-size: var(--fs-2xl);
}

.contacts-subtitle {
    margin: 0 0 var(--space-4);
    color: var(--text-3);
    font-size: var(--fs-sm);
    line-height: 1.6;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-2);
}

.contacts-block-title {
    margin-bottom: 4px;
    color: var(--text-3);
    font-size: 0.6875rem;
    font-weight: 650;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.contacts-block-body {
    color: var(--text-2);
    font-size: var(--fs-base);
    line-height: 1.6;
}

.contacts-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 4px 12px;
    border: 1px solid var(--green-line);
    border-radius: var(--radius-pill);
    background: var(--green-soft);
    color: var(--green);
    font-size: var(--fs-xs);
}

.contacts-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.contacts-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
    font-size: var(--fs-base);
}

.contacts-row a {
    color: var(--accent-light);
    text-decoration: none;
}

.contacts-row a:hover {
    color: #fff;
    text-decoration: underline;
}

.contacts-person-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: var(--space-4);
    padding: 14px;
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-md);
    background: radial-gradient(circle at 0% 0%, var(--accent-soft), var(--surface-2));
}

.contacts-person-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(160deg, #fdf3d3, var(--accent));
    color: var(--accent-ink);
    font-size: var(--fs-base);
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(227, 183, 74, 0.35);
}

.contacts-person-info {
    font-size: var(--fs-sm);
    color: var(--text-2);
}

.contacts-person-info > div:first-child {
    color: var(--text);
    font-size: var(--fs-base);
    font-weight: 650;
}

.contacts-person-info small {
    display: block;
    margin: 2px 0 6px;
    color: var(--blue);
    font-size: var(--fs-xs);
}

.contacts-person-info a {
    color: var(--text-2);
}

.contacts-person-info a:hover {
    color: var(--accent-light);
}

.contacts-map-title {
    margin: 0 0 8px;
    font-size: var(--fs-xl);
}

.contacts-map-note {
    margin: 0 0 var(--space-3);
    color: var(--text-3);
    font-size: var(--fs-xs);
    line-height: 1.6;
}

.contacts-map-wrapper {
    overflow: hidden;
    min-height: 260px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}

.contacts-map-iframe {
    display: block;
    width: 100%;
    height: 340px;
    border: 0;
    filter: saturate(0.95);
}

.contacts-map-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: var(--space-3);
    color: var(--text-3);
    font-size: var(--fs-xs);
}

.contacts-map-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.contacts-map-link {
    color: var(--blue);
    text-decoration: none;
    white-space: nowrap;
}

.contacts-map-link:hover {
    color: #dbeafe;
    text-decoration: underline;
}

.contacts-map-short {
    max-width: 280px;
    line-height: 1.5;
}

/* ==========================================================================
   14. О ФЕДЕРАЦИИ
   ========================================================================== */

.section-about h2 {
    margin: var(--space-5) 0 var(--space-2);
    font-size: var(--fs-lg);
    color: var(--accent-light);
}

.section-about h3 {
    margin: var(--space-4) 0 4px;
    font-size: var(--fs-md);
}

.section-about p,
.section-about li {
    color: var(--text-2);
    font-size: var(--fs-base);
    line-height: 1.7;
}

.section-about ul {
    padding-left: 1.15em;
}

.charter-card {
    margin-top: var(--space-4);
    padding: clamp(14px, 2.5vw, 22px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}

.charter-card h3 {
    margin: 0 0 8px;
    font-size: var(--fs-md);
}

.charter-card .ch-sub {
    margin: 0 0 4px;
    color: var(--text-3);
    font-size: var(--fs-xs);
}

.charter-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-3);
}

.charter-info-item {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.charter-info-item h4 {
    margin: 0 0 6px;
    color: var(--accent-light);
    font-size: var(--fs-sm);
    font-weight: 650;
}

.charter-info-item p {
    margin: 0 0 4px;
    font-size: var(--fs-sm);
    line-height: 1.55;
}

.charter-info-item ul {
    margin: 4px 0 0;
    padding-left: 1.1em;
}

.charter-info-item li {
    margin-bottom: 2px;
    font-size: var(--fs-sm);
    line-height: 1.5;
}

.charter-note {
    margin-top: 6px;
    color: var(--text-3);
    font-size: var(--fs-xs);
}

.charter-card .ch-download {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

.charter-card .ch-download .ch-date {
    color: var(--text-3);
    font-size: var(--fs-xs);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent-light);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease),
        transform var(--dur-2) var(--ease);
}

.download-btn:hover {
    background: var(--accent-soft-strong);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.about-note {
    margin-top: var(--space-3);
    color: var(--text-3);
    font-size: var(--fs-xs);
    font-style: italic;
}

/* ==========================================================================
   15. СТРАНИЦА НОВОСТИ (одна запись)
   ========================================================================== */

.article {
    max-width: 880px;
    margin-inline: auto;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-3);
    font-size: var(--fs-xs);
}

.article-title {
    margin: 0 0 var(--space-3);
    font-size: var(--fs-2xl);
    line-height: 1.25;
}

.article-figure {
    margin: 0 0 var(--space-4);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    line-height: 0;
}

.article-figure img {
    display: block;
    width: 100%;
    transition: transform 600ms var(--ease-out);
}

.article-figure:hover img {
    transform: scale(1.015);
}

.article-body {
    color: var(--text-2);
    font-size: var(--fs-base);
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.article-body p {
    margin-bottom: var(--space-3);
}

.article-attachments {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
    font-size: var(--fs-sm);
}

.article-attachments figure {
    margin: var(--space-3) 0 0;
}

.article-attachments img {
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.article-attachments .doc-line {
    margin-top: var(--space-2);
    color: var(--text-2);
}

.article-attachments .doc-line a {
    color: #c7b6ff;
}

.video-frame {
    position: relative;
    margin-top: 10px;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-deep);
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-note {
    margin-top: 6px;
    font-size: var(--fs-xs);
}

.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--space-5);
}

/* список новостей */

.list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.list-head-title {
    margin: 0 0 4px;
    font-size: var(--fs-2xl);
}

.list-head-meta,
.list-head-count {
    color: var(--text-3);
    font-size: var(--fs-xs);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-5);
    font-size: var(--fs-sm);
}

.pagination a,
.pagination span {
    padding: 7px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    color: var(--text-2);
    text-decoration: none;
    transition: border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease),
        background-color var(--dur-2) var(--ease);
}

.pagination a:hover {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--text);
}

.pagination .page-current {
    border-color: var(--border);
    background: var(--surface-2);
    color: var(--text-3);
}

/* ==========================================================================
   16. REVEAL
   ========================================================================== */

.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal-group > .reveal:nth-child(1) { --reveal-delay: 0ms; }
.reveal-group > .reveal:nth-child(2) { --reveal-delay: 60ms; }
.reveal-group > .reveal:nth-child(3) { --reveal-delay: 120ms; }
.reveal-group > .reveal:nth-child(4) { --reveal-delay: 180ms; }
.reveal-group > .reveal:nth-child(5) { --reveal-delay: 240ms; }
.reveal-group > .reveal:nth-child(6) { --reveal-delay: 300ms; }
.reveal-group > .reveal:nth-child(7) { --reveal-delay: 360ms; }
.reveal-group > .reveal:nth-child(8) { --reveal-delay: 420ms; }
.reveal-group > .reveal:nth-child(n + 9) { --reveal-delay: 460ms; }

/* ==========================================================================
   17. АДАПТИВ
   ========================================================================== */

@media (max-width: 1080px) {
    .menu-icon {
        display: none;
    }

    .menu a {
        padding: 8px 9px;
    }

    .menu a::after {
        left: 9px;
        right: 9px;
    }

    .header-contact {
        display: none;
    }
}

@media (max-width: 920px) {
    .desktop-nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .header-right {
        gap: var(--space-2);
    }

    .logo-text-main {
        font-size: 0.875rem;
    }

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-5);
    }

    .contacts-page {
        grid-template-columns: 1fr;
    }

    .contacts-map-card {
        order: -1;
    }

    .contacts-map-short {
        max-width: 100%;
    }

    .section-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    :root {
        --header-h: 60px;
    }

    .logo-text-sub {
        display: none;
    }

    .logo-min {
        width: 34px;
        height: 34px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contacts-grid,
    .contacts-row {
        grid-template-columns: 1fr;
    }

    .charter-info-grid {
        grid-template-columns: 1fr;
    }

    .podium {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 140px;
    }

    .doc-item {
        grid-template-columns: auto minmax(0, 1fr) auto;
        row-gap: 8px;
    }

    .doc-meta {
        grid-column: 2 / 3;
        justify-content: flex-start;
    }

    .doc-download {
        grid-row: 1 / 3;
        grid-column: 3 / 4;
    }

    .table-hint {
        display: block;
    }

    .news-grid,
    .news-list-grid {
        grid-template-columns: 1fr;
    }

    .slider-track {
        aspect-ratio: 4 / 3;
    }

    .slider-arrow {
        width: 34px;
        height: 34px;
    }
}

/* таблица рейтинга в карточном виде на узких экранах */

@media (max-width: 640px) {
    .rating-table,
    .rating-table tbody,
    .rating-table tr,
    .rating-table td {
        display: block;
        width: 100%;
    }

    .rating-table thead {
        display: none;
    }

    .table-scroll {
        overflow: visible;
        border: 0;
        background: none;
    }

    .rating-table tr {
        position: relative;
        margin-bottom: 10px;
        padding: 12px 14px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--surface-2);
    }

    .rating-table tbody td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        padding: 4px 0;
        border-bottom: 0;
        text-align: right;
    }

    .rating-table tbody td::before {
        content: attr(data-label);
        flex-shrink: 0;
        color: var(--text-3);
        font-size: var(--fs-xs);
        font-weight: 500;
        text-align: left;
    }

    .rank-cell {
        width: auto;
        font-size: var(--fs-md);
        color: var(--accent-light);
    }

    .player-name {
        font-size: var(--fs-base);
    }

    .winrate-bar {
        min-width: 0;
    }

    .cell-last {
        text-align: right;
    }
}

@media (max-width: 420px) {
    .slide-caption {
        padding: 14px;
    }

    .slide-counter {
        display: none;
    }

    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-content {
        padding: var(--space-4);
    }
}

/* ==========================================================================
   18. PREFERS-REDUCED-MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .news-card:hover,
    .stat-card:hover,
    .podium-item:hover,
    .doc-item:hover,
    .tournament-card:hover,
    .contacts-card:hover {
        transform: none;
    }

    .slider-track {
        transition: none;
    }
}

/* ==========================================================================
   19. СВЕТЛАЯ ТЕМА
   ========================================================================== */

@media (prefers-color-scheme: light) {
    :root {
        color-scheme: light;

        --bg: #f4f6fb;
        --bg-deep: #eaeef6;
        --bg-glow-1: rgba(180, 138, 30, 0.08);
        --bg-glow-2: rgba(59, 130, 246, 0.06);

        --header-bg: rgba(255, 255, 255, 0.9);
        --header-border: rgba(15, 23, 42, 0.1);

        --surface: #ffffff;
        --surface-solid: #ffffff;
        --surface-2: #f7f9fd;
        --surface-3: #eef2f9;
        --surface-hover: #ffffff;
        --field-bg: #ffffff;
        --overlay: rgba(15, 23, 42, 0.45);

        --text: #0f172a;
        --text-2: #3d4a63;
        --text-3: #5b6880;

        --accent: #a5761a;
        --accent-light: #8a6112;
        --accent-dark: #6f4d0c;
        --accent-ink: #ffffff;
        --accent-soft: rgba(165, 118, 26, 0.09);
        --accent-soft-strong: rgba(165, 118, 26, 0.16);
        --accent-line: rgba(165, 118, 26, 0.32);
        --accent-glow: rgba(165, 118, 26, 0.22);

        --blue: #1f5fbf;
        --blue-soft: rgba(31, 95, 191, 0.08);
        --blue-line: rgba(31, 95, 191, 0.32);
        --green: #1a7f4b;
        --green-soft: rgba(26, 127, 75, 0.09);
        --green-line: rgba(26, 127, 75, 0.32);
        --red: #b42318;
        --red-soft: rgba(180, 35, 24, 0.08);
        --red-line: rgba(180, 35, 24, 0.3);

        --border: rgba(15, 23, 42, 0.1);
        --border-strong: rgba(15, 23, 42, 0.2);
        --focus: #0f4c9a;

        --shadow-1: 0 1px 3px rgba(15, 23, 42, 0.08);
        --shadow-2: 0 8px 26px rgba(15, 23, 42, 0.09);
        --shadow-3: 0 20px 50px rgba(15, 23, 42, 0.16);
        --shadow-accent: 0 10px 26px rgba(165, 118, 26, 0.2);
    }

    body {
        background-image:
            radial-gradient(ellipse 90% 60% at 15% 0%, var(--bg-glow-1) 0%, transparent 60%),
            radial-gradient(ellipse 80% 55% at 90% 100%, var(--bg-glow-2) 0%, transparent 60%),
            linear-gradient(180deg, #fbfcfe 0%, var(--bg) 45%, var(--bg-deep) 100%);
    }

    .site-header {
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    }

    .logo-min {
        background: linear-gradient(135deg, #f7eed7, #efe1bf);
    }

    .logo-text-main {
        color: #4a3609;
    }

    .menu a:hover {
        background: rgba(15, 23, 42, 0.05);
    }

    .menu a.active,
    .menu a[aria-current="page"] {
        color: #3a2a06;
    }

    .more-menu {
        background: #ffffff;
    }

    .btn--ghost {
        --btn-bg: #ffffff;
        --btn-fg: var(--text-2);
    }

    .btn--accent {
        --btn-fg: #ffffff;
        --btn-bg: linear-gradient(135deg, #a5761a 0%, #8a6112 100%);
        color: #ffffff;
    }

    .btn--accent:hover {
        color: #ffffff;
    }

    .btn--blue {
        --btn-fg: #ffffff;
        --btn-bg: linear-gradient(135deg, #2a6ac9 0%, #1f5fbf 100%);
    }

    .btn--blue:hover {
        color: #ffffff;
    }

    .mobile-nav-overlay {
        background: radial-gradient(ellipse at 25% 10%, #ffffff, #eef2f9);
    }

    .mobile-nav-item {
        background: #ffffff;
    }

    .mobile-nav-item:hover {
        background: #f3f6fc;
    }

    .mobile-nav-item:has(a[aria-current="page"]) {
        background: var(--accent-soft);
    }

    .mobile-nav-link,
    .mobile-nav-contacts strong {
        color: var(--text);
    }

    .slide-caption {
        color: #ffffff;
    }

    .slide-title {
        color: #ffffff;
    }

    .slide-text {
        color: #eef3fa;
    }

    .slider-dots button {
        background: rgba(255, 255, 255, 0.55);
    }

    .site-footer {
        background: linear-gradient(180deg, #ffffff, #f1f4fa);
    }

    .article-attachments .doc-line a {
        color: #4c3fa8;
    }

    .info-block {
        color: #17427f;
    }

    .info-block a {
        color: #12467f;
    }

    .info-msg {
        color: #17427f;
    }

    .contacts-person-card {
        background: radial-gradient(circle at 0% 0%, var(--accent-soft), #ffffff);
    }

    .charter-card,
    .tournament-card,
    .stat-card,
    .news-card,
    .doc-item,
    .archive-card,
    .contacts-map-wrapper {
        box-shadow: var(--shadow-1);
    }
}

/* ==========================================================================
   20. ПЕЧАТЬ
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .mobile-nav-overlay,
    .slider-arrow,
    .slider-dots,
    .skip-link,
    .news-actions,
    .t-actions {
        display: none !important;
    }

    body {
        background: #fff;
        color: #111;
    }

    .panel,
    .section-main,
    .section-news,
    .section-competitions,
    .section-ratings,
    .section-documents,
    .section-about {
        border: 1px solid #ddd;
        box-shadow: none;
    }

    a {
        color: #111;
    }
}
