/* Variables: base tokens */
:root {
    --font-main: "Roboto", "Segoe UI", sans-serif;
    --color-page-bg: #1f252d;
    --color-surface: #27313d;
    --color-surface-soft: #334253;
    --color-text: #f3f7ff;
    --color-text-dim: #c8d3e3;
    --color-accent: #ffd36a;
    --color-accent-strong: #ff9c57;
    --color-accent-ink: #171a20;
    --color-button-main: #f1ca62;
    --color-button-main-shadow: #876925;
    --color-button-soft: #d8e6ff;
    --color-button-soft-shadow: #5a7297;
    --color-button-text: #121723;
    --color-link: #c9ecff;
    --color-border: #455a6f;
    --color-overlay: rgba(8, 12, 20, 0.64);
    --color-focus: #76d2ff;

    --radius-soft: clamp(0.5rem, 0.46rem + 0.2vw, 0.7rem);
    --radius-main: clamp(0.85rem, 0.72rem + 0.55vw, 1.3rem);
    --radius-pill: 999px;
    --radius-button: clamp(0.35rem, 0.32rem + 0.12vw, 0.45rem);

    --shadow-head: 0 0.65rem 1.4rem rgba(0, 0, 0, 0.35);
    --shadow-card: 0 0.9rem 1.8rem rgba(0, 0, 0, 0.38);
    --shadow-focus: 0 0 0 0.16rem rgba(104, 212, 255, 0.4);

    --time-fast: 220ms;
    --time-main: 360ms;
    --ease-main: cubic-bezier(0.2, 0.7, 0.2, 1);

    --container-width: min(100% - clamp(1rem, 2.2vw, 2.2rem), 81.25rem);
    --header-min-height: clamp(4rem, 3.65rem + 1.2vw, 4.9rem);
    --section-gap: clamp(1.2rem, 1rem + 0.9vw, 2rem);

    --text-small: clamp(0.85rem, 0.82rem + 0.14vw, 0.98rem);
    --text-base: clamp(0.95rem, 0.91rem + 0.2vw, 1.08rem);
    --text-nav: clamp(0.9rem, 0.86rem + 0.18vw, 1.02rem);
    --text-sub: clamp(1rem, 0.95rem + 0.3vw, 1.24rem);
    --text-title: clamp(1.5rem, 1.1rem + 1.6vw, 2.55rem);

    --pad-chip-y: clamp(0.52rem, 0.48rem + 0.2vw, 0.68rem);
    --pad-chip-x: clamp(0.8rem, 0.7rem + 0.5vw, 1.2rem);
    --pad-block: clamp(1.2rem, 1rem + 0.9vw, 2rem);
    --pad-hero-y: clamp(2.2rem, 1.8rem + 1.8vw, 3.7rem);

    --menu-switch-size: clamp(2.5rem, 2.34rem + 0.6vw, 2.95rem);
    --drawer-top-gap: clamp(0.45rem, 0.4rem + 0.2vw, 0.62rem);

    --hero-min-height: clamp(22rem, 20rem + 8vw, 30rem);
    --hero-width-copy: clamp(22rem, 19rem + 12vw, 43rem);

    --grid-card-min: clamp(14.2rem, 13.2rem + 3.8vw, 17.2rem);
    --card-aspect: 1.5;
    --card-action-size: clamp(2.7rem, 2.4rem + 1vw, 3.35rem);

    --footer-note-size: clamp(0.8rem, 0.77rem + 0.15vw, 0.94rem);
}

/* Base: reset and helpers */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-main);
    font-size: var(--text-base);
    color: var(--color-text);
    background:
        radial-gradient(120% 120% at 8% -20%, #274b5d 0%, rgba(39, 75, 93, 0) 48%),
        radial-gradient(90% 110% at 96% 0%, #3a3f68 0%, rgba(58, 63, 104, 0) 52%),
        var(--color-page-bg);
    line-height: 1.4;
    min-height: 100vh;
}

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

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

p {
    margin: 0;
}

figure {
    margin: 0;
}

.olympe-layout-wrap {
    width: min(100%, 81.25rem);
    max-width: 100%;
    min-width: 0;
    padding-inline: clamp(0.35rem, 2.2vw, 0.75rem);
    margin-inline: auto;
}

main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--section-gap);
    padding-block: var(--pad-block);
}

main > section {
    min-width: 0;
}

a:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

