/* ===== MOSTBET CASINO CZ — Design System ===== */

:root {
    /* Основні фонові */
    --bg-primary: #0A0A0F;
    --bg-secondary: #12121A;
    --bg-card: #1A1A26;
    --bg-card-hover: #22222F;
    --bg-elevated: #252533;

    /* Акцентні кольори бренду */
    --accent-primary: #FFC107;
    --accent-primary-hover: #FFD54F;
    --accent-secondary: #FF6D00;
    --accent-gradient: linear-gradient(135deg, #FFC107 0%, #FF6D00 100%);

    /* Текстові */
    --text-primary: #EAEAF0;
    --text-secondary: #9999AA;
    --text-muted: #66667A;
    --text-on-accent: #0A0A0F;

    /* Бордери та розділювачі */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-active: rgba(255, 193, 7, 0.3);

    /* Статусні */
    --status-success: #4CAF50;
    --status-warning: #FF9800;
    --status-error: #F44336;

    /* Тіні */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(255, 193, 7, 0.15);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    background: var(--bg-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section */
.section {
    padding: 48px 0;
}

.section-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: 44px;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 0 16px;
    letter-spacing: 0.02em;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 22px;
    transition: all 0.3s ease;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-active);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    min-width: 48px;
    padding: 14px 36px;
    background: var(--accent-gradient);
    color: var(--text-on-accent);
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn-primary:hover {
    box-shadow: 0 0 24px rgba(255, 193, 7, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    min-width: 48px;
    padding: 14px 36px;
    background: transparent;
    color: var(--accent-primary);
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 193, 7, 0.08);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.15);
}

/* CTA — легкий рух (привертає увагу до партнерського переходу) */
@keyframes cta-float-primary {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 2px 12px rgba(255, 109, 0, 0.2);
    }
    50% {
        transform: translateY(-5px);
        box-shadow: 0 12px 32px rgba(255, 193, 7, 0.35);
    }
}

@keyframes cta-float-secondary {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.12);
    }
    50% {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(255, 193, 7, 0.18);
    }
}

.btn-external.btn-primary {
    animation: cta-float-primary 2.4s ease-in-out infinite;
}

.btn-external.btn-secondary {
    animation: cta-float-secondary 2.4s ease-in-out infinite;
}

.btn-external.btn-primary:hover,
.btn-external.btn-primary:focus-visible {
    animation: none;
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(255, 193, 7, 0.4);
}

.btn-external.btn-secondary:hover,
.btn-external.btn-secondary:focus-visible {
    animation: none;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.15);
    background: rgba(255, 193, 7, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .btn-external.btn-primary,
    .btn-external.btn-secondary {
        animation: none;
    }
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.95);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

.logo {
    font-family: "Bebas Neue", sans-serif;
    font-size: 28px;
    color: var(--accent-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
}

/* Логотип на головній без посилання на головну */
.logo.logo--static {
    display: inline-block;
    cursor: default;
}

.btn-external {
    cursor: pointer;
}

.logo img {
    height: 160px;
    width: auto;
    display: block;
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--accent-primary);
}

.header-cta .btn-primary {
    padding: 10px 24px;
    font-size: 14px;
}

/* Burger (hidden by default) */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

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

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

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

/* ===== HERO ===== */
.hero {
    padding: 56px 0 48px;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 193, 7, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse 100% 100% at 50% 50%, var(--bg-secondary) 0%, var(--bg-primary) 70%);
}

.hero::before {
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 0 16px;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 20px;
    color: var(--text-secondary);
    margin: 0 0 12px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badge {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 32px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* ===== TABLES ===== */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background: var(--bg-elevated);
}

th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-primary);
    white-space: nowrap;
}

td {
    padding: 12px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

tbody tr:hover {
    background: var(--bg-card-hover);
}

/* ===== PROS & CONS ===== */
.pros-cons {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.pros-cons > div {
    flex: 1;
    min-width: 280px;
}

.pros-list, .cons-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pros-list li, .cons-list li {
    padding: 10px 0 10px 32px;
    position: relative;
}

.pros-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--status-success);
    font-weight: 700;
}

.cons-list li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: var(--status-error);
    font-weight: 700;
}

