/* Font */
@font-face {
    font-family: "Roboto Flex";
    src: url("../fonts/Inter-VariableFont_slnt,wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Variables */
:root {
    --color-page: #1f665d;
    --color-surface: #16564d;
    --color-surface-soft: #227469;
    --color-sidebar-top: #118b7b;
    --color-sidebar-bottom: #1fa490;
    --color-text: #ffffff;
    --color-muted: rgba(255, 255, 255, 0.84);
    --color-faint: rgba(255, 255, 255, 0.72);
    --color-accent: #f3922f;
    --color-accent-hover: #e68422;
    --color-highlight: #ffd45e;
    --color-line: rgba(255, 255, 255, 0.24);
    --color-shadow: rgba(8, 31, 28, 0.54);
    --color-signup: #ef8a31;
    --color-signup-hover: #e47c24;
    --color-signup-shadow: #b85b16;
    --color-signin: #0f8a7c;
    --color-signin-hover: #0a796d;
    --color-signin-shadow: #07584f;

    --space-xs: clamp(0.5rem, 0.44rem + 0.3vw, 0.72rem);
    --space-sm: clamp(0.75rem, 0.67rem + 0.45vw, 1.08rem);
    --space-md: clamp(1rem, 0.88rem + 0.65vw, 1.45rem);
    --space-lg: clamp(1.4rem, 1.16rem + 1.1vw, 2.2rem);
    --space-xl: clamp(2rem, 1.56rem + 1.9vw, 3.35rem);
    --space-2xl: clamp(2.8rem, 2.1rem + 2.6vw, 4.8rem);

    --radius-sm: clamp(0.5rem, 0.43rem + 0.35vw, 0.74rem);
    --radius-md: clamp(0.8rem, 0.7rem + 0.52vw, 1.2rem);
    --radius-lg: clamp(1.1rem, 0.92rem + 0.8vw, 1.7rem);

    --text-xs: clamp(0.76rem, 0.73rem + 0.14vw, 0.86rem);
    --text-sm: clamp(0.88rem, 0.83rem + 0.24vw, 1.04rem);
    --text-base: clamp(1rem, 0.95rem + 0.28vw, 1.2rem);
    --text-md: clamp(1.14rem, 1.05rem + 0.46vw, 1.48rem);
    --text-lg: clamp(1.35rem, 1.16rem + 0.78vw, 1.94rem);
    --text-xl: clamp(1.8rem, 1.42rem + 1.5vw, 2.9rem);

    --line-width: 1px;
    --control-height: clamp(2.35rem, 2.18rem + 0.7vw, 2.9rem);
    --logo-width: clamp(9.4rem, 8.5rem + 3.9vw, 13.8rem);
    --icon-size: clamp(0.88rem, 0.78rem + 0.4vw, 1.08rem);
    --container-max: 84rem;
    --container-pad: clamp(0.95rem, 2.6vw, 2.4rem);
    --sidebar-width: clamp(15.5rem, 23vw, 18.5rem);
    --sidebar-offset-top: clamp(1rem, 0.7rem + 1.1vw, 1.65rem);
}

/* Base */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Roboto Flex", "Segoe UI", sans-serif;
    font-size: var(--text-base);
    line-height: 1.35;
    color: var(--color-text);
    background: radial-gradient(circle at 18% -10%, #2e9b89 0%, var(--color-page) 36%, #14433d 100%);
}

body.cresus-sidebar-open {
    overflow: hidden;
}

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

img {
    display: block;
    max-inline-size: 100%;
    block-size: auto;
}

.frame {
    inline-size: min(calc(100% - (var(--container-pad) * 2)), var(--container-max));
    margin-inline: auto;
}

/* Header */
.top-header {
    position: relative;
    z-index: 30;
    background: linear-gradient(180deg, rgba(13, 67, 60, 0.98) 0%, rgba(19, 79, 70, 0.94) 100%);
    border-bottom: var(--line-width) solid var(--color-line);
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    padding-block: var(--space-md);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
}

.block-image {
    margin: 0;
}

.block-image > img {
    display: block;
}

.brand-mark .block-image {
    display: inline-flex;
    align-items: center;
}

.brand-mark img {
    inline-size: var(--logo-width);
}

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

.header-pill {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-block-size: var(--control-height);
    padding-inline: clamp(1.35rem, 1.12rem + 0.72vw, 1.95rem);
    border-radius: 0.4rem;
    font-size: var(--text-sm);
    font-weight: 800;
    letter-spacing: 0.015em;
    text-transform: uppercase;
    border: 0;
    line-height: 1;
    transition: background-color 0.22s ease, box-shadow 0.22s ease;
}

.header-pill--signup {
    color: #ffffff;
    background-color: var(--color-signup);
    box-shadow: 0 0.28rem 0 var(--color-signup-shadow);
}

.header-pill--signin {
    color: #ffffff;
    background-color: var(--color-signin);
    box-shadow: 0 0.28rem 0 var(--color-signin-shadow);
}

.header-pill--signup:hover {
    background-color: var(--color-signup-hover);
    box-shadow: 0 0.22rem 0 var(--color-signup-shadow);
}

.header-pill--signin:hover {
    background-color: var(--color-signin-hover);
    box-shadow: 0 0.22rem 0 var(--color-signin-shadow);
}

.header-pill:active {
    box-shadow: 0 0.15rem 0 rgba(0, 0, 0, 0.22);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    inline-size: var(--control-height);
    block-size: var(--control-height);
    padding: 0;
    border: var(--line-width) solid var(--color-line);
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--color-text);
    cursor: pointer;
}

.menu-toggle-icon {
    inline-size: 1.05rem;
    block-size: 1.05rem;
    fill: currentColor;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-toggle-icon-close {
    position: absolute;
    opacity: 0;
    transform: scale(0.8);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon-open {
    opacity: 0;
    transform: scale(0.8);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon-close {
    opacity: 1;
    transform: scale(1);
}

/* Sidebar + Main shell */
.page-main {
    padding-block: var(--space-lg) var(--space-2xl);
}

.shell-layout {
    display: grid;
    grid-template-columns: minmax(0, var(--sidebar-width)) minmax(0, 1fr);
    gap: var(--space-lg);
    align-items: start;
}

.side-panel {
    position: sticky;
    top: var(--sidebar-offset-top);
    border-radius: var(--radius-lg);
    border: var(--line-width) solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(180deg, var(--color-sidebar-top) 0%, var(--color-sidebar-bottom) 100%);
    box-shadow: 0 1.05rem 2.2rem -1.1rem var(--color-shadow);
    overflow: hidden;
    min-block-size: min(42rem, calc(100vh - (var(--space-lg) * 2)));
    z-index: 40;
}

.side-panel__top {
    padding: var(--space-lg) var(--space-md);
    border-bottom: var(--line-width) solid rgba(255, 255, 255, 0.35);
}

.side-panel__title {
    margin: 0;
    font-size: clamp(1.25rem, 1rem + 1vw, 1.95rem);
    line-height: 1.12;
    font-weight: 820;
    text-transform: uppercase;
    max-inline-size: 15ch;
    text-align: center;
}

.side-panel__cta {
    margin-block-start: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    min-block-size: var(--control-height);
    padding-inline: var(--space-lg);
    border-radius: var(--radius-sm);
    border: var(--line-width) solid rgba(255, 198, 86, 0.9);
    color: #ffad3f;
    font-size: var(--text-sm);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.side-panel__cta:hover {
    background-color: rgba(255, 168, 53, 0.14);
    color: #ffd077;
    transform: translateY(-0.08rem);
}

.side-panel__nav {
    display: flex;
    flex-direction: column;
}

.side-panel__nav--extra {
    border-top: var(--line-width) solid rgba(255, 255, 255, 0.28);
    background-color: rgba(8, 43, 37, 0.16);
}

.side-link {
    display: grid;
    grid-template-columns: 1.25rem 1fr;
    gap: var(--space-sm);
    align-items: center;
    padding: 0.86rem var(--space-md);
    font-size: var(--text-base);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    border-top: var(--line-width) solid rgba(255, 255, 255, 0.18);
    transition: background-color 0.2s ease, color 0.2s ease, padding-inline-start 0.2s ease;
}

.side-link:first-child {
    border-top: 0;
}

.side-panel__nav--extra .side-link {
    font-size: var(--text-sm);
}

.side-link svg {
    inline-size: 1.08rem;
    block-size: 1.08rem;
    fill: currentColor;
}

.side-link:hover,
.side-link:focus-visible {
    background-color: rgba(8, 42, 37, 0.24);
    color: #ffffff;
    padding-inline-start: calc(var(--space-md) + 0.12rem);
}

.content-stack {
    min-inline-size: 0;
}

.cresus-sidebar-overlay {
    display: none;
}

/* Hero section */
.promo-hero {
    margin-block-end: var(--space-2xl);
}

.promo-stage {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: var(--line-width) solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 1.25rem 2.5rem -1.7rem var(--color-shadow);
}

.hero-image {
    inline-size: 100%;
    min-block-size: clamp(18rem, 48vw, 34rem);
    object-fit: cover;
}

.promo-stage > .block-image {
    display: block;
}

.promo-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(14, 46, 43, 0.76) 0%, rgba(14, 46, 43, 0.46) 36%, rgba(14, 46, 43, 0.12) 58%, rgba(14, 46, 43, 0) 78%),
        linear-gradient(180deg, rgba(255, 197, 88, 0.12) 0%, rgba(0, 0, 0, 0.22) 100%);
}

.promo-content {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: clamp(1.2rem, 4vw, 2.7rem);
    transform: translateY(-50%);
    display: grid;
    gap: var(--space-xs);
    max-inline-size: clamp(16rem, 48vw, 30rem);
    text-shadow: 0 0.12rem 0.6rem rgba(0, 0, 0, 0.45);
}

.hero-kicker {
    margin: 0;
    font-size: clamp(1.9rem, 1.52rem + 1.5vw, 3rem);
    font-weight: 700;
    color: var(--color-text);
}

.hero-value {
    margin: 0;
    font-size: clamp(2.2rem, 1.72rem + 2vw, 3.6rem);
    font-weight: 850;
    line-height: 1;
    color: var(--color-highlight);
}

.hero-detail {
    margin: 0;
    font-size: clamp(1.05rem, 0.98rem + 0.36vw, 1.35rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.96);
}

.welcome-cta {
    justify-self: start;
    margin-block-start: var(--space-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-block-size: var(--control-height);
    padding-inline: var(--space-lg);
    border-radius: var(--radius-sm);
    background-color: var(--color-accent);
    border: var(--line-width) solid rgba(255, 232, 199, 0.3);
    color: var(--color-text);
    font-size: var(--text-md);
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 0.32rem 0 var(--color-signup-shadow), 0 0.7rem 1.6rem -0.9rem rgba(5, 20, 17, 0.72);
    animation: cta-breathe 2.8s ease-in-out infinite;
}

.welcome-cta:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-0.06rem);
    animation-play-state: paused;
}

@keyframes cta-breathe {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0.32rem 0 var(--color-signup-shadow), 0 0 0 rgba(255, 166, 62, 0);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0.32rem 0 var(--color-signup-shadow), 0 0 1.05rem rgba(255, 166, 62, 0.45);
    }
}

/* Slots section */
.slots-gallery {
    display: block;
}

.games-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-md);
    margin-block-end: var(--space-lg);
}

