:root {
    --color-bg: #0f1a14;
    --color-bg-section: rgba(15, 35, 28, 0.88);
    --color-bg-card: rgba(12, 45, 35, 0.75);
    --color-pitch: #1a5c38;
    --color-pitch-light: #2d8f5c;
    --color-accent: #e94560;
    --color-accent-hover: #ff6b6b;
    --color-gold: #f0c040;
    --color-text: #eaeaea;
    --color-text-muted: #9cb0a4;
    --color-border: rgba(61, 202, 122, 0.18);
    --font-main: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --container-width: 1200px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    position: relative;
    min-height: 100vh;
}

.page-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: #0c1812;
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -10%, rgba(38, 110, 68, 0.22) 0%, transparent 55%),
        linear-gradient(180deg, rgba(8, 18, 14, 0.97) 0%, rgba(10, 22, 32, 0.94) 100%),
        repeating-linear-gradient(
            90deg,
            #10261a 0,
            #10261a 72px,
            #0d2117 72px,
            #0d2117 144px
        );
    pointer-events: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-accent);
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 28, 20, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    text-decoration: none;
    color: var(--color-text);
}

.logo-mark {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-image {
    display: block;
    height: 42px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    background: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.logo-subtitle {
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-pitch-light);
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-pitch-light);
    background: rgba(45, 143, 92, 0.1);
}

.header-badge-icon {
    color: var(--color-gold);
    flex-shrink: 0;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--color-accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.2s;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-menu[hidden] {
    display: none;
}

.mobile-menu nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-menu nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
    padding: 1rem;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 8px 16px;
    cursor: pointer;
    font-family: var(--font-main);
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-hero {
    background: transparent;
    padding-top: 0;
}

.hero-banner {
    padding: 3rem 0 2.5rem;
    margin-bottom: 1rem;
    background-color: #1d6b40;
    background-image: repeating-linear-gradient(
        90deg,
        #207248 0,
        #207248 64px,
        #1a6a42 64px,
        #1a6a42 128px
    );
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("../img/football-field-lines.86c0cf4cdb39.svg") center center / cover no-repeat;
    opacity: 0.32;
    pointer-events: none;
}

.hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(
            90deg,
            rgba(5, 16, 11, 0.86) 0%,
            rgba(5, 16, 11, 0.28) 50%,
            rgba(5, 16, 11, 0.72) 100%
        ),
        radial-gradient(ellipse 90% 120% at 50% 110%, rgba(0, 0, 0, 0.28) 0%, transparent 60%);
    pointer-events: none;
}

.hero-banner-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero-icon {
    flex-shrink: 0;
    color: var(--color-pitch-light);
    filter: drop-shadow(0 0 20px rgba(45, 143, 92, 0.35));
}

.hero-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
}

.hero-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
}

.hero-title span {
    color: var(--color-pitch-light);
}

.hero-lead {
    margin: 0;
    max-width: 560px;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.sports-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0 2rem;
}

.sport-tag {
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: rgba(45, 143, 92, 0.08);
}

.sport-tag:first-child {
    color: var(--color-pitch-light);
    border-color: rgba(45, 143, 92, 0.45);
    background: rgba(45, 143, 92, 0.15);
}

.field-value--brand {
    font-weight: 600;
    color: var(--color-pitch-light);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 2rem;
    color: var(--color-text);
}

.section-stats,
.section-contacts {
    background: rgba(8, 20, 15, 0.55);
}

.section-documents,
.section-map {
    background: var(--color-bg-section);
    backdrop-filter: blur(4px);
}

.section-map {
    padding-bottom: 0;
}

/* Company info */
.company-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.company-field {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.field-label {
    color: var(--color-text-muted);
}

.field-value {
    color: var(--color-text);
}

.field-value.license {
    font-weight: 600;
    color: var(--color-accent);
}

.company-text-blocks h3 {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 1rem 0;
}

/* Stats */
.stats-intro {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.stats-list {
    margin: 0 0 2.5rem;
    padding-left: 1.5rem;
}

.stats-list li {
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
}

.stats-counters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 2rem 0 1rem;
}

.stats-counter-item {
    text-align: center;
}

.stats-counter-value {
    line-height: 1;
    margin-bottom: 0.75rem;
}

.stats-counter {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-pitch-light);
    text-shadow: 0 0 40px rgba(45, 143, 92, 0.25);
    font-variant-numeric: tabular-nums;
}

.stats-counter-label {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text);
}

/* Documents */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.document-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.document-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-pitch-light);
    background: rgba(45, 143, 92, 0.12);
}

.document-icon {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.document-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* Contacts */
.contacts-content p {
    margin: 0.5rem 0;
    color: var(--color-text-muted);
}

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

.contacts-content a:hover {
    text-decoration: underline;
}

/* Map */
.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    min-height: 400px;
}

