/* ==========================================================================
   Legends Host — design tokens & themes
   ========================================================================== */

:root {
    --font-heading: 'Cinzel', Georgia, serif;
    --font-display: var(--font-heading);
    --font-body: 'Montserrat', system-ui, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --radius-btn: 10px;

    --header-h: 76px;
    --header-height: var(--header-h);
    --container: 1200px;
    --hero-videos-reserve: clamp(10rem, 24vh, 13rem);
    --hero-videos-bottom: clamp(0.85rem, 2.2vh, 1.35rem);
    --transition: 0.25s ease;

    /* Кнопки — матовое сатиновое золото, лёгкое скругление */
    --btn-primary-bg: linear-gradient(180deg, #c8a25c 0%, #a67d3d 54%, #8a642c 100%);
    --btn-primary-bg-hover: linear-gradient(180deg, #d3ad66 0%, #b08745 54%, #946f34 100%);
    --btn-primary-border: rgba(255, 236, 198, 0.34);
    --btn-primary-text: #2a1a0c;
    --btn-primary-shadow:
        inset 0 1px 0 rgba(255, 244, 220, 0.14),
        0 1px 2px rgba(42, 26, 12, 0.22),
        0 4px 14px rgba(0, 0, 0, 0.24);
    --btn-primary-shadow-hover:
        inset 0 1px 0 rgba(255, 244, 220, 0.18),
        0 2px 4px rgba(42, 26, 12, 0.2),
        0 6px 18px rgba(0, 0, 0, 0.28),
        0 0 22px rgba(197, 160, 89, 0.14);
    --btn-primary-shadow-active:
        inset 0 2px 5px rgba(42, 26, 12, 0.24),
        0 1px 6px rgba(0, 0, 0, 0.18);
    --btn-shine: linear-gradient(180deg, rgba(255, 246, 228, 0.2) 0%, rgba(255, 246, 228, 0.04) 42%, transparent 58%);

    --nav-active-bg: linear-gradient(180deg, rgba(212, 175, 90, 0.22) 0%, rgba(138, 100, 44, 0.14) 100%);
    --nav-active-border: rgba(212, 175, 90, 0.36);
    --nav-active-text: var(--color-gold-bright);
    --nav-active-shadow:
        inset 0 1px 0 rgba(255, 236, 198, 0.1),
        0 0 0 1px rgba(197, 160, 89, 0.14),
        0 2px 12px rgba(197, 160, 89, 0.18);
    --nav-hover-bg: rgba(197, 160, 89, 0.07);
    --nav-hover-border: rgba(197, 160, 89, 0.18);

    --content-bg-image: url('../img/content-bg.jpeg');
    --content-bg-attachment: fixed;
    --content-bg-tone: none;
    --content-bg-overlay-scale: 1;
    --event-featured-media-ratio: 16 / 10;
    --event-featured-media-scrim: linear-gradient(180deg, rgba(2, 1, 1, 0.06) 0%, rgba(2, 1, 1, 0.58) 100%);
}

/* Dark theme — deep brown-black */
[data-theme="dark"] {
    --featured-overlay-scrim: linear-gradient(
        180deg,
        rgba(2, 1, 1, 0.9) 0%,
        rgba(4, 3, 2, 0.64) 38%,
        rgba(4, 3, 2, 0.58) 62%,
        rgba(2, 1, 1, 0.94) 100%
    );
    --news-featured-overlay-img-filter: brightness(0.72) saturate(0.9);
    --featured-overlay-card-bg: #0a0705;
    --featured-overlay-title: #faf6ef;
    --featured-overlay-excerpt: rgba(250, 244, 235, 0.95);
    --featured-overlay-accent: #e8c872;
    --featured-overlay-shadow: 0 1px 2px rgba(0, 0, 0, 0.92), 0 2px 14px rgba(0, 0, 0, 0.68);

    --color-bg: #0a0705;
    --color-bg-elevated: #14100c;
    --color-bg-card: rgba(20, 14, 10, 0.72);
    --color-bg-card-hover: rgba(28, 20, 14, 0.85);

    --color-text: #e8e0d4;
    --color-text-muted: #9a9088;
    --color-text-inverse: #0a0705;

    --color-gold: #d4af5a;
    --color-gold-light: #f0d488;
    --color-gold-bright: #ffe4a8;
    --color-gold-dim: rgba(212, 175, 90, 0.14);
    --color-brown: #3d2b1f;
    --color-brown-light: #5c4033;

    --color-border: rgba(197, 160, 89, 0.28);
    --color-border-strong: rgba(197, 160, 89, 0.5);
    --glass-border: rgba(197, 160, 89, 0.22);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);

    --hero-fade-top: transparent;
    --hero-fade-mid: rgba(10, 7, 5, 0.06);
    --hero-fade-low: rgba(10, 7, 5, 0.2);
    --hero-fade-bottom: rgba(10, 7, 5, 0.72);
    --hero-side-fade: rgba(5, 5, 5, 0.1);
    --hero-bg-tone: none;

    --header-bg: rgba(10, 7, 5, 0.9);
    --header-panel-bg: rgba(14, 10, 7, 0.9);
    --header-blur: blur(22px) saturate(1.35);
    --header-shine: linear-gradient(180deg, rgba(197, 160, 89, 0.08) 0%, transparent 100%);
    --header-line: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.55), transparent);
    --btn-outline-bg: transparent;
    --btn-outline-border: rgba(197, 160, 89, 0.28);
    --btn-outline-border-hover: rgba(197, 160, 89, 0.42);
    --btn-outline-text: rgba(212, 175, 90, 0.82);
    --btn-outline-text-hover: rgba(240, 212, 136, 0.95);
    --status-online: #4ade80;
    --status-offline: #9a9088;

    --subfooter-bg: #040302;
    --subfooter-border: rgba(197, 160, 89, 0.1);
    --subfooter-text: #7a7268;
    --subfooter-link: #9a9088;
    --subfooter-link-hover: var(--color-gold-light);

    --placeholder-bg: linear-gradient(135deg, #1a1209 0%, #2a1f14 50%, #1a1209 100%);
    --placeholder-accent: rgba(197, 160, 89, 0.12);

    --modal-control-bg: rgba(10, 7, 5, 0.85);
    --modal-control-bg-hover: rgba(10, 7, 5, 0.48);
    --modal-control-border: rgba(197, 160, 89, 0.35);

    color-scheme: dark;
}

/* Light theme — milky beige with brown & gold */
[data-theme="light"] {
    --color-bg: #f5f0e8;
    --color-bg-elevated: #ebe4d6;
    --color-bg-card: rgba(255, 252, 247, 0.82);
    --color-bg-card-hover: rgba(255, 255, 255, 0.92);

    --color-text: #2c2218;
    --color-text-muted: #6b5d4f;
    --color-text-inverse: #f5f0e8;

    --color-gold: #8b6914;
    --color-gold-light: #a67c00;
    --color-gold-bright: #c4920a;
    --color-gold-dim: rgba(139, 105, 20, 0.12);
    --color-brown: #5c4033;
    --color-brown-light: #7a5c44;

    --color-border: rgba(92, 64, 51, 0.18);
    --color-border-strong: rgba(92, 64, 51, 0.35);
    --glass-border: rgba(92, 64, 51, 0.15);
    --glass-shadow: 0 8px 32px rgba(44, 34, 24, 0.1);

    --hero-fade-top: transparent;
    --hero-fade-mid: rgba(245, 240, 232, 0.28);
    --hero-fade-low: rgba(245, 240, 232, 0.55);
    --hero-fade-bottom: #f5f0e8;
    --hero-side-fade: rgba(245, 240, 232, 0.18);
    --hero-bg-tone: brightness(1.14) saturate(0.9) contrast(0.96);
    --content-bg-tone: brightness(1.16) saturate(0.92) contrast(0.96);
    --content-bg-overlay-scale: 1;

    --header-bg: rgba(245, 240, 232, 0.9);
    --header-panel-bg: rgba(255, 252, 247, 0.9);
    --header-blur: blur(22px) saturate(1.25);
    --header-shine: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, transparent 100%);
    --header-line: linear-gradient(90deg, transparent, rgba(139, 105, 20, 0.4), transparent);
    --btn-outline-bg: transparent;
    --btn-outline-border: rgba(92, 64, 51, 0.22);
    --btn-outline-border-hover: rgba(92, 64, 51, 0.36);
    --btn-outline-text: rgba(92, 64, 51, 0.82);
    --btn-outline-text-hover: var(--color-brown);

    --nav-active-bg: linear-gradient(180deg, rgba(197, 160, 89, 0.18) 0%, rgba(139, 105, 20, 0.1) 100%);
    --nav-active-border: rgba(139, 105, 20, 0.28);
    --nav-active-text: var(--color-brown);
    --nav-active-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 0 0 1px rgba(139, 105, 20, 0.1),
        0 2px 10px rgba(139, 105, 20, 0.1);
    --nav-hover-bg: rgba(197, 160, 89, 0.1);
    --nav-hover-border: rgba(139, 105, 20, 0.16);

    --status-online: #16a34a;
    --status-offline: #8a7a6a;

    --subfooter-bg: #ddd5c8;
    --subfooter-border: rgba(92, 64, 51, 0.1);
    --subfooter-text: #6b5d4f;
    --subfooter-link: #5c4033;
    --subfooter-link-hover: var(--color-brown);

    --placeholder-bg: linear-gradient(135deg, #e4d9c6 0%, #d6c8ae 50%, #e4d9c6 100%);
    --placeholder-accent: rgba(139, 105, 20, 0.16);

    --modal-control-bg: rgba(245, 240, 232, 0.92);
    --modal-control-bg-hover: rgba(245, 240, 232, 0.55);
    --modal-control-border: rgba(197, 160, 89, 0.35);

    --featured-overlay-scrim: linear-gradient(
        180deg,
        rgba(255, 252, 247, 0.9) 0%,
        rgba(252, 248, 242, 0.64) 38%,
        rgba(252, 248, 242, 0.58) 62%,
        rgba(255, 252, 247, 0.94) 100%
    );
    --news-featured-overlay-img-filter: brightness(0.88) saturate(0.94);
    --featured-overlay-card-bg: #faf6ef;
    --featured-overlay-title: #2c2218;
    --featured-overlay-excerpt: rgba(44, 34, 24, 0.86);
    --featured-overlay-accent: #8b6914;
    --featured-overlay-shadow: 0 1px 2px rgba(255, 255, 255, 0.92), 0 1px 10px rgba(255, 252, 247, 0.78);

    color-scheme: light;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

#home,
#announcements,
#videos {
    scroll-margin-top: calc(var(--header-height, 72px) + 1rem);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    transition: background-color var(--transition), color var(--transition);
}

body.site-loading {
    overflow: hidden;
}

/* ==========================================================================
   Site loader
   ========================================================================== */

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-loader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
}

.site-loader__spinner {
    width: 46px;
    height: 46px;
    border: 2px solid rgba(197, 160, 89, 0.22);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: site-loader-spin 0.75s linear infinite;
}

.site-loader__text {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

[data-theme="light"] .site-loader__text {
    color: var(--color-brown-light);
}

@keyframes site-loader-spin {
    to { transform: rotate(360deg); }
}

/* Modal busy overlay (instant click feedback) */
.modal-busy {
    position: fixed;
    inset: 0;
    z-index: 1999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 7, 5, 0.52);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.1s ease, visibility 0.1s ease;
}

[data-theme="light"] .modal-busy {
    background: rgba(245, 240, 232, 0.72);
}

.modal-busy.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-busy__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.modal-busy__spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(197, 160, 89, 0.22);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: site-loader-spin 0.75s linear infinite;
}

.modal-busy__text {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

[data-theme="light"] .modal-busy__text {
    color: var(--color-brown-light);
}

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

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.65rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: var(--radius-btn);
    border: 1px solid transparent;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

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

.btn--primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-border);
    box-shadow: var(--btn-primary-shadow);
}

.btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--btn-shine);
    pointer-events: none;
    z-index: 0;
}

.btn--primary:hover {
    box-shadow: var(--btn-primary-shadow-hover);
    background: var(--btn-primary-bg-hover);
}

.btn--primary:active {
    box-shadow: var(--btn-primary-shadow-active);
}

.btn--outline {
    background: var(--btn-outline-bg);
    border-color: var(--btn-outline-border);
    color: var(--btn-outline-text);
    box-shadow: none;
}

.btn--outline:hover {
    border-color: var(--btn-outline-border-hover);
    background: var(--color-gold-dim);
    color: var(--btn-outline-text-hover);
}

.btn--outline:active {
    box-shadow: none;
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-muted);
    border-color: var(--btn-outline-border);
    box-shadow: none;
}

.btn--ghost:hover {
    color: var(--btn-outline-text-hover);
    border-color: var(--btn-outline-border-hover);
    background: var(--color-gold-dim);
}

.btn--glow {
    box-shadow:
        inset 0 1px 0 rgba(255, 244, 220, 0.12),
        0 2px 10px rgba(0, 0, 0, 0.22),
        0 0 18px rgba(197, 160, 89, 0.16);
}

.btn--glow:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 244, 220, 0.16),
        0 4px 14px rgba(0, 0, 0, 0.26),
        0 0 24px rgba(197, 160, 89, 0.22);
}

.btn--sm {
    padding: 0.55rem 1.35rem;
    font-size: 0.68rem;
    letter-spacing: 0.09em;
}

.btn--icon {
    padding: 0.55rem 0.82rem;
    gap: 0.55rem;
}

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

/* ==========================================================================
   Glass panel
   ========================================================================== */

.glass-panel {
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    transition: background var(--transition), border-color var(--transition);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: auto;
    min-height: var(--header-h);
    background: var(--header-bg);
    backdrop-filter: var(--header-blur);
    -webkit-backdrop-filter: var(--header-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    transition: background var(--transition), border-color var(--transition);
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: var(--header-shine);
    pointer-events: none;
}

.site-header::after {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 0;
    height: 1px;
    background: var(--header-line);
    pointer-events: none;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    height: auto;
    padding-block: 0.45rem;
    gap: 1rem;
}

.site-header__lead {
    display: none;
    flex: 0 0 auto;
    align-items: center;
}

.site-header__trail {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 0 0 auto;
    flex-shrink: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.45rem;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-nav__items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.30rem;
    row-gap: 0.40rem;
}

.site-nav__link {
    --nav-link-pad-x: 0.9rem;
    position: relative;
    padding: 0.48rem var(--nav-link-pad-x);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    color: rgba(232, 210, 168, 0.82);
    border-radius: var(--radius-btn);
    border: 1px solid transparent;
    background: transparent;
    overflow: hidden;
    isolation: isolate;
    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        text-shadow var(--transition);
}

.site-nav__link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--btn-shine);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.site-nav__link--cabinet {
    display: none;
}

.site-nav-backdrop {
    display: none;
}

/* Mobile nav overlay — вне header для корректных кликов */
.site-nav-backdrop.is-visible {
    display: block;
    position: fixed;
    inset: var(--header-height, var(--header-h)) 0 0 0;
    z-index: 98;
    background: rgba(5, 4, 3, 0.35);
    backdrop-filter: var(--header-blur);
    -webkit-backdrop-filter: var(--header-blur);
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

[data-theme="light"] .site-nav-backdrop.is-visible {
    background: rgba(20, 14, 10, 0.25);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: none;
    transition: opacity var(--transition), transform 0.12s ease;
}

.burger:hover {
    opacity: 0.8;
    transform: none;
}

.burger[aria-expanded="true"] {
    opacity: 1;
}

.burger span {
    display: block;
    width: 18px;
    height: 2px;
    margin-inline: auto;
    background: var(--color-gold);
    transition: transform var(--transition), opacity var(--transition);
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav__link:hover:not(.site-nav__link--active) {
    color: var(--color-gold-light);
    background: var(--nav-hover-bg);
    border-color: var(--nav-hover-border);
    text-shadow: 0 0 10px rgba(212, 175, 90, 0.18);
}

.site-nav__link--active {
    color: var(--nav-active-text);
    background: var(--nav-active-bg);
    border-color: var(--nav-active-border);
    box-shadow: var(--nav-active-shadow);
    text-shadow: 0 0 12px rgba(212, 175, 90, 0.28);
}

.site-nav__link--active::before {
    opacity: 1;
}

[data-theme="light"] .site-nav__link {
    color: rgba(92, 64, 51, 0.78);
}

[data-theme="light"] .site-nav__link:hover:not(.site-nav__link--active) {
    color: var(--color-brown);
    text-shadow: none;
}

[data-theme="light"] .site-nav__link--active {
    color: var(--nav-active-text);
    text-shadow: none;
}

[data-theme="light"] .site-nav__home {
    color: rgba(92, 64, 51, 0.78);
    border-color: rgba(139, 105, 20, 0.28);
    background: rgba(255, 255, 255, 0.42);
}

[data-theme="light"] .site-nav__home:hover {
    color: var(--color-brown);
    border-color: rgba(139, 105, 20, 0.45);
    background: rgba(197, 160, 89, 0.12);
}

[data-theme="light"] .site-nav__home--active,
[data-theme="light"] .site-nav__home--active:hover {
    color: var(--btn-primary-text);
    background: var(--btn-primary-bg);
    border-color: var(--btn-primary-border);
}

.site-nav__home {
    flex-shrink: 0;
    margin-right: 0.15rem;
    color: rgba(232, 210, 168, 0.82);
    border-color: rgba(197, 160, 89, 0.22);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-nav__home:hover:not(.site-nav__home--active) {
    color: var(--color-gold-light);
    border-color: rgba(197, 160, 89, 0.38);
    background: var(--nav-hover-bg);
}

.site-nav__home--active {
    color: var(--btn-primary-text);
    background: var(--btn-primary-bg);
    border-color: var(--btn-primary-border);
    box-shadow: var(--btn-primary-shadow);
}

.site-nav__home--active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--btn-shine);
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.site-nav__home--active:hover {
    color: var(--btn-primary-text);
    background: var(--btn-primary-bg-hover);
    box-shadow: var(--btn-primary-shadow-hover);
}

.site-nav__home.btn--icon {
    min-height: 38px;
    padding-inline: 1rem;
}

.site-nav__home-icon {
    position: relative;
    z-index: 1;
    width: 1.55rem;
    height: 1.55rem;
    display: block;
}

.site-nav__home-label {
    display: none;
    position: relative;
    z-index: 1;
}

/* Header chips — единый лёгкий стиль внутри glass-бара */
.server-status,
.theme-toggle,
.lang-switch {
    border-radius: var(--radius-btn);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

[data-theme="light"] .server-status,
[data-theme="light"] .theme-toggle,
[data-theme="light"] .lang-switch {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.server-status {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 34px;
    padding: 0.4rem 0.85rem 0.4rem 0.65rem;
}

.server-status__indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.server-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--status-offline);
    box-shadow: 0 0 6px var(--status-offline);
    flex-shrink: 0;
}

.server-status--online .server-status__dot {
    background: var(--status-online);
    animation: status-pulse 1.6s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 6px var(--status-online);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.9);
        box-shadow: 0 0 14px var(--status-online), 0 0 22px rgba(74, 222, 128, 0.45);
    }
}