/* Header */
.shell-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(180deg, rgba(17, 25, 37, 0.94) 0%, rgba(17, 25, 37, 0.78) 100%);
    box-shadow: var(--shadow-head);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-line {
    min-height: var(--header-min-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.6rem, 0.4rem + 1vw, 1.35rem);
}

.brand-link img {
    height: clamp(2rem, 1.9rem + 0.45vw, 2.4rem);
    width: auto;
    object-fit: contain;
}

.main-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.34rem, 0.28rem + 0.3vw, 0.6rem);
}

.main-link {
    font-size: var(--text-nav);
    color: var(--color-text-dim);
    padding: var(--pad-chip-y) var(--pad-chip-x);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    transition: color var(--time-fast) var(--ease-main), border-color var(--time-fast) var(--ease-main), background-color var(--time-fast) var(--ease-main);
}

.main-link:hover,
.main-link:focus-visible {
    color: var(--color-text);
    border-color: var(--color-border);
    background-color: rgba(255, 255, 255, 0.04);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: clamp(0.46rem, 0.36rem + 0.46vw, 0.82rem);
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-small);
    font-weight: 800;
    padding: var(--pad-chip-y) var(--pad-chip-x);
    border-radius: var(--radius-button);
    border: 1px solid transparent;
    line-height: 1;
    transition: transform var(--time-fast) var(--ease-main), filter var(--time-fast) var(--ease-main);
}

.action-link-soft {
    background: var(--color-button-soft);
    color: var(--color-button-text);
    box-shadow: 0 0.3rem 0 0 var(--color-button-soft-shadow);
}

.action-link-strong {
    background: var(--color-button-main);
    color: var(--color-button-text);
    box-shadow: 0 0.3rem 0 0 var(--color-button-main-shadow);
}

.action-link:hover,
.action-link:focus-visible {
    transform: translateY(0.04rem);
    filter: brightness(1.04);
}

.menu-switch {
    width: var(--menu-switch-size);
    height: var(--menu-switch-size);
    display: none;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.04);
}

.menu-glyph {
    width: clamp(1.15rem, 1.08rem + 0.33vw, 1.4rem);
    height: clamp(1.15rem, 1.08rem + 0.33vw, 1.4rem);
    fill: var(--color-text);
}

.menu-glyph-close {
    display: none;
}

.menu-switch[aria-expanded="true"] .menu-glyph-open {
    display: none;
}

.menu-switch[aria-expanded="true"] .menu-glyph-close {
    display: block;
}

.mobile-drawer {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: calc(100% + var(--drawer-top-gap));
    background: rgba(14, 22, 33, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-card);
}

.mobile-drawer.is-open {
    display: block;
}

.mobile-links {
    display: grid;
}

.mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-dim);
    padding: var(--pad-chip-y) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-link svg {
    width: 1rem;
    height: 1rem;
    fill: var(--color-link);
}

.mobile-auth {
    display: flex;
    gap: clamp(0.46rem, 0.36rem + 0.46vw, 0.82rem);
    padding-block: var(--pad-chip-y);
}

/* Hero */
.hero-focus {
    position: relative;
}

.hero-focus-panel {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-radius: var(--radius-main);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: var(--shadow-card);
    background: #151d27;
}

.hero-focus-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.hero-focus-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(92deg, var(--color-overlay) 0%, rgba(8, 12, 20, 0.46) 52%, rgba(8, 12, 20, 0.24) 100%),
        radial-gradient(95% 120% at 0% 0%, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0) 64%);
}

.hero-focus-copy {
    position: absolute;
    inset-block: auto 0;
    inset-inline: 0 auto;
    width: var(--hero-width-copy);
    display: grid;
    gap: clamp(0.72rem, 0.62rem + 0.45vw, 1.06rem);
    padding: var(--pad-hero-y);
}

.hero-focus-title {
    font-size: var(--text-title);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-wrap: balance;
}

.hero-focus-subtitle {
    max-width: 40ch;
    font-size: var(--text-sub);
    color: var(--color-text-dim);
    text-wrap: pretty;
}

.hero-focus-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
    font-weight: 800;
    color: var(--color-button-text);
    background: var(--color-button-main);
    border-radius: var(--radius-button);
    padding: clamp(0.66rem, 0.57rem + 0.44vw, 0.96rem) clamp(1.1rem, 0.95rem + 0.72vw, 1.65rem);
    box-shadow: 0 0.36rem 0 0 var(--color-button-main-shadow);
    animation: ctaBreath 2.2s ease-in-out infinite;
}