.games-lead {
    margin: 0;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text);
}

.games-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-muted);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: color 0.25s ease;
}

.games-link:hover {
    color: var(--color-text);
}

.slots-gallery__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--space-lg);
}

.slot-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: var(--line-width) solid rgba(255, 255, 255, 0.22);
    background-color: var(--color-surface-soft);
    box-shadow: 0 0.85rem 2rem -1.25rem rgba(0, 0, 0, 0.54);
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.slot-tile > figure {
    display: block;
    inline-size: 100%;
    margin: 0;
}

.slot-tile img {
    inline-size: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.slot-tile__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 19, 17, 0) 20%, rgba(5, 19, 17, 0.66) 74%, rgba(4, 15, 13, 0.96) 100%),
        radial-gradient(circle at 50% 16%, rgba(255, 202, 105, 0.34) 0%, rgba(255, 202, 105, 0) 62%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slot-tile__meta {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.slot-tile__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    min-block-size: var(--control-height);
    padding-inline: var(--space-md);
    border-radius: var(--radius-sm);
    border: var(--line-width) solid rgba(255, 255, 255, 0.32);
    background-color: rgba(7, 54, 48, 0.78);
    color: var(--color-text);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(0.45rem) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.slot-tile__cta svg {
    inline-size: var(--icon-size);
    block-size: var(--icon-size);
    fill: currentColor;
}

.slot-tile:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.72);
    outline-offset: 1px;
}

