:root {
    --bg: #f3efe6;
    --bg-soft: #faf7f1;
    --surface: #ffffff;
    --surface-alt: #f8f3ea;
    --text: #1d2a24;
    --text-soft: #4d5c56;
    --line: rgba(33, 45, 40, 0.16);
    --line-strong: rgba(33, 45, 40, 0.28);
    --brand: #e4572e;
    --brand-deep: #c64522;
    --focus: #0d8f5b;
    --safe: #0d8f5b;
    --warning: #b66d06;
    --neutral: #2c6b9b;
    --shadow: 0 14px 30px rgba(25, 33, 29, 0.09);
    --shadow-soft: 0 8px 22px rgba(25, 33, 29, 0.07);
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --s1: 8px;
    --s2: 12px;
    --s3: 16px;
    --s4: 20px;
    --s5: 28px;
    --s6: 36px;
    --max: 1160px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    min-width: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(900px 380px at -12% -18%, rgba(230, 87, 46, 0.16), transparent 70%),
        radial-gradient(840px 320px at 100% -12%, rgba(13, 143, 91, 0.14), transparent 68%),
        linear-gradient(180deg, #f8f4ec 0%, #f2eee6 36%, #efe9df 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

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

p,
h1,
h2,
h3,
li,
td,
th {
    overflow-wrap: anywhere;
    word-break: break-word;
}

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

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 242, 234, 0.88);
    backdrop-filter: blur(8px);
}

.header-inner {
    width: min(var(--max), calc(100% - 24px));
    margin: 0 auto;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
}

.logo {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.logo img {
    width: clamp(112px, 19vw, 138px);
}

.main-nav {
    display: none;
}

.main-nav a,
.mobile-menu a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.header-right {
    display: inline-flex;
    align-items: center;
}

.burger-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    border-radius: var(--r-sm);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.burger-btn span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: var(--text);
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.burger-btn:hover {
    border-color: var(--brand);
    background: #fffaf4;
}

.burger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(248, 244, 236, 0.98);
    transition: max-height 0.25s ease;
    z-index: 998;
}

.mobile-menu.open {
    max-height: 360px;
    overflow-y: auto;
}

.mobile-menu a {
    width: min(var(--max), calc(100% - 24px));
    margin: 0 auto;
    padding: 0 var(--s3);
    color: var(--text-soft);
    border-top: 1px solid rgba(33, 45, 40, 0.08);
    font-size: 0.95rem;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
    color: var(--text);
    background: rgba(230, 87, 46, 0.08);
}

.main {
    padding: 14px 0 158px;
}

.article {
    width: min(var(--max), calc(100% - 24px));
    margin: 0 auto;
    display: grid;
    gap: var(--s5);
    min-width: 0;
}

.hero {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: clip;
    background:
        linear-gradient(170deg, rgba(230, 87, 46, 0.12) 0%, rgba(230, 87, 46, 0) 36%),
        linear-gradient(180deg, #fffdfa 0%, #faf6ed 100%);
    box-shadow: var(--shadow);
}

.hero-container {
    padding: clamp(20px, 3.7vw, 34px) clamp(14px, 3.4vw, 30px) 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(230, 87, 46, 0.34);
    background: rgba(230, 87, 46, 0.12);
    color: #8f2f16;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: var(--s3);
}

.hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
}

.hero h1 {
    font-size: clamp(1.38rem, 4.6vw, 2.35rem);
    line-height: 1.14;
    letter-spacing: -0.02em;
}

.hero p {
    color: var(--text-soft);
    max-width: 68ch;
    margin-top: var(--s3);
    font-size: clamp(0.94rem, 1.8vw, 1.04rem);
}

.hero-banner {
    padding: var(--s4) clamp(14px, 3.4vw, 30px) 0;
}

.hero-banner a {
    display: block;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--line);
}

.cta-btn-wrap {
    padding: var(--s4) clamp(14px, 3.4vw, 30px) 0;
    display: flex;
}

.cta-btn {
    min-height: 44px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
    border: 1px solid transparent;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.cta-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

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

.info-section-wrap {
    margin-top: 2px;
}

.info-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s4);
}