.server-status__label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.server-status--online .server-status__label {
    color: var(--color-gold-light);
}

[data-theme="light"] .server-status--online .server-status__label {
    color: var(--color-brown);
}

.server-status__divider {
    width: 1px;
    height: 18px;
    background: var(--color-border);
    flex-shrink: 0;
}

.server-status__players {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.server-status__icon {
    width: 16px;
    height: 16px;
    fill: var(--color-gold);
    opacity: 0.85;
    flex-shrink: 0;
}

.server-status__count {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-gold-light);
    font-variant-numeric: tabular-nums;
    min-width: 1.25rem;
}

[data-theme="light"] .server-status__count {
    color: var(--color-brown);
}

.theme-toggle,
.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    min-width: 34px;
    padding: 0 0.65rem;
    color: var(--color-gold);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform 0.12s ease;
}

.theme-toggle {
    padding: 0 0.55rem;
}

.theme-toggle:hover,
.lang-switch:hover {
    border-color: var(--btn-outline-border-hover);
    transform: translateY(-1px);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.theme-toggle__icon--sun { display: none; }
.theme-toggle__icon--moon { display: block; }

[data-theme="light"] .theme-toggle__icon--sun { display: block; }
[data-theme="light"] .theme-toggle__icon--moon { display: none; }

.lang-switch {
    padding: 0 0.55rem;
}

.lang-switch__flag {
    display: block;
    width: 20px;
    height: 13px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.lang-switch__flag[hidden] {
    display: none;
}

.lang-switch__flag svg {
    display: block;
    width: 100%;
    height: 100%;
}

[data-theme="light"] .lang-switch__flag {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.site-header__cabinet { white-space: nowrap; }

body.nav-open {
    overflow: hidden;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    background: var(--color-bg);
    isolation: isolate;
    min-height: 100dvh;
    min-height: 100svh;
}

.hero__scene {
    position: relative;
    min-height: 100dvh;
    min-height: 100svh;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('/assets/img/hero-desktop.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 0;
    background-attachment: scroll;
    pointer-events: none;
    filter: var(--hero-bg-tone);
    transition: opacity 0.8s ease, filter var(--transition);
    opacity: 1;
    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 34%,
        rgba(0, 0, 0, 0.94) 48%,
        rgba(0, 0, 0, 0.82) 58%,
        rgba(0, 0, 0, 0.66) 68%,
        rgba(0, 0, 0, 0.46) 78%,
        rgba(0, 0, 0, 0.24) 88%,
        rgba(0, 0, 0, 0.08) 95%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 34%,
        rgba(0, 0, 0, 0.94) 48%,
        rgba(0, 0, 0, 0.82) 58%,
        rgba(0, 0, 0, 0.66) 68%,
        rgba(0, 0, 0, 0.46) 78%,
        rgba(0, 0, 0, 0.24) 88%,
        rgba(0, 0, 0, 0.08) 95%,
        transparent 100%
    );
}

body.site-loading:not(.is-hero-ready) .hero__bg {
    opacity: 0.55;
}

body.is-hero-ready .hero__bg {
    opacity: 1;
}

.hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero__fade {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: -7rem;
    z-index: 1;
    background:
        linear-gradient(to right, rgba(5, 5, 5, 0.06) 0%, transparent 10%, transparent 90%, rgba(5, 5, 5, 0.06) 100%),
        linear-gradient(
            to bottom,
            transparent 0%,
            transparent 36%,
            rgba(10, 7, 5, 0.02) 46%,
            rgba(10, 7, 5, 0.05) 54%,
            rgba(10, 7, 5, 0.09) 61%,
            rgba(10, 7, 5, 0.14) 67%,
            rgba(10, 7, 5, 0.2) 72.5%,
            rgba(10, 7, 5, 0.27) 77%,
            rgba(10, 7, 5, 0.35) 81%,
            rgba(10, 7, 5, 0.44) 84.5%,
            rgba(10, 7, 5, 0.53) 87.5%,
            rgba(10, 7, 5, 0.62) 90%,
            rgba(10, 7, 5, 0.71) 92.5%,
            rgba(10, 7, 5, 0.79) 94.5%,
            rgba(10, 7, 5, 0.86) 96.5%,
            rgba(10, 7, 5, 0.92) 98%,
            rgba(10, 7, 5, 0.96) 99%,
            #0a0705 100%
        );
    pointer-events: none;
    transition: background var(--transition);
}

.hero__fade-feather {
    position: absolute;
    left: -4%;
    right: -4%;
    bottom: -7rem;
    height: min(58%, 560px);
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 46% 92% at 14% 104%, #0a0705 0%, rgba(10, 7, 5, 0.7) 36%, transparent 74%),
        radial-gradient(ellipse 50% 88% at 86% 102%, #0a0705 0%, rgba(10, 7, 5, 0.65) 34%, transparent 72%),
        radial-gradient(ellipse 68% 78% at 48% 110%, #0a0705 0%, rgba(10, 7, 5, 0.75) 40%, transparent 70%),
        radial-gradient(ellipse 32% 58% at 34% 96%, rgba(10, 7, 5, 0.5) 0%, transparent 68%),
        radial-gradient(ellipse 28% 52% at 72% 94%, rgba(10, 7, 5, 0.42) 0%, transparent 64%);
}

[data-theme="light"] .hero__bg {
    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 40%,
        rgba(0, 0, 0, 0.96) 50%,
        rgba(0, 0, 0, 0.86) 58%,
        rgba(0, 0, 0, 0.72) 66%,
        rgba(0, 0, 0, 0.54) 74%,
        rgba(0, 0, 0, 0.34) 82%,
        rgba(0, 0, 0, 0.16) 90%,
        rgba(0, 0, 0, 0.05) 96%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 40%,
        rgba(0, 0, 0, 0.96) 50%,
        rgba(0, 0, 0, 0.86) 58%,
        rgba(0, 0, 0, 0.72) 66%,
        rgba(0, 0, 0, 0.54) 74%,
        rgba(0, 0, 0, 0.34) 82%,
        rgba(0, 0, 0, 0.16) 90%,
        rgba(0, 0, 0, 0.05) 96%,
        transparent 100%
    );
}

[data-theme="light"] .hero__fade {
    background:
        linear-gradient(to right, rgba(245, 240, 232, 0.06) 0%, transparent 10%, transparent 90%, rgba(245, 240, 232, 0.06) 100%),
        linear-gradient(
            to bottom,
            transparent 0%,
            transparent 44%,
            rgba(245, 240, 232, 0.03) 52%,
            rgba(245, 240, 232, 0.07) 58%,
            rgba(245, 240, 232, 0.12) 64%,
            rgba(245, 240, 232, 0.18) 69%,
            rgba(245, 240, 232, 0.25) 74%,
            rgba(245, 240, 232, 0.33) 78.5%,
            rgba(245, 240, 232, 0.41) 82.5%,
            rgba(245, 240, 232, 0.5) 86%,
            rgba(245, 240, 232, 0.58) 89%,
            rgba(245, 240, 232, 0.66) 91.5%,
            rgba(245, 240, 232, 0.73) 93.5%,
            rgba(245, 240, 232, 0.79) 95.5%,
            rgba(245, 240, 232, 0.84) 97%,
            rgba(245, 240, 232, 0.88) 98.5%,
            rgba(245, 240, 232, 0.91) 99.5%,
            #f5f0e8 100%
        );
}

[data-theme="light"] .hero__fade-feather {
    background:
        radial-gradient(ellipse 46% 92% at 14% 104%, rgba(245, 240, 232, 0.92) 0%, rgba(245, 240, 232, 0.52) 36%, transparent 74%),
        radial-gradient(ellipse 50% 88% at 86% 102%, rgba(245, 240, 232, 0.9) 0%, rgba(245, 240, 232, 0.48) 34%, transparent 72%),
        radial-gradient(ellipse 68% 78% at 48% 110%, rgba(245, 240, 232, 0.94) 0%, rgba(245, 240, 232, 0.56) 40%, transparent 70%),
        radial-gradient(ellipse 32% 58% at 34% 96%, rgba(245, 240, 232, 0.32) 0%, transparent 68%),
        radial-gradient(ellipse 28% 52% at 72% 94%, rgba(245, 240, 232, 0.26) 0%, transparent 64%);
}

@keyframes countdown-tick {
    0% { transform: scale(1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.15); }
    40% { transform: scale(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 16px rgba(197, 160, 89, 0.45); }
    100% { transform: scale(1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.15); }
}

@media (prefers-reduced-motion: reduce) {
    .site-loader__spinner,
    .modal-busy__spinner {
        animation: none !important;
        border-top-color: var(--color-gold);
        opacity: 0.85;
    }

    body.is-hero-ready .hero__bg {
        transition: none !important;
        opacity: 1 !important;
    }

    .hero__canvas {
        display: none !important;
    }

    .hero-countdown__item.is-ticking {
        animation: none !important;
    }
}

.hero__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    min-height: 100svh;
    padding-top: calc(var(--header-h) + clamp(0.75rem, 2vw, 1.5rem));
    padding-bottom: var(--hero-videos-reserve);
    pointer-events: none;
}

.hero--no-videos .hero__body {
    padding-bottom: clamp(2rem, 6vh, 3.5rem);
}

.hero__layout {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 340px);
    grid-template-rows: 1fr;
    gap: clamp(1rem, 3vw, 2rem);
    width: 100%;
    flex: 1;
    align-items: center;
}

.hero-intro {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    align-self: start;
    text-align: center;
    max-width: 720px;
    padding-top: clamp(0.5rem, 2vw, 1.5rem);
    pointer-events: auto;
}

/* Plain — без плашки (по умолчанию) */
.hero-intro--plain {
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Опциональная плашка — включить класс hero-intro--panel */
.hero-intro--panel {
    padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(201, 162, 39, 0.55);
    border-radius: var(--radius-lg);
    background: linear-gradient(
        180deg,
        rgba(255, 252, 247, 0.72) 0%,
        rgba(245, 235, 220, 0.58) 100%
    );
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.65) inset,
        0 8px 32px rgba(44, 34, 24, 0.12),
        0 0 40px rgba(201, 162, 39, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero__logo {
    width: clamp(140px, 18vw, 220px);
    height: auto;
    margin: 0 auto 1rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 24px rgba(197, 160, 89, 0.35));
}

.hero__eyebrow {
    margin: 0 0 0.5rem;
    font-size: clamp(0.7rem, 1.2vw, 0.82rem);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #3a2a12;
    -webkit-text-stroke: 0.5px rgba(255, 252, 247, 0.95);
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.95),
        0 0 22px rgba(255, 255, 255, 0.65),
        -1px -1px 0 rgba(255, 252, 247, 0.92),
        1px -1px 0 rgba(255, 252, 247, 0.92),
        -1px 1px 0 rgba(255, 252, 247, 0.92),
        1px 1px 0 rgba(255, 252, 247, 0.92),
        0 2px 8px rgba(255, 255, 255, 0.55);
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.06em;
    color: #4a3810;
    margin-bottom: 0;
    -webkit-text-stroke: 0.75px rgba(255, 252, 247, 0.95);
    paint-order: stroke fill;
    text-shadow:
        0 0 12px rgba(255, 255, 255, 0.95),
        0 0 28px rgba(255, 255, 255, 0.7),
        -1px -1px 0 rgba(255, 252, 247, 0.92),
        1px -1px 0 rgba(255, 252, 247, 0.92),
        -1px 1px 0 rgba(255, 252, 247, 0.92),
        1px 1px 0 rgba(255, 252, 247, 0.92),
        0 2px 14px rgba(255, 255, 255, 0.55),
        0 4px 18px rgba(44, 34, 24, 0.12);
}

.hero__subtitle {
    margin: 0 auto;
    font-size: clamp(0.88rem, 1.6vw, 1.02rem);
    line-height: 1.65;
    color: #1e1610;
    max-width: 580px;
    -webkit-text-stroke: 0.35px rgba(255, 252, 247, 0.9);
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.9),
        0 0 18px rgba(255, 255, 255, 0.55),
        -1px -1px 0 rgba(255, 252, 247, 0.88),
        1px -1px 0 rgba(255, 252, 247, 0.88),
        -1px 1px 0 rgba(255, 252, 247, 0.88),
        1px 1px 0 rgba(255, 252, 247, 0.88),
        0 1px 4px rgba(255, 255, 255, 0.5);
}

/* Launch widget — right, raised & decorative */
.hero-launch {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    width: 340px;
    max-width: 340px;
    margin-top: clamp(-9rem, -20vh, -6rem);
    padding: 1.65rem 1.45rem 1.55rem;
    pointer-events: auto;
    position: relative;
    border: 1px solid rgba(212, 175, 90, 0.58);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(165deg, rgba(28, 20, 14, 0.82) 0%, rgba(10, 7, 5, 0.88) 55%, rgba(18, 12, 8, 0.84) 100%);
    box-shadow:
        0 0 0 1px rgba(212, 175, 90, 0.18) inset,
        0 0 40px rgba(255, 220, 140, 0.12),
        0 0 64px rgba(212, 175, 90, 0.08),
        0 16px 44px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.hero-launch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(219, 192, 122, 0.75), transparent);
    pointer-events: none;
    opacity: 0.75;
}

.hero-launch::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(197, 160, 89, 0.12);
    border-radius: calc(var(--radius-lg) - 6px);
    pointer-events: none;
}

[data-theme="light"] .hero-launch {
    background: linear-gradient(
        165deg,
        rgba(255, 252, 247, 0.92) 0%,
        rgba(240, 232, 220, 0.88) 100%
    );
    border-color: rgba(166, 124, 0, 0.42);
    box-shadow:
        0 0 0 1px rgba(166, 124, 0, 0.12) inset,
        0 0 32px rgba(197, 160, 89, 0.1),
        0 16px 40px rgba(44, 34, 24, 0.1);
}

.hero-launch__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.hero-launch__ornament {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.55));
    opacity: 0.75;
}

.hero-launch__ornament:last-child {
    background: linear-gradient(90deg, rgba(197, 160, 89, 0.55), transparent);
}

.hero-launch__title {
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-gold-light);
    white-space: nowrap;
}

[data-theme="light"] .hero-launch__title {
    color: var(--color-brown);
}

.hero-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1.35rem;
    padding: 0.85rem 0.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(197, 160, 89, 0.2);
    background: rgba(0, 0, 0, 0.22);
    position: relative;
    z-index: 1;
}

[data-theme="light"] .hero-countdown {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(92, 64, 51, 0.12);
}

.hero-countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 3.4rem;
    padding: 0.6rem 0.45rem 0.5rem;
    border: 1px solid rgba(197, 160, 89, 0.42);
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(197, 160, 89, 0.16) 0%, rgba(197, 160, 89, 0.06) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.hero-countdown__item.is-ticking {
    animation: countdown-tick 0.45s ease;
}

[data-theme="light"] .hero-countdown__item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(235, 225, 210, 0.65) 100%);
    border-color: rgba(139, 105, 20, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-countdown__value {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-gold-light);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 12px rgba(197, 160, 89, 0.35);
}

[data-theme="light"] .hero-countdown__value {
    color: var(--color-brown);
}

.hero-countdown__unit {
    margin-top: 0.3rem;
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.hero-countdown__sep {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-gold-light);
    opacity: 0.75;
    margin-bottom: 0.9rem;
    user-select: none;
    text-shadow: 0 0 8px rgba(197, 160, 89, 0.4);
}

.hero-launch__actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    position: relative;
    z-index: 1;
}

.hero-launch--live .hero-countdown,
.hero-countdown[hidden] {
    display: none;
}

.hero-launch__desc {
    margin: -0.55rem 0 1.1rem;
    padding: 0 0.5rem;
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
    color: rgba(245, 235, 220, 0.82);
    position: relative;
    z-index: 1;
}

.hero-launch__desc[hidden] {
    display: none;
}

