/* fonts.css */
/* Шрифты сайта. Файлы скачаны с Google Fonts (Open Font License) командой npm run fonts. */

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 500 700;
    font-display: optional;
    src: url('/DnDRoom/assets/fonts/cormorant-garamond-600i-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 500 700;
    font-display: optional;
    src: url('/DnDRoom/assets/fonts/cormorant-garamond-600i-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500 700;
    font-display: optional;
    src: url('/DnDRoom/assets/fonts/cormorant-garamond-600-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500 700;
    font-display: optional;
    src: url('/DnDRoom/assets/fonts/cormorant-garamond-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Golos Text';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('/DnDRoom/assets/fonts/golos-text-400-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Golos Text';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('/DnDRoom/assets/fonts/golos-text-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Golos Text';
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url('/DnDRoom/assets/fonts/golos-text-600-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Golos Text';
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url('/DnDRoom/assets/fonts/golos-text-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* base.css */
/* ==========================================================================
   D&D Room — дизайн-токены и базовые стили
   Настроение: таверна глубокой ночью. Тёмный дуб, свечное золото, угли.
   ========================================================================== */

@layer reset, base, components, sections, utilities;

:root {
    color-scheme: dark;

    /* Поверхности */
    --bg: #0e0c0a;
    --bg-raised: #15120f;
    --surface: #1b1713;
    --surface-2: #231e19;
    --surface-3: #2d2620;
    --line: rgb(232 200 140 / 0.1);
    --line-strong: rgb(232 200 140 / 0.22);

    /* Текст */
    --text: #f1e6d0;
    --text-muted: #b3a48d;
    --text-dim: #7d7162;

    /* Акценты */
    --gold: #d9aa55;
    --gold-bright: #f3cd7b;
    --gold-deep: #9c7433;
    --ember: #e2733d;
    --arcane: #9d8cf2;
    --moss: #86b86f;
    --blood: #e0605a;

    --gold-a10: rgb(217 170 85 / 0.1);
    --gold-a20: rgb(217 170 85 / 0.2);
    --ember-a15: rgb(226 115 61 / 0.15);

    /* Типографика */
    --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
    --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-md: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: clamp(1.35rem, 1.1rem + 0.8vw, 1.6rem);
    --fs-h2: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem);
    --fs-h1: clamp(2.9rem, 1.8rem + 4.6vw, 5.6rem);

    /* Ритм */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;
    --space-9: clamp(4.5rem, 3rem + 6vw, 8rem);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 0 rgb(255 240 210 / 0.04) inset, 0 2px 6px rgb(0 0 0 / 0.35);
    --shadow: 0 1px 0 rgb(255 240 210 / 0.05) inset, 0 18px 40px -18px rgb(0 0 0 / 0.7);
    --shadow-glow: 0 0 0 1px var(--gold-a20), 0 10px 40px -10px rgb(217 170 85 / 0.35);

    --container: 1240px;
    --header-h: 72px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 220ms;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
@layer reset {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    * {
        margin: 0;
    }

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

    body {
        min-height: 100dvh;
        line-height: 1.55;
        -webkit-font-smoothing: antialiased;
    }

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

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

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

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

    ul[role='list'],
    ol[role='list'] {
        list-style: none;
        padding: 0;
    }

    h1,
    h2,
    h3,
    h4 {
        text-wrap: balance;
        line-height: 1.1;
    }

    p {
        text-wrap: pretty;
    }

    fieldset {
        border: 0;
        padding: 0;
        min-width: 0;
    }

    [hidden] {
        display: none !important;
    }

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

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

/* --------------------------------------------------------------------------
   База
   -------------------------------------------------------------------------- */
@layer base {
    body {
        font-family: var(--font-body);
        font-size: var(--fs-md);
        color: var(--text);
        font-variant-numeric: lining-nums;
        background-color: var(--bg);
        background-image:
            radial-gradient(1200px 600px at 85% -10%, rgb(226 115 61 / 0.09), transparent 60%),
            radial-gradient(900px 500px at -10% 30%, rgb(157 140 242 / 0.05), transparent 60%),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 .9  0 0 0 0 .7  0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
        background-attachment: fixed, fixed, scroll;
        overflow-x: hidden;
    }

    body.is-locked {
        overflow: hidden;
    }

    ::selection {
        background: var(--gold);
        color: #1a130a;
    }

    :focus-visible {
        outline: 2px solid var(--gold-bright);
        outline-offset: 3px;
        border-radius: 4px;
    }

    h1,
    h2,
    h3 {
        font-family: var(--font-display);
        font-weight: 600;
        letter-spacing: -0.01em;
    }

    em {
        font-style: italic;
    }

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

    .section {
        padding-block: var(--space-9);
        position: relative;
    }

    .section--defer {
        content-visibility: auto;
        contain-intrinsic-size: auto 900px;
    }

    .section-head {
        display: grid;
        gap: var(--space-4);
        margin-bottom: var(--space-7);
        max-width: 760px;
    }

    .section-head--center {
        margin-inline: auto;
        text-align: center;
        justify-items: center;
    }

    .section-head--split {
        max-width: none;
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    @media (max-width: 760px) {
        .section-head--split {
            grid-template-columns: 1fr;
        }
    }

    .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: var(--space-3);
        font-size: var(--fs-xs);
        font-weight: 600;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: var(--gold);
    }

    .eyebrow::before {
        content: '';
        width: 28px;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--gold));
    }

    .section-title {
        font-size: var(--fs-h2);
        font-weight: 600;
    }

    .section-title em {
        color: var(--gold-bright);
        font-weight: 500;
    }

    .lead {
        font-size: var(--fs-lg);
        color: var(--text-muted);
        max-width: 62ch;
    }

    .icon {
        width: 1.15em;
        height: 1.15em;
        flex-shrink: 0;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .visually-hidden {
        position: absolute !important;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }

    .skip-link {
        position: absolute;
        left: 1rem;
        top: -100px;
        z-index: 1000;
        padding: 0.6rem 1rem;
        background: var(--gold);
        color: #1a130a;
        border-radius: var(--radius-sm);
        font-weight: 600;
    }

    .skip-link:focus {
        top: 1rem;
    }
}

@layer utilities {
    /* Анимация появления включается, только если скрипты действительно работают */
    .js .reveal {
        opacity: 0;
        transform: translateY(18px);
        transition:
            opacity 700ms var(--ease),
            transform 700ms var(--ease);
    }

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

    @media (prefers-reduced-motion: reduce) {
        .js .reveal {
            opacity: 1;
            transform: none;
        }
    }
}

/* components.css */
/* ==========================================================================
   Компоненты
   ========================================================================== */

@layer components {
    /* ─── Кнопки ─────────────────────────────────────────────── */
    .btn {
        --btn-bg: var(--surface-2);
        --btn-fg: var(--text);
        --btn-border: var(--line-strong);
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.55em;
        min-height: 46px;
        padding: 0 1.35rem;
        border-radius: var(--radius-pill);
        border: 1px solid var(--btn-border);
        background: var(--btn-bg);
        color: var(--btn-fg);
        font-weight: 600;
        font-size: var(--fs-sm);
        letter-spacing: 0.01em;
        white-space: nowrap;
        transition:
            transform var(--dur) var(--ease),
            background-color var(--dur) var(--ease),
            border-color var(--dur) var(--ease),
            box-shadow var(--dur) var(--ease),
            color var(--dur) var(--ease);
    }

    .btn:hover {
        border-color: var(--gold);
        transform: translateY(-1px);
    }

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

    .btn:disabled,
    .btn[aria-disabled='true'] {
        opacity: 0.45;
        pointer-events: none;
    }

    .btn--primary {
        --btn-bg: linear-gradient(180deg, #f0c877 0%, #d9a24a 55%, #b9812f 100%);
        --btn-fg: #1f1406;
        --btn-border: #f5d48f;
        background: var(--btn-bg);
        box-shadow:
            0 1px 0 rgb(255 255 255 / 0.45) inset,
            0 -2px 0 rgb(0 0 0 / 0.15) inset,
            0 10px 30px -10px rgb(217 170 85 / 0.55);
        text-shadow: 0 1px 0 rgb(255 230 180 / 0.4);
    }

    .btn--primary:hover {
        box-shadow:
            0 1px 0 rgb(255 255 255 / 0.5) inset,
            0 -2px 0 rgb(0 0 0 / 0.15) inset,
            0 14px 36px -10px rgb(240 190 100 / 0.7);
        border-color: #ffe3a8;
    }

    .btn--ghost {
        --btn-bg: transparent;
    }

    .btn--ghost:hover {
        --btn-bg: var(--gold-a10);
    }

    .btn--sm {
        min-height: 36px;
        padding: 0 0.95rem;
        font-size: var(--fs-xs);
    }

    .btn--lg {
        min-height: 54px;
        padding: 0 1.8rem;
        font-size: var(--fs-md);
    }

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

    .btn--icon {
        width: 44px;
        min-height: 44px;
        padding: 0;
    }

    .btn.is-loading {
        color: transparent;
        pointer-events: none;
    }

    .btn.is-loading::after {
        content: '';
        position: absolute;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        border: 2px solid currentColor;
        border-color: #1f1406 transparent #1f1406 transparent;
        animation: spin 700ms linear infinite;
    }

    .btn--ghost.is-loading::after {
        border-color: var(--gold) transparent var(--gold) transparent;
    }

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

    .link {
        color: var(--gold-bright);
        text-decoration: underline;
        text-decoration-color: rgb(243 205 123 / 0.35);
        text-underline-offset: 3px;
        transition: text-decoration-color var(--dur);
    }

    .link:hover {
        text-decoration-color: currentColor;
    }

    /* ─── Чипы и бейджи ──────────────────────────────────────── */
    .chips {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    .chip {
        display: inline-flex;
        align-items: center;
        gap: 0.45em;
        min-height: 38px;
        padding: 0 1rem;
        border-radius: var(--radius-pill);
        border: 1px solid var(--line-strong);
        background: rgb(255 240 210 / 0.02);
        color: var(--text-muted);
        font-size: var(--fs-sm);
        font-weight: 500;
        transition: all var(--dur) var(--ease);
    }

    .chip:hover {
        color: var(--text);
        border-color: var(--gold-deep);
    }

    .chip[aria-pressed='true'],
    .chip.is-active {
        color: #1f1406;
        background: var(--gold);
        border-color: var(--gold);
    }

    .chip .count {
        font-size: var(--fs-xs);
        opacity: 0.7;
    }

    .badge {
        display: inline-flex;
        align-items: center;
        gap: 0.35em;
        padding: 0.22rem 0.6rem;
        border-radius: var(--radius-pill);
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        background: var(--surface-3);
        color: var(--text-muted);
        border: 1px solid var(--line);
    }

    .badge--gold {
        background: var(--gold-a20);
        color: var(--gold-bright);
        border-color: rgb(217 170 85 / 0.35);
    }

    .badge--ember {
        background: var(--ember-a15);
        color: #ffa577;
        border-color: rgb(226 115 61 / 0.35);
    }

    .badge--moss {
        background: rgb(134 184 111 / 0.14);
        color: #a9d892;
        border-color: rgb(134 184 111 / 0.3);
    }

    .badge--arcane {
        background: rgb(157 140 242 / 0.14);
        color: #c2b6ff;
        border-color: rgb(157 140 242 / 0.3);
    }

    .badge--blood {
        background: rgb(224 96 90 / 0.14);
        color: #ff9a94;
        border-color: rgb(224 96 90 / 0.3);
    }

    /* ─── Карточка ───────────────────────────────────────────── */
    .card {
        position: relative;
        background: linear-gradient(180deg, var(--surface) 0%, var(--bg-raised) 100%);
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
        transition:
            transform 350ms var(--ease),
            border-color 350ms var(--ease),
            box-shadow 350ms var(--ease);
    }

    .card--interactive:hover {
        transform: translateY(-4px);
        border-color: var(--line-strong);
        box-shadow: var(--shadow), 0 0 0 1px rgb(217 170 85 / 0.12), 0 30px 60px -30px rgb(217 170 85 / 0.25);
    }

    /* Обложки (процедурные SVG) */
    .cover {
        position: relative;
        overflow: hidden;
        background: var(--surface-2);
        isolation: isolate;
    }

    .cover svg,
    .cover-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .cover .glyph-ring {
        transform-origin: center;
        transform-box: fill-box;
        animation: ring-rotate 60s linear infinite paused;
    }

    /* Вращение только там, куда смотрит пользователь — без лишних перерисовок */
    .card--interactive:hover .glyph-ring,
    .dialog .glyph-ring {
        animation-play-state: running;
    }

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

    /* ─── Места за столом ────────────────────────────────────── */
    .seats {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .seat {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        border: 1.5px solid var(--gold-deep);
        background: transparent;
        transition: all var(--dur) var(--ease);
    }

    .seat.is-taken {
        background: var(--surface-3);
        border-color: var(--surface-3);
        box-shadow: inset 0 0 0 3px var(--bg-raised);
    }

    .seat.is-free {
        border-color: var(--gold);
        box-shadow: 0 0 8px rgb(217 170 85 / 0.35);
    }

    .seat.is-mine {
        background: var(--gold-bright);
        border-color: var(--gold-bright);
        box-shadow: 0 0 12px rgb(243 205 123 / 0.7);
    }

    .seats-meter {
        display: grid;
        gap: 6px;
    }

    .seats-label {
        font-size: var(--fs-xs);
        color: var(--text-muted);
    }

    .seats-label strong {
        color: var(--gold-bright);
        font-weight: 600;
    }

    .seats-label.is-low strong {
        color: #ffa577;
    }

    .seats-label.is-full strong {
        color: var(--blood);
    }

    /* ─── Формы ──────────────────────────────────────────────── */
    .form {
        display: grid;
        gap: var(--space-4);
    }

    .form-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--space-4);
    }

    .field {
        display: grid;
        gap: 6px;
        position: relative;
    }

    .field-label {
        font-size: var(--fs-xs);
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .field-label .opt {
        text-transform: none;
        letter-spacing: 0;
        font-weight: 400;
        color: var(--text-dim);
    }

    .input,
    .textarea,
    .select {
        width: 100%;
        min-height: 48px;
        padding: 0.7rem 0.95rem;
        border-radius: var(--radius-sm);
        border: 1px solid var(--line-strong);
        background: rgb(0 0 0 / 0.25);
        color: var(--text);
        transition:
            border-color var(--dur),
            box-shadow var(--dur),
            background-color var(--dur);
    }

    .textarea {
        resize: vertical;
        min-height: 84px;
    }

    .select {
        appearance: none;
        padding-right: 2.4rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23d9aa55' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.95rem center;
    }

    .select option {
        background: var(--surface);
    }

    .input::placeholder,
    .textarea::placeholder {
        color: var(--text-dim);
    }

    .input:hover,
    .textarea:hover,
    .select:hover {
        border-color: rgb(232 200 140 / 0.35);
    }

    .input:focus,
    .textarea:focus,
    .select:focus {
        outline: none;
        border-color: var(--gold);
        background-color: rgb(0 0 0 / 0.35);
        box-shadow: 0 0 0 4px rgb(217 170 85 / 0.14);
    }

    .field.has-error .input,
    .field.has-error .textarea,
    .field.has-error .select {
        border-color: var(--blood);
        box-shadow: 0 0 0 4px rgb(224 96 90 / 0.12);
    }

    .field-error {
        font-size: var(--fs-xs);
        color: #ff9a94;
        min-height: 0;
    }

    .field-error:empty {
        display: none;
    }

    .form-error {
        display: flex;
        gap: var(--space-2);
        align-items: flex-start;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-sm);
        background: rgb(224 96 90 / 0.1);
        border: 1px solid rgb(224 96 90 / 0.3);
        color: #ffb3ae;
        font-size: var(--fs-sm);
    }

    .hp-field {
        position: absolute !important;
        left: -10000px;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }

    .check {
        display: flex;
        gap: 0.7rem;
        align-items: flex-start;
        font-size: var(--fs-xs);
        color: var(--text-muted);
        line-height: 1.5;
        cursor: pointer;
    }

    .check input {
        appearance: none;
        flex-shrink: 0;
        width: 20px;
        height: 20px;
        margin-top: 1px;
        border-radius: 6px;
        border: 1.5px solid var(--line-strong);
        background: rgb(0 0 0 / 0.25);
        display: grid;
        place-content: center;
        cursor: pointer;
        transition: all var(--dur);
    }

    .check input::after {
        content: '';
        width: 10px;
        height: 6px;
        border-left: 2px solid #1f1406;
        border-bottom: 2px solid #1f1406;
        transform: rotate(-45deg) scale(0);
        margin-top: -2px;
        transition: transform var(--dur) var(--ease);
    }

    .check input:checked {
        background: var(--gold);
        border-color: var(--gold);
    }

    .check input:checked::after {
        transform: rotate(-45deg) scale(1);
    }

    .field.has-error .check input {
        border-color: var(--blood);
    }

    /* Сегментированный выбор */
    .segmented {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        gap: 4px;
        padding: 4px;
        border-radius: var(--radius);
        background: rgb(0 0 0 / 0.3);
        border: 1px solid var(--line);
    }

    .segmented input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .segmented label {
        display: grid;
        place-items: center;
        text-align: center;
        min-height: 40px;
        padding: 0.35rem 0.5rem;
        border-radius: 10px;
        font-size: var(--fs-xs);
        font-weight: 500;
        color: var(--text-muted);
        cursor: pointer;
        transition: all var(--dur) var(--ease);
    }

    .segmented label:hover {
        color: var(--text);
    }

    .segmented input:checked + label {
        background: var(--surface-3);
        color: var(--gold-bright);
        box-shadow: inset 0 0 0 1px rgb(217 170 85 / 0.35);
    }

    .segmented input:focus-visible + label {
        outline: 2px solid var(--gold-bright);
        outline-offset: 1px;
    }

    /* Счётчик */
    .stepper {
        display: inline-grid;
        grid-template-columns: 40px minmax(44px, auto) 40px;
        align-items: center;
        border-radius: var(--radius-pill);
        border: 1px solid var(--line-strong);
        background: rgb(0 0 0 / 0.25);
        height: 44px;
    }

    .stepper button {
        display: grid;
        place-items: center;
        height: 100%;
        color: var(--gold);
        border-radius: var(--radius-pill);
        transition: background-color var(--dur);
    }

    .stepper button:hover:not(:disabled) {
        background: var(--gold-a10);
    }

    .stepper button:disabled {
        color: var(--text-dim);
        cursor: not-allowed;
    }

    .stepper output {
        text-align: center;
        font-weight: 600;
        font-variant-numeric: tabular-nums;
    }

    .stepper--sm {
        grid-template-columns: 32px 32px 32px;
        height: 34px;
        font-size: var(--fs-sm);
    }

    /* ─── Диалог ─────────────────────────────────────────────── */
    .dialog {
        width: min(100% - 1.5rem, 720px);
        max-height: min(92dvh, 900px);
        margin: auto;
        padding: 0;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-lg);
        background: linear-gradient(180deg, #1e1914 0%, #14110e 100%);
        color: var(--text);
        box-shadow: 0 40px 120px -20px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(0 0 0 / 0.5);
        overflow: hidden;
    }

    .dialog--wide {
        width: min(100% - 1.5rem, 980px);
    }

    .dialog:focus-visible,
    .drawer:focus-visible {
        outline: none;
    }

    .dialog::backdrop {
        background: rgb(8 6 4 / 0.72);
        backdrop-filter: blur(6px);
    }

    .dialog[open] {
        display: flex;
        flex-direction: column;
        animation: dialog-in 380ms var(--ease);
    }

    .dialog[open]::backdrop {
        animation: fade-in 300ms ease;
    }

    .dialog.is-closing {
        animation: dialog-out 200ms ease forwards;
    }

    .dialog.is-closing::backdrop {
        animation: fade-out 200ms ease forwards;
    }

    @keyframes dialog-in {
        from {
            opacity: 0;
            transform: translateY(24px) scale(0.98);
        }
    }

    @keyframes dialog-out {
        to {
            opacity: 0;
            transform: translateY(12px) scale(0.98);
        }
    }

    @keyframes fade-in {
        from {
            opacity: 0;
        }
    }

    @keyframes fade-out {
        to {
            opacity: 0;
        }
    }

    .dialog-body {
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .dialog-close {
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 5;
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgb(10 8 6 / 0.6);
        border: 1px solid var(--line-strong);
        color: var(--text);
        backdrop-filter: blur(6px);
        transition: all var(--dur);
    }

    .dialog-close:hover {
        border-color: var(--gold);
        color: var(--gold-bright);
        transform: rotate(90deg);
    }

    /* ─── Выезжающая панель ──────────────────────────────────── */
    .drawer {
        position: fixed;
        inset: 0 0 0 auto;
        height: 100dvh;
        max-height: none;
        width: min(100%, 460px);
        margin: 0 0 0 auto;
        padding: 0;
        border: 0;
        border-left: 1px solid var(--line-strong);
        background: linear-gradient(180deg, #1c1813 0%, #120f0c 100%);
        color: var(--text);
        box-shadow: -30px 0 80px rgb(0 0 0 / 0.6);
    }

    .drawer::backdrop {
        background: rgb(8 6 4 / 0.6);
        backdrop-filter: blur(4px);
    }

    .drawer[open] {
        display: flex;
        flex-direction: column;
        animation: drawer-in 420ms var(--ease);
    }

    .drawer.is-closing {
        animation: drawer-out 220ms ease forwards;
    }

    .drawer.is-closing::backdrop {
        animation: fade-out 220ms ease forwards;
    }

    @keyframes drawer-in {
        from {
            transform: translateX(100%);
        }
    }

    @keyframes drawer-out {
        to {
            transform: translateX(100%);
        }
    }

    /* ─── Уведомления ────────────────────────────────────────── */
    .toasts {
        position: fixed;
        z-index: 2000;
        bottom: 20px;
        left: 50%;
        translate: -50% 0;
        display: grid;
        gap: 10px;
        width: min(100% - 2rem, 420px);
        pointer-events: none;
    }

    .toast {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.85rem 1.1rem;
        border-radius: var(--radius);
        background: rgb(30 25 20 / 0.95);
        border: 1px solid var(--line-strong);
        box-shadow: var(--shadow);
        font-size: var(--fs-sm);
        backdrop-filter: blur(10px);
        pointer-events: auto;
        animation: toast-in 400ms var(--ease);
    }

    .toast .icon {
        color: var(--gold);
    }

    .toast--error .icon {
        color: var(--blood);
    }

    .toast.is-leaving {
        animation: toast-out 250ms ease forwards;
    }

    @keyframes toast-in {
        from {
            opacity: 0;
            transform: translateY(16px) scale(0.96);
        }
    }

    @keyframes toast-out {
        to {
            opacity: 0;
            transform: translateY(8px);
        }
    }

    /* ─── Билет-подтверждение ────────────────────────────────── */
    .ticket {
        position: relative;
        display: grid;
        gap: var(--space-5);
        padding: var(--space-6) var(--space-5);
        text-align: center;
        justify-items: center;
    }

    .ticket-seal {
        position: relative;
        display: grid;
        place-items: center;
        width: 96px;
        height: 96px;
        border-radius: 50%;
        background: radial-gradient(circle at 35% 30%, #f6d58f, #c38b37 55%, #7d5620 100%);
        color: #2a1a07;
        box-shadow: 0 0 0 6px rgb(217 170 85 / 0.15), 0 0 60px rgb(217 170 85 / 0.45);
        animation: seal-in 700ms var(--ease) both;
    }

    .ticket-seal .icon {
        width: 44px;
        height: 44px;
        stroke-width: 2.4;
    }

    @keyframes seal-in {
        from {
            transform: scale(0.3) rotate(-30deg);
            opacity: 0;
        }
    }

    .ticket-title {
        font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem);
    }

    .ticket-stub {
        width: 100%;
        max-width: 460px;
        display: grid;
        gap: var(--space-3);
        padding: var(--space-5);
        border-radius: var(--radius);
        background:
            radial-gradient(circle at 0 50%, transparent 12px, var(--surface-2) 13px) left / 51% 100% no-repeat,
            radial-gradient(circle at 100% 50%, transparent 12px, var(--surface-2) 13px) right / 51% 100% no-repeat;
        border: 1px dashed transparent;
        text-align: left;
    }

    .ticket-code {
        text-align: center;
        font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
        font-size: 1.6rem;
        letter-spacing: 0.18em;
        color: var(--gold-bright);
        padding-bottom: var(--space-3);
        border-bottom: 1px dashed var(--line-strong);
    }

    .ticket-row {
        display: flex;
        justify-content: space-between;
        gap: var(--space-4);
        font-size: var(--fs-sm);
    }

    .ticket-row span:first-child {
        color: var(--text-muted);
    }

    .ticket-row span:last-child {
        text-align: right;
        font-weight: 500;
    }

    .ticket-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-3);
    }

    /* ─── Загрузка и пустые состояния ────────────────────────── */
    .skeleton {
        border-radius: var(--radius-lg);
        background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
        background-size: 300% 100%;
        animation: shimmer 1.6s ease-in-out infinite;
        border: 1px solid var(--line);
    }

    @keyframes shimmer {
        from {
            background-position: 100% 0;
        }

        to {
            background-position: 0 0;
        }
    }

    .empty {
        display: grid;
        justify-items: center;
        gap: var(--space-3);
        padding: var(--space-7) var(--space-5);
        text-align: center;
        color: var(--text-muted);
        border: 1px dashed var(--line-strong);
        border-radius: var(--radius-lg);
    }

    .empty .icon {
        width: 40px;
        height: 40px;
        color: var(--gold-deep);
    }

    .empty h3 {
        color: var(--text);
        font-size: var(--fs-xl);
    }

    /* Орнаментальный разделитель */
    .ornament {
        display: flex;
        align-items: center;
        gap: var(--space-4);
        color: var(--gold-deep);
    }

    .ornament::before,
    .ornament::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
    }

    .rating {
        display: inline-flex;
        align-items: center;
        gap: 0.3em;
        font-size: var(--fs-xs);
        color: var(--text-muted);
    }

    .rating .icon {
        width: 14px;
        height: 14px;
        color: var(--gold);
        fill: var(--gold);
    }

    .rating strong {
        color: var(--text);
        font-weight: 600;
    }

    .meta-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem 1rem;
        font-size: var(--fs-xs);
        color: var(--text-muted);
    }

    .meta-list li {
        display: inline-flex;
        align-items: center;
        gap: 0.4em;
    }

    .meta-list .icon {
        color: var(--gold-deep);
        width: 15px;
        height: 15px;
    }

    .avatar {
        --tone: var(--gold);
        position: relative;
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 25%, color-mix(in oklab, var(--tone) 55%, #fff 10%), color-mix(in oklab, var(--tone) 40%, #000 60%));
        box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--tone) 70%, transparent), 0 0 0 4px var(--bg-raised);
        color: #fff8e8;
        flex-shrink: 0;
    }

    .avatar svg,
    .avatar img {
        width: 62%;
        height: 62%;
    }

    /* ─── Общие для сайта и панели ───────────────────────────── */
    .brand {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        color: var(--gold);
        flex-shrink: 0;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        filter: drop-shadow(0 0 10px rgb(217 170 85 / 0.35));
        transition: transform 600ms var(--ease);
    }

    .brand:hover .brand-mark {
        transform: rotate(72deg);
    }

    .brand-name {
        font-family: var(--font-display);
        font-size: 1.55rem;
        font-weight: 700;
        color: var(--text);
        letter-spacing: 0.01em;
    }

    .brand-name em {
        color: var(--gold-bright);
        font-weight: 500;
    }

    .secure-note {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        font-size: 0.72rem;
        color: var(--text-dim);
    }

    .secure-note .icon {
        width: 14px;
        height: 14px;
        color: var(--moss);
    }

    .noscript {
        position: fixed;
        inset: auto 0 0;
        padding: 1rem;
        text-align: center;
        background: var(--ember);
        color: #fff;
        z-index: 3000;
    }

}

/* sections.css */
/* ==========================================================================
   Разделы страницы
   ========================================================================== */

@layer sections {
    /* ─── Шапка ──────────────────────────────────────────────── */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 100;
        height: var(--header-h);
        transition:
            background-color 300ms var(--ease),
            border-color 300ms var(--ease),
            backdrop-filter 300ms;
        border-bottom: 1px solid transparent;
    }

    .site-header.is-scrolled {
        background: rgb(14 12 10 / 0.78);
        backdrop-filter: blur(14px) saturate(1.2);
        border-bottom-color: var(--line);
    }

    .header-inner {
        height: 100%;
        display: flex;
        align-items: center;
        gap: var(--space-5);
    }

    .nav {
        margin-inline: auto;
    }

    .nav ul {
        display: flex;
        gap: 0.25rem;
    }

    .nav a {
        position: relative;
        display: block;
        padding: 0.55rem 0.9rem;
        font-size: var(--fs-sm);
        font-weight: 500;
        color: var(--text-muted);
        border-radius: var(--radius-pill);
        transition: color var(--dur);
    }

    .nav a::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 3px;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--gold);
        transform: translateX(-50%) scale(0);
        transition: transform var(--dur) var(--ease);
    }

    .nav a:hover,
    .nav a[aria-current='page'] {
        color: var(--text);
    }

    .nav a[aria-current='page']::after {
        transform: translateX(-50%) scale(1);
    }

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

    .icon-btn {
        position: relative;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid var(--line-strong);
        color: var(--text);
        transition: all var(--dur);
    }

    .icon-btn:hover {
        border-color: var(--gold);
        color: var(--gold-bright);
    }

    .icon-btn .icon {
        width: 20px;
        height: 20px;
    }

    .cart-count {
        position: absolute;
        top: -4px;
        right: -4px;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        display: grid;
        place-items: center;
        border-radius: var(--radius-pill);
        background: var(--ember);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        box-shadow: 0 0 0 2px var(--bg);
    }

    .cart-count.is-bumped {
        animation: bump 450ms var(--ease);
    }

    @keyframes bump {
        40% {
            transform: scale(1.35);
        }
    }

    .nav-toggle {
        display: none;
        gap: 4px;
        align-content: center;
    }

    .nav-toggle span {
        display: block;
        width: 18px;
        height: 1.5px;
        background: currentColor;
        border-radius: 2px;
        transition: transform var(--dur) var(--ease), opacity var(--dur);
    }

    .nav-toggle[aria-expanded='true'] span:nth-child(1) {
        transform: translateY(5.5px) rotate(45deg);
    }

    .nav-toggle[aria-expanded='true'] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded='true'] span:nth-child(3) {
        transform: translateY(-5.5px) rotate(-45deg);
    }

    @media (max-width: 960px) {
        .nav-toggle {
            display: grid;
        }

        .header-cta {
            display: none;
        }

        .nav {
            position: fixed;
            inset: var(--header-h) 0 auto 0;
            margin: 0;
            padding: var(--space-4) var(--space-5) var(--space-6);
            background: rgb(14 12 10 / 0.97);
            backdrop-filter: blur(14px);
            border-bottom: 1px solid var(--line);
            transform: translateY(-8px);
            opacity: 0;
            visibility: hidden;
            transition: all 260ms var(--ease);
        }

        .nav.is-open {
            transform: none;
            opacity: 1;
            visibility: visible;
        }

        .nav ul {
            flex-direction: column;
        }

        .nav a {
            padding: 0.9rem 0;
            font-family: var(--font-display);
            font-size: 1.6rem;
            color: var(--text);
            border-bottom: 1px solid var(--line);
            border-radius: 0;
        }

        .nav a::after {
            display: none;
        }

        .header-actions {
            margin-left: auto;
        }
    }

    /* ─── Первый экран ───────────────────────────────────────── */
    .hero {
        position: relative;
        margin-top: calc(var(--header-h) * -1);
        padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 5rem));
        padding-bottom: clamp(3rem, 8vw, 6rem);
        overflow: hidden;
    }

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            radial-gradient(700px 520px at 72% 42%, rgb(226 115 61 / 0.16), transparent 70%),
            radial-gradient(500px 400px at 70% 45%, rgb(243 205 123 / 0.1), transparent 70%);
        pointer-events: none;
    }

    .hero::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
    }

    .hero-grid {
        position: relative;
        display: grid;
        grid-template-columns: 1.15fr 0.85fr;
        align-items: center;
        gap: var(--space-7);
    }

    .hero-copy {
        display: grid;
        gap: var(--space-5);
    }

    .hero-title {
        font-size: var(--fs-h1);
        font-weight: 600;
        line-height: 0.98;
        letter-spacing: -0.02em;
    }

    .hero-title em {
        display: inline-block;
        font-weight: 500;
        background: linear-gradient(100deg, #f7dc9d 0%, #e0a84a 45%, #e2733d 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        padding-right: 0.08em;
    }

    .hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-3);
        margin-top: var(--space-2);
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(4, auto);
        justify-content: start;
        gap: var(--space-6);
        margin-top: var(--space-5);
        padding-top: var(--space-5);
        border-top: 1px solid var(--line);
    }

    .hero-stats div {
        display: flex;
        flex-direction: column-reverse;
        gap: 2px;
    }

    .hero-stats dt {
        font-size: var(--fs-xs);
        color: var(--text-dim);
    }

    .hero-stats dd {
        font-family: var(--font-display);
        font-size: 2.1rem;
        font-weight: 600;
        color: var(--gold-bright);
        line-height: 1;
    }

    .hero-visual {
        position: relative;
        display: grid;
        justify-items: center;
        gap: var(--space-2);
    }

    .d20 {
        width: min(100%, 380px);
        aspect-ratio: 1;
        animation: float 7s ease-in-out infinite;
        filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.55));
        -webkit-tap-highlight-color: transparent;
    }

    .d20 svg {
        width: 100%;
        height: 100%;
        overflow: visible;
    }

    .d20-body {
        transform-origin: 200px 200px;
        transition: transform 900ms var(--ease);
    }

    .d20.is-rolling .d20-body {
        animation: roll 900ms var(--ease);
    }

    .d20-value {
        font-family: var(--font-display);
        font-size: 64px;
        font-weight: 700;
        fill: #3a2408;
        transition: opacity 200ms;
    }

    .d20.is-rolling .d20-value {
        opacity: 0;
    }

    .d20.is-crit .d20-value {
        fill: #6b1a06;
    }

    .d20:focus-visible {
        outline-offset: -20px;
        border-radius: 50%;
    }

    @keyframes float {
        50% {
            transform: translateY(-14px) rotate(2deg);
        }
    }

    @keyframes roll {
        0% {
            transform: rotate(0) scale(1);
        }

        40% {
            transform: rotate(250deg) scale(0.86);
        }

        100% {
            transform: rotate(360deg) scale(1);
        }
    }

    .d20-hint {
        font-size: var(--fs-xs);
        color: var(--text-dim);
        letter-spacing: 0.08em;
        min-height: 1.5em;
    }

    .d20-hint strong {
        color: var(--gold-bright);
    }

    .hero-embers {
        position: absolute;
        inset: 0;
        pointer-events: none;
        overflow: hidden;
    }

    .hero-embers i {
        position: absolute;
        bottom: -10px;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #ffb56b;
        box-shadow: 0 0 10px 2px rgb(255 140 60 / 0.7);
        opacity: 0;
        animation: ember 9s linear infinite;
    }

    .hero-embers i:nth-child(1) { left: 58%; animation-delay: 0s; }
    .hero-embers i:nth-child(2) { left: 66%; animation-delay: 1.4s; animation-duration: 11s; }
    .hero-embers i:nth-child(3) { left: 74%; animation-delay: 2.8s; }
    .hero-embers i:nth-child(4) { left: 81%; animation-delay: 0.7s; animation-duration: 12s; }
    .hero-embers i:nth-child(5) { left: 88%; animation-delay: 4.1s; }
    .hero-embers i:nth-child(6) { left: 62%; animation-delay: 5.3s; animation-duration: 10s; width: 3px; height: 3px; }
    .hero-embers i:nth-child(7) { left: 70%; animation-delay: 6.2s; width: 2px; height: 2px; }
    .hero-embers i:nth-child(8) { left: 78%; animation-delay: 3.5s; animation-duration: 13s; width: 3px; height: 3px; }
    .hero-embers i:nth-child(9) { left: 92%; animation-delay: 7.4s; width: 2px; height: 2px; }
    .hero-embers i:nth-child(10) { left: 54%; animation-delay: 8.1s; animation-duration: 12s; width: 2px; height: 2px; }
    .hero-embers i:nth-child(11) { left: 20%; animation-delay: 2.2s; animation-duration: 14s; width: 2px; height: 2px; }
    .hero-embers i:nth-child(12) { left: 35%; animation-delay: 6.8s; animation-duration: 15s; width: 2px; height: 2px; }

    @keyframes ember {
        0% {
            transform: translate(0, 0);
            opacity: 0;
        }

        10% {
            opacity: 1;
        }

        50% {
            transform: translate(-30px, -45vh);
        }

        100% {
            transform: translate(20px, -90vh);
            opacity: 0;
        }
    }

    .next-event {
        width: min(100%, 400px);
        /* высота задана заранее: карточка не должна сдвигать макет после загрузки шрифтов */
        min-height: 118px;
        margin-top: calc(var(--space-5) * -1);
    }

    .next-event-skeleton {
        height: 118px;
    }

    .next-card {
        display: grid;
        grid-template-columns: 64px 1fr;
        gap: var(--space-4);
        align-items: center;
        padding: var(--space-4);
        border-radius: var(--radius-lg);
        background: rgb(27 23 19 / 0.8);
        border: 1px solid var(--line-strong);
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow);
        text-align: left;
        width: 100%;
        transition: border-color var(--dur), transform var(--dur) var(--ease);
    }

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

    .next-card .cover {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }

    .next-card-label {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--ember);
    }

    .next-card-label::before {
        content: '';
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: currentColor;
        box-shadow: 0 0 0 0 currentColor;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        70% {
            box-shadow: 0 0 0 8px transparent;
        }
    }

    .next-card-title {
        display: block;
        font-family: var(--font-display);
        font-size: 1.3rem;
        font-weight: 600;
        line-height: 1.1;
        margin: 2px 0 4px;
    }

    .next-card-meta {
        display: block;
        font-size: var(--fs-xs);
        color: var(--text-muted);
    }

    @media (max-width: 900px) {
        .hero-grid {
            grid-template-columns: 1fr;
        }

        .hero-visual {
            grid-template-columns: auto 1fr;
            align-items: center;
            justify-items: stretch;
            gap: var(--space-4);
        }

        .d20 {
            width: clamp(96px, 26vw, 160px);
        }

        .d20-hint {
            display: none;
        }

        .next-event {
            margin-top: 0;
        }

        .hero-stats {
            grid-template-columns: repeat(2, auto);
            gap: var(--space-4) var(--space-6);
        }
    }

    /* ─── Полоса дней ────────────────────────────────────────── */
    .day-strip {
        display: flex;
        gap: var(--space-2);
        overflow-x: auto;
        padding: 4px 2px 10px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        scrollbar-color: var(--surface-3) transparent;
        mask-image: linear-gradient(90deg, #000 92%, transparent);
    }

    .day {
        flex: 0 0 auto;
        scroll-snap-align: start;
        display: grid;
        justify-items: center;
        gap: 2px;
        min-width: 66px;
        padding: 0.6rem 0.5rem 0.55rem;
        border-radius: var(--radius);
        border: 1px solid var(--line);
        background: var(--bg-raised);
        color: var(--text-muted);
        transition: all var(--dur) var(--ease);
    }

    .day:hover {
        border-color: var(--line-strong);
        color: var(--text);
    }

    .day-wd {
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .day-num {
        font-family: var(--font-display);
        font-size: 1.65rem;
        font-weight: 600;
        line-height: 1;
        color: var(--text);
    }

    .day-month {
        font-size: 0.68rem;
        color: var(--text-dim);
    }

    .day-dots {
        display: flex;
        gap: 3px;
        height: 5px;
        margin-top: 3px;
    }

    .day-dots i {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--gold-deep);
    }

    .day-dots i.is-full {
        background: var(--surface-3);
    }

    .day.is-weekend .day-wd {
        color: var(--ember);
    }

    .day[aria-pressed='true'] {
        background: linear-gradient(180deg, rgb(217 170 85 / 0.2), rgb(217 170 85 / 0.06));
        border-color: var(--gold);
        color: var(--gold-bright);
        box-shadow: 0 8px 24px -12px rgb(217 170 85 / 0.6);
    }

    .day[aria-pressed='true'] .day-num {
        color: var(--gold-bright);
    }

    .day--all {
        min-width: 84px;
        align-content: center;
    }

    .day--all .day-num {
        font-size: 1.15rem;
    }

    .day-strip--compact .day {
        min-width: 58px;
        padding-block: 0.5rem;
    }

    .day-strip--compact .day-num {
        font-size: 1.4rem;
    }

    /* ─── Афиша ──────────────────────────────────────────────── */
    .seat-legend {
        display: flex;
        gap: var(--space-4);
        font-size: var(--fs-xs);
        color: var(--text-muted);
    }

    .seat-legend li {
        display: flex;
        align-items: center;
        gap: 0.45rem;
    }

    .schedule-toolbar {
        display: grid;
        gap: var(--space-4);
        margin-bottom: var(--space-6);
        padding-bottom: var(--space-5);
        border-bottom: 1px solid var(--line);
    }

    .schedule-filters {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: var(--space-3) var(--space-5);
    }

    .schedule-filters [data-system-filter] {
        grid-column: 1 / -1;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
        mask-image: linear-gradient(90deg, #000 94%, transparent);
    }

    .schedule-filters .chip {
        flex-shrink: 0;
    }

    .schedule-filters [data-system-filter] .chip {
        min-height: 34px;
        font-size: var(--fs-xs);
    }

    @media (max-width: 760px) {
        .schedule-filters {
            grid-template-columns: 1fr;
        }

        .schedule-filters .chips {
            flex-wrap: nowrap;
            overflow-x: auto;
            padding-bottom: 4px;
            scrollbar-width: none;
        }
    }

    .switch {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        font-size: var(--fs-sm);
        color: var(--text-muted);
        cursor: pointer;
        margin-left: auto;
    }

    .switch input {
        position: absolute;
        opacity: 0;
    }

    .switch-track {
        position: relative;
        width: 40px;
        height: 22px;
        border-radius: 99px;
        background: var(--surface-3);
        border: 1px solid var(--line-strong);
        transition: all var(--dur);
    }

    .switch-track::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--text-muted);
        transition: all var(--dur) var(--ease);
    }

    .switch input:checked + .switch-track {
        background: var(--gold-a20);
        border-color: var(--gold);
    }

    .switch input:checked + .switch-track::after {
        transform: translateX(18px);
        background: var(--gold-bright);
    }

    .switch input:focus-visible + .switch-track {
        outline: 2px solid var(--gold-bright);
        outline-offset: 2px;
    }

    @media (max-width: 760px) {
        .switch {
            margin-left: 0;
        }
    }

    .events {
        display: grid;
        gap: var(--space-7);
    }

    .events-day {
        display: grid;
        gap: var(--space-4);
    }

    .events-day-title {
        display: flex;
        align-items: baseline;
        gap: var(--space-3);
        font-family: var(--font-display);
        font-size: 1.7rem;
        font-weight: 600;
    }

    .events-day-title small {
        font-family: var(--font-body);
        font-size: var(--fs-xs);
        font-weight: 500;
        color: var(--text-dim);
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .events-day-title::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, var(--line-strong), transparent);
        align-self: center;
    }

    .events-list {
        display: grid;
        gap: var(--space-3);
    }

    .event-skeleton {
        height: 150px;
    }

    .events-grid {
        display: grid;
        gap: var(--space-3);
    }

    .event {
        display: grid;
        grid-template-columns: 150px minmax(0, 1fr) 200px 180px;
        align-items: stretch;
        overflow: hidden;
    }

    .card--interactive.event:hover {
        transform: translateY(-2px);
    }

    .event-cover {
        min-height: 140px;
        border-right: 1px solid var(--line);
    }

    .event-cover::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 35%, rgb(14 12 10 / 0.85));
        pointer-events: none;
    }

    .event-time {
        position: absolute;
        left: 0;
        right: 0;
        bottom: var(--space-3);
        z-index: 2;
        display: grid;
        justify-items: center;
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 2rem;
        line-height: 1;
        color: var(--text);
        text-shadow: 0 2px 12px rgb(0 0 0 / 0.9);
    }

    .event-time small {
        font-family: var(--font-body);
        font-size: 0.7rem;
        font-weight: 500;
        color: var(--text-muted);
        margin-top: 4px;
    }

    .event-main {
        display: grid;
        gap: 6px;
        align-content: center;
        padding: var(--space-4) var(--space-5);
        min-width: 0;
    }

    .event-system {
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--gold);
    }

    .event-title {
        font-size: 1.65rem;
        line-height: 1.05;
    }

    .event-title button {
        text-align: left;
        transition: color var(--dur);
    }

    .event-title button:hover {
        color: var(--gold-bright);
    }

    .event-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-2) var(--space-4);
        margin-top: 4px;
    }

    .event-master {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        font-size: var(--fs-sm);
        line-height: 1.2;
    }

    .event-master .avatar {
        width: 30px;
        height: 30px;
    }

    .event-master small {
        display: block;
        color: var(--text-dim);
        font-size: var(--fs-xs);
    }

    .event-seats {
        align-content: center;
        padding: var(--space-4);
        border-left: 1px solid var(--line);
    }

    .event-seats .seats {
        gap: 4px;
    }

    .event-seats .seat {
        width: 12px;
        height: 12px;
    }

    .event-cta {
        display: grid;
        align-content: center;
        gap: var(--space-3);
        padding: var(--space-4) var(--space-5) var(--space-4) var(--space-4);
    }

    .event-cta .btn {
        width: 100%;
    }

    .event-price {
        font-family: var(--font-display);
        font-size: 1.6rem;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
        text-align: center;
    }

    .event-price small {
        font-family: var(--font-body);
        font-size: var(--fs-xs);
        font-weight: 400;
        color: var(--text-dim);
    }

    .event.is-full .event-cover svg {
        filter: grayscale(0.7) brightness(0.75);
    }

    .events-more {
        justify-self: center;
    }

    @media (max-width: 1100px) {
        .event {
            grid-template-columns: 130px minmax(0, 1fr) 190px;
        }

        .event-seats {
            grid-column: 2;
            border-left: 0;
            border-top: 1px solid var(--line);
            padding: var(--space-3) var(--space-5);
        }

        .event-cta {
            grid-column: 3;
            grid-row: 1 / span 2;
            border-left: 1px solid var(--line);
            padding: var(--space-4);
        }

        .event-cover {
            grid-row: 1 / span 2;
        }
    }

    @media (max-width: 640px) {
        .event {
            grid-template-columns: 96px minmax(0, 1fr);
        }

        .event-cover {
            grid-row: 1;
            min-height: 0;
        }

        .event-time {
            font-size: 1.5rem;
        }

        .event-main {
            padding: var(--space-3) var(--space-4);
        }

        .event-title {
            font-size: 1.35rem;
        }

        .event-seats {
            grid-column: 1 / -1;
            padding: var(--space-3) var(--space-4);
        }

        .event-cta {
            grid-column: 1 / -1;
            grid-row: auto;
            grid-template-columns: auto 1fr;
            align-items: center;
            border-left: 0;
            border-top: 1px solid var(--line);
            padding: var(--space-3) var(--space-4);
        }

        .event-price {
            text-align: left;
        }
    }


    /* ─── Диалог записи ──────────────────────────────────────── */
    .signup-hero {
        position: relative;
        display: grid;
        align-content: end;
        min-height: 190px;
        padding: var(--space-6) var(--space-6) var(--space-5);
    }

    .signup-hero .cover {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .signup-hero .cover::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgb(20 17 14 / 0.1), rgb(20 17 14 / 0.95));
    }

    .signup-hero > :not(.cover) {
        position: relative;
        z-index: 1;
    }

    .signup-hero h2 {
        font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
        margin: 4px 0 8px;
    }

    .signup-facts {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1px;
        background: var(--line);
        border-block: 1px solid var(--line);
    }

    .signup-facts > div {
        display: flex;
        gap: 0.7rem;
        align-items: center;
        padding: var(--space-4) var(--space-5);
        background: #17130f;
        font-size: var(--fs-sm);
    }

    .signup-facts .icon {
        color: var(--gold);
        width: 20px;
        height: 20px;
    }

    .signup-facts small {
        display: block;
        font-size: 0.7rem;
        color: var(--text-dim);
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .signup-content {
        display: grid;
        gap: var(--space-5);
        padding: var(--space-5) var(--space-6) var(--space-6);
    }

    .signup-desc {
        color: var(--text-muted);
    }

    .tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .seat-picker {
        display: grid;
        gap: var(--space-3);
        padding: var(--space-5);
        border-radius: var(--radius);
        background: radial-gradient(ellipse at center, rgb(217 170 85 / 0.08), transparent 70%), rgb(0 0 0 / 0.25);
        border: 1px solid var(--line);
    }

    .seat-picker-head {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: var(--space-3);
    }

    .round-table {
        position: relative;
        width: min(100%, 300px);
        aspect-ratio: 1.6;
        margin: var(--space-2) auto;
    }

    .round-table-top {
        position: absolute;
        inset: 22% 18%;
        border-radius: 50%;
        background: radial-gradient(ellipse at 40% 35%, #5a3f22, #2e1f10 70%);
        border: 2px solid #6e4e2a;
        box-shadow: inset 0 0 30px rgb(0 0 0 / 0.6), 0 12px 30px rgb(0 0 0 / 0.5);
        display: grid;
        place-items: center;
        font-family: var(--font-display);
        font-size: 1rem;
        color: rgb(243 205 123 / 0.55);
        text-align: center;
        line-height: 1.1;
    }

    .round-seat {
        position: absolute;
        left: var(--x);
        top: var(--y);
        width: 30px;
        height: 30px;
        margin: -15px 0 0 -15px;
        border-radius: 50%;
        border: 2px solid var(--gold-deep);
        background: var(--bg);
        display: grid;
        place-items: center;
        color: var(--text-dim);
        transition: all 250ms var(--ease);
    }

    .round-seat .icon {
        width: 14px;
        height: 14px;
    }

    .round-seat.is-taken {
        background: var(--surface-3);
        border-color: var(--surface-3);
        color: var(--text-dim);
        cursor: not-allowed;
    }

    .round-seat.is-free {
        cursor: pointer;
        border-color: var(--gold);
        color: transparent;
    }

    .round-seat.is-free:hover {
        transform: scale(1.12);
        box-shadow: 0 0 14px rgb(217 170 85 / 0.5);
    }

    .round-seat.is-mine {
        background: var(--gold-bright);
        border-color: var(--gold-bright);
        color: #2a1a07;
        box-shadow: 0 0 18px rgb(243 205 123 / 0.7);
        transform: scale(1.08);
    }

    .round-seat.is-wait {
        border-style: dashed;
        border-color: var(--arcane);
        color: var(--arcane);
    }

    .signup-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: var(--space-4);
        padding: var(--space-4) var(--space-5);
        border-radius: var(--radius);
        background: var(--surface-2);
        border: 1px solid var(--line);
    }

    .signup-total strong {
        font-family: var(--font-display);
        font-size: 1.8rem;
        line-height: 1;
        color: var(--gold-bright);
    }

    .signup-total small {
        display: block;
        font-size: var(--fs-xs);
        color: var(--text-dim);
    }

    .notice {
        display: flex;
        gap: 0.7rem;
        align-items: flex-start;
        padding: 0.8rem 1rem;
        border-radius: var(--radius-sm);
        font-size: var(--fs-sm);
        background: rgb(157 140 242 / 0.08);
        border: 1px solid rgb(157 140 242 / 0.25);
        color: #cfc6ff;
    }

    .notice .icon {
        margin-top: 2px;
    }

    @media (max-width: 560px) {
        .signup-hero,
        .signup-content {
            padding-inline: var(--space-4);
        }
    }

    /* ─── Бронь стола ────────────────────────────────────────── */
    .section--tables {
        background:
            linear-gradient(180deg, transparent, rgb(0 0 0 / 0.25) 20%, rgb(0 0 0 / 0.25) 80%, transparent),
            radial-gradient(800px 400px at 20% 60%, rgb(157 140 242 / 0.05), transparent);
    }

    .booking {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: var(--space-5);
        align-items: start;
    }

    @media (max-width: 1080px) {
        .booking {
            grid-template-columns: 1fr;
        }
    }

    .booking-main,
    .booking-summary {
        background: linear-gradient(180deg, var(--surface) 0%, var(--bg-raised) 100%);
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
    }

    .booking-main {
        display: grid;
        gap: var(--space-4);
        padding: var(--space-5);
        min-width: 0;
    }

    .booking-step {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-3);
    }

    .booking-step h3 {
        font-size: 1.45rem;
    }

    .step-num {
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        font-weight: 700;
        font-size: 0.8rem;
        color: #1f1406;
        background: var(--gold);
    }

    .timeline-legend {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2) var(--space-4);
        margin-left: auto;
        font-size: var(--fs-xs);
        color: var(--text-muted);
    }

    .timeline-legend li {
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .timeline-legend i {
        width: 14px;
        height: 14px;
        border-radius: 4px;
    }

    .lg-free {
        border: 1px dashed var(--line-strong);
    }

    .lg-event {
        background: repeating-linear-gradient(-45deg, rgb(157 140 242 / 0.45) 0 3px, rgb(157 140 242 / 0.2) 3px 6px);
    }

    .lg-busy {
        background: var(--surface-3);
    }

    .lg-pick {
        background: var(--gold);
    }

    .timeline-wrap {
        overflow-x: auto;
        margin-inline: calc(var(--space-5) * -1);
        padding-inline: var(--space-5);
        padding-bottom: var(--space-2);
        scrollbar-width: thin;
        scrollbar-color: var(--surface-3) transparent;
    }

    .timeline-skeleton {
        height: 380px;
    }

    .timeline {
        --hours: 12;
        --label-w: 158px;
        display: grid;
        min-width: 760px;
        gap: 6px;
    }

    .timeline-head,
    .timeline-row {
        display: grid;
        grid-template-columns: var(--label-w) 1fr;
        align-items: stretch;
        gap: var(--space-3);
    }

    .timeline-hours {
        display: grid;
        grid-template-columns: repeat(var(--hours), 1fr);
        font-size: 0.7rem;
        color: var(--text-dim);
        font-variant-numeric: tabular-nums;
    }

    .timeline-hours span {
        padding-left: 4px;
        border-left: 1px solid var(--line);
    }

    .timeline-label {
        display: grid;
        grid-template-columns: 36px 1fr;
        gap: 0.6rem;
        align-items: center;
        padding: 0.5rem 0.4rem;
        border-radius: var(--radius-sm);
        text-align: left;
        transition: background-color var(--dur);
    }

    .timeline-row.is-selected .timeline-label {
        background: var(--gold-a10);
    }

    .timeline-label .cover {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .timeline-label strong {
        display: block;
        font-size: var(--fs-sm);
        font-weight: 600;
        line-height: 1.2;
    }

    .timeline-label small {
        display: block;
        font-size: 0.7rem;
        color: var(--text-dim);
        white-space: nowrap;
    }

    .timeline-track {
        position: relative;
        display: grid;
        grid-template-columns: repeat(var(--hours), 1fr);
        min-height: 56px;
        border-radius: var(--radius-sm);
        background: rgb(0 0 0 / 0.22);
        overflow: hidden;
    }

    .slot {
        position: relative;
        border-left: 1px dashed var(--line);
        transition: background-color 150ms;
    }

    .slot:first-child {
        border-left: 0;
    }

    .slot:not(:disabled):hover {
        background: var(--gold-a20);
    }

    .slot:disabled {
        cursor: not-allowed;
    }

    .slot.is-past {
        background: repeating-linear-gradient(-45deg, transparent 0 6px, rgb(255 255 255 / 0.02) 6px 12px);
    }

    .slot.is-preview {
        background: rgb(217 170 85 / 0.14);
    }

    .block {
        position: absolute;
        left: var(--l);
        width: var(--w);
        top: 5px;
        bottom: 5px;
        z-index: 1;
        display: flex;
        align-items: center;
        padding: 0 0.6rem;
        overflow: hidden;
        border-radius: 7px;
        font-size: 0.72rem;
        font-weight: 500;
        white-space: nowrap;
        text-overflow: ellipsis;
        pointer-events: none;
    }

    .block {
        gap: 0.35rem;
    }

    .block .icon {
        width: 13px;
        height: 13px;
    }

    .block span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .block--event {
        background: repeating-linear-gradient(-45deg, rgb(157 140 242 / 0.34) 0 6px, rgb(157 140 242 / 0.2) 6px 12px);
        border: 1px solid rgb(157 140 242 / 0.5);
        color: #ded8ff;
    }

    .block--booking {
        background: var(--surface-3);
        border: 1px solid var(--line-strong);
        color: var(--text-dim);
    }

    .block--pick {
        z-index: 2;
        background: linear-gradient(180deg, #f0c877, #c9923d);
        border: 1px solid #ffe3a8;
        color: #1f1406;
        font-weight: 700;
        box-shadow: 0 6px 20px -6px rgb(217 170 85 / 0.8);
        animation: pick-in 300ms var(--ease);
    }

    .block--pick.is-invalid {
        background: linear-gradient(180deg, #e98a7f, #b54c43);
        border-color: #ffb3ae;
        color: #2a0906;
    }

    @keyframes pick-in {
        from {
            transform: scaleX(0.6);
            opacity: 0;
        }
    }

    .timeline-hint {
        font-size: var(--fs-xs);
        color: var(--text-dim);
    }

    /* Панель брони */
    .booking-summary {
        max-height: calc(100dvh - var(--header-h) - 32px);
        overflow-y: auto;
        overscroll-behavior: contain;
        position: sticky;
        top: calc(var(--header-h) + 16px);
        display: grid;
        gap: var(--space-4);
        padding: var(--space-5);
    }

    .summary-empty {
        display: grid;
        gap: var(--space-3);
        justify-items: center;
        text-align: center;
        padding: var(--space-6) var(--space-3);
        color: var(--text-muted);
    }

    .summary-empty .icon {
        width: 44px;
        height: 44px;
        color: var(--gold-deep);
        stroke-width: 1.3;
    }

    .summary-empty h3 {
        color: var(--text);
        font-size: 1.5rem;
    }

    .summary-table {
        display: grid;
        grid-template-columns: 56px 1fr;
        gap: var(--space-3);
        align-items: center;
    }

    .summary-table .cover {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .summary-table h3 {
        font-size: 1.5rem;
    }

    .summary-table p {
        font-size: var(--fs-xs);
        color: var(--text-muted);
    }

    .summary-when {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        border-radius: var(--radius);
        overflow: hidden;
        background: var(--line);
        border: 1px solid var(--line);
    }

    .summary-when > div {
        padding: 0.7rem 0.9rem;
        background: rgb(0 0 0 / 0.25);
    }

    .summary-when small {
        display: block;
        font-size: 0.68rem;
        color: var(--text-dim);
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .summary-when strong {
        font-weight: 600;
        font-variant-numeric: tabular-nums;
    }

    .summary-controls {
        display: grid;
        gap: var(--space-3);
    }

    .control-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
        font-size: var(--fs-sm);
    }

    .control-row small {
        display: block;
        font-size: var(--fs-xs);
        color: var(--text-dim);
    }

    .extras {
        display: grid;
        gap: 6px;
    }

    .extra {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 0.7rem;
        align-items: center;
        padding: 0.6rem 0.8rem;
        border-radius: var(--radius-sm);
        border: 1px solid var(--line);
        cursor: pointer;
        transition: all var(--dur);
        font-size: var(--fs-sm);
    }

    .extra:hover {
        border-color: var(--line-strong);
    }

    .extra:has(input:checked) {
        border-color: rgb(217 170 85 / 0.5);
        background: var(--gold-a10);
    }

    .extra small {
        display: block;
        font-size: var(--fs-xs);
        color: var(--text-dim);
    }

    .extra-price {
        font-size: var(--fs-xs);
        color: var(--gold);
        white-space: nowrap;
    }

    .extra.check {
        color: var(--text);
    }

    .price-lines {
        display: grid;
        gap: 6px;
        padding-top: var(--space-3);
        border-top: 1px dashed var(--line-strong);
        font-size: var(--fs-sm);
    }

    .price-line {
        display: flex;
        justify-content: space-between;
        gap: var(--space-3);
        color: var(--text-muted);
    }

    .price-line span:last-child {
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    .price-total {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-top: 4px;
        padding-top: var(--space-3);
        border-top: 1px solid var(--line);
        color: var(--text);
    }

    .price-total strong {
        font-family: var(--font-display);
        font-size: 2rem;
        color: var(--gold-bright);
        line-height: 1;
    }

    /* ─── Лавка ──────────────────────────────────────────────── */
    .shop-perks {
        display: grid;
        gap: var(--space-2);
        font-size: var(--fs-sm);
        color: var(--text-muted);
    }

    .shop-perks span {
        display: flex;
        align-items: center;
        gap: 0.55rem;
    }

    .shop-perks .icon {
        color: var(--gold);
    }

    .shop-toolbar {
        display: grid;
        grid-template-columns: minmax(220px, 1fr) auto auto;
        gap: var(--space-3);
        margin-bottom: var(--space-6);
    }

    .shop-categories {
        grid-column: 1 / -1;
    }

    @media (max-width: 760px) {
        .shop-toolbar {
            grid-template-columns: 1fr 1fr;
        }

        .shop-toolbar .search {
            grid-column: 1 / -1;
        }

        .shop-categories {
            flex-wrap: nowrap;
            overflow-x: auto;
            scrollbar-width: none;
        }

        .shop-categories .chip {
            flex-shrink: 0;
        }
    }

    .search {
        position: relative;
    }

    .search .icon {
        position: absolute;
        left: 0.95rem;
        top: 50%;
        translate: 0 -50%;
        color: var(--text-dim);
        pointer-events: none;
    }

    .search .input {
        padding-left: 2.7rem;
        border-radius: var(--radius-pill);
    }

    .shop-toolbar .select {
        border-radius: var(--radius-pill);
    }

    .products {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
        gap: var(--space-4);
    }

    .product-skeleton {
        height: 420px;
    }

    .products-more {
        grid-column: 1 / -1;
        justify-self: center;
        margin-top: var(--space-3);
    }

    .product {
        display: grid;
        grid-template-rows: auto 1fr;
        overflow: hidden;
    }

    .product-cover {
        aspect-ratio: 4 / 3;
        border-bottom: 1px solid var(--line);
    }

    .product-cover > button {
        display: block;
        width: 100%;
        height: 100%;
    }

    .product-cover svg {
        transition: transform 800ms var(--ease);
    }

    .product:hover .product-cover svg {
        transform: scale(1.05);
    }

    .product-badges {
        position: absolute;
        top: var(--space-3);
        left: var(--space-3);
        display: flex;
        gap: 6px;
        z-index: 2;
        pointer-events: none;
    }

    .product-badges .badge {
        background-color: rgb(14 12 10 / 0.72);
    }

    .product-body {
        display: grid;
        gap: var(--space-2);
        padding: var(--space-4) var(--space-4) var(--space-4);
        align-content: start;
    }

    .product-cat {
        display: flex;
        justify-content: space-between;
        gap: var(--space-2);
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--text-dim);
    }

    .product-title {
        font-size: 1.35rem;
        line-height: 1.1;
    }

    .product-title button {
        text-align: left;
        transition: color var(--dur);
    }

    .product-title button:hover {
        color: var(--gold-bright);
    }

    .product-buy {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
        margin-top: auto;
        padding-top: var(--space-3);
    }

    .price {
        display: grid;
        line-height: 1.05;
    }

    .price strong {
        font-family: var(--font-display);
        font-size: 1.55rem;
        font-weight: 700;
    }

    .price s {
        font-size: var(--fs-xs);
        color: var(--text-dim);
    }

    .price.is-sale strong {
        color: #ffa577;
    }

    .stock-low {
        font-size: 0.7rem;
        color: #ffa577;
    }

    .stock-out {
        font-size: 0.7rem;
        color: var(--text-dim);
    }

    .add-btn.is-added {
        --btn-bg: rgb(134 184 111 / 0.18);
        border-color: var(--moss);
        color: #bfe6ab;
    }

    /* Карточка товара */
    .product-detail {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .product-detail .cover {
        min-height: 100%;
        aspect-ratio: 1;
    }

    .product-detail-body {
        display: grid;
        gap: var(--space-4);
        align-content: start;
        padding: var(--space-6);
    }

    .product-detail-body h2 {
        font-size: clamp(2rem, 1.6rem + 1.5vw, 2.6rem);
    }

    .product-detail-body p {
        color: var(--text-muted);
    }

    .facts {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1px;
        border-radius: var(--radius);
        overflow: hidden;
        background: var(--line);
        border: 1px solid var(--line);
    }

    .facts div {
        display: grid;
        justify-items: center;
        gap: 2px;
        padding: 0.75rem 0.5rem;
        background: rgb(0 0 0 / 0.25);
        text-align: center;
    }

    .facts .icon {
        color: var(--gold);
    }

    .facts strong {
        font-size: var(--fs-sm);
    }

    .facts small {
        font-size: 0.68rem;
        color: var(--text-dim);
    }

    .contents-list {
        display: grid;
        gap: 6px;
        font-size: var(--fs-sm);
        color: var(--text-muted);
    }

    .contents-list li {
        display: flex;
        gap: 0.55rem;
        align-items: flex-start;
    }

    .contents-list .icon {
        color: var(--moss);
        margin-top: 3px;
        width: 15px;
        height: 15px;
    }

    .product-detail-buy {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-4);
        padding-top: var(--space-4);
        border-top: 1px solid var(--line);
    }

    .product-detail-buy .price strong {
        font-size: 2.2rem;
    }

    .product-detail-buy .btn {
        flex: 1;
    }

    @media (max-width: 760px) {
        .product-detail {
            grid-template-columns: 1fr;
        }

        .product-detail .cover {
            aspect-ratio: 16 / 10;
        }

        .product-detail-body {
            padding: var(--space-5) var(--space-4);
        }
    }

    /* Корзина */
    .drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
        padding: var(--space-5);
        border-bottom: 1px solid var(--line);
    }

    .drawer-head h2 {
        font-size: 1.9rem;
    }

    .drawer-head .dialog-close {
        position: static;
    }

    .drawer-body {
        flex: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: var(--space-4) var(--space-5);
    }

    .drawer-foot {
        display: grid;
        gap: var(--space-3);
        padding: var(--space-5);
        border-top: 1px solid var(--line);
        background: rgb(0 0 0 / 0.2);
    }

    .cart-items {
        display: grid;
        gap: var(--space-3);
    }

    .cart-item {
        display: grid;
        grid-template-columns: 64px 1fr auto;
        gap: var(--space-3);
        align-items: center;
        padding-bottom: var(--space-3);
        border-bottom: 1px solid var(--line);
        animation: fade-in 300ms ease;
    }

    .cart-item .cover {
        width: 64px;
        height: 64px;
        border-radius: 12px;
    }

    .cart-item h3 {
        font-family: var(--font-body);
        font-size: var(--fs-sm);
        font-weight: 600;
        line-height: 1.3;
    }

    .cart-item-side {
        display: grid;
        justify-items: end;
        gap: 6px;
    }

    .cart-item-price {
        font-weight: 600;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .cart-remove {
        font-size: var(--fs-xs);
        color: var(--text-dim);
        display: inline-flex;
        gap: 0.3rem;
        align-items: center;
    }

    .cart-remove:hover {
        color: var(--blood);
    }

    .cart-remove .icon {
        width: 13px;
        height: 13px;
    }

    .cart-total {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
    }

    .cart-total strong {
        font-family: var(--font-display);
        font-size: 2rem;
        color: var(--gold-bright);
    }

    .pickup {
        display: flex;
        gap: 0.7rem;
        padding: 0.8rem 1rem;
        border-radius: var(--radius-sm);
        background: var(--gold-a10);
        border: 1px solid rgb(217 170 85 / 0.25);
        font-size: var(--fs-sm);
    }

    .pickup .icon {
        color: var(--gold);
        margin-top: 2px;
    }

    .pickup small {
        display: block;
        color: var(--text-muted);
    }

    .back-link {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-size: var(--fs-sm);
        color: var(--text-muted);
    }

    .back-link:hover {
        color: var(--gold-bright);
    }

    /* ─── Мастера ────────────────────────────────────────────── */
    .section--masters {
        background: radial-gradient(900px 500px at 50% 0%, rgb(217 170 85 / 0.06), transparent 70%);
    }

    .masters {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
        gap: var(--space-4);
    }

    .master {
        --tone: var(--gold);
        display: grid;
        gap: var(--space-4);
        padding: var(--space-5);
        overflow: hidden;
    }

    .master::before {
        content: '';
        position: absolute;
        inset: 0 0 auto 0;
        height: 120px;
        background: radial-gradient(ellipse at 20% 0%, color-mix(in oklab, var(--tone) 22%, transparent), transparent 70%);
        pointer-events: none;
    }

    .master-head {
        position: relative;
        display: grid;
        grid-template-columns: 72px 1fr;
        gap: var(--space-4);
        align-items: center;
    }

    .master-head .avatar {
        width: 72px;
        height: 72px;
    }

    .master-nick {
        font-family: var(--font-display);
        font-style: italic;
        font-size: 1.1rem;
        color: color-mix(in oklab, var(--tone) 70%, #fff 30%);
    }

    .master h3 {
        font-size: 1.6rem;
    }

    .master-bio {
        position: relative;
        color: var(--text-muted);
        font-size: var(--fs-sm);
    }

    .master-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-2);
        padding-block: var(--space-3);
        border-block: 1px solid var(--line);
        text-align: center;
    }

    .master-stats strong {
        display: block;
        font-family: var(--font-display);
        font-size: 1.5rem;
        line-height: 1;
        color: var(--text);
    }

    .master-stats small {
        font-size: 0.68rem;
        color: var(--text-dim);
    }

    .master-foot {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
    }

    /* ─── О клубе ────────────────────────────────────────────── */
    .steps {
        margin-bottom: var(--space-9);
    }

    .steps-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
        counter-reset: step;
    }

    .steps-list li {
        position: relative;
        display: grid;
        gap: var(--space-3);
        padding: var(--space-6) var(--space-5) var(--space-5);
        border-radius: var(--radius-lg);
        border: 1px solid var(--line);
        background: linear-gradient(180deg, var(--surface), transparent);
    }

    .steps-num {
        font-family: var(--font-display);
        font-size: 3.4rem;
        font-weight: 700;
        line-height: 0.8;
        color: transparent;
        -webkit-text-stroke: 1px var(--gold);
    }

    .steps-list h3 {
        font-size: 1.6rem;
    }

    .steps-list p {
        color: var(--text-muted);
        font-size: var(--fs-sm);
    }

    @media (max-width: 860px) {
        .steps-list {
            grid-template-columns: 1fr;
        }
    }

    .club-grid {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: var(--space-6);
        align-items: start;
    }

    @media (max-width: 960px) {
        .club-grid {
            grid-template-columns: 1fr;
        }
    }

    .section-title--sm {
        font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem);
        margin-bottom: var(--space-4);
    }

    .faq details {
        border-bottom: 1px solid var(--line);
    }

    .faq summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: var(--space-4);
        padding: var(--space-4) 0;
        font-weight: 500;
        cursor: pointer;
        list-style: none;
        transition: color var(--dur);
    }

    .faq summary::-webkit-details-marker {
        display: none;
    }

    .faq summary::after {
        content: '+';
        flex-shrink: 0;
        display: grid;
        place-items: center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        border: 1px solid var(--line-strong);
        color: var(--gold);
        font-size: 1.2rem;
        transition: transform var(--dur) var(--ease);
    }

    .faq details[open] summary::after {
        transform: rotate(45deg);
    }

    .faq summary:hover {
        color: var(--gold-bright);
    }

    .faq details p {
        padding-bottom: var(--space-4);
        color: var(--text-muted);
        max-width: 60ch;
    }

    .contacts {
        border-radius: var(--radius-lg);
        border: 1px solid var(--line);
        background: var(--surface);
        overflow: hidden;
    }

    .contacts-map {
        aspect-ratio: 400 / 260;
        background: #13100d;
        border-bottom: 1px solid var(--line);
    }

    .contacts-map svg {
        width: 100%;
        height: 100%;
    }

    .map-pulse {
        transform-origin: center;
        transform-box: fill-box;
        animation: map-pulse 2.4s ease-out infinite;
    }

    @keyframes map-pulse {
        from {
            transform: scale(0.4);
            opacity: 1;
        }

        to {
            transform: scale(1.6);
            opacity: 0;
        }
    }

    .contacts-body {
        padding: var(--space-5);
    }

    .contacts-list {
        display: grid;
        gap: var(--space-3);
    }

    .contacts-list li {
        display: flex;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .contacts-list .icon {
        color: var(--gold);
        margin-top: 3px;
    }

    .contacts-list small {
        color: var(--text-dim);
    }

    /* ─── Подвал ─────────────────────────────────────────────── */
    .site-footer {
        padding-block: var(--space-7);
        border-top: 1px solid var(--line);
        background: rgb(0 0 0 / 0.3);
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1.6fr repeat(3, 1fr);
        gap: var(--space-6) var(--space-5);
        align-items: start;
    }

    .footer-brand p {
        margin-top: var(--space-3);
        font-size: var(--fs-sm);
        color: var(--text-dim);
        max-width: 42ch;
    }

    .footer-socials {
        display: flex;
        gap: var(--space-4);
        margin-top: var(--space-3);
    }

    .footer-col h2 {
        font-family: var(--font-body);
        font-size: var(--fs-xs);
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--gold);
        margin-bottom: var(--space-3);
    }

    .footer-col ul {
        display: grid;
        gap: var(--space-2);
        font-size: var(--fs-sm);
        color: var(--text-muted);
        list-style: none;
        padding: 0;
    }

    .footer-col a:hover {
        color: var(--gold-bright);
    }

    .footer-contacts address {
        font-style: normal;
        font-size: var(--fs-sm);
        color: var(--text-muted);
        line-height: 1.8;
    }

    .footer-hours {
        margin-top: var(--space-2);
        font-size: var(--fs-sm);
        color: var(--text-dim);
    }

    .footer-legal {
        grid-column: 1 / -1;
        padding-top: var(--space-5);
        border-top: 1px solid var(--line);
        font-size: var(--fs-xs);
        color: var(--text-dim);
        max-width: 90ch;
    }

    @media (max-width: 900px) {
        .footer-grid {
            grid-template-columns: 1fr 1fr;
        }
    }

    @media (max-width: 560px) {
        .footer-grid {
            grid-template-columns: 1fr;
        }
    }

    /* ─── 404 ────────────────────────────────────────────────── */
    .not-found {
        min-height: 100dvh;
        display: grid;
        place-content: center;
        justify-items: center;
        gap: var(--space-4);
        text-align: center;
        padding-block: var(--space-7);
    }

    .not-found-die {
        display: grid;
        place-items: center;
        width: 140px;
        aspect-ratio: 1;
        clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
        background: linear-gradient(135deg, #6e4b1d, #2b1c0a);
        font-family: var(--font-display);
        font-size: 4rem;
        font-weight: 700;
        color: var(--blood);
        animation: float 6s ease-in-out infinite;
        margin-bottom: var(--space-4);
    }
}

/* pages.css */
/* ==========================================================================
   Блоки посадочных страниц: крошки, услуги, залы, тексты, карточка товара
   ========================================================================== */

@layer sections {
    .section--top {
        padding-top: calc(var(--header-h) - 16px);
    }

    .section-inner {
        margin-top: var(--space-8);
    }

    .section-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-3);
        margin-top: var(--space-6);
    }

    .hero-tagline {
        font-family: var(--font-display);
        font-style: italic;
        font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
        line-height: 1.15;
        color: var(--gold-bright);
        margin-top: calc(var(--space-3) * -1);
    }

    .header-phone {
        font-size: var(--fs-sm);
        font-weight: 600;
        color: var(--text-muted);
        white-space: nowrap;
        transition: color var(--dur);
    }

    .header-phone:hover {
        color: var(--gold-bright);
    }

    @media (max-width: 1180px) {
        .header-phone {
            display: none;
        }
    }

    /* ─── Хлебные крошки ─────────────────────────────────────── */
    .breadcrumbs {
        margin-bottom: var(--space-5);
        font-size: var(--fs-xs);
        color: var(--text-dim);
    }

    .breadcrumbs ol {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        list-style: none;
        padding: 0;
    }

    .breadcrumbs li + li::before {
        content: '/';
        margin-right: 0.5rem;
        color: var(--gold-deep);
    }

    .breadcrumbs a:hover {
        color: var(--gold-bright);
    }

    /* ─── Услуги на главной ──────────────────────────────────── */
    .services {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
        gap: var(--space-4);
    }

    .service-card {
        display: grid;
        gap: var(--space-3);
        padding: var(--space-5);
        align-content: start;
    }

    .service-icon {
        display: grid;
        place-items: center;
        width: 46px;
        height: 46px;
        border-radius: 14px;
        background: var(--gold-a10);
        border: 1px solid rgb(217 170 85 / 0.25);
        color: var(--gold-bright);
    }

    .service-icon .icon {
        width: 22px;
        height: 22px;
    }

    .service-card h3 {
        font-size: 1.5rem;
    }

    .service-card h3 a:hover {
        color: var(--gold-bright);
    }

    .service-card p {
        font-size: var(--fs-sm);
        color: var(--text-muted);
    }

    /* ─── Залы ───────────────────────────────────────────────── */
    .halls {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
        gap: var(--space-4);
    }

    .hall {
        display: grid;
        grid-template-rows: auto 1fr;
        overflow: hidden;
    }

    .hall-cover {
        aspect-ratio: 16 / 9;
        border-bottom: 1px solid var(--line);
    }

    .hall-body {
        display: grid;
        gap: var(--space-2);
        padding: var(--space-4) var(--space-5) var(--space-5);
        align-content: start;
    }

    .hall-body h3 {
        font-size: 1.5rem;
    }

    .hall-desc {
        font-size: var(--fs-sm);
        color: var(--text-muted);
    }

    .hall-price {
        margin-top: var(--space-2);
        padding-top: var(--space-3);
        border-top: 1px solid var(--line);
    }

    .hall-price strong {
        font-family: var(--font-display);
        font-size: 1.5rem;
        color: var(--gold-bright);
    }

    .hall-price small {
        color: var(--text-dim);
        font-size: var(--fs-xs);
    }

    /* ─── Текстовые блоки ────────────────────────────────────── */
    .prose {
        max-width: 68ch;
        margin-top: var(--space-8);
        display: grid;
        gap: var(--space-4);
    }

    .prose h2 {
        font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem);
    }

    .prose h3 {
        font-size: 1.4rem;
    }

    .prose p {
        color: var(--text-muted);
        line-height: 1.7;
    }

    .prose strong {
        color: var(--text);
    }

    .two-cols {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
        gap: var(--space-6);
        margin-top: var(--space-8);
        align-items: start;
    }

    .two-cols .prose {
        margin-top: 0;
    }

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

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

    /* ─── Факты (характеристики) ─────────────────────────────── */
    .facts-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1px;
        margin-top: var(--space-6);
        border-radius: var(--radius);
        overflow: hidden;
        background: var(--line);
        border: 1px solid var(--line);
    }

    .facts-grid > div {
        display: grid;
        gap: 4px;
        padding: var(--space-4);
        background: rgb(0 0 0 / 0.22);
    }

    .facts-grid dt {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        font-size: 0.7rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-dim);
    }

    .facts-grid dt .icon {
        color: var(--gold);
        width: 15px;
        height: 15px;
    }

    .facts-grid dd {
        font-family: var(--font-display);
        font-size: 1.35rem;
        font-weight: 600;
        color: var(--text);
    }

    .facts-grid--sm dd {
        font-size: 1.1rem;
    }

    /* ─── Страница партии ────────────────────────────────────── */
    .game-hero {
        display: grid;
        grid-template-columns: 320px minmax(0, 1fr);
        gap: var(--space-6);
        align-items: center;
    }

    .game-hero-cover {
        aspect-ratio: 4 / 3;
        border-radius: var(--radius-lg);
        border: 1px solid var(--line-strong);
    }

    .game-hero-body {
        display: grid;
        gap: var(--space-4);
    }

    .game-hero h1 {
        font-size: clamp(2.2rem, 1.7rem + 2.4vw, 3.6rem);
    }

    @media (max-width: 860px) {
        .game-hero {
            grid-template-columns: 1fr;
            gap: var(--space-4);
        }

        .game-hero-cover {
            aspect-ratio: 16 / 9;
        }
    }

    /* ─── FAQ и списки ссылок ────────────────────────────────── */
    .faq-section {
        margin-top: var(--space-8);
        max-width: 80ch;
    }

    .link-list {
        margin-top: var(--space-8);
    }

    .link-list ul {
        display: grid;
        gap: var(--space-2);
        list-style: none;
        padding: 0;
        font-size: var(--fs-sm);
        color: var(--text-muted);
    }

    .toc {
        margin-top: var(--space-6);
        padding: var(--space-5);
        border-radius: var(--radius-lg);
        border: 1px solid var(--line);
        background: rgb(0 0 0 / 0.2);
        max-width: 60ch;
    }

    .toc h2 {
        font-family: var(--font-body);
        font-size: var(--fs-xs);
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--gold);
        margin-bottom: var(--space-3);
    }

    .toc ol {
        display: grid;
        gap: var(--space-2);
        margin: 0;
        padding-left: 1.2rem;
        color: var(--text-muted);
    }

    .toc a:hover {
        color: var(--gold-bright);
    }

    /* ─── Полоса призыва к действию ──────────────────────────── */
    .cta-band {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-5);
        margin-top: var(--space-8);
        padding: var(--space-6);
        border-radius: var(--radius-lg);
        border: 1px solid rgb(217 170 85 / 0.28);
        background:
            radial-gradient(600px 200px at 20% 0%, rgb(226 115 61 / 0.16), transparent 70%),
            linear-gradient(180deg, var(--surface), var(--bg-raised));
    }

    .cta-band h2 {
        font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
    }

    .cta-band p {
        margin-top: var(--space-2);
        color: var(--text-muted);
        max-width: 58ch;
    }

    .cta-band-actions {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    /* ─── Цены ───────────────────────────────────────────────── */
    .price-table {
        margin-top: var(--space-4);
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        overflow: auto;
        background: var(--bg-raised);
    }

    .price-table table {
        width: 100%;
        min-width: 640px;
        border-collapse: collapse;
        font-size: var(--fs-sm);
    }

    .price-table caption {
        padding: var(--space-4);
        text-align: left;
        color: var(--text-dim);
        font-size: var(--fs-xs);
    }

    .price-table th,
    .price-table td {
        padding: 0.8rem 1rem;
        text-align: left;
        border-bottom: 1px solid var(--line);
    }

    .price-table thead th {
        font-size: 0.7rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-dim);
        background: var(--surface);
    }

    .price-table tbody th {
        font-weight: 600;
    }

    .price-table tbody th small {
        display: block;
        font-weight: 400;
        font-size: var(--fs-xs);
        color: var(--text-dim);
    }

    .price-table .num {
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .extras-title {
        margin: var(--space-6) 0 var(--space-3);
        font-size: 1.4rem;
    }

    /* ─── Контакты ───────────────────────────────────────────── */
    .contacts-block {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-5);
        align-items: center;
        margin-top: var(--space-6);
        padding: var(--space-5);
        border-radius: var(--radius-lg);
        border: 1px solid var(--line);
        background: var(--surface);
    }

    .contacts-block .contacts-map {
        border: 1px solid var(--line);
        border-radius: var(--radius);
        overflow: hidden;
    }

    .contacts-block address,
    .contacts-card address {
        font-style: normal;
    }

    .contacts-list p {
        display: flex;
        gap: 0.75rem;
        align-items: flex-start;
        margin-bottom: var(--space-3);
        color: var(--text-muted);
    }

    .contacts-list .icon {
        color: var(--gold);
        margin-top: 3px;
    }

    .contacts-page {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
        gap: var(--space-4);
    }

    .contacts-card {
        padding: var(--space-5);
        display: grid;
        gap: var(--space-4);
        align-content: start;
    }

    .contacts-card h2 {
        font-size: 1.6rem;
    }

    @media (max-width: 860px) {
        .contacts-block {
            grid-template-columns: 1fr;
        }
    }

    /* ─── Карточка товара ────────────────────────────────────── */
    .product-page {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: var(--space-6);
        align-items: start;
    }

    .product-page-cover {
        aspect-ratio: 4 / 3;
        border-radius: var(--radius-lg);
        border: 1px solid var(--line-strong);
        position: sticky;
        top: calc(var(--header-h) + 16px);
    }

    .product-page-body {
        display: grid;
        gap: var(--space-4);
        align-content: start;
    }

    .product-page-body h1 {
        font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem);
    }

    .product-page-body .facts-grid {
        margin-top: 0;
    }

    .product-page-body .product-detail-buy {
        position: sticky;
        bottom: 0;
        background: linear-gradient(180deg, transparent, var(--bg) 40%);
        padding-top: var(--space-4);
    }

    @media (max-width: 860px) {
        .product-page {
            grid-template-columns: 1fr;
        }

        .product-page-cover {
            position: static;
            aspect-ratio: 16 / 10;
        }
    }

    /* Пустые контейнеры до загрузки скриптов не должны прыгать */
    .day-strip:empty {
        min-height: 92px;
    }

    .day-strip--compact:empty {
        min-height: 80px;
    }

    .schedule-filters .chips:empty {
        min-height: 38px;
    }
}