.slot-tile:hover,
.slot-tile:focus-visible,
.slot-tile.is-peek {
    transform: translateY(-0.28rem) rotate(-0.25deg) scale(1.02);
    border-color: rgba(255, 191, 101, 0.9);
    box-shadow: 0 1.1rem 2.2rem -0.8rem rgba(4, 21, 18, 0.78), 0 0 1.1rem rgba(255, 191, 101, 0.35);
}

.slot-tile:hover img,
.slot-tile:focus-visible img,
.slot-tile.is-peek img {
    transform: scale(1.06);
    filter: saturate(1.17) contrast(1.03);
}

.slot-tile:hover .slot-tile__veil,
.slot-tile:focus-visible .slot-tile__veil,
.slot-tile.is-peek .slot-tile__veil {
    opacity: 0.96;
}

.slot-tile:hover .slot-tile__cta,
.slot-tile:focus-visible .slot-tile__cta,
.slot-tile.is-peek .slot-tile__cta {
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    border-color: rgba(255, 236, 209, 0.55);
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Footer */
.site-foot {
    background-color: var(--color-surface);
    border-top: var(--line-width) solid var(--color-line);
    padding-block: var(--space-2xl);
}

.logo-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
}

.logo-cloud img {
    inline-size: auto;
    max-inline-size: 100%;
}