[data-theme="light"] .hero-launch__desc {
    color: rgba(62, 48, 36, 0.78);
}

.hero__videos {
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--hero-videos-bottom);
    z-index: 3;
    margin-top: 0;
    padding-block: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.videos-all-bar {
    position: relative;
    z-index: 2;
    padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(1.25rem, 3vw, 2rem);
    background: var(--color-bg);
}

.videos-all-bar:has(+ .content-shell--has-bg) {
    background: linear-gradient(
        180deg,
        var(--color-bg) 0%,
        var(--color-bg) calc(100% - var(--content-bg-blend-overlap)),
        color-mix(in srgb, var(--color-bg) 72%, transparent) 100%
    );
}

.videos-all-bar__inner {
    display: flex;
    justify-content: center;
}

.video-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    width: 100%;
    align-self: stretch;
}

.video-strip--centered {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 1rem;
}

.video-strip--centered .video-card {
    flex: 0 0 calc((100% - 4 * 1rem) / 5);
    max-width: calc((100% - 4 * 1rem) / 5);
}

.video-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.15s ease;
}

.video-card:hover { transform: translateY(-3px); }

.video-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    background: #0d0a08;
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition), box-shadow 0.2s ease;
}

.video-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.video-card:hover .video-card__thumb {
    border-color: var(--color-border-strong);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .video-card__thumb {
    background: #1a1510;
    border-color: rgba(139, 105, 20, 0.32);
    box-shadow:
        0 2px 10px rgba(44, 34, 24, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

[data-theme="light"] .video-card:hover .video-card__thumb {
    border-color: rgba(139, 105, 20, 0.55);
    box-shadow:
        0 6px 22px rgba(139, 105, 20, 0.14),
        0 0 0 1px rgba(197, 160, 89, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.video-card__thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10, 7, 5, 0.08) 0%, rgba(10, 7, 5, 0.28) 100%);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.video-card:hover .video-card__thumb::before {
    background: linear-gradient(180deg, rgba(10, 7, 5, 0.04) 0%, rgba(10, 7, 5, 0.38) 100%);
}

[data-theme="light"] .video-card__thumb::before {
    background: linear-gradient(180deg, rgba(10, 7, 5, 0.06) 0%, rgba(10, 7, 5, 0.32) 100%);
}

.video-card__tag {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
    padding: 0.2rem 0.55rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(10, 7, 5, 0.94);
    border: 1px solid rgba(212, 175, 90, 0.65);
    border-radius: 3px;
    color: #f0d488;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .video-card__tag {
    background: rgba(255, 250, 242, 0.97);
    border-color: rgba(92, 64, 51, 0.62);
    color: #2a1c12;
    box-shadow: 0 2px 10px rgba(44, 34, 24, 0.38);
}

.video-card__play-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(10, 7, 5, 0.52);
    border: 1px solid rgba(197, 160, 89, 0.35);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

[data-theme="light"] .video-card__play-wrap {
    background: rgba(44, 34, 24, 0.55);
    border-color: rgba(197, 160, 89, 0.55);
    box-shadow: 0 2px 14px rgba(44, 34, 24, 0.2);
}

[data-theme="light"] .video-card__play {
    fill: #dbc07a;
}

.video-card__play {
    width: 22px;
    height: 22px;
    fill: var(--color-gold-light);
    margin-left: 2px;
}

.video-card__title {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.4;
}

[data-theme="light"] .video-card__title {
    color: var(--color-brown);
}

.hero__videos-all-wrap {
    display: none;
    justify-content: center;
    width: 100%;
}

.hero__videos-all-wrap:has(.hero__videos-all--desktop),
.hero__videos-all-wrap:has(.hero__videos-all--mobile) {
    display: flex;
}

.section-all-btn,
.hero__videos-all {
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.65rem;
    padding: 0.6rem 1.65rem;
    border: 1px solid rgba(212, 175, 90, 0.48);
    border-radius: var(--radius-btn);
    background:
        linear-gradient(180deg, rgba(212, 175, 90, 0.2) 0%, rgba(138, 100, 44, 0.1) 36%, rgba(10, 7, 5, 0.48) 100%);
    color: var(--color-gold-light);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 236, 198, 0.1),
        0 2px 12px rgba(0, 0, 0, 0.24),
        0 0 16px rgba(197, 160, 89, 0.1);
    backdrop-filter: blur(6px);
    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition),
        transform 0.15s ease,
        color var(--transition);
}

.section-all-btn::before,
.hero__videos-all::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 246, 228, 0.14) 0%, rgba(255, 246, 228, 0.03) 40%, transparent 58%);
    pointer-events: none;
    z-index: 0;
}

.section-all-btn > *,
.hero__videos-all > * {
    position: relative;
    z-index: 1;
}

.section-all-btn__icon,
.hero__videos-all__icon {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    fill: currentColor;
    opacity: 0.95;
}

.section-all-btn:hover,
.hero__videos-all:hover {
    border-color: rgba(240, 212, 136, 0.82);
    background:
        linear-gradient(180deg, rgba(212, 175, 90, 0.34) 0%, rgba(240, 212, 136, 0.14) 34%, rgba(10, 7, 5, 0.56) 100%);
    color: var(--color-gold-bright);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.32),
        0 0 28px rgba(197, 160, 89, 0.24),
        0 0 0 1px rgba(240, 212, 136, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.section-all-btn:active,
.hero__videos-all:active {
    transform: translateY(0);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.24),
        0 0 14px rgba(197, 160, 89, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .section-all-btn,
[data-theme="light"] .hero__videos-all {
    border-color: rgba(166, 124, 0, 0.46);
    background:
        linear-gradient(180deg, rgba(255, 252, 247, 0.96) 0%, rgba(240, 212, 136, 0.22) 38%, rgba(235, 225, 210, 0.82) 100%);
    color: #7a5c1e;
    box-shadow:
        0 4px 18px rgba(44, 34, 24, 0.1),
        0 0 16px rgba(197, 160, 89, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

[data-theme="light"] .section-all-btn::before,
[data-theme="light"] .hero__videos-all::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.18) 42%, transparent 62%);
}

[data-theme="light"] .section-all-btn:hover,
[data-theme="light"] .hero__videos-all:hover {
    border-color: rgba(139, 105, 20, 0.62);
    color: #5c4512;
    box-shadow:
        0 8px 24px rgba(44, 34, 24, 0.12),
        0 0 22px rgba(197, 160, 89, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.hero__videos-all {
    display: none;
}

.hero__videos-all--desktop {
    display: none;
}

.hero__videos-all--mobile {
    display: none;
}

@media (min-width: 769px) {
    .hero__videos-all--desktop {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .hero__videos-all--mobile {
        display: inline-flex;
        width: min(100%, 18rem);
    }

    .hero__videos-all-wrap {
        padding-inline: 0.25rem;
    }
}

/* Shared modal close / back controls */
.video-modal__back,
.video-modal__close,
.news-modal__close,
.news-modal__back,
.event-modal__close,
.event-modal__back,
.news-gallery-modal__close,
.event-gallery-modal__close,
.video-gallery-modal__close,
.about-image-modal__close,
.about-image-modal__prev,
.about-image-modal__next,
.quick-start-modal__close {
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--modal-control-border);
    border-radius: 50%;
    background: var(--modal-control-bg);
    color: var(--color-gold);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.video-modal__back:hover,
.video-modal__close:hover,
.news-modal__close:hover,
.news-modal__back:hover,
.event-modal__close:hover,
.event-modal__back:hover,
.news-gallery-modal__close:hover,
.event-gallery-modal__close:hover,
.video-gallery-modal__close:hover,
.about-image-modal__close:hover,
.about-image-modal__prev:hover,
.about-image-modal__next:hover,
.quick-start-modal__close:hover {
    border-color: var(--color-gold);
    background: var(--modal-control-bg-hover);
    color: var(--color-gold);
}

.video-modal__back svg,
.video-modal__close svg,
.news-modal__close svg,
.news-modal__back svg,
.event-modal__close svg,
.event-modal__back svg,
.news-gallery-modal__close svg,
.event-gallery-modal__close svg,
.video-gallery-modal__close svg,
.about-image-modal__close svg,
.about-image-modal__prev svg,
.about-image-modal__next svg,
.quick-start-modal__close svg {
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Video modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 2rem);
}

.video-modal[hidden] {
    display: none;
}

.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
}

.video-modal__dialog {
    position: relative;
    width: min(960px, 100%);
    z-index: 1;
}

.video-modal__back,
.video-modal__close {
    position: absolute;
    top: -0.25rem;
    transform: translateY(-100%);
    width: 2.5rem;
    height: 2.5rem;
}

.video-modal__back {
    left: 0;
}

.video-modal__back[hidden] {
    display: none;
}

.video-modal__close {
    right: 0;
}

.video-modal__back svg,
.video-modal__close svg {
    width: 1.1rem;
    height: 1.1rem;
}

.video-modal__player {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.video-modal__player iframe,
.video-modal__player video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal__player .plyr {
    width: 100%;
    height: 100%;
}

.video-modal__meta {
    margin-top: 1rem;
    max-width: 42rem;
}

.video-modal__meta[hidden] {
    display: none;
}

.video-modal__title {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-gold);
}

.video-modal__title[hidden] {
    display: none;
}

.video-modal__description {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(239, 231, 220, 0.78);
}

.video-modal__description[hidden] {
    display: none;
}

[data-theme="light"] .video-modal__description {
    color: var(--color-muted);
}

.video-modal__message {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: clamp(1.25rem, 4vw, 2rem);
    text-align: center;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    line-height: 1.5;
    color: rgba(239, 231, 220, 0.88);
}

.video-card__thumb--empty {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.12) 0%, rgba(10, 7, 5, 0.85) 100%);
}

body.video-modal-open {
    overflow: hidden;
}

/* Video gallery modal */
.video-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1900;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 2rem);
}

.video-gallery-modal[hidden] {
    display: none;
}

.video-gallery-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
}

.video-gallery-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: min(88vh, 720px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid rgba(197, 160, 89, 0.28);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(18, 13, 10, 0.98) 0%, rgba(10, 7, 5, 0.98) 100%);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.video-gallery-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
}

.video-gallery-modal__close svg {
    width: 1rem;
    height: 1rem;
}

.video-gallery-modal__title {
    margin: 0;
    padding-right: 2.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 0.04em;
}

.video-gallery-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.85rem;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.video-gallery-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
}

.video-gallery-card__link {
    display: block;
    text-decoration: none;
}

.video-gallery-card__link .video-card__thumb {
    border-radius: 0.5rem;
    aspect-ratio: 16 / 9;
}

.video-gallery-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0 0.1rem;
}

.video-gallery-card__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
}

.video-gallery-card__description {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--color-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.video-gallery-modal__grid .video-card {
    display: flex;
}

@media (min-width: 769px) {
    .video-gallery-modal__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

[data-theme="light"] .video-gallery-modal__dialog {
    background: linear-gradient(180deg, rgba(252, 248, 242, 0.98) 0%, rgba(245, 240, 232, 0.98) 100%);
}

body.video-gallery-open {
    overflow: hidden;
}

/* ==========================================================================
   Content shell (news + stats shared background)
   ========================================================================== */

.content-shell {
    position: relative;
    background: var(--color-bg);
    transition: background var(--transition);
}

.content-shell--has-bg {
    isolation: isolate;
    --content-bg-blend-overlap: calc(var(--content-bg-fade, 12vmin) * 0.3);
}

.content-shell--has-bg::before,
.content-shell--has-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.content-shell--has-bg::before {
    z-index: 0;
    background-image: var(--content-bg-image);
    background-size: cover;
    background-position: var(--content-bg-position, center 38%);
    background-repeat: no-repeat;
    background-attachment: var(--content-bg-attachment);
    opacity: var(--content-bg-opacity, 50%);
    filter: var(--content-bg-tone, none) saturate(var(--content-bg-saturate, 70%));
    transition: filter var(--transition), opacity var(--transition);
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0,
        rgba(0, 0, 0, 0.25) calc(var(--content-bg-fade, 12vmin) * 0.3),
        rgba(0, 0, 0, 0.65) calc(var(--content-bg-fade, 12vmin) * 0.65),
        #000 var(--content-bg-fade, 12vmin),
        #000 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0,
        rgba(0, 0, 0, 0.25) calc(var(--content-bg-fade, 12vmin) * 0.3),
        rgba(0, 0, 0, 0.65) calc(var(--content-bg-fade, 12vmin) * 0.65),
        #000 var(--content-bg-fade, 12vmin),
        #000 100%
    );
}

.videos-all-bar + .content-shell--has-bg::before,
.videos-all-bar + .content-shell--has-bg::after,
.hero + .content-shell--has-bg::before,
.hero + .content-shell--has-bg::after {
    top: calc(-1 * var(--content-bg-blend-overlap));
}

.content-shell--has-bg::after {
    z-index: 1;
    background:
        linear-gradient(
            180deg,
            var(--color-bg) 0,
            color-mix(in srgb, var(--color-bg) 70%, transparent) calc(var(--content-bg-fade, 12vmin) * 0.35),
            transparent var(--content-bg-fade, 12vmin)
        ),
        linear-gradient(
            180deg,
            transparent 0,
            transparent 68%,
            color-mix(in srgb, var(--color-bg) 35%, transparent) 84%,
            color-mix(in srgb, var(--color-bg) 72%, transparent) 93%,
            var(--color-bg) 100%
        ),
        color-mix(in srgb, var(--color-bg) calc(var(--content-bg-overlay-mix, 65%) * var(--content-bg-overlay-scale, 1)), transparent);
}

.content-shell--has-bg .content-section__grid,
.content-shell--has-bg .about-section > .container,
.content-shell--has-bg .about-page > .container,
.content-shell--has-bg .stats-section > .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 992px), (hover: none) {
    .content-shell--has-bg::before {
        background-attachment: scroll;
    }
}

/* ==========================================================================
   Content section
   ========================================================================== */

.content-section {
    position: relative;
    padding-block: 3rem 4rem;
    background: var(--color-bg);
    transition: background var(--transition);
}

.content-section__grid {
    display: grid;
    gap: 2rem;
}

.content-section__grid--both {
    grid-template-columns: 1fr 340px;
    align-items: stretch;
}