/* ===== WARNING CARD ===== */
.warning-card {
    background: rgba(255, 152, 0, 0.08);
    border: 1px solid rgba(255, 152, 0, 0.4);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.warning-card-icon {
    font-size: 24px;
    flex-shrink: 0;
}

/* ===== BONUS HIGHLIGHT CARD ===== */
.bonus-highlight {
    background: var(--accent-gradient);
    color: var(--text-on-accent);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
}

.bonus-highlight h3 {
    color: var(--text-on-accent);
    margin: 0 0 8px;
    font-size: 24px;
}

.bonus-highlight p {
    margin: 0;
    opacity: 0.95;
    font-size: 15px;
}

/* ===== INFO BADGES / PARAMS ===== */
.info-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.info-badge {
    display: inline-block;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== GAMES GRID ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.game-card {
    text-align: center;
}

.game-card .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-card-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.game-card h3 {
    font-family: "Inter", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
}

/* ===== BONUS CARDS GRID ===== */
.bonus-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.bonus-card h3 {
    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.bonus-card ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.bonus-card li {
    margin-bottom: 8px;
}

/* ===== STEPS (Registration) ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.step-card {
    text-align: center;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: var(--text-on-accent);
    font-family: "Bebas Neue", sans-serif;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-card h3 {
    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.faq-item {
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: var(--border-active);
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    text-align: left;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-card);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 48px;
}

.faq-question::after {
    content: "▼";
    font-size: 12px;
    color: var(--accent-primary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

.faq-answer-inner {
    padding: 16px 24px 18px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-subtle);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    padding: 32px 0 20px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
    justify-items: center;
    text-align: center;
}

.footer-grid > div:first-child {
    text-align: center;
}

.footer .logo {
    display: inline-block;
}

.footer-desc {
    max-width: 280px;
    font-size: 13px;
    color: var(--text-muted);
    margin: 10px auto 0;
    line-height: 1.55;
}

.footer h4 {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.footer ul li {
    margin-bottom: 6px;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.footer-18 {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.footer-responsible {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== MOBILE CTA ===== */
.mobile-cta {
    display: none;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-subtle);
    padding: 20px 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    flex: 1;
    min-width: 260px;
}

.cookie-banner a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* ===== AGE MODAL ===== */
.age-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.age-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 48px;
    max-width: 440px;
    text-align: center;
}

.age-modal-logo {
    font-family: "Bebas Neue", sans-serif;
    font-size: 32px;
    color: var(--accent-primary);
    margin-bottom: 24px;
    letter-spacing: 0.1em;
}

.age-modal h2 {
    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px;
}

.age-modal p {
    color: var(--text-secondary);
    margin: 0 0 28px;
    font-size: 15px;
}

.age-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.age-modal-buttons .btn-primary,
.age-modal-buttons .btn-secondary {
    width: 100%;
}

/* ===== LEGAL CONTENT ===== */
.legal-content {
    max-width: 800px;
    margin: 88px auto 56px;
    padding: 0 24px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-content h1 {
    font-family: "Bebas Neue", sans-serif;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 44px;
}

.legal-content h2 {
    font-family: "Inter", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-content p {
    margin-bottom: 16px;
}

.legal-content ul {
    margin: 0 0 16px 24px;
    list-style: disc;
}

.legal-content a,
.legal-content .link-external {
    color: var(--accent-primary);
    text-decoration: underline;
}

.link-external {
    cursor: pointer;
    color: var(--accent-primary);
    text-decoration: underline;
}

.link-external:hover {
    opacity: 0.9;
}

/* ===== ANIMATE ON SCROLL ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CONCLUSION SECTION (different bg) ===== */
.section-conclusion {
    background: var(--bg-secondary);
}

.section-conclusion .container {
    max-width: 800px;
}

/* ===== INTRO PARAGRAPH ===== */
.intro-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Obsah (TOC) — лише на мобільних, на десктопі приховано */
.page-toc {
    display: none;
}

.top-bar-spacer {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .container { max-width: 90%; }
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .bonus-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 36px; }
    h1 { font-size: 42px; }
    .section { padding: 40px 0; }
    .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .games-grid,
    .bonus-cards-grid { grid-template-columns: 1fr; }
    .pros-cons { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .nav-menu {
        display: none;
    }
    .burger-menu {
        display: flex;
    }
    .header-cta { display: none; }

    /* Верхня смуга (хедер + Obsah) — фіксована вгорі на мобільних */
    .top-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-subtle);
    }
    .top-bar .header {
        position: static;
    }
    .top-bar-spacer {
        display: block;
    }

    /* Obsah — на мобільних захований, показується по кліку на бургер */
    .page-toc {
        display: none;
        margin: 0;
        padding: 20px 16px 24px;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-subtle);
    }
    .top-bar.menu-open .page-toc {
        display: block;
    }
    .page-toc-title {
        font-family: "Bebas Neue", sans-serif;
        font-size: 22px;
        font-weight: 400;
        color: var(--text-primary);
        margin: 0 0 14px;
        letter-spacing: 0.02em;
    }
    .page-toc-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .page-toc-list li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid var(--border-subtle);
    }
    .page-toc-list li:last-child {
        border-bottom: none;
    }
    .page-toc-list a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
        font-weight: 500;
        color: var(--text-primary);
        text-decoration: none;
    }
    .page-toc-list a:hover {
        color: var(--accent-primary);
    }
    .page-toc-cta {
        margin-top: 20px;
    }
    .page-toc-cta .btn-primary {
        width: 100%;
    }
    .section-title { font-size: 26px; }
    h1 { font-size: 32px; }
    .hero { padding: 48px 0 40px; }
    .section { padding: 36px 0; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary { width: 100%; }
    body { padding-bottom: 72px; }
    .table-wrapper { overflow-x: auto; }
    .mobile-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        padding: 12px 16px;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border-subtle);
    }
    .mobile-cta .btn-primary { width: 100%; }
    .cookie-banner-content { flex-direction: column; align-items: stretch; }
    .age-modal { padding: 32px 24px; }
}

@media (max-width: 480px) {
    h1 { font-size: 28px; }
    .hero { padding: 40px 0 32px; }
    .section-title { font-size: 22px; }
}