/* Slots */
.slots-gallery {
    display: grid;
    gap: clamp(0.82rem, 0.7rem + 0.5vw, 1.2rem);
}

.slots-gallery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.slots-gallery-title {
    font-size: clamp(1.2rem, 1.08rem + 0.55vw, 1.65rem);
    font-weight: 800;
}

.slots-gallery-link {
    font-size: var(--text-small);
    color: var(--color-link);
}

.slots-gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 30px 0;
    gap: clamp(0.7rem, 0.58rem + 0.58vw, 1.2rem);
    min-width: 0;
}

.slot-entry {
    position: relative;
    display: block;
    border-radius: var(--radius-main);
    overflow: hidden;
    aspect-ratio: var(--card-aspect);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111822;
    isolation: isolate;
    transition: transform var(--time-fast) var(--ease-main), box-shadow var(--time-fast) var(--ease-main);
}

.slot-entry img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--time-main) var(--ease-main), filter var(--time-main) var(--ease-main);
}

.slot-entry-overlay,
.slot-entry-action {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.slot-entry-overlay {
    background: linear-gradient(180deg, rgba(6, 12, 21, 0.12) 10%, rgba(6, 12, 21, 0.86) 100%);
    opacity: 0;
    transition: opacity var(--time-fast) var(--ease-main);
}

.slot-entry-action {
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(0.88);
    transition: opacity var(--time-fast) var(--ease-main), transform var(--time-fast) var(--ease-main);
}

.slot-entry-action svg {
    width: var(--card-action-size);
    height: var(--card-action-size);
    fill: var(--color-text);
    filter: drop-shadow(0 0.3rem 0.9rem rgba(0, 0, 0, 0.55));
}

.slot-entry:hover,
.slot-entry:focus-visible,
.slot-entry.is-peek {
    transform: translateY(-0.14rem);
    box-shadow: 0 0.8rem 1.4rem rgba(10, 16, 28, 0.48), 0 0 0 1px rgba(151, 206, 255, 0.32);
}

.slot-entry:hover img,
.slot-entry:focus-visible img,
.slot-entry.is-peek img {
    transform: scale(1.07);
    filter: contrast(1.1) saturate(1.04);
}

.slot-entry:hover .slot-entry-overlay,
.slot-entry:focus-visible .slot-entry-overlay,
.slot-entry.is-peek .slot-entry-overlay {
    opacity: 1;
}

.slot-entry:hover .slot-entry-action,
.slot-entry:focus-visible .slot-entry-action,
.slot-entry.is-peek .slot-entry-action {
    opacity: 1;
    transform: scale(1);
}

/* Winners */
.winners-band {
    display: grid;
    gap: 0.8rem;
    min-width: 0;
}

.winners-band-head {
    display: flex;
    align-items: center;
}

.winners-band-title {
    font-size: clamp(1.06rem, 1rem + 0.4vw, 1.35rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.winners-band-track {
    display: flex;
    gap: clamp(0.62rem, 0.55rem + 0.3vw, 0.94rem);
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding: 0.12rem 0 0.46rem;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0.2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(144, 190, 241, 0.9) rgba(18, 26, 38, 0.9);
}

.winners-band-track::-webkit-scrollbar {
    height: 0.45rem;
}

.winners-band-track::-webkit-scrollbar-track {
    background: rgba(18, 26, 38, 0.9);
    border-radius: 999px;
}

.winners-band-track::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(131, 189, 255, 0.95) 0%, rgba(255, 211, 106, 0.95) 100%);
    border-radius: 999px;
}

.winners-band-track::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, rgba(152, 203, 255, 1) 0%, rgba(255, 226, 143, 1) 100%);
}

.winner-pill {
    min-width: clamp(14.6rem, 14rem + 3vw, 17.5rem);
    display: flex;
    align-items: center;
    gap: 0.72rem;
    padding: 0.7rem;
    border-radius: var(--radius-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(160deg, rgba(45, 56, 69, 0.85) 0%, rgba(24, 31, 41, 0.9) 100%);
    scroll-snap-align: start;
}

.winner-pill img {
    width: 4.15rem;
    height: 4.15rem;
    object-fit: cover;
    border-radius: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.24);
}