.content-section__grid--both .news-block,
.content-section__grid--both .events-block {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.content-section__grid--both .news-block__body,
.content-section__grid--both .events-block__content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.content-section__grid--both .news-block__body {
    gap: 1.05rem;
}

.content-section__grid--both .news-block > .section-header,
.content-section__grid--both .events-block > .section-header {
    flex-shrink: 0;
}

.content-section__grid--both .news-featured-stack {
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 0;
}

.content-section__grid--both .news-featured-stack--pair {
    gap: 1.05rem;
    height: 100%;
    align-content: stretch;
    grid-template-rows: minmax(var(--announce-news-featured-min, 10.75rem), 1fr);
}

.content-section__grid--both .news-grid {
    flex: 0 0 auto;
    margin-top: 0;
}

.content-section__grid--both .events-layout--sidebar {
    flex: 1 1 auto;
    min-height: 100%;
}

.content-section__grid--both .news-block__all,
.content-section__grid--both .events-block__all {
    flex-shrink: 0;
    margin-top: 1.25rem;
}

@media (min-width: 993px) {
    .content-section__grid--both.announcements--synced {
        align-items: stretch;
    }

    .content-section__grid--both.announcements--synced > .news-block,
    .content-section__grid--both.announcements--synced > .events-block {
        align-self: stretch;
        min-height: 100%;
    }

    .content-section__grid--both.announcements--synced.announcements--events-featured-0 .events-block__content {
        flex: 1 1 auto;
        min-height: 0;
    }

    .content-section__grid--both.announcements--synced.announcements--events-featured-0 .events-layout--sidebar {
        flex: 1 1 auto;
        min-height: 100%;
    }

    .content-section__grid--both.announcements--synced.announcements--events-featured-0 .events-layout--sidebar .event-item {
        flex: 1 1 0;
        min-height: 0;
        padding-block: var(--announce-events-item-pad, 0.68rem);
    }

    .content-section__grid--both.announcements--synced:not(.announcements--events-featured-0) .events-block__content {
        flex: 0 0 auto;
        align-self: flex-start;
    }

    .content-section__grid--both.announcements--synced:not(.announcements--events-featured-0) .events-block {
        justify-content: flex-start;
    }

    .content-section__grid--both.announcements--synced:not(.announcements--events-featured-0) .events-layout--sidebar {
        flex: 0 0 auto;
        min-height: 0;
    }

    .content-section__grid--both.announcements--synced:not(.announcements--events-featured-0) .events-layout--sidebar .event-item {
        flex: 0 0 auto;
        padding-block: var(--announce-events-item-pad, 0.68rem);
    }

    .content-section__grid--both.announcements--synced:not(.announcements--events-featured-0) .events-layout--sidebar .event-featured {
        flex: 0 0 auto;
    }

    .content-section__grid--both.announcements--synced .news-featured-stack:not(.news-featured-stack--pair) {
        flex: 1 1 auto;
        min-height: 0;
    }

    .content-section__grid--both.announcements--synced .news-featured-stack:not(.news-featured-stack--pair) > .news-featured {
        flex: 1 1 auto;
        min-height: var(--announce-news-featured-min, 10.75rem);
    }

    .content-section__grid--both.announcements--synced .news-featured-stack:not(.news-featured-stack--pair) > .news-featured .news-featured__media {
        min-height: var(--announce-news-featured-min, 10.75rem);
    }

    .content-section__grid--both.announcements--news-featured-0 .news-grid--expanded .news-card__media {
        height: var(--announce-news-card-media-height, 7.5rem);
        aspect-ratio: unset;
        flex-shrink: 0;
    }
}

.content-section__grid--both .news-featured-stack--pair > .news-featured {
    grid-template: minmax(var(--announce-news-featured-min, 10.75rem), 1fr) / 1fr;
    min-height: 100%;
    height: 100%;
}

.content-section__grid--both .news-featured-stack--pair > .news-featured .news-featured__media {
    min-height: var(--announce-news-featured-min, 10.75rem);
    height: 100%;
}

.content-section__grid--both .news-featured-stack--pair > .news-featured .news-featured__body {
    padding-bottom: 4.1rem;
}

.content-section__grid--both.announcements--events-featured-0 .news-featured-stack--pair > .news-featured .news-featured__excerpt {
    -webkit-line-clamp: 2;
}

@media (min-width: 993px) {
    .content-section__grid--both.announcements--news-featured-0 .news-block__body {
        flex: 1 1 auto;
        min-height: 0;
    }

    .content-section__grid--both.announcements--news-featured-0 .news-grid--expanded {
        flex: 0 0 auto;
        height: auto;
    }

    .content-section__grid--both.announcements--news-featured-0 .news-grid--expanded .news-card {
        height: 100%;
    }
}

.content-section__grid--both.announcements--news-hide-featured-excerpt .news-featured-stack--pair > .news-featured .news-featured__body {
    padding-top: 1.15rem;
    padding-bottom: 4.35rem;
}

.content-section__grid--both.announcements--news-hide-cards-excerpt .news-card__body {
    padding-bottom: 1.05rem;
}

.content-section__grid--both.announcements--news-hide-cards-excerpt .news-card__excerpt {
    display: none;
}

.content-section__grid--both.announcements--events-featured-2 {
    --event-featured-media-ratio: 16 / 9;
}

.content-section__grid--both.announcements--events-featured-3 {
    --event-featured-media-ratio: 16 / 7;
}

.content-section__grid--both.announcements--events-featured-3 .events-layout--sidebar .event-featured .event-featured__excerpt {
    -webkit-line-clamp: 2;
}

.content-section__grid--news-only {
    grid-template-columns: 1fr;
}

.content-section__grid--events-only {
    grid-template-columns: 1fr;
    align-items: start;
}

.content-section__grid--events-only .events-block {
    width: 100%;
    min-height: 0;
}

.news-block,
.events-block {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header__title {
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    color: var(--color-gold-light);
    margin-bottom: 0.35rem;
}

[data-theme="light"] .section-header__title {
    color: var(--color-brown);
}

.section-header__desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.section-header--center {
    text-align: center;
    max-width: 560px;
    margin-inline: auto;
    margin-bottom: 2rem;
}

/* News featured */
.news-featured-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.news-featured-stack .news-featured {
    margin-bottom: 0;
}

.news-featured-stack--pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.news-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.news-featured__media {
    min-height: 220px;
}

.news-featured__media img,
.news-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-featured__body {
    padding: 1.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.news-date {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-gold);
}

.event-schedule {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.event-schedule__primary,
.event-schedule__start {
    display: block;
}

.event-schedule__duration {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--color-gold);
    opacity: 0.88;
    line-height: 1.25;
}

.event-item__meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.event-item__meta-start {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    flex-wrap: wrap;
}

.event-schedule-badge {
    position: absolute;
    z-index: 2;
    top: 0.35rem;
    right: 0.35rem;
    max-width: min(10.5rem, calc(100% - 1.5rem));
    padding: 0.24rem 0.42rem;
    border-radius: 4px;
    background: rgba(10, 7, 5, 0.82);
    border: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    pointer-events: none;
}

[data-theme="light"] .event-schedule-badge {
    background: rgba(252, 248, 242, 0.92);
    border-color: rgba(92, 64, 51, 0.18);
    box-shadow: 0 2px 8px rgba(44, 34, 24, 0.1);
}

[data-theme="light"] .event-schedule-badge__text {
    color: var(--color-brown);
}

.event-schedule-badge__text {
    display: block;
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1.25;
    color: var(--color-gold);
    text-align: right;
    white-space: nowrap;
}

.event-schedule--featured-overlay {
    position: absolute;
    z-index: 2;
    right: 0.4rem;
    bottom: 0.4rem;
    top: auto;
    left: auto;
    max-width: calc(100% - 0.8rem);
    padding: 0.32rem 0.45rem;
    border-radius: 4px;
    background: rgba(10, 7, 5, 0.74);
    border: 1px solid rgba(197, 160, 89, 0.2);
    text-align: right;
    gap: 0.1rem;
    pointer-events: none;
}

[data-theme="light"] .event-schedule--featured-overlay {
    background: rgba(252, 248, 242, 0.92);
    border-color: rgba(92, 64, 51, 0.18);
}

[data-theme="light"] .event-schedule--featured-overlay .event-schedule__primary {
    color: var(--color-text);
}

[data-theme="light"] .event-schedule--featured-overlay .event-schedule__duration {
    color: var(--color-gold);
}

[data-theme="light"] .event-schedule--modal-overlay .event-schedule__primary {
    color: var(--color-text);
}

[data-theme="light"] .event-schedule--modal-overlay .event-schedule__duration {
    color: var(--color-gold);
}

.event-schedule--featured-overlay .event-schedule__primary {
    font-size: 0.58rem;
    line-height: 1.28;
    color: #f5ede0;
}

.event-schedule--featured-overlay .event-schedule__duration {
    font-size: 0.56rem;
    opacity: 1;
    color: var(--featured-overlay-accent);
}

.event-schedule--modal-overlay {
    right: 0.65rem;
    bottom: 0.65rem;
    max-width: min(100% - 1.3rem, 22rem);
    padding: 0.45rem 0.6rem;
    gap: 0.14rem;
}

.event-schedule--modal-overlay .event-schedule__primary {
    font-size: 0.72rem;
    line-height: 1.35;
    color: #efe7dc;
}

.event-schedule--modal-overlay .event-schedule__duration {
    font-size: 0.68rem;
}

.news-featured__title {
    font-size: 1.15rem;
    color: var(--color-text);
}

.news-featured__excerpt {
    margin: 0;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.news-featured__body .btn {
    margin-top: auto;
    align-self: flex-end;
}

.news-featured-stack--text-bottom {
    --news-featured-text-btn-gap: 10px;
    --news-featured-btn-reserve: calc(1.15rem + 2rem + var(--news-featured-text-btn-gap));
}

.news-featured-stack--text-bottom > .news-featured .news-featured__body {
    justify-content: flex-end;
}

.news-featured-stack--text-bottom > .news-featured .news-featured__body .btn {
    margin-top: 0;
}

.news-featured-stack--text-bottom:not(.news-featured-stack--pair) > .news-featured .news-featured__body .btn {
    margin-top: var(--news-featured-text-btn-gap);
}

.news-featured-stack--text-bottom.news-featured-stack--pair > .news-featured .news-featured__body {
    padding-bottom: var(--news-featured-btn-reserve);
}

.content-section__grid--both .news-featured-stack--text-bottom.news-featured-stack--pair > .news-featured .news-featured__body {
    padding-bottom: var(--news-featured-btn-reserve);
}

.content-section__grid--both.announcements--news-hide-featured-excerpt .news-featured-stack--text-bottom.news-featured-stack--pair > .news-featured .news-featured__body {
    padding-bottom: var(--news-featured-btn-reserve);
}

.news-featured-stack--text-bottom.news-gallery-modal__featured--pair > .news-gallery-card--featured .news-gallery-card__body,
.news-featured-stack--text-bottom .news-gallery-card--featured .news-gallery-card__body {
    justify-content: flex-end;
}

@media (min-width: 561px) {
    .news-featured-stack--pair > .news-featured {
        display: grid;
        grid-template: minmax(12.5rem, auto) / 1fr;
        position: relative;
        overflow: hidden;
        background: var(--featured-overlay-card-bg);
        border-color: rgba(197, 160, 89, 0.58);
        box-shadow:
            inset 0 0 0 1px rgba(197, 160, 89, 0.22),
            0 0 24px rgba(197, 160, 89, 0.14);
    }

    [data-theme="light"] .news-featured-stack--pair > .news-featured {
        border-color: rgba(197, 160, 89, 0.5);
        box-shadow:
            inset 0 0 0 1px rgba(197, 160, 89, 0.18),
            0 0 20px rgba(197, 160, 89, 0.1);
    }

    .news-featured-stack--pair > .news-featured .news-featured__media {
        grid-area: 1 / 1;
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 12.5rem;
        border-radius: 0;
        overflow: hidden;
    }

    .news-featured-stack--pair > .news-featured .news-featured__media::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        background: var(--featured-overlay-scrim);
        pointer-events: none;
    }

    .news-featured-stack--pair > .news-featured .news-featured__media img {
        position: absolute;
        inset: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: scale(1.05);
        filter: var(--news-featured-overlay-img-filter);
    }

    .news-featured-stack--pair > .news-featured .news-featured__body {
        grid-area: 1 / 1;
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        align-self: stretch;
        min-height: 100%;
        height: 100%;
        padding: 1.05rem 1.1rem 3.55rem;
        gap: 0.35rem;
        background: transparent;
    }

    .news-featured-stack--pair > .news-featured .news-featured__title {
        color: var(--featured-overlay-title);
        text-shadow: var(--featured-overlay-shadow);
    }

    .news-featured-stack--pair > .news-featured .news-featured__excerpt {
        color: var(--featured-overlay-excerpt);
        flex: 0 0 auto;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        width: 100%;
        margin: 0;
        padding-right: 4.5rem;
        text-shadow: var(--featured-overlay-shadow);
    }

    .news-featured-stack--pair > .news-featured .news-date {
        color: var(--featured-overlay-accent);
        text-shadow: var(--featured-overlay-shadow);
    }

    .news-featured-stack--text-bottom.news-featured-stack--pair > .news-featured .news-featured__body {
        justify-content: flex-end;
        padding-bottom: var(--news-featured-btn-reserve, calc(1.15rem + 2rem + 10px));
    }
}

@media (max-width: 560px) {
    .news-featured-stack--pair {
        grid-template-columns: 1fr;
    }

    .news-featured-stack--pair > .news-featured {
        display: grid;
        grid-template: minmax(12.75rem, auto) / 1fr;
        position: relative;
        overflow: hidden;
        background: var(--featured-overlay-card-bg);
        border-color: rgba(197, 160, 89, 0.58);
        box-shadow:
            inset 0 0 0 1px rgba(197, 160, 89, 0.22),
            0 0 24px rgba(197, 160, 89, 0.14);
    }

    [data-theme="light"] .news-featured-stack--pair > .news-featured {
        border-color: rgba(197, 160, 89, 0.5);
        box-shadow:
            inset 0 0 0 1px rgba(197, 160, 89, 0.18),
            0 0 20px rgba(197, 160, 89, 0.1);
    }

    .news-featured-stack--pair > .news-featured .news-featured__media {
        grid-area: 1 / 1;
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 12.75rem;
        border-radius: 0;
        overflow: hidden;
    }

    .news-featured-stack--pair > .news-featured .news-featured__media::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        background: var(--featured-overlay-scrim);
        pointer-events: none;
    }

    .news-featured-stack--pair > .news-featured .news-featured__media img {
        position: absolute;
        inset: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: scale(1.05);
        filter: var(--news-featured-overlay-img-filter);
    }

    .news-featured-stack--pair > .news-featured .news-featured__body {
        grid-area: 1 / 1;
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        align-self: stretch;
        min-height: 100%;
        height: 100%;
        padding: 1.05rem 1.1rem 3.55rem;
        gap: 0.35rem;
        background: transparent;
    }

    .news-featured-stack--pair > .news-featured .news-featured__title {
        color: var(--featured-overlay-title);
        text-shadow: var(--featured-overlay-shadow);
    }

    .news-featured-stack--pair > .news-featured .news-featured__excerpt {
        color: var(--featured-overlay-excerpt);
        flex: 0 0 auto;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        width: 100%;
        margin: 0;
        padding-right: 4.5rem;
        text-shadow: var(--featured-overlay-shadow);
    }

    .news-featured-stack--pair > .news-featured .news-date {
        color: var(--featured-overlay-accent);
        text-shadow: var(--featured-overlay-shadow);
    }

    .news-featured-stack--text-bottom.news-featured-stack--pair > .news-featured .news-featured__body {
        justify-content: flex-end;
        padding-bottom: var(--news-featured-btn-reserve, calc(1.15rem + 2rem + 10px));
    }
}

.news-featured-stack--pair > .news-featured .news-featured__title {
    display: -webkit-box;
    width: 100%;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.3;
}

.news-featured-stack--pair > .news-featured .news-featured__body .btn {
    position: absolute;
    right: 1.1rem;
    bottom: 1.15rem;
    margin-top: 0;
    align-self: auto;
    z-index: 3;
    transition: background 0.28s ease, border-color 0.28s ease, color 0.28s ease, transform 0.15s ease, box-shadow 0.28s ease;
}

.news-featured-stack--pair > .news-featured .news-featured__body .btn.btn--outline {
    background: rgba(8, 5, 3, 0.76);
    border-color: rgba(197, 160, 89, 0.45);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

[data-theme="light"] .news-featured-stack--pair > .news-featured .news-featured__body .btn.btn--outline {
    background: rgba(255, 252, 247, 0.9);
    border-color: rgba(92, 64, 51, 0.28);
    color: var(--color-brown);
    box-shadow: 0 2px 10px rgba(44, 34, 24, 0.08);
}

@media (hover: hover) {
    .news-featured-stack--pair > .news-featured .news-featured__body .btn.btn--outline:hover {
        background: rgba(4, 2, 1, 0.9);
        border-color: rgba(197, 160, 89, 0.58);
        color: var(--btn-outline-text-hover);
        transform: none;
    }

    [data-theme="light"] .news-featured-stack--pair > .news-featured .news-featured__body .btn.btn--outline:hover {
        background: rgba(255, 255, 255, 0.96);
        border-color: rgba(92, 64, 51, 0.38);
        color: var(--color-brown);
    }
}

.news-featured-stack--pair > .news-featured .news-featured__body,
.news-gallery-modal__featured--pair > .news-gallery-card--featured .news-gallery-card__body,
.news-gallery-card--featured .news-gallery-card__body,
.event-gallery-card--featured .event-gallery-card__body {
    transition: background 0.28s ease, opacity 0.28s ease;
}

.news-featured-stack--pair > .news-featured .news-featured__media img,
.news-featured-stack--pair > .news-featured .news-featured__media::after,
.news-featured-stack--pair > .news-featured .news-date,
.news-featured-stack--pair > .news-featured .news-featured__title,
.news-featured-stack--pair > .news-featured .news-featured__excerpt,
.news-gallery-modal__featured--pair > .news-gallery-card--featured .news-gallery-card__media img,
.news-gallery-modal__featured--pair > .news-gallery-card--featured .news-gallery-card__media::after,
.news-gallery-card--featured .news-gallery-card__media img,
.news-gallery-card--featured .news-gallery-card__media::after,
.news-gallery-modal__featured--pair > .news-gallery-card--featured .news-date,
.news-gallery-modal__featured--pair > .news-gallery-card--featured .news-gallery-card__title,
.news-gallery-modal__featured--pair > .news-gallery-card--featured .news-gallery-card__excerpt,
.news-gallery-card--featured .news-date,
.news-gallery-card--featured .news-gallery-card__title,
.news-gallery-card--featured .news-gallery-card__excerpt,
.event-gallery-card--featured .event-gallery-card__media img,
.event-gallery-card--featured .event-gallery-card__media::after,
.event-gallery-card--featured .event-gallery-card__title,
.event-gallery-card--featured .event-gallery-card__excerpt,
.event-gallery-card--featured .event-gallery-card__schedule,
.event-gallery-card--featured .event-gallery-card__tag {
    transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
}

@media (hover: hover) {
    .news-featured-stack--pair > .news-featured.news-featured--interactive:hover .news-featured__media::after,
    .news-gallery-modal__featured--pair > .news-gallery-card--featured:hover .news-gallery-card__media::after,
    .news-gallery-card--featured:hover .news-gallery-card__media::after,
    .event-gallery-card--featured:hover .event-gallery-card__media::after {
        opacity: 0;
    }

    .news-featured-stack--pair > .news-featured.news-featured--interactive:hover .news-featured__body,
    .news-gallery-modal__featured--pair > .news-gallery-card--featured:hover .news-gallery-card__body,
    .news-gallery-card--featured:hover .news-gallery-card__body,
    .event-gallery-card--featured:hover .event-gallery-card__body {
        background: transparent;
    }

    .news-featured-stack--pair > .news-featured.news-featured--interactive:hover .news-featured__media img,
    .news-gallery-modal__featured--pair > .news-gallery-card--featured:hover .news-gallery-card__media img,
    .news-gallery-card--featured:hover .news-gallery-card__media img,
    .event-gallery-card--featured:hover .event-gallery-card__media img {
        transform: scale(1);
    }

    .news-featured-stack--pair > .news-featured.news-featured--interactive:hover .news-featured__media img,
    .news-gallery-modal__featured--pair > .news-gallery-card--featured:hover .news-gallery-card__media img,
    .news-gallery-card--featured:hover .news-gallery-card__media img {
        filter: none;
    }

    .news-featured-stack--pair > .news-featured.news-featured--interactive:hover .news-date,
    .news-featured-stack--pair > .news-featured.news-featured--interactive:hover .news-featured__title,
    .news-featured-stack--pair > .news-featured.news-featured--interactive:hover .news-featured__excerpt,
    .news-gallery-modal__featured--pair > .news-gallery-card--featured:hover .news-date,
    .news-gallery-modal__featured--pair > .news-gallery-card--featured:hover .news-gallery-card__title,
    .news-gallery-modal__featured--pair > .news-gallery-card--featured:hover .news-gallery-card__excerpt,
    .news-gallery-card--featured:hover .news-date,
    .news-gallery-card--featured:hover .news-gallery-card__title,
    .news-gallery-card--featured:hover .news-gallery-card__excerpt,
    .event-gallery-card--featured:hover .event-gallery-card__title,
    .event-gallery-card--featured:hover .event-gallery-card__excerpt,
    .event-gallery-card--featured:hover .event-gallery-card__schedule,
    .event-gallery-card--featured:hover .event-gallery-card__tag {
        opacity: 0.3;
    }

    .news-featured-stack--pair > .news-featured.news-featured--interactive:hover .news-featured__body .btn.btn--outline {
        background: rgba(8, 5, 3, 0.84);
        border-color: rgba(197, 160, 89, 0.5);
        color: var(--btn-outline-text);
        opacity: 1;
        transform: none;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    }

    [data-theme="light"] .news-featured-stack--pair > .news-featured.news-featured--interactive:hover .news-featured__body .btn.btn--outline {
        background: rgba(255, 252, 247, 0.94);
        border-color: rgba(92, 64, 51, 0.34);
        color: var(--color-brown);
    }

    .news-featured-stack--pair > .news-featured.news-featured--interactive:hover .news-featured__body .btn.btn--outline:hover {
        background: rgba(4, 2, 1, 0.92);
        border-color: rgba(197, 160, 89, 0.58);
        color: var(--btn-outline-text);
        opacity: 1;
        transform: none;
    }

    [data-theme="light"] .news-featured-stack--pair > .news-featured.news-featured--interactive:hover .news-featured__body .btn.btn--outline:hover {
        background: rgba(255, 255, 255, 0.98);
        border-color: rgba(92, 64, 51, 0.42);
        color: var(--color-brown);
    }
}

.news-empty {
    padding: clamp(2rem, 5vw, 2.75rem) clamp(1.25rem, 4vw, 2rem);
    text-align: center;
}

.news-empty__title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.news-empty__desc {
    margin: 0;
    max-width: 28rem;
    margin-inline: auto;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--color-text-muted);
}

/* News grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.05rem;
}

.news-block__all,
.events-block__all {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin-top: 1.25rem;
    margin-inline: auto;
}

@media (max-width: 768px) {
    .news-block__all,
    .events-block__all {
        width: min(100%, 18rem);
    }
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: background var(--transition), transform 0.15s ease;
}

.news-card:hover {
    background: var(--color-bg-card-hover);
    transform: translateY(-2px);
}

.news-card__media {
    aspect-ratio: 3 / 2;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.news-card__body {
    padding: 1.05rem 1.15rem 1.3rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.3rem;
}

.news-card__title {
    font-size: 0.95rem;
    margin: 0.25rem 0 0.5rem;
    color: var(--color-text);
}

.news-card__excerpt {
    margin: 0;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.news-card__link {
    margin-top: auto;
    align-self: flex-end;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-gold);
}

.news-card__link:hover { text-decoration: underline; }

.news-featured--interactive,
.news-card--interactive {
    cursor: pointer;
}

.news-featured--interactive .news-featured__media img,
.news-card--interactive .news-card__media img {
    transition: transform 0.25s ease;
}

.news-featured--interactive:hover .news-featured__media img,
.news-card--interactive:hover .news-card__media img {
    transform: scale(1.03);
}

/* Article detail modals (news + events) */
.news-modal,
.event-modal {
    position: fixed;
    inset: 0;
    z-index: 1850;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 2rem);
}