.logo-cloud .block-image,
.foot-note .block-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-cloud-top {
    padding-block-end: var(--space-xl);
    border-bottom: var(--line-width) solid var(--color-line);
}

.logo-cloud-top img {
    block-size: clamp(1.25rem, 1.14rem + 0.56vw, 1.7rem);
    filter: brightness(0) invert(1) grayscale(1);
    opacity: 0.84;
}

.logo-cloud-bottom {
    padding-block: var(--space-xl);
    border-bottom: var(--line-width) solid var(--color-line);
}

.logo-cloud-bottom img {
    block-size: clamp(1.2rem, 1.04rem + 0.6vw, 1.7rem);
}

.logo-cloud-bottom .footer-brand {
    block-size: clamp(3.1rem, 2.42rem + 2.7vw, 5.1rem);
    opacity: 0.96;
}

.foot-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    padding-block: var(--space-xl);
    border-bottom: var(--line-width) solid var(--color-line);
}

.foot-links a {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-muted);
    transition: color 0.25s ease;
}

.foot-links a:hover {
    color: var(--color-text);
}

.foot-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    padding-block-start: var(--space-xl);
}

.foot-note img {
    inline-size: clamp(2.6rem, 2.25rem + 1.5vw, 3.7rem);
    flex: 0 0 auto;
    opacity: 0.94;
}

.foot-note p {
    margin: 0;
    max-inline-size: 76ch;
    font-size: var(--text-sm);
    color: var(--color-faint);
}

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
    .welcome-cta {
        animation: none;
    }

    .slot-tile,
    .slot-tile img,
    .slot-tile__veil,
    .slot-tile__cta,
    .side-link,
    .side-panel__cta,
    .header-pill,
    .menu-toggle-icon {
        transition-duration: 0.01ms;
    }
}