.content-card {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, #fffdf9 0%, #faf5eb 100%);
    box-shadow: var(--shadow-soft);
    padding: clamp(14px, 3vw, 24px);
    min-width: 0;
}

.content-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: var(--s3);
    min-width: 0;
}

.content-card__head h2 {
    flex: 1 1 240px;
    min-width: 0;
}

.content-card h2 {
    font-size: clamp(1.05rem, 3.5vw, 1.42rem);
    line-height: 1.3;
}

.content-card h3 {
    margin-top: var(--s4);
    color: #9a3518;
    font-size: 1rem;
    line-height: 1.35;
}

.content-card p,
.content-card li {
    color: var(--text-soft);
    font-size: 0.97rem;
    line-height: 1.6;
}

.content-card p + p {
    margin-top: var(--s3);
}

.section-tag {
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
    padding: 4px 10px;
}

.section-tag--accent {
    background: rgba(230, 87, 46, 0.14);
    border-color: rgba(230, 87, 46, 0.3);
    color: #8f2f16;
}

.section-tag--safe {
    background: rgba(13, 143, 91, 0.14);
    border-color: rgba(13, 143, 91, 0.3);
    color: #0a6741;
}

.section-tag--warning {
    background: rgba(182, 109, 6, 0.14);
    border-color: rgba(182, 109, 6, 0.3);
    color: #7c4c04;
}

.section-tag--neutral {
    background: rgba(44, 107, 155, 0.13);
    border-color: rgba(44, 107, 155, 0.28);
    color: #1e4f74;
}

.games-grid {
    margin-top: var(--s4);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s3);
    min-width: 0;
}

.game-card {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--surface);
    min-height: 44px;
    box-shadow: 0 2px 10px rgba(25, 33, 29, 0.05);
}

.game-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.game-card__name {
    display: block;
    padding: 10px 12px 12px;
    color: var(--text-soft);
    font-weight: 650;
}

.table-wrapper {
    margin-top: var(--s4);
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    max-width: 100%;
}

.table-wrapper table {
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 0;
}

.table-wrapper--overview table {
    min-width: 360px;
}

.table-wrapper--top-games table {
    min-width: 430px;
}

.table-wrapper--payments table {
    min-width: 620px;
}

.table-wrapper caption {
    text-align: left;
    font-weight: 800;
    color: var(--text);
    padding-bottom: 10px;
}

.table-wrapper thead th {
    background: #f4ecde;
    color: var(--text);
    border-top: 1px solid var(--line);
}

.table-wrapper th,
.table-wrapper td {
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 11px 12px;
    text-align: left;
    vertical-align: top;
    font-size: 0.92rem;
}

.table-wrapper th:last-child,
.table-wrapper td:last-child {
    border-right: 1px solid var(--line);
}

.table-wrapper tr:first-child th:first-child {
    border-top-left-radius: 10px;
}

.table-wrapper tr:first-child th:last-child {
    border-top-right-radius: 10px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s3);
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: #fff;
    padding: 14px;
}

.faq-q {
    color: var(--text);
    font-weight: 750;
    line-height: 1.36;
}

.faq-a {
    margin-top: 7px;
    color: var(--text-soft);
}

.footer {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: linear-gradient(180deg, #fffefb 0%, #f7f1e4 100%);
}

.footer-inner {
    padding: clamp(16px, 3.2vw, 26px);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s4);
}

.footer-logo {
    color: var(--text);
    font-weight: 850;
    letter-spacing: 0.01em;
    font-size: 1.05rem;
}

.footer-legal {
    margin-top: var(--s2);
    color: var(--text-soft);
    max-width: 70ch;
}

.footer-col h4 {
    font-size: 0.82rem;
    color: var(--text-soft);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: var(--s2);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2);
}

.footer-nav a {
    min-height: 44px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--text-soft);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--text);
    border-color: var(--brand);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 12px clamp(16px, 3.2vw, 26px);
    color: var(--text-soft);
    font-size: 0.9rem;
}