.news-modal[hidden],
.event-modal[hidden] {
    display: none;
}

.news-modal__backdrop,
.event-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
}

.news-modal__dialog,
.event-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(90vh, 820px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.28);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(18, 13, 10, 0.98) 0%, rgba(10, 7, 5, 0.98) 100%);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .news-modal__dialog,
[data-theme="light"] .event-modal__dialog {
    background: linear-gradient(180deg, rgba(252, 248, 242, 0.98) 0%, rgba(245, 240, 232, 0.98) 100%);
    border-color: rgba(92, 64, 51, 0.22);
    box-shadow: 0 24px 64px rgba(44, 34, 24, 0.14);
}

.news-modal__close,
.news-modal__back,
.event-modal__close,
.event-modal__back {
    position: absolute;
    top: 0.75rem;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
}

.news-modal__close,
.event-modal__close {
    right: 0.75rem;
}

.news-modal__back,
.event-modal__back {
    left: 0.75rem;
}

.news-modal__close svg,
.news-modal__back svg,
.event-modal__close svg,
.event-modal__back svg {
    width: 1rem;
    height: 1rem;
}

.news-modal__article,
.event-modal__article {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
}

.news-modal__media,
.event-modal__media {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--placeholder-bg);
    overflow: hidden;
}

.news-modal__media img,
.event-modal__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-modal__content,
.event-modal__content {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: clamp(1.15rem, 3vw, 1.65rem);
    padding-top: 1rem;
}

.news-modal__dialog:has(.news-modal__media[hidden]) .news-modal__content,
.event-modal__dialog:has(.event-modal__media[hidden]) .event-modal__content {
    padding-top: 3.75rem;
    padding-right: max(3.35rem, 1.15rem);
}

.event-modal__marker {
    align-self: flex-start;
    display: inline-block;
    font-size: 0.61rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-gold);
    line-height: 1.2;
}

.news-modal__title,
.event-modal__title {
    margin: 0;
    padding-right: 2.25rem;
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.8vw, 1.45rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-gold-light);
    letter-spacing: 0.02em;
}

[data-theme="light"] .news-modal__title,
[data-theme="light"] .event-modal__title {
    color: var(--color-brown);
}

.news-modal__body,
.event-modal__body {
    display: block;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}

.news-modal__body > div + div,
.news-modal__body > p + p,
.news-modal__body > div + p,
.news-modal__body > p + div,
.news-modal__body > ul + div,
.news-modal__body > ol + div,
.news-modal__body > div + ul,
.news-modal__body > div + ol,
.news-modal__body > ul + p,
.news-modal__body > ol + p,
.news-modal__body > p + ul,
.news-modal__body > p + ol,
.news-modal__body > ul + ul,
.news-modal__body > ol + ol,
.event-modal__body > div + div,
.event-modal__body > p + p,
.event-modal__body > div + p,
.event-modal__body > p + div,
.event-modal__body > ul + div,
.event-modal__body > ol + div,
.event-modal__body > div + ul,
.event-modal__body > div + ol,
.event-modal__body > ul + p,
.event-modal__body > ol + p,
.event-modal__body > p + ul,
.event-modal__body > p + ol,
.event-modal__body > ul + ul,
.event-modal__body > ol + ol {
    margin-top: 0.85rem;
}

.news-modal__body p,
.event-modal__body p {
    margin: 0;
}

.news-modal__body .bbcode-subheading,
.event-modal__body .bbcode-subheading {
    display: inline;
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--color-text);
}

.news-modal__body .bbcode-heading,
.event-modal__body .bbcode-heading {
    display: inline;
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-gold-light);
}

.news-modal__body .bbcode-underline,
.event-modal__body .bbcode-underline {
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.news-modal__body .bbcode-align--left,
.event-modal__body .bbcode-align--left {
    text-align: left;
}

.news-modal__body .bbcode-align--center,
.event-modal__body .bbcode-align--center {
    text-align: center;
}

.news-modal__body .bbcode-align--right,
.event-modal__body .bbcode-align--right {
    text-align: right;
}

.news-modal__body ul,
.news-modal__body ol,
.event-modal__body ul,
.event-modal__body ol,
.news-modal__body .bbcode-list,
.event-modal__body .bbcode-list {
    display: block;
    margin: 0;
    padding-left: 1.35rem;
    list-style-position: outside;
}

.news-modal__body ul,
.event-modal__body ul,
.news-modal__body .bbcode-list--unordered,
.event-modal__body .bbcode-list--unordered {
    list-style-type: disc;
}

.news-modal__body ol,
.event-modal__body ol,
.news-modal__body .bbcode-list--ordered,
.event-modal__body .bbcode-list--ordered {
    list-style-type: decimal;
}

.news-modal__body ul ul,
.event-modal__body ul ul {
    list-style-type: circle;
    margin-top: 0.35rem;
}

.news-modal__body ol ol,
.event-modal__body ol ol {
    list-style-type: lower-alpha;
    margin-top: 0.35rem;
}

.news-modal__body li,
.event-modal__body li,
.news-modal__body .bbcode-list li,
.event-modal__body .bbcode-list li {
    display: list-item;
    margin: 0;
    padding: 0.15rem 0;
}

.news-modal__body .bbcode-indent,
.event-modal__body .bbcode-indent {
    margin: 0;
    padding-left: 1rem;
    border-left: 2px solid rgba(197, 160, 89, 0.35);
}

.news-modal__body a,
.event-modal__body a {
    color: var(--color-gold);
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.news-modal__body a:hover,
.event-modal__body a:hover {
    color: var(--color-gold-bright, #d4b06a);
}

.news-modal__body .bbcode-font--cinzel,
.event-modal__body .bbcode-font--cinzel {
    display: inline;
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
}

.news-modal__body .bbcode-font--montserrat,
.event-modal__body .bbcode-font--montserrat {
    display: inline;
    font-family: var(--font-body);
}

.news-modal__external,
.event-modal__external {
    align-self: flex-start;
    margin-top: 0.35rem;
}

body.news-modal-open,
body.event-modal-open {
    overflow: hidden;
}

/* News gallery modal */
.news-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1900;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 2rem);
}

.news-gallery-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
}

.news-gallery-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(88vh, 760px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid rgba(197, 160, 89, 0.28);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(18, 13, 10, 0.98) 0%, rgba(10, 7, 5, 0.98) 100%);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .news-gallery-modal__dialog {
    background: linear-gradient(180deg, rgba(252, 248, 242, 0.98) 0%, rgba(245, 240, 232, 0.98) 100%);
}

.news-gallery-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
}

.news-gallery-modal__close svg {
    width: 1rem;
    height: 1rem;
}

.news-gallery-modal__title {
    margin: 0;
    padding-right: 2.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 0.04em;
}

.news-gallery-modal__list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.news-gallery-modal__featured:not(.news-gallery-modal__featured--pair) {
    display: contents;
}

.news-gallery-modal__featured--pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.news-gallery-card {
    display: grid;
    grid-template-columns: 7.5rem 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-card);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform 0.15s ease;
}

.news-gallery-card:not(.news-gallery-card--featured):hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-strong);
    transform: translateY(-1px);
}

.news-gallery-card--featured:hover {
    border-color: rgba(197, 160, 89, 0.72);
    transform: translateY(-1px);
}

[data-theme="light"] .news-gallery-card--featured:hover {
    border-color: rgba(197, 160, 89, 0.62);
}

.news-gallery-card__media {
    width: 7.5rem;
    height: 5rem;
    aspect-ratio: unset;
    flex-shrink: 0;
    border-radius: calc(var(--radius-sm) - 2px);
    overflow: hidden;
}

.news-gallery-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-gallery-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.news-gallery-card__title {
    margin: 0;
    font-size: 0.92rem;
    color: var(--color-text);
    line-height: 1.35;
}

.news-gallery-card__excerpt {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--color-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-gallery-card__arrow {
    color: var(--color-gold);
    font-size: 1rem;
    opacity: 0.65;
    transition: opacity var(--transition), transform 0.15s ease;
}

.news-gallery-card:hover .news-gallery-card__arrow {
    opacity: 1;
    transform: translateX(2px);
}

.gallery-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

body.news-gallery-open {
    overflow: hidden;
}

@media (max-width: 560px) {
    .news-gallery-card:not(.news-gallery-card--featured) {
        grid-template-columns: 5.5rem 1fr auto;
        gap: 0.65rem;
        padding: 0.65rem;
    }

    .news-gallery-card:not(.news-gallery-card--featured) .news-gallery-card__media {
        width: 5.5rem;
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .news-gallery-card__excerpt {
        -webkit-line-clamp: 3;
    }
}

/* Placeholders */
.news-placeholder,
.event-placeholder {
    background: var(--placeholder-bg);
    position: relative;
    overflow: hidden;
}

.news-placeholder::after,
.event-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--placeholder-accent);
}

.news-placeholder--featured {
    min-height: 100%;
}

/* Events — sidebar: 6 слотов, featured = 2 слота, обычная = 1 */
.events-block__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.events-layout--sidebar {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
}

.events-layout--sidebar .events-featured-group,
.events-layout--sidebar .events-cards-group {
    display: contents;
}

.events-layout--sidebar .event-featured,
.events-layout--sidebar .event-item {
    border-bottom: 1px solid var(--color-border);
}

.events-layout--sidebar .event-item:last-child {
    border-bottom: none;
}

/* Events — standalone horizontal layout (desktop, news disabled) */
.events-layout--horizontal {
    flex: none;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
}

.events-layout--horizontal .events-featured-group,
.events-layout--horizontal .events-cards-group {
    display: contents;
}

.events-layout--horizontal > .event-featured,
.events-layout--horizontal > .event-item {
    flex: none;
    min-height: auto;
    border-bottom: 1px solid var(--color-border);
}

.events-layout--horizontal > :last-child {
    border-bottom: none;
}

@media (min-width: 993px) {
    .events-layout--horizontal.glass-panel {
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        gap: 1.25rem;
    }

    .events-layout--horizontal .events-featured-group,
    .events-layout--horizontal .events-cards-group {
        display: grid;
        gap: 1rem;
    }

    .events-layout--horizontal .events-featured-group {
        grid-template-columns: minmax(0, 1fr);
    }

    .events-layout--horizontal .events-featured-group--pair {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .events-layout--horizontal .events-cards-group {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
    }

    .events-layout--horizontal .events-featured-group > .event-featured,
    .events-layout--horizontal .events-cards-group > .event-item {
        border-bottom: none;
        background: var(--color-bg-card);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-md);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: var(--glass-shadow);
        transition:
            background var(--transition),
            border-color var(--transition),
            box-shadow var(--transition),
            transform 0.15s ease;
    }

    [data-theme="light"] .events-layout--horizontal .events-featured-group > .event-featured,
    [data-theme="light"] .events-layout--horizontal .events-cards-group > .event-item {
        background: var(--color-bg-card);
    }

    .events-layout--horizontal .events-featured-group > .event-featured:hover,
    .events-layout--horizontal .events-cards-group > .event-item:hover {
        background: var(--color-bg-card-hover);
        box-shadow: var(--glass-shadow);
        transform: translateY(-2px);
    }

    .events-layout--horizontal .event-featured {
        display: flex;
        flex-direction: column;
        grid-template-columns: unset;
        grid-template-rows: unset;
        min-height: 100%;
        overflow: hidden;
    }

    .events-layout--horizontal .event-featured__media {
        flex: none;
        width: 100%;
        aspect-ratio: var(--event-featured-media-ratio);
        min-height: 0;
        border-bottom: none;
    }

    .events-layout--horizontal .event-featured__body {
        flex: 1 1 0;
        padding: 1rem 2.35rem 1rem 1rem;
    }

    .events-layout--horizontal .event-featured__arrow {
        position: absolute;
        right: 0.9rem;
        bottom: 0.9rem;
        padding-right: 0;
        align-self: auto;
    }

    .events-layout--horizontal .event-item {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        min-height: 100%;
        padding: 0;
        overflow: hidden;
    }

    .events-layout--horizontal .event-item__thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        border: none;
        border-radius: 0;
        border-bottom: none;
        align-self: stretch;
    }

    .events-layout--horizontal .event-item__body {
        flex: 1 1 auto;
        padding: 0.9rem 2.15rem 0.85rem 0.95rem;
    }

    .events-layout--horizontal .event-item__arrow {
        position: absolute;
        right: 0.85rem;
        bottom: 0.85rem;
        align-self: auto;
    }

    .events-layout--horizontal .event-schedule-badge {
        top: 0.45rem;
        right: 0.45rem;
    }
}

.event-featured {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr auto;
    column-gap: 0.75rem;
    overflow: hidden;
    border-radius: 0;
    background:
        linear-gradient(145deg, rgba(197, 160, 89, 0.14) 0%, rgba(197, 160, 89, 0.04) 38%, var(--color-bg-card) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.06);
    transition: background var(--transition), box-shadow var(--transition);
}

.event-featured--interactive {
    cursor: pointer;
}

.event-featured:hover {
    background:
        linear-gradient(145deg, rgba(197, 160, 89, 0.2) 0%, rgba(197, 160, 89, 0.06) 38%, var(--color-bg-card) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 160, 0.1),
        inset 0 0 24px rgba(197, 160, 89, 0.08);
}

@media (min-width: 993px) {
    .events-layout--horizontal .events-featured-group > .event-featured,
    .events-layout--horizontal .events-featured-group > .event-featured:hover {
        background: var(--color-bg-card);
        box-shadow: var(--glass-shadow);
    }

    [data-theme="light"] .events-layout--horizontal .events-featured-group > .event-featured,
    [data-theme="light"] .events-layout--horizontal .events-featured-group > .event-featured:hover {
        background: var(--color-bg-card);
    }

    .events-layout--horizontal .events-featured-group > .event-featured:hover {
        background: var(--color-bg-card-hover);
    }
}