/* Media layout rules */
@media (max-width: 1024px) {
    .shell-layout {
        grid-template-columns: 1fr;
    }

    .header-actions {
        display: none;
    }

    .menu-toggle {
        position: relative;
        display: inline-flex;
    }

    .side-panel {
        position: fixed;
        inset-block: 0;
        inset-inline-start: 0;
        inline-size: min(84vw, 20.5rem);
        min-block-size: auto;
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
        transform: translateX(-110%);
        transition: transform 0.28s ease;
        top: 0;
        z-index: 60;
        overflow-y: auto;
    }

    .side-panel.is-open {
        transform: translateX(0);
    }

    .cresus-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        border: 0;
        padding: 0;
        margin: 0;
        background: rgba(4, 21, 18, 0.56);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
        z-index: 55;
    }

    .cresus-sidebar-overlay.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .games-head {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .logo-cloud-bottom {
        justify-content: center;
    }

    .foot-note {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .slots-gallery__grid {
        gap: var(--space-md);
    }

    .promo-content {
        inset-inline-start: var(--space-md);
        max-inline-size: min(78vw, 18rem);
    }

    .foot-links {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 540px) {
    .hero-image {
        min-block-size: 15.5rem;
    }

    .hero-kicker {
        font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
    }

    .hero-value {
        font-size: clamp(1.95rem, 1.5rem + 1.5vw, 2.8rem);
    }

    .hero-detail {
        font-size: var(--text-sm);
    }

    .logo-cloud-top img:nth-child(n + 7) {
        display: none;
    }
}

/* merged from pages.css */
:root {
    --pages-max-width: min(100% - clamp(1rem, 0.4rem + 2.6vw, 2.5rem), 74rem);
    --pages-surface: rgba(14, 58, 51, 0.82);
    --pages-surface-strong: rgba(10, 42, 37, 0.94);
    --pages-surface-soft: rgba(245, 127, 49, 0.1);
    --pages-border: rgba(245, 127, 49, 0.28);
    --pages-border-soft: rgba(255, 255, 255, 0.14);
    --pages-text: rgba(255, 255, 255, 0.88);
    --pages-text-soft: rgba(255, 255, 255, 0.76);
    --pages-title: #ffffff;
    --pages-accent: #f57f31;
    --pages-accent-strong: #ffbb4d;
    --pages-shadow: 0 1.25rem 2.8rem rgba(3, 20, 17, 0.35);
}

body {
    background:
        radial-gradient(circle at 15% -6%, rgba(45, 140, 126, 0.36), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(245, 127, 49, 0.12), transparent 31%),
        linear-gradient(180deg, #154b41 0%, #103b34 54%, #0b2c27 100%);
}

.page-content {
    width: var(--pages-max-width);
    margin: 0 auto;
    padding: clamp(1.4rem, 2.5vw, 2.2rem) 0 clamp(3rem, 6vw, 5rem);
}

.page-content > section {
    margin-bottom: clamp(1.55rem, 2.8vw, 2.5rem);
}

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

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
    margin: 0 0 0.75rem;
    color: var(--pages-title);
    letter-spacing: -0.02em;
}

.page-content h1 {
    font-size: clamp(2rem, 1.6rem + 1.65vw, 3rem);
    line-height: 1.06;
}

.page-content h2 {
    font-size: clamp(1.45rem, 1.22rem + 0.95vw, 2.1rem);
    line-height: 1.18;
}

.page-content h3 {
    font-size: clamp(1.1rem, 1rem + 0.45vw, 1.45rem);
    line-height: 1.28;
}

.page-content h4 {
    font-size: clamp(1rem, 0.96rem + 0.25vw, 1.15rem);
    line-height: 1.32;
}

.page-content p,
.page-content li,
.page-content td,
.page-content th {
    color: var(--pages-text);
    font-size: clamp(0.98rem, 0.95rem + 0.2vw, 1.08rem);
    line-height: 1.72;
}

.page-content p {
    margin: 0 0 0.95rem;
}

.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-title);
}

.page-content.index-page strong {
    font-weight: 600;
}

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

.page-content a {
    color: var(--pages-accent-strong);
    text-decoration-color: rgba(255, 187, 77, 0.45);
    text-underline-offset: 0.18em;
}

.page-content a:hover,
.page-content a:focus-visible {
    color: #ffd08a;
    text-decoration-color: rgba(255, 187, 77, 0.88);
}

.page-hero {
    margin-bottom: clamp(1.7rem, 3vw, 2.45rem);
}