/* Footer */
.site-footer {
    background: rgba(8, 20, 15, 0.85);
    border-top: 1px solid var(--color-border);
    padding: 28px 0;
    text-align: center;
}

.footer-inner p {
    margin: 0.35rem 0;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.footer-brand {
    font-weight: 600;
    color: var(--color-pitch-light) !important;
    letter-spacing: 0.04em;
}

.footer-license {
    font-size: 0.8rem !important;
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 768px) {
    .header-badge {
        display: none;
    }

    .hero-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-lead {
        margin: 0 auto;
    }

    .sports-tags {
        justify-content: center;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .stats-counters {
        gap: 2.5rem;
    }

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

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .company-field {
        flex-direction: column;
    }
}

/* Предупреждение об азартных играх (ТЗ 13409: ≥ 7% площади видимой области) */
.responsible-gaming {
    width: 100%;
    /* полная ширина × 7vh ≈ 7% площади viewport */
    min-height: 7vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(240, 192, 64, 0.14) 0%, rgba(15, 30, 22, 0.95) 28%),
        linear-gradient(180deg, #141f18 0%, #0f1812 100%);
    border-top: 2px solid rgba(240, 192, 64, 0.45);
    border-bottom: 2px solid rgba(240, 192, 64, 0.25);
    padding: 1.25rem 0;
}

.responsible-gaming__inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: max(7vh, 4.5rem);
}

.responsible-gaming__badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-gold);
    background: rgba(240, 192, 64, 0.08);
}

.responsible-gaming__text {
    margin: 0;
    flex: 1;
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    font-weight: 500;
    line-height: 1.55;
    color: #f5f0e6;
    text-align: center;
}

@media (max-width: 600px) {
    .responsible-gaming__inner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 0.5rem 0;
    }

    .responsible-gaming__text {
        font-size: 0.88rem;
    }
}

/*
 * Регуляторные баннеры — ТЗ 13407 / 13410:
 * десктоп: 384×190; мобилка: уменьшенный масштаб.
 * Оба справа в верхней части, друг над другом.
 */
:root {
    --banner-w: 384px;
    --banner-h: 190px;
    --banner-scale: 1;
    --banner-display-w: calc(var(--banner-w) * var(--banner-scale));
    --banner-display-h: calc(var(--banner-h) * var(--banner-scale));
    --banner-inset: 20px;
    --banner-gap: 12px;
    --banner-top: calc(var(--header-height) + 16px);
}

.self-restriction-banner,
.finance-banner {
    position: fixed;
    right: var(--banner-inset);
    z-index: 90;
    display: block;
    box-sizing: border-box;
    width: var(--banner-display-w);
    height: var(--banner-display-h);
    overflow: hidden;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: calc(16px * var(--banner-scale));
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: box-shadow 0.2s ease;
}

/* Самоограничение — верхняя часть страницы */
.self-restriction-banner {
    top: var(--banner-top);
    z-index: 91;
}

/* Финансы — сразу под ним */
.finance-banner {
    top: calc(var(--banner-top) + var(--banner-display-h) + var(--banner-gap));
    z-index: 90;
}

.self-restriction-banner:hover,
.finance-banner:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.self-restriction-banner:focus-visible,
.finance-banner:focus-visible {
    outline: 2px solid var(--color-pitch-light);
    outline-offset: 3px;
}

.self-restriction-banner__inner,
.finance-banner__inner {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: var(--banner-w);
    height: var(--banner-h);
    transform: scale(var(--banner-scale));
    transform-origin: top left;
}

.self-restriction-banner__inner {
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
}

.finance-banner__inner {
    justify-content: center;
    padding: 16px 20px;
}

.self-restriction-banner__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.self-restriction-banner__title {
    display: block;
    font-family: "Lato", sans-serif;
    font-size: 18pt;
    font-weight: 700;
    line-height: 24pt;
    color: #000000;
    text-align: left;
}

.self-restriction-banner__subtitle {
    display: block;
    font-family: "Lato", sans-serif;
    font-size: 12pt;
    font-weight: 400;
    line-height: 16pt;
    color: #000000;
    text-align: left;
}

.self-restriction-banner__icon {
    flex-shrink: 0;
}

.finance-banner__text {
    font-family: "Lato", sans-serif;
    font-size: 16pt;
    font-weight: 400;
    line-height: 24pt;
    color: #000000;
    text-align: center;
}

/* Мобилка: меньше, но та же схема — друг над другом справа сверху */
@media (max-width: 768px) {
    :root {
        --banner-scale: 0.5;
        --banner-inset: 10px;
        --banner-gap: 8px;
        --banner-top: calc(var(--header-height) + 10px);
    }
}

@media (max-width: 400px) {
    :root {
        --banner-scale: 0.42;
        --banner-inset: 8px;
        --banner-gap: 6px;
    }
}