.event-featured__media {
    position: relative;
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: var(--event-featured-media-ratio);
    overflow: hidden;
    border-bottom: 1px solid rgba(197, 160, 89, 0.18);
    background: #060504;
}

.event-featured__media img {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.03);
    transition: transform 0.35s ease;
}

.event-featured--interactive:hover .event-featured__media img {
    transform: scale(1.1);
}

.event-featured__media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--event-featured-media-scrim);
    pointer-events: none;
}

.event-featured__tag {
    position: absolute;
    z-index: 1;
    top: 0.45rem;
    left: 0.45rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gold-light);
    background: rgba(10, 7, 5, 0.72);
    border: 1px solid rgba(197, 160, 89, 0.55);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .event-featured__tag {
    color: var(--color-brown);
    background: rgba(252, 248, 242, 0.92);
    border-color: rgba(92, 64, 51, 0.22);
    box-shadow: 0 2px 8px rgba(44, 34, 24, 0.12);
}

.event-featured__shine {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(255, 220, 160, 0.14) 48%,
        transparent 62%
    );
    transform: translateX(-120%);
    transition: transform 0.65s ease;
    pointer-events: none;
}

.event-featured:hover .event-featured__shine {
    transform: translateX(120%);
}

.event-featured__body {
    min-width: 0;
    padding: 0.6rem 0 0.7rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.event-featured__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.28;
    color: var(--color-gold-light);
    letter-spacing: 0.02em;
}

[data-theme="light"] .event-featured__title {
    color: var(--color-brown);
}

.event-featured__excerpt {
    margin: 0;
    font-size: 0.71rem;
    line-height: 1.38;
    color: var(--color-text-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.event-featured__arrow {
    color: var(--color-gold);
    font-size: 0.95rem;
    flex-shrink: 0;
    opacity: 0.55;
    padding-right: 0.9rem;
    align-self: center;
    transition: opacity var(--transition), transform 0.15s ease;
}

.event-featured:hover .event-featured__arrow {
    opacity: 1;
    transform: translateX(2px);
}

.events-layout--sidebar.glass-panel {
    overflow: hidden;
}

.events-layout--sidebar .event-featured .event-featured__body {
    padding: 0.62rem 2.1rem 0.72rem 0.75rem;
}

.events-layout--sidebar .event-featured .event-featured__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.events-layout--sidebar .event-featured .event-featured__excerpt {
    -webkit-line-clamp: 3;
}

.events-layout--sidebar .event-featured .event-featured__arrow {
    position: absolute;
    right: 0.75rem;
    bottom: 0.65rem;
    padding-right: 0;
    align-self: auto;
}

.event-item {
    position: relative;
    display: grid;
    grid-template-columns: 3.1rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 0;
    padding: 0.68rem 0.9rem;
    transition: background var(--transition);
}

.event-item--interactive {
    cursor: pointer;
}

.event-item:hover {
    background: var(--color-gold-dim);
}

.event-item__thumb {
    position: relative;
    width: 3.1rem;
    height: 3.1rem;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    overflow: hidden;
    align-self: center;
    background: #060504;
}

.event-item__thumb img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.06);
}

.event-item__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.14rem;
    padding-right: 0.1rem;
}

.event-item__tag {
    display: inline-block;
    max-width: 100%;
    font-size: 0.61rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-gold);
    line-height: 1.2;
}

.event-item__title {
    font-family: var(--font-body);
    font-size: 0.81rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.28;
    margin: 0;
}

.event-item__excerpt {
    margin: 0;
    font-size: 0.71rem;
    line-height: 1.38;
    color: var(--color-text-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.event-item__arrow {
    color: var(--color-gold);
    font-size: 0.95rem;
    flex-shrink: 0;
    opacity: 0.55;
    transition: opacity var(--transition), transform 0.15s ease;
    align-self: center;
}

.event-item:hover .event-item__arrow {
    opacity: 1;
    transform: translateX(3px);
}

.events-block__all {
    flex-shrink: 0;
    margin-top: 1.25rem;
}

.events-empty {
    padding: clamp(1.25rem, 3vw, 1.5rem);
    text-align: center;
}

.events-empty__title {
    margin: 0 0 0.35rem;
    font-weight: 600;
    color: var(--color-text);
}

.events-empty__desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Event gallery modal */
.event-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1900;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 2rem);
}

.event-gallery-modal[hidden] {
    display: none;
}

.event-gallery-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
}

.event-gallery-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(88vh, 760px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid rgba(197, 160, 89, 0.28);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(18, 13, 10, 0.98) 0%, rgba(10, 7, 5, 0.98) 100%);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .event-gallery-modal__dialog {
    background: linear-gradient(180deg, rgba(252, 248, 242, 0.98) 0%, rgba(245, 240, 232, 0.98) 100%);
}

.event-gallery-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
}

.event-gallery-modal__close svg {
    width: 1rem;
    height: 1rem;
}

.event-gallery-modal__title {
    margin: 0;
    padding-right: 2.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 0.04em;
}

.event-gallery-modal__list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.event-gallery-card {
    position: relative;
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: start;
    padding: 0.75rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-card);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform 0.15s ease;
}

.event-gallery-card__schedule-wrap[hidden] {
    display: none;
}

.event-gallery-card__schedule {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.35;
    color: var(--color-gold);
    white-space: normal;
}

.event-gallery-card__tag {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.event-gallery-card:not(.event-gallery-card--featured):hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-strong);
    transform: translateY(-1px);
}

.event-gallery-card--featured:hover {
    border-color: rgba(197, 160, 89, 0.72);
    transform: translateY(-1px);
}

[data-theme="light"] .event-gallery-card--featured:hover {
    border-color: rgba(197, 160, 89, 0.62);
}

.event-gallery-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: calc(var(--radius-sm) - 2px);
    overflow: hidden;
    background: #060504;
}

.event-gallery-card__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.06);
}

.event-gallery-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.event-gallery-card__title {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.35;
}

.event-gallery-card__excerpt {
    margin: 0;
    font-size: 0.77rem;
    line-height: 1.4;
    color: var(--color-text-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.event-gallery-card__arrow {
    color: var(--color-gold);
    opacity: 0.6;
    transition: opacity var(--transition), transform 0.15s ease;
}

.event-gallery-card:hover .event-gallery-card__arrow {
    opacity: 1;
    transform: translateX(3px);
}

.news-gallery-card--featured,
.event-gallery-card--featured {
    padding: 1.05rem 1.1rem;
    gap: 1rem;
    align-items: start;
    border-color: rgba(197, 160, 89, 0.62);
    background:
        linear-gradient(135deg, rgba(197, 160, 89, 0.24) 0%, rgba(197, 160, 89, 0.1) 40%, var(--color-bg-card) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 160, 0.18),
        0 0 28px rgba(197, 160, 89, 0.18);
}

[data-theme="light"] .news-gallery-card--featured,
[data-theme="light"] .event-gallery-card--featured {
    border-color: rgba(197, 160, 89, 0.55);
    background:
        linear-gradient(135deg, rgba(197, 160, 89, 0.26) 0%, rgba(255, 248, 235, 0.82) 48%, var(--color-bg-card) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 0 22px rgba(197, 160, 89, 0.14);
}

.news-gallery-card--featured {
    grid-template-columns: 8rem minmax(0, 1fr) auto;
    align-items: center;
}

.event-gallery-card--featured {
    grid-template-columns: 5.25rem minmax(0, 1fr) auto;
}

.news-gallery-card--featured .news-gallery-card__media {
    width: 8rem;
    height: 5rem;
    align-self: center;
}

.event-gallery-card--featured .event-gallery-card__media {
    align-self: start;
    width: 100%;
}

.news-gallery-card--featured .news-gallery-card__body,
.event-gallery-card--featured .event-gallery-card__body {
    gap: 0.5rem;
    padding-block: 0.1rem;
}

.news-gallery-card--featured .news-gallery-card__title,
.event-gallery-card--featured .event-gallery-card__title {
    font-family: var(--font-heading);
    color: var(--color-gold-light);
}

[data-theme="light"] .news-gallery-card--featured .news-gallery-card__title,
[data-theme="light"] .event-gallery-card--featured .event-gallery-card__title {
    color: var(--color-brown);
}

.news-gallery-card--featured .news-gallery-card__excerpt,
.event-gallery-card--featured .event-gallery-card__excerpt {
    -webkit-line-clamp: 2;
}

.news-gallery-card--featured .news-date,
.event-gallery-card--featured .event-gallery-card__tag {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

@media (min-width: 561px) {
    .news-gallery-modal__featured--pair > .news-gallery-card--featured {
        display: grid;
        grid-template: minmax(11.25rem, auto) / 1fr;
        position: relative;
        padding: 0;
        gap: 0;
        overflow: hidden;
        background: var(--featured-overlay-card-bg);
        border-color: rgba(197, 160, 89, 0.58);
        box-shadow:
            inset 0 0 0 1px rgba(197, 160, 89, 0.22),
            0 0 24px rgba(197, 160, 89, 0.14);
    }

    [data-theme="light"] .news-gallery-modal__featured--pair > .news-gallery-card--featured {
        border-color: rgba(197, 160, 89, 0.5);
        box-shadow:
            inset 0 0 0 1px rgba(197, 160, 89, 0.18),
            0 0 20px rgba(197, 160, 89, 0.1);
    }

    .news-gallery-modal__featured--pair > .news-gallery-card--featured .news-gallery-card__media {
        grid-area: 1 / 1;
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 11.25rem;
        aspect-ratio: unset;
        border-radius: 0;
        overflow: hidden;
    }

    .news-gallery-modal__featured--pair > .news-gallery-card--featured .news-gallery-card__media::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        background: var(--featured-overlay-scrim);
        pointer-events: none;
    }

    .news-gallery-modal__featured--pair > .news-gallery-card--featured .news-gallery-card__media img {
        position: absolute;
        inset: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: scale(1.05);
        filter: var(--news-featured-overlay-img-filter);
    }

    .news-gallery-modal__featured--pair > .news-gallery-card--featured .news-gallery-card__body {
        grid-area: 1 / 1;
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        align-self: stretch;
        min-height: 0;
        padding: 0.95rem 1rem 3.35rem;
        gap: 0.35rem;
        background: transparent;
    }

    .news-gallery-modal__featured--pair > .news-gallery-card--featured .news-gallery-card__arrow {
        position: absolute;
        z-index: 3;
        right: 0.95rem;
        bottom: 1.1rem;
        opacity: 0.9;
    }

    .news-gallery-modal__featured--pair > .news-gallery-card--featured .news-gallery-card__title {
        color: var(--featured-overlay-title);
        text-shadow: var(--featured-overlay-shadow);
        display: -webkit-box;
        width: 100%;
        margin: 0;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-height: 1.3;
    }

    .news-gallery-modal__featured--pair > .news-gallery-card--featured .news-gallery-card__excerpt {
        color: var(--featured-overlay-excerpt);
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        width: 100%;
        margin: 0;
        padding-right: 1.75rem;
        text-shadow: var(--featured-overlay-shadow);
    }

    .news-gallery-modal__featured--pair > .news-gallery-card--featured .news-date {
        color: var(--featured-overlay-accent);
        text-shadow: var(--featured-overlay-shadow);
    }

    .news-featured-stack--text-bottom.news-gallery-modal__featured--pair > .news-gallery-card--featured .news-gallery-card__body {
        justify-content: flex-end;
    }

    .news-featured-stack--text-bottom.news-gallery-modal__featured--pair > .news-gallery-card--featured:hover {
        background: var(--featured-overlay-card-bg);
        border-color: rgba(197, 160, 89, 0.58);
    }

    [data-theme="light"] .news-gallery-modal__featured--pair > .news-gallery-card--featured:hover {
        border-color: rgba(197, 160, 89, 0.5);
    }
}

@media (max-width: 560px) {
    .news-gallery-modal__featured--pair {
        grid-template-columns: 1fr;
    }

    .news-gallery-card--featured {
        display: grid;
        grid-template: minmax(12.75rem, auto) / 1fr;
        position: relative;
        padding: 0;
        gap: 0;
        overflow: hidden;
        background: var(--featured-overlay-card-bg);
        border-color: rgba(197, 160, 89, 0.58);
        box-shadow:
            inset 0 0 0 1px rgba(197, 160, 89, 0.22),
            0 0 24px rgba(197, 160, 89, 0.14);
    }

    [data-theme="light"] .news-gallery-card--featured {
        border-color: rgba(197, 160, 89, 0.5);
        box-shadow:
            inset 0 0 0 1px rgba(197, 160, 89, 0.18),
            0 0 20px rgba(197, 160, 89, 0.1);
    }

    .news-gallery-card--featured .news-gallery-card__media {
        grid-area: 1 / 1;
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 12.75rem;
        aspect-ratio: unset;
        align-self: stretch;
        border-radius: 0;
        overflow: hidden;
    }

    .news-gallery-card--featured .news-gallery-card__media::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        background: var(--featured-overlay-scrim);
        pointer-events: none;
    }

    .news-gallery-card--featured .news-gallery-card__media img {
        position: absolute;
        inset: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: scale(1.05);
        filter: var(--news-featured-overlay-img-filter);
    }

    .news-gallery-card--featured .news-gallery-card__body {
        grid-area: 1 / 1;
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        align-self: stretch;
        min-height: 0;
        padding: 1.05rem 1.05rem 3.55rem;
        gap: 0.35rem;
        background: transparent;
    }

    .news-gallery-card--featured .news-gallery-card__arrow {
        position: absolute;
        z-index: 3;
        right: 0.9rem;
        bottom: 1.15rem;
        opacity: 0.9;
    }

    .news-gallery-card--featured .news-gallery-card__title {
        display: -webkit-box;
        width: 100%;
        margin: 0;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-height: 1.3;
        color: var(--featured-overlay-title);
        text-shadow: var(--featured-overlay-shadow);
    }

    .news-gallery-card--featured .news-gallery-card__excerpt {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        width: 100%;
        margin: 0;
        padding-right: 1.75rem;
        color: var(--featured-overlay-excerpt);
        text-shadow: var(--featured-overlay-shadow);
    }

    .news-gallery-card--featured .news-date {
        color: var(--featured-overlay-accent);
        text-shadow: var(--featured-overlay-shadow);
    }

    .news-featured-stack--text-bottom .news-gallery-card--featured .news-gallery-card__body {
        justify-content: flex-end;
    }

    .news-gallery-card--featured:hover {
        background: var(--featured-overlay-card-bg);
        border-color: rgba(197, 160, 89, 0.58);
    }

    [data-theme="light"] .news-gallery-card--featured:hover {
        border-color: rgba(197, 160, 89, 0.5);
    }

    .event-gallery-card--featured {
        display: grid;
        grid-template: minmax(12.75rem, auto) / 1fr;
        position: relative;
        padding: 0;
        gap: 0;
        overflow: hidden;
        background: var(--featured-overlay-card-bg);
        border-color: rgba(197, 160, 89, 0.58);
        box-shadow:
            inset 0 0 0 1px rgba(197, 160, 89, 0.22),
            0 0 24px rgba(197, 160, 89, 0.14);
    }

    [data-theme="light"] .event-gallery-card--featured {
        border-color: rgba(197, 160, 89, 0.5);
        box-shadow:
            inset 0 0 0 1px rgba(197, 160, 89, 0.18),
            0 0 20px rgba(197, 160, 89, 0.1);
    }

    .event-gallery-card--featured .event-gallery-card__media {
        grid-area: 1 / 1;
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 12.75rem;
        aspect-ratio: unset;
        align-self: stretch;
        border-radius: 0;
        overflow: hidden;
    }

    .event-gallery-card--featured .event-gallery-card__media::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        background: var(--featured-overlay-scrim);
        pointer-events: none;
    }

    .event-gallery-card--featured .event-gallery-card__media img {
        position: absolute;
        inset: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: scale(1.05);
    }

    .event-gallery-card--featured .event-gallery-card__body {
        grid-area: 1 / 1;
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        align-self: stretch;
        min-height: 0;
        padding: 1.05rem 2.65rem 3.55rem 1.05rem;
        gap: 0.35rem;
        background: transparent;
    }

    .event-gallery-card--featured .event-gallery-card__arrow {
        position: absolute;
        z-index: 3;
        right: 0.9rem;
        bottom: 1.15rem;
        opacity: 0.9;
    }

    .event-gallery-card--featured .event-gallery-card__title {
        display: -webkit-box;
        width: 100%;
        margin: 0;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-height: 1.3;
        color: var(--featured-overlay-title);
        text-shadow: var(--featured-overlay-shadow);
    }

    .event-gallery-card--featured .event-gallery-card__excerpt {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        width: 100%;
        margin-top: auto;
        margin-bottom: 0.55rem;
        padding-right: 1.75rem;
        color: var(--featured-overlay-excerpt);
        text-shadow: var(--featured-overlay-shadow);
    }

    .event-gallery-card--featured .event-gallery-card__schedule,
    .event-gallery-card--featured .event-gallery-card__tag {
        color: var(--featured-overlay-accent);
        text-shadow: var(--featured-overlay-shadow);
    }

    .event-gallery-card--featured:hover {
        background: var(--featured-overlay-card-bg);
        border-color: rgba(197, 160, 89, 0.58);
    }

    [data-theme="light"] .event-gallery-card--featured:hover {
        border-color: rgba(197, 160, 89, 0.5);
    }
}

body.event-gallery-open {
    overflow: hidden;
}

/* ==========================================================================
   About section
   ========================================================================== */

.about-section {
    position: relative;
    padding-block: 1rem 3rem;
    background: var(--color-bg);
    transition: background var(--transition);
}

.content-shell--has-bg .about-section {
    background: transparent;
}

.content-shell--has-bg .about-page {
    background: transparent;
}

.content-shell--has-bg .about-page__article.glass-panel {
    background: color-mix(in srgb, var(--color-bg-card) 94%, var(--color-bg) 6%);
}

[data-theme="light"] .content-shell--has-bg .about-page__article.glass-panel {
    background: color-mix(in srgb, var(--color-bg-card) 96%, var(--color-bg) 4%);
}

.about-section__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: clamp(1.25rem, 2.5vw, 2rem);
    align-items: center;
    overflow: hidden;
}