.page-hero-copy,
.article-toc,
.article-card,
.article-highlight,
.article-kpi,
.spoiler,
figure.article-table-wrap {
    border: 1px solid var(--pages-border);
    border-radius: 1.25rem;
    box-shadow: var(--pages-shadow);
}

.page-hero-copy {
    padding: clamp(1.25rem, 2.3vw, 1.85rem);
    background:
        linear-gradient(160deg, rgba(245, 127, 49, 0.16), rgba(245, 127, 49, 0.03) 46%),
        var(--pages-surface);
}

.page-description {
    margin: 0 0 1rem;
    color: var(--pages-text);
    font-size: clamp(1rem, 0.96rem + 0.28vw, 1.18rem);
}

.article-toc {
    margin: 1.1rem;
    overflow: hidden;
    border-color: var(--pages-border);
    background: var(--pages-surface-strong);
}

.article-toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0.92rem 1.05rem;
    color: var(--pages-title);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    cursor: pointer;
    list-style: none;
}

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

.article-toc summary::after {
    content: "▾";
    font-size: 1.2rem;
    color: var(--pages-accent-strong);
    transition: transform 180ms ease;
}

.article-toc[open] summary {
    border-bottom: 1px solid var(--pages-border-soft);
}

.article-toc[open] summary::after {
    transform: rotate(180deg);
}

.article-toc nav {
    padding: 0.78rem 1.05rem 1rem;
}

.article-toc ol {
    margin: 0;
    padding-left: 1.2rem;
}

.article-toc li {
    margin-bottom: 0.45rem;
}

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

.article-toc a {
    display: block;
    padding: 6px;
    line-height: 1.45;
}

.page-content ul,
.page-content ol {
    margin: 0 0 1.1rem;
}

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

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

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

.page-content ol {
    padding-left: 1.35rem;
}

.page-content ol li {
    margin-bottom: 0.58rem;
    padding-left: 0.12rem;
}

.article-card,
.article-highlight {
    margin: 1.1rem 0 1.35rem;
    padding: 1rem 1.08rem;
}

.article-card {
    background:
        linear-gradient(145deg, rgba(245, 127, 49, 0.08), rgba(255, 255, 255, 0.02)),
        var(--pages-surface);
}

.article-highlight {
    background:
        linear-gradient(140deg, rgba(255, 187, 77, 0.16), rgba(245, 127, 49, 0.08)),
        var(--pages-surface);
}

.article-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 0.72rem;
    margin: 1rem 0 1.2rem;
}

.article-kpi {
    padding: 0.9rem 0.85rem;
    background:
        linear-gradient(145deg, rgba(245, 127, 49, 0.12), rgba(245, 127, 49, 0.03)),
        var(--pages-surface-strong);
}

.article-kpi-title {
    margin: 0 0 0.38rem;
    color: var(--pages-accent-strong);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.article-kpi-text {
    margin: 0;
}

.article-media,
.article-media-split {
    margin: 1.2rem 0 1.45rem;
}

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

.article-media img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    border-radius: 0.95rem;
    margin: 0 auto;
    box-shadow: 0 1.1rem 2.6rem rgba(3, 20, 17, 0.28);
}

.page-content figure.article-media > img[width="320"] {
    max-inline-size: min(100%, 20rem);
}

.page-content figure.article-media > img[width="480"] {
    max-inline-size: min(100%, 30rem);
}

.page-content figure.article-media > img[width="768"] {
    max-inline-size: min(100%, 48rem);
}

.article-media figcaption {
    margin-top: 0.62rem;
    color: var(--pages-text-soft);
    font-size: 0.92rem;
}

.article-media-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.78rem auto 0;
    min-height: 2.55rem;
    padding: 0.55rem 1.15rem;
    border: 1px solid rgba(255, 187, 77, 0.48);
    border-radius: 0.72rem;
    background: linear-gradient(145deg, #f57f31, #ffbb4d);
    color: #132c25;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    animation: ctaBreathing 2.4s ease-in-out infinite;
    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: #132c25;
    text-decoration: none;
}

.article-media-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.45rem 1rem rgba(255, 187, 77, 0.36);
    filter: brightness(1.02);
}

