/* BEGIN typography.css */

/*
 * typography.css
 *
 * Описание: Подключение шрифтов и базовые правила типографики для заголовков и ключевых текстовых блоков.
 * Компоненты: @font-face, .main h1, .main h2, .main h3, .profile-info__name, .rules-doc__body h2, .legal-doc__body h1
 * Используется на: все страницы и шаблоны проекта
 *
 * Последнее обновление: 2026-03
 */

@font-face {
    font-family: Roboto;
    src: url("../fonts/Roboto-Regular.303c6d9e1616.ttf") format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Roboto;
    src: url("../fonts/Roboto-Bold.dd5415b95e67.ttf") format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url("../fonts/OpenSans-Regular.94d168f74b7d.ttf") format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url("../fonts/OpenSans-SemiBold.ebebb4b54355.ttf") format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url("../fonts/OpenSans-Bold.6bbd5cf43b71.ttf") format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Заголовки и навигация: Roboto */
.main h1,
.main h2,
.main h3,
.profile-info__name,
.court-detail__title,
.court-detail__section-title,
.shop-detail__title,
.shop-detail__desc-title,
.feedback-modal__title,
.rules-doc__title,
.rules-doc__body h2,
.tournament-table-title,
.page-title--legal,
.legal-doc__body h1,
.legal-doc__body h2 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* END typography.css */

/* BEGIN variables.css */

/*
 * variables.css
 *
 * Описание: Глобальные CSS-переменные темы (цвета, типографика, отступы, радиусы, тени, loading/hero параметры).
 * Компоненты: :root, --color-*, --font-*, --spacing-*, --radius-*, --loading-*
 * Используется на: все страницы и шаблоны проекта
 *
 * Последнее обновление: 2026-03
 */

/* CSS Variables */
:root {
    /* Colors */
    --color-bg: #012b1c;
    --color-bg-secondary: #012b1c;
    --color-bg-card: #001f14;
    --color-bg-elevated: #012b1c;
    --color-primary: #A6824A;
    --color-accent: #83530cd3;

    /* заголовки, «теннису», Fan в логотипе */
    --color-primary-gradient: linear-gradient(90deg, #A6824A 0%, #390517 100%);
    --color-primary-dark: #03110D;
    --color-primary-transparent: rgb(166 130 74 / 15%);
    --color-text: silver;
    --color-text-secondary: #A6824A;
    --color-text-muted: silver;
    --color-border: #A6824A;
    --color-border-light: #012b1c;
    --color-success: #A6824A;
    --color-warning: #013220;
    --color-error: #a00000;
    --color-info: #A6824A;

    /* Typography */
    --font-family: 'Open Sans', -apple-system, blinkmacsystemfont, 'Segoe UI', sans-serif;
    --font-heading: 'Roboto', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 50%);
    --shadow-md: 0 4px 6px rgb(0 0 0 / 50%);
    --shadow-lg: 0 10px 20px rgb(0 0 0 / 50%);
    --shadow-glow: 0 0 20px rgb(163 133 96 / 30%);

    /* Hero liquid glass: высота и сдвиг */
    --hero-glass-padding-y: var(--spacing-xl);
    --hero-glass-padding-x: var(--spacing-2xl);
    --hero-glass-min-height: 0;
    --hero-content-offset-y: -15rem;
}

:root {
    --loading-accent: #c7ff00;
    --loading-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --loading-shadow: 0 10px 28px rgb(0 0 0 / 0.28);
}

/* END variables.css */

/* BEGIN reset.css */

/*
 * reset.css
 *
 * Описание: Базовый reset и общие нормализации HTML-элементов, включая мобильные корректировки.
 * Компоненты: html, body, .main, a, img, ul, ol, button, input, select, textarea
 * Используется на: все страницы и шаблоны проекта
 *
 * Последнее обновление: 2026-03
 */

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    position: relative;
    overflow-x: hidden;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(1200px 1800px at -300px 50%, rgba(0, 31, 20, 0.8) 0%, transparent 65%),
        radial-gradient(1200px 1800px at 100px 60%, rgba(1, 50, 35, 0.7) 0%, transparent 70%),
        radial-gradient(1200px 1800px at 450px 70%, rgba(1, 65, 45, 0.6) 0%, transparent 75%);
    filter: blur(10px);
    opacity: 0.9;
    pointer-events: none;
    z-index: -1;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

@media (width <= 480px) {
    html {
        font-size: 14px;
    }

    body {
        font-size: var(--font-size-sm);
    }
}

.main {
    flex: 1;
    padding-bottom: var(--spacing-3xl);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent images from overflowing on mobile */
@media (width <= 768px) {
    img {
        width: 100%;
        height: auto;
    }
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* END reset.css */

/* BEGIN pricing.css */

/*
 * pricing.css
 *
 * Описание: Стили страницы тарифов и подписок, включая intro, FAQ и анимацию монеты.
 * Компоненты: .pricing-intro, .pricing-faq, .pricing-grid, .pricing-card
 * Используется на: страница тарифов/подписок
 *
 * Последнее обновление: 2026-03
 */

/* Анимация вращающегося логотипа (используется в auth.css и nav.css) */
@keyframes coin-rotate {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

.pricing-intro {
    max-width: 800px;
    margin: var(--spacing-xl) auto;
    text-align: center;
}

.pricing-intro__text {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.club-plan-change-page .page-subtitle,
.club-plan-change-page__intro,
.club-plan-change-page__intro .pricing-intro__text {
    color: silver;
}

.club-plan-change-page__grid.pricing-grid {
    grid-template-columns: minmax(300px, 420px);
    justify-content: center;
}

.pricing-faq {
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-3xl);
    border-top: 1px solid var(--color-border);
}

.pricing-faq__title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.pricing-faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-faq__item {
    margin-bottom: var(--spacing-xl);
}

.pricing-faq__question {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.pricing-faq__answer {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

@media (width <= 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .club-plan-change-page__grid.pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: var(--spacing-lg);
    }

    .pricing-card__features {
        min-height: auto;
    }
}

/* END pricing.css */

/* BEGIN nav.css */

/*
 * nav.css
 *
 * Описание: Шапка сайта и навигация (desktop/mobile), включая выпадающие меню и переключатели.
 * Компоненты: .header, .nav, .nav-toggle, .logo, .nav-menu-desktop, .nav-dropdown, .nav-link
 * Используется на: базовый шаблон и все страницы с глобальной навигацией
 *
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgb(15 15 15 / 95%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    width: 100%;
    position: relative;
    min-height: 50px;
    gap: var(--spacing-md);
}

@media (width >= 993px) {
    .nav {
        flex-wrap: nowrap;
    }
}

/* Toggle (Hamburger) - Mobile Menu Button */
.nav-toggle {
    display: none;

    /* Hidden on desktop */
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    background: transparent;
    padding: 8px;
    border: none;
    z-index: 1100;
    flex-shrink: 0;
}

@media (width <= 992px) {
    .nav-toggle {
        display: flex;
    }
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    flex-shrink: 0;
    margin: 0 auto;

    /* Center on mobile */
}

@media (width >= 993px) {
    .logo {
        margin: 0;

        /* Reset margin on desktop */
    }
}

.coin-logo {
    width: 40px;
    height: 40px;
    display: block;
    animation: coin-rotate 3s ease-in-out infinite alternate;
    transform-origin: center;
    transform-style: preserve-3d;
    background: transparent;
    will-change: transform;
}

.logo-text {
    font-size: var(--font-size-lg);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--color-accent);
}

/* Desktop Navigation Menu */
.nav-menu-desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.nav-menu-desktop .btn {
    min-width: 0;
    padding: 0.5rem 0.85rem;
    font-size: 1rem;
    white-space: nowrap;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    position: relative;
    color: var(--color-text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.nav-menu-desktop .btn::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.2rem;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.25s ease, left 0.25s ease;
}

.nav-menu-desktop .btn:hover {
    color: var(--color-text);
    background: rgb(166 130 74 / 12%);
    border-color: rgb(166 130 74 / 30%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
}

.nav-menu-desktop .btn:hover::after {
    width: 80%;
    left: 10%;
}

/* Mobile Navigation Menu (hidden by default) */
.nav-menu-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-md);
    flex-direction: column;
    gap: var(--spacing-xs);
    z-index: 999;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    box-shadow: 0 10px 20px rgb(0 0 0 / 50%);
}

.nav-menu-mobile.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-menu-link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast), color var(--transition-fast);
    font-size: var(--font-size-sm);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.nav-menu-link:hover {
    background: var(--color-primary-transparent);
    color: var(--color-primary);
}

/* Nav Auth (User Actions) */
.nav-auth {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-logout {
    display: inline;
}

.nav-notify {
    position: relative;
}

/* Responsive Mobile Navigation */
@media (width <= 1024px) {
    .nav {
        display: grid;
        grid-template-columns: 32px 1fr 1fr;
        align-items: center;
        gap: 0;
        position: relative;
    }

    .nav-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        grid-column: 1;
    }

    .nav .logo {
        grid-column: 2;
        justify-self: center;
        margin: 0;
        position: relative;
        left: auto;
        transform: none;
        gap: var(--spacing-sm);
        z-index: 1001;
    }

    .nav-menu-desktop {
        display: none;
    }

    .nav-menu-mobile {
        grid-column: 1 / -1;
    }

    .nav-auth {
        grid-column: 3;
        justify-self: end;
        margin-left: 0;
        padding-left: 0;
        min-width: 0;
        display: flex;
        align-items: center;
        z-index: 1002;
    }

    .nav-auth .btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.85rem;
        width: auto;
        white-space: nowrap;
    }

    /* Узкий блок: кнопка и меню по контенту, без пустого места справа */
    .nav-dropdown {
        width: max-content;
        min-width: 140px;
        max-width: 150px;
    }

    .nav-dropdown-toggle {
        width: 100%;
        max-width: none;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 0.3rem 1.3rem 0.3rem 0.5rem;
        position: relative;
    }

    .nav-dropdown-toggle .nav-dropdown-arrow {
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.7em;
    }

    .nav-dropdown.open .nav-dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
        z-index: 2001;
    }

    .nav .coin-logo {
        width: 36px;
        height: 36px;
    }

    .logo-text {
        font-size: 1rem;
    }
}

.notify-badge {
    background: #ff2a2a;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    margin-left: var(--spacing-xs);
    text-shadow:
        -1px -1px 0 #b30000,
        1px -1px 0 #b30000,
        -1px 1px 0 #b30000,
        1px 1px 0 #b30000,
        0 0 10px rgb(255 40 40 / 75%);
    box-shadow: 0 0 0 3px rgb(255 42 42 / 35%), 0 8px 18px rgb(255 42 42 / 55%);
}

.feedback-widget__badge {
    position: absolute;
    top: -9px;
    right: -9px;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: #ff2a2a;
    color: #fff;
    border: 2px solid #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    text-shadow:
        -1px -1px 0 #b30000,
        1px -1px 0 #b30000,
        -1px 1px 0 #b30000,
        1px 1px 0 #b30000,
        0 0 10px rgb(255 40 40 / 75%);
    box-shadow: 0 0 0 3px rgb(255 42 42 / 35%), 0 8px 18px rgb(255 42 42 / 55%);
    animation: feedback-widget-pulse 1.4s ease-in-out infinite;
}

/* Navigation Dropdown: кнопка и меню */
.nav-dropdown {
    position: relative;
    min-width: 220px;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    gap: var(--spacing-sm);
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    background: rgb(166 130 74 / 20%);
    border: 1px solid rgb(166 130 74 / 40%);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px;
}

.user-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    text-align: left;
}


.nav-user-avatar-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.25rem;
}

.nav-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-user-avatar--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(166 130 74 / 60%);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
}

@media (width <= 1024px) {
    .nav-dropdown {
        min-width: 0;
        max-width: 160px;
    }

    .nav-dropdown-toggle {
        padding-left: 0.5rem;
    }

    .nav-user-avatar-wrap {
        margin-right: 0.35rem;
    }

    .user-name-text {
        font-size: 0.8rem;
    }
}
.nav-dropdown-toggle:hover {
    background: rgb(166 130 74 / 30%);
    border-color: var(--color-primary);
    box-shadow: 0 2px 12px rgb(166 130 74 / 25%);
    transform: translateY(-1px);
}

.nav-dropdown-arrow {
    flex-shrink: 0;
    font-size: 0.6rem;
    opacity: 0.9;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    background: var(--color-bg-elevated);
    border: 1px solid rgb(166 130 74 / 35%);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs);
    box-shadow: 0 8px 24px rgb(0 0 0 / 35%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.25s;
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown.open .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-dropdown-content li {
    list-style: none;
    margin: 0;
}

.nav-dropdown-content li a,
.nav-dropdown-content li form button {
    display: block;
    width: 100%;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-family: var(--font-family);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-content li form button {
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
}

.nav-dropdown-content li a:hover,
.nav-dropdown-content li form button:hover {
    background: rgb(166 130 74 / 15%);
    color: var(--color-primary);
}

@media (width <= 992px) {
    .nav-dropdown {
        min-width: 142px;
        max-width: 160px;
    }

    .nav-dropdown-toggle {
        padding: 0.4rem 1.5rem 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .nav-dropdown-content li a,
    .nav-dropdown-content li form button {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
}

@media (width <= 480px) {
    .nav-dropdown {
        min-width: 130px;
        max-width: 150px;
    }

    .nav-dropdown-toggle {
        padding: 0.35rem 1.4rem 0.35rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* END nav.css */

/* BEGIN club-header.css */

/*
 * club-header.css
 *
 * Описание: Шапка личного кабинета игрока клуба — бренд, навигация, переключатель клубов.
 * Компоненты: .club-header-bar, .club-header-bar__inner, .club-header-bar__brand, .club-header-bar__nav
 * Используется на: страницы ЛК игрока клуба
 *
 * Последнее обновление: 2026-03
 */

/* --------------------------------------------------------------------------
   Club header bar (ЛК игрока клуба)
   -------------------------------------------------------------------------- */
.club-header-bar {
    padding: var(--spacing-sm) 0;
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border-light);
}
.club-header-bar__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}
.club-header-bar__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
}
.club-header-bar__brand:hover {
    color: var(--color-text-secondary);
}
.club-header-bar__logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}
.club-header-bar__logo-placeholder {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border-radius: 6px;
    font-size: 1.2rem;
}
.club-header-bar__name {
    font-size: var(--font-size-lg);
}
.club-header-bar__nav {
    display: flex;
    gap: var(--spacing-lg);
}
.club-header-bar__link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--font-size-sm);
}
.club-header-bar__link:hover {
    color: var(--color-text-secondary);
}
.club-header-bar__meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}
.club-header-bar__badge {
    font-size: var(--font-size-xs);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}
.club-header-bar__badge--paid {
    background: rgba(0, 80, 50, 0.5);
    color: var(--color-success);
}
.club-header-bar__badge--unpaid {
    background: rgba(160, 0, 0, 0.2);
    color: #e88;
}
.club-header-bar__badge--expiring {
    background: rgba(166, 130, 74, 0.3);
    color: var(--color-text-secondary);
}
.club-header-bar__dropdown {
    position: relative;
}
.club-header-bar__switch-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.25rem 0.5rem;
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.club-header-bar__switch-btn:hover {
    background: var(--color-primary-transparent);
}
.club-header-bar__dropdown-list {
    position: absolute;
    top: 100%;
    right: 0;
    margin: 4px 0 0;
    padding: var(--spacing-xs);
    list-style: none;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    min-width: 180px;
    z-index: 10;
}
.club-header-bar__club-item {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--font-size-sm);
}
.club-header-bar__club-item:hover {
    background: var(--color-primary-transparent);
    color: var(--color-text-secondary);
}
.club-header-bar__club-item--current {
    font-weight: 600;
    color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   Club top nav pill (клубная шапка: плашка с названием клуба)
   -------------------------------------------------------------------------- */

.header--club .nav-menu-desktop {
    align-items: center;
    gap: var(--spacing-md);
}

@media (width > 1024px) {
    .header--club .nav-menu-desktop {
        display: flex;
    }
}

@media (width <= 1024px) {
    .header--club .nav-menu-desktop {
        display: none !important;
    }

    .header--club .nav-auth {
        display: none;
    }

    /* Убираем position: relative с nav, чтобы меню позиционировалось по header */
    .header--club .nav {
        grid-template-columns: 32px 1fr;
        overflow: visible;
        position: static;
    }

    .header--club .nav .logo {
        grid-column: 2;
    }

    .header--club .container {
        overflow: visible;
        position: static;
    }

    /* Меню — прямой потомок header (не container), position: static
       Переопределяем position: absolute из nav.css */
    .header--club .club-nav-mobile--fullwidth,
    .header--club .club-nav-mobile--fullwidth.active {
        position: static !important;
        width: 100%;
        box-sizing: border-box;
        top: auto;
        left: auto;
        right: auto;
    }
}

.club-top-nav__club-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    background: linear-gradient(145deg, rgba(5, 46, 22, 0.95), rgba(2, 44, 34, 0.98));
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 999px;
    text-decoration: none;
    color: #fefce8;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.club-top-nav__club-pill--button {
    appearance: none;
    cursor: pointer;
    font: inherit;
}

.club-top-nav__club-pill:hover {
    background: linear-gradient(145deg, rgba(6, 56, 28, 0.98), rgba(3, 54, 42, 0.98));
    border-color: rgba(201, 168, 76, 0.5);
    color: #fefce8;
}

.club-top-nav__switcher {
    position: relative;
}

.club-top-nav__switcher::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 18px;
}

.club-top-nav__club-caret {
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(250, 204, 21, 0.9);
    border-bottom: 2px solid rgba(250, 204, 21, 0.9);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.club-top-nav__switcher:hover .club-top-nav__club-caret,
.club-top-nav__switcher:focus-within .club-top-nav__club-caret {
    transform: rotate(225deg) translateY(-1px);
}

.club-top-nav__switcher-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: min(360px, 75vw);
    padding: 14px;
    background:
        radial-gradient(circle at top left, rgba(250, 204, 21, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(8, 28, 23, 0.98), rgba(2, 16, 12, 0.98));
    border: 1px solid rgba(201, 168, 76, 0.24);
    border-radius: 22px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;
    z-index: 30;
}

.club-top-nav__switcher:hover .club-top-nav__switcher-menu,
.club-top-nav__switcher:focus-within .club-top-nav__switcher-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.club-top-nav__switcher-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 2px 12px;
}

.club-top-nav__switcher-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(250, 204, 21, 0.78);
    margin-bottom: 4px;
}

.club-top-nav__switcher-title {
    color: #fefce8;
    font-size: 0.96rem;
    font-weight: 700;
}

.club-top-nav__switcher-all {
    color: #fde68a;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.club-top-nav__switcher-all:hover {
    color: #fff7cc;
}

.club-top-nav__switcher-list {
    display: grid;
    gap: 8px;
}

.club-top-nav__switcher-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 16px;
    border: 1px solid rgba(201, 168, 76, 0.08);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    color: #fefce8;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.club-top-nav__switcher-item:hover,
.club-top-nav__switcher-item:focus-visible {
    transform: translateY(-1px);
    background: rgba(250, 204, 21, 0.08);
    border-color: rgba(250, 204, 21, 0.24);
    color: #fff;
}

.club-top-nav__switcher-item--current {
    background: linear-gradient(145deg, rgba(22, 101, 52, 0.24), rgba(8, 47, 73, 0.18));
    border-color: rgba(74, 222, 128, 0.2);
}

.club-top-nav__switcher-logo {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.club-top-nav__switcher-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.club-top-nav__switcher-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.club-top-nav__switcher-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.club-top-nav__switcher-name {
    font-size: 0.92rem;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.club-top-nav__switcher-badge {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.16);
    color: #bbf7d0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.club-top-nav__switcher-meta {
    font-size: 0.78rem;
    color: rgba(250, 250, 249, 0.68);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.club-top-nav__switcher-action {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fde68a;
    white-space: nowrap;
}

.club-top-nav__club-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 250, 251, 0.12);
}

.club-top-nav__club-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.club-top-nav__club-logo-fallback {
    font-size: 0.85rem;
    font-weight: 700;
    color: #facc15;
}

.club-top-nav__club-name {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Club nav mobile (мобильное меню клубной панели)
   -------------------------------------------------------------------------- */
.club-nav-mobile {
    background: linear-gradient(180deg, rgba(5, 30, 20, 0.99), rgba(2, 20, 14, 0.99)) !important;
    border-bottom-color: rgba(201, 168, 76, 0.25) !important;
    padding: 16px !important;
    z-index: 1001;
}

.club-nav-mobile__pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(145deg, rgba(5, 46, 22, 0.95), rgba(2, 44, 34, 0.98));
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 16px;
    text-decoration: none;
    color: #fefce8;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.club-nav-mobile__switcher {
    display: grid;
    gap: 10px;
}

.club-nav-mobile__switcher-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(145deg, rgba(5, 46, 22, 0.95), rgba(2, 44, 34, 0.98));
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 16px;
    color: #fefce8;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
}

.club-nav-mobile__switcher-copy {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 0;
    text-align: left;
}

.club-nav-mobile__switcher-chevron {
    width: 11px;
    height: 11px;
    border-right: 2px solid rgba(250, 204, 21, 0.9);
    border-bottom: 2px solid rgba(250, 204, 21, 0.9);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.club-nav-mobile__switcher-toggle[aria-expanded="true"] .club-nav-mobile__switcher-chevron {
    transform: rotate(225deg);
}

.club-nav-mobile__switcher-list {
    display: grid;
    gap: 8px;
}

.club-nav-mobile__switcher-list[hidden] {
    display: none;
}

.club-nav-mobile__club-option {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    text-decoration: none;
    color: #fefce8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 168, 76, 0.12);
}

.club-nav-mobile__club-option--current {
    background: linear-gradient(145deg, rgba(22, 101, 52, 0.24), rgba(8, 47, 73, 0.18));
    border-color: rgba(74, 222, 128, 0.24);
}

.club-nav-mobile__club-option--all {
    background: rgba(250, 204, 21, 0.08);
}

.club-nav-mobile__club-logo,
.club-nav-mobile__club-option-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.09);
    color: #fde68a;
    font-size: 1.1rem;
    font-weight: 700;
}

.club-nav-mobile__club-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.club-nav-mobile__club-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.club-nav-mobile__club-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.club-nav-mobile__club-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.92rem;
    font-weight: 700;
}

.club-nav-mobile__club-meta {
    font-size: 0.78rem;
    color: rgba(250, 250, 249, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.club-nav-mobile__club-badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.16);
    color: #bbf7d0;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.club-nav-mobile__pill .club-top-nav__club-logo {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.club-nav-mobile__pill .club-top-nav__club-logo-fallback {
    font-size: 1rem;
}

.club-nav-mobile__club-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.club-nav-mobile__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
}

.club-nav-mobile__link {
    display: block;
    padding: 14px 16px;
    color: rgba(249, 250, 251, 0.9);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s;
}

.club-nav-mobile__link:hover {
    background: rgba(201, 168, 76, 0.15);
    color: #facc15;
}

.club-nav-mobile__link--primary {
    background: linear-gradient(145deg, #16a34a, #15803d);
    color: #fff;
    text-align: center;
    margin-top: 8px;
}

.club-nav-mobile__link--primary:hover {
    background: linear-gradient(145deg, #22c55e, #16a34a);
    color: #fff;
}

.club-nav-mobile__user {
    padding-top: 12px;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.club-nav-mobile__user-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
    background: linear-gradient(145deg, rgba(100, 70, 30, 0.4), rgba(60, 45, 20, 0.5));
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 12px;
    color: #fefce8;
}

.club-nav-mobile__dropdown {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 8px 0 0;
    margin-top: 8px;
}

.club-nav-mobile__dropdown li a,
.club-nav-mobile__dropdown li form button {
    display: block;
    padding: 10px 16px;
    color: rgba(249, 250, 251, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
}

.club-nav-mobile__dropdown li a:hover {
    background: rgba(201, 168, 76, 0.12);
    color: #facc15;
}

.club-nav-mobile__user .nav-dropdown:not(.open) .club-nav-mobile__dropdown {
    display: none;
}

.club-nav-mobile__user .nav-dropdown.open .club-nav-mobile__dropdown {
    display: block;
}

/* END club-header.css */

/* BEGIN buttons.css */

/*
 * buttons.css
 *
 * Описание: Унифицированные стили кнопок и их вариаций для действий в интерфейсе.
 * Компоненты: .btn, .btn-primary, .btn-outline, .btn-ghost, .btn-telegram, .btn-lg
 * Используется на: все страницы с кнопками действий, формы, карточки, модальные окна
 *
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast), color var(--transition-fast),
                border-color var(--transition-fast), transform var(--transition-fast),
                opacity var(--transition-fast);
    white-space: nowrap;
    min-width: auto;
    text-align: center;
}

@media (width <= 480px) {
    .btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
    }

    .btn-lg {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
}

.btn-primary {
    background: #A6824A;
    color: silver;
    border: none;
    border-radius: 6px;
}

.btn-primary:hover {
    background: #A6824A;
    color: silver;
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline.btn-disabled,
.btn-outline[disabled] {
    background: transparent;
    border-color: #334155;
    color: #64748b;
    cursor: default;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-bg);
}

.btn-ghost {
    color: var(--color-text-secondary);
}

.btn-ghost:hover {
    color: var(--color-text);
    background: var(--color-bg-elevated);
}

/* Кнопка в фирменном стиле Telegram */
.btn-telegram {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    overflow: hidden;
    max-width: 100%;
    background: #08c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-telegram:hover {
    background: #0077b5;
    color: #fff;
    box-shadow: 0 2px 8px rgb(0 136 204 / 35%);
}

.btn-telegram__icon {
    flex-shrink: 0;
    display: block;
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
}

.btn-telegram--outline {
    background: transparent;
    color: #08c;
    border: 1px solid #08c;
}

.btn-telegram--outline:hover {
    background: rgb(0 136 204 / 10%);
    color: #08c;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 0; }
}

.btn-pulse {
    position: relative;
    animation: pulse 2s infinite;
    will-change: transform;
}

.btn-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 6px rgb(166 130 74 / 70%);
    animation: pulse-ring 2s infinite;
    pointer-events: none;
    will-change: transform, opacity;
}

/** Кнопка по высоте как поля фильтра (form-control). */
.btn--filter-size {
    height: 59px;
    line-height: 16px;
    padding: 0 var(--spacing-md);

    /* горизонтальные отступы */
    margin-top: 24px;
}

.btn-donate {
    background: #889b73;
    color: white;
    border: none;
}

.btn-donate:hover {
    background: #7a8d66;
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
    min-height: 28px;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
}

.btn-danger {
    background: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

.btn-danger-text {
    color: #dc3545;
}

.btn-danger-text:hover {
    color: #a71d2a;
    background: rgb(220 53 69 / 8%);
}

/* Кнопка «Управление турниром» с бегущей змейкой по контуру */
.btn-manage-tournament-wrap {
    position: relative;
    display: inline-block;
    border-radius: 8px;
    padding: 2px; /* толщина рамки */
    overflow: hidden;
    transition: transform 0.2s ease;
}

/* Бегущая змейка — градиент больше обводки, центрирован через transform */
.btn-manage-tournament-wrap::before {
    content: "";
    position: absolute;
    z-index: 0;
    width: 200%;
    height: 200%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: 50% 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg 300deg,
        #e8c547 320deg,
        #a6824a 340deg,
        transparent 360deg
    );
    animation: snake-rotate 3s linear infinite;
    will-change: transform;
}

/* Маска — оставляем только рамку */
.btn-manage-tournament-wrap::after {
    content: "";
    position: absolute;
    inset: 2px; /* = padding */
    background: #012b1c;
    border-radius: 6px;
    z-index: 1;
}

/* Сама кнопка */
.btn-manage-tournament {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    background: #012b1c;
    color: #a6824a;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* Hover */
.btn-manage-tournament-wrap:hover {
    transform: translateY(-2px);
}

.btn-manage-tournament:hover {
    background: rgb(166 130 74 / 0.18);
}

/* Admin Button */
.btn-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    background: #A6824A;
    color: silver;
    border: none;
    transition: background var(--transition-fast), border-color var(--transition-fast),
                color var(--transition-fast), transform var(--transition-fast);
    box-shadow: var(--shadow-glow);
}

.btn-admin:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
    color: silver;
}

.sparring-response-form .btn,
.sparring-response-row__actions .btn {
    white-space: nowrap;
    min-height: 32px;
    flex-shrink: 0;
}

.sparring-response-row__actions .contact-btn--disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    color: var(--color-text-muted);
    border-color: var(--color-border-light);
}

.sparring-response-row__actions .text-muted,
.sparring-response-row__actions .text-success {
    flex-shrink: 0;
}

/* Планшет и узкий экран: кнопки откликов на отдельную строку, флаги переносятся */
@media (max-width: 640px) {
    .sparring-response-form .btn,
    .sparring-response-row__actions .btn {
        min-height: 44px;
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
}

/* Мобильный: рейтинг под инфо, кнопки на всю ширину с крупными областями нажатия */
@media (max-width: 480px) {
    .sparring-response-form .btn,
    .sparring-response-row__actions .btn {
        min-height: 44px;
        flex: 1 1 auto;
        min-width: 100px;
    }
}

/* Кнопки управления заявкой (Редактировать, Отменить, Удалить) — удобный тап на мобильных */
@media (max-width: 480px) {
    .sparring-card__actions .btn,
    .sparring-card__actions button {
        min-height: 44px;
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
}

/* END buttons.css */

/* BEGIN forms.css */

/*
 * forms.css
 *
 * Описание: Стили форм и полей ввода, включая auth/register сценарии и адаптивные состояния.
 * Компоненты: .form-group, .form-label, .form-control, .auth-form, .register-form-steps, .match-score-input
 * Используется на: страницы авторизации/регистрации, управления турниром и другие формы проекта
 *
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.form-control {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    transition: background var(--transition-fast), border-color var(--transition-fast),
                color var(--transition-fast), transform var(--transition-fast);
    font-size: 16px;

    /* Prevents zoom on iOS */
}

@media (width <= 480px) {
    .form-control {
        padding: var(--spacing-sm);
        font-size: 16px;
    }
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-transparent);
}

.form-control::placeholder {
    color: var(--color-text-muted);
}

select.form-control {
    cursor: pointer;
}

/* Формы страницы управления турниром (мобильная адаптация) */
@media (max-width: 768px) {
    /* Форма «Составить пару» — селекты и кнопка на всю ширину */
    .manage-page .manage-block-bg .form-select.manage-player-select {
        min-width: 0;
        width: 100%;
    }

    .manage-page .manage-block-bg .d-flex.flex-wrap.gap-2 {
        flex-direction: column;
        align-items: stretch;
    }

    .manage-page .manage-block-bg .d-flex.flex-wrap.gap-2 .form-select {
        width: 100%;
    }

    .manage-page .participant-search-wrap {
        min-width: 0 !important;
        width: 100%;
    }

    .manage-page .manage-match-result .manage-match-form .d-flex,
    .manage-page .manage-match-result .d-flex.flex-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .manage-page .manage-match-result .form-control {
        width: 100%;
        max-width: none;
    }

    .manage-page .manage-match-result .manage-match-winner {
        flex-wrap: wrap;
    }

    .manage-page .card-body .p-3.border.rounded .d-flex.flex-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .manage-page .card-body .p-3.border.rounded .form-control {
        width: 100%;
        min-width: 0;
    }
}

@media (width <= 640px) {
    .match-card-item .form-group label,
    .match-card-item .form-label {
        font-size: var(--font-size-sm);
    }

    .match-card-item .form-control {
        padding: var(--spacing-sm);
    }

    .match-card-item .btn-primary[type="submit"] {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
}

/* Форма ввода счёта: строки = игроки, столбцы = сеты */
.match-score-input {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) repeat(3, minmax(0, 80px));
    gap: var(--spacing-xs) var(--spacing-sm);
    align-items: center;
}

.match-score-input__row {
    display: contents;
}

.match-score-input__header .match-score-input__cell {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-muted);
}

.match-score-input__label {
    font-size: var(--font-size-sm);
    color: var(--color-text);
}

.match-score-input__cell input {
    width: 100%;
}

.auth-form.register {
    left: 50%;
}

.auth-form.login {
    left: 0;
    transform: translateX(-100%);
}

.auth-form.login.active {
    transform: translateX(0);
}

.auth-form form {
    width: 100%;
    max-width: 100%;
}

.auth-form .form-group {
    margin-bottom: var(--spacing-md);
}

.auth-form .form-group:last-of-type {
    margin-bottom: 0;
}

.auth-form .form-control {
    width: 100%;
}

.auth-form .alert {
    width: 100%;
}

/* Регистрация: два этапа (шага) */
.register-form-steps .register-step {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

.register-form-steps .register-step.hidden {
    display: none !important;
}

.register-step-title {
    margin: 0 0 var(--spacing-sm);
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--color-text);
}

.register-step-fields {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    min-height: 0;
}

.register-step-fields .form-group {
    margin-bottom: var(--spacing-xs);
}

.register-step-fields .form-group:last-of-type {
    margin-bottom: 0;
}

/* Компактные поля ввода в форме регистрации (auth) */
.auth-form.register .register-step-fields .form-control {
    padding: 0.45rem 0.6rem;
    min-height: 2.25rem;
    line-height: 1.35;
    font-size: 0.95rem;
}

.auth-form.register .register-step-fields .form-label {
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.register-step-actions {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: center;
}

.register-step-actions-two {
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.register-step-actions .btn,
.register-step-actions-two .btn {
    min-width: 140px;
}

.register-step-ntrp {
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.register-form-steps .register-step-ntrp .form-control,
.register-form-steps .register-step-ntrp .ntrp-option {
    padding: 0.35rem 0.55rem;
    min-height: 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.register-form-steps .register-step-ntrp .ntrp-option {
    padding: 0.35rem 0.55rem;
}

.register-form-steps .register-step-ntrp .ntrp-quiz {
    gap: var(--spacing-xs);
}

.register-form-steps .register-step-ntrp .ntrp-options {
    gap: 2px;
}

.register-form-steps .register-step-ntrp .ntrp-quiz .form-label,
.register-form-steps .register-step-ntrp .ntrp-quiz h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* Стили для формы регистрации внутри auth-card */
.auth-form.register .register-form-footer {
    margin-top: var(--spacing-md);
}

/* Стили для формы входа внутри auth-card */
.auth-form.login form {
    max-width: 400px;
}

.auth-form.login form button[type="submit"] {
    margin-top: var(--spacing-lg);
}

/* Ошибка входа — выше логотипа, не перекрывается им */
.auth-form.login form .alert.alert-error {
    position: relative;
    z-index: 2;
    margin-bottom: calc(7 * var(--spacing-lg));
}

.auth-login-logo {
    position: relative;
    z-index: 1;
}

.auth-form.login .auth-register-link {
    display: none;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

@media (width <= 768px) {
    .auth-page {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: var(--spacing-lg) var(--spacing-md);
        min-height: auto;
        align-items: flex-start;
        overflow-x: hidden;
    }

    .auth-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto;
        min-height: 0;
        border-radius: var(--radius-md);
        display: flex;
        flex-direction: column;
        overflow: visible !important;
        max-height: none;
    }

    .auth-wrapper .auth-page,
    .auth-wrapper .auth-card,
    .auth-wrapper .auth-hero,
    .auth-wrapper .auth-form,
    .auth-wrapper .auth-form form,
    .auth-wrapper .auth-form .form-group,
    .auth-wrapper .auth-form input,
    .auth-wrapper .auth-form select,
    .auth-wrapper .auth-form textarea,
    .auth-wrapper .auth-form .form-control,
    .auth-wrapper .register-form-steps,
    .auth-wrapper .register-step,
    .auth-wrapper .register-step-fields {
        box-sizing: border-box;
        max-width: 100%;
    }

    .auth-hero,
    .auth-form {
        position: relative;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto;
        min-height: 0;
        padding: var(--spacing-lg) var(--spacing-md) !important;
        padding-left: var(--spacing-lg) !important;
        padding-right: var(--spacing-lg) !important;
        left: auto !important;
        transform: none !important;
        overflow: visible !important;
        justify-content: flex-start;
        align-items: stretch;
    }

    /* Явный сброс позиционирования для форм */
    .auth-form.register,
    .auth-form.login {
        left: 0 !important;
        transform: none !important;
    }

    .auth-hero:not(.active),
    .auth-form:not(.active) {
        display: none !important;
    }

    /* На мобильных экран входа — только форма, без hero (нет обрезки и слияния) */
    .auth-hero.login.active {
        display: none !important;
    }

    .auth-hero.register.active {
        order: 1;
        display: flex;
        flex-shrink: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .auth-form.login.active {
        order: 1;
        display: flex;
    }

    .auth-form.register.active {
        order: 2;
        display: flex;
    }

    .auth-form form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* Консолидация дубликатов .auth-form.* в mobile scope */
    .auth-form.register .register-form-steps,
    .auth-form.register .register-step,
    .auth-form.register .register-step-fields,
    .auth-form.register .register-step-actions {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .auth-form.register .register-step-title {
        overflow-wrap: break-word;
    }

    .auth-form.register .register-step-fields .form-control {
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.65rem 0.85rem;
        min-height: 2.75rem;
        font-size: 1rem;
    }

    .auth-form.register .register-step-fields .form-label {
        max-width: 100%;
        box-sizing: border-box;
    }

    .auth-form input:not([type="checkbox"]),
    .auth-form select,
    .auth-form textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Чекбоксы и радио-кнопки не должны растягиваться */
    .auth-form input[type="checkbox"],
    .auth-form input[type="radio"],
    .form-checkbox {
        width: auto !important;
        max-width: 1.25rem !important;
        min-width: 1.25rem !important;
        height: 1.25rem !important;
        flex-shrink: 0;
    }

    .auth-form .form-control {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .auth-form .form-group {
        margin-bottom: var(--spacing-lg);
        min-width: 0;
        max-width: 100%;
    }

    .auth-form.login .form-group {
        margin-bottom: var(--spacing-lg);
    }

    .auth-form.login form button[type="submit"] {
        margin-top: var(--spacing-xl);
    }

    .auth-form.login .auth-register-link {
        display: block;
        margin-top: var(--spacing-xl);
        padding-top: var(--spacing-lg);
        border-top: 1px solid var(--color-border);
    }

    .auth-form.login .auth-register-link p {
        margin-bottom: var(--spacing-md) !important;
    }

    .auth-form.login .auth-register-link .btn {
        margin-top: 0;
    }

    .auth-login-title {
        display: block;
    }

    /* Скрываем вращающийся логотип на мобильных */
    .auth-login-logo {
        display: none !important;
    }

    .auth-card-bg {
        display: none;
    }
}

/* Дополнительные адаптации для очень узких экранов */
@media (max-width: 480px) {
    /* Отступы от краёв экрана сохраняем (не убираем на маленьких экранах) */
    .auth-page {
        padding: var(--spacing-md) var(--spacing-md);
    }

    .auth-hero,
    .auth-form {
        padding: var(--spacing-md) var(--spacing-md) !important;
    }

    /* Компактные, но читаемые поля */
    .auth-form.register .register-step-fields .form-control {
        padding: 0.6rem 0.75rem;
        min-height: 2.6rem;
        font-size: 0.95rem;
    }

    .auth-form.register .register-step-fields .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.15rem;
    }

    /* Уменьшаем заголовки */
    .register-step-title {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-xs);
    }

    /* Компактнее группы полей */
    .register-step-fields .form-group {
        margin-bottom: 0.5rem;
    }

    .auth-form .form-group {
        margin-bottom: var(--spacing-sm);
    }

    /* Кнопки на всю ширину */
    .register-step-actions .btn,
    .register-step-actions-two .btn {
        width: 100%;
        min-width: 0;
        padding: 0.65rem 1rem;
    }

    /* Заметка о силе */
    .register-form-ntrp-note {
        font-size: 0.8rem;
        margin-bottom: var(--spacing-xs);
    }

    /* Компактный калькулятор силы */
    .register-step-ntrp .ntrp-option {
        padding: 0.3rem 0.5rem;
        font-size: 0.85rem;
    }

    .register-step-ntrp .ntrp-quiz .form-label,
    .register-step-ntrp .ntrp-quiz h4 {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }
}

/* Контейнер формы (используется в login.html при необходимости) */
.auth-form-container {
    max-width: 960px;
}

/* Общие стили для формы регистрации (auth.html) */
.register-form-layout {
    display: flex;
    flex-direction: column;
}

.register-form-ntrp-note {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-secondary);
}

.register-form-submit {
    width: auto;
    min-width: 200px;
    margin-top: var(--spacing-xs);
}

.register-form-layout .form-error,
.register-form-layout .field-error {
    margin-top: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--color-error);
}

/* Форма входа: обычный размер */
.auth-form-container.auth-form--login {
    max-width: 420px;
}

.auth-form-container.auth-form--login .card-body {
    padding: var(--spacing-2xl);
}

/* ==========================================================================
   Filter Bar
   ========================================================================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
}

.filter-bar .form-control {
    flex: 1;
    min-width: 150px;
}

.filter-grid {
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.filter-grid .form-group {
    margin-bottom: 0;
}

.filter-grid .form-control {
    height: 44px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.25;
}

.filter-grid .form-group-submit {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.filter-grid .form-group-submit .form-label {
    visibility: hidden;
}

.filter-grid .form-group-submit .btn {
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (width <= 600px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
}

@media (width <= 768px) {
    .filter-bar {
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
    }

    .filter-bar .form-control {
        min-width: 100%;
        flex: 1 1 100%;
    }
}

/* Кастомный фильтр «Клуб»: пресеты визуально отделены (не нативный <select>). */
.club-filter-select--custom {
    position: relative;
    width: 100%;
    z-index: 1;
}

/* Открытый список должен быть над таблицей турниров и соседними блоками на главной */
.club-filter-select--custom.club-filter-select--open {
    z-index: 200;
}

/*
 * Таблица турниров — следующий sibling после формы с фильтром; без z-index на форме
 * выпадающий список оказывается под таблицей, sticky-thead (z-index:10) перехватывает клики.
 */
form.club-filter-dropdown-open {
    position: relative;
    z-index: 100;
}

/*
 * Карточка фильтров на главной: базовый .card { overflow: hidden } обрезает выпадающий список.
 */
#home-tournaments-filter.card,
.card:has(.club-filter-select--custom) {
    overflow: visible;
}

.filter-bar .club-filter-select--custom {
    flex: 1;
    min-width: 150px;
}

.club-filter-select__toggle.form-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    width: 100%;
    cursor: pointer;
    text-align: left;
    background: var(--color-bg-elevated);
    color: var(--color-text);
}

.club-filter-select__current {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.club-filter-select__chevron {
    flex-shrink: 0;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, 0.45);
}

.club-filter-select__dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: min(40vh, 320px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px;
    border-radius: var(--radius-md);
    background: var(--color-bg-card);
    border: 1px solid rgba(166, 130, 74, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Иначе `display: flex` выше перебивает стандартное скрытие по атрибуту hidden */
.club-filter-select__dropdown[hidden] {
    display: none !important;
}

.club-filter-select__option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    font: inherit;
    font-size: var(--font-size-sm);
    line-height: 1.35;
    color: #e2e8f0;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.club-filter-select__option:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Пресеты: непрозрачный фон (без полупрозрачного rgba), полоска слева + тёмная подложка */
.club-filter-select__option--preset {
    background: linear-gradient(
        90deg,
        #8f7348 0,
        #8f7348 3px,
        #0e2218 3px,
        #0e2218 100%
    );
    box-shadow: inset 0 0 0 1px rgba(166, 130, 74, 0.55);
}

.club-filter-select__option--preset:hover {
    background: linear-gradient(
        90deg,
        #a08258 0,
        #a08258 3px,
        #123a28 3px,
        #123a28 100%
    );
}

.club-filter-select__option.is-selected {
    font-weight: 600;
    color: #facc6b;
}

/* ==========================================================================
   Consent (registration) & offer consent (payments)
   ========================================================================== */
.form-group-consent {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    cursor: pointer;
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.form-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.consent-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.consent-text a:hover {
    color: var(--color-text-secondary);
}

.offer-consent {
    font-size: var(--font-size-sm);
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.offer-consent__label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    cursor: pointer;
    user-select: none;
}

.offer-consent__checkbox {
    flex-shrink: 0;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.offer-consent__text {
    flex: 1;
    color: var(--color-text);
    line-height: 1.5;
}

.offer-consent a {
    color: var(--color-primary);
    text-decoration: underline;
}

.offer-consent a:hover {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.btn-pay {
    margin-top: var(--spacing-xs);
}

.order-details {
    background: var(--color-bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

@media (width <= 768px) {
    .legal-doc__body {
        padding: var(--spacing-lg) !important;
    }

    .consent-label {
        font-size: var(--font-size-xs);
    }

    .offer-consent {
        font-size: var(--font-size-xs);
    }
}

/* END forms.css */

/* BEGIN cards.css */

/*
 * cards.css
 *
 * Описание: Базовые и специализированные карточки контента, их анимации и адаптивные раскладки.
 * Компоненты: .card, .card-body, .card-title, .tournament-preview-card, .court-card, .training-card, .pricing-card
 * Используется на: главная, турниры, тренировки, профиль, тарифы и другие страницы со списками карточек
 *
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base),
                border-color var(--transition-base);
}

.card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card-body {
    padding: var(--spacing-lg);
}

.tournament-preview-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tournament-preview-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(
        155deg,
        rgb(8 22 16) 0%,
        rgb(14 32 24) 45%,
        rgb(10 26 18) 100%
    );
}

.tournament-preview-card__cover-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tournament-preview-card__fallback-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
}

.tournament-preview-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: var(--spacing-sm);
    padding-right: clamp(1rem, 2vw, 1.4rem);
}

.tournament-preview-card .card-title {
    min-width: 0;
    margin: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.tournament-preview-card .card-text {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.tournament-preview-card__host {
    display: flex;
    align-items: center;
    min-width: 0;
}

.tournament-preview-card__host .tournament-card-host-badge--club {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-preview-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.tournament-preview-card__category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgb(190 149 78 / 0.12);
    border: 1px solid rgb(190 149 78 / 0.22);
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
}

.tournament-preview-card__meta {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
}

.court-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.court-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.court-card__footer {
    margin-top: auto;
}

/* Появление карточек снизу вверх при прокрутке, по очереди слева направо */
.main .card,
.main .match-card {
    opacity: 0;
    transform: translateY(56px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0s;
}

.main .card.card-in-view,
.main .match-card.card-in-view {
    opacity: 1;
    transform: translateY(0);
}

.main .match-card.card-in-view {
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                border-color var(--transition-base),
                box-shadow var(--transition-base);
}

.main .card.card-in-view:hover,
.main .match-card.card-in-view:hover {
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .main .card,
    .main .match-card {
        opacity: 1;
        transform: none;
    }
}

@media (width <= 768px) {
    .card-body {
        padding: var(--spacing-md);
    }
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.card-text {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

/* Карточки тренировок: одинаковая высота */
.training-grid {
    align-items: stretch;
}

.training-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.training-card .card-image {
    flex-shrink: 0;
}

.training-card .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.training-card .card-title {
    flex-shrink: 0;
}

.training-card .card-text {
    margin-top: var(--spacing-xs);
    margin-bottom: auto;
}

/* ==========================================================================
   Player Card (Rating)
   ========================================================================== */
.player-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base), border-color var(--transition-base),
                box-shadow var(--transition-base);
}

@media (width <= 768px) {
    .player-card {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }
}

.player-card:hover {
    border-color: var(--color-border-light);
}

.player-rank {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--color-text-muted);
    min-width: 40px;
}

.player-card .player-avatar {
    width: 56px;
    height: 56px;
}

.player-info {
    flex: 1;
}

.player-info .player-name {
    font-size: var(--font-size-lg);
}

.player-name-block {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-bottom: var(--spacing-xs);
}

.player-name-block .player-name {
    flex: none;
    margin-bottom: 0;
}

@media (width <= 992px) {
    .player-card {
        flex-wrap: wrap;
    }

    .player-stats {
        width: 100%;
        justify-content: space-around;
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-md);
        border-top: 1px solid var(--color-border);
    }
}

/* Player cards: узкие горизонтальные полоски на главной и в рейтинге */
@media (width <= 768px) {
    .player-info {
        width: 100%;
    }

    .grid .player-card,
    .rating-list .grid .player-card {
        flex-flow: row nowrap;
        align-items: center;
        padding: var(--spacing-sm) var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .grid .player-card .player-rank,
    .rating-list .grid .player-card .player-rank {
        font-size: var(--font-size-sm);
        font-weight: 700;
        min-width: 20px;
    }

    .grid .player-card .player-avatar,
    .rating-list .grid .player-card .player-avatar {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .grid .player-card .player-info,
    .rating-list .grid .player-card .player-info {
        flex: 1;
        min-width: 0;
        width: auto;
    }

    .grid .player-card .player-info .player-name,
    .rating-list .grid .player-card .player-info .player-name {
        font-size: var(--font-size-base);
    }

    .grid .player-card .player-name-block,
    .rating-list .grid .player-card .player-name-block {
        margin-bottom: 0;
        gap: 0.2rem;
        flex-wrap: wrap;
    }

    .grid .player-card .player-category,
    .rating-list .grid .player-card .player-category {
        font-size: var(--font-size-xs);
        display: inline-block;
        margin-top: 1px;
        width: auto;
    }

    .grid .player-card .player-stats,
    .rating-list .grid .player-card .player-stats {
        width: auto;
        flex: 0 0 auto;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        gap: var(--spacing-xs);
        flex-wrap: nowrap;
    }

    .grid .player-card .stat-value,
    .rating-list .grid .player-card .stat-value {
        font-size: var(--font-size-sm);
    }

    .grid .player-card .stat-label,
    .rating-list .grid .player-card .stat-label {
        font-size: 0.6rem;
    }

    .grid .player-card .player-points,
    .rating-list .grid .player-card .player-points {
        font-size: var(--font-size-base);
        font-weight: 700;
        flex-shrink: 0;
        display: flex;
        flex-direction: row;
        align-items: baseline;
        gap: 0.2rem;
    }

    .grid .player-card .player-points br,
    .rating-list .grid .player-card .player-points br {
        display: none;
    }

    .grid .player-card .player-points .text-muted,
    .rating-list .grid .player-card .player-points .text-muted {
        font-size: 0.55rem;
        font-weight: 500;
    }

    .grid:has(.player-card),
    .rating-list .grid {
        gap: var(--spacing-sm);
    }

    .grid .player-card .subscription-badge,
    .rating-list .grid .player-card .subscription-badge {
        font-size: 0.6rem;
        padding: 1px var(--spacing-xs);
    }

    .grid .player-card .subscription-badge__icon,
    .rating-list .grid .player-card .subscription-badge__icon {
        width: 12px;
        height: 12px;
    }
}

@media (width <= 480px) {
    .grid .player-card,
    .rating-list .grid .player-card {
        padding: var(--spacing-xs) var(--spacing-sm);
        gap: var(--spacing-xs);
    }

    .grid .player-card .player-rank,
    .rating-list .grid .player-card .player-rank {
        min-width: 18px;
        font-size: var(--font-size-xs);
    }

    .grid .player-card .player-avatar,
    .rating-list .grid .player-card .player-avatar {
        width: 36px;
        height: 36px;
    }

    .grid .player-card .player-info .player-name,
    .rating-list .grid .player-card .player-info .player-name {
        font-size: var(--font-size-sm);
    }

    .grid .player-card .stat-value,
    .rating-list .grid .player-card .stat-value {
        font-size: var(--font-size-xs);
    }

    .grid .player-card .stat-label,
    .rating-list .grid .player-card .stat-label {
        font-size: 0.55rem;
    }

    .grid .player-card .player-points,
    .rating-list .grid .player-card .player-points {
        font-size: var(--font-size-sm);
    }

    .grid:has(.player-card),
    .rating-list .grid {
        gap: var(--spacing-xs);
    }
}

/* Tournament Card Styles (список /tournaments/) — фиксированная сетка, единая высота */
.tournament-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.tournament-card {
    position: relative;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tournament-card:hover {
    transform: none;
    border-color: var(--color-border-light);
    background: rgba(255, 255, 255, 0.028);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.main .tournament-card.card-in-view:hover {
    transform: none;
}

/* Общие токены чипов / меты (база для всех ширин) */
.tournament-card__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 22px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}

.tournament-card__chip--host {
    color: #e2e8f0;
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tournament-card__chip--brand {
    height: 22px;
    padding: 0 6px;
    border: none;
    background: transparent;
}

.tournament-card__chip--brand .tournament-brand-badge {
    margin: 0;
    transform: none;
    font-size: 9px;
    padding: 2px 7px 2px 6px;
    gap: 4px;
}

.tournament-card__chip--brand .tournament-brand-badge__dot {
    width: 5px;
    height: 5px;
}

.tournament-card__chip--muted {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.tournament-card__chip--format {
    color: #93c5fd;
    border-color: rgba(147, 197, 253, 0.25);
    background: rgba(59, 130, 246, 0.1);
}

.tournament-card__chip--fee {
    color: var(--color-success);
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
}

.tournament-card__chip--cat {
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.tournament-card__chip--more {
    font-weight: 600;
    color: var(--color-text-muted);
    border-style: dashed;
}

.tournament-card__meta-line {
    margin: 0;
    font-size: 13px;
    line-height: 20px;
    color: var(--color-text-secondary);
}

.tournament-card__meta-sep {
    margin: 0 0.25em;
    opacity: 0.45;
}

.tournament-card__meta-link {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px dotted rgba(166, 130, 74, 0.45);
}

.tournament-card__meta-link:hover {
    color: #facc6b;
}

.tournament-card__avatar-wrap {
    flex: 0 0 auto;
    display: inline-flex;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tournament-card__avatar-img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    display: block;
}

.tournament-card__more-count {
    flex: 0 0 auto;
    padding: 0 2px 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    line-height: 28px;
}

.tournament-card__empty-line {
    font-size: 12px;
    line-height: 28px;
    color: var(--color-text-muted);
}

.tournament-card__chip--mobile-only {
    display: none;
}

/* Десктоп: центр = медиа + сетка строк | aside; фиксированная высота */
@media (min-width: 769px) {
    .tournament-list {
        gap: 8px;
    }

    .tournament-card > .card-body.tournament-card-body {
        box-sizing: border-box;
        height: 128px;
        min-height: 128px;
        max-height: 128px;
        padding: 12px 14px;
        overflow: hidden;
    }

    .tournament-card-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 0 12px;
        align-items: stretch;
    }

    .tournament-card__center-top {
        display: contents;
    }

    .tournament-card__center {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        grid-template-rows: 24px 24px 20px 32px;
        row-gap: 1px;
        column-gap: 12px;
        align-content: center;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
    }

    .tournament-card__media {
        grid-column: 1;
        grid-row: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        min-height: 0;
        align-self: center;
    }

    .tournament-card__media .tournament-img {
        width: 72px;
        height: 72px;
        min-width: 72px;
        min-height: 72px;
        border-radius: 10px;
        object-fit: cover;
        flex-shrink: 0;
    }

    .tournament-card__media .tournament-img:nth-child(n + 2) {
        display: none;
    }

    .tournament-card__title-col {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        align-self: start;
    }

    .tournament-card__line--title {
        display: flex;
        align-items: baseline;
        gap: 10px;
        min-width: 0;
        overflow: hidden;
    }

    .tournament-card__title {
        margin: 0;
        flex: 1 1 auto;
        min-width: 0;
        color: var(--color-text);
        font-size: 15px;
        font-weight: 700;
        line-height: 24px;
        letter-spacing: 0.01em;
        text-transform: none;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tournament-card__dates-muted {
        flex: 0 0 auto;
        font-size: 13px;
        line-height: 24px;
        color: var(--color-text-muted);
        white-space: nowrap;
    }

    .tournament-card__line--chips {
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
        overflow: hidden;
    }

    .tournament-card__chip-track {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
        height: 24px;
        min-height: 24px;
        overflow: hidden;
        white-space: nowrap;
    }

    /* Чип клуба подстраивается под длину названия, но не раздувается на всю строку */
    .tournament-card__chip--host {
        flex: 0 1 auto;
        min-width: 0;
        width: fit-content;
        max-width: min(100%, 22rem);
    }

    .tournament-card__line--meta {
        grid-column: 2;
        grid-row: 3;
        min-width: 0;
        overflow: hidden;
    }

    .tournament-card__line--meta.tournament-card__meta-line {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        display: block;
        line-height: 20px;
    }

    .tournament-card__line--participants {
        grid-column: 2;
        grid-row: 4;
        display: flex;
        align-items: center;
        height: 32px;
        min-height: 32px;
        max-height: 32px;
        min-width: 0;
        overflow: hidden;
    }

    .tournament-card__participants-strip {
        display: flex;
        align-items: center;
        gap: 6px;
        height: 32px;
        min-height: 32px;
        max-height: 32px;
        overflow-x: auto;
        overflow-y: hidden;
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .tournament-card__participants-strip--stacked {
        margin: 0;
    }

    .tournament-card__line--participants .tournament-card__empty-line,
    .tournament-card__line--participants .tournament-card__more-count {
        line-height: 32px;
    }

    .tournament-card__participants-strip::-webkit-scrollbar {
        height: 2px;
    }

    .tournament-card__participants-strip::-webkit-scrollbar-thumb {
        background: rgba(166, 130, 74, 0.35);
        border-radius: 4px;
    }

    .tournament-card__aside {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-end;
        align-self: stretch;
        min-height: 0;
        padding-left: 14px;
        border-left: 1px solid rgba(255, 255, 255, 0.06);
    }

    .tournament-card__aside-statuses {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        width: 100%;
        min-width: 0;
    }

    .tournament-card__aside-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 22px;
        padding: 0 8px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
        line-height: 22px;
        white-space: nowrap;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.06);
        color: var(--color-text-secondary);
    }

    .tournament-card__aside-pill--type {
        border-color: rgba(166, 130, 74, 0.28);
        max-width: 7rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tournament-card__aside-statuses .tournament-status-badge {
        min-height: 22px;
        height: 22px;
        padding: 0 8px;
        border-radius: 8px;
        font-size: 12px;
        line-height: 1;
        letter-spacing: 0.02em;
        white-space: nowrap;
        cursor: inherit;
        box-shadow: none;
        backdrop-filter: none;
    }

    .tournament-card__aside-statuses .tournament-status-badge::before {
        width: 6px;
        height: 6px;
        flex: 0 0 6px;
    }

    .tournament-card__aside-action {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: stretch;
    }

    .tournament-card__aside-action form {
        margin: 0;
        display: flex;
        justify-content: stretch;
        width: 100%;
    }

    /* Полная ширина колонки, перенос длинных подписей (без обрезки ellipsis) */
    .tournament-card__aside .btn--tournament-card {
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 32px;
        height: auto;
        max-width: 100%;
        padding: 6px 10px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.25;
        white-space: normal;
        text-align: center;
        overflow: visible;
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }

    /* На тёмном фоне карточки стандартный disabled outline (#64748b) почти не читается */
    .tournament-card__aside .btn-outline[disabled],
    .tournament-card__aside .btn-outline.btn-disabled {
        border-color: rgba(166, 130, 74, 0.5);
        color: rgba(226, 226, 220, 0.95);
        opacity: 1;
    }
}

/* Мобильная карточка: компактный блок, статус — overlay */
@media (width <= 768px) {
    .tournament-card {
        position: relative;
        overflow: visible;
        border-radius: 14px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        transition:
            transform 0.15s ease,
            box-shadow 0.15s ease,
            background-color 0.15s ease;
    }

    .tournament-card:active {
        transform: scale(0.992);
    }

    .tournament-card--cancelled .tournament-card__aside .btn--tournament-card:not(.btn-primary) {
        opacity: 0.72;
    }

    .tournament-card > .card-body.tournament-card-body {
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 10px;
        gap: 8px;
    }

    .tournament-card-body {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .tournament-card__center {
        display: flex;
        flex-direction: column;
        gap: 7px;
        min-width: 0;
    }

    .tournament-card__chip--mobile-only {
        display: inline-flex;
    }

    .tournament-card__center-top {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 10px;
        align-items: start;
    }

    .tournament-card__media {
        width: 64px;
        flex-shrink: 0;
    }

    .tournament-card__media .tournament-img:nth-child(n + 2) {
        display: none;
    }

    .tournament-card-photos .tournament-img {
        width: 64px;
        height: 64px;
        border-radius: 10px;
        object-fit: cover;
    }

    .tournament-card__title-col {
        min-width: 0;
        padding-right: 7.6rem;
    }

    .tournament-card__line--title {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        min-width: 0;
    }

    .tournament-card__title {
        margin: 0;
        width: 100%;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0.01em;
        text-transform: none;
        color: var(--color-text);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .tournament-card__dates-muted {
        font-size: 12px;
        color: var(--color-text-muted);
        line-height: 1.25;
    }

    .tournament-card__line--chips {
        min-width: 0;
    }

    .tournament-card__chip-track {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        align-items: center;
        max-height: none;
        overflow: hidden;
    }

    .tournament-card__chip {
        height: 22px;
        padding: 0 7px;
        border-radius: 8px;
        font-size: 11px;
        line-height: 22px;
    }

    .tournament-card__chip--brand {
        height: 22px;
        padding: 0 4px;
    }

    .tournament-card__line--meta.tournament-card__meta-line {
        margin: 0;
        font-size: 11px;
        line-height: 1.35;
        color: var(--color-text-muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tournament-card__line--participants {
        min-height: 28px;
        height: auto;
        max-height: none;
    }

    .tournament-card__participants-strip--stacked {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        height: 28px;
        min-height: 28px;
        padding: 0 2px 0 0;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0;
    }

    .tournament-card__participants-strip--stacked .tournament-card__avatar-wrap {
        flex: 0 0 auto;
        margin-left: -8px;
        border: 2px solid var(--color-bg-card, rgb(12 28 20));
        box-sizing: content-box;
    }

    .tournament-card__participants-strip--stacked .tournament-card__avatar-wrap:first-child {
        margin-left: 0;
    }

    .tournament-card__avatar-img {
        width: 24px;
        height: 24px;
    }

    .tournament-card__empty-line {
        font-size: 11px;
        line-height: 28px;
    }

    .tournament-card__more-count {
        line-height: 28px;
        margin-left: 4px;
        font-size: 11px;
    }

    .tournament-card__aside {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        padding: 0;
        border: none;
        margin: 0;
    }

    .tournament-card__aside-statuses {
        margin: 0;
        padding: 0;
        min-height: 0;
        width: 100%;
        pointer-events: none;
    }

    .tournament-card__aside-pill--type {
        display: none;
    }

    .tournament-card__aside-statuses .tournament-status-badge {
        pointer-events: auto;
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        z-index: 2;
        min-height: 22px;
        height: 22px;
        padding: 0 8px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 600;
        line-height: 22px;
        letter-spacing: 0.02em;
        white-space: nowrap;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .tournament-card__aside-statuses .tournament-status-badge::before {
        width: 6px;
        height: 6px;
        flex-basis: 6px;
    }

    .tournament-card__aside-action {
        width: 100%;
        margin-top: 0;
    }

    .tournament-card__aside .btn--tournament-card {
        width: 100%;
        min-width: 0;
        height: 32px;
        min-height: 32px;
        padding: 0 12px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tournament-card__chip--host {
        width: fit-content;
        max-width: min(100%, 16rem);
    }
}

@media (width <= 420px) {
    .tournament-card__title-col {
        padding-right: 7.15rem;
    }

    .tournament-card__aside-statuses .tournament-status-badge {
        top: 7px !important;
        right: 7px !important;
        min-height: 20px;
        height: 20px;
        padding: 0 7px;
        font-size: 10px;
        line-height: 20px;
    }
}

/* Pricing Cards */
@keyframes pricing-card-iridescence {
    0% {
        transform: translate3d(-2%, -1%, 0) scale(1.02);
        filter: brightness(1) saturate(1);
        opacity: 0.9;
    }

    50% {
        transform: translate3d(3%, -2%, 0) scale(1.08);
        filter: brightness(1.12) saturate(1.18);
        opacity: 1;
    }

    100% {
        transform: translate3d(-1%, 2%, 0) scale(1.05);
        filter: brightness(1.05) saturate(1.1);
        opacity: 0.94;
    }
}

@keyframes pricing-card-top-glint {
    0% {
        opacity: 0;
        transform: translate3d(-38%, -38%, 0) scale(1.06);
    }

    12% {
        opacity: 0.68;
    }

    50% {
        opacity: 0.8;
        transform: translate3d(0, 0, 0) scale(1);
    }

    88% {
        opacity: 0.68;
    }

    100% {
        opacity: 0;
        transform: translate3d(38%, 38%, 0) scale(0.96);
    }
}

.pricing-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(14px, 1.6vw, 22px);
    border-radius: 20px;
    border: 1px solid transparent;
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    transform-origin: center;
    transition: opacity 0.35s ease, filter 0.35s ease;
    will-change: transform, filter, opacity;
}

.pricing-card::after {
    content: '';
    position: absolute;
    inset: -24%;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    transform-origin: center;
    opacity: 0;
    filter: blur(14px);
    transition: opacity 0.35s ease;
    will-change: transform, opacity, filter;
}

.pricing-card > * {
    position: relative;
    z-index: 1;
}

.pricing-card:hover {
    transform: translateY(-4px) scale(1.01);
}

.pricing-card:hover::before {
    animation: pricing-card-iridescence 2.4s ease-in-out infinite alternate;
}

.pricing-card:hover::after {
    animation: pricing-card-top-glint 2.2s linear infinite;
}

.pricing-card-free {
    border-color: var(--color-border-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.pricing-feature,
.pricing-feature-badge {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: flex-start;
    flex-direction: row-reverse;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.pricing-feature--highlight {
    background: var(--color-bg-secondary);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
}

.pricing-feature__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 2px;
    font-size: 0;
    line-height: 0;
    color: transparent;
    background: none;
    border: 0;
}

.pricing-feature__icon::before,
.pricing-feature__icon::after {
    content: '';
    position: absolute;
    display: block;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.pricing-feature__icon--success {
    color: #d8bf82;
    filter: drop-shadow(0 0 6px rgb(216 191 130 / 35%));
}

.pricing-feature__icon--success::before {
    width: 6px;
    left: 1px;
    top: 10px;
    transform: rotate(45deg);
}

.pricing-feature__icon--success::after {
    width: 12px;
    left: 5px;
    top: 8px;
    transform: rotate(-45deg);
}

.pricing-feature__icon--disabled {
    color: rgb(188 196 204 / 72%);
}

.pricing-feature__icon--disabled::before {
    width: 14px;
    left: 2px;
    top: 8px;
    transform: rotate(45deg);
}

.pricing-feature__icon--disabled::after {
    width: 14px;
    left: 2px;
    top: 8px;
    transform: rotate(-45deg);
}

.pricing-feature__content {
    flex: 1;
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.pricing-feature__value {
    font-weight: 600;
    color: var(--color-primary);
}

.pricing-feature__value--disabled {
    color: var(--color-text-muted);
    opacity: 0.6;
    font-weight: 400;
}

.pricing-card__badges {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-sm);
    min-height: 30px;
    margin-bottom: calc(var(--spacing-sm) + 4px);
}

.pricing-card__badge {
    background: var(--color-primary);
    color: var(--color-bg);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pricing-card__badge--popular {
    margin-right: auto;
}

.pricing-card--has-promo .pricing-card__title {
    padding-right: 124px;
}

.pricing-card__badge--promo {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    padding: 6px 14px;
    font-size: var(--font-size-sm);
    border-radius: 14px;
    background: linear-gradient(135deg, #b62821 0%, #9f1d17 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgb(159 29 23 / 35%);
}

.pricing-card__price--promo {
    background: linear-gradient(135deg, rgb(232 93 4 / 0.08) 0%, rgb(220 47 2 / 0.06) 100%);
    border: 1px solid rgb(220 47 2 / 0.25);
    border-radius: 12px;
    padding: var(--spacing-md);
    margin-left: calc(-1 * var(--spacing-md));
    margin-right: calc(-1 * var(--spacing-md));
    margin-bottom: var(--spacing-lg);
}

.pricing-card__title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--color-text);
    letter-spacing: 0.03em;
    paint-order: stroke fill;
}

.pricing-card__title + .pricing-card__badges {
    margin-top: 0;
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 14px 13px;
        border-radius: 18px;
    }

    .pricing-card__badges {
        min-height: 28px;
        gap: 8px;
    }

    .pricing-card__badge {
        padding: 4px 10px;
        font-size: 11px;
    }

    .pricing-card--has-promo .pricing-card__title {
        padding-right: 98px;
    }

    .pricing-card__badge--promo {
        top: 10px;
        right: 10px;
        padding: 5px 12px;
        font-size: 12px;
    }
}

.pricing-card__price {
    margin-bottom: var(--spacing-lg);
}

.price-amount {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-text);
}

.price-amount--old {
    display: block;
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: line-through;
    margin-bottom: 4px;
}

.price-amount--current {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: #0d7d3d;
}

.pricing-card__price--promo .price-amount--current {
    color: #0d7d3d;
}

.price-promo-ends {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #c22a02;
    margin-top: 6px;
    padding: 4px 10px;
    background: rgb(220 47 2 / 0.12);
    border-radius: 8px;
}

.price-region-note {
    font-size: 0.8rem;
    color: var(--color-success);
    margin-top: 5px;
}

.price-then {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: 4px;
}

.price-first-ruble-note {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #0d7d3d;
    margin-top: 6px;
    padding: 4px 10px;
    background: rgb(13 125 61 / 0.12);
    border-radius: 8px;
    display: inline-block;
}

.price-period {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    font-weight: 400;
}

.pricing-card__features {
    margin-bottom: var(--spacing-lg);
    min-height: 240px;
}

.pricing-card__features .pricing-feature:last-child,
.pricing-card__features .pricing-feature-badge:last-child {
    margin-bottom: 0;
}

.pricing-card__action {
    margin-top: auto;
}

.pricing-card__btn {
    width: 100%;
    justify-content: center;
}

.pricing-card-current {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-transparent);
}

.pricing-card-diamond {
    border-color: var(--color-primary);
}

/* ── Liquid Glass Metallic Card Themes ─────────────────────────────────────── */
.pricing-card--bronze {
    background:
        linear-gradient(160deg,
            rgba(205,127,50,0.32) 0%,
            rgba(46,24,10,0.9) 30%,
            rgba(72,38,18,0.92) 68%,
            rgba(205,127,50,0.28) 100%
        );
    border-color: rgba(205,127,50,0.68);
    box-shadow:
        inset 0 1px 0 rgba(232,168,98,0.58),
        inset 0 -1px 0 rgba(100,50,10,0.72),
        inset 1px 0 0 rgba(232,168,98,0.2),
        inset -1px 0 0 rgba(100,50,10,0.36),
        0 8px 32px rgba(205,127,50,0.34),
        0 2px 8px rgba(0,0,0,0.5);
}

.pricing-card--bronze::before {
    background:
        radial-gradient(ellipse 120% 60% at 30% 0%,
            rgba(232,168,98,0.5) 0%,
            transparent 60%
        ),
        radial-gradient(ellipse 80% 40% at 80% 100%,
            rgba(205,127,50,0.3) 0%,
            transparent 55%
        );
}

.pricing-card--bronze::after {
    background: linear-gradient(135deg,
        transparent 34%,
        rgba(255,220,160,0.06) 43%,
        rgba(255,225,170,0.42) 50%,
        rgba(255,220,160,0.08) 57%,
        transparent 66%
    );
    box-shadow: 0 0 28px rgba(255,200,120,0.28);
}

.pricing-card--bronze .pricing-card__title {
    background: linear-gradient(135deg,
        #7a4010 0%,
        #cd7f32 25%,
        #f0c070 50%,
        #e8a862 65%,
        #cd7f32 80%,
        #a05a20 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(122,64,16,0.78);
    filter: drop-shadow(0 1px 3px rgba(205,127,50,0.5));
    text-shadow:
        0 0 0 rgba(122,64,16,0.78),
        0 1px 0 rgba(255,220,160,0.18),
        0 2px 4px rgba(80,36,8,0.45);
}

.pricing-card--bronze .price-amount,
.pricing-card--bronze .price-amount--current {
    color: #f0c070;
    text-shadow: 0 0 20px rgba(205,127,50,0.6), 0 2px 4px rgba(0,0,0,0.4);
}

.pricing-card--bronze .pricing-card__btn.btn-outline {
    border-color: rgba(205,127,50,0.7);
    color: #e8a862;
    background: rgba(205,127,50,0.08);
    backdrop-filter: blur(8px);
}

.pricing-card--bronze .pricing-card__btn.btn-outline:hover {
    background: linear-gradient(135deg, rgba(205,127,50,0.3), rgba(232,168,98,0.2));
    border-color: #e8a862;
    box-shadow: 0 0 16px rgba(205,127,50,0.4);
}

.pricing-card--bronze .pricing-card__btn.btn-primary {
    background: linear-gradient(135deg,
        #7a4010 0%,
        #cd7f32 30%,
        #f0c070 55%,
        #e8a862 70%,
        #cd7f32 100%
    );
    color: #1a0f07;
    border: none;
    box-shadow: 0 2px 12px rgba(205,127,50,0.5), inset 0 1px 0 rgba(255,230,150,0.4);
    font-weight: 700;
}

.pricing-card--bronze .pricing-card__btn.btn-primary:hover {
    background: linear-gradient(135deg, #cd7f32, #f5d070, #cd7f32);
    box-shadow: 0 4px 20px rgba(205,127,50,0.7);
}

.pricing-card--silver_theme {
    background:
        linear-gradient(160deg,
            rgba(192,197,206,0.34) 0%,
            rgba(34,38,44,0.9) 30%,
            rgba(56,64,74,0.93) 68%,
            rgba(176,184,196,0.28) 100%
        );
    border-color: rgba(176,184,196,0.66);
    box-shadow:
        inset 0 1px 0 rgba(220,228,240,0.62),
        inset 0 -1px 0 rgba(60,65,75,0.78),
        inset 1px 0 0 rgba(220,228,240,0.16),
        inset -1px 0 0 rgba(30,35,45,0.46),
        0 8px 32px rgba(176,184,196,0.28),
        0 2px 8px rgba(0,0,0,0.55);
}

.pricing-card--silver_theme::before {
    background:
        radial-gradient(ellipse 120% 60% at 30% 0%,
            rgba(224,228,234,0.42) 0%,
            transparent 60%
        ),
        radial-gradient(ellipse 80% 40% at 75% 100%,
            rgba(176,184,196,0.28) 0%,
            transparent 55%
        );
}

.pricing-card--silver_theme::after {
    background: linear-gradient(135deg,
        transparent 34%,
        rgba(240,245,255,0.07) 43%,
        rgba(245,248,255,0.44) 50%,
        rgba(240,245,255,0.09) 57%,
        transparent 66%
    );
    box-shadow: 0 0 28px rgba(220,228,240,0.24);
}

.pricing-card--silver_theme .pricing-card__title {
    background: linear-gradient(135deg,
        #6a7280 0%,
        #b0b8c4 25%,
        #f0f4fa 50%,
        #d0d8e4 65%,
        #a0a8b8 80%,
        #707880 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(96,104,118,0.85);
    filter: drop-shadow(0 1px 3px rgba(176,184,196,0.4));
    text-shadow:
        0 0 0 rgba(96,104,118,0.85),
        0 1px 0 rgba(255,255,255,0.14),
        0 2px 4px rgba(44,48,56,0.45);
}

.pricing-card--silver_theme .price-amount,
.pricing-card--silver_theme .price-amount--current {
    color: #e0e8f4;
    text-shadow: 0 0 20px rgba(176,184,196,0.5), 0 2px 4px rgba(0,0,0,0.4);
}

.pricing-card--silver_theme .pricing-card__btn.btn-outline {
    border-color: rgba(176,184,196,0.65);
    color: #c8d0dc;
    background: rgba(176,184,196,0.07);
    backdrop-filter: blur(8px);
}

.pricing-card--silver_theme .pricing-card__btn.btn-outline:hover {
    background: linear-gradient(135deg, rgba(176,184,196,0.25), rgba(220,228,240,0.15));
    border-color: #dce4f0;
    box-shadow: 0 0 16px rgba(176,184,196,0.3);
}

.pricing-card--silver_theme .pricing-card__btn.btn-primary {
    background: linear-gradient(135deg,
        #6a7280 0%,
        #b0b8c4 30%,
        #f0f4fa 55%,
        #d0d8e4 70%,
        #a8b0bc 100%
    );
    color: #141618;
    border: none;
    box-shadow: 0 2px 12px rgba(176,184,196,0.4), inset 0 1px 0 rgba(255,255,255,0.5);
    font-weight: 700;
}

.pricing-card--silver_theme .pricing-card__btn.btn-primary:hover {
    background: linear-gradient(135deg, #b0b8c4, #ffffff, #b0b8c4);
    box-shadow: 0 4px 20px rgba(176,184,196,0.6);
}

.pricing-card--gold_theme {
    background:
        linear-gradient(160deg,
            rgba(212,165,48,0.36) 0%,
            rgba(54,40,10,0.9) 30%,
            rgba(82,62,20,0.94) 68%,
            rgba(212,165,48,0.3) 100%
        );
    border-color: rgba(212,165,48,0.75);
    box-shadow:
        inset 0 1px 0 rgba(245,211,110,0.64),
        inset 0 -1px 0 rgba(100,75,10,0.8),
        inset 1px 0 0 rgba(245,211,110,0.18),
        inset -1px 0 0 rgba(80,60,5,0.42),
        0 8px 32px rgba(212,165,48,0.4),
        0 2px 8px rgba(0,0,0,0.5);
}

.pricing-card--gold_theme::before {
    background:
        radial-gradient(ellipse 120% 60% at 30% 0%,
            rgba(245,211,110,0.54) 0%,
            transparent 60%
        ),
        radial-gradient(ellipse 80% 40% at 80% 100%,
            rgba(212,165,48,0.34) 0%,
            transparent 55%
        );
}

.pricing-card--gold_theme::after {
    background: linear-gradient(135deg,
        transparent 34%,
        rgba(255,250,180,0.07) 43%,
        rgba(255,245,150,0.48) 50%,
        rgba(255,250,180,0.1) 57%,
        transparent 66%
    );
    box-shadow: 0 0 32px rgba(255,230,100,0.3);
}

.pricing-card--gold_theme .pricing-card__title {
    background: linear-gradient(135deg,
        #8a6010 0%,
        #d4a530 25%,
        #fff0a0 50%,
        #f5d36e 65%,
        #c49020 80%,
        #8a6010 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(138,96,16,0.82);
    filter: drop-shadow(0 1px 4px rgba(212,165,48,0.6));
    text-shadow:
        0 0 0 rgba(138,96,16,0.82),
        0 1px 0 rgba(255,248,190,0.18),
        0 2px 5px rgba(96,64,8,0.5);
}

.pricing-card--gold_theme .price-amount,
.pricing-card--gold_theme .price-amount--current {
    color: #f8dd80;
    text-shadow: 0 0 24px rgba(212,165,48,0.7), 0 2px 4px rgba(0,0,0,0.4);
}

.pricing-card--gold_theme .pricing-card__btn.btn-outline {
    border-color: rgba(212,165,48,0.7);
    color: #f5d36e;
    background: rgba(212,165,48,0.08);
    backdrop-filter: blur(8px);
}

.pricing-card--gold_theme .pricing-card__btn.btn-outline:hover {
    background: linear-gradient(135deg, rgba(212,165,48,0.3), rgba(245,211,110,0.2));
    border-color: #f5d36e;
    box-shadow: 0 0 20px rgba(212,165,48,0.5);
}

.pricing-card--gold_theme .pricing-card__btn.btn-primary {
    background: linear-gradient(135deg,
        #8a6010 0%,
        #d4a530 25%,
        #fff0a0 55%,
        #f5d36e 70%,
        #c49020 100%
    );
    color: #1a1608;
    border: none;
    box-shadow: 0 2px 16px rgba(212,165,48,0.6), inset 0 1px 0 rgba(255,250,180,0.5);
    font-weight: 700;
}

.pricing-card--gold_theme .pricing-card__btn.btn-primary:hover {
    background: linear-gradient(135deg, #d4a530, #fff0a0, #d4a530);
    box-shadow: 0 4px 24px rgba(212,165,48,0.8);
}

.pricing-card--platinum_theme {
    background:
        linear-gradient(160deg,
            rgba(216,224,236,0.3) 0%,
            rgba(34,40,52,0.92) 30%,
            rgba(58,68,84,0.94) 68%,
            rgba(184,196,214,0.28) 100%
        );
    border-color: rgba(184,196,214,0.68);
    box-shadow:
        inset 0 1px 0 rgba(238,243,251,0.62),
        inset 0 -1px 0 rgba(50,60,80,0.78),
        inset 1px 0 0 rgba(238,243,251,0.16),
        inset -1px 0 0 rgba(30,40,60,0.42),
        0 8px 32px rgba(184,196,214,0.3),
        0 2px 8px rgba(0,0,0,0.55);
}

.pricing-card--platinum_theme::before {
    background:
        radial-gradient(ellipse 120% 60% at 30% 0%,
            rgba(238,243,251,0.44) 0%,
            transparent 60%
        ),
        radial-gradient(ellipse 80% 40% at 75% 100%,
            rgba(184,196,214,0.3) 0%,
            transparent 55%
        );
}

.pricing-card--platinum_theme::after {
    background: linear-gradient(135deg,
        transparent 34%,
        rgba(248,252,255,0.08) 43%,
        rgba(248,252,255,0.46) 50%,
        rgba(248,252,255,0.1) 57%,
        transparent 66%
    );
    box-shadow: 0 0 30px rgba(238,243,251,0.26);
}

.pricing-card--platinum_theme .pricing-card__title {
    background: linear-gradient(135deg,
        #6070a0 0%,
        #b8c4d6 25%,
        #f8fbff 50%,
        #d8e4f4 65%,
        #a0b0cc 80%,
        #607090 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(86,104,142,0.82);
    filter: drop-shadow(0 1px 4px rgba(184,196,214,0.5));
    text-shadow:
        0 0 0 rgba(86,104,142,0.82),
        0 1px 0 rgba(255,255,255,0.16),
        0 2px 5px rgba(46,58,84,0.48);
}

.pricing-card--platinum_theme .price-amount,
.pricing-card--platinum_theme .price-amount--current {
    color: #e4eef8;
    text-shadow: 0 0 24px rgba(184,196,214,0.55), 0 2px 4px rgba(0,0,0,0.4);
}

.pricing-card--platinum_theme .pricing-card__btn.btn-outline {
    border-color: rgba(184,196,214,0.65);
    color: #ccd8ea;
    background: rgba(184,196,214,0.07);
    backdrop-filter: blur(8px);
}

.pricing-card--platinum_theme .pricing-card__btn.btn-outline:hover {
    background: linear-gradient(135deg, rgba(184,196,214,0.28), rgba(238,243,251,0.15));
    border-color: #eef3fb;
    box-shadow: 0 0 18px rgba(184,196,214,0.4);
}

.pricing-card--platinum_theme .pricing-card__btn.btn-primary {
    background: linear-gradient(135deg,
        #607090 0%,
        #b8c4d6 30%,
        #f8fbff 55%,
        #d8e4f4 70%,
        #a0b4cc 100%
    );
    color: #171b22;
    border: none;
    box-shadow: 0 2px 14px rgba(184,196,214,0.45), inset 0 1px 0 rgba(255,255,255,0.6);
    font-weight: 700;
}

.pricing-card--platinum_theme .pricing-card__btn.btn-primary:hover {
    background: linear-gradient(135deg, #b8c4d6, #ffffff, #b8c4d6);
    box-shadow: 0 4px 22px rgba(184,196,214,0.65);
}

.pricing-card--diamond_theme {
    background:
        linear-gradient(160deg,
            rgba(122,180,224,0.34) 0%,
            rgba(22,28,40,0.92) 30%,
            rgba(38,50,70,0.94) 68%,
            rgba(100,160,210,0.28) 100%
        );
    border-color: rgba(122,180,224,0.7);
    box-shadow:
        inset 0 1px 0 rgba(200,230,255,0.58),
        inset 0 -1px 0 rgba(30,50,90,0.8),
        inset 1px 0 0 rgba(200,230,255,0.16),
        inset -1px 0 0 rgba(20,40,80,0.42),
        0 8px 32px rgba(122,180,224,0.34),
        0 2px 8px rgba(0,0,0,0.55),
        0 0 60px rgba(80,150,220,0.14);
}

.pricing-card--diamond_theme::before {
    background:
        radial-gradient(ellipse 120% 60% at 30% 0%,
            rgba(200,230,255,0.48) 0%,
            transparent 60%
        ),
        radial-gradient(ellipse 80% 40% at 75% 100%,
            rgba(122,180,224,0.3) 0%,
            transparent 55%
        ),
        radial-gradient(ellipse 60% 30% at 60% 50%,
            rgba(140,200,255,0.12) 0%,
            transparent 70%
        );
}

.pricing-card--diamond_theme::after {
    background: linear-gradient(135deg,
        transparent 34%,
        rgba(220,245,255,0.08) 43%,
        rgba(220,245,255,0.5) 50%,
        rgba(220,245,255,0.1) 57%,
        transparent 66%
    );
    box-shadow: 0 0 34px rgba(160,210,255,0.3);
}

.pricing-card--diamond_theme .pricing-card__title {
    background: linear-gradient(135deg,
        #3060a0 0%,
        #7ab4e0 25%,
        #d0f0ff 50%,
        #a8d4f0 65%,
        #5090c0 80%,
        #3060a0 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(48,96,160,0.85);
    filter: drop-shadow(0 1px 6px rgba(122,180,224,0.6));
    text-shadow:
        0 0 0 rgba(48,96,160,0.85),
        0 1px 0 rgba(230,248,255,0.16),
        0 2px 5px rgba(24,52,94,0.5);
}

.pricing-card--diamond_theme .price-amount,
.pricing-card--diamond_theme .price-amount--current {
    color: #c0e4ff;
    text-shadow: 0 0 28px rgba(122,180,224,0.65), 0 2px 4px rgba(0,0,0,0.4);
}

.pricing-card--diamond_theme .pricing-card__btn.btn-outline {
    border-color: rgba(122,180,224,0.65);
    color: #a8d4f0;
    background: rgba(122,180,224,0.07);
    backdrop-filter: blur(8px);
}

.pricing-card--diamond_theme .pricing-card__btn.btn-outline:hover {
    background: linear-gradient(135deg, rgba(122,180,224,0.28), rgba(200,230,255,0.15));
    border-color: #c8e6ff;
    box-shadow: 0 0 20px rgba(122,180,224,0.45);
}

.pricing-card--diamond_theme .pricing-card__btn.btn-primary {
    background: linear-gradient(135deg,
        #3060a0 0%,
        #7ab4e0 30%,
        #d0f0ff 55%,
        #a8d4f0 70%,
        #5090c0 100%
    );
    color: #0e1118;
    border: none;
    box-shadow: 0 2px 16px rgba(122,180,224,0.5), inset 0 1px 0 rgba(220,245,255,0.55);
    font-weight: 700;
}

.pricing-card--diamond_theme .pricing-card__btn.btn-primary:hover {
    background: linear-gradient(135deg, #7ab4e0, #d0f0ff, #7ab4e0);
    box-shadow: 0 4px 24px rgba(122,180,224,0.75);
}

/* END cards.css */

/* BEGIN loading.css */

/*
 * loading.css
 * 
 * Описание: Премиальные спиннеры, fullscreen/page-transition loader и анимации загрузки.
 * Компоненты: .loading-spinner, .btn.is-loading, .fullscreen-loader, .skeleton-card, .skeleton-text, .skeleton-avatar, .page-transition-spinner
 * Используется на: глобально в интерфейсе, кнопки форм, переходы между страницами
 * 
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Premium Loading System
   ========================================================================== */

@keyframes premium-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes premium-spinner-glow {
    0%,
    100% {
        filter: drop-shadow(0 0 0.15rem rgb(199 255 0 / 0.35));
    }

    50% {
        filter: drop-shadow(0 0 0.45rem rgb(199 255 0 / 0.7));
    }
}

@keyframes tennis-ball-wobble {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(0, -1px, 0) rotate(180deg);
    }

    100% {
        transform: translate3d(0, 0, 0) rotate(360deg);
    }
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -220% 0;
    }

    100% {
        background-position: 220% 0;
    }
}

.loading-spinner {
    --spinner-size: 18px;

    position: relative;
    display: inline-flex;
    width: var(--spinner-size);
    height: var(--spinner-size);
    border-radius: 999px;
    border: 2px solid rgb(255 255 255 / 0.2);
    border-top-color: var(--loading-accent);
    border-right-color: rgb(199 255 0 / 0.6);
    animation: premium-spinner-rotate 900ms var(--loading-ease) infinite,
               premium-spinner-glow 1800ms ease-in-out infinite;
    will-change: transform, filter;
    transform: translateZ(0);
}

.loading-spinner::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    background: radial-gradient(circle, rgb(199 255 0 / 0.16) 0%, transparent 70%);
    z-index: -1;
}

.loading-spinner.spinner-sm {
    --spinner-size: 14px;
}

.loading-spinner.spinner-md {
    --spinner-size: 18px;
}

.loading-spinner.spinner-lg {
    --spinner-size: 32px;
    border-width: 2.5px;
}

.loading-spinner--tennis-ball {
    border-color: rgb(199 255 0 / 0.92);
    background:
        radial-gradient(circle at 30% 30%, rgb(255 255 255 / 0.35), transparent 55%),
        radial-gradient(circle at 65% 68%, rgb(199 255 0 / 0.95), rgb(145 190 0 / 0.95));
    box-shadow:
        inset 0 0 0 1px rgb(255 255 255 / 0.18),
        0 4px 16px rgb(199 255 0 / 0.26);
    animation: tennis-ball-wobble 1200ms var(--loading-ease) infinite;
    overflow: hidden;
}

.loading-spinner--tennis-ball::before {
    content: "";
    position: absolute;
    inset: 9% 18%;
    border-left: 2px solid rgb(255 255 255 / 0.75);
    border-right: 2px solid rgb(255 255 255 / 0.75);
    border-radius: 999px;
    transform: rotate(24deg);
}

.btn {
    transform: translateZ(0);
    transition:
        background 220ms var(--loading-ease),
        color 220ms var(--loading-ease),
        border-color 220ms var(--loading-ease),
        opacity 220ms var(--loading-ease),
        transform 180ms var(--loading-ease),
        box-shadow 220ms var(--loading-ease);
    will-change: transform;
}

.btn:not(:disabled):active {
    transform: scale(0.97);
}

.btn.is-loading {
    cursor: wait;
    pointer-events: none;
    opacity: 0.92;
}

.btn-loading-content {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 1;
}

.btn-loading-label {
    white-space: nowrap;
}

.fullscreen-loader {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgb(9 14 20 / 0.48);
    backdrop-filter: blur(8px) saturate(120%);
    opacity: 0;
    transition: opacity 220ms var(--loading-ease);
    z-index: 12000;
}

.fullscreen-loader.is-visible {
    display: flex;
    opacity: 1;
}

.fullscreen-loader__panel {
    min-width: 190px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgb(255 255 255 / 0.2);
    background: linear-gradient(
        145deg,
        rgb(255 255 255 / 0.1),
        rgb(255 255 255 / 0.05)
    );
    box-shadow: var(--loading-shadow);
}

.fullscreen-loader__text {
    font-size: var(--font-size-sm);
    color: rgb(255 255 255 / 0.95);
    letter-spacing: 0.01em;
}

body.has-fullscreen-loader {
    overflow: hidden;
}

.skeleton-card,
.skeleton-text,
.skeleton-avatar {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        100deg,
        rgb(255 255 255 / 0.06) 20%,
        rgb(255 255 255 / 0.14) 42%,
        rgb(255 255 255 / 0.06) 64%
    );
    background-size: 220% 100%;
    animation: skeleton-shimmer 1.5s linear infinite;
}

.skeleton-card {
    border-radius: 14px;
    min-height: 132px;
    border: 1px solid rgb(255 255 255 / 0.07);
}

.skeleton-text {
    height: 12px;
    border-radius: 999px;
}

.skeleton-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
}

.page-transition-spinner {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 11000;
    opacity: 0;
    transform: translateY(6px) scale(0.9);
    transition:
        opacity 260ms var(--loading-ease),
        transform 260ms var(--loading-ease);
}

.page-transition-spinner::before {
    content: "";
    position: absolute;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, rgb(199 255 0 / 0.18), transparent 70%),
                radial-gradient(circle at 70% 80%, rgb(0 0 0 / 0.65), transparent 75%);
    box-shadow: 0 18px 45px rgb(0 0 0 / 0.55);
    filter: blur(0.2px);
}

.page-transition-spinner .loading-spinner {
    --spinner-size: 38px;
}

.page-transition-spinner.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* END loading.css */

/* BEGIN match-card.css */

/*
 * match-card.css
 * 
 * Описание: Карточка матча, статусные бейджи, подписочные бейджи и связанные метрики игрока.
 * Компоненты: .match-card, .match-header, .match-status-badge, .subscription-badge, .profile-card, .player-stats, .player-points
 * Используется на: страницы матчей, профиль, списки/детали матчей
 * 
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Match Card
   ========================================================================== */
.match-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    position: relative;
}

.match-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    gap: var(--spacing-sm);
}

.match-header__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
    min-width: 0;
    flex: 1 1 0;
    padding-right: var(--spacing-sm);
}

.match-header__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-xs);
    flex-shrink: 0;
}

.match-tournament {
    color: var(--color-primary);
    font-weight: 500;
}

/* Контекст и организатор в шапке карточки матча (профиль) */
.match-card__context {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.35;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.match-card__host {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
}

.match-card__host .tournament-card-host-badge--club {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-card__host .tournament-brand-badge {
    font-size: 9px;
    padding: 2px 7px 2px 6px;
    gap: 4px;
}

.match-card__host .tournament-brand-badge__dot {
    width: 5px;
    height: 5px;
}

.match-status-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.2;
}

.match-status-badge--scheduled {
    background: rgb(59 130 246 / 10%);
    color: #3b82f6;
    border: 1px solid rgb(59 130 246 / 30%);
}

.match-status-badge--in_progress {
    background: rgb(245 158 11 / 10%);
    color: #f59e0b;
    border: 1px solid rgb(245 158 11 / 30%);
}

.match-status-badge--completed {
    background: rgb(34 197 94 / 10%);
    color: #22c55e;
    border: 1px solid rgb(34 197 94 / 30%);
}

.match-status-badge--cancelled {
    background: rgb(239 68 68 / 10%);
    color: #ef4444;
    border: 1px solid rgb(239 68 68 / 30%);
}

.match-status-badge--walkover {
    background: rgb(107 114 128 / 10%);
    color: #6b7280;
    border: 1px solid rgb(107 114 128 / 30%);
}

/* Анимация по часовой стрелке (сохраняем центрирование) */
@keyframes snake-rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.subscription-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 2px var(--spacing-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.subscription-badge__icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.subscription-badge__icon--platinum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    color: #f8fbff;
    text-shadow: 0 0 8px rgb(184 196 214 / 65%);
}

.subscription-badge__label {
    line-height: 1;
}

.subscription-badge--silver {
    background: rgb(192 192 192 / 20%);
    color: #c0c0c0;
    border: 1px solid rgb(192 192 192 / 40%);
}

.subscription-badge--gold {
    background: rgb(218 165 32 / 20%);
    color: #daa520;
    border: 1px solid rgb(218 165 32 / 50%);
}

.subscription-badge--diamond {
    background: rgb(185 242 255 / 15%);
    color: #b9f2ff;
    border: 1px solid rgb(185 242 255 / 40%);
}

.subscription-badge--platinum {
    background: linear-gradient(135deg, rgb(184 196 214 / 20%) 0%, rgb(238 243 251 / 12%) 100%);
    color: #dbe5f2;
    border: 1px solid rgb(184 196 214 / 45%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%);
}

.subscription-badge-wrap--card {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
}

.profile-card {
    max-width: 500px;
    margin: 0 auto var(--spacing-xl);
    position: relative;
}

.player-category {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--color-primary-transparent);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.player-stats {
    display: flex;
    gap: var(--spacing-md);
    text-align: center;
    flex-wrap: nowrap;
    min-width: 0;
    justify-content: space-between;
}

.player-stats>div {
    min-width: 0;
    flex: 0 0 auto;
}

@media (width <= 768px) {
    .player-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media (width <= 480px) {
    .player-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .stat-value {
        font-size: var(--font-size-lg);
    }

    .stat-label {
        font-size: 0.65rem;
    }
}

.stat-value {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.player-points {
    font-size: var(--font-size-2xl);
    font-weight: 800;
}

@media (width <= 480px) {
    .player-points {
        font-size: var(--font-size-xl);
    }
}

/* END match-card.css */

/* BEGIN rating-chart.css */

/*
 * rating-chart.css
 * 
 * Описание: Визуализация рейтинга в виде строк/баров и адаптивное поведение.
 * Компоненты: .rating-toggle, .rating-chart, .rating-chart-bars, .rating-chart-row, .rating-chart-bar, .rating-chart-value
 * Используется на: профиль игрока, блоки статистики рейтинга
 * 
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Rating Chart
   ========================================================================== */
.rating-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--spacing-lg);
}

@media (width <= 480px) {
    .rating-toggle {
        justify-content: center;
        margin-bottom: var(--spacing-md);
    }
}

.rating-chart {
    margin-top: var(--spacing-lg);
}

.rating-chart-bars {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.rating-chart-row {
    display: grid;
    grid-template-columns: minmax(140px, 1.5fr) 3fr minmax(60px, 0.6fr);
    gap: var(--spacing-md);
    align-items: center;
}

@media (width <= 768px) {
    .rating-chart-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .rating-chart-bar {
        width: 100%;
    }

    .rating-chart-value {
        text-align: left;
    }
}

.rating-chart-label {
    font-size: var(--font-size-sm);
    color: var(--color-text);
}

.rating-chart-bar {
    position: relative;
    height: 12px;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
}

.rating-chart-bar span {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.rating-chart-value {
    text-align: right;
    font-weight: 600;
    color: var(--color-primary);
}

/* END rating-chart.css */

/* BEGIN alerts.css */

/*
 * alerts.css
 * 
 * Описание: Системные уведомления/сообщения с вариантами успех/ошибка/предупреждение/инфо.
 * Компоненты: .messages-container, .alert, .alert-success, .alert-error, .alert-warning, .alert-info, .alert-close
 * Используется на: глобально в шаблонах с flash-сообщениями
 * 
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Alerts / Messages
   ========================================================================== */
.messages-container {
    padding: var(--spacing-md) 0;
}

@media (width <= 480px) {
    .messages-container {
        padding: var(--spacing-sm) 0;
    }
}

.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

@media (width <= 480px) {
    .alert {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
}

.alert-success {
    background: rgb(2 94 4 / 95.6%);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}

.alert-error,
.alert-danger {
    background: rgb(151 0 0);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.alert-warning {
    background: rgb(163 0 0);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.alert-info {
    background: rgba(166, 130, 74, 0.25);
    border: 1px solid var(--color-info);
    color: var(--color-text);
}

.alert-close {
    font-size: var(--font-size-xl);
    cursor: pointer;
    opacity: 1;
    transition: opacity var(--transition-fast);
}

.alert-close:hover {
    opacity: 1;
}

/* END alerts.css */

/* BEGIN cookie.css */

/*
 * cookie.css
 * 
 * Описание: Баннер согласия на cookie с действиями подтверждения/отказа.
 * Компоненты: .cookie-banner, .cookie-banner__inner, .cookie-banner__text, .cookie-banner__actions, .cookie-banner__btn
 * Используется на: глобально в базовом шаблоне сайта
 * 
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: var(--spacing-md);
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgb(0 0 0 / 30%);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner[hidden] {
    display: block !important;
    visibility: hidden;
    transform: translateY(100%);
}

.cookie-banner--visible {
    visibility: visible;
    transform: translateY(0);
}

.cookie-banner__inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-lg);
}

.cookie-banner__text {
    flex: 1 1 280px;
    margin: 0;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    color: var(--color-text);
}

.cookie-banner__link {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__link:hover {
    color: var(--color-text-secondary);
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
}

.cookie-banner__btn--accept {
    background: var(--color-primary);
    color: var(--color-bg);
    border-color: var(--color-primary);
}

.cookie-banner__btn--accept:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.cookie-banner__btn--refuse {
    background: transparent;
    color: var(--color-text-secondary);
    border-color: var(--color-border);
}

.cookie-banner__btn--refuse:hover {
    background: var(--color-bg-elevated);
    color: var(--color-text);
    border-color: var(--color-text-muted);
}

@media (width <= 600px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
        align-content: flex-start;
        gap: var(--spacing-sm);
        text-align: left;
    }

    .cookie-banner__text {
        flex: none;
    }

    .cookie-banner__actions {
        justify-content: stretch;
        display: flex;
        gap: var(--spacing-sm);
    }

    .cookie-banner__actions .cookie-banner__btn {
        flex: 1;
        min-width: 0;
    }
}

/* END cookie.css */

/* BEGIN footer.css */

/*
 * footer.css
 * 
 * Описание: Стили футера, CTA-блока, ссылок, социальных кнопок и связанных адаптивных правил.
 * Компоненты: .footer, .footer-grid, .footer-club-cta__*, .footer-section__*, .social-link, .footer-bottom
 * Используется на: глобально в базовом шаблоне (подвал сайта)
 * 
 * Последнее обновление: 2026-03 (компактная высота футера)
 */

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: linear-gradient(to bottom, #012b1c, #001f14);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-md) 0 var(--spacing-sm);
    margin-top: auto;
    position: relative;
}

.footer-club-cta {
    margin-top: var(--spacing-sm);
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.footer-club-cta__inner {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    background: radial-gradient(circle at 0 0, rgba(6, 78, 59, 0.9), rgba(3, 24, 18, 0.95));
    border: 1px solid rgba(166, 130, 74, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    max-width: 360px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
}

.footer-club-cta__text {
    position: relative;
    z-index: 1;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-club-cta__label {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.7);
}

.footer-club-cta__subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.footer-club-cta__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-club-cta__button {
    position: relative;
    z-index: 1;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(166, 130, 74, 0.9);
    background: rgba(3, 17, 13, 0.95);
    color: var(--color-text);
    font-weight: 700;
    font-size: var(--font-size-sm);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 0 14px rgba(166, 130, 74, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition:
        transform 160ms ease-out,
        box-shadow 160ms ease-out,
        background 160ms ease-out,
        filter 160ms ease-out;
    white-space: nowrap;
}

.footer-club-cta__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(166, 130, 74, 0.35);
    background: rgba(5, 30, 22, 0.98);
}

.footer-club-cta__button--secondary {
    border-color: rgba(34, 197, 94, 0.65);
    color: #d8fbe6;
    background: rgba(5, 30, 22, 0.72);
    box-shadow: 0 0 14px rgba(22, 163, 74, 0.18);
}

.footer-club-cta__button--secondary:hover {
    box-shadow: 0 0 18px rgba(22, 163, 74, 0.3);
    background: rgba(7, 38, 28, 0.96);
}

@keyframes footer-club-cta-pulse {
    0% {
        box-shadow:
            0 0 20px rgba(250, 204, 21, 0.4),
            0 0 0 1px rgba(0, 0, 0, 0.65);
    }
    50% {
        box-shadow:
            0 0 32px rgba(250, 204, 21, 0.8),
            0 0 0 1px rgba(0, 0, 0, 0.9);
    }
    100% {
        box-shadow:
            0 0 20px rgba(250, 204, 21, 0.4),
            0 0 0 1px rgba(0, 0, 0, 0.65);
    }
}

@media (width <= 768px) {
    .footer-club-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-club-cta__text {
        max-width: 100%;
    }

    .footer-club-cta__button {
        width: 100%;
        justify-content: center;
    }

    .footer-club-cta__actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .footer-join-club-modal {
        padding: 1rem;
        align-items: flex-end;
    }

    .footer-join-club-modal__dialog {
        max-width: none;
        border-radius: 1.2rem 1.2rem 0.9rem 0.9rem;
    }

    .footer-join-club-modal__header,
    .footer-join-club-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-join-club-card {
        display: grid;
    }

    .footer-join-club-card__actions {
        justify-content: stretch;
    }

    .footer-join-club-card__actions > * {
        width: 100%;
    }
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(800px 500px at 10% 10%, rgba(255, 255, 255, 0.03), transparent 70%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
    align-items: start;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.footer-brand-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 0 4px 0;
    color: var(--color-text);
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.15;
}

.footer-brand-title-link {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25em 0.45em;
    text-decoration: none;
    color: inherit;
}

.footer-brand-title__sep {
    color: var(--color-text-secondary);
    font-weight: 500;
    opacity: 0.7;
    user-select: none;
}

.footer-brand-accent {
    color: var(--color-accent);
}

.footer-desc {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    max-width: 280px;
    margin-bottom: 6px;
    line-height: 1.35;
}

.footer-btn-extra {
    margin-top: 4px !important;
    display: inline-block;
}

.footer-btn-extra + .footer-btn-extra {
    margin-left: var(--spacing-xs);
}

.footer-section__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    padding: 0;
    margin: 0 0 6px 0;
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.8;
    text-align: left;
}

.footer-section__icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-bottom: 3px;
    transition: transform 0.2s ease;
}

.footer-section.is-open .footer-section__icon {
    transform: rotate(-135deg);
    margin-bottom: -3px;
}

.footer-links .footer-section__content,
.footer-links ul.footer-section__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

@media (min-width: 769px) {
    .footer-section__toggle {
        width: auto;
        justify-content: flex-start;
        gap: 8px;
    }

    .footer-section__icon {
        width: 8px;
        height: 8px;
        margin-bottom: 1px;
    }

    .footer .footer-section .footer-section__content {
        display: flex;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-4px);
        pointer-events: none;
        padding-bottom: var(--spacing-sm);
        transition:
            max-height 0.32s ease,
            opacity 0.24s ease,
            transform 0.24s ease;
    }

    .footer .footer-section.is-open .footer-section__content {
        max-height: 420px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Для длинных списков в футере — компактная двухколоночная раскладка */
    .footer-grid > .footer-section:nth-child(2) .footer-section__content,
    .footer-grid > .footer-section:nth-child(3) .footer-section__content {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: var(--spacing-md);
        row-gap: 2px;
        align-content: start;
    }

    .footer-grid > .footer-section:nth-child(2) .footer-section__content li,
    .footer-grid > .footer-section:nth-child(3) .footer-section__content li {
        min-width: 0;
    }
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 13px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
    padding: 2px 0;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-social__title {
    font-size: 11px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.8;
}

.footer-join-club-modal {
    background:
        radial-gradient(circle at top left, rgba(22, 163, 74, 0.12), transparent 34%),
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.14), transparent 30%),
        rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(12px);
}

.footer-join-club-modal__dialog {
    max-width: 920px;
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid rgba(201, 168, 76, 0.28);
    background:
        linear-gradient(180deg, rgba(7, 50, 38, 0.98), rgba(3, 31, 23, 0.98));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.footer-join-club-modal__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(201, 168, 76, 0.28);
    border-radius: 999px;
    color: #f3d27d;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(201, 168, 76, 0.1);
}

.footer-join-club-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-join-club-modal__title {
    margin-bottom: 6px;
    color: #f4efe6;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.footer-join-club-modal__text {
    margin-bottom: 0;
    color: rgba(218, 225, 220, 0.92);
}

.footer-join-club-modal__close {
    border: 0;
    background: transparent;
    color: rgba(244, 239, 230, 0.86);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.footer-join-club-modal__list {
    display: grid;
    gap: 10px;
    max-height: min(65vh, 720px);
    overflow-y: auto;
    padding-right: 4px;
}

.footer-join-club-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(201, 168, 76, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.footer-join-club-card__main {
    min-width: 0;
}

.footer-join-club-card__title-row,
.footer-join-club-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-join-club-card__title {
    color: #fefce8;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-join-club-card__city,
.footer-join-club-card__meta,
.footer-join-club-card__description,
.footer-join-club-card__hint {
    color: rgba(226, 232, 240, 0.76);
}

.footer-join-club-card__city {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-join-club-card__meta {
    margin-top: 5px;
    font-size: 0.82rem;
}

.footer-join-club-card__description,
.footer-join-club-card__hint {
    margin: 6px 0 0;
    font-size: 0.84rem;
    line-height: 1.45;
}

.footer-join-club-card__hint {
    color: #f3d27d;
}

.footer-join-club-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-join-club-modal__empty {
    padding: 18px;
    border-radius: 16px;
    border: 1px dashed rgba(201, 168, 76, 0.22);
    color: rgba(226, 232, 240, 0.8);
    text-align: center;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    color: var(--color-text-secondary);
    transition: background var(--transition-fast), border-color var(--transition-fast),
                color var(--transition-fast), transform var(--transition-fast);
}

.social-link:hover {
    background: var(--color-primary);
    color: var(--color-bg);
}

.social-link svg,
.social-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-club-cta {
    margin-top: var(--spacing-sm);
}

.footer-club-cta__inner {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 320px;
}

.footer-club-cta__label {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.85);
}

.footer-club-cta__subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.footer-club-cta__button {
    width: 100%;
    margin-top: 4px;
}

@media (width <= 768px) {
    .footer-club-cta__inner {
        max-width: 100%;
    }
}

.footer-donate,
.footer-brand .btn-donate {
    background: #caa94f !important;
    color: #0f3f40 !important;
    border-radius: 8px;
    padding: 7px 14px;
    transition: 0.2s ease;
    border: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.footer-donate:hover,
.footer-brand .btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    color: #0f3f40 !important;
    background: #caa94f !important;
}

@media (width <= 480px) {
    .footer-donate,
    .footer-brand .btn-donate {
        padding: 8px 14px;
        font-size: var(--font-size-xs);
    }
}

.footer-bottom {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(202, 169, 79, 0.15);
    font-size: 11px;
    opacity: 0.7;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--color-text-muted);
    position: relative;
    z-index: 1;
    line-height: 1.35;
}

.footer-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-copy p {
    margin: 0;
}

.footer-credit {
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.skifmail {
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: 600;
    transition: letter-spacing 0.25s ease, opacity 0.25s ease;
}

.skif {
    color: rgba(255, 255, 255, 0.9);
}

.mail {
    color: #caa94f;
}

.skifmail:hover {
    letter-spacing: 2px;
    opacity: 1;
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-credit {
        justify-content: center;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (width <= 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (width <= 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
}

@media (width <= 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }

    .footer-brand-title {
        font-size: 17px;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .page-title {
        font-size: var(--font-size-3xl);
    }

}

@media (width <= 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: var(--spacing-sm) 0 var(--spacing-xs);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .footer-section__toggle {
        padding: var(--spacing-sm) 0;
        margin-bottom: 0;
        font-size: 12px;
        opacity: 1;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Скрываем контент по умолчанию (специфичность выше .footer-links .footer-section__content) */
    .footer .footer-section .footer-section__content {
        display: none;
        padding: var(--spacing-sm) 0 var(--spacing-md);
    }

    .footer .footer-section.is-open .footer-section__content {
        display: flex;
    }

    .footer-links ul.footer-section__content {
        gap: 1px;
    }

    .footer-btn-extra + .footer-btn-extra {
        margin-left: 0;
        margin-top: var(--spacing-xs) !important;
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .page-title {
        font-size: var(--font-size-2xl);
    }

    .btn {
        line-height: 1.2;
    }

    /* Match cards */
    .match-card {
        padding: var(--spacing-md);
    }

    .match-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }

    .match-header__left {
        width: 100%;
        flex: none;
        padding-right: 0;
    }

    .match-header__right {
        align-items: flex-start;
        width: 100%;
    }

    .match-status-badge {
        font-size: 0.7rem;
        padding: 2px var(--spacing-xs);
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .footer-brand .logo {
        display: inline-block;
        margin-bottom: 0;
    }

    .footer-desc {
        margin-top: 0;
        margin-bottom: var(--spacing-sm);
    }

    .match-players {
        gap: var(--spacing-sm);
    }

    /* Tables */
    .match-score-table {
        font-size: var(--font-size-xs);
    }

    .match-score-table th,
    .match-score-table td {
        padding: 4px 6px;
    }
}

@media (width <= 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

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

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Typography */
    .hero-title {
        font-size: var(--font-size-xl);
        line-height: 1.2;
    }

    .hero-text-reveal {
        padding: var(--spacing-md) var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }

    .page-title {
        font-size: var(--font-size-xl);
    }

    .section-title {
        font-size: var(--font-size-lg);
    }

    /* Cards */
    .card-title {
        font-size: var(--font-size-base);
    }

    /* Forms */
    .form-group {
        margin-bottom: var(--spacing-md);
    }

    .form-label {
        font-size: var(--font-size-sm);
    }

    /* Buttons */
    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
    }

    .footer-links h4,
    .footer-social h4 {
        font-size: var(--font-size-xs);
        margin-bottom: var(--spacing-md);
    }

    /* Prevent text overflow */
    * {
        overflow-wrap: break-word;
    }

    /* Touch targets - minimum 44px for iOS */
    button,
    a.btn,
    input[type="submit"],
    input[type="button"],
    .nav-toggle,
    .nav-dropdown-toggle {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Better scrolling on mobile */
    .main {
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
}

/* END footer.css */

/* BEGIN messenger.css */

/*
 * messenger.css
 * 
 * Описание: Кнопки и иконки мессенджеров (Telegram, WhatsApp, MAX), включая подписи в формах.
 * Компоненты: .messenger-btn, .messenger-btn__icon, .messenger-links, .form-label-with-logo, .form-label__icon, .form-group-messenger
 * Используется на: формы профиля, блоки откликов/модальных действий
 * 
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Messenger buttons & logos (Telegram, WhatsApp, MAX)
   ========================================================================== */
.messenger-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.messenger-btn__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    vertical-align: middle;
    object-fit: contain;
}

.messenger-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

@media (width <= 768px) {
    .messenger-btn__icon {
        width: 16px;
        height: 16px;
        max-width: 16px;
        max-height: 16px;
    }

    .messenger-links .messenger-btn {
        font-size: var(--font-size-sm);
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .sparring-modal__link.messenger-btn .messenger-btn__icon {
        width: 18px;
        height: 18px;
        max-width: 18px;
        max-height: 18px;
    }
}

/* Form labels with messenger logos (profile edit) */
.form-label-with-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.form-label__icon {
    flex-shrink: 0;
    vertical-align: middle;
    object-fit: contain;
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
}

.form-group-messenger {
    flex: 1;
    min-width: 200px;
}

.sparring-modal__link.messenger-btn {
    justify-content: center;
}

/* END messenger.css */

/* BEGIN stars.css */

/*
 * stars.css
 * 
 * Описание: Звёздный рейтинг корта с частичной заливкой и счётчиком.
 * Компоненты: .star-rating, .star-rating__empty, .star-rating__fill-clip, .star-rating__fill, .star-rating__count
 * Используется на: карточки и детальные страницы кортов
 * 
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Court star rating (hollow stars, fill by average)
   ========================================================================== */
.star-rating {
    position: relative;
    display: inline-block;
    line-height: 1;
    color: var(--color-border-light);
}

.star-rating__empty {
    display: inline-block;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    opacity: 0.8;
}

/* Обёртка с шириной N% — обрезает заливку по рейтингу */
.star-rating__fill-clip {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.star-rating__fill {
    display: inline-block;
    white-space: nowrap;
    letter-spacing: 0.05em;
    color: var(--color-primary);
}

.star-rating--sm .star-rating__empty,
.star-rating--sm .star-rating__fill-clip,
.star-rating--sm .star-rating__fill {
    font-size: var(--font-size-sm);
}

.star-rating__count {
    margin-left: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* END stars.css */

/* BEGIN lightbox.css */

/*
 * lightbox.css
 * 
 * Описание: Полноэкранный просмотр изображений с навигацией и подписью.
 * Компоненты: .lightbox-overlay, .lightbox-content, .lightbox-img, .lightbox-caption, .lightbox-close, .lightbox-prev, .lightbox-next
 * Используется на: страницы/карточки с галереями и фото
 * 
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Lightbox — просмотр фото во всплывающем окне с подписью и листанием
   ========================================================================== */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    z-index: 10000;
    background: rgb(0 0 0 / 90%);
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    box-sizing: border-box;
    overflow: hidden auto;
}

.lightbox-overlay.lightbox-open {
    display: flex;
    flex-wrap: nowrap;
}

.lightbox-content {
    margin: auto;
    min-height: 0;
    max-width: 95vw;
    max-height: min(90vh, 90dvh);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.lightbox-img {
    max-width: 95vw;
    max-height: min(75vh, 75dvh);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: var(--radius-md);
    display: block;
}

.lightbox-caption {
    margin: var(--spacing-md) 0 0;
    padding: 0;
    color: var(--color-text);
    font-size: var(--font-size-sm);
    text-align: center;
    max-width: 90vw;
    flex-shrink: 0;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    border: none;
    background: rgb(166 130 74 / 30%);
    color: var(--color-text);
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-primary);
}

.lightbox-close {
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: 2.5rem;
}

.lightbox-prev {
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
}

/* END lightbox.css */

/* BEGIN feedback.css */

/*
 * feedback.css
 * 
 * Описание: Плавающий виджет обратной связи (кнопка и анимации).
 * Компоненты: .feedback-widget, .feedback-widget__btn, .feedback-widget__icon, .feedback-widget__label
 * Используется на: глобально на страницах сайта
 * 
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Feedback widget (floating button + modal)
   ========================================================================== */
.feedback-widget {
    position: fixed;
    right: var(--spacing-lg);
    bottom: var(--spacing-lg);
    z-index: 1000;
}

@keyframes feedback-widget-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes feedback-widget-ring {
    0%, 100% { transform: scale(1); opacity: 0.35; }
    50% { transform: scale(1.12); opacity: 0; }
}

.feedback-widget__btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    color: var(--color-primary);
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    box-shadow: none;
    transition: transform var(--transition-fast), background-color 0.2s ease;
    animation: feedback-widget-pulse 2s ease-in-out infinite;
    will-change: transform;
}

.feedback-widget__btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 8px rgb(166 130 74 / 25%);
    animation: feedback-widget-ring 2s ease-in-out infinite;
    pointer-events: none;
    will-change: transform, opacity;
}

.feedback-widget__btn:hover {
    animation: none;
    transform: scale(1.02);
    background: rgb(166 130 74 / 0.12);
    box-shadow: none;
}

.feedback-widget__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feedback-widget__icon-img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    /* на прозрачной кнопке иконка видна без blend */
    opacity: 0.9;
}

.feedback-widget__btn .feedback-widget__label {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: max-width 0.25s ease, opacity 0.2s ease;
}

.feedback-widget__btn:hover .feedback-widget__label {
    max-width: 140px;
    opacity: 1;
    margin-left: 0;
}

/* END feedback.css */

/* BEGIN autocomplete.css */

/*
 * autocomplete.css
 * 
 * Описание: Список подсказок автодополнения города для полей ввода.
 * Компоненты: .city-autocomplete, .city-autocomplete__item, .city-autocomplete__item--active
 * Используется на: формы создания/редактирования с выбором города
 * 
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   City autocomplete (поля ввода города)
   ========================================================================== */
.city-autocomplete {
    background: var(--color-bg-card, #fff);
    border: 1px solid var(--color-border, #ccc);
    border-radius: var(--radius-md, 6px);
    box-shadow: var(--shadow-lg, 0 4px 12px rgb(0 0 0 / 18%));
    max-height: 240px;
    overflow-y: auto;
    padding: var(--spacing-xs) 0;
}

.city-autocomplete__item {
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--color-text, #1a1a1a);
}

.city-autocomplete__item:hover,
.city-autocomplete__item--active {
    background: var(--color-primary-transparent, rgb(30 144 255 / 15%));
    color: var(--color-text, #1a1a1a);
}

/* END autocomplete.css */

/* BEGIN profile.css */

/*
 * profile.css
 *
 * Описание: Разметка и визуальные блоки страницы профиля, включая Telegram, подписку, карточку и статистику.
 * Компоненты: .profile-card--wide, .profile-card__inner, .profile-info__*, .subscription-info__actions, .profile-info__telegram
 * Используется на: страница профиля пользователя
 *
 * Последнее обновление: 2026-03
 */

/* Блок Telegram-бот на странице профиля */
.profile-info__telegram {
    margin-top: var(--spacing-lg);
    padding: 1.25rem 1.5rem;
    background: var(--color-bg-secondary, #f8fafc);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border, #e2e8f0);
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.profile-info__telegram-title {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-sm);
    margin-top: 0;
}

.profile-info__telegram-text {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
    margin-top: 0;
}

.profile-info__telegram-text:last-of-type {
    margin-bottom: var(--spacing-md);
}

.profile-info__telegram-status {
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.profile-info__telegram-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    align-items: center;
}

.profile-info__telegram-consent-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.profile-info__telegram-consent {
    align-items: flex-start;
}

/* --- Subscription actions in profile --- */
.subscription-info__actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.subscription-info__actions--separated {
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-border-light);
}

/* Full-width profile card: left info + right charts */
.profile-card.profile-card--wide {
    max-width: none;
    width: 100%;
    margin: 0 0 var(--spacing-xl);
}

.profile-card__inner {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: var(--spacing-xl);
    align-items: start;
    overflow-x: hidden;
    position: relative;
}

/* Фоновое изображение только до начала фильтров (без черного затемнения) */

/* Изображение выходит за пределы padding контейнера через отрицательные margin */
.profile-card--wide .card-body {
    position: relative;
    overflow: hidden;

    /* Чтобы изображение не выходило за границы */
}

.profile-card--wide .card-body::before {
    content: '';
    position: absolute;
    top: calc(-1 * var(--spacing-lg));
    left: calc(-1 * var(--spacing-lg));
    right: calc(-1 * var(--spacing-lg));
    height: calc(353px + var(--spacing-lg));

    /* Высота + верхний padding */
    background-image: url("/static/images/user_stat_image.7ff62307219a.jpg");
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

/* Контент поверх фона */
.profile-card__inner>* {
    position: relative;
    z-index: 1;
}

.profile-info {
    min-width: 0;
    max-width: 100%;
    text-align: left;
    overflow-x: hidden;
}

.profile-info__header {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: #013220cf;
    backdrop-filter: blur(10px) saturate(180%);
    border-radius: var(--radius-md);
    border: 1px solid rgb(255 255 255 / 20%);
    box-shadow: 0 8px 32px rgb(0 0 0 / 10%);
    position: relative;
    z-index: 1;
}

.profile-info__avatar {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.profile-info__title {
    min-width: 0;
}

.profile-info__name {
    font-size: var(--font-size-xl);
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.1;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile-info__badges {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.profile-info__subscription-badge {
    display: inline-flex;
    align-items: center;
}

.profile-info__details {
    font-size: var(--font-size-sm);
    padding: var(--spacing-md);
    background: #013220cf;
    backdrop-filter: blur(10px) saturate(180%);
    border-radius: var(--radius-md);
    border: 1px solid rgb(255 255 255 / 20%);
    box-shadow: 0 8px 32px rgb(0 0 0 / 10%);
    position: relative;
    z-index: 1;
}

.profile-stats-table {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg, #fff);
}

.stats-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
    table-layout: fixed;
    box-sizing: border-box;
    margin: 0;
}

.stats-table td {
    border-right: 1px solid var(--color-border-light, #f1f5f9);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.stats-table td:last-child {
    border-right: none;
}

/* Таблица в два блока по три колонки */
.stats-table--two-rows .stats-table__header-row {
    background: var(--color-bg-secondary, #f8fafc);
    color: var(--color-text-secondary, #64748b);
    font-weight: 500;
}

.stats-table--two-rows .stats-table__header-row td {
    padding: var(--spacing-sm) 6px;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
    font-size: var(--font-size-xs);
    line-height: 1.3;
    white-space: nowrap;
}

.stats-table--two-rows .stats-table__data-row td {
    padding: var(--spacing-md) 6px;
    color: var(--color-text, #1e293b);
    font-size: var(--font-size-sm);
    line-height: 1.4;
    white-space: nowrap;
}

.stats-table--two-rows .stats-table__data-row:first-of-type td {
    border-bottom: 1px solid var(--color-border, #e2e8f0);
}

.stats-table--two-rows .stats-table__data-row:last-child td {
    border-bottom: none;
}

.stats-table--two-rows td:nth-child(1) {
    width: 40%;
}

.stats-table--two-rows td:nth-child(2) {
    width: 30%;
}

.stats-table--two-rows td:nth-child(3) {
    width: 30%;
}

.profile-stats__rating-val {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.profile-stats__rating-val .rating-badge__arrow {
    font-size: 0.9em;
}

@media (width <= 1024px) {
    .stats-table--two-rows .stats-table__header-row td {
        padding: var(--spacing-xs) 4px;
        font-size: 11px;
    }

    .stats-table--two-rows .stats-table__data-row td {
        padding: var(--spacing-sm) 4px;
        font-size: var(--font-size-xs);
    }
}

@media (width <= 768px) {
    .profile-stats-table {
        margin-top: var(--spacing-md);
        margin-bottom: var(--spacing-sm);
        width: 100%;
        max-width: 100%;
    }

    .stats-table--two-rows {
        font-size: var(--font-size-xs);
    }

    .stats-table--two-rows .stats-table__header-row td {
        padding: var(--spacing-xs) 4px;
        font-size: 10px;
        line-height: 1.2;
        white-space: normal;
    }

    .stats-table--two-rows .stats-table__data-row td {
        padding: var(--spacing-sm) 4px;
        font-size: 11px;
        line-height: 1.3;
        white-space: normal;
    }
}

@media (width <= 480px) {
    .profile-stats-table {
        margin-top: var(--spacing-sm);
        margin-bottom: var(--spacing-xs);
    }

    .stats-table--two-rows .stats-table__header-row td {
        padding: 6px 4px;
        font-size: 9px;
        line-height: 1.1;
    }

    .stats-table--two-rows .stats-table__data-row td {
        padding: 8px 4px;
        font-size: 10px;
        line-height: 1.2;
    }
}

.profile-info__stats {
    justify-content: flex-start;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.profile-info__bio {
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-sm);
}

.profile-info__messengers {
    margin-top: var(--spacing-md);
}

.profile-info__subscription,
.profile-info__subscription-alert {
    text-align: left;
    background: var(--color-bg-secondary);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    font-size: 0.9em;
    border: 1px solid var(--color-border);
    margin-top: var(--spacing-md);
}

.profile-info__subscription-alert a {
    color: silver;
    text-decoration: underline;
}

.profile-stats-placeholder {
    text-align: left;
    background: linear-gradient(135deg, rgb(90 19 36 / 30%) 0%, rgb(58 10 24 / 22%) 100%);
    border: 1px solid rgb(147 61 84 / 45%);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    color: rgb(236 220 226 / 92%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
}

.profile-stats-placeholder--inline {
    margin-top: var(--spacing-md);
}

.profile-stats-placeholder--charts {
    min-height: 100%;
}

.profile-stats-placeholder__title {
    margin: 0 0 var(--spacing-sm);
    font-size: var(--font-size-lg);
    color: #f1d7de;
}

.profile-stats-placeholder__text {
    margin: 0 0 var(--spacing-sm);
    line-height: 1.55;
    color: rgb(236 220 226 / 82%);
}

.profile-stats-placeholder__link {
    color: #f1d7de;
    text-decoration: underline;
    text-decoration-color: rgb(241 215 222 / 45%);
    text-underline-offset: 3px;
}

.profile-stats-placeholder__link:hover {
    color: #fff1f4;
    text-decoration-color: rgb(255 241 244 / 68%);
}

.subscription-info__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.subscription-info__label {
    color: var(--color-text-muted);
}

.subscription-info__value {
    color: var(--color-primary);
}

.subscription-info__limit {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--color-border-light);
}

.subscription-info__section {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    background: rgb(255 255 255 / 0.02);
}

.subscription-info__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.subscription-info__section-eyebrow {
    font-size: 0.75rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    font-weight: 700;
}

.subscription-info__section-note {
    margin: var(--spacing-sm) 0 0;
    color: var(--color-text-muted);
    font-size: 0.92em;
    line-height: 1.5;
}

.subscription-info__bar {
    background: var(--color-border-light);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.subscription-info__bar-fill {
    background: var(--color-primary);
    height: 100%;
    transition: width 0.2s ease;
}

.subscription-autopay--fee {
    margin-top: var(--spacing-md);
}

.profile-info__btn-edit,
.profile-info__btn-ntrp {
    display: inline-block;
    width: 100%;
    max-width: 280px;
}

.profile-info__btn-fullwidth {
    max-width: 100%;
    width: 100%;
}

/* Right: charts */
.profile-charts {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-self: start;
    margin-top: 0;
}

/* Выравниваем начало диаграмм с началом таблицы статистики используя JavaScript */
.profile-charts[data-aligned="true"] {
    margin-top: var(--charts-offset, 280px);
}

.profile-charts__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid rgb(166 130 74 / 18%);
    background:
        linear-gradient(135deg, rgb(166 130 74 / 8%) 0%, transparent 38%),
        linear-gradient(180deg, rgb(3 28 19 / 96%) 0%, rgb(2 20 14 / 94%) 100%);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 4%),
        0 20px 50px rgb(0 0 0 / 22%);
    backdrop-filter: blur(16px);
}

.profile-charts__title-wrap {
    min-width: 0;
}

.profile-charts__title {
    font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.55rem);
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #f6ecd1;
}

.profile-charts__subtitle {
    margin: 6px 0 0;
    max-width: 520px;
    color: rgb(224 215 193 / 74%);
    font-size: 0.95rem;
    line-height: 1.5;
}

.profile-charts__controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: min(100%, 560px);
}

.profile-charts__pill-groups {
    display: none;
    gap: 6px;
}

.profile-charts--enhanced .profile-charts__pill-groups {
    display: grid;
}

.profile-charts__pill-group {
    min-width: 0;
}

.profile-charts__pill-label {
    display: inline-flex;
    margin-bottom: 3px;
    color: rgb(224 215 193 / 58%);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-charts__pill-track {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.profile-charts__pill-track::-webkit-scrollbar {
    display: none;
}

.profile-charts__pill {
    flex: 0 0 auto;
    min-height: 24px;
    padding: 4px 9px;
    border: 1px solid rgb(166 130 74 / 14%);
    border-radius: 999px;
    background: linear-gradient(180deg, rgb(255 255 255 / 3%) 0%, rgb(255 255 255 / 1%) 100%);
    color: rgb(224 215 193 / 72%);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.profile-charts__pill:hover {
    transform: translateY(-1px);
    color: #f8ecd1;
    border-color: rgb(166 130 74 / 28%);
    box-shadow: 0 6px 16px rgb(0 0 0 / 12%);
}

.profile-charts__pill.is-active {
    color: #fff4d6;
    border-color: rgb(250 204 21 / 34%);
    background:
        linear-gradient(135deg, rgb(255 241 182 / 18%) 0%, rgb(250 204 21 / 8%) 100%),
        linear-gradient(180deg, rgb(255 255 255 / 7%) 0%, rgb(255 255 255 / 2%) 100%);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 10%),
        0 8px 18px rgb(0 0 0 / 14%);
}

.profile-charts__filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
}

.profile-charts--enhanced .profile-charts__selects {
    display: none;
}

.profile-charts__year-select,
.profile-charts__filter-select {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgb(166 130 74 / 22%);
    background: linear-gradient(180deg, rgb(4 37 25 / 92%) 0%, rgb(2 26 18 / 94%) 100%);
    color: rgb(246 236 209 / 92%);
    font-size: var(--font-size-sm);
    cursor: pointer;
    min-width: 120px;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.profile-charts__filter-select:hover {
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 5%),
        0 10px 24px rgb(0 0 0 / 18%);
}

.profile-charts__filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgb(166 130 74 / 14%);
}

.profile-chart {
    --profile-chart-accent: rgb(87 225 255 / 18%);
    --profile-chart-border: rgb(166 130 74 / 18%);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, var(--profile-chart-accent) 0%, transparent 34%),
        linear-gradient(180deg, rgb(2 39 27 / 96%) 0%, rgb(1 24 17 / 98%) 100%);
    border-radius: 24px;
    padding: 18px 18px 16px;
    border: 1px solid var(--profile-chart-border);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 4%),
        0 18px 42px rgb(0 0 0 / 20%);
    backdrop-filter: blur(18px);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.profile-chart::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgb(255 255 255 / 6%) 0%, transparent 26%),
        linear-gradient(180deg, rgb(255 255 255 / 2%) 0%, transparent 100%);
    pointer-events: none;
}

.profile-chart::after {
    content: "";
    position: absolute;
    inset: auto -18% -52% 44%;
    height: 160px;
    background: radial-gradient(circle, rgb(255 255 255 / 12%) 0%, transparent 66%);
    filter: blur(14px);
    opacity: 0.68;
    pointer-events: none;
}

.profile-chart:hover {
    transform: translateY(-2px);
    border-color: rgb(166 130 74 / 32%);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 5%),
        0 26px 60px rgb(0 0 0 / 24%);
}

.profile-charts--ready .profile-charts__header,
.profile-charts--ready .profile-chart {
    animation: profileChartsReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.profile-charts--ready .profile-chart:nth-of-type(1) {
    animation-delay: 0.08s;
}

.profile-charts--ready .profile-chart:nth-of-type(2) {
    animation-delay: 0.16s;
}

.profile-charts--ready .profile-chart:nth-of-type(3) {
    animation-delay: 0.24s;
}

.profile-charts--ready .profile-chart:nth-of-type(4) {
    animation-delay: 0.32s;
}

.profile-charts--ready .profile-chart:nth-of-type(5) {
    animation-delay: 0.40s;
}

@keyframes profileChartsReveal {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.profile-chart--points {
    --profile-chart-accent: rgb(250 204 21 / 18%);
}

.profile-chart--matches {
    --profile-chart-accent: rgb(56 189 248 / 18%);
}

.profile-chart--winrate {
    --profile-chart-accent: rgb(74 222 128 / 18%);
}

.profile-chart--season {
    --profile-chart-accent: rgb(250 204 21 / 18%);
}

.profile-chart__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.profile-chart__eyebrow {
    display: inline-flex;
    margin-bottom: 6px;
    color: rgb(224 215 193 / 58%);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.profile-chart__label {
    font-size: 1rem;
    font-weight: 700;
    color: #f8ecd1;
    line-height: 1.3;
}

.profile-chart__canvas-wrap {
    position: relative;
    z-index: 1;
    height: 210px;
}

.profile-chart__canvas-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
    border-radius: 18px;
}

.profile-chart__metric {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
}

.profile-chart__metric-value {
    color: #fff4d6;
    font-size: clamp(1.1rem, 0.95rem + 0.45vw, 1.45rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
}

.profile-chart__metric-trend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgb(255 255 255 / 6%);
    background: rgb(255 255 255 / 4%);
    color: rgb(224 215 193 / 74%);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.profile-chart__metric-trend[data-trend="positive"] {
    color: rgb(14, 203, 129);
    background: rgb(14 203 129 / 10%);
    border-color: rgb(14 203 129 / 18%);
}

.profile-chart__metric-trend[data-trend="negative"] {
    color: rgb(230, 67, 90);
    background: rgb(230 67 90 / 10%);
    border-color: rgb(230 67 90 / 18%);
}

.profile-chart__metric-trend[data-trend="neutral"] {
    color: rgb(224 215 193 / 70%);
    background: rgb(255 255 255 / 5%);
}

.profile-chart__canvas-wrap--fan {
    min-height: 210px;
}

/* Profile section (recent matches) */
.profile-section {
    margin-top: var(--spacing-2xl);
}

.container--profile {
    max-width: 1400px;
}

@media (width <= 900px) {
    .profile-card__inner {
        grid-template-columns: 1fr;
    }

    .profile-charts {
        margin-top: 0 !important;

        /* Убираем отступ на мобильных, так как колонки вертикальные */
    }

    .profile-chart__canvas-wrap {
        height: 200px;
    }

    .profile-charts__header {
        padding: 16px;
    }

    .profile-charts__controls {
        width: 100%;
        min-width: 0;
    }

    .profile-chart__head {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-chart__metric {
        align-items: flex-start;
        text-align: left;
    }
}

@media (width <= 600px) {
    .profile-info__header {
        flex-direction: column;
        text-align: center;
    }

    .profile-info__badges {
        justify-content: center;
        gap: var(--spacing-xs);
    }

    .profile-info {
        text-align: left;
        max-width: 100%;
        overflow-x: hidden;
    }

    .profile-info__stats {
        justify-content: space-around;
    }

    .profile-stats-table {
        max-width: 100%;
        overflow-x: auto;
    }

    .profile-chart__canvas-wrap {
        height: 180px;
    }

    .profile-charts__header {
        border-radius: 20px;
        padding: 14px;
    }

    .profile-charts__subtitle {
        font-size: 0.88rem;
    }

    .profile-charts__filters {
        width: 100%;
    }

    .profile-charts__pill {
        min-height: 22px;
        padding: 4px 8px;
        font-size: 0.66rem;
    }

    .profile-charts__year-select,
    .profile-charts__filter-select {
        min-width: 0;
        flex: 1 1 100%;
    }

    .profile-chart {
        border-radius: 20px;
        padding: 15px 15px 14px;
    }

    .profile-chart__metric-value {
        font-size: 1.1rem;
    }

    .profile-chart__metric-trend {
        min-height: 26px;
        padding: 5px 9px;
        font-size: 0.72rem;
    }

    .profile-info__btn-edit,
    .profile-info__btn-ntrp {
        max-width: 100%;
    }

    .profile-info__btn-fullwidth {
        max-width: 100%;
        width: 100%;
    }
}

/* ── Profile Matches Filters ── */
.matches-filter-form {
    margin-bottom: var(--spacing-md);
}

.matches-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--spacing-md);
}

.matches-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.matches-filter-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.matches-filter-select {
    height: 40px;
    min-width: 160px;
    padding: 0 var(--spacing-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-card-bg);
    color: var(--color-text);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: border-color 0.2s;
}

.matches-filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.matches-filter-reset {
    height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-decoration: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: color 0.2s, border-color 0.2s;
}

.matches-filter-reset:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.matches-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.matches-quick-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-decoration: none;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.matches-quick-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.matches-quick-btn.active {
    background: var(--color-primary);
    color: var(--color-bg);
    border-color: var(--color-primary);
}

.matches-count {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
}

/* Бейджи чемпионов */
.profile-championships {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.profile-championships__title {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--color-text);
}

.profile-championships__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.championship-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-md);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 4px rgb(245 158 11 / 30%);
    transition: transform 0.2s, box-shadow 0.2s;
}

.championship-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgb(245 158 11 / 40%);
}

/* Оценки соперников (сильные стороны) в профиле */
.player-skills-block {
    position: relative;
    overflow: hidden;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: 18px;
    border: 1px solid rgb(166 130 74 / 18%);
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgb(166 130 74 / 12%) 0%, transparent 30%),
        linear-gradient(180deg, rgb(2 36 25 / 96%) 0%, rgb(1 22 16 / 98%) 100%);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 4%),
        0 18px 42px rgb(0 0 0 / 18%);
    backdrop-filter: blur(14px);
}

.player-skills-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgb(255 255 255 / 5%) 0%, transparent 26%),
        linear-gradient(180deg, rgb(255 255 255 / 1.5%) 0%, transparent 100%);
    pointer-events: none;
}

.player-skills-block__head {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
}

.player-skills-block__eyebrow {
    display: inline-flex;
    margin-bottom: 4px;
    color: rgb(224 215 193 / 58%);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.player-skills-block__title {
    margin: 0;
    font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.3rem);
    font-weight: 700;
    color: #f8ecd1;
}

.player-skills-block__subtitle {
    margin: 4px 0 0;
    max-width: 620px;
    color: rgb(224 215 193 / 72%);
    font-size: 0.84rem;
    line-height: 1.4;
}

.player-skills-block__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}

.player-skills-block__item {
    position: relative;
    overflow: hidden;
    padding: 9px 10px 8px;
    border: 1px solid rgb(166 130 74 / 10%);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgb(255 255 255 / 4%) 0%, transparent 38%),
        rgb(255 255 255 / 2%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
}

.player-skills-block__item::after {
    content: "";
    position: absolute;
    inset: auto -14% -52% 40%;
    height: 120px;
    background: radial-gradient(circle, rgb(255 255 255 / 10%) 0%, transparent 66%);
    filter: blur(12px);
    opacity: 0.5;
    pointer-events: none;
}

.player-skills-block__row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.player-skills-block__label {
    flex: 1 1 auto;
    min-width: 0;
    color: #f6ecd1;
    font-size: 0.87rem;
    font-weight: 600;
    line-height: 1.25;
}

.player-skills-block__score {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid rgb(250 204 21 / 18%);
    background: rgb(250 204 21 / 8%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
}

.player-skills-block__numeric {
    color: #fff0c2;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1;
}

.player-skills-block__score-max {
    color: rgb(224 215 193 / 56%);
    font-size: 0.64rem;
    font-weight: 700;
}

.player-skills-block__bar {
    position: relative;
    z-index: 1;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgb(255 255 255 / 6%) 0%, rgb(255 255 255 / 2%) 100%),
        rgb(0 0 0 / 18%);
    box-shadow:
        inset 0 1px 2px rgb(0 0 0 / 22%),
        inset 0 0 0 1px rgb(166 130 74 / 8%);
}

.player-skills-block__bar-fill {
    position: relative;
    height: 100%;
    min-width: 6px;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgb(255 199 84 / 0%) 0%, rgb(255 199 84 / 24%) 8%, rgb(250 204 21 / 82%) 42%, rgb(255 161 22 / 92%) 100%);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 18%),
        0 0 16px rgb(250 204 21 / 28%);
}

.player-skills-block__bar-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(255 255 255 / 22%) 0%, transparent 70%);
    pointer-events: none;
}

.player-skills-block__meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
}

.player-skills-block__stars {
    color: rgb(255 255 255 / 10%);
    font-size: 0.68rem;
    letter-spacing: 0.05em;
}

.player-skills-block__star--filled {
    color: #f5b21c;
    text-shadow: 0 0 10px rgb(245 178 28 / 22%);
}

.player-skills-block__votes {
    color: rgb(224 215 193 / 58%);
    font-size: 0.68rem;
    white-space: nowrap;
}

.player-skills-block__value--muted {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid rgb(255 255 255 / 8%);
    background: rgb(255 255 255 / 4%);
    color: rgb(224 215 193 / 64%);
    font-size: 0.66rem;
    font-weight: 600;
}

.player-skills-block__empty-state {
    position: relative;
    z-index: 1;
    color: rgb(224 215 193 / 58%);
    font-size: 0.74rem;
    line-height: 1.35;
}

.player-skills-block__improve {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid rgb(166 130 74 / 14%);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgb(166 130 74 / 6%) 0%, transparent 42%),
        rgb(255 255 255 / 2%);
}

.player-skills-block__improve-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.player-skills-block__improve-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    color: #fff0c2;
    background: linear-gradient(135deg, rgb(250 204 21 / 18%) 0%, rgb(245 158 11 / 20%) 100%);
    border: 1px solid rgb(250 204 21 / 16%);
}

.player-skills-block__improve-title {
    margin: 0;
    color: #f8ecd1;
    font-size: 0.88rem;
    font-weight: 700;
}

.player-skills-block__improve-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.player-skills-block__improve-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 8px;
    align-items: center;
    padding: 7px 9px;
    border-radius: 16px;
    background: rgb(255 255 255 / 3%);
    border: 1px solid rgb(255 255 255 / 5%);
}

.player-skills-block__improve-name {
    color: #f1e2be;
    font-weight: 600;
    font-size: 0.84rem;
}

.player-skills-block__improve-score {
    color: #ffca6a;
    font-weight: 800;
    font-size: 0.9rem;
}

.player-skills-block__improve-votes {
    grid-column: 1 / -1;
    color: rgb(224 215 193 / 60%);
    font-size: 0.68rem;
}

@media (width <= 768px) {
    .player-skills-block {
        padding: 15px;
        border-radius: 22px;
    }

    .player-skills-block__grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .player-skills-block__item {
        padding: 8px 9px 7px;
    }

    .player-skills-block__row {
        gap: 8px;
        margin-bottom: 5px;
    }

    .player-skills-block__label {
        font-size: 0.84rem;
    }

    .profile-championships {
        padding: var(--spacing-sm);
    }

    .profile-championships__title {
        font-size: var(--font-size-sm);
    }

    .championship-badge {
        font-size: var(--font-size-xs);
        padding: 4px var(--spacing-sm);
    }
}

@media (width <= 600px) {
    .player-skills-block {
        padding: 14px;
    }

    .player-skills-block__subtitle {
        font-size: 0.8rem;
    }

    .player-skills-block__meta {
        flex-direction: row;
        align-items: center;
    }

    .player-skills-block__improve {
        padding: 9px;
    }

    .player-skills-block__improve-item {
        grid-template-columns: 1fr auto;
        padding: 7px 8px;
    }

    .matches-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .matches-filter-select {
        min-width: 100%;
    }

    .matches-filter-reset {
        justify-content: center;
    }
}

/* END profile.css */

/* BEGIN matches.css */

/*
 * matches.css
 *
 * Описание: Стили страницы «Мои матчи», карточек матчей и карточек предложений результата.
 * Компоненты: .my-matches-grid, .match-card-item, .match-card-item__actions, .match-proposal-card, .match-proposal-card__form-row
 * Используется на: страница «Мои матчи» и связанные матчевые списки
 *
 * Последнее обновление: 2026-03
 */

/* Страница «Мои матчи»: 3 колонки на десктопе, широкие карточки */
.my-matches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    align-items: start;
}

@media (width <= 1024px) {
    .my-matches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (width <= 640px) {
    .my-matches-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

.match-card-item {
    height: auto;
}

.match-card-item__body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.match-card-item__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.match-card-item__badge {
    font-size: var(--font-size-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
}

.match-card-item__btn {
    flex-shrink: 0;
}

/* Карточка предложения результата (подтвердить/отклонить) */
.match-proposal-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.match-proposal-card__body {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.match-proposal-card__text {
    font-size: var(--font-size-sm);
}

.match-proposal-card__score {
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
}

.match-proposal-card__form {
    margin-top: 0;
}

.match-proposal-card__form-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
}

.match-proposal-card__btn {
    min-width: 120px;
}

.match-proposal-card__waiting {
    font-size: var(--font-size-sm);
}

/* Мобильная версия: кнопки и бейджи в карточках матча */
@media (width <= 640px) {
    .match-card-item .card-body {
        padding: var(--spacing-md);
    }

    .match-card-item__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .match-card-item__badge {
        align-self: center;
        font-size: var(--font-size-xs);
        padding: var(--spacing-xs) var(--spacing-md);
    }

    .match-card-item__btn {
        width: 100%;
        justify-content: center;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .match-proposal-card__form-row {
        flex-direction: column;
    }

    .match-proposal-card__btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .match-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }

    .match-players .player-name {
        font-size: var(--font-size-sm);
    }
}

@media (width <= 768px) {
    .my-matches-grid {
        gap: var(--spacing-md);
    }
}

@media (width <= 480px) {
    .my-matches-grid {
        gap: var(--spacing-sm);
    }
}

/* Страница деталей матча (шаблон match_detail) */
.match-detail-page {
    padding-top: var(--spacing-2xl);
}

.match-detail-page__card {
    max-width: min(100%, 960px);
    margin: 0 auto;
}

.match-detail-page__card .card-body {
    padding: var(--spacing-2xl);
}

.match-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--spacing-lg);
    align-items: start;
    width: 100%;
}

@media (max-width: 768px) {
    .match-details-grid {
        grid-template-columns: 1fr;
    }
}

.match-details-section {
    border-radius: var(--radius-md);
    min-width: 0;
}

.match-detail-page .match-details-section.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.match-details-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.match-details-table {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.match-details-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: start;
}

.match-details-row:last-child {
    border-bottom: none;
}

.match-details-row--highlight {
    background: rgba(166, 130, 74, 0.1);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    margin: var(--spacing-xs) 0;
    border-bottom: none;
}

.match-details-label {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    max-width: 11rem;
    line-height: 1.35;
}

.match-details-value {
    color: var(--color-text);
    font-size: var(--font-size-sm);
    text-align: right;
    min-width: 0;
    word-break: normal;
    overflow-wrap: break-word;
}

.match-details-value--inline-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: var(--spacing-sm);
    width: 100%;
    min-width: 0;
}

.match-details-value--inline-badges .match-details-value__lead {
    max-width: 100%;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.match-details-value__lead {
    font-weight: 600;
    color: var(--color-text);
    text-align: right;
}

.match-details-value--score {
    font-weight: 600;
    font-size: var(--font-size-base);
}

a.match-details-value__lead {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a.match-details-value__lead:hover {
    color: #b8945a;
    text-decoration: underline;
}

.match-details-host-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
    max-width: 100%;
}

.match-details-host-inline .tournament-card-host-badge--club {
    max-width: 100%;
    overflow: visible;
    white-space: normal;
    word-break: normal;
    text-align: right;
    line-height: 1.25;
    text-decoration: none;
}

.match-details-host-inline .tournament-brand-badge {
    font-size: 9px;
    padding: 2px 7px 2px 6px;
    gap: 4px;
}

.match-details-host-inline .tournament-brand-badge__dot {
    width: 5px;
    height: 5px;
}

.match-details-value a:not(.tournament-card-host-badge) {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.match-details-value a:not(.tournament-card-host-badge):hover {
    color: #b8945a;
    text-decoration: underline;
}

.match-detail-page .status-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    background: rgba(166, 130, 74, 0.2);
    color: var(--color-primary);
    border: 1px solid rgba(166, 130, 74, 0.3);
}

.match-detail-page .status-badge--completed,
.match-detail-page .status-badge--active {
    background: rgba(0, 200, 0, 0.2);
    color: #4ade80;
    border-color: rgba(0, 200, 0, 0.3);
}

.match-detail-page .status-badge--upcoming {
    background: rgba(166, 130, 74, 0.2);
    color: var(--color-primary);
    border-color: rgba(166, 130, 74, 0.3);
}

.match-detail-page .status-badge--info {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.match-detail-page .category-tag {
    display: inline-block;
    padding: 2px var(--spacing-xs);
    margin: 2px;
    background: rgba(166, 130, 74, 0.15);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    border: 1px solid rgba(166, 130, 74, 0.2);
}

.match-detail-page .rating-change,
.match-detail-page .season-points {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: flex-end;
}

.match-detail-page .rating-change-item,
.match-detail-page .season-points-item {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
    min-width: 0;
    justify-content: flex-end;
}

.match-detail-page .rating-change-label,
.match-detail-page .season-points-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.match-detail-page .rating-change-value {
    font-weight: 600;
    font-size: var(--font-size-sm);
    padding: 2px var(--spacing-xs);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    white-space: nowrap;
}

.match-detail-page .rating-change-value--up {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
}

.match-detail-page .rating-change-value--down {
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
}

.match-detail-page .rating-change-value--neutral {
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.05);
}

.match-detail-page .season-points-value {
    font-weight: 600;
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 640px) {
    /* Строка «метка — значение» остаётся в двух колонках: меньше высоты блока */
    .match-details-row {
        grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
        gap: var(--spacing-sm);
    }

    .match-details-label {
        max-width: none;
        font-size: var(--font-size-xs);
    }

    .match-details-value {
        text-align: left;
        font-size: var(--font-size-xs);
    }

    .match-details-value--inline-badges {
        align-items: flex-start;
    }

    .match-details-value__lead {
        text-align: left;
    }

    .match-details-host-inline {
        justify-content: flex-start;
    }

    .match-details-host-inline .tournament-card-host-badge--club {
        text-align: left;
    }

    .match-detail-page .rating-change-item,
    .match-detail-page .season-points-item {
        justify-content: flex-start;
    }

    .match-detail-page .rating-change,
    .match-detail-page .season-points {
        align-items: flex-start;
    }
}

/* END matches.css */

/* BEGIN contacts.css */

/*
 * contacts.css
 *
 * Описание: Локальные стили страницы контактов, включая ссылки, значения и карточку реквизитов.
 * Компоненты: .contacts-page .contacts-item__link, .contacts-page .contacts-item__value, .contacts-requisites-card
 * Используется на: страница контактов
 *
 * Последнее обновление: 2026-03
 */

/* Страница контактов: значения (ссылки и текст) — silver */
.contacts-page .contacts-item__link,
.contacts-page .contacts-item__value {
    color: silver !important;
}

.contacts-page .contacts-item__link:hover {
    color: #c0c0c0 !important;
}

/* Блок «Реквизиты и платёжная информация» — весь текст silver */
.contacts-page .contacts-requisites-card,
.contacts-page .contacts-requisites-card .card-body {
    color: silver;
}

.contacts-page .contacts-requisites-card a {
    color: silver !important;
}

.contacts-page .contacts-requisites-card a:hover {
    color: #c0c0c0 !important;
}

.contacts-page .contacts-requisites-card .text-secondary {
    color: silver !important;
}

/* END contacts.css */

/* BEGIN auth.css */

/*
 * auth.css
 *
 * Описание: Специфичные стили авторизации: поле пароля с toggler и анимированный логотип-монета.
 * Компоненты: .password-field-wrapper, .password-toggle-btn, .auth-login-logo, .coin, .coin__face
 * Используется на: страницы входа и регистрации
 *
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Auth page: объединённая страница регистрации/входа с анимацией
   ========================================================================== */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: var(--spacing-2xl) var(--spacing-md);
}

.auth-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    height: auto;
    min-height: 820px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

.auth-card-bg {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    background: linear-gradient(135deg, rgb(166 130 74 / 15%) 0%, rgb(166 130 74 / 5%) 100%);
    border-radius: var(--radius-lg);
    transform: translateX(0);
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card-bg.login {
    transform: translateX(100%);
}

.auth-hero,
.auth-form {
    position: absolute;
    width: 50%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-form {
    padding: var(--spacing-lg);
    padding-left: calc(var(--spacing-lg) + var(--spacing-xl));
    overflow-y: auto;
    /* Отключаем центрирование через justify-content, иначе при переполнении
       (например, раскрытый калькулятор уровня силы) верхняя часть формы
       становится недоступной для прокрутки. Вертикальное центрирование
       достигается через `margin: auto 0` у самой формы ниже — оно
       корректно схлопывается, когда контент больше контейнера. */
    justify-content: flex-start;
}

.auth-form > form {
    margin: auto 0;
    width: 100%;
}

.auth-hero.active,
.auth-form.active {
    opacity: 1;
    visibility: visible;
}

.auth-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    color: var(--color-text);
    text-align: center;
    padding: var(--spacing-2xl);
    padding-right: calc(var(--spacing-2xl) + var(--spacing-lg));
}

.auth-hero h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 0;
    color: var(--color-text);
}

.auth-hero p {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 0;
    max-width: 300px;
}

.auth-hero.register {
    left: 0;
    transform: translateX(-100%);
}

.auth-hero.register.active {
    transform: translateX(0);
}

.auth-hero.login {
    left: 50%;
    transform: translateX(100%);
}

.auth-hero.login.active {
    transform: translateX(0);
}

.auth-toggle-btn {
    margin-top: var(--spacing-md);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.auth-login-title {
    display: none;
    margin: 0 0 var(--spacing-lg);
    font-size: var(--font-size-xl);
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--color-text);
}

.auth-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Обертка для поля пароля с иконкой глаза */
.password-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field-wrapper .form-control {
    padding-right: 45px;

    /* Место для иконки */
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    z-index: 1;
}

.password-toggle-btn:hover {
    color: var(--color-primary);
}

.password-toggle-btn:focus {
    outline: none;
    color: var(--color-primary);
}

.password-toggle-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentcolor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .password-field-wrapper .form-control {
        padding-right: 40px;
    }

    .password-toggle-btn {
        right: 8px;
        padding: 6px;
    }

    .password-toggle-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Вращающийся логотип на форме входа (только десктоп) */
.auth-login-logo {
    display: block;
    text-align: center;
    margin-bottom: var(--spacing-md);
    margin-top: calc(-6 * var(--spacing-lg));
    width: 100%;
    perspective: 1000px;
    perspective-origin: center center;
}

/* Объемная монета с логотипом */
.auth-login-logo .coin {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    transform-style: preserve-3d;
    transform-origin: 50% 50% 0;
    animation: coin-rotate 6s linear infinite;
}

/* Лицевая и обратная стороны монеты */
.auth-login-logo .coin__face {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    backface-visibility: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
}

.auth-login-logo .coin__face img {
    width: 75%;
    height: 75%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgb(166 130 74 / 50%));
}

/* Задняя сторона монеты */
.auth-login-logo .coin__back {
    transform: rotateY(180deg) translateZ(-4px);
}

/* Передняя сторона монеты */
.auth-login-logo .coin__front {
    transform: translateZ(4px);
}

@media (max-width: 768px) {
    .auth-page {
        min-height: auto;
        align-items: flex-start;
    }

    .auth-card {
        min-height: 0;
        height: auto;
    }

    .auth-hero,
    .auth-form {
        position: relative;
        height: auto;
        min-height: 0;
        justify-content: flex-start;
        align-items: stretch;
    }
}

/* ==========================================================================
   Club registration choice: выбор типа аккаунта (игрок / клуб)
   ========================================================================== */
.register-choice {
    max-width: 960px;
    margin: 0 auto var(--spacing-3xl);
}

.register-choice__card {
    margin-bottom: var(--spacing-xl);
}

.register-choice__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-xl);
    padding: var(--spacing-2xl);
}

.register-choice__option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-xl);
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-lg);
    min-height: 190px;
}

.register-choice__icon {
    font-size: 2.25rem;
}

.register-choice__title {
    display: block;
    margin-top: 0;
    font-size: var(--font-size-lg);
}

.register-choice__text {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .register-choice__grid {
        padding: var(--spacing-xl);
        gap: var(--spacing-lg);
    }

    .register-choice__option {
        padding: var(--spacing-lg);
        min-height: 170px;
    }
}

@media (max-width: 640px) {
    .register-choice {
        max-width: 100%;
    }

    .register-choice__grid {
        grid-template-columns: 1fr;
        padding: var(--spacing-lg);
    }

    .register-choice__option {
        width: 100%;
        min-height: 0;
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

/* ==========================================================================
   Club registration step 1: форма данных клуба
   ========================================================================== */
.club-register {
    max-width: 720px;
    margin: 0 auto var(--spacing-3xl);
    width: 100%;
}

.club-register__card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top left, rgb(166 130 74 / 18%) 0%, transparent 55%),
        radial-gradient(circle at bottom right, rgb(34 197 94 / 12%) 0%, transparent 55%),
        var(--color-bg-card);
    border: 1px solid rgb(166 130 74 / 35%);
    box-shadow:
        0 22px 60px rgb(0 0 0 / 55%),
        inset 0 1px 0 rgb(255 255 255 / 4%);
}

.club-register__card::before {
    content: "";
    position: absolute;
    inset: -1px -1px auto;
    height: 70px;
    background:
        linear-gradient(90deg, rgb(250 204 21 / 40%) 0%, rgb(16 185 129 / 26%) 45%, rgb(37 99 235 / 22%) 100%);
    opacity: 0.18;
    pointer-events: none;
}

.club-register__body {
    position: relative;
    z-index: 1;
    padding: var(--spacing-2xl);
}

.club-register__body .form-group:last-of-type {
    margin-bottom: 0;
}

.club-register__errors {
    margin-bottom: var(--spacing-xl);
}

.club-register__actions {
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.club-register__actions .btn {
    min-width: 180px;
}

/* Поля ввода в фирменном стиле: тёмный фон, читаемые подсказки */
.club-register__body .form-label {
    color: rgb(224 215 193 / 92%);
    font-weight: 600;
}

.club-register__body .form-control,
.club-register__body input[type="text"],
.club-register__body input[type="email"],
.club-register__body input[type="tel"],
.club-register__body input[type="email"],
.club-register__body textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    min-height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid rgb(166 130 74 / 28%);
    background: linear-gradient(180deg, rgb(2 36 25 / 95%) 0%, rgb(1 24 17 / 98%) 100%);
    color: #f6ecd1;
    font-size: var(--font-size-base);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.club-register__body .form-control::placeholder,
.club-register__body input::placeholder,
.club-register__body textarea::placeholder {
    color: rgb(166 130 74 / 0.65);
}

.club-register__body .form-control:focus,
.club-register__body input:focus,
.club-register__body textarea:focus {
    outline: none;
    border-color: rgb(166 130 74 / 0.65);
    box-shadow: 0 0 0 3px rgb(166 130 74 / 0.15);
}

.club-register__body textarea {
    min-height: 100px;
    resize: vertical;
}

/* Файловый инпут */
.club-register__body input[type="file"] {
    padding: 10px 14px;
    font-size: var(--font-size-sm);
    color: rgb(224 215 193 / 88%);
    background: linear-gradient(180deg, rgb(2 36 25 / 95%) 0%, rgb(1 24 17 / 98%) 100%);
    border: 1px solid rgb(166 130 74 / 28%);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.club-register__body input[type="file"]::file-selector-button {
    padding: 8px 14px;
    margin-right: 12px;
    border: 1px solid rgb(166 130 74 / 35%);
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgb(166 130 74 / 0.25) 0%, rgb(166 130 74 / 0.12) 100%);
    color: #f6ecd1;
    font-size: var(--font-size-sm);
    cursor: pointer;
}

.club-register__body .form-help {
    margin-top: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: rgb(166 130 74 / 0.7);
}

@media (max-width: 768px) {
    .club-register {
        max-width: 100%;
    }

    .club-register__body {
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    .club-register__actions {
        margin-top: var(--spacing-lg);
    }

    .club-register__actions .btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .club-register__body {
        padding: var(--spacing-lg);
    }

    .club-register__body .form-control,
    .club-register__body input, .club-register__body textarea {
        padding: 10px 14px;
        min-height: 42px;
    }
}

/* ==========================================================================
   Club plan selector (register_step2)
   ========================================================================== */
.club-plan-selector {
    margin-bottom: var(--spacing-2xl);
}

.club-plan-period {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    flex-wrap: wrap;
}

.club-plan-period__label {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Анимированный переключатель период */
.period-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: rgb(166 130 74 / 0.12);
    border: 1px solid rgb(166 130 74 / 0.25);
    border-radius: 999px;
    padding: 4px;
    min-width: 280px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.period-toggle:hover {
    border-color: rgb(166 130 74 / 0.4);
    box-shadow: 0 0 0 1px rgb(166 130 74 / 0.15);
}

.period-toggle__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.period-toggle__track {
    position: absolute;
    inset: 4px;
    border-radius: 999px;
    pointer-events: none;
}

.period-toggle__slider {
    position: absolute;
    left: 4px;
    top: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, rgb(166 130 74 / 0.95) 0%, rgb(139 110 60 / 1) 100%);
    border-radius: 999px;
    box-shadow: 0 2px 12px rgb(0 0 0 / 0.3), 0 0 20px rgb(166 130 74 / 0.2);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
}

#period-monthly:checked ~ .period-toggle__track .period-toggle__slider {
    transform: translateX(0);
}

#period-yearly:checked ~ .period-toggle__track .period-toggle__slider {
    transform: translateX(100%);
}

.period-toggle__label {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 10px 14px;
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: rgba(255 255 255 / 0.6);
    cursor: pointer;
    transition: color 0.25s ease;
}

.period-toggle__label:hover {
    color: rgba(255 255 255 / 0.85);
}

#period-monthly:checked ~ .period-toggle__label--monthly,
#period-yearly:checked ~ .period-toggle__label--yearly {
    color: #fff;
    text-shadow: 0 0 12px rgb(255 255 255 / 0.3);
}

.period-toggle__badge {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgb(76 175 80 / 0.9);
    color: #fff;
    border-radius: 100px;
    vertical-align: middle;
}

.club-plan-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: var(--spacing-md);
}

.club-plan-card-wrapper {
    position: relative;
    display: block;
    border-radius: 20px;
}

.club-plan-card {
    cursor: pointer;
    position: relative;
    height: 100%;
    margin: 0;
}

.club-plan-card .club-plan-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.club-plan-card__check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4caf50;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgb(76 175 80 / 0.5);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.club-plan-card:has(.club-plan-radio:checked) .club-plan-card__check {
    opacity: 1;
    transform: scale(1);
}

.club-plan-card:has(.club-plan-radio:checked) {
    border-color: rgb(76 175 80 / 0.55);
    box-shadow: 0 0 0 1px rgb(76 175 80 / 0.28), 0 14px 34px rgb(0 0 0 / 0.16);
}

.club-plan-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

@media (width <= 900px) {
    .club-plan-grid {
        grid-template-columns: 1fr;
    }
}

@media (width <= 480px) {
    .club-plan-period {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .period-toggle {
        min-width: 100%;
        width: 100%;
    }
}

/* END auth.css */

/* BEGIN tournament.css */

/*
 * tournament.css
 *
 * Описание: Страница турниров: bracket/FAN, карточки матчей, управление участниками, мета-блоки и таблицы.
 * Компоненты: .bracket-*, .match-players, .manage-page, .tournament-card-*, .tournament-detail-*, .tournaments-table-*
 * Используется на: список/детали турниров, управление турниром, блоки турниров на главной
 *
 * Последнее обновление: 2026-03
 */

/* FAN bracket */
.bracket-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}

.bracket-round {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    background: var(--color-bg-secondary);
}

.bracket-round-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
}

.bracket-round-matches {
    margin-top: var(--spacing-md);
}

.bracket-round-matches .match-card {
    background: var(--color-bg-card);
}

.match-players {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.match-player {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

@media (width <= 480px) {
    .match-player {
        gap: var(--spacing-sm);
    }

    .player-avatar {
        width: 32px;
        height: 32px;
    }
}

.match-player.winner {
    color: var(--color-primary);
}

.player-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-bg-elevated);
    overflow: hidden;
    flex-shrink: 0;
}

.player-name {
    flex: 1;
    font-weight: 500;
}

.match-score {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

@media (width <= 480px) {
    .match-score {
        gap: var(--spacing-xs);
    }

    .set-score {
        font-size: var(--font-size-xs);
        padding: 2px 4px;
    }
}

.match-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
}

.set-score {
    background: var(--color-bg-elevated);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.match-score-table-wrap {
    margin-top: var(--spacing-sm);
}

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

.match-score-table th,
.match-score-table td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--color-border-light);
    text-align: center;
}

@media (width <= 768px) {
    .match-score-table {
        font-size: var(--font-size-xs);
    }

    .match-score-table th,
    .match-score-table td {
        padding: 4px 6px;
    }
}

@media (width <= 480px) {
    .match-score-table {
        font-size: 0.7rem;
    }

    .match-score-table th,
    .match-score-table td {
        padding: 3px 4px;
    }
}

.match-score-table th:first-child,
.match-score-table td:first-child {
    text-align: left;
}

.match-score-table thead th {
    color: var(--color-text-secondary);
    font-weight: 600;
}

.match-score-table .player-cell {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

@media (width <= 480px) {
    .match-score-table .player-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
}

.match-score-table .winner-row td {
    color: var(--color-primary);
}

.win-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    background: rgb(34 197 94 / 15%);
    color: #22c55e;
}

.retired-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    background: rgb(239 68 68 / 15%);
    color: #ef4444;
    margin-left: 4px;
    border: 1px solid rgb(34 197 94 / 35%);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
    border-radius: var(--radius-sm);
    background: var(--color-primary-transparent);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.badge.badge-full {
    background: rgb(255 77 77 / 15%);
    color: #8b0000;
    border-color: rgb(59 0 0);
}

.badge.badge-muted {
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
    border-color: transparent;
}

.badge.badge-unverified {
    background: rgb(255 210 77 / 25%);
    color: #1a1a1a;
    border-color: rgb(255 210 77 / 50%);
}

.badge.badge-success {
    background: rgb(40 167 69 / 15%);
    color: #1a7a34;
    border-color: rgb(40 167 69 / 30%);
}

.badge.badge-warning {
    background: rgb(255 193 7 / 20%);
    color: #856404;
    border-color: rgb(255 193 7 / 40%);
}

.badge.badge-danger {
    background: rgb(220 53 69 / 15%);
    color: #a71d2a;
    border-color: rgb(220 53 69 / 30%);
}

/* Блоки «Составить пару» и «Добавить участника» на странице управления */
.manage-block-bg {
    padding: 1.25rem 1.5rem;
}

/* Карточка матча плей-офф на странице управления */
.manage-playoff-match {
    background: var(--color-bg-elevated);
}
.manage-playoff-match-round {
    font-weight: 600;
}
.manage-playoff-player {
    font-weight: 500;
}

/* Список команд/участников — каждая строка как карточка, кнопка «Удалить» привязана к блоку */
.manage-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.manage-list-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-light, rgb(255 255 255 / 0.08));
    border-radius: var(--radius-md, 8px);
}

.manage-list-item-content {
    flex: 1 1 auto;
    min-width: 0;
}

.manage-list-item-action {
    flex-shrink: 0;
}

/* Мобильная адаптация страницы управления турниром */
@media (width <= 768px) {
    .manage-list-item {
        flex-direction: column;
        align-items: stretch;
    }

    .manage-list-item-action {
        padding-top: 0.5rem;
        border-top: 1px solid var(--color-border-light, rgb(255 255 255 / 0.08));
    }

    .manage-list-item-action .btn {
        width: 100%;
    }

    /* Хлебные крошки и кнопка — на всю ширину */
    .manage-page .manage-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

}

/* Промежуточные результаты ТВД: очки силы и геймы */
.table-intermediate .delta-positive {
    color: #2e7d32;
    font-weight: 600;
}
.table-intermediate .delta-negative {
    color: #c62828;
    font-weight: 600;
}
.table-intermediate .games-won {
    color: #2e7d32;
}
.table-intermediate .games-lost {
    color: #c62828;
}

/* Tournament Card Styles */
.tournament-card,
.tournament-preview-card,
.tournament-table-card {
    position: relative;
}

/* Бейдж турниров платформы в стиле логотипа TennisFan */
.tournament-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px 3px 7px;
    border-radius: 6px;
    font-family: var(--font-heading, sans-serif);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.15;
    vertical-align: middle;
    background: linear-gradient(180deg, #031a12 0%, #010f0a 100%);
    border: 1px solid rgba(166, 130, 74, 0.45);
    box-shadow: none;
}

.tournament-brand-badge__dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 8px rgb(166 130 74 / 0.55);
}

.tournament-brand-badge__word {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
}

.tournament-brand-badge__tennis {
    color: #d1d5db;
}

.tournament-brand-badge__fan {
    color: var(--color-primary);
}

.tournament-card-badge-slot__brand {
    display: flex;
    align-items: center;
    max-width: 100%;
}

.tournament-card-host-badge--club {
    background: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tournament-status-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: help;
    background: rgba(9, 19, 16, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.tournament-status-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 8px;
}

.tournament-status-badge--upcoming {
    color: #ffe37d;
    border-color: rgba(255, 215, 0, 0.28);
}

.tournament-status-badge--active {
    color: #8bf0a7;
    border-color: rgba(74, 222, 128, 0.28);
}

.tournament-status-badge--completed {
    color: #ff9a9a;
    border-color: rgba(255, 12, 12, 0.28);
}

.tournament-status-badge--cancelled {
    color: #ff9a9a;
    border-color: rgba(255, 12, 12, 0.28);
}

.tournament-status-badge--upcoming::before {
    background: #ffd700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.55);
}

.tournament-status-badge--active::before {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(7, 255, 98, 0.85);
}

.tournament-status-badge--completed::before,
.tournament-status-badge--cancelled::before {
    background: #ff0c0c;
    box-shadow: 0 0 8px rgba(255, 12, 12, 0.85);
}

.tournament-status-badge--inline {
    position: static;
    top: auto;
    right: auto;
    box-shadow: none;
}

.tournament-status-badge--upcoming {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border-color: transparent;
}

.tournament-status-badge--active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: transparent;
}

.tournament-status-badge--upcoming::before,
.tournament-status-badge--active::before {
    animation: status-pulse 1.4s infinite ease-out;
}

@keyframes status-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    70% {
        transform: scale(1.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.tournament-participants-grid {
    display: grid;
    /* Не фиксируем 5 колонок: на узкой ширине ячейки сжимаются до «полбуквы» у имени */
    grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
    gap: var(--spacing-xs);
}

.participant-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--color-bg-elevated);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    min-width: 0;
    overflow: hidden;
}

.participant-badge .player-avatar {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.participant-badge .participant-name {
    flex: 1 1 0;
    min-width: 0;
    font-size: var(--font-size-sm);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-more {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--color-bg-elevated);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
}

.participant-more span {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.tournament-participants-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.tournament-participants-section .section-label {
    font-size: var(--font-size-sm);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.tournament-img-placeholder {
    background: var(--color-bg-elevated);
}

.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Шапка страницы турнира: бейдж клуба / TennisFan под названием */
.tournament-detail__host {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.tournament-detail__host .tournament-table__club-badge--host {
    max-width: 100%;
}

/* Tournament detail meta */
.tournament-meta {
    background: rgba(6, 22, 17, 0.95);
}

@media (width <= 768px) {
    .tournament-meta .card-body {
        padding: var(--spacing-md) var(--spacing-sm);
    }
}

.tournament-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-lg);
}

.tournament-meta-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    min-width: 0;
}

.tournament-meta-group--compact {
    align-self: flex-start;
}

.tournament-meta-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 4px;
}

.tournament-meta-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: start;
    gap: var(--spacing-sm);
    font-size: 13px;
    column-gap: var(--spacing-md);
}

.tournament-meta-label {
    color: #64748b;
    min-width: 0;
    padding-right: 2px;
}

.tournament-meta-value {
    color: #e2e8f0;
    text-align: right;
    min-width: 0;
    word-break: normal;
    overflow-wrap: break-word;
}

.tournament-meta-link {
    color: #e2e8f0;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.tournament-meta-link:hover {
    color: #facc6b;
}

.hero-metric--link {
    text-decoration: none;
    cursor: pointer;
}

.hero-metric--link:hover .hero-metric__value,
.hero-metric--link:hover .hero-metric__label {
    color: #facc6b;
}

/* До ширины «широкого» десктопа — одна колонка групп, без наложений текста */
@media (width <= 992px) {
    .tournament-meta-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--spacing-lg);
    }

    .tournament-meta-group {
        gap: var(--spacing-xs);
    }

    .tournament-meta-row {
        font-size: 12px;
        column-gap: var(--spacing-sm);
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    }
}

@media (width <= 400px) {
    .tournament-meta-grid {
        gap: var(--spacing-md);
    }

    .tournament-meta-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

/* Compact tournaments table on home */
.tournament-table-wrapper {
    margin-top: var(--spacing-md);
    overflow-x: auto;
}

.tournament-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
    min-width: 900px;
}

.tournament-table thead tr {
    background: rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 10;
}

.tournament-table th,
.tournament-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.tournament-table th {
    font-weight: 500;
    font-size: 11px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.tournament-table__row {
    cursor: pointer;
    background: var(--color-bg-elevated);
    min-height: 80px;
    transition: background 0.15s ease;
}

.tournament-table__row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.tournament-table__title {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 2px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.tournament-table__sub {
    font-size: 12px;
    color: #64748b;
}

.tournament-table__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tournament-table__tags .badge {
    font-size: 11px;
    font-weight: 500;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.2;
}

.tournament-table__participants {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    min-width: 0;
    max-width: 100%;
}

/* Лейбл «Команды» / «Участники» и аватарки в одну строку */
.tournament-table__participants .tournament-participants-section--table {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--spacing-sm);
    min-width: 0;
}

.tournament-table__participants .tournament-participants-section--table .section-label {
    flex-shrink: 0;
    font-size: var(--font-size-sm);
    line-height: 1.2;
}

.tournament-table__participants .tournament-participants-section__empty {
    font-size: var(--font-size-sm);
    line-height: 1.2;
    white-space: nowrap;
}

/* Одна строка: аватарки в ряд, переполнение обрезается; «+N» снаружи обрезки */
.tournament-table__participants .tournament-participants-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 0;
}

.tournament-table__participants .tournament-participants-grid--table-row {
    display: flex;
    flex-flow: row nowrap;
    gap: 4px;
    min-width: 0;
    flex: 1 1 0;
    overflow: hidden;
}

.tournament-table__participants .tournament-participants-grid--table-row .participant-badge--avatar-only {
    flex-shrink: 0;
    padding: 0;
    background: transparent;
    border-radius: 50%;
    overflow: visible;
    cursor: help;
}

.tournament-table__participants .tournament-participants-grid--table-row .participant-badge--avatar-only .player-avatar {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
}

.tournament-table__participants .participant-more--table-tail {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    cursor: help;
}

.tournament-table__participants .participant-more--table-tail span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.tournament-table__participants .tournament-participants-grid {
    min-width: 0;
    width: 100%;
}

.tournament-table__action {
    text-align: right;
    white-space: nowrap;
}

.tournament-table__cell--status {
    width: 100px;
    text-align: center;
}

.tournament-table th:nth-child(1),
.tournament-table td.tournament-table__cell--status {
    padding-left: 8px;
    padding-right: 8px;
}

.tournament-table__cell--club {
    width: 7rem;
    min-width: 6rem;
    max-width: 8.5rem;
    vertical-align: middle;
}

.tournament-table th:nth-child(2),
.tournament-table td.tournament-table__cell--club {
    padding-left: 8px;
    padding-right: 8px;
}

.tournament-table__join-club-form {
    display: inline-block;
    margin: 0;
}

.tournament-table__club-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 2px 5px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
}

.tournament-table__club-badge--brand {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.tournament-table__club-badge--brand .tournament-brand-badge {
    font-size: 9px;
    padding: 2px 7px 2px 6px;
    gap: 4px;
}

.tournament-table__club-badge--brand .tournament-brand-badge__dot {
    width: 5px;
    height: 5px;
}

.tournament-table__club-badge--host {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: normal;
    overflow: visible;
    word-break: break-word;
    hyphens: auto;
}

.tournament-table__club-badge--host:hover {
    color: var(--color-primary);
    border-color: rgba(166, 130, 74, 0.45);
}

.tournament-table__cell--title {
    width: auto;
    min-width: 0;
}

.tournament-table__cell--city {
    width: 160px;
}

.tournament-table__cell--level {
    width: 180px;
}

.tournament-table__cell--format {
    width: 140px;
}

.tournament-table__cell--type {
    width: 160px;
}

.tournament-table__cell--fee {
    width: 130px;
}

.tournament-table__cell--action {
    width: 104px;
    max-width: 122px;
    white-space: normal;
}

.tournament-table th:last-child,
.tournament-table td.tournament-table__cell--action {
    padding-left: 6px;
    padding-right: 8px;
}

.tournament-table__action .btn-sm {
    white-space: normal;
    line-height: 1.25;
    text-align: center;
    padding: 3px 6px;
}

.tournament-table__fee {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
}

.tournament-table__places {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

@media (width <= 768px) {
    .tournament-table {
        min-width: 0;
        font-size: var(--font-size-xs);
        display: block;
    }

    .tournament-table thead {
        display: none;
    }

    .tournament-table tbody {
        display: block;
    }

    .tournament-table__row {
        display: block;
        height: auto;
        min-height: 0;
        margin-bottom: 8px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.05);
        padding: 14px 16px;
    }

    .tournament-table__cell {
        display: block;
        width: 100% !important;
        padding: 4px 0;
        border-bottom: none;
    }

    .tournament-table__cell--status,
    .tournament-table__cell--action {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 8px;
    }

    .tournament-table__cell--action {
        margin-top: 8px;
    }

    .tournament-table__cell--club {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }

    .tournament-table__cell--club:not(.tournament-table__cell--club-platform)::before {
        content: "Клуб";
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #94a3b8;
        flex-shrink: 0;
    }

    .tournament-table__cell--city,
    .tournament-table__cell--level,
    .tournament-table__cell--format,
    .tournament-table__cell--type,
    .tournament-table__cell--fee {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .tournament-table__fee-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 4px;
    }

    .tournament-table__action .btn {
        width: 100%;
        height: 40px;
    }

    /* Карточки на мобилке: лейбл сверху, аватарки сеткой */
    .tournament-table__participants .tournament-participants-section--table {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }

    .tournament-table__participants .tournament-participants-inline {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
        max-width: 100%;
    }

    .tournament-table__participants .tournament-participants-grid--table-row {
        display: flex;
        flex-flow: row wrap;
        flex: none;
        overflow: visible;
        width: auto;
        max-width: 100%;
    }

    .tournament-table__participants .participant-more--table-tail {
        align-self: center;
    }
}

/* Список «Турнирные таблицы» (/tournaments/tables/) */
.tournament-tables-page .filter-bar {
    margin-bottom: var(--spacing-xl);
}

.tournament-table-card__host {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--spacing-xs);
    max-width: 100%;
}

.tournament-table-card__host .tournament-brand-badge {
    flex-shrink: 0;
}

.tournament-table-card .tournament-card-host-badge--club {
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
    max-width: 100%;
    text-align: left;
    justify-content: flex-start;
}

/* END tournament.css */

/* BEGIN tournament-pages-extra.css */

/*
 * tournament-pages-extra.css
 *
 * Стили страниц турниров: список/деталь турнирных таблиц, галерея фото,
 * таблицы турнирной сетки FAN, вкладки TVD. Вынесено из шаблонов (без <style> в HTML).
 */

/* --- Общие отступы страниц --- */
.tournament-tables-page,
.tables-detail,
.tournament-detail-page {
    padding-top: var(--spacing-2xl);
}

/* --- Модификаторы бейджей формата (вместо inline style) --- */
.player-category--format-single_elimination,
.player-category--format-olympic_consolation {
    background: rgba(70, 130, 180, 0.25);
    color: #4682b4;
}

.player-category--format-round_robin {
    background: rgba(100, 149, 237, 0.2);
    color: #6495ed;
}

.player-category--format-weekend_day {
    background: rgba(72, 61, 139, 0.25);
    color: #483d8b;
}

.player-category--fee-plate {
    background: var(--color-bg-elevated);
}

/* --- Список «Турнирные таблицы» — сетка карточек --- */
.tournament-tables-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

@media (max-width: 992px) {
    .tournament-tables-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tournament-tables-grid {
        grid-template-columns: 1fr;
    }
}

.tournament-table-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tournament-table-card__body {
    position: relative;
    padding-top: calc(var(--spacing-lg) + 4px);
}

.tournament-table-card.card-in-view {
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow var(--transition-fast);
}

.tournament-table-card.card-in-view:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tournament-table-badges {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.tournament-table-badges__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tournament-table-badges__format,
.tournament-table-badges__levels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
}

.tournament-table-badges__status-wrap {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    max-width: calc(100% - 16px);
}

.tournament-table-badges .player-category,
.tournament-table-badges .tournament-status-badge {
    flex-shrink: 0;
}

.tournament-table-badges__status {
    position: static;
}

@media (max-width: 640px) {
    .tournament-table-card .card-body {
        padding: 14px;
    }

    .tournament-table-card__body {
        padding-top: 46px;
    }

    .tournament-table-badges__status-wrap {
        top: 8px;
        right: 8px;
        max-width: calc(100% - 16px);
    }

    .tournament-table-title {
        font-size: var(--font-size-base);
        line-height: 1.35;
        padding-right: 106px;
    }

    .tournament-table-badges__status {
        min-height: 20px;
        padding: 3px 7px;
        gap: 4px;
        font-size: 9px;
        letter-spacing: 0.02em;
        max-width: 100%;
    }

    .tournament-table-badges__status::before {
        width: 6px;
        height: 6px;
        flex-basis: 6px;
    }

    .tournament-table-badges {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .tournament-table-badges__main {
        gap: 8px;
    }

    .tournament-table-badges__format,
    .tournament-table-badges__levels {
        gap: 5px;
    }

    .tournament-table-badges .player-category {
        font-size: 11px;
        line-height: 1.2;
    }

    .tournament-table-stats {
        gap: var(--spacing-sm);
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .tournament-tables-page .tournament-table-stats .stat-item {
        min-width: 0;
        flex: 1 1 0;
    }

    .tournament-tables-page .tournament-table-stats .stat-value {
        font-size: var(--font-size-lg);
    }

    .tournament-tables-page .tournament-table-stats .stat-label {
        font-size: 10px;
        line-height: 1.2;
    }
}

.tournament-table-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.tournament-table-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.tournament-tables-page .tournament-table-stats .stat-item {
    display: flex;
    flex-direction: column;
}

.tournament-tables-page .tournament-table-stats .stat-value {
    font-weight: 600;
    color: var(--color-primary);
}

.tournament-tables-page .tournament-table-stats .stat-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

.tournament-table-progress {
    height: 6px;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.tournament-table-progress .progress-bar {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.tournament-table-link {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
}

/* --- Детальная страница турнирной таблицы --- */
.tables-detail .tables-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.tables-detail .tables-description {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.tables-fan-points {
    padding: var(--spacing-md);
    background: var(--color-bg-elevated);
    border-radius: var(--radius-md);
}

.tables-fan-points h4 {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.fan-points-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    font-size: var(--font-size-sm);
}

.tables-detail .stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-md);
}

.tables-detail .stat-card .card-body {
    text-align: center;
    padding: var(--spacing-lg);
}

.tables-detail .stat-card-value {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-primary);
}

.tables-detail .stat-card-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

.tables-detail .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tables-detail .standings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
}

.tables-detail .standings-table th,
.tables-detail .standings-table td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

.tables-detail .standings-table th {
    font-weight: 600;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.tables-detail .standings-table tr.top-place {
    background: rgba(166, 130, 74, 0.08);
}

.tables-detail .place-cell {
    font-weight: 600;
    width: 50px;
}

.tables-detail .player-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: inherit;
}

.tables-detail .player-link:hover {
    color: var(--color-primary);
}

.tables-detail .player-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
    background: var(--color-bg-elevated);
}

.tables-detail .fan-points {
    font-weight: 600;
    color: var(--color-primary);
}

.tables-detail .charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.tables-detail .chart-card .chart-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
}

.tables-detail .chart-container {
    position: relative;
    height: 250px;
}

.tables-detail .matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.tables-detail .match-card-mini {
    display: block;
    padding: var(--spacing-md);
    background: var(--color-bg-elevated);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: background var(--transition-fast);
}

.tables-detail .match-card-mini:hover {
    background: rgba(166, 130, 74, 0.15);
}

.tables-detail .match-mini-players {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.tables-detail .match-mini-player {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
}

.tables-detail .match-mini-player.winner {
    font-weight: 600;
    color: var(--color-primary);
}

.tables-detail .player-avatar-xs {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    object-fit: cover;
    background: var(--color-bg);
    flex-shrink: 0;
}

.tables-detail .match-mini-vs {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    padding-left: 32px;
}

.tables-detail .set-score {
    margin-left: auto;
    font-weight: 500;
}

.tables-detail .match-mini-status {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    margin-top: var(--spacing-xs);
}

.tables-detail .round-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary);
}

.tables-detail__host {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.tables-detail__host .tournament-table__club-badge--host {
    max-width: 100%;
}

.tables-detail .page-title {
    text-align: left;
}

/* --- Турнирная таблица FAN / TVD (общая разметка) --- */
.standings-row-top-3 {
    background: rgba(166, 130, 74, 0.08);
}

.standings-table.round-robin-standings {
    width: 100%;
    border-collapse: collapse;
}

.standings-table.round-robin-standings th,
.standings-table.round-robin-standings td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

.standings-table.round-robin-standings th {
    font-weight: 600;
}

.standings-table.round-robin-standings .standings-table__place-cell {
    font-weight: 600;
}

.standings-table.round-robin-standings .standings-table__points-cell {
    font-weight: 600;
    color: var(--color-primary);
}

.match-card__pending-hint {
    font-size: var(--font-size-xs);
}

/* --- Галерея фото на странице турнира --- */
.tournament-gallery {
    margin-bottom: var(--spacing-xl);
}

.tournament-gallery__main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000;
}

.tournament-gallery__bg-blur {
    position: absolute;
    inset: -12%;
    background-size: cover;
    background-position: center;
    filter: blur(22px) brightness(0.45) saturate(1.4);
    transform: scale(1.08);
    transition: background-image var(--transition-base);
}

.tournament-gallery__main-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition:
        transform 0.4s ease,
        opacity 0.25s ease;
}

.tournament-gallery__main-img.is-fading {
    opacity: 0;
    transform: scale(0.98);
}

.tournament-gallery__main:hover .tournament-gallery__main-img {
    transform: scale(1.01);
}

.tournament-gallery__counter {
    position: absolute;
    right: 16px;
    bottom: 14px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.tournament-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition:
        opacity 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
    z-index: 2;
}

.tournament-gallery__arrow--prev {
    left: 12px;
}

.tournament-gallery__arrow--next {
    right: 12px;
}

.tournament-gallery:hover .tournament-gallery__arrow {
    opacity: 1;
}

.tournament-gallery__arrow:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
}

.tournament-gallery__strip {
    display: flex;
    gap: 4px;
    background: var(--color-bg-elevated);
    padding: 4px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow-x: auto;
    scrollbar-width: none;
    margin-top: 2px;
}

.tournament-gallery__strip::-webkit-scrollbar {
    display: none;
}

.tournament-gallery__thumb {
    flex: 0 0 auto;
    width: 80px;
    min-width: 72px;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition:
        border-color 0.2s ease,
        opacity 0.2s ease,
        transform 0.15s ease;
    opacity: 0.65;
    padding: 0;
    background: transparent;
}

.tournament-gallery__thumb--active img {
    opacity: 1;
}

.tournament-gallery__thumb--active {
    border-color: var(--color-primary);
    opacity: 1;
}

.tournament-gallery__thumb:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.tournament-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.tournament-gallery__thumb:hover img {
    transform: scale(1.06);
}

.tournament-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.tournament-lightbox--open {
    display: flex;
}

.tournament-lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
}

.tournament-lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    opacity: 0.8;
    background: none;
    border: none;
    line-height: 1;
}

.tournament-lightbox__close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .tournament-gallery__arrow {
        width: 32px;
        height: 32px;
    }
}

/* --- Вкладки TVD --- */
.tvd-tab {
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
}

.tvd-tab:hover {
    color: var(--color-text);
    background: var(--color-bg-elevated);
}

.tvd-tab--active {
    color: var(--color-primary);
    font-weight: 600;
    background: var(--color-bg-elevated);
}

/* END tournament-pages-extra.css */

/* BEGIN home.css */

/*
 * home.css
 *
 * Описание: Секции главной страницы: hero, сетки, медиа-блоки и лента live-результатов.
 * Компоненты: .hero, .hero-content, .hero-title, .hero-text-reveal, .hero-buttons, .live-results-*
 * Используется на: главная страница и её секции
 *
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgb(212 255 0 / 5%) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hero-title span {
    color: var(--color-text);
}

.hero-text {
    font-size: var(--font-size-lg);
    color: #fff;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
}

/* Ensure outline button in hero is white to be readable on hero image */
.hero .btn-outline {
    border-color: #fff;
    color: #fff;
}

.hero .btn-outline:hover {
    background: rgb(255 255 255 / 8%);
    color: #fff;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Hero text block: лёгкий liquid glass фон.
   Высота: меняйте --hero-glass-padding-y и --hero-glass-min-height в :root. */
.hero-text-reveal {
    padding: var(--hero-glass-padding-y) var(--hero-glass-padding-x);
    min-height: var(--hero-glass-min-height);
    background: rgb(255 255 255 / 6%);
    backdrop-filter: blur(6px);
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgb(0 0 0 / 15%);
    margin-bottom: var(--spacing-xl);
    width: 100%;
    box-sizing: border-box;
}

/* Hero reveal: плашка и текст открываются синхронно — текст по мере сдвига плашки */
.hero .reveal {
    display: block;
    width: 100%;
}

.hero .reveal>span {
    position: relative;
    display: inline-block;
    overflow: hidden;
    clip-path: inset(0 100% 0 0);
    animation: hero-reveal-clip 0.6s ease forwards;
    animation-delay: var(--d);
    overflow-wrap: break-word;
    max-width: 100%;
}

.hero .reveal>span::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(255 255 255 / 6%);
    border-radius: 4px;
    transform: translateX(0);
    animation: hero-reveal-wipe 0.6s ease forwards;
    animation-delay: var(--d);
}

@keyframes hero-reveal-wipe {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Текст открывается слева направо в такт сдвигу плашки */
@keyframes hero-reveal-clip {
    0% {
        clip-path: inset(0 100% 0 0);
    }

    100% {
        clip-path: inset(0 0 0 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero .reveal>span {
        clip-path: inset(0 0 0 0);
        animation: none;
    }

    .hero .reveal>span::before {
        display: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(85vh, 1000px);
    overflow: hidden;
}

/* Сдвиг вверх: меняйте --hero-content-offset-y в :root (например -2rem или -3rem). */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 660px;
    margin-top: var(--hero-content-offset-y);
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 100vw;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (width <= 900px) {
    .hero {
        display: block;
        text-align: center;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-image-wrapper {
        position: relative;
        width: 100%;
        height: min(50vh, 420px);
        margin-bottom: var(--spacing-lg);
        overflow: hidden;
    }

    .hero-image {
        mask-image: linear-gradient(to bottom, transparent, black 20%);
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-text-reveal {
        padding: var(--spacing-lg) var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }
}

/* Hero Premium - минималистичный дизайн */
.hero.hero--premium {
    min-height: auto;
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    margin-top: 0;
    position: relative;
    background: transparent;
    overflow: hidden;
    display: block;
}

.hero.hero--premium::before {
    display: none;
}

/* Diagonal Grid: hero(r1,c1) + results(r1,c2 align-end) + video(r2,c1) */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: var(--spacing-xl);
    row-gap: 0;
}

.hero-grid .hero-content--premium {
    grid-row: 1;
    grid-column: 1;
    align-self: start;
    margin-top: 0;
}

.hero-grid .live-results {
    grid-row: 1;
    grid-column: 2;
    align-self: start;
    width: auto;
    max-width: none;
    margin: 0;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.hero-grid .hero-video-wrapper {
    grid-row: 2;
    grid-column: 1;
    align-self: start;
}

.hero-grid .hero-subscription {
    grid-row: 2;
    grid-column: 2;
    align-self: start;
    width: 100%;
    max-width: none;
    margin: 0;
}

.hero-subscription {

    border: 1px solid var(--primary-gold);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    backdrop-filter: blur(8px);
}

.hero-subscription__title {
    color: var(--primary-gold);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 var(--spacing-md) 0;
}

.hero-subscription__list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg) 0;
}

.hero-subscription__item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-light);
    font-size: 0.95rem;
    padding: var(--spacing-xs) 0;
}

.hero-subscription__icon {
    color: var(--primary-gold);
    font-weight: 700;
    flex-shrink: 0;
}

.hero-subscription__btn {
    width: auto;
    min-width: 220px;
    display: inline-flex;
    justify-content: center;
    text-align: center;
}

.hero-subscription__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    align-items: stretch;
}

.hero-subscription__layout--single {
    grid-template-columns: 1fr;
}

.hero-subscription__col--benefits {
    min-width: 0;
}

.hero-subscription__col--club {
    display: flex;
    align-items: stretch;
}

.hero-subscription__col--club .footer-club-cta {
    height: 100%;
}

.hero-subscription__col--club .footer-club-cta__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-subscription .footer-club-cta {
    justify-content: stretch;
    width: 100%;
}

.hero-subscription .footer-club-cta__inner {
    max-width: 100%;
    width: 100%;
}

.hero-club-cta {
    margin-top: 0;
}

.hero-subscription .footer-club-cta__text {
    align-items: center;
    text-align: center;
}

.hero-club-cta__image {
    display: block;
    width: min(180px, 60%);
    height: auto;
    margin: var(--spacing-xs) auto;
    object-fit: contain;
    opacity: 0.95;
}

@media (width <= 1200px) {
    .hero-subscription__layout {
        grid-template-columns: 1fr;
    }

    .hero-subscription__col--club {
        align-items: stretch;
    }

    .hero-subscription__btn {
        min-width: 0;
        width: 100%;
    }
}

.hero-content--premium {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title--premium {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 var(--spacing-md) 0;
    font-family: var(--font-heading);
}

.hero-subtitle--premium {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 var(--spacing-xl) 0;
    line-height: 1.5;
}

.hero-buttons--premium {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--spacing-md);
    width: 100%;
    max-width: 56rem;
    margin: 0 auto var(--spacing-2xl);
    align-items: stretch;
    box-sizing: border-box;
}

.hero--premium .hero-buttons--premium .hero-btn-primary,
.hero--premium .hero-buttons--premium .hero-btn-outline {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.5rem;
    padding: 0.95rem 1.35rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    text-wrap: balance;
    color: #e7f5ef;
    border: 1px solid #1f6a50;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #01442d 0%, #02593a 100%);
    box-shadow: 0 10px 22px rgb(0 0 0 / 28%), inset 0 1px 0 rgb(255 255 255 / 16%);
    transition: transform var(--transition-base), box-shadow var(--transition-base),
                border-color var(--transition-base), background var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    animation: hero-cta-enter 450ms ease both;
}

.hero--premium .hero-buttons--premium .hero-btn-primary::before,
.hero--premium .hero-buttons--premium .hero-btn-outline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45%;
    background: linear-gradient(115deg, transparent 0%, rgb(255 255 255 / 35%) 52%, transparent 100%);
    transform: translateX(-190%) skewX(-20deg);
    pointer-events: none;
}

.hero--premium .hero-buttons--premium .hero-btn-primary:hover,
.hero--premium .hero-buttons--premium .hero-btn-outline:hover {
    background: linear-gradient(135deg, #025338 0%, #046546 100%);
    border-color: #2f8a68;
    box-shadow: 0 14px 28px rgb(0 0 0 / 32%), inset 0 1px 0 rgb(255 255 255 / 22%);
    transform: translateY(-2px);
    color: #fff;
}

.hero--premium .hero-buttons--premium .hero-btn-primary:hover::before,
.hero--premium .hero-buttons--premium .hero-btn-outline:hover::before {
    animation: hero-cta-sheen 750ms ease;
}

.hero--premium .hero-buttons--premium .hero-btn-primary:active,
.hero--premium .hero-buttons--premium .hero-btn-outline:active {
    transform: translateY(0);
}

.hero--premium .hero-buttons--premium .hero-btn-primary:focus-visible,
.hero--premium .hero-buttons--premium .hero-btn-outline:focus-visible {
    outline: 2px solid rgb(255 255 255 / 75%);
    outline-offset: 2px;
}

.hero--premium .hero-buttons--premium > a:nth-child(1) { animation-delay: 40ms; }
.hero--premium .hero-buttons--premium > a:nth-child(2) { animation-delay: 100ms; }
.hero--premium .hero-buttons--premium > a:nth-child(3) { animation-delay: 160ms; }
.hero--premium .hero-buttons--premium > a:nth-child(4) { animation-delay: 220ms; }

@keyframes hero-cta-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-cta-sheen {
    from {
        transform: translateX(-190%) skewX(-20deg);
    }

    to {
        transform: translateX(320%) skewX(-20deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero--premium .hero-buttons--premium .hero-btn-primary,
    .hero--premium .hero-buttons--premium .hero-btn-outline {
        animation: none;
        transition: none;
    }

    .hero--premium .hero-buttons--premium .hero-btn-primary:hover::before,
    .hero--premium .hero-buttons--premium .hero-btn-outline:hover::before {
        animation: none;
    }
}

/* Hero Video */
.hero-video-wrapper {
    width: 100%;
    margin-top: var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: #000;
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Hero Grid - мобильная адаптация */
@media (width <= 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        row-gap: var(--spacing-lg);
    }

    .hero-grid .hero-content--premium {
        grid-row: auto;
        grid-column: 1;
    }

    .hero-grid .live-results {
        grid-row: auto;
        grid-column: 1;
        align-self: auto;
    }

    .hero-grid .hero-video-wrapper {
        grid-row: auto;
        grid-column: 1;
    }

    .hero-grid .hero-subscription {
        grid-row: auto;
        grid-column: 1;
        align-self: start;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .hero-video-wrapper {
        margin-top: 0;
        border-radius: var(--radius-md);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
}

@media (width <= 768px) {
    .hero-video-wrapper {
        border-radius: var(--radius-sm);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
}

/* Метрики Hero */
.hero-metrics--premium {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: nowrap;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--spacing-lg);
}

.hero-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    flex: 1;
}

.hero-metric__value {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    font-family: var(--font-heading);
}

.hero-metric__label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    text-transform: lowercase;
}

.hero-metric-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    display: block;
}

/* Mobile адаптация */
@media (max-width: 768px) {
    .hero-title--premium {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle--premium {
        font-size: var(--font-size-base);
    }

    .hero-buttons--premium {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
        gap: var(--spacing-sm);
    }

    .hero--premium .hero-buttons--premium .hero-btn-primary,
    .hero--premium .hero-buttons--premium .hero-btn-outline {
        min-height: 2.9rem;
        padding: 0.65rem 0.8rem;
        font-size: var(--font-size-sm);
        line-height: 1.2;
    }

    .hero-btn-primary,
    .hero-btn-outline {
        width: 100%;
    }

    .hero-metrics--premium {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: var(--spacing-sm);
        row-gap: var(--spacing-sm);
        justify-items: center;
        margin-bottom: var(--spacing-xl);
    }

    .hero-metric {
        width: 100%;
    }

    .hero-metric__value {
        font-size: var(--font-size-xl);
    }

    .hero-metric__label {
        font-size: var(--font-size-xs);
    }

    .hero-metric-divider {
        display: none;
    }
}

/* Live Results Ticker */
.live-results {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    background: rgb(255 255 255 / 6%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    overflow-x: hidden;
}

.live-results__header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.live-results__title {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: #fff;
}

.live-results__tabs {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.live-results__tab {
    border: none;
    background: transparent;
    font-size: var(--font-size-xs);
    color: rgb(255 255 255 / 60%);
    padding: 2px 10px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.live-results__tab--active {
    background: rgb(255 255 255 / 14%);
    color: #fff;
}

.live-results__list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    min-height: 470px;
    max-height: 470px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.live-results__row-wrap {
    overflow: hidden;
    flex-shrink: 0;
}

.live-results__row-wrap--entering {
    animation: live-results-row-enter 0.5s cubic-bezier(0.32, 0.72, 0, 1) forwards;
    will-change: transform, opacity;
}

@keyframes live-results-row-enter {
    0% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
    }
    100% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1;
    }
}

.live-results__row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(78px, 96px) minmax(76px, 110px) minmax(78px, 96px) minmax(120px, 1fr);
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    min-height: 72px;
    background: rgb(255 255 255 / 4%);
    border-radius: var(--radius-sm);
    border: 1px solid rgb(255 255 255 / 6%);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, border-color 0.2s;
}

.live-results__row:hover {
    background: rgb(255 255 255 / 8%);
    border-color: rgb(255 255 255 / 12%);
}


.live-results__player1 {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    min-width: 0;
    overflow: hidden;
}

.live-results__player2 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--spacing-md);
    min-width: 0;
    overflow: hidden;
}

.live-results__avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.avatar--48 {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

.avatar--80 {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
}

.live-results__name {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #fff;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
}

.live-results__vals--col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: var(--font-size-xs);
    text-align: left;
    min-width: 0;
}

.live-results__vals--right {
    text-align: right;
}

.live-results__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 76px;
}

.live-results__date {
    font-size: var(--font-size-xs);
    color: rgb(255 255 255 / 55%);
}

.live-results__club {
    max-width: 110px;
    font-size: 10px;
    line-height: 1.2;
    color: rgb(255 255 255 / 68%);
    text-align: center;
    overflow-wrap: anywhere;
}

.live-results__score {
    font-weight: 700;
    font-size: var(--font-size-base);
    color: var(--color-primary);
    white-space: pre-line;
    text-align: center;
}

.live-results__val {
    font-weight: 600;
    white-space: nowrap;
}

.live-results__val--up {
    color: rgb(14, 203, 129);
}

.live-results__val--down {
    color: rgb(230, 67, 90);
}

.live-results__val--none {
    color: rgb(255 255 255 / 80%);
}

.live-results__empty {
    padding: var(--spacing-xl);
    text-align: center;
    color: rgb(255 255 255 / 60%);
}

.live-results__empty--hint {
    padding: var(--spacing-md);
}

.live-results__fallback-card {
    padding: var(--spacing-md);
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: var(--radius-md);
    background: rgb(255 255 255 / 4%);
}

.live-results__fallback-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.live-results__fallback-description {
    font-size: var(--font-size-xs);
    color: rgb(255 255 255 / 72%);
    line-height: 1.45;
}

.live-results__fallback-link {
    display: inline-block;
    margin-top: var(--spacing-xs);
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-decoration: none;
}

.live-results__fallback-link:hover {
    text-decoration: underline;
}

@media (width <= 900px) {
    .hero-banner--full {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .hero-banner__title {
        font-size: var(--font-size-lg);
    }

    .live-results {
        width: auto;
        max-width: none;
        margin: 0;
        padding: var(--spacing-md);
    }

    .live-results__row {
        grid-template-columns: 1fr minmax(70px, auto) auto minmax(70px, auto) 1fr;
        gap: var(--spacing-sm);
    }

    .live-results__center {
        min-width: auto;
    }
}

/* Планшеты (768px - 1024px) - исправление перекрытия */
@media (min-width: 769px) and (max-width: 1024px) {
    .live-results {
        width: auto;
        max-width: none;
        padding: var(--spacing-md);
        margin: 0;
        box-sizing: border-box;
    }
}

/* Mobile - отступы с обеих сторон */
@media (width <= 768px) {
    .live-results {
        width: auto;
        max-width: none;
        margin: 0;
        padding: var(--spacing-md);
    }

    .live-results__row {
        grid-template-columns: minmax(0, 1fr) minmax(60px, auto) auto minmax(60px, auto) minmax(0, 1fr);
        gap: var(--spacing-xs);
        padding: var(--spacing-xs);
    }

    .live-results__center {
        min-width: 60px;
    }

    .live-results__name {
        font-size: var(--font-size-xs);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
    }

    .live-results__val {
        font-size: 10px;
    }

    .live-results__avatar {
        width: 40px;
        height: 40px;
    }
}

@media (width <= 600px) {
    .live-results {
        width: auto;
        max-width: none;
        padding: var(--spacing-sm);
        margin: 0;
    }

    .live-results__row {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm);
        min-height: 100px;
    }

    .live-results__player1 {
        grid-column: 1;
        grid-row: 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        min-width: 0;
    }

    .live-results__player1 .live-results__name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .live-results__player2 {
        grid-column: 3;
        grid-row: 1;
        flex-direction: column-reverse;
        align-items: flex-end;
        gap: 2px;
        min-width: 0;
    }

    .live-results__player2 .live-results__name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        text-align: right;
    }

    .live-results__vals--col:not(.live-results__vals--right) {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
        min-width: 0;
    }

    .live-results__vals--right {
        grid-column: 3;
        grid-row: 2;
        align-self: start;
        min-width: 0;
    }

    .live-results__center {
        grid-column: 2;
        grid-row: 1 / 3;
        justify-content: center;
        min-width: 56px;
        padding: 0 var(--spacing-xs);
    }

    .live-results__avatar {
        width: 40px;
        height: 40px;
    }

    .live-results__name {
        font-size: 12px;
    }

    .live-results__val {
        font-size: 11px;
        line-height: 1.3;
    }

    .live-results__date {
        font-size: 10px;
    }

    .live-results__score {
        font-size: var(--font-size-sm);
    }
}

/* ==========================================================================
   Home Bottom Sections
   ========================================================================== */
.section-tournaments-spaced {
    padding-top: var(--spacing-xl);
}

@media (width <= 768px) {
    .section-tournaments-spaced {
        padding-top: var(--spacing-lg);
    }
}

/* Блок «Турниры»: две кнопки в один ряд на мобильных, «Сбросить» как outline */
.section-header--home-tournaments .home-tournaments-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
}

/* Для нативных select на мобильных: убираем transform-анимацию карточки фильтра,
   иначе popup списка может позиционироваться со смещением. */
.main #home-tournaments-filter.card,
.main #home-tournaments-filter.card.card-in-view,
.main #home-tournaments-filter.card.card-in-view:hover {
    opacity: 1;
    transform: none !important;
}

@media (width <= 768px) {
    .section-header--home-tournaments {
        align-items: stretch;
    }

    .section-header--home-tournaments .home-tournaments-header__actions {
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        align-items: stretch;
    }

    .section-header--home-tournaments .home-tournaments-header__actions .btn {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        white-space: normal;
        line-height: 1.25;
        justify-content: center;
        text-align: center;
        min-height: 2.35rem;
        padding: 0.35rem 0.65rem;
        font-size: var(--font-size-sm);
    }

    #home-tournaments-filter {
        margin-bottom: var(--spacing-md);
    }

    #home-tournaments-filter .card-body.filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem 0.65rem;
        padding: 0.75rem;
    }

    #home-tournaments-filter .home-filter-group {
        margin-bottom: 0;
    }

    #home-tournaments-filter .home-filter-group--city,
    #home-tournaments-filter .home-filter-group--submit {
        grid-column: 1 / -1;
    }

    #home-tournaments-filter .home-filter-group--submit .form-label {
        display: none;
    }

    #home-tournaments-filter .form-label {
        margin-bottom: 0.2rem;
        font-size: 0.74rem;
        line-height: 1.15;
    }

    #home-tournaments-filter .form-control,
    #home-tournaments-filter .club-filter-select__toggle.form-control,
    #home-tournaments-filter .home-filter-group--submit .btn {
        height: 2.35rem;
        min-height: 2.35rem;
        padding: 0 0.65rem;
        font-size: 0.95rem;
        line-height: 1.2;
    }

    #home-tournaments-filter .home-filter-group--submit .btn {
        width: 100%;
    }

    /* Главная: компактные карточки турниров сразу под hero */
    #home-tournaments-block .tournament-table__row {
        position: relative;
        margin-bottom: 6px;
        padding: 10px;
        border-radius: 10px;
        border: 1px solid rgb(255 255 255 / 9%);
        background: rgb(255 255 255 / 4%);
    }

    #home-tournaments-block .tournament-table td.tournament-table__cell {
        padding: 2px 0;
        border-bottom: none;
    }

    #home-tournaments-block .tournament-table__cell--status {
        position: absolute;
        top: 8px;
        right: 8px;
        width: auto !important;
        padding: 0;
        margin: 0;
        z-index: 2;
    }

    #home-tournaments-block .tournament-table__cell--status .tournament-status-badge {
        min-height: 20px;
        height: 20px;
        padding: 0 8px;
        font-size: 10px;
        line-height: 20px;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    #home-tournaments-block .tournament-table__cell--status .tournament-status-badge::before {
        width: 6px;
        height: 6px;
        flex-basis: 6px;
    }

    #home-tournaments-block .tournament-table__cell--club {
        display: flex;
        align-items: center;
        gap: 6px;
        min-height: 20px;
        padding-right: 6.5rem;
    }

    #home-tournaments-block .tournament-table__cell--club::before {
        font-size: 9px;
    }

    #home-tournaments-block .tournament-table__title {
        font-size: 13px;
        line-height: 1.25;
        margin-bottom: 1px;
    }

    #home-tournaments-block .tournament-table__sub {
        font-size: 11px;
        line-height: 1.25;
    }

    #home-tournaments-block .tournament-table__participants {
        margin-top: 3px;
        gap: 2px;
    }

    #home-tournaments-block .tournament-table__participants .section-label,
    #home-tournaments-block .tournament-table__participants .tournament-participants-section__empty {
        font-size: 11px;
    }

    #home-tournaments-block .tournament-table__tags {
        gap: 4px;
    }

    #home-tournaments-block .tournament-table__tags .badge {
        min-height: 20px;
        padding: 1px 6px;
        font-size: 10px;
        line-height: 1.15;
        border-radius: 6px;
    }

    #home-tournaments-block .tournament-table__cell--city,
    #home-tournaments-block .tournament-table__cell--level,
    #home-tournaments-block .tournament-table__cell--format,
    #home-tournaments-block .tournament-table__cell--type,
    #home-tournaments-block .tournament-table__cell--fee {
        padding-top: 2px;
        padding-bottom: 2px;
    }

    #home-tournaments-block .tournament-table__fee {
        font-size: 14px;
        line-height: 1.2;
    }

    #home-tournaments-block .tournament-table__places {
        margin-top: 1px;
        font-size: 11px;
    }

    #home-tournaments-block .tournament-table__cell--action {
        margin-top: 4px;
        padding-top: 2px;
    }

    #home-tournaments-block .tournament-table__action .btn {
        height: 34px;
        min-height: 34px;
        font-size: 12px;
        line-height: 1.2;
    }
}

@media (width <= 420px) {
    #home-tournaments-filter .card-body.filter-grid {
        gap: 0.5rem;
        padding: 0.65rem;
    }

    #home-tournaments-filter .form-control,
    #home-tournaments-filter .club-filter-select__toggle.form-control,
    #home-tournaments-filter .home-filter-group--submit .btn {
        height: 2.2rem;
        min-height: 2.2rem;
        font-size: 0.9rem;
    }
}

@media (width <= 768px) {
    .home-section--upcoming .section-header,
    .home-section--news .section-header {
        align-items: stretch;
    }

    .home-section--upcoming .section-header .btn,
    .home-section--news .section-header .btn {
        width: 100%;
        justify-content: center;
    }

    .home-grid--tournaments,
    .home-grid--news {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--spacing-md);
    }

    .home-grid--tournaments > .card,
    .home-grid--news > .card {
        min-width: 0;
    }

    .home-grid--tournaments .tournament-preview-card__media,
    .home-grid--news .card-image {
        aspect-ratio: 16 / 9;
    }

    .home-grid--tournaments .card-title,
    .home-grid--news .card-title {
        font-size: var(--font-size-base);
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .home-grid--tournaments .card-text,
    .home-grid--news .card-text,
    .home-grid--news .text-muted {
        overflow-wrap: anywhere;
    }

    .home-grid--tournaments .tournament-preview-card .card-body,
    .home-grid--news .card-body {
        padding: var(--spacing-md);
    }
}

@media (width <= 480px) {
    .home-section--upcoming,
    .home-section--news {
        overflow-x: clip;
    }

    .home-grid--tournaments,
    .home-grid--news {
        gap: var(--spacing-sm);
    }

    .home-grid--tournaments .card-title,
    .home-grid--news .card-title {
        font-size: var(--font-size-sm);
    }

    .home-grid--tournaments .card-text,
    .home-grid--news .card-text,
    .home-grid--news .text-muted {
        font-size: var(--font-size-xs);
    }

    .home-grid--tournaments .tournament-preview-card__categories {
        gap: 6px;
    }
}

@media (max-width: 768px) {
    .home-section--upcoming .grid-3,
    .home-section--upcoming .home-grid--tournaments,
    .home-section--news .grid-4,
    .home-section--news .home-grid--news {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: var(--spacing-md) !important;
    }

    .home-section--upcoming .tournament-preview-card,
    .home-section--news .card {
        width: 100%;
        min-width: 0;
    }

    .home-section--upcoming .tournament-preview-card {
        position: relative;
    }

    .home-section--upcoming .tournament-preview-card .tournament-status-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        z-index: 2;
        margin: 0;
        min-height: 22px;
        padding: 0 8px;
        font-size: 10px;
        line-height: 20px;
        max-width: none;
    }

    .home-section--upcoming .tournament-preview-card .card-body {
        gap: 6px;
        padding: 0.75rem;
    }

    .home-section--upcoming .tournament-preview-card__categories {
        gap: 6px;
    }

    .home-section--upcoming .tournament-preview-card__category {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .home-section--upcoming .grid-3,
    .home-section--upcoming .home-grid--tournaments,
    .home-section--news .grid-4,
    .home-section--news .home-grid--news {
        gap: var(--spacing-sm) !important;
    }
}

@media (max-width: 768px) {
    /* Главная под hero: компактные карточки турниров только в home-блоке */
    #home-tournaments-block .tournament-table-wrapper {
        margin-top: var(--spacing-sm);
    }

    #home-tournaments-block .tournament-table {
        min-width: 0;
    }

    #home-tournaments-block .tournament-table__row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "club status"
            "title title"
            "city city"
            "level level"
            "format format"
            "type type"
            "fee fee"
            "action action";
        column-gap: 8px;
        row-gap: 2px;
        margin-bottom: 6px;
        padding: 10px 11px 9px !important;
        border-radius: 12px;
    }

    #home-tournaments-block .tournament-table td.tournament-table__cell {
        display: block;
        width: 100% !important;
        margin: 0;
        padding: 2px 0 !important;
        border-bottom: none !important;
    }

    #home-tournaments-block .tournament-table__cell--status {
        grid-area: status;
        position: static !important;
        justify-self: end;
        align-self: start;
        z-index: 1;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-flex !important;
        pointer-events: auto;
    }

    #home-tournaments-block .tournament-table__cell--status .tournament-status-badge {
        min-height: 21px;
        height: 21px;
        padding: 0 9px;
        font-size: 10px;
        line-height: 21px;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    #home-tournaments-block .tournament-table__cell--status .tournament-status-badge::before {
        width: 6px;
        height: 6px;
        flex-basis: 6px;
    }

    #home-tournaments-block .tournament-table__cell--club {
        grid-area: club;
    }

    #home-tournaments-block .tournament-table__cell--title {
        grid-area: title;
    }

    #home-tournaments-block .tournament-table__cell--city {
        grid-area: city;
    }

    #home-tournaments-block .tournament-table__cell--level {
        grid-area: level;
    }

    #home-tournaments-block .tournament-table__cell--format {
        grid-area: format;
    }

    #home-tournaments-block .tournament-table__cell--type {
        grid-area: type;
    }

    #home-tournaments-block .tournament-table__cell--fee {
        grid-area: fee;
    }

    #home-tournaments-block .tournament-table__cell--action {
        grid-area: action;
    }

    #home-tournaments-block .tournament-table__cell--club,
    #home-tournaments-block .tournament-table__cell--title {
        padding-right: 0 !important;
    }

    #home-tournaments-block .tournament-table__cell--club {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        min-height: 20px;
    }

    #home-tournaments-block .tournament-table__cell--club::before {
        font-size: 9px;
        line-height: 1;
    }

    #home-tournaments-block .tournament-table__club-badge {
        max-width: 100%;
    }

    #home-tournaments-block .tournament-table__title {
        margin-bottom: 2px;
        font-size: 13px;
        line-height: 1.25;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    #home-tournaments-block .tournament-table__sub {
        font-size: 11px;
        line-height: 1.2;
    }

    #home-tournaments-block .tournament-table__participants {
        margin-top: 3px;
        gap: 2px;
    }

    #home-tournaments-block .tournament-table__participants .section-label,
    #home-tournaments-block .tournament-table__participants .tournament-participants-section__empty {
        font-size: 11px;
    }

    #home-tournaments-block .tournament-table__tags {
        gap: 4px;
    }

    #home-tournaments-block .tournament-table__tags .badge {
        min-height: 20px;
        padding: 1px 6px;
        font-size: 10px;
        line-height: 1.15;
        border-radius: 6px;
    }

    #home-tournaments-block .tournament-table__cell--city,
    #home-tournaments-block .tournament-table__cell--level,
    #home-tournaments-block .tournament-table__cell--format,
    #home-tournaments-block .tournament-table__cell--type,
    #home-tournaments-block .tournament-table__cell--fee {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }

    #home-tournaments-block .tournament-table__fee {
        font-size: 14px;
        line-height: 1.2;
    }

    #home-tournaments-block .tournament-table__places {
        margin-top: 1px;
        font-size: 11px;
    }

    #home-tournaments-block .tournament-table__cell--action {
        margin-top: 4px;
        padding-top: 3px !important;
    }

    #home-tournaments-block .tournament-table__action .btn {
        width: auto;
        min-width: 112px;
        height: 34px;
        min-height: 34px;
        padding: 0 14px;
        font-size: 12px;
        line-height: 1.2;
    }
}

/* END home.css */

/* BEGIN 404.css */

/*
 * 404.css
 *
 * Описание: Полноэкранная стилизация страницы ошибки 404 с видео/изображением и контентным слоем.
 * Компоненты: .error-page, .error-video, .error-image, .error-overlay, .error-content, .error-code
 * Используется на: шаблон страницы 404
 *
 * Последнее обновление: 2026-03
 */

/* 404 Error Page */
.error-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.error-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0.6;
}

.error-image {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0.6;
}

.error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 0%, #000 90%);
    z-index: 1;
}

.error-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    text-align: center;
    color: silver;
    padding: var(--spacing-xl);
    padding-bottom: 15vh;
    background: none;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.error-text {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.error-desc {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.5;
}

@media (width <= 1024px) {
    .error-video {
        object-fit: contain;
        object-position: center center;
    }
}

@media (width <= 768px) {
    .error-page {
        align-items: center;
    }

    .error-video {
        object-fit: contain;
        object-position: center center;
    }

    .error-content {
        padding: var(--spacing-lg);
        padding-bottom: var(--spacing-xl);
        max-width: 100%;
    }

    .error-code {
        font-size: 4rem;
        margin-bottom: var(--spacing-sm);
    }

    .error-text {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-xs);
    }

    .error-desc {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
        padding: 0 var(--spacing-sm);
    }

    .error-content .btn {
        width: 100%;
        max-width: 280px;
        font-size: 1rem;
        padding: var(--spacing-md) var(--spacing-lg);
    }
}

@media (width <= 480px) {
    .error-video {
        display: none;
    }

    .error-image {
        display: block;
        object-fit: contain;
        object-position: center center;
    }

    .error-content {
        padding: var(--spacing-md);
        padding-bottom: var(--spacing-lg);
    }

    .error-code {
        font-size: 3rem;
    }

    .error-text {
        font-size: 1.25rem;
    }

    .error-desc {
        font-size: 0.9rem;
        padding: 0;
    }

    .error-content .btn {
        max-width: 100%;
    }
}

/* END 404.css */

/* BEGIN coach.css */

/*
 * coach.css
 *
 * Описание: Макет страницы тренера с сайдбаром и адаптивным переключением в одну колонку.
 * Компоненты: .coach-detail-grid, .coach-detail-sidebar, .coach-detail-main
 * Используется на: страница тренера
 *
 * Последнее обновление: 2026-03
 */

/* Coach detail layout */
.coach-detail-grid {
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-xl);
}

.coach-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-lg);
    align-items: stretch;
}

.coach-list-card,
.coach-list-card .card-body {
    min-width: 0;
}

.coach-list-card {
    height: 100%;
}

.coach-list-card .card-title,
.coach-list-card .text-secondary,
.coach-list-card .text-muted {
    overflow-wrap: anywhere;
}

.coach-detail-sidebar {
    height: fit-content;
}

.coach-contact-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.coach-contact-btn {
    justify-content: center;
    width: min(100%, 230px);
    min-height: 48px;
    padding-inline: var(--spacing-lg);
    text-align: center;
}

.coach-contact-btn--static {
    cursor: default;
}

@media (width <= 900px) {
    .coach-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .coach-detail-grid {
        grid-template-columns: 1fr;
    }

    .coach-detail-sidebar {
        order: 1;
    }

    .coach-detail-main {
        order: 2;
    }
}

@media (width <= 760px) {
    .coach-list-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--spacing-md);
    }
}

/* END coach.css */

/* BEGIN training.css */

/*
 * training.css
 *
 * Описание: Макет страницы тренировки с двухколоночной структурой и sticky-сайдбаром.
 * Компоненты: .training-detail-grid, .training-detail-sidebar-card
 * Используется на: страница тренировки
 *
 * Последнее обновление: 2026-03
 */

/* Training detail layout */
.training-detail-grid {
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-xl);
}

.training-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-lg);
    align-items: stretch;
}

.training-list-grid .training-card,
.training-list-grid .training-card .card-body {
    min-width: 0;
}

.training-list-grid .training-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.training-list-grid .training-card .card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
}

.training-list-grid .training-card .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.training-list-grid .training-card .d-flex {
    align-items: flex-start;
}

.training-list-grid .training-card .card-title,
.training-list-grid .training-card .card-text,
.training-list-grid .training-card .text-secondary,
.training-list-grid .training-card .text-primary,
.training-list-grid .training-card .player-category {
    overflow-wrap: anywhere;
}

.training-list-grid .training-card .card-title {
    margin: 0;
}

.training-list-grid .training-card .card-text {
    margin-top: 0;
    margin-bottom: auto;
}

.training-detail-sidebar-card {
    position: sticky;
    top: 100px;
}

@media (width <= 900px) {
    .training-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .training-detail-grid {
        grid-template-columns: 1fr;
    }

    .training-detail-sidebar-card {
        position: static;
        margin-top: var(--spacing-lg);
    }
}

@media (width <= 760px) {
    .training-list-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--spacing-md);
    }

    .training-list-grid .training-card .card-image {
        aspect-ratio: 16 / 10;
    }
}

/* END training.css */

/* BEGIN shop.css */

/*
 * shop.css
 *
 * Описание: Стили витрины магазина, карточек товаров и детальной страницы товара.
 * Компоненты: .shop-page-header, .shop-product-grid, .shop-product-card__*, .shop-detail__*
 * Используется на: страницы магазина (список и карточка товара)
 *
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Shop
   ========================================================================== */

/* Shop list page header */
.shop-page-header {
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.shop-intro {
    max-width: 1100px;
    margin: var(--spacing-sm) auto 0;
    padding: 0 var(--spacing-lg);
    text-align: left;
}

.shop-intro.legal-doc__body {
    padding: var(--spacing-md) var(--spacing-lg) !important;
}

/* Shop product grid cards */
.shop-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-xl);
}

.shop-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.shop-product-card__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.shop-product-card__image-link {
    cursor: pointer;
}

.shop-product-card__image-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.shop-product-card__image {
    width: 100%;
    max-width: 100%;
    height: 280px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: var(--color-bg);
}

.shop-product-card__placeholder {
    height: 280px;
    min-height: 160px;
    background: linear-gradient(135deg, var(--color-primary-transparent), var(--color-bg-elevated));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.shop-product-card__body {
    flex: 1;
}

.shop-product-card__size {
    font-size: var(--font-size-sm);
}

.shop-product-card__price {
    font-weight: 700;
    font-size: var(--font-size-lg);
    margin: var(--spacing-sm) 0;
}

.shop-product-card__actions {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--color-border);
}

.shop-product-card__buy {
    width: 100%;
}

@media (width <= 768px) {
    .shop-product-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .shop-product-card__image,
    .shop-product-card__placeholder {
        height: 240px;
        max-height: 50vw;
    }
}

@media (width <= 480px) {
    .shop-product-grid {
        gap: var(--spacing-md);
    }

    .shop-product-card__image,
    .shop-product-card__placeholder {
        height: 220px;
        max-height: 55vw;
    }

    .shop-product-card__actions {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

/* Shop product detail - full width */
.shop-detail {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-2xl);
}

.shop-detail__card {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl) 0;
    margin-top: var(--spacing-md);
}

.shop-detail__main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.shop-detail__gallery {
    position: sticky;
    top: var(--spacing-lg);
}

.shop-detail__main-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg);
    margin-bottom: var(--spacing-md);
}

.shop-detail__main-photo-link {
    cursor: pointer;
}

.shop-detail__main-photo-link:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.shop-detail__main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.shop-detail__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    min-height: 200px;
}

.shop-detail__thumbs {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    padding-bottom: var(--spacing-xs);
    -webkit-overflow-scrolling: touch;
}

.shop-detail__thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--color-bg);
}

.shop-detail__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-detail__thumb--active {
    border-color: var(--color-primary);
}

.shop-detail__thumb:hover {
    border-color: var(--color-primary-transparent);
}

.shop-detail__info {
    padding-top: var(--spacing-sm);
}

.shop-detail__title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.shop-detail__price {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.shop-detail__stock {
    margin-bottom: var(--spacing-sm);
}

.shop-detail__char {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-secondary);
}

.shop-detail__buy {
    margin-top: var(--spacing-lg);
    min-width: 160px;
}

.shop-detail__description {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--color-border);
}

.shop-detail__desc-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.shop-detail__desc-body {
    padding: 0 !important;
}

@media (width <= 768px) {
    .shop-detail .container {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }

    .shop-detail__card {
        margin-left: var(--spacing-md);
        margin-right: var(--spacing-md);
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
        border-radius: var(--radius-md);
    }

    .shop-detail__card .container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    .shop-detail__main {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        min-width: 0;
    }

    .shop-detail__gallery {
        position: static;
        min-width: 0;
        max-width: 100%;
    }

    .shop-detail__main-photo {
        max-width: 100%;
        width: 100%;
        aspect-ratio: 1;
        max-height: min(85vw, 400px);
        margin-left: auto;
        margin-right: auto;
    }

    .shop-detail__main-img {
        max-width: 100%;
        object-fit: contain;
    }

    .shop-detail__thumbs {
        flex-wrap: nowrap;
        margin-top: var(--spacing-sm);
    }

    .shop-detail__info {
        padding-top: 0;
    }

    .shop-detail__title {
        font-size: var(--font-size-xl);
    }

    .shop-detail__price {
        font-size: var(--font-size-xl);
    }

    .shop-detail__description {
        margin-top: var(--spacing-xl);
        padding-top: var(--spacing-xl);
    }
}

@media (width <= 480px) {
    .shop-detail__card {
        margin-left: var(--spacing-sm);
        margin-right: var(--spacing-sm);
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }

    .shop-detail__main-photo {
        max-height: min(90vw, 360px);
    }
}

/* END shop.css */

/* BEGIN rules.css */

/*
 * rules.css
 *
 * Описание: Стили страниц правил и round-robin таблиц, включая ссылки на PDF и мобильную адаптацию.
 * Компоненты: .rules-doc__doc-link, .round-robin-matrix, .round-robin-standings, .round-robin-table-wrapper
 * Используется на: страницы правил турниров и FAN
 *
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Rules page (Правила турниров, FAN)
   ========================================================================== */
.rules-page {
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-3xl);
}

.container--rules {
    max-width: 900px;
}

.rules-header {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.page-title--rules {
    text-align: center;
}

.rules-header .page-subtitle {
    text-align: center;
}

.rules-tabs__nav {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.rules-tabs__btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color var(--transition-fast), border-color var(--transition-fast);
    flex: 0 0 auto;
    white-space: nowrap;
}

.rules-tabs__btn:hover {
    color: var(--color-primary);
}

.rules-tabs__btn--active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.rules-tabs__btn--disabled {
    color: var(--color-text-muted);
    cursor: pointer;
    opacity: 0.7;
}

.rules-tabs__btn--disabled:hover {
    color: var(--color-text-secondary);
}

.rules-subtabs__nav {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.rules-subtabs__btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast),
                color var(--transition-fast), transform var(--transition-fast);
}

.rules-subtabs__btn:hover {
    background: rgb(166 130 74 / 15%);
    color: var(--color-primary);
}

.rules-subtabs__btn--active {
    background: var(--color-primary);
    color: var(--color-bg);
    border-color: var(--color-primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgb(166 130 74 / 35%);
}

.rules-doc__body {
    padding: var(--spacing-2xl) !important;
}

.rules-doc__body h2 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-xl);
    color: var(--color-primary);
}

.rules-doc__body h2:first-child {
    margin-top: 0;
}

.rules-doc__body h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
    color: var(--color-text);
}

.rules-doc__body h4 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
}

.rules-doc__body p {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.rules-doc__body p+p {
    margin-top: var(--spacing-sm);
}

.rules-doc__body ul {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-xl);
}

.rules-doc__body li {
    margin-bottom: var(--spacing-xs);
    list-style: disc;
}

.rules-doc__body code {
    padding: 0.1em 0.3em;
    font-size: 0.9em;
    background: var(--color-primary-transparent);
    border-radius: var(--radius-sm);
}

.rules-doc__body hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--spacing-xl) 0;
}

.rules-doc__body strong {
    color: var(--color-text);
}

/* Ссылки на документы (PDF) в правилах тенниса */
.rules-doc__meta--links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.rules-doc__doc-link {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    background: var(--color-primary-transparent);
    border: 1px solid rgb(166 130 74 / 35%);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.rules-doc__doc-link:hover {
    background: rgb(166 130 74 / 20%);
    border-color: var(--color-primary);
    color: var(--color-primary);
    text-decoration: underline;
}

.rules-doc__doc-link::after {
    content: " ↗";
    font-size: 0.85em;
    opacity: 0.8;
}

/* Round-robin matrix and standings */
.round-robin-matrix,
.round-robin-standings {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.round-robin-matrix th,
.round-robin-matrix td,
.round-robin-standings th,
.round-robin-standings td {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-border);
    text-align: center;
}

.round-robin-matrix th,
.round-robin-standings th {
    background: var(--color-primary-transparent);
    color: var(--color-primary);
    font-weight: 600;
}

.round-robin-matrix .matrix-player-cell,
.round-robin-standings td:first-child+td {
    text-align: left;
    white-space: nowrap;
}

.round-robin-matrix .matrix-cell--diagonal {
    background: rgb(128 128 128 / 20%);
    color: var(--color-text-secondary);
}

.round-robin-matrix .matrix-cell-win {
    font-weight: 600;
}

.round-robin-matrix .matrix-cell-games {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

.round-robin-matrix .matrix-col {
    min-width: 50px;
}

.round-robin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Round-robin tables: mobile responsive */
@media (width <= 768px) {
    .rules-tabs__nav {
        flex-wrap: nowrap;
        padding-bottom: var(--spacing-xs);
    }

    .rules-subtabs__nav {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        padding-bottom: var(--spacing-xs);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .rules-subtabs__btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .round-robin-matrix,
    .round-robin-standings {
        font-size: var(--font-size-xs);
    }

    .round-robin-matrix th,
    .round-robin-matrix td,
    .round-robin-standings th,
    .round-robin-standings td {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .round-robin-matrix .matrix-player-cell,
    .round-robin-standings td:first-child+td {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .round-robin-matrix .matrix-col {
        min-width: 36px;
    }

    .round-robin-matrix .matrix-cell-games {
        font-size: 0.65rem;
    }

    .round-robin-matrix {
        min-width: 320px;
    }

    .round-robin-standings {
        min-width: 280px;
    }
}

@media (width <= 480px) {
    .round-robin-matrix,
    .round-robin-standings {
        font-size: 0.7rem;
    }

    .round-robin-matrix th,
    .round-robin-matrix td,
    .round-robin-standings th,
    .round-robin-standings td {
        padding: var(--spacing-xs) 6px;
    }

    .round-robin-matrix .matrix-player-cell,
    .round-robin-standings td:first-child+td {
        max-width: 80px;
    }

    .round-robin-matrix .matrix-col {
        min-width: 32px;
    }
}

/* END rules.css */

/* BEGIN results.css */

/*
 * results.css
 *
 * Описание: Стили страницы результатов матчей.
 * Компоненты: .results-page, .results-grid, .subscription-badge-icon
 * Используется на: /results/
 *
 * Последнее обновление: 2026-03
 */

.results-page .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Шапка карточки: название / «Спарринг» и бейдж клуба или TennisFan справа от текста */
.results-page .match-header {
    align-items: flex-start;
}

.results-match-header__context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.results-page .match-header .match-tournament {
    min-width: 0;
    flex: 0 1 auto;
    overflow-wrap: anywhere;
}

.results-match-header__host {
    flex-shrink: 0;
}

.results-page .player-name {
    display: flex;
    align-items: center;
    gap: 5px;
}

.results-page .subscription-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.results-page .subscription-badge-icon__image {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: block;
}

.results-page .subscription-badge-icon__glyph--platinum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    color: #f8fbff;
    text-shadow: 0 0 8px rgb(184 196 214 / 65%);
}

@media (max-width: 768px) {
    .results-page .results-grid {
        grid-template-columns: 1fr;
    }
}

/* END results.css */

/* BEGIN applications.css */

/*
 * applications.css
 *
 * Описание: Стили откликов на спарринги: строки, бейджи статусов, кнопки действий и modal ответа.
 * Компоненты: .sparring-response-row, .sparring-response-badge, .sparring-btn--locked, .sparring-modal__*
 * Используется на: страницы заявок/откликов и модальные окна отклика
 *
 * Последнее обновление: 2026-03
 */

/* Строка отклика в «Мои заявки»: аватар | имя + статус | рейтинг | кнопки */
.sparring-response-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    background: var(--color-bg-elevated);
    border-radius: var(--radius-md);
}

.sparring-response-row__avatar {
    flex-shrink: 0;
    display: block;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.sparring-response-row__avatar .player-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    background: var(--color-bg);
    display: block;
}

.sparring-response-row__avatar div.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-bg);
}

.sparring-response-row__info {
    flex: 1 1 0;
    min-width: 0;
}

.sparring-response-row__rating {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

.sparring-response-rating__ntrp {
    font-weight: 600;
    color: var(--color-text);
}

.sparring-response-rating__fan {
    color: var(--color-text-muted);
}

.sparring-response-row__actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: nowrap;
}

.sparring-response-form {
    display: inline-flex;
    margin: 0;
    align-items: center;
}

/* Бейджи статуса отклика */
.sparring-response-badge {
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: 2px var(--spacing-xs);
    border-radius: var(--radius-sm);
}
.sparring-response-badge--pending {
    background: #fef08a;
    color: #713f12;
    border: 1px solid #eab308;
}
.sparring-response-badge--accepted {
    background: #bbf7d0;
    color: #14532d;
    border: 1px solid #22c55e;
}
.sparring-response-badge--rejected {
    background: #fecaca;
    color: #7f1d1d;
    border: 1px solid #ef4444;
}

/* Планшет и узкий экран: кнопки откликов на отдельную строку, флаги переносятся */
@media (max-width: 640px) {
    .sparring-response-row {
        gap: var(--spacing-md);
    }

    .sparring-response-row__actions {
        flex-basis: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding-top: var(--spacing-sm);
        margin-top: var(--spacing-xs);
        border-top: 1px solid var(--color-border-light);
    }

    .sparring-card__flags {
        flex-wrap: wrap;
    }
}

/* Мобильный: рейтинг под инфо, кнопки на всю ширину с крупными областями нажатия */
@media (max-width: 480px) {
    .sparring-response-row {
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .sparring-response-row__avatar .player-avatar,
    .sparring-response-row__avatar div.player-avatar {
        width: 48px;
        height: 48px;
    }

    .sparring-response-row__rating {
        flex-basis: 100%;
        align-items: flex-start;
        margin-top: 2px;
    }

    .sparring-response-row__actions {
        gap: var(--spacing-sm);
    }

}

/* Кнопка «Для отклика нужна подписка» — визуально неактивная, но ведёт на страницу тарифов */
.sparring-btn--locked {
    opacity: 0.85;
    color: var(--color-text-muted);
    border-color: var(--color-text-muted);
}
.sparring-btn--locked:hover {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
    opacity: 1;
}

.sparring-card--closed .sparring-card__desc {
    opacity: 0.85;
}

/* Sparring respond modal */
.sparring-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

/* Модалка покупки — вверху страницы */
.sparring-modal.shop-purchase-modal {
    align-items: flex-start !important;
    padding-top: var(--spacing-lg) !important;
    padding-bottom: var(--spacing-md);
    overflow-y: auto;
}

.sparring-modal.shop-purchase-modal .sparring-modal__box {
    align-self: flex-start;
    margin-top: 0;
}

.sparring-modal.hidden {
    display: none !important;
}

.sparring-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 60%);
    cursor: pointer;
}

.sparring-modal__box {
    position: relative;
    width: 100%;
    max-width: 360px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
}

.sparring-modal__title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.sparring-modal__sub {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
}

.sparring-modal__buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.sparring-modal__link {
    justify-content: center;
}

.sparring-modal__close {
    margin-top: var(--spacing-md);
    width: 100%;
}

/* END applications.css */

/* BEGIN calculator.css */

/*
 * calculator.css
 * 
 * Описание: Стили блока калькулятора силы (NTRP) и результатов.
 * Компоненты: .ntrp-card .section-title, .ntrp-toggle, .ntrp-quiz, .ntrp-actions, .ntrp-result, .ntrp-level
 * Используется на: страницы с калькулятором силы в пользовательском разделе
 * 
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Калькулятор силы
   ========================================================================== */
.ntrp-card .section-title {
    margin-bottom: var(--spacing-sm);
}

.ntrp-toggle {
    margin-bottom: var(--spacing-md);
}

.ntrp-note {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-lg);
}

.ntrp-quiz {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.ntrp-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm);
}

.ntrp-question {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.ntrp-options {
    display: grid;
    gap: var(--spacing-sm);
}

.ntrp-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast),
                color var(--transition-fast), transform var(--transition-fast);
}

.ntrp-option input {
    accent-color: var(--color-primary);
}

.ntrp-option:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.ntrp-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.ntrp-actions .btn {
    flex: 1;
    min-width: 0;
}

@media (width <= 480px) {
    .ntrp-actions {
        flex-direction: column;
    }

    .ntrp-actions .btn {
        flex: none;
        min-width: 100%;
        width: 100%;
    }

    .ntrp-question {
        font-size: var(--font-size-base);
    }
}

.ntrp-result {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.ntrp-level {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-primary);
}

@media (width <= 480px) {
    .ntrp-level {
        font-size: var(--font-size-xl);
    }
}

/* Заметное уведомление после прохождения теста в форме регистрации:
   напоминает, что результат носит информативный характер и поле выше
   можно отредактировать вручную. */
.ntrp-manual-notice {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border-left: 4px solid var(--color-primary);
    line-height: 1.5;
}

.ntrp-manual-notice__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    font-weight: 700;
    border-radius: 50%;
    background: rgb(166 130 74 / 0.35);
    color: var(--color-primary);
}

.ntrp-manual-notice__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: var(--font-size-sm);
}

.ntrp-manual-notice__body strong {
    color: var(--color-primary);
    font-weight: 700;
}

@media (width <= 480px) {
    .ntrp-manual-notice {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .ntrp-manual-notice__icon {
        width: 24px;
        height: 24px;
        font-size: var(--font-size-base);
    }
}

/* END calculator.css */

/* BEGIN legal.css */

/*
 * legal.css
 * 
 * Описание: Базовая типографика и контейнеры для юридических документов.
 * Компоненты: .legal-page, .container--legal, .legal-header, .legal-doc__body, .legal-list__link
 * Используется на: страницы правовых документов (оферта, политика и т.п.)
 * 
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Legal documents
   ========================================================================== */
.legal-page {
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-3xl);
}

.container--legal {
    max-width: 800px;
}

.legal-header {
    margin-bottom: var(--spacing-xl);
}

.page-title--legal {
    text-align: left;
}

.legal-doc__body {
    padding: var(--spacing-2xl) !important;
}

.legal-doc__body h1,
.legal-doc__body h2 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-xl);
    color: var(--color-primary);
}

.legal-doc__body h1:first-child,
.legal-doc__body h2:first-child {
    margin-top: 0;
}

.legal-doc__body p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.legal-doc__body ul {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-xl);
}

.legal-doc__body li {
    margin-bottom: var(--spacing-xs);
    list-style: disc;
}

.legal-doc__body a {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal-doc__body a:hover {
    color: var(--color-text-secondary);
}

.legal-doc__body hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--spacing-xl) 0;
}

.legal-doc__body strong {
    color: var(--color-text);
}

.legal-list__ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-list__ul li {
    margin-bottom: var(--spacing-sm);
    list-style: none;
}

.legal-list__link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.legal-list__link:hover {
    background: var(--color-primary-transparent);
    color: var(--color-primary);
}

/* END legal.css */

/* BEGIN sparring.css */

/*
 * sparring.css
 * 
 * Описание: Структура и элементы страницы спаррингов (табы, флаги, карточки, тулбар).
 * Компоненты: .sparring-tabs, .sparring-tab, .sparring-toolbar, .sparring-flag, .sparring-card__*
 * Используется на: страницы спаррингов, приглашений и связанные списки заявок
 * 
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Sparring
   ========================================================================== */

.sparring-tabs {
    display: flex;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs);
    background: var(--color-bg-elevated);
    border-radius: var(--border-radius-lg);
    width: fit-content;
}

.sparring-tab {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    background: transparent;
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sparring-tab:hover {
    color: var(--color-text);
    background: rgb(166 130 74 / 0.12);
}

.sparring-tab--active {
    color: var(--color-text);
    background: var(--color-primary-transparent);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.sparring-tab--active:hover {
    color: var(--color-text);
    background: var(--color-primary-transparent);
    border-color: var(--color-primary);
}

.sparring-toolbar {
    align-items: center;
    justify-content: space-between;
}

/* Одна панель: фильтры и действия в едином стиле с селектами */
.sparring-toolbar__panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.sparring-toolbar__panel .sparring-toolbar__filters.filter-bar {
    flex: 1;
    min-width: min(100%, 220px);
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    gap: var(--spacing-md);
}

.sparring-filters {
    flex: 1;
    margin-bottom: 0;
    min-width: 200px;
}

.sparring-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
    padding-left: var(--spacing-md);
    margin-left: var(--spacing-xs);
    border-left: 1px solid var(--color-border);
}

.sparring-toolbar__actions .sparring-toolbar__btn {
    text-decoration: none;
    min-height: 40px;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

/* Главное действие: чуть заметнее остальных outline, без «кислотной» заливки */
.sparring-toolbar__btn--cta {
    background: rgb(166 130 74 / 0.2);
    border-color: var(--color-primary);
    color: var(--color-text);
}

.sparring-toolbar__btn--cta:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg);
}

.sparring-card > .card-body.sparring-card__inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
}

.sparring-card__flags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-xs);
    margin: 0;
}

.sparring-flag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.45rem;
    font-size: var(--font-size-xs);
    font-weight: 600;
    line-height: 1.2;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    border: 1px solid transparent;
}

.sparring-flag--recruiting {
    background: rgb(34 197 94 / 15%);
    color: #22c55e;
    border: 1px solid rgb(34 197 94 / 35%);
}

.sparring-flag--responses {
    background: var(--color-primary-transparent);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.sparring-flag--closed {
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border-light);
}

.sparring-flag--friendly {
    background: rgb(234 179 8 / 15%);
    color: #ca8a04;
    border: 1px solid rgb(234 179 8 / 35%);
}

.sparring-flag--type {
    background: rgb(59 130 246 / 15%);
    color: #2563eb;
    border: 1px solid rgb(59 130 246 / 35%);
}

.sparring-flag--gender {
    background: rgb(168 85 247 / 12%);
    color: #7c3aed;
    border: 1px solid rgb(168 85 247 / 30%);
}

/* Сетка: аватар | текст | действия — заполняет ширину карточки */
.sparring-card__layout {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: var(--spacing-sm) var(--spacing-md);
    align-items: start;
    min-width: 0;
}

/* «Мои заявки»: без колонки аватара — текст и действия */
.sparring-card__layout--my-request {
    grid-template-columns: minmax(0, 1fr) auto;
}

.sparring-card__col--main {
    min-width: 0;
}

.sparring-card__col--cta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: stretch;
    min-width: min(8.5rem, 100%);
}

.sparring-card__headline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.sparring-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.sparring-card__chip--muted {
    background: var(--color-bg-elevated);
    color: var(--color-text-secondary);
}

.sparring-card__avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.sparring-card__desc {
    margin: 0 0 var(--spacing-sm);
    font-size: var(--font-size-sm);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sparring-card__details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.sparring-card__detail-line {
    display: block;
    line-height: 1.35;
}

.sparring-desired-category {
    display: inline-flex;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
    background: var(--color-bg-elevated);
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
}

.sparring-card__actions {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    align-items: flex-end;
    justify-content: center;
    width: 100%;
}

.sparring-card__actions .sparring-card__btn {
    white-space: nowrap;
    text-align: center;
    justify-content: center;
}

/* Блок откликов под основной сеткой карточки «Мои заявки» */
.sparring-card__responses {
    margin-top: var(--spacing-xs);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-border-light);
}

.sparring-card__responses-title {
    margin: 0 0 var(--spacing-xs);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-text-secondary);
}

.sparring-card__responses .sparring-response-row {
    margin-bottom: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
}

.sparring-card__responses .sparring-response-row:last-child {
    margin-bottom: 0;
}

/* Тулбар «Мои заявки»: только ссылки без фильтров */
.sparring-toolbar__panel--my-requests {
    justify-content: flex-end;
}

.sparring-toolbar__panel--my-requests .sparring-toolbar__actions {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
}

@media (width >= 480px) {
    .sparring-card__actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        width: auto;
    }
}

@media (width <= 640px) {
    .sparring-card__layout {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .sparring-card__layout--my-request {
        grid-template-columns: minmax(0, 1fr);
    }

    .sparring-card__col--cta {
        grid-column: 1 / -1;
        justify-content: stretch;
        min-width: 0;
    }

    .sparring-card__actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        align-items: stretch;
    }

    .sparring-card__actions .sparring-card__btn {
        flex: 1 1 auto;
        min-width: 8rem;
    }
}

@media (width <= 768px) {
    .sparring-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .sparring-toolbar__panel {
        flex-direction: column;
        align-items: stretch;
    }

    .sparring-toolbar__actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding-left: 0;
        margin-left: 0;
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding-top: var(--spacing-md);
    }

    .sparring-toolbar__actions .sparring-toolbar__btn {
        width: 100%;
        justify-content: center;
    }

    /* Только кнопки без фильтров — без лишней линии сверху */
    .sparring-toolbar__panel--my-requests .sparring-toolbar__actions {
        border-top: none;
        padding-top: 0;
    }

    /* Mobile layout for sparring request form: stack 2-col rows */
    .sparring-create__form .sparring-create__row--top,
    .sparring-create__form .sparring-create__row--age {
        flex-direction: column;
        align-items: stretch;
    }

    .sparring-create__form .sparring-create__row--top > *,
    .sparring-create__form .sparring-create__row--age > * {
        width: 100%;
        max-width: none;
        min-width: 0;
    }
}

/* ==========================================================================
   Страница «Пригласить на спарринг» — ровная сетка, единая высота контролов
   ========================================================================== */

.sparring-invite {
    max-width: 720px;
}

.sparring-invite__section-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.sparring-invite__nav {
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-sm);
}

.sparring-invite__nav a {
    text-decoration: none;
}

.sparring-invite__nav a:hover {
    text-decoration: underline;
}

.sparring-invite__hint {
    margin-top: var(--spacing-md);
    margin-bottom: 0;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    line-height: 1.45;
}

/* Поиск: подпись сверху, поле и кнопка одной высоты в одном ряду */
.sparring-invite__search-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.sparring-invite__search-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: stretch;
}

.sparring-invite__search-row .form-control {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    height: 44px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.25;
}

.sparring-invite__search-row .btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.5rem;
    min-height: 44px;
    height: 44px;
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
}

/* Карточка найденного игрока */
.sparring-invite__result .card-body {
    padding: var(--spacing-xl);
}

.sparring-invite__profile {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.sparring-invite__avatar {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--color-border);
}

.sparring-invite__avatar--placeholder {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
}

.sparring-invite__profile-text {
    flex: 1;
    min-width: 0;
}

.sparring-invite__profile-name {
    font-weight: 600;
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
}

.sparring-invite__profile-meta {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.sparring-invite__profile-stats {
    margin-top: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--color-text);
}

/* Действия: чекбокс | дата | кнопка — выравнивание по нижнему краю полей ввода */
.sparring-invite__actions-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 220px) auto;
    gap: var(--spacing-md);
    align-items: end;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
}

.sparring-invite__cell--check .form-check {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: 0;
    min-height: 44px;
}

.sparring-invite__cell--check .form-check-input {
    margin-top: 0;
    flex-shrink: 0;
}

.sparring-invite__cell--date .form-group {
    margin-bottom: 0;
}

.sparring-invite__cell--date .form-label {
    margin-bottom: var(--spacing-xs);
}

.sparring-invite__cell--date .form-control {
    min-height: 44px;
    height: 44px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.25;
}

.sparring-invite__cell--submit {
    display: flex;
    align-items: flex-end;
}

.sparring-invite__cell--submit .btn {
    min-height: 44px;
    height: 44px;
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
    min-width: 7.5rem;
}

@media (width <= 640px) {
    .sparring-invite__actions-grid {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .sparring-invite__cell--submit {
        justify-content: stretch;
    }

    .sparring-invite__cell--submit .btn {
        width: 100%;
    }

    .sparring-invite__search-row .btn {
        width: 100%;
    }
}

/* ==========================================================================
   «Мои приглашения» — компактные строки (сетка), бейджи статуса
   ========================================================================== */

.sparring-invitations {
    max-width: 960px;
}

.sparring-invitations__nav {
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-sm);
}

.sparring-invitations__nav a {
    text-decoration: none;
}

.sparring-invitations__nav a:hover {
    text-decoration: underline;
}

.sparring-invitations__card-body {
    padding: var(--spacing-lg) var(--spacing-xl);
}

.sparring-invitations__section-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

/* Общая таблица: заголовок + строки в одной рамке */
.sparring-invitations__table {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-secondary);
}

.sparring-invitations__thead {
    display: none;
}

@media (width >= 720px) {
    .sparring-invitations__thead {
        display: grid;
        grid-template-columns: 5.25rem minmax(0, 1.35fr) minmax(0, 1fr) auto minmax(0, 11rem);
        gap: var(--spacing-sm) var(--spacing-md);
        align-items: center;
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-size-xs);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--color-text-secondary);
        background: var(--color-bg-elevated);
        border-bottom: 1px solid var(--color-border);
    }

    .sparring-invitations__thead-actions {
        justify-self: end;
        min-width: 0;
    }
}

.sparring-invitations__list {
    display: flex;
    flex-direction: column;
}

.sparring-invitations__row {
    display: grid;
    grid-template-columns: 5.25rem minmax(0, 1.35fr) minmax(0, 1fr) auto minmax(0, 11rem);
    gap: var(--spacing-xs) var(--spacing-md);
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
}

.sparring-invitations__row:last-child {
    border-bottom: none;
}

.sparring-invitations__date {
    margin: 0;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sparring-invitations__person {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    min-width: 0;
}

.sparring-invitations__person-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 var(--spacing-xs);
    min-width: 0;
}

.sparring-invitations__role {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.sparring-invitations__avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--color-border);
    flex-shrink: 0;
}

.sparring-invitations__avatar--placeholder {
    background: var(--color-bg-elevated);
}

.sparring-invitations__person-name {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--color-text);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.sparring-invitations__person-name:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.sparring-invitations__meta {
    margin: 0;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sparring-invitations__status {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    padding: 0.2rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.sparring-invitations__status--pending {
    background: rgb(234 179 8 / 15%);
    color: #ca8a04;
    border: 1px solid rgb(234 179 8 / 35%);
}

.sparring-invitations__status--accepted {
    background: rgb(34 197 94 / 15%);
    color: #16a34a;
    border: 1px solid rgb(34 197 94 / 35%);
}

.sparring-invitations__status--rejected {
    background: rgb(239 68 68 / 12%);
    color: #dc2626;
    border: 1px solid rgb(239 68 68 / 30%);
}

.sparring-invitations__status--cancelled {
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border-light);
}

.sparring-invitations__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
}

.sparring-invitations__actions .btn-sm {
    min-height: 30px;
}

.sparring-invitations__form {
    margin: 0;
    display: inline-flex;
}

.sparring-invitations__link-sub {
    font-size: var(--font-size-xs);
    font-weight: 600;
    white-space: nowrap;
}

.sparring-invitations__empty {
    margin: 0;
}

.sparring-invitations__footer-note {
    margin-top: var(--spacing-lg);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

/* Узкий экран: блоки столбцом, без «простыни» */
@media (width < 720px) {
    .sparring-invitations__row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
    }

    .sparring-invitations__date {
        font-size: var(--font-size-sm);
    }

    .sparring-invitations__meta {
        white-space: normal;
    }

    .sparring-invitations__actions {
        justify-content: flex-start;
    }

    .sparring-invitations__actions .btn-sm {
        flex: 1 1 auto;
        min-width: 6rem;
    }
}

/* END sparring.css */

/* BEGIN bracket.css */

/*
 * bracket.css
 * 
 * Описание: Стили управления плей-офф сеткой турнира (брекет, матчи, сеты, ввод результатов).
 * Компоненты: .bracket-*, .tvd-group-*, .subscription-autopay*
 * Используется на: страницы управления сеткой турнира (playoff/manage bracket)
 * 
 * Последнее обновление: 2026-03
 */

/* ==========================================================================
   Manage Bracket — Tournament Playoff Bracket View
   ========================================================================== */

.tvd-group-col {
    margin-bottom: var(--spacing-xl, 1.5rem);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border-bottom: 3px solid var(--color-primary);
}

.tvd-group-col:last-child {
    border-bottom: none;
}

.tvd-group-col:nth-child(odd) {
    background: rgba(0, 26, 18, 0.6);
}

.tvd-group-col:nth-child(even) {
    background: rgba(1, 50, 34, 0.5);
}

.tvd-group-matches-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

@media (width <= 768px) {
    .tvd-group-matches-row {
        grid-template-columns: 1fr;
    }
}

.bracket-section-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bracket-container {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding-bottom: var(--spacing-md);
    align-items: stretch;
}

.bracket-round-col {
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.bracket-round-col + .bracket-round-col {
    margin-left: 2rem;
}

.bracket-round-col + .bracket-round-col::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 2.5rem;
    bottom: 1rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary) 0%, transparent 100%);
    opacity: 0.3;
}

.bracket-round-header {
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
    background: linear-gradient(180deg, rgba(166, 130, 74, 0.1) 0%, transparent 100%);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.bracket-round-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    justify-content: space-around;
}

.bracket-match {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s;
}

.bracket-match:hover {
    border-color: var(--color-primary);
}

.bracket-match--done {
    opacity: 0.85;
}

.bracket-match--done:hover {
    opacity: 1;
}

.bracket-match-players {
    display: flex;
    flex-direction: column;
}

.bracket-match-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    min-height: 2.25rem;
    border-bottom: 1px solid rgba(166, 130, 74, 0.15);
}

.bracket-match-player:last-child {
    border-bottom: none;
}

.bracket-match-player--winner {
    background: rgba(166, 130, 74, 0.15);
}

.bracket-match-player--winner .bracket-player-name {
    font-weight: 700;
    color: var(--color-primary);
}

.bracket-player-name {
    font-size: var(--font-size-sm);
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.bracket-player-scores {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.bracket-set {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    font-size: var(--font-size-xs);
    font-weight: 600;
    background: rgba(166, 130, 74, 0.12);
    color: var(--color-text);
    border-radius: 3px;
}

.bracket-match-player--winner .bracket-set {
    background: rgba(166, 130, 74, 0.3);
    color: var(--color-primary);
}

.bracket-match-badge {
    text-align: center;
    padding: 0.15rem;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    background: rgba(166, 130, 74, 0.08);
}

.bracket-match-form {
    display: flex;
    flex-direction: column;
}

.bracket-match-form .bracket-match-players {
    border-bottom: 1px solid rgba(166, 130, 74, 0.2);
}

.bracket-match-form .bracket-match-player--input {
    background: rgba(1, 43, 28, 0.5);
}

.bracket-match-sets {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(166, 130, 74, 0.15);
    flex-wrap: wrap;
}

.bracket-set-column-headers {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.15rem;
    margin-bottom: 0.2rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px dashed rgba(166, 130, 74, 0.25);
}

.bracket-set-column-headers .bracket-set-col-player {
    min-width: 2.5rem;
    width: 3.5rem;
    max-width: 4.5rem;
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.2;
    color: var(--color-primary);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bracket-set-column-headers .bracket-set-sep {
    flex-shrink: 0;
}

.bracket-set-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.bracket-set-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
}

.bracket-set-inputs {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.bracket-set-input {
    width: 2.5rem;
    height: 2rem;
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: 600;
    background: var(--color-bg-elevated);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0;
    -moz-appearance: textfield;
}

.bracket-set-input::-webkit-inner-spin-button,
.bracket-set-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bracket-set-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(166, 130, 74, 0.25);
}

.bracket-set-sep {
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.bracket-match-actions {
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bracket-winner-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bracket-winner-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.bracket-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--font-size-xs);
    color: var(--color-text);
    cursor: pointer;
    white-space: nowrap;
}

.bracket-radio input[type="radio"] {
    accent-color: var(--color-primary);
}

.bracket-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.bracket-walkover {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.bracket-walkover input[type="checkbox"] {
    accent-color: var(--color-primary);
}

.bracket-submit-btn {
    font-size: var(--font-size-xs);
    padding: 0.3rem 0.75rem;
    white-space: nowrap;
}

/* --------------------------------------------------------------
 * Subscription autopay block (profile)
 * -------------------------------------------------------------- */

.subscription-autopay {
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: radial-gradient(circle at top left, rgba(166, 130, 74, 0.25), transparent 55%),
                rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(166, 130, 74, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.subscription-autopay__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.subscription-autopay__eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
}

.subscription-autopay__status {
    font-size: 0.75rem;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.16);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.subscription-autopay__status--off {
    background: rgba(231, 76, 60, 0.16);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.7);
}

.subscription-autopay__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.6rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(40, 40, 40, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.subscription-autopay__card-main {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.subscription-autopay__card-brand {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.subscription-autopay__card-pan {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.9);
}

.subscription-autopay__card-expiry {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.subscription-autopay__footer {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.subscription-autopay__hint {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}

.subscription-autopay__form {
    margin: 0;
}

.subscription-autopay__disable-btn {
    width: 100%;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border-width: 0;
    background: linear-gradient(135deg, #ff4b4b, #ff6a3d);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(255, 75, 75, 0.45);
    text-transform: none;
}

.subscription-autopay__disable-btn:hover {
    background: linear-gradient(135deg, #ff3b3b, #ff5a2d);
    box-shadow: 0 14px 32px rgba(255, 75, 75, 0.6);
}

.subscription-autopay__disable-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

.bracket-match-pending {
    text-align: center;
    padding: 0.75rem;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    font-style: italic;
}

.bracket-match-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.bracket-match-link:hover {
    color: inherit;
}

@media (width <= 768px) {
    .bracket-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .bracket-round-col {
        min-width: 100%;
        max-width: 100%;
    }

    .bracket-round-col + .bracket-round-col {
        margin-left: 0;
    }

    .bracket-round-col + .bracket-round-col::before {
        display: none;
    }

    .bracket-round-header {
        text-align: left;
    }
}

/* END bracket.css */

/* BEGIN club-public-detail.css */

/*
 * club-public-detail.css
 *
 * Описание: Стили публичной страницы клуба.
 * Компоненты: hero-блок, метрики, карточки турниров, правый сайдбар.
 * Используется на: templates/clubs/club_public_detail.html
 */

.container--club-public {
    max-width: 1120px;
}

.club-public__hero {
    position: relative;
    padding: 44px 0 34px;
    background:
        radial-gradient(circle at 15% 20%, rgba(22, 163, 74, 0.24), transparent 42%),
        radial-gradient(circle at 85% 10%, rgba(201, 168, 76, 0.2), transparent 34%),
        linear-gradient(135deg, #042617 0%, #06311f 54%, #022219 100%);
    border-bottom: 1px solid rgba(34, 197, 94, 0.22);
    overflow: hidden;
}

.club-public__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 18, 12, 0.2), rgba(2, 18, 12, 0.55));
    pointer-events: none;
}

.club-public__hero--image::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--club-hero-bg-image);
    background-size: cover;
    background-position: center;
    opacity: 0.22;
}

.club-public__hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(320px, 1fr);
    gap: 24px;
    align-items: stretch;
}

.club-public__panel {
    background: linear-gradient(155deg, rgba(2, 38, 30, 0.9), rgba(5, 42, 27, 0.82));
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 20px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

.club-public__identity {
    padding: 22px 24px;
}

.club-public__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.club-public__logo-wrap,
.club-public__logo-fallback {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    flex-shrink: 0;
}

.club-public__logo-wrap {
    overflow: hidden;
    background: rgba(248, 250, 252, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.club-public__logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.club-public__logo-fallback {
    background: linear-gradient(145deg, #064e3b, #022c22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #facc15;
    font-size: 1.8rem;
    font-weight: 700;
}

.club-public__title {
    margin: 0;
    font-size: clamp(1.55rem, 2.5vw, 2.25rem);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #facc15;
}

.club-public__location {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
    font-size: 0.92rem;
    color: rgba(226, 232, 240, 0.86);
}

.club-public__location-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
}

.club-public__description {
    margin: 0 0 18px;
    max-width: 56ch;
    font-size: 0.98rem;
    line-height: 1.62;
    color: rgba(226, 232, 240, 0.88);
}

.club-public__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.club-public__actions .btn {
    border-radius: 999px;
    min-height: 42px;
    padding-inline: 20px;
    justify-content: center;
}

.club-public__actions .btn-primary {
    min-width: 220px;
    border: none;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

.club-public__actions .btn-primary.club-public__btn--manage {
    background: #c9a84c;
    color: #102117;
}

.club-public__actions .btn-primary.club-public__btn--join {
    background: #16a34a;
}

.club-public__stats {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.club-public__stats-title {
    margin: 0;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(209, 213, 219, 0.88);
}

.club-public__stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.club-public__metric {
    padding-left: 10px;
    border-left: 1px solid rgba(34, 197, 94, 0.4);
}

.club-public__metric:first-child {
    border-left: none;
    padding-left: 0;
}

.club-public__metric-value {
    font-size: 1.22rem;
    font-weight: 700;
    color: #f8fafc;
}

.club-public__metric-value--accent {
    color: #facc15;
}

.club-public__metric-label {
    margin-top: 2px;
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.94);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.club-public__contacts {
    border-top: 1px dashed rgba(34, 197, 94, 0.45);
    padding-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.club-public__contact {
    display: flex;
    gap: 8px;
}

.club-public__contact-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.club-public__contact-icon--mail {
    background: rgba(201, 168, 76, 0.22);
    color: #facc15;
}

.club-public__contact-icon--phone {
    background: rgba(21, 128, 61, 0.3);
    color: #bbf7d0;
}

.club-public__contact-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(209, 213, 219, 0.9);
}

.club-public__contact a {
    color: #f8fafc;
    text-decoration: none;
    font-size: 0.89rem;
}

.club-public__content {
    padding: 30px 0 44px;
}

.club-public__layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 22px;
    align-items: stretch;
}

.club-public__layout > div:first-child,
.club-public__layout > aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.club-public__matches-widget {
    flex: 1 1 auto;
}

.club-public__matches-widget .card-body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.club-public__card {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(160deg, rgba(4, 60, 35, 0.58), rgba(3, 44, 30, 0.45));
    box-shadow: 0 12px 30px rgba(2, 20, 14, 0.32);
}

.club-public__card .card-body {
    padding: 18px 18px 20px;
}

.club-public__section-title {
    margin: 0;
    font-size: 0.98rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.9);
}

.club-public__about-text {
    margin: 10px 0 0;
    font-size: 0.96rem;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.92);
}

.club-public__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.club-public__section-count {
    font-size: 0.82rem;
    color: rgba(203, 213, 225, 0.75);
}

.club-public__tournament-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.club-public__tournament-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 44px 14px 14px;
    border-radius: 14px;
    border: 1px solid rgba(201, 168, 76, 0.25);
    background: linear-gradient(145deg, rgba(250, 250, 246, 0.97), rgba(242, 236, 224, 0.96));
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.club-public__tournament-status {
    top: 12px;
    right: 12px;
}

.club-public__tournament-title {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.32;
}

.club-public__tournament-title a {
    color: #111827;
    text-decoration: none;
}

.club-public__tournament-date {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.club-public__tournament-meta {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
}

.club-public__tournament-meta dt {
    margin: 0;
    font-size: 0.69rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.club-public__tournament-meta dd {
    margin: 0;
    font-size: 0.82rem;
    color: #374151;
}

.club-public__tournament-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.club-public__tournament-fee {
    font-size: 0.8rem;
    color: #6b7280;
}

.club-public__empty {
    padding: 16px;
    border-radius: 12px;
    border: 1px dashed rgba(201, 168, 76, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(226, 232, 240, 0.88);
}

.club-public__empty p {
    margin: 0;
}

.club-public__empty p + p {
    margin-top: 5px;
    color: rgba(203, 213, 225, 0.75);
    font-size: 0.87rem;
}

.club-public__hint-title {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #e5e7eb;
}

.club-public__hint-text {
    margin: 0;
    color: rgba(203, 213, 225, 0.84);
    line-height: 1.55;
    font-size: 0.87rem;
}

.club-public__hint-text + .club-public__hint-text {
    margin-top: 6px;
}

.club-public__matches-list {
    display: grid;
    gap: 10px;
}

.club-public__match-item {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.club-public__match-item:hover {
    transform: translateY(-1px);
    border-color: rgba(201, 168, 76, 0.38);
    background: rgba(255, 255, 255, 0.045);
}

.club-public__match-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.club-public__match-tournament {
    color: #f8fafc;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
}

.club-public__match-date {
    flex-shrink: 0;
    color: rgba(203, 213, 225, 0.72);
    font-size: 0.76rem;
}

.club-public__match-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.club-public__match-player {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.club-public__match-player--right {
    justify-content: flex-end;
}

.club-public__match-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    flex-shrink: 0;
    object-fit: cover;
}

.club-public__match-name {
    color: rgba(248, 250, 252, 0.92);
    font-size: 0.84rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.club-public__match-score {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.14);
    color: #facc15;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .club-public__hero-grid {
        grid-template-columns: 1fr;
    }

    .club-public__layout {
        grid-template-columns: 1fr;
    }

    .club-public__layout > div:first-child,
    .club-public__layout > aside {
        gap: 0;
    }

    .club-public__tournament-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .club-public__hero {
        padding: 28px 0 22px;
    }

    .club-public__identity,
    .club-public__stats {
        padding: 16px;
    }

    .club-public__brand {
        align-items: flex-start;
    }

    .club-public__logo-wrap,
    .club-public__logo-fallback {
        width: 54px;
        height: 54px;
        border-radius: 14px;
    }

    .club-public__contacts {
        grid-template-columns: 1fr;
    }

    .club-public__actions .btn,
    .club-public__actions .btn-primary {
        width: 100%;
    }

    .club-public__content {
        padding-top: 20px;
    }

    .club-public__tournament-grid {
        grid-template-columns: 1fr;
    }

    .club-public__matches-list {
        gap: 8px;
    }

    .club-public__match-item {
        gap: 10px;
        padding: 12px;
        border-radius: 12px;
    }

    .club-public__match-top {
        display: grid;
        gap: 4px;
        justify-items: start;
    }

    .club-public__match-tournament {
        font-size: 0.88rem;
        line-height: 1.25;
    }

    .club-public__match-date {
        font-size: 0.74rem;
    }

    .club-public__match-body {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 12px;
        align-items: center;
    }

    .club-public__match-score {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
        justify-self: end;
        min-width: 68px;
        padding: 6px 10px;
        text-align: center;
    }

    .club-public__match-player,
    .club-public__match-player--right {
        justify-content: flex-start;
    }

    .club-public__match-player {
        gap: 10px;
    }

    .club-public__match-player--right .club-public__match-avatar {
        order: 0;
    }

    .club-public__match-player--right .club-public__match-name {
        order: 1;
    }

    .club-public__match-avatar {
        width: 30px;
        height: 30px;
    }

    .club-public__match-name {
        font-size: 0.92rem;
        line-height: 1.25;
    }
}

/* END club-public-detail.css */

/* BEGIN club-discover.css */

/*
 * club-discover.css
 *
 * Описание: Каталог клубов платформы с фильтрами и карточками вступления.
 * Используется на: clubs/discover.html
 */

.club-discover-header {
    padding-bottom: var(--spacing-lg);
}

.club-discover-header__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.26);
    background: rgba(201, 168, 76, 0.08);
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.club-discover-section {
    padding-top: var(--spacing-lg);
}

.club-discover-filters {
    margin-bottom: var(--spacing-lg);
}

.club-discover-filters__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--spacing-md);
    align-items: end;
}

.club-discover-filters__grid .club-discover-filters__group {
    margin-bottom: 0;
}

.club-discover-filters__grid .form-control,
.club-discover-filters__grid .btn {
    height: 44px;
    min-height: 44px;
    line-height: 1.2;
}

.club-discover-filters__grid .btn {
    width: 100%;
}

.club-discover-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.club-discover-toolbar__count {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.club-discover-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.club-discover-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
}

.club-discover-card__media {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.club-discover-card__logo {
    width: 112px;
    height: 112px;
    border-radius: 24px;
    object-fit: cover;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.club-discover-card__logo--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
}

.club-discover-card__body {
    min-width: 0;
}

.club-discover-card__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.club-discover-card__title {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.15;
}

.club-discover-card__title a {
    color: var(--color-text);
    text-decoration: none;
}

.club-discover-card__title a:hover {
    color: var(--color-primary);
}

.club-discover-card__city {
    margin-top: var(--spacing-xs);
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.club-discover-card__members {
    flex-shrink: 0;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.18);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.club-discover-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    margin-top: var(--spacing-sm);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.club-discover-card__description {
    margin: var(--spacing-md) 0 0;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.club-discover-card__description--muted {
    color: var(--color-text-muted);
}

.club-discover-card__hint {
    margin: var(--spacing-sm) 0 0;
    color: #f3d27d;
    font-size: var(--font-size-sm);
}

.club-discover-card__actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.club-discover-empty {
    text-align: center;
}

.club-discover-empty__title {
    margin: 0 0 var(--spacing-sm);
    font-size: var(--font-size-xl);
}

.club-discover-empty__text {
    margin: 0;
    color: var(--color-text-secondary);
}

@media (max-width: 900px) {
    .club-discover-filters__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .club-discover-card {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: var(--spacing-md);
    }

    .club-discover-card__logo {
        width: 88px;
        height: 88px;
        border-radius: 20px;
    }
}

@media (max-width: 640px) {
    .club-discover-filters {
        margin-bottom: var(--spacing-md);
    }

    .club-discover-filters .card-body {
        padding: 0.75rem;
    }

    .club-discover-filters__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem 0.65rem;
        align-items: start;
    }

    .club-discover-filters__grid .form-label {
        margin-bottom: 0.2rem;
        font-size: 0.74rem;
        line-height: 1.15;
    }

    .club-discover-filters__group--search .form-label,
    .club-discover-filters__group--reset .form-label {
        display: none;
    }

    .club-discover-filters__grid .form-control,
    .club-discover-filters__grid .btn {
        height: 2.35rem;
        min-height: 2.35rem;
        padding: 0 0.65rem;
        font-size: 0.95rem;
    }

    .club-discover-filters__group--search .btn,
    .club-discover-filters__group--reset .btn {
        font-size: var(--font-size-sm);
    }

    .club-discover-toolbar {
        margin-bottom: var(--spacing-md);
    }

    .club-discover-card {
        grid-template-columns: 1fr;
        padding: var(--spacing-md);
    }

    .club-discover-card__media {
        justify-content: flex-start;
    }

    .club-discover-card__topline {
        flex-direction: column;
        align-items: flex-start;
    }

    .club-discover-card__members {
        padding: 0.45rem 0.7rem;
    }

    .club-discover-card__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .club-discover-card__actions > * {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .club-discover-filters .card-body {
        padding: 0.65rem;
    }

    .club-discover-filters__grid {
        gap: 0.5rem;
    }

    .club-discover-filters__group--q,
    .club-discover-filters__group--city {
        grid-column: 1 / -1;
    }

    .club-discover-filters__grid .form-control,
    .club-discover-filters__grid .btn {
        height: 2.2rem;
        min-height: 2.2rem;
        font-size: 0.9rem;
    }
}

/* END club-discover.css */

/* BEGIN my-clubs.css */

/*
 * my-clubs.css
 *
 * Описание: Страница выбора активного клуба пользователя.
 * Используется на: clubs/my_clubs.html
 */

.club-my-clubs-header {
    padding-bottom: var(--spacing-lg);
}

.club-my-clubs-header__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.26);
    background: rgba(201, 168, 76, 0.08);
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.club-my-clubs-section {
    padding-top: var(--spacing-lg);
}

.club-my-clubs-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.club-my-clubs-toolbar__count {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.club-my-clubs-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.club-my-clubs-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.club-my-clubs-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
}

.club-my-clubs-card--current {
    border-color: rgba(201, 168, 76, 0.36);
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.12);
}

.club-my-clubs-card__media {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.club-my-clubs-card__logo {
    width: 104px;
    height: 104px;
    border-radius: 24px;
    object-fit: cover;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.club-my-clubs-card__logo--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
}

.club-my-clubs-card__body {
    min-width: 0;
}

.club-my-clubs-card__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.club-my-clubs-card__title {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.15;
}

.club-my-clubs-card__city {
    margin-top: var(--spacing-xs);
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.club-my-clubs-card__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--spacing-xs);
}

.club-my-clubs-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    white-space: nowrap;
}

.club-my-clubs-card__badge--current {
    border-color: rgba(201, 168, 76, 0.3);
    background: rgba(201, 168, 76, 0.12);
    color: var(--color-primary);
}

.club-my-clubs-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    margin-top: var(--spacing-sm);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.club-my-clubs-card__description {
    margin: var(--spacing-md) 0 0;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.club-my-clubs-card__description--muted {
    color: var(--color-text-muted);
}

.club-my-clubs-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.club-my-clubs-empty {
    text-align: center;
}

.club-my-clubs-empty__title {
    margin: 0 0 var(--spacing-sm);
    font-size: var(--font-size-xl);
}

.club-my-clubs-empty__text {
    margin: 0;
    color: var(--color-text-secondary);
}

.club-my-clubs-empty__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

@media (max-width: 900px) {
    .club-my-clubs-card {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: var(--spacing-md);
    }

    .club-my-clubs-card__logo {
        width: 88px;
        height: 88px;
        border-radius: 20px;
    }
}

@media (max-width: 640px) {
    .club-my-clubs-toolbar,
    .club-my-clubs-card__topline {
        flex-direction: column;
        align-items: stretch;
    }

    .club-my-clubs-toolbar__actions,
    .club-my-clubs-card__badges {
        justify-content: flex-start;
    }

    .club-my-clubs-card {
        grid-template-columns: 1fr;
    }

    .club-my-clubs-card__media {
        justify-content: flex-start;
    }

    .club-my-clubs-card__actions .btn,
    .club-my-clubs-empty__actions .btn {
        width: 100%;
    }
}

/* END my-clubs.css */

/* BEGIN club-dashboard.css */

/*
 * club-dashboard.css
 *
 * Описание: Стили страницы панели управления клубом.
 * Используется на: templates/clubs/dashboard.html
 */

/* --------------------------------------------------------------------------
   Локальная цветовая схема и шрифты панели клуба
   -------------------------------------------------------------------------- */
:root {
    --club-color-deep: #1a3a2a;
    --club-color-gold: #c9a84c;
    --club-color-muted: #e5e7eb;
    --club-font-heading: 'Unbounded', system-ui, sans-serif;
    --club-font-body: 'Manrope', system-ui, -apple-system, blinkmacsystemfont, 'Segoe UI', sans-serif;
}

/* --------------------------------------------------------------------------
   Общая обертка страницы и шапка
   -------------------------------------------------------------------------- */
.club-dashboard-page-header,
.club-dashboard {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
}

.club-dashboard-page-header__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.club-dashboard-page-header__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.club-dashboard-page-header__logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 999px;
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.35), var(--shadow-glow);
}

.club-dashboard-page-header__logo-fallback {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, rgba(201, 168, 76, 0.4), transparent 55%),
        radial-gradient(circle at 70% 80%, rgba(22, 163, 74, 0.35), transparent 55%),
        #0b2a1d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fefce8;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.5), var(--shadow-glow);
}

.club-dashboard-page-header__title {
    margin-top: 0;
    margin-bottom: var(--spacing-xs);
    font-family: var(--club-font-heading);
}

.club-dashboard-page-header__subtitle,
.club-dashboard-page-header__meta {
    margin-bottom: 0;
    font-family: var(--club-font-body);
}

.club-dashboard-page-header__meta {
    margin-top: 4px;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.9);
}

@media (max-width: 768px) {
    .club-dashboard-page-header {
        padding: 10px 0 8px;
        background: radial-gradient(circle at 10% 0, rgba(22, 163, 74, 0.22), transparent 60%),
            radial-gradient(circle at 100% 0, rgba(201, 168, 76, 0.15), transparent 55%),
            var(--club-color-deep);
        border-bottom: 1px solid rgba(201, 168, 76, 0.35);
    }

    .club-dashboard-page-header__row {
        min-height: 56px;
        gap: var(--spacing-sm);
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .club-dashboard-page-header__title {
        font-size: 1.1rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
    }
}

/* --------------------------------------------------------------------------
   Навигация по разделам дашборда (верхняя для desktop)
   -------------------------------------------------------------------------- */
.club-dashboard-nav {
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.club-dashboard-toolbar-shell {
    padding: 14px 0 0;
}

.club-dashboard-toolbar-shell .container {
    max-width: 1400px;
}

.club-dashboard-toolbar-shell .club-dashboard-nav {
    padding: 12px 14px;
    border: 1px solid rgba(201, 168, 76, 0.28);
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.1), transparent 32%),
        linear-gradient(180deg, rgba(5, 39, 28, 0.94), rgba(3, 29, 21, 0.98));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.club-dashboard-nav .btn {
    border-radius: 999px;
}

.club-dashboard-subnav {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px 0;
}

.club-dashboard-subnav .btn {
    border-radius: 999px;
}

@media (max-width: 768px) {
    .club-dashboard-toolbar-shell {
        padding-top: 0;
    }

    .club-dashboard-nav {
        display: none;
    }

    .club-dashboard-subnav {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Нижняя навигация (mobile bottom nav)
   -------------------------------------------------------------------------- */
.club-bottom-nav {
    display: none;
}

.club-bottom-sheet {
    display: none;
}

@media (max-width: 768px) {
    .club-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
        background: radial-gradient(circle at 10% 0, rgba(201, 168, 76, 0.16), transparent 55%),
            radial-gradient(circle at 90% 0, rgba(22, 163, 74, 0.22), transparent 60%),
            var(--club-color-deep);
        border-top: 1px solid rgba(201, 168, 76, 0.45);
        box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.7);
        font-family: var(--club-font-body);
    }

    .club-bottom-nav__item {
        flex: 1 1 0;
        max-width: 88px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-decoration: none;
        color: rgba(243, 244, 246, 0.8);
        font-size: 0.7rem;
        padding: 4px 2px;
        border-radius: 999px;
        transition: color 200ms ease, background 200ms ease, transform 200ms ease;
    }

    .club-bottom-nav__item-icon {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .club-bottom-nav__item-icon svg {
        width: 18px;
        height: 18px;
        stroke-width: 1.7;
    }

    .club-bottom-nav__item-label {
        line-height: 1.1;
        text-align: center;
    }

    .club-bottom-nav__item--active {
        color: var(--club-color-gold);
        background: rgba(201, 168, 76, 0.15);
        transform: translateY(-1px);
        box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.35);
    }

    .club-bottom-nav__item--active svg {
        color: var(--club-color-gold);
    }

    .club-bottom-nav__item:not(.club-bottom-nav__item--active) svg {
        color: rgba(243, 244, 246, 0.75);
    }

    .club-bottom-nav__item--more {
        position: relative;
    }

    .club-bottom-sheet {
        position: fixed;
        inset: 0;
        z-index: 1099;
        display: none;
    }

    .club-bottom-sheet.is-open {
        display: block;
    }

    .club-bottom-sheet__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
    }

    .club-bottom-sheet__panel {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
        border-radius: 18px 18px 0 0;
        background: rgba(4, 31, 22, 0.95);
        backdrop-filter: blur(18px);
        box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.85);
        transform: translateY(0);
    }

    .club-bottom-sheet__handle {
        width: 40px;
        height: 4px;
        border-radius: 999px;
        margin: 0 auto 10px;
        background: rgba(148, 163, 184, 0.9);
    }

    .club-bottom-sheet__list {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .club-bottom-sheet__group {
        margin-bottom: 6px;
        padding-bottom: 6px;
        border-bottom: 1px solid rgba(201, 168, 76, 0.14);
    }

    .club-bottom-sheet__group-title {
        padding: 8px 10px 6px;
        color: rgba(201, 168, 76, 0.78);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .club-bottom-sheet__link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 10px;
        border-radius: 12px;
        text-decoration: none;
        color: rgba(243, 244, 246, 0.9);
        font-family: var(--club-font-body);
        transition: background 160ms ease, transform 160ms ease;
    }

    .club-bottom-sheet__link-icon {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(243, 244, 246, 0.7);
    }

    .club-bottom-sheet__link:hover {
        background: rgba(15, 118, 110, 0.35);
        transform: translateY(-1px);
    }
}

/* --------------------------------------------------------------------------
   Новый клубный дашборд
   -------------------------------------------------------------------------- */
.club-dashboard-shell {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    padding-bottom: var(--spacing-3xl);
}

.club-dashboard-page-header {
    padding-top: 20px;
    padding-bottom: 0;
}

.club-dashboard-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.78fr);
    gap: 20px;
    margin-bottom: 22px;
    padding: clamp(1.25rem, 2.2vw, 2rem);
    border-radius: 30px;
    border: 1px solid rgba(201, 168, 76, 0.32);
    background:
        radial-gradient(circle at 0 0, rgba(201, 168, 76, 0.22), transparent 28%),
        radial-gradient(circle at 100% 0, rgba(16, 185, 129, 0.14), transparent 32%),
        linear-gradient(145deg, rgba(3, 35, 25, 0.98), rgba(3, 24, 18, 0.97));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.club-dashboard-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -35% auto;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.1), transparent 65%);
    pointer-events: none;
}

.club-dashboard-hero__main {
    position: relative;
    z-index: 1;
}

.club-dashboard-hero__eyebrow-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.club-dashboard-hero__eyebrow,
.club-dashboard-hero__status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.club-dashboard-hero__eyebrow {
    background: rgba(201, 168, 76, 0.14);
    color: #fae7af;
}

.club-dashboard-hero__status-pill {
    background: rgba(14, 116, 144, 0.16);
    color: #b9f2ff;
    border: 1px solid rgba(125, 211, 252, 0.22);
}

.club-dashboard-hero__identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.club-dashboard-hero__copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
}

.club-dashboard-page-header__title {
    margin-bottom: 0;
    text-align: left;
    line-height: 0.96;
}

.club-dashboard-page-header__subtitle {
    margin: 0;
    color: rgba(226, 232, 240, 0.8);
    text-align: left;
    max-width: none;
}

.club-dashboard-hero__summary {
    margin: 0;
    max-width: 44rem;
    color: rgba(241, 245, 249, 0.92);
    font-size: 1rem;
    line-height: 1.55;
}

.club-dashboard-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.club-dashboard-hero__cta {
    min-width: 180px;
}

.club-dashboard-hero__side {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
}

.club-dashboard-hero__side-card,
.club-dashboard-hero__mini-stat {
    border-radius: 24px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
}

.club-dashboard-hero__side-card {
    padding: 20px;
}

.club-dashboard-hero__side-label,
.club-dashboard-hero__mini-label {
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.club-dashboard-hero__side-value {
    margin: 10px 0 8px;
    color: #fff7d6;
    font-family: var(--club-font-heading);
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1;
}

.club-dashboard-hero__side-meta {
    color: rgba(226, 232, 240, 0.78);
    line-height: 1.5;
}

.club-dashboard-hero__mini-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.club-dashboard-hero__mini-stat {
    padding: 16px;
}

.club-dashboard-hero__mini-value {
    display: block;
    margin-bottom: 8px;
    color: #f7e9ba;
    font-size: 1.4rem;
    font-weight: 800;
}

.club-dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.club-dashboard-kpi-card {
    padding: 18px 18px 16px;
    border-radius: 24px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background:
        linear-gradient(180deg, rgba(8, 31, 23, 0.98), rgba(5, 23, 17, 0.98));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.club-dashboard-kpi-card--accent {
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 36%),
        linear-gradient(180deg, rgba(8, 33, 25, 0.98), rgba(5, 24, 18, 0.98));
}

.club-dashboard-kpi-card--warning {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(8, 31, 23, 0.98), rgba(5, 23, 17, 0.98));
}

/* --------------------------------------------------------------------------
   Страница рейтинга клуба
   -------------------------------------------------------------------------- */
.club-rating-page {
    display: grid;
    gap: 22px;
}

.club-rating-hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.72fr);
    margin-bottom: 0;
}

.club-rating-hero__side {
    align-self: stretch;
}

.club-rating-hero__leader {
    margin: 10px 0 8px;
    color: #fff7d6;
    font-family: var(--club-font-heading);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.15;
}

.club-rating-panel {
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.09), transparent 28%),
        linear-gradient(180deg, rgba(7, 29, 22, 0.98), rgba(4, 22, 16, 0.98));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.club-rating-panel__header {
    align-items: end;
    gap: 16px;
}

.club-rating-panel__meta {
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.92rem;
    text-align: right;
}

/* --------------------------------------------------------------------------
   Страница менеджеров клуба
   -------------------------------------------------------------------------- */
.club-managers-page {
    display: grid;
    gap: 22px;
}

.club-managers-hero {
    margin-bottom: 0;
}

.club-managers-hero__side {
    align-self: stretch;
}

.club-managers-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 0;
}

.club-managers-panel {
    padding: 24px;
}

.club-managers-panel__header {
    align-items: end;
    gap: 16px;
}

.club-managers-panel__meta {
    margin: 0;
    max-width: 26rem;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.95rem;
    text-align: right;
}

.club-managers-board {
    display: grid;
    gap: 14px;
}

.club-managers-board__head,
.club-managers-row {
    display: grid;
    grid-template-columns: minmax(240px, 1.3fr) minmax(160px, 0.7fr) minmax(240px, 1fr) minmax(190px, 0.9fr);
    gap: 16px;
    align-items: center;
}

.club-managers-board__head {
    padding: 0 18px;
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.club-managers-board__actions-head {
    text-align: right;
}

.club-managers-row {
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(201, 168, 76, 0.14);
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(8, 31, 23, 0.98), rgba(5, 23, 17, 0.98));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.club-managers-person {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.club-managers-person__content {
    min-width: 0;
}

.club-managers-person__name {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.club-managers-person__email {
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.club-managers-cell {
    min-width: 0;
}

.club-managers-permission {
    color: rgba(241, 245, 249, 0.86);
    line-height: 1.5;
}

.club-managers-role-badge {
    border: 1px solid transparent;
}

.club-managers-role-badge--admin {
    background: rgba(217, 119, 6, 0.16);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.24);
}

.club-managers-role-badge--manager {
    background: rgba(14, 116, 144, 0.18);
    color: #bae6fd;
    border-color: rgba(125, 211, 252, 0.22);
}

.club-managers-role-badge--player {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(226, 232, 240, 0.92);
    border-color: rgba(226, 232, 240, 0.14);
}

.club-managers-actions {
    display: flex;
    justify-content: flex-end;
}

.club-managers-actions__form {
    display: inline-flex;
}

.club-managers-actions__locked {
    display: inline-flex;
    justify-content: flex-end;
    color: rgba(201, 168, 76, 0.9);
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: right;
}

.club-managers-empty-state {
    margin-top: 6px;
}

.club-managers-mobile-list {
    display: none;
}

.club-managers-mobile-card {
    border: 1px solid rgba(201, 168, 76, 0.18);
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(8, 31, 23, 0.98), rgba(5, 23, 17, 0.98));
}

.club-managers-mobile-card__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.club-managers-mobile-card__note {
    color: rgba(241, 245, 249, 0.82);
    line-height: 1.55;
}

.club-managers-mobile-card__actions {
    align-items: stretch;
}

.club-managers-mobile-card__actions .club-managers-actions__form,
.club-managers-mobile-card__actions .club-managers-actions__form .btn {
    width: 100%;
}

.club-managers-search-panel {
    padding-top: 22px;
}

.club-managers-search-intro {
    margin-bottom: 16px;
}

.club-managers-search-intro__copy {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.club-managers-search-intro__copy .club-dashboard-panel__title {
    line-height: 1.15;
}

.club-managers-search-intro__text {
    margin: 0;
    max-width: 42rem;
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.55;
}

.club-managers-search-form {
    display: grid;
    gap: 8px;
}

.club-managers-search-field {
    display: block;
}

.club-managers-search-field__label {
    display: block;
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: left;
}

.club-managers-search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.club-managers-search-controls input {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    font: inherit;
}

.club-managers-search-controls input::placeholder {
    color: rgba(226, 232, 240, 0.42);
}

.club-managers-search-controls input:focus {
    outline: none;
    border-color: rgba(201, 168, 76, 0.46);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.club-managers-search-form__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.club-managers-search-form__actions .btn {
    min-width: 176px;
    min-height: 54px;
    justify-content: center;
    white-space: nowrap;
}

.club-managers-search-summary {
    margin-top: 16px;
    color: rgba(226, 232, 240, 0.76);
    line-height: 1.5;
}

.club-managers-search-results {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.club-managers-search-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(201, 168, 76, 0.14);
    background:
        radial-gradient(circle at top left, rgba(14, 116, 144, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(8, 31, 23, 0.98), rgba(5, 23, 17, 0.98));
}

.club-managers-search-card__meta {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.club-managers-search-card__hint {
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.9rem;
    line-height: 1.45;
}

.club-managers-search-empty {
    margin-top: 14px;
}

@media (max-width: 1100px) {
    .club-managers-board__head,
    .club-managers-row {
        grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.7fr) minmax(180px, 1fr) minmax(170px, 0.9fr);
    }
}

@media (max-width: 900px) {
    .club-managers-kpi-grid {
        grid-template-columns: 1fr;
    }

    .club-managers-board__head {
        display: none;
    }

    .club-managers-board {
        display: none;
    }

    .club-managers-mobile-list {
        display: grid;
        gap: 14px;
    }

    .club-managers-search-controls {
        grid-template-columns: 1fr;
    }

    .club-managers-search-form__actions {
        justify-content: flex-start;
    }

    .club-managers-search-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .club-managers-panel {
        padding: 18px;
        border-radius: 24px;
    }

    .club-managers-panel__header {
        align-items: flex-start;
    }

    .club-managers-panel__meta {
        max-width: none;
        text-align: left;
    }

    .club-managers-person__name {
        font-size: 0.98rem;
    }

    .club-managers-actions__locked {
        justify-content: flex-start;
        text-align: left;
    }

    .club-managers-search-form__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .club-managers-search-form__actions .btn,
    .club-managers-search-card .club-managers-actions__form,
    .club-managers-search-card .club-managers-actions__form .btn {
        width: 100%;
    }
}

.club-rating-table,
.club-rating-history {
    display: grid;
    gap: 12px;
}

/* --------------------------------------------------------------------------
   Страница редактирования профиля клуба
   -------------------------------------------------------------------------- */
.club-edit-page {
    display: grid;
    gap: 18px;
    width: 100%;
    max-width: 980px;
    margin-inline: auto;
}

.club-edit-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 0;
    padding: clamp(1.25rem, 2.4vw, 1.8rem);
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.14), transparent 30%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.1), transparent 34%),
        linear-gradient(145deg, rgba(7, 39, 28, 0.98), rgba(4, 25, 18, 0.98));
    border: 1px solid rgba(201, 168, 76, 0.18);
}

.club-edit-hero .club-dashboard-page-header__title {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    letter-spacing: 0.03em;
}

.club-edit-hero__side {
    align-self: stretch;
}

.club-edit-hero .club-dashboard-page-header__subtitle {
    font-size: 0.98rem;
}

.club-edit-hero__summary {
    margin: 0;
    max-width: 42rem;
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.6;
}

.club-edit-panel {
    padding: clamp(1rem, 2.2vw, 1.5rem);
    border-radius: 26px;
}

.club-edit-panel__header {
    margin-bottom: 14px;
}

.club-edit-form {
    display: grid;
    gap: 18px;
}

.club-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.club-edit-form__errors {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(248, 113, 113, 0.32);
    background: rgba(127, 29, 29, 0.22);
}

.club-edit-field {
    display: grid;
    gap: 8px;
    align-content: start;
    min-width: 0;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(201, 168, 76, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.club-edit-field--full {
    grid-column: 1 / -1;
}

.club-edit-field--textarea,
.club-edit-field--file {
    padding: 18px;
}

.club-edit-field__label {
    margin: 0;
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: left;
}

.club-edit-field__help {
    margin: 0;
    color: rgba(226, 232, 240, 0.66);
    font-size: 0.86rem;
    line-height: 1.55;
    text-align: left;
}

.club-edit-input,
.club-edit-field__control input[type="text"],
.club-edit-field__control input[type="email"],
.club-edit-field__control input[type="url"],
.club-edit-field__control input[type="number"],
.club-edit-field__control input[type="tel"],
.club-edit-field__control input[type="password"],
.club-edit-field__control textarea,
.club-edit-field__control select {
    width: 100%;
    max-width: 100%;
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(201, 168, 76, 0.16);
    background: rgba(2, 24, 18, 0.82);
    color: #f8fafc;
    padding: 0.85rem 1rem;
    font: inherit;
    line-height: 1.45;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.club-edit-field__control textarea {
    min-height: 136px;
    resize: vertical;
}

.club-edit-field__control input[type="file"] {
    width: 100%;
    border-radius: 10px;
    border: 1px dashed rgba(201, 168, 76, 0.32);
    background: rgba(2, 24, 18, 0.76);
    color: rgba(226, 232, 240, 0.88);
    padding: 9px 10px;
}

.club-edit-field__control .helptext {
    display: block;
    margin-top: 6px;
    color: rgba(226, 232, 240, 0.64);
    font-size: 0.82rem;
    line-height: 1.45;
}

.club-edit-field__control ul {
    margin: 6px 0 0;
    padding-left: 18px;
    color: rgba(226, 232, 240, 0.74);
    font-size: 0.85rem;
}

.club-edit-file {
    display: grid;
    gap: 14px;
}

.club-edit-file__current {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.club-edit-file--banner .club-edit-file__current {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    align-items: start;
}

.club-edit-file__preview {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(201, 168, 76, 0.24);
    background: rgba(2, 24, 18, 0.8);
}

.club-edit-file__preview--banner {
    width: 100%;
    height: 124px;
    border-radius: 20px;
}

.club-edit-file__meta {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.club-edit-file__eyebrow {
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.club-edit-file__name {
    color: rgba(248, 250, 252, 0.88);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.club-edit-file__input-wrap {
    padding: 14px;
    border-radius: 18px;
    border: 1px dashed rgba(201, 168, 76, 0.26);
    background: rgba(2, 24, 18, 0.42);
}

.club-edit-input--file {
    display: block;
    width: 100%;
    overflow: hidden;
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.club-edit-input--file::file-selector-button {
    margin-right: 14px;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(201, 168, 76, 0.24);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(201, 168, 76, 0.18), rgba(201, 168, 76, 0.08));
    color: #f8fafc;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.club-edit-file__clear,
.club-edit-field__control label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(241, 245, 249, 0.9);
    line-height: 1.45;
}

.club-edit-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.club-edit-toggle__copy {
    display: grid;
    gap: 6px;
}

.club-edit-toggle__control {
    flex: 0 0 auto;
}

.club-edit-checkbox {
    width: 18px;
    height: 18px;
}

.club-edit-field__control input:focus,
.club-edit-field__control textarea:focus,
.club-edit-field__control select:focus {
    outline: none;
    border-color: rgba(201, 168, 76, 0.48);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.club-edit-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

@media (max-width: 900px) {
    .club-edit-page {
        max-width: 100%;
    }

    .club-edit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .club-edit-panel {
        padding: 14px;
        border-radius: 20px;
    }

    .club-edit-field {
        padding: 14px;
        border-radius: 18px;
    }

    .club-edit-toggle {
        flex-direction: column;
        align-items: flex-start;
    }

    .club-edit-file__current,
    .club-edit-file--banner .club-edit-file__current {
        grid-template-columns: 1fr;
    }

    .club-edit-file__preview {
        width: 64px;
        height: 64px;
    }

    .club-edit-file__preview--banner {
        width: 100%;
        height: 160px;
    }

    .club-edit-file__input-wrap {
        padding: 12px;
    }

    .club-edit-form__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .club-edit-form__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .club-edit-page {
        gap: 14px;
    }

    .club-edit-hero {
        padding: 1.1rem 1rem;
        border-radius: 22px;
    }

    .club-edit-hero .club-dashboard-page-header__title {
        font-size: 1.35rem;
    }

    .club-edit-field {
        padding: 12px;
    }

    .club-edit-field--textarea,
    .club-edit-field--file {
        padding: 12px;
    }

    .club-edit-input,
    .club-edit-field__control input[type="text"],
    .club-edit-field__control input[type="email"],
    .club-edit-field__control input[type="url"],
    .club-edit-field__control input[type="number"],
    .club-edit-field__control input[type="tel"],
    .club-edit-field__control input[type="password"],
    .club-edit-field__control textarea,
    .club-edit-field__control select {
        min-height: 46px;
        padding: 0.78rem 0.9rem;
        font-size: 0.95rem;
    }

    .club-edit-field__control textarea {
        min-height: 128px;
    }

    .club-edit-file__preview--banner {
        height: 132px;
    }

    .club-edit-input--file::file-selector-button {
        width: 100%;
        margin: 0 0 10px;
    }

    .club-edit-input--file {
        color: transparent;
        font-size: 0;
    }

    .club-edit-input--file::file-selector-button {
        font-size: 1rem;
    }
}

/* --------------------------------------------------------------------------
   Страница подписки клуба
   -------------------------------------------------------------------------- */
.club-subscription-page {
    display: grid;
    gap: 22px;
}

.club-subscription-hero {
    margin-bottom: 0;
}

.club-subscription-hero__side {
    align-self: stretch;
}

.club-subscription-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 0;
}

.club-subscription-main-grid {
    align-items: start;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.82fr);
}

.club-subscription-main-grid__primary {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.club-subscription-current,
.club-subscription-offers,
.club-subscription-history-panel {
    position: relative;
    overflow: hidden;
}

.club-subscription-current::after,
.club-subscription-offers::after,
.club-subscription-history-panel::after {
    content: "";
    position: absolute;
    inset: auto -12% -18% auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.08), transparent 68%);
    pointer-events: none;
}

.club-subscription-current {
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(5, 34, 25, 0.98), rgba(3, 22, 17, 0.98));
}

.club-subscription-current__status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.club-subscription-current__text {
    color: rgba(241, 245, 249, 0.84);
    line-height: 1.55;
}

.club-subscription-current__rows {
    display: grid;
    gap: 12px;
}

.club-subscription-current__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.club-subscription-current__label {
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.club-subscription-current__value {
    color: #f8fafc;
    font-weight: 700;
    text-align: right;
}

.club-subscription-current__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.club-subscription-features {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(201, 168, 76, 0.14);
    background: rgba(255, 255, 255, 0.035);
}

.club-subscription-features__title {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 700;
}

.club-subscription-features__description {
    margin: 0;
    color: rgba(226, 232, 240, 0.78);
    line-height: 1.6;
}

.club-subscription-features__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.club-subscription-feature {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.12);
    background: rgba(2, 24, 18, 0.32);
}

.club-subscription-feature__label {
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.club-subscription-feature__value {
    color: #f8fafc;
    font-weight: 700;
    line-height: 1.45;
}

.club-subscription-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.club-subscription-badge--active {
    background: rgba(22, 163, 74, 0.16);
    color: #bbf7d0;
    border-color: rgba(134, 239, 172, 0.24);
}

.club-subscription-badge--inactive {
    background: rgba(217, 119, 6, 0.14);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.24);
}

.club-subscription-empty-state {
    margin-top: 4px;
}

.club-subscription-offers {
    background:
        radial-gradient(circle at top right, rgba(14, 116, 144, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(4, 31, 22, 0.98), rgba(2, 19, 14, 0.98));
}

.club-subscription-offers__grid {
    display: grid;
    gap: 14px;
}

.club-subscription-offer {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 26px;
    border: 1px solid rgba(201, 168, 76, 0.14);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 28%),
        radial-gradient(circle at bottom left, rgba(201, 168, 76, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(8, 38, 28, 0.98), rgba(5, 24, 18, 0.98));
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

.club-subscription-offer::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(201, 168, 76, 0.6), rgba(201, 168, 76, 0));
}

.club-subscription-offer::after {
    content: "";
    position: absolute;
    right: -36px;
    top: -36px;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.12), transparent 70%);
    pointer-events: none;
}

.club-subscription-offer--featured {
    border-color: rgba(201, 168, 76, 0.32);
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.2), transparent 30%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(10, 42, 30, 0.98), rgba(5, 26, 19, 0.98));
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

.club-subscription-offer--current {
    border-color: rgba(134, 239, 172, 0.24);
    box-shadow:
        inset 0 0 0 1px rgba(22, 163, 74, 0.14),
        0 24px 54px rgba(0, 0, 0, 0.22);
}

.club-subscription-offer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.club-subscription-offer__heading {
    display: grid;
    gap: 4px;
}

.club-subscription-offer__name {
    color: #fefce8;
    font-family: var(--club-font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.club-subscription-offer__slug {
    color: rgba(226, 232, 240, 0.48);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.club-subscription-offer__badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(248, 250, 252, 0.86);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.club-subscription-offer__description {
    margin: 0;
    color: rgba(226, 232, 240, 0.78);
    line-height: 1.55;
}

.club-subscription-offer__price-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.club-subscription-offer__price {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.club-subscription-offer__price--secondary {
    background: rgba(2, 24, 18, 0.34);
}

.club-subscription-offer__price-value {
    color: #fefce8;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 800;
    line-height: 1;
}

.club-subscription-offer__price-unit {
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.club-subscription-offer__features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.club-subscription-offer__feature {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px 0 34px;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(241, 245, 249, 0.86);
    line-height: 1.5;
}

.club-subscription-offer__feature::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: #c9a84c;
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.12);
}

.club-subscription-offer__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.club-subscription-offer__actions .btn {
    min-width: 110px;
    justify-content: center;
}

.club-subscription-history-panel {
    padding: 24px;
}

.club-subscription-history-panel__header {
    align-items: end;
    gap: 16px;
}

.club-subscription-history-panel__meta {
    margin: 0;
    max-width: 28rem;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.95rem;
    text-align: right;
}

.club-subscription-history-table {
    display: grid;
    gap: 14px;
}

.club-subscription-history-table__head,
.club-subscription-history-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 0.9fr) minmax(120px, 0.9fr) minmax(120px, 0.85fr);
    gap: 16px;
    align-items: center;
}

.club-subscription-history-table__head {
    padding: 0 18px;
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.club-subscription-history-table__status-head {
    text-align: right;
}

.club-subscription-history-row {
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(201, 168, 76, 0.14);
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(8, 31, 23, 0.98), rgba(5, 23, 17, 0.98));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

.club-subscription-history-row__plan {
    color: #f8fafc;
    font-weight: 700;
}

.club-subscription-history-row__period,
.club-subscription-history-row__date {
    color: rgba(241, 245, 249, 0.84);
}

.club-subscription-history-row__status {
    display: flex;
    justify-content: flex-end;
}

.club-subscription-history-mobile {
    display: none;
}

.club-subscription-history-mobile__card {
    border: 1px solid rgba(201, 168, 76, 0.18);
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(8, 31, 23, 0.98), rgba(5, 23, 17, 0.98));
}

.club-subscription-history-mobile__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.club-subscription-history-mobile__plan {
    color: #f8fafc;
    font-weight: 700;
    font-size: 1rem;
}

@media (max-width: 1100px) {
    .club-subscription-history-table__head,
    .club-subscription-history-row {
        grid-template-columns: minmax(110px, 1fr) minmax(110px, 1fr) minmax(110px, 0.9fr) minmax(110px, 0.9fr) minmax(110px, 0.85fr);
    }
}

@media (max-width: 900px) {
    .club-subscription-kpi-grid,
    .club-subscription-main-grid {
        grid-template-columns: 1fr;
    }

    .club-subscription-history-table {
        display: none;
    }

    .club-subscription-history-mobile {
        display: grid;
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .club-subscription-history-panel {
        padding: 18px;
        border-radius: 24px;
    }

    .club-subscription-history-panel__header {
        align-items: flex-start;
    }

    .club-subscription-history-panel__meta {
        max-width: none;
        text-align: left;
    }

    .club-subscription-current__row {
        align-items: flex-start;
        flex-direction: column;
    }

    .club-subscription-current__value {
        text-align: left;
    }

    .club-subscription-features__grid {
        grid-template-columns: 1fr;
    }

    .club-subscription-current__actions,
    .club-subscription-offer__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .club-subscription-offer__price-panel {
        grid-template-columns: 1fr;
    }

    .club-subscription-current__actions .btn,
    .club-subscription-offer__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .club-subscription-offer {
        padding: 16px;
        border-radius: 22px;
    }

    .club-subscription-offer__feature {
        width: 100%;
    }

    .club-subscription-history-mobile__top {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* --------------------------------------------------------------------------
   Страница оплаты подписки клуба
   -------------------------------------------------------------------------- */
.club-subscription-pay-page {
    display: grid;
    gap: 22px;
}

.club-subscription-pay-hero {
    margin-bottom: 0;
}

.club-subscription-pay-hero__side {
    align-self: stretch;
}

.club-subscription-pay-main-grid {
    align-items: start;
}

.club-subscription-pay-single {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
}

.club-subscription-pay-summary,
.club-subscription-pay-side {
    position: relative;
    overflow: hidden;
}

.club-subscription-pay-summary {
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(5, 34, 25, 0.98), rgba(3, 22, 17, 0.98));
}

.club-subscription-pay-side {
    background:
        radial-gradient(circle at top right, rgba(14, 116, 144, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(4, 31, 22, 0.98), rgba(2, 19, 14, 0.98));
}

.club-subscription-pay-form,
.club-subscription-pay-select-form {
    display: grid;
    gap: 18px;
}

.club-subscription-pay-group {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(201, 168, 76, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.club-subscription-pay-group--plans {
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.12), transparent 28%),
        rgba(255, 255, 255, 0.03);
}

.club-subscription-pay-group--periods {
    background:
        radial-gradient(circle at top right, rgba(14, 116, 144, 0.12), transparent 28%),
        rgba(255, 255, 255, 0.03);
}

.club-subscription-pay-group__header {
    display: grid;
    gap: 6px;
}

.club-subscription-pay-group__eyebrow {
    color: rgba(226, 232, 240, 0.64);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.club-subscription-pay-group__title {
    margin: 0;
    color: #f8fafc;
    font-size: 1.02rem;
    font-weight: 700;
}

.club-subscription-pay-total {
    display: grid;
    gap: 8px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.16), transparent 30%),
        rgba(255, 255, 255, 0.04);
}

.club-subscription-pay-total__label {
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.club-subscription-pay-total__value {
    color: #fefce8;
    font-family: var(--club-font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1;
}

.club-subscription-pay-total__meta {
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.55;
}

.club-subscription-pay-details {
    display: grid;
    gap: 12px;
}

.club-subscription-pay-details__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.club-subscription-pay-details__label {
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.club-subscription-pay-details__value {
    color: #f8fafc;
    font-weight: 700;
    text-align: right;
}

.club-subscription-pay-note {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.12);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.6;
}

.club-subscription-pay-form__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.club-subscription-pay-points {
    display: grid;
    gap: 12px;
}

.club-subscription-pay-point {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(201, 168, 76, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.club-subscription-pay-point__title {
    color: #f8fafc;
    font-weight: 700;
}

.club-subscription-pay-point__text {
    color: rgba(226, 232, 240, 0.78);
    line-height: 1.55;
}

.club-subscription-pay-choice-grid,
.club-subscription-pay-period-grid {
    display: grid;
    gap: 12px;
}

.club-subscription-pay-choice,
.club-subscription-pay-period {
    position: relative;
    display: block;
}

.club-subscription-pay-choice input,
.club-subscription-pay-period input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.club-subscription-pay-choice__content,
.club-subscription-pay-period__content {
    display: grid;
    gap: 6px;
    padding: 16px 18px 16px 48px;
    border-radius: 20px;
    border: 1px solid rgba(201, 168, 76, 0.12);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.club-subscription-pay-choice__content::before,
.club-subscription-pay-period__content::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(201, 168, 76, 0.38);
    transform: translateY(-50%);
    box-shadow: inset 0 0 0 3px rgba(3, 22, 17, 1);
}

.club-subscription-pay-choice input:checked + .club-subscription-pay-choice__content,
.club-subscription-pay-period input:checked + .club-subscription-pay-period__content {
    border-color: rgba(201, 168, 76, 0.34);
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.14), transparent 28%),
        rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.club-subscription-pay-choice input:checked + .club-subscription-pay-choice__content::before,
.club-subscription-pay-period input:checked + .club-subscription-pay-period__content::before {
    background: #c9a84c;
    border-color: rgba(201, 168, 76, 0.68);
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.12);
}

.club-subscription-pay-choice__title,
.club-subscription-pay-period__title {
    color: #f8fafc;
    font-weight: 700;
}

.club-subscription-pay-choice__text,
.club-subscription-pay-period__text {
    color: rgba(226, 232, 240, 0.76);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .club-subscription-pay-main-grid {
        grid-template-columns: 1fr;
    }

    .club-subscription-pay-single {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .club-subscription-pay-group {
        padding: 16px;
        border-radius: 20px;
    }

    .club-subscription-pay-details__row {
        align-items: flex-start;
        flex-direction: column;
    }

    .club-subscription-pay-details__value {
        text-align: left;
    }

    .club-subscription-pay-form__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .club-subscription-pay-form__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   Страница межклубных заявок (заглушка)
   -------------------------------------------------------------------------- */
.club-interclub-page {
    display: grid;
    gap: 22px;
}

.club-interclub-hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.72fr);
    margin-bottom: 0;
}

.club-interclub-hero__side {
    align-self: stretch;
}

.club-interclub-stub {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 2.8vw, 2.4rem);
    border-radius: 30px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    background:
        radial-gradient(circle at 0 0, rgba(201, 168, 76, 0.16), transparent 33%),
        radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.12), transparent 36%),
        linear-gradient(150deg, rgba(5, 34, 25, 0.98), rgba(2, 20, 15, 0.98));
}

.club-interclub-stub::after {
    content: "";
    position: absolute;
    inset: auto -12% -30% auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.12), transparent 65%);
    pointer-events: none;
}

.club-interclub-stub__overline {
    margin: 0 0 10px;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.club-interclub-stub__title {
    margin: 0;
    color: #f8e3a7;
    font-family: var(--club-font-heading);
    font-size: clamp(1.65rem, 4.3vw, 3.35rem);
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.club-interclub-stub__text {
    margin: 18px 0 0;
    max-width: 50rem;
    color: rgba(241, 245, 249, 0.86);
    font-size: 1rem;
    line-height: 1.6;
}

.club-interclub-stub__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

@media (max-width: 900px) {
    .club-interclub-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .club-interclub-stub {
        padding: 18px;
        border-radius: 24px;
    }

    .club-interclub-stub__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .club-interclub-stub__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.club-rating-table__head,
.club-rating-table__row,
.club-rating-history__head,
.club-rating-history__row {
    display: grid;
    align-items: center;
    gap: 16px;
}

.club-rating-table__head,
.club-rating-history__head {
    padding: 0 16px;
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.club-rating-table__head,
.club-rating-table__row {
    grid-template-columns: 86px minmax(0, 1.45fr) minmax(290px, 1fr) 128px;
}

.club-rating-table__row {
    padding: 16px 18px;
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.08), transparent 28%),
        rgba(255, 255, 255, 0.035);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
    align-items: center;
}

.club-rating-table__row:hover {
    transform: translateY(-1px);
    border-color: rgba(201, 168, 76, 0.3);
    background:
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.11), transparent 30%),
        rgba(255, 255, 255, 0.05);
}

.club-rating-table__row--current {
    border-color: rgba(201, 168, 76, 0.42);
    background:
        linear-gradient(90deg, rgba(201, 168, 76, 0.14), rgba(201, 168, 76, 0.04));
    box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.14);
}

.club-rating-table__rank {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.club-rating-rank-badge {
    min-width: 48px;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(241, 245, 249, 0.9);
    font-family: var(--club-font-heading);
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.club-rating-rank-badge--top {
    color: #fff2c4;
    background: linear-gradient(180deg, rgba(201, 168, 76, 0.28), rgba(201, 168, 76, 0.12));
    border-color: rgba(201, 168, 76, 0.42);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.14);
}

.club-rating-table__player {
    min-width: 0;
    display: grid;
    gap: 10px;
    align-content: center;
}

.club-rating-table__player-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.club-rating-table__player-main {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.club-rating-table__name {
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 700;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

.club-rating-table__name-link {
    color: inherit;
    text-decoration: none;
}

.club-rating-table__name-link:hover .club-rating-table__name {
    color: #fff2c4;
}

.club-rating-table__signals {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.club-rating-table__signal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.club-rating-table__signal-label {
    color: rgba(226, 232, 240, 0.52);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.club-rating-table__signal-value {
    color: #f8fafc;
    font-size: 0.88rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.club-rating-table__badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.club-rating-table__self-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.24);
    color: #f3e3a7;
    font-size: 0.76rem;
    font-weight: 700;
}

.club-rating-table__gap-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.14);
    border: 1px solid rgba(45, 212, 191, 0.18);
    color: #9ff7e3;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.club-rating-table__gap-pill--lead {
    background: rgba(201, 168, 76, 0.14);
    border-color: rgba(201, 168, 76, 0.22);
    color: #fff0c0;
}

.club-rating-table__match-card {
    min-width: 0;
    display: grid;
    gap: 6px;
    align-content: center;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.16);
    background:
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.12), transparent 42%),
        rgba(255, 255, 255, 0.04);
    color: inherit;
    text-decoration: none;
}

.club-rating-table__match-card:hover .club-rating-table__match-opponent,
.club-rating-table__match-card:hover .club-rating-table__match-date,
.club-rating-table__match-card:hover .club-rating-table__match-caption {
    color: #fff2c4;
}

.club-rating-table__match-card--empty {
    border-style: dashed;
    background: rgba(255, 255, 255, 0.025);
}

.club-rating-table__match-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.club-rating-table__result-badge {
    min-width: 30px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}

.club-rating-table__result-badge--up {
    background: rgba(52, 211, 153, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.26);
    color: #a7f3d0;
}

.club-rating-table__result-badge--down {
    background: rgba(248, 113, 113, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.24);
    color: #fecaca;
}

.club-rating-table__result-badge--neutral {
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

.club-rating-table__match-caption {
    min-width: 0;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.8rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.club-rating-table__match-main {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.club-rating-table__match-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.club-rating-table__match-date {
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.76rem;
    white-space: nowrap;
}

.club-rating-table__match-separator {
    color: rgba(226, 232, 240, 0.38);
    font-size: 0.76rem;
}

.club-rating-table__match-score {
    color: #d6a253;
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.club-rating-table__match-opponent {
    color: rgba(241, 245, 249, 0.84);
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.club-rating-table__match-empty {
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.88rem;
}

.club-rating-table__metrics {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.club-rating-table__meter-card {
    min-width: 0;
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.club-rating-table__meter-head,
.club-rating-table__meter-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.club-rating-table__meter-head {
    color: rgba(226, 232, 240, 0.74);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.club-rating-table__meter-value {
    color: #f8fafc;
    font-size: 0.94rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.club-rating-table__meter {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
}

.club-rating-table__meter::-webkit-progress-bar,
.club-rating-table__points-bar::-webkit-progress-bar {
    background: rgba(3, 105, 72, 0.46);
    border-radius: 999px;
}

.club-rating-table__meter--level::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(104, 211, 145, 0.7), rgba(201, 168, 76, 0.9));
}

.club-rating-table__meter--rating::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.78), rgba(59, 130, 246, 0.88));
}

.club-rating-table__meter::-moz-progress-bar {
    border-radius: 999px;
}

.club-rating-table__meter--level::-moz-progress-bar {
    background: linear-gradient(90deg, rgba(104, 211, 145, 0.7), rgba(201, 168, 76, 0.9));
}

.club-rating-table__meter--rating::-moz-progress-bar {
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.78), rgba(59, 130, 246, 0.88));
}

.club-rating-table__trend {
    font-size: 0.76rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.club-rating-table__trend--up {
    color: #9ff7c5;
}

.club-rating-table__trend--down {
    color: #fca5a5;
}

.club-rating-table__trend--none {
    color: rgba(226, 232, 240, 0.68);
}

.club-rating-table__meter-note {
    color: rgba(226, 232, 240, 0.48);
    font-size: 0.72rem;
    text-align: right;
}

.club-rating-table__points {
    min-width: 0;
    display: grid;
    gap: 8px;
    justify-items: end;
    align-content: center;
    text-align: right;
}

.club-rating-table__points-value {
    color: #fff0c0;
    font-family: var(--club-font-heading);
    font-size: 1.45rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.club-rating-table__points-label {
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.club-rating-table__points-bar {
    width: 100%;
    max-width: 116px;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
}

.club-rating-table__points-bar::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(201, 168, 76, 0.72), rgba(246, 215, 138, 0.96));
}

.club-rating-table__points-bar::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(201, 168, 76, 0.72), rgba(246, 215, 138, 0.96));
}

.club-rating-table__points-gap {
    color: rgba(226, 232, 240, 0.58);
    font-size: 0.78rem;
}

.club-rating-empty-state {
    margin-top: 6px;
}

.club-rating-history__head,
.club-rating-history__row {
    grid-template-columns: 110px minmax(0, 1.4fr) 80px 80px 80px;
}

.club-rating-history__row {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(241, 245, 249, 0.9);
}

.club-rating-history__tournament a {
    color: #f3e3a7;
    text-decoration: none;
}

.club-rating-history__tournament a:hover {
    color: #fff2c4;
}

.club-rating-history__number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.club-rating-history__number--up {
    color: #9ff7c5;
}

.club-rating-history__number--down {
    color: #fca5a5;
}

@media (max-width: 900px) {
    .club-rating-hero {
        grid-template-columns: 1fr;
    }

    .club-rating-history__head,
    .club-rating-history__row {
        grid-template-columns: 96px minmax(0, 1fr) 72px 72px 72px;
    }
}

@media (max-width: 1120px) {
    .club-rating-table__head {
        display: none;
    }

    .club-rating-table__row {
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: start;
    }

    .club-rating-table__player,
    .club-rating-table__metrics,
    .club-rating-table__points {
        grid-column: 2;
    }

    .club-rating-table__points {
        justify-items: start;
        text-align: left;
    }

    .club-rating-table__points-bar {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .club-rating-page {
        gap: 16px;
        padding-bottom: calc(var(--spacing-xl) + 72px);
    }

    .club-rating-panel {
        padding: 18px 14px;
        border-radius: 24px;
    }

    .club-rating-panel__meta {
        text-align: left;
        font-size: 0.86rem;
    }

    .club-rating-table {
        gap: 8px;
    }

    .club-rating-table__head {
        display: none;
    }

    .club-rating-table__row {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
    }

    .club-rating-table__player,
    .club-rating-table__metrics,
    .club-rating-table__points {
        grid-column: 2;
    }

    .club-rating-rank-badge {
        min-width: 44px;
        min-height: 44px;
        border-radius: 14px;
    }

    .club-rating-table__name {
        font-size: 0.96rem;
    }

    .club-rating-table__player-top {
        flex-direction: column;
        gap: 10px;
    }

    .club-rating-table__badges {
        gap: 6px;
    }

    .club-rating-table__signals {
        gap: 6px;
    }

    .club-rating-table__signal {
        min-height: 28px;
        padding: 0 10px;
    }

    .club-rating-table__self-tag {
        min-height: 22px;
        padding: 0 8px;
        font-size: 0.7rem;
    }

    .club-rating-table__gap-pill {
        min-height: 22px;
        padding: 0 8px;
        font-size: 0.7rem;
    }

    .club-rating-table__match-card {
        width: 100%;
        padding: 10px 12px;
        border-radius: 16px;
    }

    .club-rating-table__match-main {
        gap: 8px;
        align-items: baseline;
        flex-wrap: wrap;
    }

    .club-rating-table__match-date {
        font-size: 0.72rem;
    }

    .club-rating-table__match-score {
        font-size: 1rem;
    }

    .club-rating-table__match-opponent {
        font-size: 0.8rem;
    }

    .club-rating-table__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .club-rating-table__meter-card {
        padding: 10px 12px;
        border-radius: 16px;
    }

    .club-rating-table__meter-head {
        font-size: 0.7rem;
    }

    .club-rating-table__meter-value {
        font-size: 0.86rem;
    }

    .club-rating-table__points {
        justify-items: start;
        text-align: left;
        gap: 6px;
    }

    .club-rating-table__points-value {
        font-size: 1.2rem;
    }

    .club-rating-table__points-bar {
        max-width: none;
    }

    .club-rating-history__head {
        display: none;
    }

    .club-rating-history__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 14px;
    }

    .club-rating-history__tournament {
        grid-column: 1 / -1;
    }

    .club-rating-history__number {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .club-rating-table__row {
        grid-template-columns: 1fr;
    }

    .club-rating-table__rank,
    .club-rating-table__player,
    .club-rating-table__metrics,
    .club-rating-table__points {
        grid-column: auto;
    }

    .club-rating-table__metrics {
        grid-template-columns: 1fr;
    }

    .club-rating-table__points {
        justify-items: stretch;
        text-align: left;
    }

    .club-rating-table__points-bar {
        width: 100%;
    }
}

.club-dashboard-kpi-card__label {
    margin-bottom: 10px;
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.club-dashboard-kpi-card__value {
    margin-bottom: 8px;
    color: #fefce8;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1;
}

.club-dashboard-kpi-card__delta {
    margin-bottom: 8px;
    color: #f6d98d;
    font-size: 0.92rem;
    font-weight: 700;
}

.club-dashboard-kpi-card__meta {
    color: rgba(203, 213, 225, 0.78);
    font-size: 0.84rem;
    line-height: 1.45;
}

.club-dashboard-command-grid,
.club-dashboard-analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 18px;
    margin-bottom: 18px;
}

.club-dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.9fr);
    gap: 18px;
}

.club-dashboard-panel--finance {
    margin-bottom: 18px;
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 26%),
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(4, 31, 22, 0.98), rgba(2, 19, 14, 0.98));
}

.club-dashboard-finance__summary {
    margin: 0 0 16px;
    color: rgba(226, 232, 240, 0.82);
    line-height: 1.55;
}

.club-dashboard-finance-filters {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.club-dashboard-finance-filters__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
}

.club-dashboard-finance-filters__label {
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.club-dashboard-finance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.club-dashboard-finance-chart-wrap {
    margin-top: 8px;
    min-width: 0;
}

.club-dashboard-chart--finance {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    padding-bottom: 0;
}

.club-dashboard-analytics-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.club-dashboard-chart--finance .club-dashboard-chart__item {
    min-width: 0;
}

.club-dashboard-chart--finance .club-dashboard-chart__bar-wrap {
    padding: 0 3px;
}

.club-dashboard-chart--finance .club-dashboard-chart__value {
    font-size: 0.95rem;
    line-height: 1;
}

.club-dashboard-chart--finance .club-dashboard-chart__label {
    font-size: 0.72rem;
}

.club-dashboard-chart--finance-month {
    gap: 4px;
    grid-auto-columns: minmax(18px, 1fr);
}

.club-dashboard-chart--finance-month .club-dashboard-chart__bar-wrap {
    height: 106px;
    padding: 0;
}

.club-dashboard-chart--finance-month .club-dashboard-chart__bar {
    border-radius: 10px 10px 4px 4px;
}

.club-dashboard-chart--finance-month .club-dashboard-chart__value {
    font-size: 0.82rem;
}

.club-dashboard-chart--finance-month .club-dashboard-chart__label {
    font-size: 0.66rem;
    letter-spacing: -0.01em;
}

.club-dashboard-panel--finance .club-dashboard-panel__header {
    align-items: flex-end;
}

.club-dashboard-finance-card {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(201, 168, 76, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.club-dashboard-finance-card--accent {
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 36%),
        rgba(255, 255, 255, 0.04);
}

.club-dashboard-finance-card--warning {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 34%),
        rgba(255, 255, 255, 0.04);
}

.club-dashboard-finance-card__label {
    margin-bottom: 8px;
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.club-dashboard-finance-card__value {
    margin-bottom: 8px;
    color: #fefce8;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
}

.club-dashboard-finance-card__meta {
    color: rgba(203, 213, 225, 0.74);
    font-size: 0.84rem;
    line-height: 1.45;
}

.club-dashboard-side-grid {
    display: grid;
    gap: 18px;
}

.club-dashboard-panel {
    border-radius: 28px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    background:
        linear-gradient(180deg, rgba(4, 31, 22, 0.98), rgba(2, 19, 14, 0.98));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    padding: 20px;
}

.club-dashboard-panel--attention {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(29, 28, 14, 0.98), rgba(20, 20, 11, 0.98));
}

.club-dashboard-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.club-dashboard-panel__header--subsection {
    margin-top: 20px;
    margin-bottom: 12px;
}

.club-dashboard-panel__header-actions {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.club-dashboard-panel--finance .club-dashboard-panel__header-actions {
    align-items: flex-end;
}

.club-dashboard-panel--finance .club-dashboard-finance-filters {
    align-items: flex-end;
    gap: 8px;
}

.club-dashboard-panel--finance .club-dashboard-finance-action-btn {
    min-width: 120px;
    height: 40px;
    padding: 0 12px;
}

.club-dashboard-panel--finance .club-dashboard-finance-filters__field {
    min-width: 120px;
}

.club-dashboard-panel--finance .club-dashboard-finance-filters__field select.form-control {
    height: 40px;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 0.95rem;
    line-height: 40px;
    width: 100%;
}

.club-dashboard-panel__eyebrow {
    margin: 0 0 6px;
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.club-dashboard-panel__title {
    margin: 0;
    color: #f8fafc;
    font-family: var(--club-font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.club-dashboard-panel__link,
.club-dashboard-table__cell--actions a,
.club-dashboard-alert__action {
    color: #f7d98a;
    font-weight: 700;
    text-decoration: none;
}

.club-dashboard-alert-list {
    display: grid;
    gap: 12px;
}

.club-dashboard-alert {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.club-dashboard-alert--critical {
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(127, 29, 29, 0.24);
}

.club-dashboard-alert--warning {
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(120, 53, 15, 0.22);
}

.club-dashboard-alert--info {
    border-color: rgba(56, 189, 248, 0.25);
    background: rgba(8, 47, 73, 0.2);
}

.club-dashboard-alert__title {
    margin-bottom: 4px;
    color: #fefce8;
    font-weight: 800;
}

.club-dashboard-alert__description {
    color: rgba(226, 232, 240, 0.82);
    line-height: 1.45;
}

.club-dashboard-empty-state {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(201, 168, 76, 0.2);
}

.club-dashboard-empty-state__title {
    margin-bottom: 6px;
    color: #f8fafc;
    font-weight: 700;
}

.club-dashboard-empty-state__text,
.club-dashboard__empty-text {
    margin: 0;
    color: rgba(203, 213, 225, 0.74);
    line-height: 1.5;
}

.club-dashboard-action-stack {
    display: grid;
    gap: 10px;
}

.club-dashboard-action {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.club-dashboard-action:hover,
.club-dashboard-panel__link:hover,
.club-dashboard-table__cell--actions a:hover,
.club-dashboard-alert__action:hover {
    transform: translateY(-1px);
}

.club-dashboard-action:hover {
    border-color: rgba(201, 168, 76, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

.club-dashboard-action--primary {
    border-color: rgba(201, 168, 76, 0.32);
    background:
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.14), transparent 36%),
        linear-gradient(180deg, rgba(44, 34, 14, 0.82), rgba(29, 24, 11, 0.88));
}

.club-dashboard-action__title {
    color: #fff8dd;
    font-weight: 800;
}

.club-dashboard-action__text {
    color: rgba(226, 232, 240, 0.75);
    line-height: 1.45;
}

.club-dashboard-chart {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
    min-height: 188px;
}

.club-dashboard-chart__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.club-dashboard-chart__bar-wrap {
    width: 100%;
    height: 116px;
    display: flex;
    align-items: end;
    padding: 0 6px;
}

.club-dashboard-chart__bar {
    width: 100%;
    min-height: 14px;
    border-radius: 14px 14px 6px 6px;
    background: linear-gradient(180deg, #f2cb75, #b9862a);
    box-shadow: 0 10px 24px rgba(201, 168, 76, 0.18);
}

.club-dashboard-chart__bar--soft {
    background: linear-gradient(180deg, #34d399, #0f766e);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.18);
}

.club-dashboard-chart__value {
    color: #f8fafc;
    font-weight: 800;
}

.club-dashboard-chart__label {
    color: rgba(203, 213, 225, 0.74);
    font-size: 0.76rem;
}

.club-dashboard-table {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.club-dashboard-table__head,
.club-dashboard-table__row {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(88px, 120px) minmax(116px, 132px) minmax(120px, 150px) minmax(96px, 0.7fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.club-dashboard-table__head {
    padding: 0 4px 6px;
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.club-dashboard-table__row {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.12);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.club-dashboard-table__cell {
    color: rgba(226, 232, 240, 0.88);
    min-width: 0;
}

.club-dashboard-table__cell a {
    color: #fefce8;
    font-weight: 700;
    text-decoration: none;
}

.club-dashboard-table__cell--title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.club-dashboard-table__cell--title a,
.club-dashboard-table__hint {
    overflow-wrap: anywhere;
}

.club-dashboard-table__cell--actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    justify-content: flex-end;
}

.club-dashboard-table__cell--actions a {
    white-space: nowrap;
}

.club-dashboard-table__hint {
    color: rgba(203, 213, 225, 0.64);
    font-size: 0.8rem;
}

.club-dashboard-table__hint--warn {
    color: #f6d98d;
}

.club-dashboard-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
}

.club-dashboard-status-badge--upcoming {
    background: rgba(14, 116, 144, 0.18);
    color: #bae6fd;
}

.club-dashboard-status-badge--active,
.club-dashboard-status-badge--group_stage,
.club-dashboard-status-badge--playoffs {
    background: rgba(22, 163, 74, 0.16);
    color: #bbf7d0;
}

.club-dashboard-status-badge--completed {
    background: rgba(100, 116, 139, 0.18);
    color: #e2e8f0;
}

.club-dashboard-status-badge--cancelled {
    background: rgba(127, 29, 29, 0.24);
    color: #fecaca;
}

.club-dashboard-persona-section + .club-dashboard-persona-section {
    margin-top: 18px;
}

.club-dashboard-persona-section__title {
    margin-bottom: 10px;
    color: #f6d98d;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.club-dashboard-persona-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.club-dashboard-persona-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.1);
}

.club-dashboard-persona-item__name {
    color: #f8fafc;
    font-weight: 700;
}

.club-dashboard-persona-item__meta {
    color: rgba(203, 213, 225, 0.72);
    font-size: 0.82rem;
    text-align: right;
}

.club-dashboard-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.club-dashboard-meta-card {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.1);
}

.club-dashboard-meta-card__label {
    display: block;
    margin-bottom: 6px;
    color: rgba(226, 232, 240, 0.64);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.club-dashboard-meta-card__value {
    color: #fefce8;
    font-size: 1.35rem;
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   Страница турниров клуба
   -------------------------------------------------------------------------- */
.club-tournaments-page {
    padding-bottom: var(--spacing-3xl);
}

.club-tournaments-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.78fr);
    gap: 20px;
    margin-bottom: 22px;
    padding: clamp(1.25rem, 2.3vw, 2rem);
    border-radius: 30px;
    border: 1px solid rgba(201, 168, 76, 0.32);
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.2), transparent 30%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(3, 35, 25, 0.98), rgba(3, 24, 18, 0.97));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.club-tournaments-hero::after {
    content: "";
    position: absolute;
    inset: auto auto -30% -8%;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1), transparent 68%);
    pointer-events: none;
}

.club-tournaments-hero__main,
.club-tournaments-hero__side {
    position: relative;
    z-index: 1;
}

.club-tournaments-hero__eyebrow-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.club-tournaments-hero__status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.24);
    background: rgba(14, 116, 144, 0.16);
    color: #c7f2ff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.club-tournaments-hero__identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.club-tournaments-hero__copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.club-tournaments-hero__summary {
    margin: 0;
    max-width: 48rem;
    color: rgba(241, 245, 249, 0.92);
    font-size: 1rem;
    line-height: 1.55;
    text-align: left;
}

.club-tournaments-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.club-tournaments-hero__side {
    display: grid;
    gap: 14px;
}

.club-tournaments-hero__side-card,
.club-tournaments-hero__mini-stat {
    border-radius: 24px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
}

.club-tournaments-hero__side-card {
    padding: 20px;
}

.club-tournaments-hero__side-label,
.club-tournaments-hero__mini-label {
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.club-tournaments-hero__side-value {
    margin: 10px 0 8px;
    color: #fff7d6;
    font-family: var(--club-font-heading);
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    line-height: 1.05;
}

.club-tournaments-hero__side-meta {
    color: rgba(226, 232, 240, 0.78);
    line-height: 1.5;
}

.club-tournaments-hero__mini-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.club-tournaments-hero__mini-stat {
    padding: 16px;
}

.club-tournaments-hero__mini-value {
    display: block;
    margin-top: 8px;
    color: #f7e9ba;
    font-size: 1.25rem;
    font-weight: 800;
}

.club-tournaments-overview {
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 28%),
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.1), transparent 26%),
        linear-gradient(180deg, rgba(4, 31, 22, 0.98), rgba(2, 19, 14, 0.98));
}

.club-tournaments-overview__header {
    gap: 16px;
}

.club-tournaments-overview__result {
    color: rgba(226, 232, 240, 0.74);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
}

.club-tournaments-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    gap: var(--spacing-md);
    align-items: end;
    margin-bottom: 18px;
}

.club-tournaments-filters__actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.club-tournaments-list {
    display: grid;
    gap: 5px;
}

.club-tournament-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(108px, 132px);
    gap: 10px;
    align-items: start;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.14);
    background:
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.08), transparent 30%),
        rgba(255, 255, 255, 0.04);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.club-tournament-card__main {
    min-width: 0;
}

.club-tournament-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.club-tournament-card__topline-main,
.club-tournament-card__topline-side {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.club-tournament-card__topline-main {
    flex: 1 1 auto;
}

.club-tournament-card__topline-side {
    flex: 0 0 auto;
}

.club-tournament-card__index {
    flex: 0 0 auto;
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.club-tournament-card__title {
    margin: 0;
    font-size: clamp(0.96rem, 1.35vw, 1.16rem);
    line-height: 1.08;
    min-width: 0;
}

.club-tournament-card__title a {
    display: block;
    color: #fefce8;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.club-tournament-card__open-link {
    color: #c9a84c;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.club-tournament-card__meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.club-tournament-card__meta-card {
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(201, 168, 76, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.club-tournament-card__meta-label {
    display: block;
    margin-bottom: 4px;
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.club-tournament-card__meta-value {
    color: #fefce8;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.club-tournament-card__participants {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.club-tournament-card__participants-stack {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding-left: 4px;
}

.club-tournament-card__participant {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: -4px;
    border-radius: 999px;
    border: 2px solid rgba(6, 22, 17, 0.95);
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    transition: transform 160ms ease, border-color 160ms ease;
}

.club-tournament-card__participant:first-child {
    margin-left: 0;
}

.club-tournament-card__participant:hover {
    z-index: 2;
    transform: translateY(-2px);
    border-color: rgba(201, 168, 76, 0.65);
}

.club-tournament-card__participant-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.club-tournament-card__participant-avatar--fallback,
.club-tournament-card__participant--more {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.28), rgba(28, 72, 52, 0.98));
    color: #fff7d6;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.club-tournament-card__participant--more {
    flex-shrink: 0;
}

.club-tournament-card__participants-note {
    color: rgba(226, 232, 240, 0.74);
    font-size: 0.74rem;
    font-weight: 600;
}

.club-tournament-card__tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.club-tournament-card__tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.18);
    color: #f7e9ba;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
}

.club-tournament-card__note {
    margin: 8px 0 0;
    color: #f6d98d;
    font-size: 0.74rem;
    line-height: 1.2;
}

.club-tournament-card__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    padding-top: 22px;
}

.club-tournament-card__actions .btn {
    justify-content: center;
}

.club-tournaments-empty {
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.14), transparent 26%),
        linear-gradient(180deg, rgba(4, 31, 22, 0.98), rgba(2, 19, 14, 0.98));
}

.club-tournaments-empty__state {
    min-height: 320px;
}

.club-tournaments-empty__actions {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Личный кабинет игрока клуба
   -------------------------------------------------------------------------- */
.club-player-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--spacing-sm);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0;
}

.club-player-nav .btn {
    border-radius: 999px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.club-player-toolbar-shell {
    padding: 14px 0 0;
}

.club-player-toolbar-shell .container {
    max-width: 1180px;
}

.club-player-toolbar-shell .club-player-nav {
    padding: 12px 14px;
    border: 1px solid rgba(201, 168, 76, 0.28);
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.1), transparent 32%),
        linear-gradient(180deg, rgba(5, 39, 28, 0.94), rgba(3, 29, 21, 0.98));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.club-player-dashboard {
    max-width: 960px;
    margin-inline: auto;
    padding-bottom: var(--spacing-2xl);
}

.club-player-dashboard__summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: var(--spacing-xl);
}

.club-player-dashboard__summary-card {
    border-radius: 20px;
    padding: 16px 18px;
    background: radial-gradient(circle at top left, rgba(10, 191, 145, 0.08), transparent 55%), rgba(7, 24, 18, 0.96);
    border: 1px solid rgba(201, 168, 76, 0.26);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.club-player-dashboard__summary-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(226, 232, 240, 0.7);
    margin-bottom: 8px;
}

.club-player-dashboard__summary-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fefce8;
}

.club-player-dashboard__summary-value--compact {
    font-size: 1.05rem;
}

.club-player-dashboard__summary-hint {
    font-size: 0.82rem;
    color: rgba(209, 213, 219, 0.85);
}

.club-player-dashboard__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
}

.club-player-dashboard__card-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
    margin-top: 0;
    margin-bottom: 12px;
}

.club-player-dashboard__actions {
    margin-top: var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.club-player-dashboard__matches-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--spacing-sm);
}

.club-player-dashboard__matches-item {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-sm);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 12px;
    padding: 10px 12px;
}

.club-player-dashboard__match-title {
    font-weight: 600;
}

.club-player-dashboard__match-meta {
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.club-player-dashboard__match-status {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .club-dashboard-hero,
    .club-tournaments-hero,
    .club-dashboard-command-grid,
    .club-dashboard-analytics-grid,
    .club-dashboard-main-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .club-dashboard-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .club-dashboard-finance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .club-dashboard-chart--finance-month {
        gap: 3px;
        grid-auto-columns: minmax(14px, 1fr);
    }

    .club-dashboard-chart--finance-month .club-dashboard-chart__bar-wrap {
        height: 96px;
    }

    .club-dashboard-table__head {
        display: none;
    }

    .club-dashboard-table__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .club-dashboard-table__cell--title,
    .club-dashboard-table__cell--actions {
        grid-column: 1 / -1;
    }

    .club-dashboard-table__cell--actions {
        justify-content: flex-start;
    }

    .club-tournament-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .club-tournament-card__actions {
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding-top: 0;
    }

    .club-tournament-card__actions .btn {
        flex: 1 1 132px;
    }

    .club-tournament-card__topline {
        align-items: flex-start;
    }

    .club-tournament-card__topline-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .club-tournaments-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .club-tournaments-filters__actions {
        grid-column: 1 / -1;
    }

    .club-player-dashboard__summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .club-player-dashboard__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .club-dashboard-page-header__title {
        text-align: left;
        font-size: 1.7rem;
    }

    .club-dashboard-hero__identity,
    .club-tournaments-hero__identity {
        align-items: flex-start;
    }

    .club-dashboard-hero__mini-stats,
    .club-tournaments-hero__mini-stats,
    .club-dashboard-meta-grid,
    .club-dashboard-kpi-grid,
    .club-dashboard-finance-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .club-tournament-card__meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .club-dashboard-alert,
    .club-dashboard-persona-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .club-dashboard-alert__action,
    .club-dashboard-persona-item__meta {
        text-align: left;
    }

    .club-dashboard-chart {
        gap: 8px;
    }

    .club-dashboard-chart--finance {
        gap: 4px;
    }

    .club-dashboard-chart--finance .club-dashboard-chart__value {
        font-size: 0.76rem;
    }

    .club-dashboard-chart--finance .club-dashboard-chart__label {
        font-size: 0.62rem;
    }

    .club-dashboard-panel__header-actions,
    .club-dashboard-finance-filters {
        width: 100%;
        justify-content: stretch;
    }

    .club-dashboard-finance-filters__field {
        min-width: 0;
        flex: 1 1 100%;
    }

    .club-dashboard-finance-filters .btn {
        width: 100%;
        justify-content: center;
    }

    .club-dashboard-panel--finance .club-dashboard-finance-action-btn {
        width: 100%;
        justify-content: center;
    }

    .club-player-dashboard__summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .club-tournaments-overview__result {
        text-align: left;
    }
}

@media (max-width: 820px) {
    .club-dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .club-dashboard-hero {
        padding: 1.1rem;
    }

    .club-dashboard-panel {
        padding: 16px;
    }
}

@media (max-width: 560px) {
    .club-dashboard-page-header,
    .club-dashboard,
    .club-dashboard-shell {
        max-width: 100%;
    }

    .club-dashboard-kpi-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .club-dashboard-hero__identity,
    .club-tournaments-hero__identity {
        flex-direction: column;
        gap: 14px;
    }

    .club-dashboard-hero__actions,
    .club-tournaments-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .club-dashboard-hero__cta,
    .club-dashboard-hero__actions .btn,
    .club-tournaments-hero__actions .btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .club-dashboard-table__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .club-tournament-card {
        padding: 10px;
        border-radius: 14px;
    }

    .club-tournament-card__topline {
        align-items: flex-start;
    }

    .club-tournament-card__actions {
        flex-direction: column;
    }

    .club-tournament-card__actions .btn {
        width: 100%;
        flex: 1 1 auto;
    }

    .club-tournaments-filters__actions > * {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .club-tournaments-filters {
        grid-template-columns: minmax(0, 1fr);
    }

    .club-tournament-card__topline {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .club-tournament-card__meta-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .club-tournament-card__topline-side {
        display: flex;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* --------------------------------------------------------------------------
   Страница участников клуба
   -------------------------------------------------------------------------- */
.club-members-page {
    max-width: 1120px;
    margin-inline: auto;
}

.club-members-page-header {
    padding-bottom: var(--spacing-xl);
}

.club-members-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid rgba(201, 168, 76, 0.34);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.2), transparent 34%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(2, 41, 27, 0.98), rgba(5, 28, 20, 0.96));
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
    gap: var(--spacing-xl);
    align-items: center;
}

.club-members-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--spacing-md);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.12);
    color: rgba(255, 248, 220, 0.9);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.club-members-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    min-height: 100%;
    max-width: 32rem;
    padding-left: clamp(0.25rem, 1.5vw, 1rem);
}

.club-members-hero__title {
    margin: 0;
    text-align: left;
    line-height: 0.95;
}

.club-members-hero__subtitle {
    margin: 0;
    text-align: left;
    max-width: 28rem;
    color: rgba(226, 232, 240, 0.84);
    line-height: 1.5;
}

.club-members-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-md);
}

.club-members-stat {
    padding: 18px 20px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    text-align: left;
}

.club-members-stat__value {
    display: block;
    margin-bottom: 6px;
    color: #f9e7b0;
    font-family: var(--club-font-heading);
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1;
}

.club-members-stat__label {
    display: block;
    color: rgba(226, 232, 240, 0.85);
    font-size: 0.9rem;
}

.club-members-toolbar,
.club-members-table-card {
    margin-bottom: var(--spacing-xl);
    background:
        linear-gradient(180deg, rgba(4, 31, 22, 0.96), rgba(2, 21, 15, 0.98));
    border-color: rgba(201, 168, 76, 0.32);
}

.club-members-toolbar__body,
.club-members-table-card__body {
    padding: clamp(1rem, 2vw, 1.5rem);
}

.club-members-toolbar__intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.club-members-toolbar__title {
    margin: 0 0 6px;
    color: #f8fafc;
    font-family: var(--club-font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.club-members-toolbar__text {
    margin: 0;
    color: rgba(226, 232, 240, 0.78);
}

.club-members-toolbar__export {
    border: 1px solid rgba(201, 168, 76, 0.28);
    background: rgba(201, 168, 76, 0.08);
    color: #f9e7b0;
}

.club-members-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.7fr) auto;
    gap: var(--spacing-md);
    align-items: end;
}

.club-members-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.club-members-field__label {
    color: rgba(226, 232, 240, 0.85);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.club-members-field input,
.club-members-field select {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(201, 168, 76, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    font: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.club-members-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    color-scheme: dark;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(248, 250, 252, 0.92) 50%),
        linear-gradient(135deg, rgba(248, 250, 252, 0.92) 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 2px),
        calc(100% - 16px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.club-members-field select option {
    color: #f8fafc;
    background: #11271d;
}

.club-members-field select option:checked,
.club-members-field select option:hover {
    color: #fff7d6;
    background: #2a5b41;
}

.club-members-field input::placeholder {
    color: rgba(203, 213, 225, 0.58);
}

.club-members-field input:focus,
.club-members-field select:focus {
    outline: none;
    border-color: rgba(201, 168, 76, 0.65);
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.club-members-filters__actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.club-members-table-wrap {
    overflow-x: auto;
}

.club-members-table {
    width: 100%;
    border-collapse: collapse;
}

.club-members-table thead th {
    padding: 0 0 14px;
    color: rgba(226, 232, 240, 0.64);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: left;
    text-transform: uppercase;
}

.club-members-table tbody tr {
    border-top: 1px solid rgba(201, 168, 76, 0.16);
    transition: background 160ms ease;
}

.club-members-table tbody tr:hover {
    background: rgba(201, 168, 76, 0.04);
}

.club-members-table td {
    padding: 18px 0;
    vertical-align: middle;
}

.club-members-table__actions-head,
.club-members-table__actions {
    text-align: right;
}

.club-members-table__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.club-members-table__remove-form {
    display: inline-flex;
}

.club-members-person {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.club-members-person--link {
    text-decoration: none;
    border-radius: 18px;
    padding: 8px 10px 8px 0;
    transition: transform 160ms ease, opacity 160ms ease;
}

.club-members-person--link:hover {
    transform: translateX(2px);
    opacity: 0.96;
}

.club-members-person__avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.club-members-person__avatar--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(201, 168, 76, 0.34), transparent 55%),
        rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.32);
    color: #f9e7b0;
    font-family: var(--club-font-heading);
    font-size: 1rem;
}

.club-members-person__content {
    min-width: 0;
}

.club-members-person__name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.club-members-person__name {
    color: #f8fafc;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.club-members-person__meta {
    color: rgba(226, 232, 240, 0.66);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.club-members-person__stats {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.club-members-inline-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 168, 76, 0.16);
}

.club-members-inline-stat__label {
    color: rgba(226, 232, 240, 0.58);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.club-members-inline-stat__value {
    color: #f8fafc;
    font-size: 0.8rem;
    font-weight: 700;
}

.club-members-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    background: rgba(255, 255, 255, 0.03);
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.club-members-badge--role {
    color: rgba(226, 232, 240, 0.9);
}

.club-members-badge--status {
    min-width: 108px;
}

.club-members-badge--accent {
    color: #f9e7b0;
    background: rgba(201, 168, 76, 0.14);
}

.club-members-badge--soft {
    color: #c8f4d6;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.22);
}

.club-members-badge--success {
    color: #c8f4d6;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.22);
}

.club-members-badge--warning {
    color: #f9e7b0;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.24);
}

.club-members-badge--danger {
    color: #fecaca;
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.24);
}

.club-members-date {
    color: #f8fafc;
    font-weight: 600;
}

.club-members-date-note {
    margin-top: 4px;
    color: rgba(226, 232, 240, 0.6);
    font-size: 0.84rem;
}

.club-members-table__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.club-members-table__actions .btn {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    box-shadow: none;
}

.club-members-table__actions .btn:hover {
    border-color: rgba(201, 168, 76, 0.34);
    background: rgba(201, 168, 76, 0.12);
}

.club-members-table__actions .btn-danger-text {
    color: #fecaca;
    border-color: rgba(220, 38, 38, 0.22);
    background: rgba(220, 38, 38, 0.1);
}

.club-members-table__actions .btn-danger-text:hover {
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(220, 38, 38, 0.16);
}

.club-members-table__remove-form {
    display: inline-flex;
}

.club-members-table__empty,
.club-members-mobile-list__empty {
    padding: 26px 0 8px;
    color: rgba(226, 232, 240, 0.7);
    text-align: center;
}

.club-members-mobile-list {
    display: none;
}

.club-members-mobile-card {
    padding: 16px;
    border: 1px solid rgba(201, 168, 76, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.club-members-mobile-card__grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.club-members-mobile-card__label {
    display: block;
    margin-bottom: 6px;
    color: rgba(226, 232, 240, 0.6);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.club-members-mobile-card__value {
    color: #f8fafc;
    font-weight: 600;
}

.club-members-mobile-card__actions {
    margin-top: 16px;
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.club-members-pagination {
    margin-top: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(201, 168, 76, 0.16);
}

.club-members-pagination__link {
    color: #f9e7b0;
    text-decoration: none;
}

.club-members-pagination__link--disabled {
    color: rgba(148, 163, 184, 0.7);
}

.club-members-pagination__current {
    color: rgba(226, 232, 240, 0.75);
}

/* --------------------------------------------------------------------------
   Приглашения клуба
   -------------------------------------------------------------------------- */
.club-invites-page {
    max-width: 1120px;
    margin-inline: auto;
}

.club-invites-hero .club-members-hero__copy {
    max-width: 34rem;
}

.club-invites-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--spacing-sm);
}

.club-invites-toolbar__actions .btn {
    min-height: 42px;
    border-radius: 12px;
}

.club-invites-toolbar__actions .btn-ghost {
    border: 1px solid rgba(201, 168, 76, 0.24);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
}

.club-invites-toolbar__actions .btn-ghost:hover {
    border-color: rgba(201, 168, 76, 0.38);
    background: rgba(201, 168, 76, 0.12);
}

.club-invites-toolbar__note {
    margin: 0;
    color: rgba(226, 232, 240, 0.7);
    line-height: 1.6;
}

.club-invites-inline-actions {
    margin-top: var(--spacing-lg);
    display: grid;
    gap: 14px;
}

.club-invites-inline-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.92fr) minmax(0, 1.7fr);
    gap: 18px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background:
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.08), transparent 30%),
        rgba(255, 255, 255, 0.03);
}

.club-invites-inline-card--active {
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.12);
}

.club-invites-inline-card__copy {
    display: grid;
    gap: 10px;
    align-content: start;
}

.club-invites-inline-card__title {
    margin: 0;
    color: #f8fafc;
    font-family: var(--club-font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.club-invites-inline-card__text {
    margin: 0;
    color: rgba(226, 232, 240, 0.72);
    line-height: 1.55;
}

.club-invites-inline-card__form {
    display: grid;
    gap: 14px;
    align-items: end;
}

.club-invites-inline-card__form--create {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.club-invites-inline-card__form--email,
.club-invites-inline-card__form--import {
    grid-template-columns: minmax(0, 1fr) auto;
}

.club-invites-inline-card__errors {
    grid-column: 1 / -1;
}

.club-invites-inline-card__button-group {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 10px;
    align-items: stretch;
    justify-content: start;
}

.club-invites-inline-card__button-group .btn {
    min-width: 0;
    white-space: nowrap;
}

.club-invites-inline-card__submit {
    min-height: 50px;
    padding: 0 18px;
    border-radius: 14px;
    white-space: nowrap;
}

.club-invites-file-input {
    padding: 10px 12px;
    color: transparent;
    text-shadow: none;
    font-size: 0;
}

.club-invites-file-input::file-selector-button {
    margin-right: 0;
    padding: 10px 14px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 10px;
    background: rgba(201, 168, 76, 0.12);
    color: #f9e7b0;
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.club-invites-file-input::-webkit-file-upload-button {
    margin-right: 0;
    padding: 10px 14px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 10px;
    background: rgba(201, 168, 76, 0.12);
    color: #f9e7b0;
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.club-invites-file-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: transparent;
}

.club-invites-file-picker__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.club-invites-file-picker__button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 10px;
    background: transparent;
    color: #f9e7b0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.club-invites-file-picker__name {
    min-width: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.club-invites-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.club-invites-link__token {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.22);
    color: #f9e7b0;
    font-family: var(--club-font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    line-height: 1;
}

.club-invites-link__meta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: rgba(226, 232, 240, 0.66);
    font-size: 0.84rem;
}

.club-invites-link__meta span {
    overflow-wrap: anywhere;
}

.club-invites-table td {
    vertical-align: top;
    padding-right: 16px;
}

.club-invites-table td:last-child {
    padding-right: 0;
}

.club-invites-table .club-members-table__actions .btn-primary,
.club-invites-mobile-card .club-members-mobile-card__actions .btn-primary {
    background: #a6824a;
    color: silver;
    border-color: transparent;
}

.club-invites-table .club-members-table__actions .btn-primary:hover,
.club-invites-mobile-card .club-members-mobile-card__actions .btn-primary:hover {
    background: #b18d55;
    color: silver;
    border-color: transparent;
}

.club-invites-request-note {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(201, 168, 76, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.88rem;
    line-height: 1.55;
}

.club-invites-empty {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px dashed rgba(201, 168, 76, 0.24);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.club-invites-empty__title {
    margin: 0 0 10px;
    color: #f8fafc;
    font-family: var(--club-font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.club-invites-empty__text {
    margin: 0 auto var(--spacing-lg);
    max-width: 38rem;
    color: rgba(226, 232, 240, 0.72);
    line-height: 1.6;
}

.club-invites-mobile-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.club-invites-mobile-card__top .club-members-badge {
    flex-shrink: 0;
}

.club-balance-warning {
    margin-bottom: var(--spacing-lg);
    padding: 16px 18px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 18px;
    background: rgba(120, 53, 15, 0.18);
    color: rgba(255, 248, 220, 0.92);
    line-height: 1.55;
}

.club-balance-warning strong {
    color: #f9e7b0;
}

.club-balance-warning--critical {
    border-color: rgba(248, 113, 113, 0.34);
    background:
        radial-gradient(circle at top right, rgba(248, 113, 113, 0.16), transparent 34%),
        rgba(69, 10, 10, 0.34);
}

.club-balance-page {
    padding-bottom: var(--spacing-2xl);
}

.club-balance-page__grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1.16fr);
    gap: var(--spacing-xl);
    align-items: start;
}

.club-balance-page__panel {
    min-width: 0;
}

.club-balance-amount {
    color: #f8fafc;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.club-balance-amount--positive {
    color: #c8f4d6;
}

.club-members-input,
.club-members-select,
.club-members-textarea,
.club-members-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(201, 168, 76, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    font: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.club-members-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    color-scheme: dark;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(248, 250, 252, 0.92) 50%),
        linear-gradient(135deg, rgba(248, 250, 252, 0.92) 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 2px),
        calc(100% - 16px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.club-members-textarea,
.club-members-field textarea {
    min-height: 120px;
    padding: 14px 16px;
    resize: vertical;
}

.club-members-input:focus,
.club-members-select:focus,
.club-members-textarea:focus,
.club-members-field textarea:focus {
    outline: none;
    border-color: rgba(201, 168, 76, 0.65);
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.club-balance-form {
    display: grid;
    gap: 16px;
}

.club-balance-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.club-balance-form__confirm {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(201, 168, 76, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(226, 232, 240, 0.84);
    line-height: 1.5;
}

.club-balance-form__checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #c9a84c;
    flex-shrink: 0;
}

.club-balance-form__error {
    margin: 6px 0 0;
    color: #fecaca;
    font-size: 0.85rem;
}

.club-balance-form__actions {
    display: flex;
    justify-content: flex-start;
}

.club-balance-ledger {
    display: grid;
    gap: 12px;
}

.club-balance-ledger__item {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.16);
    background:
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.1), transparent 32%),
        rgba(255, 255, 255, 0.03);
}

.club-balance-ledger__main {
    display: grid;
    gap: 8px;
}

.club-balance-ledger__title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.club-balance-ledger__title-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #f8fafc;
}

.club-balance-ledger__text {
    color: rgba(226, 232, 240, 0.86);
    line-height: 1.5;
}

.club-balance-ledger__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(203, 213, 225, 0.68);
    font-size: 0.84rem;
}

@media (max-width: 960px) {
    .club-members-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .club-members-filters {
        grid-template-columns: minmax(0, 1fr);
    }

    .club-members-filters__actions {
        justify-content: flex-start;
    }

    .club-balance-page__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .club-invites-toolbar__actions {
        justify-content: flex-start;
    }

    .club-invites-inline-card {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .club-player-toolbar-shell {
        display: none;
    }

    .club-player-toolbar-shell .container {
        padding-inline: 12px;
    }

    .club-player-toolbar-shell .club-player-nav {
        padding: 10px 12px;
        gap: 10px;
        border-radius: 18px;
    }

    body.body--club-panel {
        padding-bottom: calc(52px + env(safe-area-inset-bottom));
    }

    .club-dashboard-shell,
    .club-player-dashboard {
        padding-top: 12px;
    }

    .club-dashboard-kpi-grid,
    .club-player-dashboard__summary-grid {
        margin-top: 12px;
    }

    body.body--club-panel .feedback-widget {
        bottom: calc(88px + env(safe-area-inset-bottom));
    }

    body.body--club-panel .feedback-chat-widget {
        bottom: calc(144px + env(safe-area-inset-bottom));
        max-height: min(500px, calc(100vh - 180px - env(safe-area-inset-bottom)));
    }

    .club-members-page-header {
        padding-top: var(--spacing-lg);
    }

    .club-members-hero {
        border-radius: 22px;
    }

    .club-members-hero__title,
    .club-members-hero__subtitle {
        text-align: center;
    }

    .club-members-hero__copy {
        align-items: center;
        text-align: center;
        max-width: none;
        padding-left: 0;
    }

    .club-members-hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .club-members-toolbar__intro {
        flex-direction: column;
    }

    .club-members-table-wrap {
        display: none;
    }

    .club-members-mobile-list {
        display: grid;
        gap: 10px;
    }

    .club-members-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .club-members-mobile-card {
        padding: 12px;
        border-radius: 16px;
        display: grid;
        gap: 12px;
    }

    .club-members-person--link {
        padding: 0;
        gap: 10px;
        align-items: flex-start;
    }

    .club-members-person__avatar {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .club-members-person__name {
        font-size: 0.98rem;
        line-height: 1.2;
    }

    .club-members-person__meta {
        font-size: 0.84rem;
        line-height: 1.3;
    }

    .club-members-person__stats {
        margin-top: 6px;
        gap: 6px;
        display: flex;
        flex-wrap: wrap;
    }

    .club-members-inline-stat {
        padding: 4px 8px;
    }

    .club-members-inline-stat__label,
    .club-members-inline-stat__value {
        font-size: 0.7rem;
    }

    .club-members-mobile-card__grid {
        margin-top: 0;
        gap: 0;
        border: 1px solid rgba(201, 168, 76, 0.12);
        border-radius: 14px;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.02);
    }

    .club-members-mobile-card__label {
        margin-bottom: 6px;
        font-size: 0.68rem;
    }

    .club-members-mobile-card__value,
    .club-members-date {
        font-size: 0.95rem;
    }

    .club-members-mobile-card__grid > div {
        padding: 10px 12px;
        min-width: 0;
    }

    .club-members-mobile-card__grid > div + div {
        border-left: 1px solid rgba(201, 168, 76, 0.12);
    }

    .club-members-badge {
        padding: 6px 10px;
        font-size: 0.72rem;
    }

    .club-members-badge--status {
        min-width: 0;
    }

    .club-members-mobile-card__actions {
        margin-top: 0;
        gap: 8px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        padding-top: 2px;
        border-top: 1px solid rgba(201, 168, 76, 0.1);
    }

    .club-members-mobile-card__actions form {
        display: block;
        width: 100%;
    }

    .club-members-mobile-card__actions .btn {
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 0 12px;
        border-radius: 12px;
        border: 1px solid rgba(201, 168, 76, 0.22);
        background: rgba(255, 255, 255, 0.04);
        color: #f8fafc;
        justify-content: center;
        box-shadow: none;
    }

    .club-members-mobile-card__actions .btn:hover {
        border-color: rgba(201, 168, 76, 0.34);
        background: rgba(201, 168, 76, 0.12);
    }

    .club-members-mobile-card__actions .btn-danger-text {
        color: #fecaca;
        border-color: rgba(220, 38, 38, 0.22);
        background: rgba(220, 38, 38, 0.1);
    }

    .club-members-mobile-card__actions .btn-danger-text:hover {
        border-color: rgba(248, 113, 113, 0.34);
        background: rgba(220, 38, 38, 0.16);
    }

    .club-invites-section__header {
        flex-direction: column;
        margin-bottom: var(--spacing-md);
    }

    .club-invites-inline-actions {
        gap: 10px;
    }

    .club-invites-inline-card {
        padding: 14px 16px;
        border-radius: 18px;
        gap: 14px;
    }

    .club-invites-inline-card__form,
    .club-invites-inline-card__form--create,
    .club-invites-inline-card__form--email,
    .club-invites-inline-card__form--import {
        grid-template-columns: minmax(0, 1fr);
    }

    .club-invites-inline-card__submit {
        width: 100%;
    }

    .club-invites-inline-card__button-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .club-invites-inline-card__button-group .btn {
        width: 100%;
        justify-content: center;
    }

    .club-invites-file-picker {
        flex-direction: column;
        align-items: stretch;
    }

    .club-invites-file-picker__button {
        width: 100%;
    }

    .club-invites-file-picker__name {
        text-align: left;
    }

    .club-invites-link__meta {
        margin-top: 8px;
        gap: 6px 10px;
        font-size: 0.8rem;
    }

    .club-invites-request-note {
        margin-top: 8px;
        padding: 10px 12px;
        font-size: 0.84rem;
    }

    .club-balance-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .club-balance-warning {
        padding: 14px 16px;
    }

    .club-balance-ledger__item {
        padding: 14px 16px;
    }
}

@media (max-width: 520px) {
    .club-members-hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .club-members-stat {
        padding: 14px 12px;
        border-radius: 16px;
    }

    .club-members-stat__label {
        font-size: 0.8rem;
        line-height: 1.35;
        overflow-wrap: break-word;
    }

    .club-members-mobile-card__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .club-members-filters__actions > * {
        flex: 1 1 100%;
    }

    .club-members-mobile-card__label,
    .club-members-mobile-card__value {
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: manual;
    }

    .club-balance-ledger__title-row,
    .club-balance-ledger__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .club-invites-inline-card__button-group {
        grid-template-columns: minmax(0, 1fr);
    }

    .club-invites-file-picker {
        gap: 8px;
    }
}

@media (max-width: 420px) {
    body.body--club-panel .feedback-widget {
        right: var(--spacing-md);
        bottom: calc(84px + env(safe-area-inset-bottom));
    }

    body.body--club-panel .feedback-chat-widget {
        right: var(--spacing-sm);
        left: var(--spacing-sm);
        width: auto;
        bottom: calc(136px + env(safe-area-inset-bottom));
        max-height: min(70vh, calc(100vh - 170px - env(safe-area-inset-bottom)));
    }

    .club-members-mobile-card {
        gap: 10px;
    }

    .club-members-mobile-card__grid {
        grid-template-columns: 1fr;
    }

    .club-members-mobile-card__grid > div + div {
        border-left: 0;
        border-top: 1px solid rgba(201, 168, 76, 0.12);
    }

    .club-members-mobile-card__actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .club-invites-mobile-card__top {
        flex-direction: column;
    }
}

/* --------------------------------------------------------------------------
   Создание турнира клуба
   -------------------------------------------------------------------------- */
.club-tournament-create {
    max-width: 1120px;
    margin-inline: auto;
}

.club-tournament-create-header {
    padding-bottom: var(--spacing-xl);
}

.club-tournament-create__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
    gap: var(--spacing-xl);
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border-radius: 28px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    background:
        radial-gradient(circle at top left, rgba(201, 168, 76, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.14), transparent 30%),
        linear-gradient(145deg, rgba(3, 35, 24, 0.96), rgba(4, 28, 21, 0.98));
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.24);
}

.club-tournament-create__eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.12);
    color: #f8e7b8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.club-tournament-create__title {
    margin: 0 0 10px;
    text-align: left;
}

.club-tournament-create__subtitle {
    margin: 0;
    max-width: 52rem;
    text-align: left;
    color: rgba(226, 232, 240, 0.84);
}

.club-tournament-create__hero-side {
    display: grid;
    gap: 12px;
}

.club-tournament-create__hero-stat {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.club-tournament-create__hero-stat-label {
    display: block;
    margin-bottom: 6px;
    color: rgba(203, 213, 225, 0.66);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.club-tournament-create__hero-stat strong {
    color: #f8fafc;
    font-size: 1rem;
}

.club-tournament-create__backline {
    margin-bottom: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.club-tournament-create__backlink {
    color: #f9e7b0;
    text-decoration: none;
}

.club-tournament-create__limit-warning {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.24);
    color: #fcd34d;
    font-size: 0.88rem;
    font-weight: 600;
}

.club-tournament-create__form-card {
    border-color: rgba(201, 168, 76, 0.28);
    background:
        linear-gradient(180deg, rgba(4, 31, 22, 0.98), rgba(3, 26, 19, 0.99));
}

.club-tournament-create__form-body {
    padding: clamp(1.2rem, 2.3vw, 1.8rem);
    display: grid;
    gap: var(--spacing-xl);
}

.club-tournament-create__section {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(201, 168, 76, 0.14);
    background: rgba(255, 255, 255, 0.025);
}

.club-tournament-create__section-head {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.club-tournament-create__section-title {
    margin: 0;
    color: #f8fafc;
    font-family: var(--club-font-heading);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.club-tournament-create__section-text {
    margin: 0;
    max-width: 44rem;
    color: rgba(203, 213, 225, 0.74);
    font-size: 0.9rem;
}

.club-tournament-create__grid {
    display: grid;
    gap: 16px;
}

.club-tournament-create__grid--basic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.club-tournament-create__grid--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.club-tournament-create__grid--quad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.club-tournament-create__grid--points {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.club-tournament-create__field {
    min-width: 0;
}

.club-tournament-create__field--wide {
    grid-column: 1 / -1;
}

.club-tournament-create__field .form-label {
    color: rgba(226, 232, 240, 0.92);
    font-weight: 600;
}

.club-tournament-create__field .form-control,
.club-tournament-create__field select.form-control,
.club-tournament-create__field textarea.form-control {
    min-height: 50px;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(201, 168, 76, 0.18);
}

.club-tournament-create__field textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.club-tournament-create__help,
.club-tournament-create__toggle-help {
    margin: 7px 0 0;
    color: rgba(203, 213, 225, 0.66);
    font-size: 0.8rem;
    line-height: 1.5;
}

.club-tournament-create__error {
    margin: 7px 0 0;
    color: #fca5a5;
    font-size: 0.82rem;
}

.club-tournament-create__toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(201, 168, 76, 0.16);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.club-tournament-create__toggle-row input[type="checkbox"] {
    margin-top: 3px;
}

.club-tournament-create__toggle-title {
    display: block;
    color: #f8fafc;
    font-weight: 700;
}

.club-tournament-create__checkbox-panel {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.club-tournament-create__checkbox-panel > div,
.club-tournament-create__checkbox-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.club-tournament-create__checkbox-panel > div > div,
.club-tournament-create__checkbox-panel li {
    min-width: 0;
}

.club-tournament-create__checkbox-panel > div > div label,
.club-tournament-create__checkbox-panel li label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(201, 168, 76, 0.16);
    background: rgba(255, 255, 255, 0.02);
    color: #f8fafc;
    cursor: pointer;
}

.club-tournament-create__checkbox-panel input[type="checkbox"] {
    accent-color: #c9a84c;
}

.club-tournament-create__actions {
    display: flex;
    justify-content: flex-start;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.club-tournament-create__actions .btn {
    min-width: 180px;
}

@media (max-width: 1024px) {
    .club-tournament-create__hero {
        grid-template-columns: 1fr;
    }

    .club-tournament-create__grid--triple,
    .club-tournament-create__grid--quad,
    .club-tournament-create__grid--points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .club-tournament-create__checkbox-panel ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .club-tournament-create-header {
        padding-top: 8px;
    }

    .club-tournament-create__title,
    .club-tournament-create__subtitle {
        text-align: center;
    }

    .club-tournament-create__hero-copy {
        text-align: center;
    }

    .club-tournament-create__grid--basic,
    .club-tournament-create__grid--triple,
    .club-tournament-create__grid--quad,
    .club-tournament-create__grid--points,
    .club-tournament-create__checkbox-panel > div,
    .club-tournament-create__checkbox-panel ul {
        grid-template-columns: 1fr;
    }

    .club-tournament-create__section {
        padding: 14px;
        border-radius: 16px;
    }

    .club-tournament-create__actions .btn {
        width: 100%;
    }
}

.club-payments-page {
    padding: 8px 0 56px;
}

.club-payments-page__container {
    display: grid;
    gap: 28px;
}

.club-payments-page__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.club-payments-page__copy,
.club-payments-card {
    border: 1px solid rgba(201, 168, 76, 0.18);
    background:
        linear-gradient(180deg, rgba(10, 42, 30, 0.92), rgba(6, 29, 21, 0.96));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.club-payments-page__copy {
    padding: 28px;
    border-radius: 28px;
}

.club-payments-page__hero--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.club-payments-page__help {
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background:
        linear-gradient(180deg, rgba(16, 53, 38, 0.9), rgba(9, 37, 27, 0.96));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.club-payments-page__help-title {
    margin: 0;
    color: #f8fafc;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
}

.club-payments-page__help-list {
    margin: 18px 0 0;
    padding-left: 20px;
    color: rgba(226, 232, 240, 0.84);
    display: grid;
    gap: 12px;
    line-height: 1.7;
}

.club-payments-page__help-list li::marker {
    color: #c9a84c;
    font-weight: 700;
}

.club-payments-page__eyebrow,
.club-payments-card__eyebrow {
    margin-bottom: 10px;
    color: rgba(201, 168, 76, 0.78);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.club-payments-page__title {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.96;
}

.club-payments-page__subtitle {
    max-width: 620px;
    margin: 18px 0 0;
    color: rgba(226, 232, 240, 0.82);
    font-size: 1rem;
    line-height: 1.7;
}

.club-payments-page__status-row,
.club-payments-page__links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.club-payments-page__status-row {
    margin-top: 22px;
}

.club-payments-page__links {
    margin-top: 20px;
}

.club-payments-page__form-shell {
    display: block;
}

.club-payments-page__note {
    max-width: 760px;
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(201, 168, 76, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(226, 232, 240, 0.86);
}

.club-payments-page__note p {
    margin: 0;
    line-height: 1.7;
}

.club-payments-page__note p + p {
    margin-top: 10px;
}

.club-payments-status,
.club-payments-page__shop,
.club-payments-card__state {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    font-weight: 700;
}

.club-payments-status {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.04);
}

.club-payments-status--connected,
.club-payments-card__state--ok {
    color: #e9ffd6;
    background: rgba(38, 92, 56, 0.4);
    border-color: rgba(111, 211, 146, 0.34);
}

.club-payments-status--idle {
    color: #fde68a;
    background: rgba(131, 93, 9, 0.22);
}

.club-payments-status__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #facc15;
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.45);
    animation: club-payments-pulse 1.8s infinite;
}

.club-payments-status--connected .club-payments-status__dot {
    background: #86efac;
    box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.4);
}

.club-payments-page__shop,
.club-payments-card__state {
    color: rgba(226, 232, 240, 0.88);
    background: rgba(255, 255, 255, 0.04);
}

.club-payments-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 6px 8px 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    font-weight: 700;
    cursor: pointer;
}

.club-payments-switch__label {
    white-space: nowrap;
}

.club-payments-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.club-payments-switch__track {
    position: relative;
    flex: 0 0 auto;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    border: 1px solid rgba(148, 163, 184, 0.28);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.club-payments-switch__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f8fafc;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

.club-payments-switch input[type="checkbox"]:checked + .club-payments-switch__track {
    background: rgba(38, 92, 56, 0.62);
    border-color: rgba(111, 211, 146, 0.4);
}

.club-payments-switch input[type="checkbox"]:checked + .club-payments-switch__track .club-payments-switch__thumb {
    transform: translateX(22px);
    background: #86efac;
}

.club-payments-switch input[type="checkbox"]:focus-visible + .club-payments-switch__track {
    outline: 2px solid rgba(111, 211, 146, 0.7);
    outline-offset: 2px;
}

.club-payments-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 24px;
}

.club-payments-grid--single {
    grid-template-columns: minmax(0, 760px);
}

.club-payments-card {
    padding: 24px;
    border-radius: 28px;
}

.club-payments-card--form,
.club-payments-card--ledger {
    min-width: 0;
}

.club-payments-card__header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.club-payments-card__title {
    margin: 0;
    color: #f8fafc;
    font-size: 1.4rem;
    font-weight: 800;
}

.club-payments-form {
    display: grid;
    gap: 18px;
}

.club-payments-form__field {
    display: grid;
    gap: 8px;
}

.club-payments-webhook {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.club-payments-webhook__value {
    display: block;
    overflow-wrap: anywhere;
    color: #f8fafc;
    font-size: 0.96rem;
    line-height: 1.65;
}

.club-payments-form__label {
    color: rgba(248, 250, 252, 0.94);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.club-payments-form__control {
    min-height: 56px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    font-size: 1rem;
    box-shadow: none;
}

select.club-payments-form__control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 48px;
    background-color: rgba(255, 255, 255, 0.05);
    background-image: linear-gradient(45deg, transparent 50%, rgba(248, 250, 252, 0.82) 50%), linear-gradient(135deg, rgba(248, 250, 252, 0.82) 50%, transparent 50%);
    background-position: calc(100% - 22px) calc(50% - 2px), calc(100% - 16px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

select.club-payments-form__control option {
    background: #173b2d;
    color: #f8fafc;
}

.club-payments-form__control:focus {
    border-color: rgba(201, 168, 76, 0.46);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.14);
}

.club-payments-form__hint {
    color: rgba(226, 232, 240, 0.68);
    line-height: 1.65;
}

.club-payments-form__hint,
.club-payments-form__error {
    font-size: 0.9rem;
}

.club-payments-form__error {
    color: #fca5a5;
}

.club-payments-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
}

.club-payments-check--ok {
    border-color: rgba(111, 211, 146, 0.34);
    background: rgba(38, 92, 56, 0.26);
}

.club-payments-check--error {
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(120, 34, 34, 0.22);
}

.club-payments-check__icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.club-payments-check__icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
}

.club-payments-form__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.club-payments-form__inline {
    display: inline-flex;
}

.club-payments-form__actions .btn {
    min-width: 220px;
}

.club-notification-settings__destinations {
    margin-top: 18px;
}

.club-notification-settings__destinations .club-payments-form__hint {
    display: block;
    margin-top: 6px;
}

.club-notification-settings-page__check {
    margin-top: 16px;
}

.club-notification-settings__form {
    display: grid;
    gap: 20px;
}

.club-notification-settings__options {
    display: grid;
    gap: 14px;
}

.club-notification-settings__option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(201, 168, 76, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.club-notification-settings__option-copy {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.club-notification-settings__option-title {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.club-notification-settings__option .club-payments-switch {
    flex: 0 0 auto;
}

.club-notification-settings__inline-link {
    color: #fff0c0;
    text-decoration: underline;
    text-decoration-color: rgba(201, 168, 76, 0.5);
    text-underline-offset: 2px;
}

.club-notification-settings__inline-link:hover {
    color: #ffffff;
}

.club-fees-ledger {
    display: grid;
    gap: 12px;
}

.club-fees-ledger__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.club-fees-ledger__main,
.club-fees-ledger__side {
    min-width: 0;
}

.club-fees-ledger__name,
.club-fees-ledger__amount {
    color: #f8fafc;
    font-weight: 700;
}

.club-fees-ledger__name {
    overflow-wrap: anywhere;
}

.club-fees-ledger__meta,
.club-fees-ledger__date,
.club-fees-ledger__empty {
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.88rem;
    line-height: 1.5;
}

.club-fees-ledger__side {
    display: grid;
    gap: 4px;
    text-align: right;
}

.club-fees-ledger__empty {
    margin: 0;
}

.club-my-tournaments-page__container {
    max-width: 980px;
}

.club-my-tournaments-page__alert {
    margin-top: -8px;
}

.club-my-tournaments-page__alert-copy {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.club-my-tournaments-page__tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.club-my-tournaments-page__tab {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.14);
    color: rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.03);
    font-weight: 700;
    text-decoration: none;
}

.club-my-tournaments-page__tab--active,
.club-my-tournaments-page__tab:hover {
    color: #f8fafc;
    border-color: rgba(201, 168, 76, 0.34);
    background: rgba(201, 168, 76, 0.12);
}

.club-my-tournaments-page__table .club-dashboard-table__head,
.club-my-tournaments-page__table .club-dashboard-table__row {
    grid-template-columns: minmax(0, 2fr) minmax(92px, 120px) minmax(110px, 132px) minmax(120px, 148px) minmax(140px, 0.9fr);
}

.club-my-tournaments-page__row .club-dashboard-table__cell--actions {
    gap: 10px;
}

.club-my-tournaments-page__mobile-label {
    display: none;
    color: rgba(226, 232, 240, 0.64);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.club-my-tournaments-page__cancel-form {
    display: inline-flex;
}

.club-my-matches-page__container {
    max-width: 1080px;
}

.club-my-matches-page__tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.club-my-matches-page__tab {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.14);
    color: rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.03);
    font-weight: 700;
    text-decoration: none;
}

.club-my-matches-page__tab--active,
.club-my-matches-page__tab:hover {
    color: #f8fafc;
    border-color: rgba(201, 168, 76, 0.34);
    background: rgba(201, 168, 76, 0.12);
}

.club-my-matches-page .club-payments-page__status-row a {
    text-decoration: none;
}

.club-my-matches-page .club-payments-page__shop--active {
    color: #f8fafc;
    border-color: rgba(201, 168, 76, 0.34);
    background: rgba(201, 168, 76, 0.12);
}

.club-my-tournaments-page .club-payments-page__status-row a {
    text-decoration: none;
}

.club-my-tournaments-page .club-payments-page__shop--active {
    color: #f8fafc;
    border-color: rgba(201, 168, 76, 0.34);
    background: rgba(201, 168, 76, 0.12);
}

.club-my-matches-page__table .club-dashboard-table__head,
.club-my-matches-page__table .club-dashboard-table__row {
    grid-template-columns: minmax(0, 1.8fr) minmax(170px, 1fr) minmax(150px, 0.9fr) minmax(170px, 1fr) minmax(180px, 0.9fr);
}

.club-my-matches-page__mobile-label {
    display: none;
    color: rgba(226, 232, 240, 0.64);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.club-my-matches-page__meta-stack,
.club-my-matches-page__status {
    display: grid;
    gap: 4px;
}

.club-my-matches-page__tournament-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(201, 168, 76, 0.14);
    min-width: 0;
}

.club-my-matches-page__tournament-footer-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.3;
}

.club-my-matches-page__tournament-footer-host {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.club-my-matches-page__tournament-footer-host .tournament-card-host-badge--club {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.club-my-matches-page__tournament-footer-host .tournament-brand-badge {
    font-size: 9px;
    padding: 2px 7px 2px 6px;
    gap: 4px;
}

.club-my-matches-page__tournament-footer-host .tournament-brand-badge__dot {
    width: 5px;
    height: 5px;
}

.club-finance-page .club-payments-grid {
    align-items: start;
}

.club-finance-stack {
    display: grid;
    gap: 24px;
}

.club-finance-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.club-finance-summary--fee {
    grid-template-columns: minmax(0, 1fr);
}

.club-finance-summary__item {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 76, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.club-finance-summary__label {
    color: rgba(226, 232, 240, 0.64);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.club-finance-summary__value {
    color: #f8fafc;
    font-size: 1.02rem;
    line-height: 1.4;
}

.club-finance-meter {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.club-finance-meter + .club-payments-form__actions {
    margin-top: 20px;
}

.club-finance-summary + .club-payments-form__actions,
.club-payments-check + .club-payments-form__actions,
.club-payments-form__hint + .club-payments-form__actions {
    margin-top: 20px;
}

.club-finance-meter__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(226, 232, 240, 0.82);
}

.club-finance-section {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(201, 168, 76, 0.14);
}

.club-finance-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.club-finance-section__title {
    margin: 6px 0 0;
    color: #f8fafc;
    font-size: 1.35rem;
    line-height: 1.2;
}

.club-finance-payments {
    display: grid;
    gap: 12px;
}

.club-cashbox-filters {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.club-cashbox-filters__grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.7fr) repeat(4, minmax(150px, 1fr));
    gap: 12px;
    align-items: end;
}

.club-cashbox-filters__field {
    display: grid;
    gap: 8px;
}

.club-cashbox-filters__field--search {
    grid-column: auto;
}

.club-cashbox-filters__field > span {
    color: rgba(226, 232, 240, 0.74);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.club-cashbox-filters__field input,
.club-cashbox-filters__field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    min-height: 44px;
    padding: 0 42px 0 14px;
    border: 1px solid rgba(201, 168, 76, 0.16);
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.04);
    background-image: linear-gradient(45deg, transparent 50%, rgba(248, 250, 252, 0.82) 50%), linear-gradient(135deg, rgba(248, 250, 252, 0.82) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    color: #f8fafc;
}

.club-cashbox-filters__field input::placeholder {
    color: rgba(226, 232, 240, 0.52);
}

.club-cashbox-filters__field input:focus,
.club-cashbox-filters__field select:focus {
    outline: none;
    border-color: rgba(201, 168, 76, 0.34);
    box-shadow: 0 0 0 3px rgba(190, 149, 78, 0.12);
}

.club-cashbox-filters__field select option {
    background: #173b2d;
    color: #f8fafc;
}

.club-cashbox-filters__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.club-payment-row {
    display: grid;
    grid-template-rows: minmax(88px, auto) auto;
    gap: 14px;
    min-height: 160px;
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 20px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.club-payment-row:hover,
.club-payment-row:focus-visible {
    border-color: rgba(201, 168, 76, 0.34);
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    outline: none;
}

.club-payment-row__main,
.club-payment-row__footer {
    display: grid;
    gap: 12px;
}

.club-payment-row__main {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.club-payment-row__main > :first-child {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 6px;
}

.club-payment-row__footer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(201, 168, 76, 0.12);
}

.club-payment-row__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.club-payment-row__title {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.35;
    min-height: calc(1.35em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.club-payment-row__subtitle,
.club-payment-row__date {
    color: rgba(226, 232, 240, 0.64);
}

.club-payment-row__subtitle {
    min-height: 1.45em;
    line-height: 1.45;
}

.club-payment-row__meta {
    min-width: 146px;
    display: grid;
    justify-items: end;
    align-content: start;
    gap: 8px;
    text-align: right;
}

.club-payment-row__amount {
    font-weight: 700;
    color: #f6d98d;
    white-space: nowrap;
}

.club-payment-row__date,
.club-payment-row__link {
    white-space: nowrap;
}

.club-payment-row__chip {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    width: fit-content;
    max-width: 100%;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(190, 149, 78, 0.14);
    border: 1px solid rgba(190, 149, 78, 0.35);
    color: #f6d98d;
    font-size: 0.85rem;
    font-weight: 700;
}

.club-payment-row__chip--subtle {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(226, 232, 240, 0.82);
}

.club-player-plans-page__grid {
    display: grid;
    gap: 20px;
}

.club-player-plans-page__toggle-form {
    margin: 0;
}

.club-player-plans-table .club-dashboard-table__head,
.club-player-plans-table .club-dashboard-table__row {
    grid-template-columns: minmax(0, 2fr) minmax(120px, 0.9fr) minmax(130px, 1fr) minmax(120px, 0.9fr) minmax(120px, 0.8fr);
}

.club-player-plans-table__row {
    align-items: start;
}

.club-player-plans-table__mobile-label {
    display: none;
    margin: 0 0 4px;
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.club-player-plans-empty {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px dashed rgba(201, 168, 76, 0.18);
    color: rgba(226, 232, 240, 0.72);
    background: rgba(255, 255, 255, 0.025);
}

.club-payment-row__link {
    color: #f6d98d;
    font-weight: 600;
}

.club-payment-detail-modal {
    width: min(560px, calc(100vw - 32px));
}

.club-payment-detail-modal__status {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(31, 140, 66, 0.18);
    border: 1px solid rgba(31, 140, 66, 0.35);
    color: #85d29f;
    font-size: 0.85rem;
    font-weight: 700;
}

.club-payment-detail-modal__list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.club-payment-detail-modal__list .club-payment-row__detail {
    display: grid;
    grid-template-columns: minmax(130px, 160px) 1fr;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.club-payment-detail-modal__list dt {
    margin: 0;
    color: rgba(226, 232, 240, 0.64);
}

.club-payment-detail-modal__list dd {
    margin: 0;
    color: #f8fafc;
    word-break: break-word;
}

@keyframes club-payments-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 currentColor;
    }
    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 14px rgba(0, 0, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

@media (max-width: 1024px) {
    .club-payments-page__hero,
    .club-payments-grid {
        grid-template-columns: 1fr;
    }

    .club-cashbox-filters__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .club-cashbox-filters__field--search {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .club-payments-page {
        padding-bottom: 110px;
    }

    .club-payments-page__copy,
    .club-payments-page__help,
    .club-payments-card {
        padding: 18px;
        border-radius: 22px;
    }

    .club-payments-card__header {
        flex-direction: column;
    }

    .club-payments-form__actions .btn {
        width: 100%;
        min-width: 0;
    }

    .club-notification-settings__option {
        flex-direction: column;
    }

    .club-notification-settings__option .club-payments-switch {
        width: 100%;
        justify-content: space-between;
    }

    .club-fees-ledger__item {
        grid-template-columns: 1fr;
    }

    .club-fees-ledger__side {
        text-align: left;
    }

    .club-payment-row {
        grid-template-rows: auto auto;
        min-height: 0;
        padding: 16px;
    }

    .club-cashbox-filters {
        gap: 12px;
        padding: 14px;
        border-radius: 18px;
    }

    .club-cashbox-filters__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .club-cashbox-filters__field--search {
        grid-column: auto;
    }

    .club-cashbox-filters__field {
        gap: 6px;
    }

    .club-cashbox-filters__field > span {
        font-size: 0.74rem;
        letter-spacing: 0.1em;
    }

    .club-cashbox-filters__field input,
    .club-cashbox-filters__field select {
        min-height: 42px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .club-cashbox-filters__actions .btn {
        width: 100%;
        min-width: 0;
        min-height: 40px;
    }

    .club-payment-row__main,
    .club-payment-row__footer {
        grid-template-columns: minmax(0, 1fr);
    }

    .club-payment-row__meta {
        min-width: 0;
        justify-items: start;
        text-align: left;
    }

    .club-payment-row__title {
        min-height: 0;
    }

    .club-my-tournaments-page__alert-copy {
        align-items: flex-start;
    }

    .club-my-matches-page__tab,
    .club-my-tournaments-page__tab {
        width: 100%;
        justify-content: center;
    }

    .club-my-matches-page__table .club-dashboard-table__row,
    .club-my-tournaments-page__table .club-dashboard-table__row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .club-my-matches-page__table .club-dashboard-table__cell,
    .club-my-tournaments-page__table .club-dashboard-table__cell {
        display: grid;
        gap: 4px;
    }

    .club-my-matches-page__table .club-dashboard-table__cell--title,
    .club-my-matches-page__table .club-dashboard-table__cell--actions,
    .club-my-tournaments-page__table .club-dashboard-table__cell--title,
    .club-my-tournaments-page__table .club-dashboard-table__cell--actions {
        grid-column: 1 / -1;
    }

    .club-my-tournaments-page__meta-cell {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 6px;
    }

    .club-my-tournaments-page__table .club-dashboard-table__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .club-my-matches-page__mobile-label,
    .club-my-tournaments-page__mobile-label {
        display: block;
        margin: 0;
    }

    .club-my-matches-page__row .club-dashboard-table__cell--actions,
    .club-my-tournaments-page__row .club-dashboard-table__cell--actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 8px;
    }

    .club-my-matches-page__row .club-dashboard-table__cell--actions .btn,
    .club-my-tournaments-page__row .club-dashboard-table__cell--actions .btn {
        width: 100%;
        min-width: 0;
    }

    .club-my-tournaments-page__cancel-form {
        display: block;
        width: 100%;
    }

    .club-my-tournaments-page__cancel-form .btn {
        width: 100%;
    }

    .club-my-matches-page__table .club-dashboard-table__cell:not(.club-dashboard-table__cell--title):not(.club-dashboard-table__cell--actions),
    .club-my-tournaments-page__table .club-dashboard-table__cell:not(.club-dashboard-table__cell--title):not(.club-dashboard-table__cell--actions) {
        min-height: 56px;
        padding: 10px 12px;
        border-radius: 14px;
        border: 1px solid rgba(201, 168, 76, 0.1);
        background: rgba(255, 255, 255, 0.025);
    }

    .club-finance-summary {
        grid-template-columns: 1fr;
    }

    .club-finance-section__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .club-payment-row {
        padding: 14px;
    }

    .club-payment-row__meta {
        text-align: left;
    }

    .club-player-plans-table .club-dashboard-table__row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .club-player-plans-table__mobile-label {
        display: block;
    }

    .club-player-plans-table .club-dashboard-table__cell {
        display: grid;
        gap: 4px;
    }

    .club-player-plans-table .club-dashboard-table__cell--title,
    .club-player-plans-table .club-dashboard-table__cell--actions {
        grid-column: 1 / -1;
    }

    .club-player-plans-table .club-dashboard-table__cell--actions {
        justify-content: flex-start;
    }

    .club-player-plans-table .club-dashboard-table__cell--actions .btn {
        width: 100%;
        min-width: 0;
    }

    .club-payment-detail-modal__list .club-payment-row__detail {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .club-payments-page__title {
        font-size: 2rem;
    }
}

/* END club-dashboard.css */

/* BEGIN modals.css */

/*
 * modals.css
 *
 * Описание: Базовая обвязка модальных окон: оверлей, контейнер, текст и блок действий.
 * Компоненты: .modal-overlay, .modal-dialog, .modal-dialog__title, .modal-dialog__text, .modal-dialog__actions
 * Используется на: страницы и компоненты с подтверждениями и диалогами
 *
 * Последнее обновление: 2026-03
 */

/* --- Modal overlay --- */
.modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10001 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(0 0 0 / 50%);
    padding: var(--spacing-md);
    overflow-y: auto;
}

.modal-dialog {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    max-width: 440px;
    width: 100%;
    box-shadow: 0 8px 32px rgb(0 0 0 / 24%);
    position: relative;
    z-index: 10002;
}

.modal-dialog__title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
}

.modal-dialog__text {
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.modal-dialog__actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

/* --- Club leave modal --- */
.club-leave-modal,
.club-confirm-modal {
    background:
        radial-gradient(circle at top left, rgb(0 141 92 / 18%), transparent 32%),
        radial-gradient(circle at bottom right, rgb(212 168 84 / 16%), transparent 28%),
        rgb(0 0 0 / 62%);
    backdrop-filter: blur(10px);
}

.club-leave-modal__dialog,
.club-confirm-modal__dialog {
    max-width: 520px;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgb(212 168 84 / 22%);
    background:
        linear-gradient(180deg, rgb(7 50 38 / 98%), rgb(3 31 23 / 98%));
    box-shadow:
        0 30px 80px rgb(0 0 0 / 48%),
        inset 0 1px 0 rgb(255 255 255 / 5%);
}

.club-leave-modal__eyebrow,
.club-confirm-modal__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding: 0.35rem 0.7rem;
    border: 1px solid rgb(212 168 84 / 28%);
    border-radius: 999px;
    color: rgb(233 200 126);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgb(212 168 84 / 10%);
}

.club-leave-modal__title,
.club-confirm-modal__title {
    margin-bottom: var(--spacing-sm);
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.1;
    color: #f4efe6;
}

.club-leave-modal__text,
.club-confirm-modal__text {
    margin-bottom: var(--spacing-lg);
    color: rgb(218 225 220 / 92%);
    font-size: 1rem;
    line-height: 1.7;
}

.club-leave-modal__note,
.club-confirm-modal__note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgb(255 255 255 / 8%);
    border-radius: 1rem;
    background: rgb(255 255 255 / 4%);
    color: rgb(200 214 207 / 88%);
    font-size: 0.92rem;
    line-height: 1.55;
}

.club-leave-modal__note-icon,
.club-confirm-modal__note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    flex: 0 0 1.8rem;
    border-radius: 999px;
    background: rgb(212 168 84 / 16%);
    color: rgb(233 200 126);
    font-weight: 700;
}

.club-leave-modal__actions,
.club-confirm-modal__actions {
    margin-top: var(--spacing-xl);
    justify-content: flex-end;
    gap: 0.75rem;
}

.club-leave-modal__btn,
.club-confirm-modal__btn {
    min-height: 46px;
    padding-inline: 1rem;
    border-radius: 0.95rem;
}

.club-leave-modal__btn--primary,
.club-confirm-modal__btn--primary {
    min-width: 150px;
}

.club-leave-modal__btn--secondary,
.club-confirm-modal__btn--secondary {
    background: transparent;
    border-color: rgb(212 168 84 / 42%);
    color: rgb(233 200 126);
}

.club-leave-modal__btn--secondary:hover,
.club-confirm-modal__btn--secondary:hover {
    background: rgb(212 168 84 / 10%);
}

@media (max-width: 640px) {
    .club-leave-modal,
    .club-confirm-modal {
        padding: 1rem;
        align-items: flex-end;
    }

    .club-leave-modal__dialog,
    .club-confirm-modal__dialog {
        max-width: none;
        border-radius: 1.25rem 1.25rem 0.9rem 0.9rem;
        padding: 1.15rem 1rem 1rem;
    }

    .club-leave-modal__title,
    .club-confirm-modal__title {
        font-size: 1.35rem;
    }

    .club-leave-modal__text,
    .club-confirm-modal__text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .club-leave-modal__actions,
    .club-confirm-modal__actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .club-leave-modal__btn,
    .club-confirm-modal__btn {
        width: 100%;
        justify-content: center;
    }
}

/* END modals.css */

/* BEGIN rating.css */

/*
 * rating.css
 *
 * Описание: Визуальные индикаторы изменения рейтинга и очков в матчах/профиле.
 * Компоненты: .rating-badge, .rating-badge__value, .rating-badge__arrow, .match-fan-delta, .match-points-display
 * Используется на: профиль игрока, карточки и детали матчей
 *
 * Последнее обновление: 2026-03
 */

/* Rating Badge */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 10px;
    background: #000;
    border-radius: 8px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.rating-badge__arrow {
    font-size: var(--font-size-xs);
    line-height: 1;
    font-weight: 700;
}

.rating-badge__arrow--up {
    color: rgb(14, 203, 129);
}

.rating-badge__arrow--down {
    color: rgb(230, 67, 90);
}

.rating-badge__value {
    color: #fff;
}

.rating-badge__value--up {
    color: rgb(14, 203, 129);
}

.rating-badge__value--down {
    color: rgb(230, 67, 90);
}

.rating-badge__value--none {
    color: inherit;
}

/* В контексте rating-badge тёмный фон — для none оставляем белый */
.rating-badge .rating-badge__value--none {
    color: #fff;
}

.rating-badge__separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 2px;
}

.rating-badge__delta {
    margin-left: 2px;
    font-size: 0.9em;
    opacity: 0.95;
}

.rating-stat-delta {
    margin-left: 2px;
    font-size: 0.85em;
    font-weight: 600;
}

.stat-value--rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.stat-value--rating .rating-badge__arrow {
    font-size: 0.85em;
}

/* Match FAN delta (результат за матч) */
.match-fan-delta {
    display: inline-flex;
    align-items: center;
    font-size: var(--font-size-xs);
    font-weight: 600;
    line-height: 1.2;
}
.match-fan-delta--up {
    color: rgb(14, 203, 129);
}
.match-fan-delta--down {
    color: rgb(230, 67, 90);
}
.match-fan-delta--neutral {
    color: var(--color-text-muted);
}

.match-points-display {
    font-size: var(--font-size-sm);
    font-weight: 600;
}
.match-points--up {
    color: rgb(14, 203, 129);
}
.match-points--down {
    color: rgb(230, 67, 90);
}
.match-points--neutral {
    color: var(--color-text-muted);
}

.match-season-points {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* END rating.css */

/* BEGIN chat.css */

/*
 * chat.css
 *
 * Описание: Виджет чата обратной связи с областью сообщений, заголовком и формой ввода.
 * Компоненты: .feedback-chat-widget, .feedback-chat-widget__header, .feedback-chat-widget__messages, .feedback-chat-widget__message, .feedback-chat-widget__form
 * Используется на: страницы с плавающим чатом обратной связи
 *
 * Последнее обновление: 2026-03
 */

/* Виджет чата */
.feedback-chat-widget {
    position: fixed;
    right: var(--spacing-lg);
    bottom: calc(var(--spacing-lg) + 60px); /* Над кнопкой */
    width: 380px;
    max-height: 500px;
    z-index: 1001;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: visibility 0.2s, opacity 0.2s, transform 0.2s;
    overflow: hidden;
}

.feedback-chat-widget[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.feedback-chat-widget__header {
    flex-shrink: 0;
    border-bottom: 1px solid var(--color-border-light);
    background: var(--color-bg-card);
}

.feedback-chat-widget__header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
}

.feedback-chat-widget__title {
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.feedback-chat-widget__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0 var(--spacing-xs);
    transition: color 0.2s;
}

.feedback-chat-widget__close:hover {
    color: var(--color-text);
}

.feedback-chat-widget__telegram-banner {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--color-primary-light);
    border-top: 1px solid var(--color-border-light);
}

.feedback-chat-widget__telegram-text {
    margin: 0;
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.feedback-chat-widget__telegram-link {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
    white-space: nowrap;
}

.feedback-chat-widget__telegram-link:hover {
    color: var(--color-primary-dark);
}

/* Область сообщений с прокруткой */
.feedback-chat-widget__messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 200px;
    max-height: 350px;
    background: var(--color-bg);
}

.feedback-chat-widget__messages-list {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.feedback-chat-widget__welcome {
    padding: var(--spacing-md);
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.feedback-chat-widget__message {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    max-width: 80%;
    animation: feedback-message-appear 0.2s ease-out;
}

@keyframes feedback-message-appear {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-chat-widget__message--user {
    align-self: flex-end;
    align-items: flex-end;
}

.feedback-chat-widget__message--admin {
    align-self: flex-start;
    align-items: flex-start;
}

.feedback-chat-widget__message-bubble {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    word-wrap: break-word;
    line-height: 1.5;
}

.feedback-chat-widget__message--user .feedback-chat-widget__message-bubble {
    background: var(--color-primary);
    color: var(--color-bg);
    border-bottom-right-radius: var(--radius-xs);
}

.feedback-chat-widget__message--admin .feedback-chat-widget__message-bubble {
    background: var(--color-bg-elevated);
    color: var(--color-text);
    border: 1px solid var(--color-border-light);
    border-bottom-left-radius: var(--radius-xs);
}

.feedback-chat-widget__message-time {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    padding: 0 var(--spacing-xs);
}

.feedback-chat-widget__message-status {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    padding: 0 var(--spacing-xs);
    font-style: italic;
}

/* Форма для гостей (показывается только один раз) */
.feedback-chat-widget__guest-form {
    flex-shrink: 0;
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--color-border-light);
    background: var(--color-bg-elevated);
    display: none;
}

.feedback-chat-widget__guest-form--visible {
    display: block;
}

.feedback-chat-widget__guest-form .form-group {
    margin-bottom: var(--spacing-sm);
}

.feedback-chat-widget__guest-form .form-group:last-child {
    margin-bottom: 0;
}

.feedback-chat-widget__guest-form .form-control {
    font-size: var(--font-size-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
}

/* Поле ввода сообщения */
.feedback-chat-widget__input-area {
    flex-shrink: 0;
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--color-border-light);
    background: var(--color-bg-card);
}

.feedback-chat-widget__input-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs);
}

.feedback-chat-widget__input {
    flex: 1;
    border: none;
    background: transparent;
    padding: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    resize: none;
    outline: none;
}

.feedback-chat-widget__input::placeholder {
    color: var(--color-text-muted);
}

.feedback-chat-widget__send-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-bg);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.feedback-chat-widget__send-btn:hover:not(:disabled) {
    background: var(--color-primary-dark);
    transform: scale(1.05);
}

.feedback-chat-widget__send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.feedback-chat-widget__error {
    margin-top: var(--spacing-xs);
    font-size: var(--font-size-xs);
    color: var(--color-error);
}

/* END chat.css */


/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (width <= 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* Контент новости: абзацы и отступы */
.news-content {
    line-height: 1.6;
}

.news-content p {
    margin: 0 0 1em;
}

.news-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Page Sections
   ========================================================================== */
.page-header {
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    text-align: center;
}

.page-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.page-subtitle {
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto;
}

@media (width <= 768px) {
    .page-header {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
    }

    .page-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-sm);
        padding: 0 var(--spacing-sm);
    }

    .page-subtitle {
        font-size: var(--font-size-base);
        padding: 0 var(--spacing-sm);
    }
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-tournaments-spaced {
    padding-top: var(--spacing-3xl);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

@media (width <= 768px) {
    .section {
        padding: var(--spacing-xl) 0;
    }

    .section-tournaments-spaced {
        padding-top: calc(var(--spacing-xl) * 2);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: var(--spacing-lg);
    }

    .section-title {
        font-size: var(--font-size-xl);
    }
}

/* ==========================================================================
   Grid Layouts
   ========================================================================== */
.grid {
    display: grid;
    gap: var(--spacing-lg);
    align-items: start;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-text-secondary);
}

.text-muted {
    color: var(--color-text-muted);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

.mb-4 {
    margin-bottom: var(--spacing-xl);
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mt-4 {
    margin-top: var(--spacing-xl);
}

.d-flex {
    display: flex;
}

.d-inline {
    display: inline;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-col {
    flex-direction: column;
}

.gap-1 {
    gap: var(--spacing-sm);
}

.gap-2 {
    gap: var(--spacing-md);
}

.gap-3 {
    gap: var(--spacing-lg);
}

.hidden {
    display: none !important;
}

.w-100 {
    width: 100%;
}

.text-error {
    color: var(--color-error);
}

.pagination {
    margin-top: var(--spacing-md);
}

.pagination--center {
    display: flex;
    justify-content: center;
}

.pagination__list {
    display: inline-flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination__item a,
.pagination__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: var(--font-size-sm);
}

.pagination__item a {
    color: var(--color-text-secondary);
    text-decoration: none;
    background: rgba(10, 22, 18, 0.9);
}

.pagination__item a:hover {
    border-color: rgba(139, 240, 167, 0.45);
    color: var(--color-text);
}

.pagination__item--active span {
    border-color: rgba(139, 240, 167, 0.8);
    background: rgba(22, 101, 52, 0.9);
    color: #e5ffe8;
    font-weight: 600;
}