.about-section__media {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

.about-section__figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid color-mix(in srgb, var(--color-gold) 28%, transparent);
    background: rgba(0, 0, 0, 0.25);
}

.about-section__figure--main {
    aspect-ratio: 4 / 5;
    cursor: zoom-in;
}

.about-section__figure--main:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

.about-section__figure--thumb {
    aspect-ratio: 16 / 10;
    cursor: zoom-in;
}

.about-section__figure--thumb:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

.about-section__figure--thumb:hover img {
    opacity: 0.92;
}

.about-section__figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-section__figure:hover img {
    transform: scale(1.03);
}

.about-section__frame {
    position: absolute;
    inset: 0.65rem;
    border: 1px solid color-mix(in srgb, var(--color-gold-light) 35%, transparent);
    border-radius: calc(var(--radius-md) - 4px);
    pointer-events: none;
    opacity: 0.7;
}

.about-section__thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.about-section__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.about-section__eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gold);
}

.about-section__lead {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.45;
    color: var(--color-text);
}

.about-section__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.about-section__body p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}

.about-section__highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 0.35rem;
}

.about-highlight {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 100%;
    padding: 1rem 1rem 1rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(197, 160, 89, 0.22);
    background:
        linear-gradient(145deg, rgba(197, 160, 89, 0.08) 0%, rgba(255, 255, 255, 0.02) 52%, rgba(0, 0, 0, 0.12) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.about-highlight::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    bottom: 0.85rem;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
    opacity: 0.85;
}

[data-theme="light"] .about-highlight {
    background:
        linear-gradient(145deg, rgba(197, 160, 89, 0.1) 0%, rgba(255, 255, 255, 0.72) 55%, rgba(245, 240, 232, 0.95) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.about-highlight:hover {
    border-color: color-mix(in srgb, var(--color-gold) 48%, var(--color-border));
    background:
        linear-gradient(145deg, rgba(197, 160, 89, 0.14) 0%, rgba(197, 160, 89, 0.05) 48%, rgba(0, 0, 0, 0.08) 100%);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 24px rgba(0, 0, 0, 0.16);
}

[data-theme="light"] .about-highlight:hover {
    background:
        linear-gradient(145deg, rgba(197, 160, 89, 0.16) 0%, rgba(255, 255, 255, 0.82) 52%, rgba(245, 240, 232, 1) 100%);
}

.about-highlight__title {
    margin: 0;
    padding-left: 0.15rem;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-gold-light);
}

[data-theme="light"] .about-highlight__title {
    color: var(--color-brown);
}

.about-highlight__text {
    margin: 0;
    padding-left: 0.15rem;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--color-text);
    opacity: 0.9;
}

[data-theme="light"] .about-highlight__text {
    color: var(--color-text-muted);
    opacity: 1;
}

.about-section__actions,
.about-page__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    padding-top: 1.15rem;
    border-top: 1px solid var(--color-border);
}

.about-section__actions {
    margin-top: 1.15rem;
}

.about-page__actions {
    margin-top: 0.25rem;
}

.about-section__link,
.about-page__link {
    display: inline-flex;
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .about-section__actions,
    .about-page__actions {
        width: 100%;
    }
}

.about-section__link--lead,
.about-page__link--lead {
    border-color: var(--btn-primary-border);
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow:
        var(--btn-primary-shadow),
        0 0 20px rgba(197, 160, 89, 0.16);
}

.about-section__link--lead::before,
.about-page__link--lead::before {
    background: var(--btn-shine);
}

.about-section__link--lead:hover,
.about-page__link--lead:hover {
    background: var(--btn-primary-bg-hover);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-border);
    box-shadow:
        var(--btn-primary-shadow-hover),
        0 0 26px rgba(197, 160, 89, 0.24);
}

.about-section__link--lead:active,
.about-page__link--lead:active {
    transform: translateY(1px);
    box-shadow: var(--btn-primary-shadow-active);
}

/* About image modal */
.about-image-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 2rem);
}

.about-image-modal[hidden] {
    display: none;
}

.about-image-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
}

.about-image-modal__dialog {
    position: relative;
    width: min(920px, 100%);
    z-index: 1;
}

.about-image-modal__close {
    position: absolute;
    top: -0.25rem;
    right: 0;
    transform: translateY(-100%);
    width: 2.5rem;
    height: 2.5rem;
    z-index: 2;
}

.about-image-modal__prev,
.about-image-modal__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    z-index: 2;
}

.about-image-modal__prev {
    left: -0.25rem;
}

.about-image-modal__next {
    right: -0.25rem;
}

.about-image-modal__prev[hidden],
.about-image-modal__next[hidden],
.about-image-modal__counter[hidden] {
    display: none;
}

.about-image-modal__figure {
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--color-gold) 35%, transparent);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.about-image-modal__img {
    display: block;
    width: 100%;
    max-height: min(78vh, 860px);
    object-fit: contain;
    margin: 0 auto;
}

.about-image-modal__counter {
    margin: 0.85rem 0 0;
    text-align: center;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(239, 231, 220, 0.78);
}

body.about-image-modal-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .about-image-modal__prev {
        left: 0.35rem;
    }

    .about-image-modal__next {
        right: 0.35rem;
    }

    .about-image-modal__close {
        top: 0.35rem;
        right: 0.35rem;
        transform: none;
    }
}

[data-theme="light"] .about-image-modal__counter {
    color: rgba(42, 34, 28, 0.72);
}

/* ==========================================================================
   About page (/about)
   ========================================================================== */

.content-shell--page {
    min-height: calc(100vh - var(--header-height, 4.5rem));
    padding-top: calc(var(--header-height, 4.5rem) + 1.5rem);
}

.about-page {
    position: relative;
    padding-block: 1rem 4.5rem;
}

.about-page__crumb {
    margin-bottom: 1.25rem;
}

.about-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition);
}

.about-page__back::before {
    content: '←';
    font-size: 0.95rem;
}

.about-page__back:hover {
    color: var(--color-gold-light);
}

.about-page__head {
    max-width: 760px;
    margin-bottom: 2rem;
}

.about-page__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.35;
    letter-spacing: 0.04em;
    color: var(--color-gold-light);
}

[data-theme="light"] .about-page__title {
    color: var(--color-brown);
}

.about-page__article {
    max-width: 820px;
    margin-inline: auto;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.about-page__intro,
.about-page__outro {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-page__intro.news-modal__body {
    display: block;
}

.about-page__intro p,
.about-page__outro p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--color-text);
}

.about-page__features-title {
    margin: 0 0 1rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    color: var(--color-gold-light);
}

[data-theme="light"] .about-page__features-title {
    color: var(--color-brown);
}

.about-page__feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.about-page__feature {
    position: relative;
    padding: 0.85rem 0 0.85rem 1.1rem;
    border-left: 2px solid rgba(197, 160, 89, 0.55);
}

.about-page__feature-title {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    color: var(--color-gold-light);
}

[data-theme="light"] .about-page__feature-title {
    color: var(--color-brown);
}

.about-page__feature-text {
    display: block;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.about-page__notice {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(197, 160, 89, 0.22);
    text-align: center;
}

.about-page__notice-title {
    margin: 0 0 0.45rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: var(--color-gold-light);
}

[data-theme="light"] .about-page__notice-title {
    color: var(--color-brown);
}

.about-page__notice-text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .content-shell--page {
        padding-top: calc(var(--header-height, 4.5rem) + 0.75rem);
    }

    .about-page__article {
        padding: 1.25rem;
    }
}

[data-theme="light"] .about-section__link--lead,
[data-theme="light"] .about-page__link--lead {
    border-color: var(--btn-primary-border);
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: var(--btn-primary-shadow);
}

[data-theme="light"] .about-section__link--lead:hover,
[data-theme="light"] .about-page__link--lead:hover {
    background: var(--btn-primary-bg-hover);
    color: var(--btn-primary-text);
    box-shadow: var(--btn-primary-shadow-hover);
}

/* ── Videos page ──────────────────────────────────────────────────────────── */

.videos-page__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
    margin-top: 2rem;
}

.videos-page__item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.videos-page__card {
    display: block;
    border-radius: 0.625rem;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.videos-page__card:hover,
.videos-page__card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    outline: none;
}

.videos-page__card .video-card__thumb {
    border-radius: 0.625rem;
    aspect-ratio: 16 / 9;
}

.videos-page__card .video-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.videos-page__meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.125rem;
}

.videos-page__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
    margin: 0;
}

.videos-page__description {
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.55;
    margin: 0;
}

.videos-page__category {
    font-size: 0.8rem;
    color: var(--color-gold);
    margin: 0;
    opacity: 0.85;
}

.videos-page__empty {
    padding: 2.5rem 2rem;
    text-align: center;
}

.videos-page__empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.5rem;
}

.videos-page__empty-text {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin: 0;
}

@media (max-width: 600px) {
    .videos-page__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────── */

.page-anchor {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* ==========================================================================
   Stats section
   ========================================================================== */

.stats-section {
    position: relative;
    padding-block: 1rem 4rem;
    background: var(--color-bg);
    transition: background var(--transition);
}

.content-shell--has-bg .content-section,
.content-shell--has-bg .stats-section {
    background: transparent;
}

.stats-boards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.stats-board {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
    overflow: hidden;
}

.stats-board__head {
    padding: 1.15rem 1.25rem 0.85rem;
    border-bottom: 1px solid var(--color-border);
}

.stats-board__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gold-light);
}

[data-theme="light"] .stats-board__title {
    color: var(--color-brown);
}

.stats-board__body {
    flex: 1 1 auto;
    min-height: 12rem;
    padding: 0.85rem 1rem 1rem;
}

.stats-board__empty {
    margin: 0;
    min-height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--color-text-muted);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .stats-board__empty {
    background: rgba(255, 255, 255, 0.45);
}

.stats-board__foot {
    padding: 0 1rem 1rem;
    margin-top: auto;
}

.stats-forum-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 22rem;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold-dim) transparent;
}

.stats-forum-list__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-forum-list__item:last-child {
    border-bottom: none;
}

[data-theme="light"] .stats-forum-list__item {
    border-bottom-color: rgba(0, 0, 0, 0.07);
}

.stats-forum-list__link {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: 0.72rem 0.55rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: background var(--transition), color var(--transition);
}

.stats-forum-list__link:hover {
    background: rgba(255, 255, 255, 0.03);
}

.stats-forum-list__link:hover .stats-forum-list__title {
    color: var(--color-gold-light);
}

[data-theme="light"] .stats-forum-list__link:hover {
    background: rgba(255, 255, 255, 0.58);
}

.stats-forum-list__title {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stats-forum-list__excerpt {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--color-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stats-forum-list__meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.12rem;
    font-size: 0.68rem;
    line-height: 1.3;
}

.stats-forum-list__author {
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--color-gold);
}

[data-theme="light"] .stats-forum-list__author {
    color: var(--color-brown);
}

.stats-forum-list__meta-sep {
    color: var(--color-text-muted);
    opacity: 0.55;
}

.stats-forum-list__date {
    font-weight: 500;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--color-text-muted);
}

.stats-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 22rem;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold-dim) transparent;
}

.stats-table__head,
.stats-table__row {
    display: grid;
    align-items: center;
    gap: 0.35rem 0.5rem;
    padding: 0.45rem 0.55rem;
}

.stats-table--players .stats-table__head,
.stats-table--players .stats-table__row {
    grid-template-columns: 1.75rem minmax(0, 1fr) 4.5rem 3rem;
}

.stats-table--heroes .stats-table__head,
.stats-table--heroes .stats-table__row {
    grid-template-columns: 1.75rem 5.5rem minmax(0, 1fr);
}

.stats-table__head {
    position: sticky;
    top: 0;
    z-index: 1;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gold);
    opacity: 0.82;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
}

[data-theme="light"] .stats-table__head {
    color: var(--color-brown);
    opacity: 1;
}

.stats-table__row {
    font-size: 0.78rem;
    line-height: 1.35;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background var(--transition);
}

.stats-table__row:hover {
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .stats-table__row:hover {
    background: rgba(255, 255, 255, 0.72);
}

[data-theme="light"] .stats-table__row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.stats-table__row:last-child {
    border-bottom: none;
}

.stats-table__row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .stats-table__row:nth-child(even) {
    background: rgba(255, 255, 255, 0.42);
}

.stats-table__cell--rank {
    font-variant-numeric: tabular-nums;
    color: var(--color-text-muted);
}

.stats-table__row:nth-child(2) .stats-table__cell--rank,
.stats-table__row:nth-child(3) .stats-table__cell--rank,
.stats-table__row:nth-child(4) .stats-table__cell--rank {
    color: var(--color-gold-light);
    font-weight: 700;
}

[data-theme="light"] .stats-table__row:nth-child(2) .stats-table__cell--rank,
[data-theme="light"] .stats-table__row:nth-child(3) .stats-table__cell--rank,
[data-theme="light"] .stats-table__row:nth-child(4) .stats-table__cell--rank {
    color: var(--color-brown);
}

.stats-table__cell--name {
    font-weight: 600;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-table__row:nth-child(2) .stats-table__cell--name,
.stats-table__row:nth-child(3) .stats-table__cell--name,
.stats-table__row:nth-child(4) .stats-table__cell--name {
    color: var(--color-gold-light);
}

[data-theme="light"] .stats-table__row:nth-child(2) .stats-table__cell--name,
[data-theme="light"] .stats-table__row:nth-child(3) .stats-table__cell--name,
[data-theme="light"] .stats-table__row:nth-child(4) .stats-table__cell--name {
    color: var(--color-brown);
}

.stats-table__cell--pvp {
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: var(--color-text-muted);
}

.stats-table__cell--points {
    font-variant-numeric: tabular-nums;
    text-align: right;
    font-weight: 700;
    color: var(--color-gold-light);
}

[data-theme="light"] .stats-table__cell--points {
    color: var(--color-brown);
}

.stats-table__cell--message {
    font-size: 0.72rem;
    font-style: italic;
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    position: relative;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding-block: 3rem;
    transition: background var(--transition), border-color var(--transition);
}

.site-footer::after {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    top: 0;
    height: 1px;
    background: var(--header-line);
    pointer-events: none;
}

.site-subfooter {
    background: var(--subfooter-bg);
    border-top: 1px solid var(--subfooter-border);
    transition: background var(--transition), border-color var(--transition);
}

.site-subfooter__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding-block: 0.7rem;
    text-align: center;
}

.site-subfooter__eyebrow {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--subfooter-text);
    opacity: 0.85;
}

.site-subfooter__credit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: var(--subfooter-text);
}

.site-subfooter__year {
    color: var(--subfooter-text);
}

.site-subfooter__studio {
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--subfooter-link);
    text-decoration: none;
    transition: color var(--transition);
}

.site-subfooter__studio:hover {
    color: var(--subfooter-link-hover);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 2rem;
    align-items: start;
}

.site-footer__brand {
    justify-self: start;
}

.site-footer__logo {
    object-fit: contain;
    opacity: 0.7;
    filter: grayscale(0.3);
    margin-bottom: 0.75rem;
}

[data-theme="light"] .site-footer__logo {
    filter: grayscale(0.5) sepia(0.3);
}

.site-footer__copy {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    max-width: 220px;
}

.site-footer__copy-brand {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.05em;
    color: var(--color-gold);
}

.site-footer__copy-note {
    font-size: 0.62rem;
    line-height: 1.5;
    letter-spacing: 0.015em;
    color: var(--color-text-muted);
    opacity: 0.88;
}

.site-footer__social {
    display: flex;
    gap: 0.75rem;
    align-self: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    color: var(--color-gold);
    transition: background var(--transition), border-color var(--transition);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-link:hover {
    background: var(--color-gold-dim);
    border-color: var(--btn-outline-border-hover);
}

.site-footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-col__title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.35rem;
}

.footer-col a {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--color-gold);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 1201px) {
    .site-header__cabinet {
        display: inline-flex;
    }
}

@media (max-width: 1200px) {
    .site-nav__link {
        --nav-link-pad-x: 0.65rem;
        padding: 0.45rem var(--nav-link-pad-x);
        font-size: 0.62rem;
        letter-spacing: 0.08em;
    }

    .site-nav__items {
        row-gap: 5px;
    }

    .site-header__cabinet {
        display: none;
    }

    .video-strip { grid-template-columns: repeat(3, 1fr); }
    .video-strip .video-card:nth-child(n+4) { display: none; }

    .video-strip--centered.video-strip--items-1 .video-card,
    .video-strip--centered.video-strip--items-2 .video-card,
    .video-strip--centered.video-strip--items-4 .video-card {
        flex-basis: calc((100% - 2 * 1rem) / 3);
        max-width: calc((100% - 2 * 1rem) / 3);
    }

    .video-strip--centered.video-strip--items-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .video-strip--centered.video-strip--items-3 .video-card {
        flex: unset;
        max-width: none;
    }
}