.winner-pill-copy {
    display: grid;
    gap: 0.16rem;
}

.winner-pill-name {
    font-size: 1rem;
    font-weight: 700;
}

.winner-pill-amount {
    font-size: 1.34rem;
    font-weight: 800;
    color: var(--color-accent);
}

.winner-pill-time {
    font-size: 0.84rem;
    color: var(--color-text-dim);
}

/* Footer */
.shell-footer {
    padding-block: var(--pad-block);
    background: linear-gradient(180deg, rgba(30, 38, 48, 0.42) 0%, rgba(14, 20, 29, 0.93) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shell-footer .olympe-layout-wrap {
    display: grid;
    gap: clamp(0.9rem, 0.75rem + 0.7vw, 1.45rem);
}

.footer-line {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(0.8rem, 0.64rem + 0.8vw, 1.45rem);
}

.footer-brand img {
    height: clamp(2rem, 1.9rem + 0.45vw, 2.4rem);
    width: auto;
}

.footer-copy {
    color: var(--color-text-dim);
    font-size: var(--text-small);
    max-width: 62ch;
}

.footer-links-grid {
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.7rem, 0.62rem + 0.45vw, 1.1rem);
    width: 100%;
}

.footer-links-col {
    display: grid;
    gap: 0.52rem;
    align-content: start;
}

.footer-col-title {
    font-size: 0.82rem;
    color: var(--color-link);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-links-col a {
    display: inline-flex;
    justify-self: start;
    padding: 0;
    border: none;
    font-size: var(--text-small);
    color: var(--color-text-dim);
    transition: color var(--time-fast) var(--ease-main);
}

.footer-links-col a:hover,
.footer-links-col a:focus-visible {
    color: var(--color-text);
}

.footer-note {
    font-size: var(--footer-note-size);
    color: var(--color-text-dim);
    text-align: center;
}

.footer-anj-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
}

.footer-anj-badge {
    display: inline-flex;
    padding: 0.35rem 0.55rem;
    background: #ffffff;
    border-radius: 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
}

.footer-anj-badge img {
    height: 2.15rem;
    width: auto;
}

.footer-18-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-18-badge img {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
}

/* Animations */
@keyframes ctaBreath {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 163, 94, 0.25);
    }
    50% {
        transform: scale(1.035);
        box-shadow: 0 0 1rem rgba(255, 163, 94, 0.5);
    }
}

/* Media layout rules */
@media (max-width: 68rem) {
    .main-links {
        display: none;
    }

    .menu-switch {
        display: grid;
    }

    .header-cta .action-link-soft,
    .header-cta .action-link-strong {
        display: none;
    }

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

    .slots-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 52rem) {
    .header-line {
        min-height: 3.6rem;
    }

    .brand-link img {
        height: 1.92rem;
    }

    .menu-switch {
        width: 2.35rem;
        height: 2.35rem;
    }

    main {
        gap: 0.72rem;
        padding-block: 0.72rem 0.96rem;
    }

    .hero-focus-panel {
        border-radius: 0.88rem;
    }

    .hero-focus-copy {
        inset: auto 0 0 0;
        width: 100%;
        gap: 0.55rem;
        padding: 1rem;
    }

    .hero-focus-title {
        font-size: clamp(1.12rem, 4.8vw, 1.5rem);
        line-height: 1.15;
    }

    .hero-focus-subtitle {
        max-width: 34ch;
        font-size: 0.86rem;
        line-height: 1.34;
    }

    .hero-focus-link {
        font-size: 0.84rem;
        padding: 0.58rem 0.92rem;
        animation: none;
    }

    .slots-gallery-title {
        font-size: 1rem;
    }

    .slots-gallery-link {
        font-size: 0.78rem;
    }

    .mobile-auth {
        flex-direction: column;
    }

    .mobile-auth .action-link {
        justify-content: center;
    }

    .footer-line {
        gap: 0.34rem;
    }

    .footer-copy {
        max-width: 100%;
    }

    .footer-links-col a {
        font-size: 0.78rem;
    }

    .footer-anj-wrap {
        justify-content: center;
    }

    .winners-band-title {
        font-size: 0.88rem;
    }

    .winners-band {
        gap: 0.45rem;
    }

    .winners-band-track {
        gap: 0.34rem;
        padding-bottom: 0.38rem;
    }

    .winner-pill {
        min-width: 9.8rem;
        padding: 0.46rem;
        gap: 0.42rem;
        border-radius: 0.7rem;
    }

    .winner-pill img {
        width: 2.2rem;
        height: 2.2rem;
        border-radius: 0.54rem;
        border-width: 1px;
    }

    .winner-pill-name {
        font-size: 0.56rem;
        line-height: 1.18;
    }

    .winner-pill-amount {
        font-size: 0.82rem;
        line-height: 1.1;
    }

    .winner-pill-time {
        font-size: 0.54rem;
        line-height: 1.2;
    }
}

