:root {
    --primary: #0F4C81;
    --primary-light: #1A6FB5;
    --primary-dark: #0A3A63;
    --gold: #C9943E;
    --gold-light: #E8B960;
    --gold-dark: #A07830;
    --bg-main: #F4F6F9;
    --bg-alt: #EAF0F6;
    --white: #FFFFFF;
    --text-primary: #1C2833;
    --text-secondary: #566573;
    --text-light: #8899A6;
    --border: #D5DBDB;
    --border-light: #E8ECF1;
    --success: #27AE60;
    --warning: #E67E22;
    --danger: #E74C3C;
    --star: #F1C40F;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

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

ul, ol {
    list-style: none;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== AGE VERIFICATION OVERLAY ===== */

.age-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.age-overlay.hidden {
    display: none;
}

.age-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.age-box .age-icon {
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
}

.age-box h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.age-box p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.5;
}

.age-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.age-buttons .btn-age {
    padding: 12px 36px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-age.confirm {
    background: var(--primary);
    color: var(--white);
}

.btn-age.confirm:hover {
    background: var(--primary-dark);
}

.btn-age.deny {
    background: var(--border-light);
    color: var(--text-secondary);
}

.btn-age.deny:hover {
    background: var(--border);
}

/* ===== COOKIE BANNER ===== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border-light);
    padding: 18px 0;
    z-index: 9000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-inner p {
    font-size: 14px;
    color: var(--text-secondary);
    flex: 1;
    min-width: 280px;
}

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

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-buttons .btn-cookie {
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-cookie.accept {
    background: var(--primary);
    color: var(--white);
}

.btn-cookie.accept:hover {
    background: var(--primary-dark);
}

.btn-cookie.decline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-cookie.decline:hover {
    border-color: var(--text-secondary);
}

/* ===== HEADER ===== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    z-index: 5000;
    height: 72px;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
}

.logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo span {
    color: var(--gold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
    border-radius: 2px;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--danger);
    color: var(--danger);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== HERO SECTION ===== */

.hero {
    margin-top: 72px;
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.05) 0%, rgba(201, 148, 62, 0.08) 100%),
                url('../images/hero-bg.png') center/cover no-repeat;
    padding: 80px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(244, 246, 249, 0.3) 0%, rgba(244, 246, 249, 0.85) 100%);
}

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

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--gold);
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.hero-badge svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ===== SECTION STYLES ===== */

.section {
    padding: 70px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== CASINO LIST ===== */

.casino-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.casino-card {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    align-items: center;
    gap: 24px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 22px 28px;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.casino-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.casino-rank {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary);
    color: var(--white);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border-radius: 0 0 var(--radius-sm) 0;
}

.casino-logo-wrap {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    padding: 8px;
    overflow: hidden;
}

.casino-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.casino-info {
    min-width: 0;
}

.casino-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.casino-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.casino-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.casino-ratings {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
}

.casino-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.casino-rating-row .label {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
}

.rating-bar {
    width: 70px;
    height: 4px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--gold);
    transition: width 0.6s ease;
}

.casino-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

.casino-score .score {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.casino-score .stars {
    display: flex;
    gap: 2px;
    color: var(--star);
    font-size: 14px;
}

.casino-score .visit-btn {
    margin-top: 6px;
    padding: 8px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: background var(--transition);
    display: inline-block;
}

.casino-card:hover .visit-btn {
    background: var(--gold);
}

/* ===== GAME TYPES ===== */

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
}

.game-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.game-card .game-icon {
    font-size: 42px;
    margin-bottom: 16px;
    display: block;
}

.game-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.game-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== POPULAR FEATURES ===== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
}

.feature-card .feature-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== REGULATORS ===== */

.regulators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.regulator-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: all var(--transition);
}

.regulator-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.regulator-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.regulator-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.regulator-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.regulator-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.regulator-info a {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.regulator-info a:hover {
    color: var(--gold);
}

/* ===== FAQ ===== */

.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition);
}

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

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    gap: 16px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-question .faq-toggle {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-main);
    color: var(--primary);
    transition: all var(--transition);
    font-size: 18px;
}

.faq-item.active .faq-toggle {
    background: var(--primary);
    color: var(--white);
    transform: rotate(45deg);
}

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

.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== DISCLAIMER ===== */

.disclaimer-section {
    background: var(--bg-alt);
    padding: 50px 0;
}

.disclaimer-box {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    max-width: 860px;
    margin: 0 auto;
}

.disclaimer-box .disc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.disclaimer-box .disc-icon {
    font-size: 28px;
}

.disclaimer-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--danger);
}

.disclaimer-box p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.disclaimer-box p:last-child {
    margin-bottom: 0;
}

.disclaimer-box a {
    color: var(--primary);
    text-decoration: underline;
}

.gambling-warning {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-md);
    padding: 28px 32px;
    max-width: 860px;
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--white);
}

.gambling-warning .warn-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.gambling-warning p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

.gambling-warning strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
    opacity: 1;
}

.gambling-warning a {
    color: var(--gold-light);
    text-decoration: underline;
}

.responsible-links {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.responsible-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    transition: background var(--transition);
}

.responsible-links a:hover {
    background: rgba(255,255,255,0.25);
}

/* ===== FOOTER ===== */

.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 18px;
}

.footer h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--white);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.footer-bottom-links a:hover {
    color: var(--gold-light);
}

/* ===== CONTENT PAGES ===== */

.page-header {
    margin-top: 72px;
    background: var(--bg-alt);
    padding: 50px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

.page-content {
    padding: 60px 0;
}

.page-content .content-wrap {
    max-width: 780px;
    margin: 0 auto;
}

.page-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin: 36px 0 14px;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 10px;
}

.page-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
}

.page-content ul, .page-content ol {
    margin: 10px 0 18px 24px;
}

.page-content ul {
    list-style: disc;
}

.page-content ol {
    list-style: decimal;
}

.page-content li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 6px;
}

.page-content a {
    color: var(--primary);
    text-decoration: underline;
}

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

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
    .casino-card {
        grid-template-columns: 70px 1fr;
        gap: 16px;
    }

    .casino-ratings {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
    }

    .casino-score {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        min-width: 0;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        transition: transform var(--transition);
        z-index: 4999;
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .nav-menu a {
        padding: 14px 24px;
        display: block;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .burger {
        display: flex;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .casino-card {
        grid-template-columns: 1fr;
        padding: 18px 20px;
        padding-top: 36px;
    }

    .casino-logo-wrap {
        width: 100%;
        height: 50px;
    }

    .gambling-warning {
        flex-direction: column;
        text-align: center;
    }

    .responsible-links {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .page-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .hero-badges {
        flex-direction: column;
    }

    .age-box {
        padding: 32px 24px;
    }

    .age-buttons {
        flex-direction: column;
    }

    .age-buttons .btn-age {
        width: 100%;
    }

    .cookie-inner {
        flex-direction: column;
        text-align: center;
    }
}