@media (max-width: 992px) {
    .about-section__layout {
        grid-template-columns: 1fr;
    }

    .about-section__figure--main {
        aspect-ratio: 16 / 10;
        max-height: 22rem;
    }

    .content-section__grid {
        gap: 3rem;
    }

    .content-section__grid--both {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .content-section__grid--both .news-block,
    .content-section__grid--both .events-block {
        display: block;
        min-height: 0;
    }

    .content-section__grid--both .news-block__body,
    .content-section__grid--both .events-block__content {
        flex: none;
        display: block;
        min-height: 0;
        gap: 0;
    }

    .content-section__grid--both .news-featured-stack {
        flex: none;
        margin-bottom: 1.25rem;
    }

    .content-section__grid--both .news-featured-stack--pair {
        height: auto;
        grid-template-rows: none;
        gap: 1rem;
    }

    .content-section__grid--both .news-grid {
        margin-top: 0;
    }

    .content-section__grid--both .news-featured-stack--pair > .news-featured {
        grid-template: none;
        min-height: 0;
        height: auto;
    }

    .content-section__grid--both .news-featured-stack--pair > .news-featured .news-featured__media {
        min-height: 0;
        height: 100%;
    }

    .content-section__grid--events-only .events-block {
        width: 100%;
    }

    .news-block,
    .events-block {
        min-height: 0;
    }

    .events-block__content {
        flex: none;
    }

    .events-layout--sidebar .event-featured,
    .events-layout--sidebar .event-item,
    .events-layout--horizontal > .event-featured,
    .events-layout--horizontal > .event-item {
        flex: none;
    }

    .event-featured__media {
        aspect-ratio: var(--event-featured-media-ratio);
    }

    .news-featured-stack:not(.news-featured-stack--pair) .news-featured {
        grid-template-columns: 1fr;
    }

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

    .news-card__media {
        height: 8.25rem;
        aspect-ratio: unset;
    }

    .stats-boards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stats-table--heroes .stats-table__head,
    .stats-table--heroes .stats-table__row {
        grid-template-columns: 1.75rem minmax(0, 1fr) minmax(0, 1.2fr);
    }

    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__social {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .site-footer__links {
        grid-column: 1 / -1;
    }

    .site-header__inner {
        justify-content: space-between;
        gap: 0.65rem;
    }

    .site-header__lead {
        display: flex;
        flex: 0 0 auto;
        z-index: 3;
    }

    .site-header__trail {
        flex: 0 0 auto;
        z-index: 3;
    }

    .site-nav {
        flex: none;
        justify-content: flex-start;
    }

    .burger {
        display: flex;
    }

    .site-header__actions {
        gap: 0.4rem;
    }

    .site-header__cabinet {
        display: none;
    }

    .site-nav {
        position: fixed;
        top: var(--header-height, var(--header-h));
        left: 0;
        right: 0;
        transform: translateY(-100%);
        max-width: none;
        z-index: 99;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100dvh - var(--header-height, var(--header-h)));
        overflow-y: auto;
        padding: 0.5rem 0 0.65rem;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--glass-border);
        background: var(--header-bg);
        backdrop-filter: var(--header-blur);
        -webkit-backdrop-filter: var(--header-blur);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s, background var(--transition);
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-nav__items {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 0;
    }

    .site-nav__home {
        width: 100%;
        margin: 0;
        min-height: auto;
        padding: 0.9rem 1.35rem;
        justify-content: flex-start;
        gap: 0.65rem;
        border-radius: 0;
        border: none;
        border-left: 2px solid transparent;
        background: none;
        box-shadow: none;
        color: rgba(232, 210, 168, 0.82);
        font-size: 0.72rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        transform: none;
    }

    .site-nav__home::before {
        display: none;
    }

    .site-nav__home:hover:not(.site-nav__home--active),
    .site-nav__home:active:not(.site-nav__home--active) {
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid rgba(197, 160, 89, 0.35);
        color: var(--color-gold-light);
        background: var(--nav-hover-bg);
    }

    .site-nav__home--active,
    .site-nav__home--active:hover,
    .site-nav__home--active:active {
        transform: none;
        color: var(--btn-primary-text);
        background: var(--btn-primary-bg);
        border: none;
        border-left: 2px solid rgba(255, 236, 198, 0.35);
        box-shadow: var(--btn-primary-shadow);
        border-radius: 0;
    }

    .site-nav__home--active::before {
        display: block;
        opacity: 1;
    }

    .site-nav__home-icon {
        display: none;
    }

    .site-nav__home-label {
        display: inline;
        position: static;
        z-index: auto;
    }

    .site-nav__link {
        width: 100%;
        padding: 0.9rem 1.35rem;
        text-align: left;
        font-size: 0.72rem;
        letter-spacing: 0.12em;
        color: var(--color-text-muted);
        border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
        border: none;
        border-left: 2px solid transparent;
        text-shadow: none;
    }

    .site-nav__link:hover:not(.site-nav__link--active) {
        color: var(--color-gold-light);
        background: var(--nav-hover-bg);
        border-left-color: rgba(197, 160, 89, 0.35);
        text-shadow: none;
    }

    .site-nav__link--active {
        color: var(--nav-active-text);
        background: var(--nav-active-bg);
        border-left-color: var(--color-gold);
        box-shadow: var(--nav-active-shadow);
        text-shadow: none;
    }

    .site-nav__link--active::before {
        opacity: 1;
    }

    .site-nav__link--cabinet {
        display: block;
        margin-top: 0.35rem;
        padding-top: 1rem;
        border-top: 1px solid var(--color-border);
        color: var(--color-gold-light);
        font-weight: 600;
    }

    [data-theme="light"] .site-nav__link--active {
        color: var(--color-brown);
    }

    [data-theme="light"] .site-nav__home,
    [data-theme="light"] .site-nav__home:hover {
        color: rgba(92, 64, 51, 0.78);
        background: none;
        border-left-color: transparent;
    }

    [data-theme="light"] .site-nav__home--active,
    [data-theme="light"] .site-nav__home--active:hover {
        color: var(--btn-primary-text);
        background: var(--btn-primary-bg);
        border-left-color: rgba(255, 236, 198, 0.35);
    }
}

@media (max-width: 768px) {
    .hero__bg {
        background-image: url('/assets/img/hero-mobile.jpg');
        background-attachment: scroll;
    }

    .server-status__label {
        display: none;
    }

    .server-status {
        padding: 0.35rem 0.6rem;
        gap: 0.45rem;
        min-height: 34px;
    }

    .theme-toggle,
    .lang-switch {
        height: 34px;
        min-width: 34px;
    }

    .lang-switch__flag {
        width: 18px;
        height: 12px;
    }

    .hero__body {
        min-height: 100dvh;
        min-height: 100svh;
        padding-top: calc(var(--header-h) + 0.5rem);
        padding-bottom: var(--hero-videos-reserve);
        justify-content: flex-start;
    }

    .hero__layout {
        display: flex;
        flex-direction: column;
        flex: 0 0 auto;
        align-items: center;
        gap: 0.85rem;
    }

    .hero-intro {
        display: block;
        width: 100%;
        text-align: center;
        padding-top: 0;
    }

    .hero__logo {
        width: clamp(108px, 28vw, 140px);
        margin-bottom: 0.5rem;
    }

    .hero__eyebrow {
        margin-bottom: 0;
    }

    .hero-launch {
        width: 320px;
        max-width: 320px;
        align-self: center;
        margin-top: 0;
        padding: 1.1rem 1rem 1rem;
    }

    .hero-launch__head {
        margin-bottom: 0.85rem;
    }

    .hero-launch__title {
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .hero-countdown {
        margin-bottom: 0.85rem;
        padding: 0.65rem 0.35rem;
    }

    .hero-launch__actions {
        gap: 0.55rem;
    }

    .hero__videos {
        bottom: clamp(0.55rem, 1.8vh, 0.85rem);
    }

    :root {
        --hero-videos-reserve: clamp(8.25rem, 22vh, 10.25rem);
    }

    .video-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-strip .video-card:nth-child(n+3) { display: none; }

    .videos-all-bar {
        padding: 1rem 0 1.25rem;
    }

    .content-section {
        padding-block: 2.25rem 2.75rem;
    }

    .about-section {
        padding-block: 0.5rem 2.25rem;
    }

    .about-section__highlights {
        grid-template-columns: 1fr;
    }

    .section-header {
        margin-bottom: 1.25rem;
    }

    .section-header__title {
        font-size: 1.28rem;
        line-height: 1.25;
    }

    .section-header__desc {
        font-size: 0.82rem;
        line-height: 1.55;
    }

    .section-header--center {
        margin-bottom: 1.5rem;
    }

    .news-featured-stack:not(.news-featured-stack--pair) .news-featured__body {
        padding: 1.15rem 1.1rem 1.25rem;
    }

    .news-featured-stack:not(.news-featured-stack--pair) .news-featured__title {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .stats-section {
        padding-block: 0 3rem;
    }

    .stats-board__body {
        min-height: 10rem;
    }

    .stats-table--heroes .stats-table__head,
    .stats-table--heroes .stats-table__row {
        grid-template-columns: 1.75rem 4.5rem minmax(0, 1fr);
    }

    .video-strip--centered.video-strip--items-1 .video-card {
        flex-basis: calc((100% - 1rem) / 2);
        max-width: calc((100% - 1rem) / 2);
    }

    .video-strip--centered.video-strip--items-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .video-strip--centered.video-strip--items-2 .video-card {
        flex: unset;
        max-width: none;
    }

    .hero__videos-all--mobile {
        width: min(100%, 18rem);
    }

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

    .news-card__media {
        height: 8.25rem;
        aspect-ratio: unset;
    }

    .stats-boards {
        grid-template-columns: 1fr;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .site-footer__links {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .video-gallery-modal {
        padding: 0.75rem;
    }

    .video-gallery-modal__dialog {
        max-height: 92vh;
        padding: 1rem 0.85rem;
    }

    .video-gallery-modal__grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .video-gallery-modal__title {
        font-size: 1.05rem;
    }

    .hero-countdown__item {
        min-width: 2.65rem;
        padding: 0.4rem 0.25rem 0.35rem;
    }

    .hero-countdown__value {
        font-size: 1.15rem;
    }

    .hero-countdown__sep {
        font-size: 0.95rem;
    }

    .hero-launch {
        padding: 1.2rem 1rem 1.35rem;
    }
}

/* Quick start guide modal */
.quick-start-modal {
    position: fixed;
    inset: 0;
    z-index: 1860;
    display: grid;
    place-items: center;
    padding: clamp(0.75rem, 3vw, 1.5rem);
}

.quick-start-modal[hidden] {
    display: none;
}

body.quick-start-modal-open {
    overflow: hidden;
}

.quick-start-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
}

.quick-start-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(18, 13, 10, 0.98) 0%, rgba(10, 7, 5, 0.98) 100%);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(197, 160, 89, 0.08) inset;
}

[data-theme="light"] .quick-start-modal__dialog {
    background: linear-gradient(180deg, rgba(252, 248, 242, 0.98) 0%, rgba(245, 240, 232, 0.98) 100%);
    border-color: rgba(92, 64, 51, 0.22);
    box-shadow:
        0 24px 64px rgba(44, 34, 24, 0.14),
        0 0 0 1px rgba(255, 252, 247, 0.85) inset;
}

.quick-start-modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 3;
    width: 2.25rem;
    height: 2.25rem;
}

.quick-start-modal__close svg {
    width: 1rem;
    height: 1rem;
}

.quick-start-modal__layout {
    display: grid;
    grid-template-columns: minmax(190px, 32%) 1fr;
    align-items: stretch;
    min-height: 22rem;
}

.quick-start-modal__media {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: var(--placeholder-bg);
}

.quick-start-modal__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 7, 5, 0.08) 0%, rgba(10, 7, 5, 0.72) 100%);
    pointer-events: none;
}

[data-theme="light"] .quick-start-modal__media::after {
    background: linear-gradient(180deg, rgba(10, 7, 5, 0.04) 0%, rgba(10, 7, 5, 0.48) 100%);
}

.quick-start-modal__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
}

.quick-start-modal__badge {
    position: absolute;
    left: 0.9rem;
    bottom: 0.9rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.72rem;
    border: 1px solid rgba(197, 160, 89, 0.45);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-gold);
    background: rgba(10, 7, 5, 0.55);
    backdrop-filter: blur(4px);
}

.quick-start-modal__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1.15rem, 2.8vw, 1.55rem) clamp(1.2rem, 3vw, 1.65rem);
}

.quick-start-modal__head {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-right: 2rem;
}

.quick-start-modal__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.8vw, 1.48rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-gold);
}

.quick-start-modal__intro {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.quick-start-modal__subtitle {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text);
}

.quick-start-modal__lead {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.quick-start-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quick-start-step {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: flex-start;
    padding: 0.78rem 0.82rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-gold-dim);
}

[data-theme="light"] .quick-start-step {
    background: rgba(139, 105, 20, 0.07);
    border-color: rgba(92, 64, 51, 0.16);
}

.quick-start-step__num {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-bg);
    background: linear-gradient(135deg, #d4b06a 0%, #c5a059 45%, #a8843f 100%);
    box-shadow: 0 2px 8px rgba(197, 160, 89, 0.35);
}

.quick-start-step__content {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
}

.quick-start-step__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
}

.quick-start-step__text {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.quick-start-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.quick-start-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding-inline: 1rem;
    font-size: clamp(0.78rem, 2vw, 0.88rem);
    line-height: 1.25;
    text-align: center;
}

.quick-start-register span {
    white-space: normal;
}

.quick-start-modal__downloads {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.quick-start-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.55rem;
    padding-inline: 0.7rem;
    font-size: clamp(0.72rem, 1.8vw, 0.8rem);
    line-height: 1.25;
    text-align: center;
}

.quick-start-download span {
    white-space: normal;
}

.quick-start-download > *,
.quick-start-modal__support-link > * {
    position: relative;
    z-index: 1;
}

.quick-start-btn__icon,
.section-all-btn.quick-start-download .section-all-btn__icon,
.quick-start-modal__support-link .section-all-btn__icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    fill: currentColor;
    opacity: 0.95;
}

.quick-start-btn__icon--stroke,
.quick-start-btn__icon--stroke path,
.quick-start-btn__icon--stroke circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn--primary.quick-start-download .quick-start-btn__icon--stroke {
    opacity: 1;
}

.quick-start-register .quick-start-btn__icon--stroke {
    opacity: 1;
}

.quick-start-modal__support {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.quick-start-modal__support-text {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--color-text-muted);
}

.quick-start-modal__support-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.35rem;
    padding-inline: 1rem;
    font-size: 0.74rem;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .quick-start-modal__layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .quick-start-modal__media {
        aspect-ratio: 2.4 / 1;
        max-height: 11rem;
    }

    .quick-start-modal__media img {
        object-position: center center;
    }

    .quick-start-steps {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .quick-start-step {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0.65rem;
        align-items: start;
    }
}

@media (max-width: 560px) {
    .quick-start-modal__downloads {
        grid-template-columns: 1fr;
    }

    .quick-start-register,
    .quick-start-download {
        width: 100%;
    }

    .quick-start-modal__support {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-start-modal__support-link {
        justify-content: center;
    }
}

@media (max-height: 860px) {
    .hero {
        min-height: auto;
    }

    .hero__body {
        padding-bottom: clamp(2rem, 6vh, 3.5rem);
    }

    .hero__videos {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 0;
        padding-block: 1.5rem 2.5rem;
    }
}

/* ==========================================================================
   Error pages — 403 / 404
   ========================================================================== */

/* Body-level flex layout for error pages — prevents scrollbar */
.page-error {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
}

.page-error #main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-height, var(--header-h));
}

.error-page {
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Atmospheric glow in the background */
.error-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 35%, rgba(197, 160, 89, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(197, 160, 89, 0.03) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.error-page .container {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: clamp(2.5rem, 6vh, 5rem);
}

.error-page__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    max-width: 560px;
    width: 100%;
}

/* Decorative ornament above the code */
.error-page__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.error-page__ornament-line {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold));
}

.error-page__ornament-line:last-child {
    background: linear-gradient(90deg, var(--color-gold), transparent);
}

.error-page__ornament-diamond {
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* Large error code number */
.error-page__code {
    font-family: var(--font-heading);
    font-size: clamp(6.5rem, 18vw, 11rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: 0.06em;
    background: linear-gradient(
        180deg,
        var(--color-gold-bright) 0%,
        var(--color-gold) 42%,
        rgba(138, 100, 44, 0.85) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 32px rgba(197, 160, 89, 0.22));
    margin-bottom: 1.5rem;
    user-select: none;
}

.error-page__title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.8vw, 1.75rem);
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.03em;
    margin: 0 0 1.25rem;
}

/* Thin gold rule separator */
.error-page__rule {
    width: 100%;
    max-width: 240px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold) 30%, var(--color-gold) 70%, transparent);
    opacity: 0.3;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.error-page__message {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0 0 2.25rem;
    max-width: 400px;
}

.error-page__actions {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .error-page .container {
        align-items: flex-start;
        padding-top: clamp(2rem, 5vh, 3.5rem);
    }
}

@media (max-width: 480px) {
    .error-page__code {
        font-size: 5.5rem;
    }

    .error-page__actions .btn {
        width: 100%;
        justify-content: center;
    }
}