@media (max-width: 36rem) {
    .olympe-layout-wrap {
        padding-inline: 0.3rem;
    }

    .hero-focus-panel {
        border-radius: 0.74rem;
    }
    .footer-links-col {
        gap: 0.45rem;
    }

    .footer-links-col a {
        font-size: 0.75rem;
    }

    .winners-band-track {
        gap: 0.38rem;
    }

    .winner-pill {
        min-width: 9.2rem;
    }
}


/* merged from pages.css */
:root {
    --pages-max-width: min(1100px, calc(100% - 32px));
    --pages-surface: rgba(36, 30, 43, 0.86);
    --pages-surface-strong: rgba(25, 20, 31, 0.95);
    --pages-surface-soft: rgba(249, 214, 116, 0.08);
    --pages-border: rgba(249, 214, 116, 0.24);
    --pages-border-soft: rgba(249, 214, 116, 0.12);
    --pages-text: rgba(246, 242, 255, 0.9);
    --pages-text-strong: #fff6dd;
    --pages-accent: #f9d674;
    --pages-accent-strong: #ffb86d;
}

.page-content {
    width: var(--pages-max-width);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 44px) 0 clamp(54px, 7vw, 96px);
}

.page-content > section {
    margin-bottom: clamp(28px, 4vw, 46px);
}

.page-content > section:last-of-type {
    margin-bottom: 0;
}

.page-content > section::after {
    content: "";
    display: block;
    clear: both;
}

.page-content h1,
.page-content h2,
.page-content h3 {
    margin-top: 0;
    color: var(--pages-text-strong);
    letter-spacing: -0.025em;
}

.page-content h1 {
    margin-bottom: 14px;
    font-size: clamp(32px, 3vw, 48px);
    line-height: 1.05;
}

.page-content h2 {
    margin-bottom: 12px;
    font-size: clamp(24px, 2vw, 34px);
    line-height: 1.16;
}

.page-content h3 {
    margin-bottom: 10px;
    font-size: clamp(18px, 1.45vw, 25px);
    line-height: 1.28;
}

.page-content p,
.page-content li,
.page-content td,
.page-content th {
    color: var(--pages-text);
    font-size: clamp(15px, 0.96vw, 17px);
    line-height: 1.7;
}

.page-content p {
    margin: 0 0 14px;
}

.page-content p:last-child,
.page-content li p:last-child,
.page-content td p:last-child,
.page-content th p:last-child {
    margin-bottom: 0;
}

.page-content strong {
    color: var(--pages-text-strong);
}

.page-content a {
    color: var(--pages-accent);
    text-decoration: underline;
    text-decoration-color: rgba(249, 214, 116, 0.38);
    text-underline-offset: 0.22em;
}

.page-content a:hover,
.page-content a:focus-visible {
    color: var(--pages-text-strong);
    text-decoration-color: var(--pages-accent);
}

.page-hero,
.page-hero-compact {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(18px, 2.5vw, 28px);
    align-items: stretch;
}

.page-hero.page-hero-full,
.page-hero-compact.page-hero-full {
    grid-template-columns: 1fr;
}

.page-hero-copy,
.article-toc,
.spoiler,
.article-card {
    border: 1px solid var(--pages-border);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(249, 214, 116, 0.08), rgba(249, 214, 116, 0.02)), var(--pages-surface);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.page-hero-copy {
    padding: clamp(20px, 3vw, 30px);
}

.article-toc {
    margin: 0 0 16px;
    padding: 14px 16px;
    background: rgba(18, 14, 23, 0.9);
}

.article-toc summary {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    list-style: none;
    cursor: pointer;
    color: var(--pages-text-strong);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.article-toc summary::after {
    content: "+";
    color: var(--pages-accent);
    font-size: 1.2rem;
    line-height: 1;
}

.article-toc[open] summary::after {
    content: "−";
}

.article-toc nav {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--pages-border-soft);
}