@keyframes ctaBreathing {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 187, 77, 0);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 1rem rgba(255, 187, 77, 0.4);
    }
}

.inscription-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 1rem;
    align-items: start;
}

.inscription-media {
    margin: 0;
}

.inscription-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
    min-height: 2.65rem;
    border: 1px solid rgba(255, 187, 77, 0.48);
    border-radius: 0.75rem;
    background: linear-gradient(145deg, #f57f31, #ffbb4d);
    color: #132c25;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    animation: inscriptionPulse 2.2s ease-in-out infinite;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.inscription-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.45rem 1rem rgba(255, 187, 77, 0.36);
}

.page-content a.inscription-cta,
.page-content a.inscription-cta:hover,
.page-content a.inscription-cta:focus-visible {
    color: #132c25;
    text-decoration: none;
}

@keyframes inscriptionPulse {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(255, 187, 77, 0);
    }
    50% {
        box-shadow: 0 0 0.95rem rgba(255, 187, 77, 0.42);
    }
}

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

.article-side-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
    gap: 1rem;
    align-items: start;
    margin: 1.1rem 0 1.35rem;
}

.article-side-layout-spaced {
    margin-top: 2.2rem;
}

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

.article-side-copy {
    min-width: 0;
}

.article-side-sticky {
    margin: 0;
    align-self: start;
}

.article-side-layout .article-media img {
    max-width: min(100%, 420px);
    margin: 0 auto;
}

figure.article-table-wrap {
    display: block;
    width: 100%;
    margin: 1.15rem 0 1.4rem;
    overflow-x: auto;
    background: var(--pages-surface-strong);
    -webkit-overflow-scrolling: touch;
}

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

figure.article-table-wrap table.vip-table {
    min-width: 34rem;
}

.article-side-layout figure.article-table-wrap.vip-table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

.article-side-layout figure.article-table-wrap.vip-table-wrap table.vip-table {
    display: table;
    table-layout: auto;
    width: 100% !important;
    min-width: 38rem !important;
}

.article-side-layout figure.article-table-wrap.vip-table-wrap table.vip-table th,
.article-side-layout figure.article-table-wrap.vip-table-wrap table.vip-table td {
    white-space: normal !important;
}

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

figure.article-table-wrap th {
    color: var(--pages-title);
    font-weight: 800;
    white-space: normal;
    background: rgba(245, 127, 49, 0.16);
}

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

figure.article-table-wrap tbody tr:hover td {
    background: rgba(245, 127, 49, 0.06);
}

.faq-group {
    display: grid;
    gap: 0.72rem;
}

.spoiler {
    background: var(--pages-surface-strong);
    border-color: rgba(245, 127, 49, 0.22);
    overflow: hidden;
}

p.spoiler-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding: 0.95rem 1.05rem;
    color: var(--pages-title);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

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

.spoiler.active p.spoiler-toggle::after {
    transform: rotate(180deg);
}

p.spoiler-toggle:focus-visible {
    outline: 2px solid rgba(255, 187, 77, 0.9);
    outline-offset: -2px;
}

.spoiler-content {
    display: none;
    padding: 0 1.05rem 0.95rem;
    margin: 0;
    color: var(--pages-text);
    background: rgba(10, 42, 37, 0.98);
}

.spoiler.active .spoiler-content {
    display: block;
    padding-top: 0.82rem;
    border-top: 1px solid var(--pages-border-soft);
}

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

    .page-hero-copy,
    .article-toc,
    .article-card,
    .article-highlight,
    .article-kpi,
    .spoiler,
    figure.article-table-wrap {
        border-radius: 1rem;
    }

    .article-media-split {
        grid-template-columns: 1fr;
    }

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

    .vip-side-layout {
        display: flex;
        flex-direction: column;
    }

    .vip-side-layout .article-side-copy,
    .vip-side-layout .article-side-sticky {
        width: 100%;
    }

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

    figure.article-table-wrap table {
        min-width: 30rem;
    }

}


.article-media,
.article-side-sticky {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}


.page-content a.welcome-cta,
.page-content a.welcome-cta:hover,
.page-content a.welcome-cta:focus-visible {
    color: #ffffff !important;
    text-decoration: none;
}