.sticky-cta {
    position: fixed;
    left: 50%;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: min(760px, calc(100% - 12px));
    transform: translate(-50%, calc(100% + 14px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.24s ease, opacity 0.24s ease;
    z-index: 1001;
}

.sticky-cta.visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.sticky-cta__inner {
    border: 1px solid rgba(33, 45, 40, 0.22);
    border-radius: var(--r-md);
    background: rgba(255, 252, 246, 0.97);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: center;
}

.sticky-cta__name {
    font-weight: 820;
    color: var(--text);
}

.sticky-cta__bonus {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.sticky-cta__btn {
    min-height: 44px;
    width: 100%;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff;
    font-weight: 850;
    letter-spacing: 0.03em;
}

.scroll-to-top {
    position: fixed;
    right: 8px;
    bottom: calc(max(8px, env(safe-area-inset-bottom)) + 78px);
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(255, 252, 246, 0.97);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1002;
    cursor: pointer;
}

.scroll-to-top svg {
    fill: currentColor;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 639px) {
    .header-inner {
        width: calc(100% - 16px);
        min-height: 68px;
    }

    .mobile-menu.open {
        max-height: calc(100vh - 68px);
    }

    .mobile-menu a {
        width: calc(100% - 16px);
        padding: 0 12px;
    }

    .article {
        width: calc(100% - 16px);
        gap: var(--s4);
    }

    .main {
        padding-top: 10px;
        padding-bottom: 120px;
    }

    .hero-container,
    .hero-banner,
    .cta-btn-wrap {
        padding-left: 12px;
        padding-right: 12px;
    }

    .content-card {
        padding: 12px;
        border-radius: 14px;
    }

    .content-card__head {
        display: block;
    }

    .content-card__head .section-tag {
        margin-top: 6px;
        display: inline-flex;
    }

    .content-card p,
    .content-card li {
        font-size: 0.93rem;
        line-height: 1.55;
    }

    .section-tag {
        font-size: 0.66rem;
        padding: 4px 8px;
        max-width: 100%;
    }

    .games-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .games-grid .game-card {
        min-width: 0;
    }

    .games-grid .game-card img {
        aspect-ratio: 1 / 1;
    }

    .table-wrapper {
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
    }

    .table-wrapper table {
        min-width: 480px;
    }

    .table-wrapper th,
    .table-wrapper td {
        padding: 9px 10px;
        font-size: 0.88rem;
    }

    .table-wrapper--overview table {
        min-width: 320px;
    }

    .table-wrapper--top-games table {
        min-width: 400px;
    }

    .table-wrapper--payments table {
        min-width: 560px;
    }

    .footer-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .footer-nav a {
        width: 100%;
        justify-content: center;
        padding: 10px 8px;
    }

    .sticky-cta__bonus {
        display: none;
    }
}

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

    .footer-nav {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 560px) {
    .games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .main {
        padding-top: 16px;
    }

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

    .content-card--wide {
        grid-column: span 2;
    }

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

    .footer-inner {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    }

    .sticky-cta {
        width: min(860px, calc(100% - 16px));
    }

    .sticky-cta__inner {
        grid-template-columns: auto 1fr auto;
        gap: var(--s3);
        padding: 12px;
    }

    .sticky-cta__btn {
        width: auto;
    }

    .scroll-to-top {
        width: 46px;
        height: 46px;
        right: 12px;
        bottom: calc(max(8px, env(safe-area-inset-bottom)) + 86px);
    }
}

@media (min-width: 1024px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .main-nav a {
        min-height: 44px;
        padding: 0 13px;
        border-radius: 999px;
        border: 1px solid transparent;
        color: var(--text-soft);
        font-size: 0.86rem;
        font-weight: 700;
        transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

    .main-nav a:hover {
        color: var(--text);
        border-color: rgba(230, 87, 46, 0.35);
        background: rgba(230, 87, 46, 0.08);
    }

    .burger-btn,
    .mobile-menu {
        display: none;
    }

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

@media (min-width: 1280px) {
    .article {
        width: min(var(--max), calc(100% - 36px));
    }

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

    .content-card--wide {
        grid-column: span 2;
    }

    .games-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