.article-toc nav a {
    display: block;
    margin: 0 0 8px;
}

.article-toc nav a:last-child {
    margin-bottom: 0;
}

.page-content ul,
.page-content ol {
    margin: 0 0 18px;
    padding-left: 1.4rem;
}

.page-content ul {
    list-style: none;
    padding-left: 0;
}

.page-content ul li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 8px;
}

.page-content ul li::before {
    content: "";
    position: absolute;
    top: 0.8em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pages-accent), rgba(249, 214, 116, 0.28));
    transform: translateY(-50%);
}

.page-content ol li {
    margin-bottom: 8px;
}

figure.article-table-wrap {
    display: block;
    width: 100%;
    margin: 18px 0 22px;
    overflow-x: auto;
    border: 1px solid var(--pages-border);
    border-radius: 20px;
    background: var(--pages-surface-strong);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
    -webkit-overflow-scrolling: touch;
}

figure.article-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

figure.article-table-wrap th,
figure.article-table-wrap td {
    text-align: left;
    vertical-align: top;
    padding: 12px 14px;
    border-bottom: 1px solid var(--pages-border-soft);
}

figure.article-table-wrap th {
    color: var(--pages-text-strong);
    font-weight: 700;
    background: rgba(249, 214, 116, 0.12);
    white-space: nowrap;
}

figure.article-table-wrap tbody tr:last-child td {
    border-bottom: none;
}

figure.article-table-wrap tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.article-media,
.article-media-split {
    margin: 18px 0 22px;
}

.article-media-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.article-media {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    text-align: center;
    clear: both;
}

.article-media img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
    margin: 0 auto;
}

.article-media.aside {
    float: right;
    width: min(35%, 330px);
    min-width: 220px;
    margin: 0.3rem 0 1rem 1rem;
    text-align: center;
    clear: none;
}

.article-media.aside img {
    margin: 0 auto;
}

.bonus-gallery .article-media {
    margin: 0;
    clear: none;
}

.article-side-layout {
    display: grid;
    grid-template-columns: minmax(0, 3.12fr) minmax(260px, 0.88fr);
    gap: clamp(18px, 2.4vw, 28px);
    align-items: start;
}

.article-side-copy > *:last-child {
    margin-bottom: 0;
}

.article-media-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.75rem auto 0;
    min-height: 2.55rem;
    padding: 0.55rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 0.72rem;
    background: var(--color-button-main);
    color: var(--color-button-text);
    box-shadow: 0 0.3rem 0 0 var(--color-button-main-shadow);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.page-content a.article-media-cta,
.page-content a.article-media-cta:hover,
.page-content a.article-media-cta:focus-visible {
    color: var(--color-button-text);
    text-decoration: none;
}

.article-media-cta:hover {
    transform: translateY(0.04rem);
    filter: brightness(1.04);
}

@keyframes ctaBreathing {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(249, 214, 116, 0);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 1rem rgba(249, 214, 116, 0.42);
    }
}

.faq-group {
    display: grid;
    gap: 10px;
}

.spoiler {
    overflow: hidden;
}

p.spoiler-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 14px 18px;
    color: var(--pages-text-strong);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

p.spoiler-toggle::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--pages-accent);
    font-size: 22px;
    line-height: 1;
    transition: transform 180ms ease;
}

.spoiler.active p.spoiler-toggle::after {
    content: "−";
}

p.spoiler-toggle:focus-visible {
    outline: 2px solid rgba(249, 214, 116, 0.74);
    outline-offset: -2px;
}

.spoiler-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    transition: max-height 220ms ease, padding 220ms ease;
}

.spoiler.active .spoiler-content {
    padding: 0 18px 16px;
}

.spoiler-content p {
    margin: 0;
}

@media (max-width: 900px) {
    .page-content {
        width: min(100%, calc(100% - 24px));
        padding-top: 20px;
    }

    .page-hero,
    .page-hero-compact,
    .article-media-split {
        grid-template-columns: 1fr;
    }

    .article-media.aside {
        float: none;
        width: auto;
        min-width: 0;
        margin: 1rem 0;
        clear: both;
    }

    .article-side-layout {
        grid-template-columns: 1fr;
    }
}

.article-media-cta.is-pulse {
    animation: ctaBreathing 2.6s ease-in-out infinite;
}
