:root {
    /* Цветовая палитра - Deep Aurora Dark Mode */
    --bg-base: #07070a;        /* Глубокий темный (почти черный с синевой) */
    --bg-surface: rgba(22, 23, 33, 0.45);     /* Mica/Acrylic Base */
    --bg-surface-elevated: rgba(32, 34, 48, 0.65); /* Elevated Acrylic */
    
    /* Акценты - Aurora Gradients (Фиолетовый + Циан) */
    --primary: #bd00ff;        
    --primary-hover: #d24dff;
    --accent-cyan: #00f0ff;
    --primary-glow: rgba(189, 0, 255, 0.35);
    --cyan-glow: rgba(0, 240, 255, 0.25);
    
    --secondary: rgba(255, 255, 255, 0.05);  
    --secondary-hover: rgba(255, 255, 255, 0.1);
    
    /* Текст */
    --text-main: #f8f9fa;
    --text-muted: #a1a6b0;
    
    /* Статусы */
    --success: #00e676;
    --success-bg: rgba(0, 230, 118, 0.1);
    --danger: #ff1744;
    --danger-bg: rgba(255, 23, 68, 0.1);

    /* Границы (3D Glass Effect - Свет падает сверху слева) */
    --border-glass: 1px solid rgba(255, 255, 255, 0.04);
    --border-glass-highlight: 1px solid rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --glass-shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px var(--primary-glow);

    /* Геометрия (Скругленные, органичные формы) */
    --radius-xl: 36px; /* Крупные секции (очень мягкие) */
    --radius-lg: 24px; /* Карточки */
    --radius-md: 16px; /* Мелкие блоки */
    --radius-sm: 100px; /* Кнопки и инпуты (Pill-shape) */

    /* Анимации (Пружинистые и естественные) */
    --transition-fast: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-base);
    /* Эффект северного сияния на фоне */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(189, 0, 255, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 23, 68, 0.03) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Segoe UI Variable', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; border-radius: inherit; }

/* Ультрасовременный скроллбар */
::-webkit-scrollbar { width: 12px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    border: 3px solid var(--bg-base);
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, 0.3); }

/* ==========================================================================
   TYPOGRAPHY & BUTTONS
   ========================================================================== */
h1, h2, h3, h4 { 
    line-height: 1.2; 
    font-weight: 700; 
    margin-bottom: 1rem; 
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); text-shadow: 0 4px 30px rgba(0,0,0,0.6); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }

/* Кнопки Aurora Glass */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 1rem; cursor: pointer;
    transition: var(--transition-smooth); text-align: center;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    position: relative; overflow: hidden;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Защита от переноса текста на вторую строку */
}
.btn::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    opacity: 0.3; pointer-events: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #7a00ff 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 6px 20px var(--primary-glow), inset 0 1px 1px rgba(255,255,255,0.3);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px var(--primary-glow), inset 0 1px 2px rgba(255,255,255,0.5);
}
.btn-primary:active { transform: translateY(0) scale(0.98); box-shadow: none; }

.btn-secondary {
    background: var(--secondary);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2), inset 0 1px 1px rgba(255,255,255,0.05);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.btn-secondary:active { transform: translateY(0) scale(0.98); }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 24px 0; transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    padding: 14px 0;
    background: rgba(7, 7, 10, 0.75);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.header-container {
    max-width: 1400px; margin: 0 auto; padding: 0 32px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; /* Добавили отступ между логотипом, меню и кнопками */
}

/* Обертка навигации для центрирования на десктопе */
.main-nav {
    flex: 1; /* Занимает всё свободное место */
    display: flex;
    justify-content: center; /* Центрирует список внутри */
}

.nav-list { 
    display: flex; gap: 4px; background: rgba(255,255,255,0.03); 
    padding: 4px; border-radius: var(--radius-sm); 
    border: 1px solid rgba(255,255,255,0.05); 
}
.nav-item { position: relative; }

/* Базовые ссылки (без подменю) */
.nav-link {
    display: inline-block;
    padding: 8px 16px; /* Уменьшили паддинги для экономии места */
    border-radius: var(--radius-sm);
    font-size: 0.95rem; font-weight: 600; color: var(--text-muted);
    white-space: nowrap; /* Текст названия провайдера больше не будет ломаться на 2 строки */
}
.nav-link:hover, .nav-item.active > .nav-link {
    background: rgba(255,255,255,0.08); color: var(--text-main);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Обертка для ссылок с выпадающим списком */
.nav-link-wrap {
    display: flex; align-items: center; border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}
.nav-link-wrap:hover, .nav-item.active > .nav-link-wrap {
    background: rgba(255,255,255,0.08);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Переопределяем стили ссылки внутри обертки */
.nav-link-wrap > .nav-link {
    padding-right: 8px; /* Уменьшаем отступ, так как рядом кнопка */
    background: transparent !important; box-shadow: none !important;
}

.dropdown-toggle-btn {
    background: none; border: none; color: var(--text-muted);
    padding: 8px 12px 8px 4px; cursor: pointer; 
    display: flex; align-items: center;
    transition: var(--transition-fast);
}

/* Ховер эффекты внутри обертки */
.nav-link-wrap:hover .nav-link, .nav-item.active .nav-link,
.nav-link-wrap:hover .dropdown-toggle-btn, .nav-item.active .dropdown-toggle-btn {
    color: var(--text-main);
}

/* Flex-структура для кнопок в правой части шапки */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px; /* Аккуратное расстояние между кнопками и бургером */
}

.nav-mobile-actions { display: none; }

/* Dropdown - Glass Effect */
.dropdown-menu {
    position: absolute; top: calc(100% + 16px); left: 0;
    background: var(--bg-surface-elevated);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    min-width: 200px; border-radius: var(--radius-lg); padding: 12px;
    opacity: 0; visibility: hidden; transform: translateY(15px) scale(0.95);
    transition: var(--transition-fast); transform-origin: top center;
    box-shadow: var(--glass-shadow);
    border: var(--border-glass); border-top: 1px solid rgba(255,255,255,0.15);
}

/* Фикс "моста", чтобы при переходе мышки с меню на подменю оно не закрывалось */
.dropdown-menu::before {
    content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.dropdown-menu a {
    display: block; padding: 12px 20px; border-radius: var(--radius-md);
    color: var(--text-main); font-size: 0.95rem; transition: all 0.2s ease;
    font-weight: 500;
}
.dropdown-menu a:hover { 
    background: rgba(255,255,255,0.06); 
    padding-left: 26px; 
    color: var(--accent-cyan);
}

/* Hamburger */
.menu-toggle {
    display: none; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer; width: 48px; height: 48px; position: relative; z-index: 1001;
    border-radius: 50%; backdrop-filter: blur(12px);
}
.menu-toggle span {
    display: block; width: 22px; height: 2px; background: var(--text-main);
    position: absolute; left: 12px; transition: var(--transition-fast); border-radius: 2px;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle span:nth-child(3) { top: 30px; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   MAIN BLOCKS (ORGANIC MICA & ACRYLIC SURFACES)
   ========================================================================== */
.main-content { padding-top: 100px; min-height: 80vh; }

/* Hero Section */
.hero {
    margin: 40px auto; padding: 100px 5%; width: 92%; max-width: 1200px;
    border-radius: var(--radius-xl); text-align: center;
    background: var(--bg-surface);
    backdrop-filter: blur(50px) saturate(160%);
    -webkit-backdrop-filter: blur(50px) saturate(160%);
    border: var(--border-glass);
    border-top: 1px solid rgba(255,255,255,0.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), var(--glass-shadow);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; left: 30%; transform: translateX(-50%);
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    filter: blur(90px); z-index: 0; pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: -30%; right: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 60%);
    filter: blur(90px); z-index: 0; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }

/* SEO Text Block */
.seo-block {
    background: var(--bg-surface);
    backdrop-filter: blur(32px) saturate(140%);
    border: var(--border-glass);
    border-top: var(--border-glass-highlight);
    border-radius: var(--radius-xl);
    padding: 56px 5%; margin: 64px auto; width: 92%; max-width: 1200px;
    box-shadow: var(--glass-shadow);
}
.seo-block h2 { 
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Comparison Tables */
.table-wrapper {
    overflow-x: auto; margin: 32px 0;
    border-radius: var(--radius-lg); background: var(--bg-surface-elevated);
    border: var(--border-glass); border-top: var(--border-glass-highlight);
    backdrop-filter: blur(24px);
}
.comparison-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.comparison-table th, .comparison-table td {
    padding: 20px 24px; text-align: left; border-bottom: var(--border-glass);
}
.comparison-table th { background: rgba(0,0,0,0.4); color: var(--text-main); font-weight: 700; letter-spacing: 0.5px;}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(255,255,255,0.04); }

/* Pros & Cons (Плюсы и минусы) */
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 48px 0; }
.pc-card {
    background: var(--bg-surface); backdrop-filter: blur(30px);
    border: var(--border-glass); border-top: var(--border-glass-highlight);
    border-radius: var(--radius-xl); padding: 40px;
    box-shadow: var(--glass-shadow); transition: var(--transition-smooth);
}
.pc-card:hover { transform: translateY(-6px); box-shadow: var(--glass-shadow-hover); }
.pc-header {
    display: flex; align-items: center; gap: 16px; margin-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 20px;
}
.pc-icon {
    width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-weight: 900; font-size: 20px;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.3);
}
.pc-list li { position: relative; padding-left: 32px; margin-bottom: 16px; color: var(--text-muted); font-size: 1.05rem;}

/* ==========================================================================
   CARDS GRID (GAMES & PROVIDERS) - NEON HIGHLIGHT EFFECT
   ========================================================================== */
.cards-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; margin-top: 40px;
}
.game-card {
    background: var(--bg-surface);
    backdrop-filter: blur(24px) saturate(130%);
    border: var(--border-glass);
    border-top: var(--border-glass-highlight);
    border-left: var(--border-glass-highlight);
    border-radius: var(--radius-lg); 
    overflow: hidden; display: flex; flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
    text-decoration: none; color: inherit;
    position: relative;
}
.game-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--radius-lg); padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: var(--transition-smooth); z-index: 2; pointer-events: none;
}
.game-card:hover {
    transform: translateY(-10px) scale(1.03);
    background: var(--bg-surface-elevated);
    box-shadow: var(--glass-shadow-hover);
}
.game-card:hover::before { opacity: 1; }

.game-card img, .game-card svg {
    width: 100%; aspect-ratio: 16/10; object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.game-card:hover img, .game-card:hover svg { transform: scale(1.08); }
.game-card-body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; z-index: 1; background: var(--bg-surface); }
.game-card-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.game-card-provider { 
    color: var(--primary); font-size: 0.8rem; font-weight: 800; 
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
    text-shadow: 0 0 10px var(--primary-glow);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: rgba(4, 4, 6, 0.9); 
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 80px 5% 40px; margin-top: 100px; 
    backdrop-filter: blur(20px);
}
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 64px; margin-bottom: 64px; }
.footer-desc { color: var(--text-muted); margin-top: 24px; max-width: 360px; font-size: 1rem; line-height: 1.8;}
.footer-links h4 { color: var(--text-main); margin-bottom: 24px; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.5px;}
.footer-links ul li { margin-bottom: 14px; }
.footer-links a { color: var(--text-muted); transition: var(--transition-fast); font-weight: 500;}
.footer-links a:hover { color: var(--accent-cyan); padding-left: 6px; text-shadow: 0 0 10px var(--cyan-glow);}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06); padding-top: 40px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
}
.responsible-gambling { display: flex; align-items: center; gap: 20px; max-width: 600px; }
.age-limit {
    background: var(--danger-bg); border: 2px solid var(--danger); color: var(--danger); 
    width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 900; flex-shrink: 0; font-size: 1rem;
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.3);
}

/* ==========================================================================
   MEDIA QUERIES (Mobile Adaptive)
   ========================================================================== */
@media (max-width: 992px) {
    .header-container {
        padding: 0 20px; /* Уменьшаем отступы по краям для мобилок */
        gap: 12px;
    }
    
    .header-actions {
        gap: 12px; /* Более плотное расположение кнопки входа и бургера */
    }
    .header-actions .btn.hidden-mobile { display: none; }
    .header-actions .btn-primary { 
        padding: 10px 20px; /* Уменьшаем кнопку регистрации в мобильной шапке */
        font-size: 0.9rem;
    }
    .menu-toggle { display: block; flex-shrink: 0; } /* Бургер не сжимается */
    
    .main-nav {
        display: flex;
        justify-content: flex-start; /* Сбрасываем десктопное центрирование для мобилки */
        position: fixed; top: 0; right: -100%; width: 100%; max-width: 400px; height: 100vh;
        background: rgba(10, 10, 14, 0.95); 
        backdrop-filter: blur(50px) saturate(180%); -webkit-backdrop-filter: blur(50px) saturate(180%);
        padding: 120px 32px 40px; flex-direction: column; transition: var(--transition-smooth);
        border-left: 1px solid rgba(255,255,255,0.08); box-shadow: -30px 0 80px rgba(0,0,0,0.8);
        z-index: 999;
    }
    .main-nav.active { right: 0; }
    
    .nav-list { flex-direction: column; gap: 8px; background: transparent; border: none; padding: 0;}
    
    /* Стили ссылок в мобильном меню */
    .nav-link { 
        display: block; padding: 16px 24px; font-size: 1.15rem; 
        background: rgba(255,255,255,0.03); margin-bottom: 4px; border-radius: var(--radius-sm);
    }
    
    /* Обертка с кнопкой-дропдауном для мобилки */
    .nav-link-wrap {
        display: flex; align-items: stretch; background: rgba(255,255,255,0.03); 
        margin-bottom: 4px; border-radius: var(--radius-sm);
    }
    .nav-link-wrap > .nav-link {
        margin-bottom: 0; background: transparent !important; 
        padding-right: 16px; display: flex; align-items: center; flex-grow: 1;
    }
    
    /* Кнопка открытия дропдауна */
    .dropdown-toggle-btn {
        padding: 16px 24px; border-left: 1px solid rgba(255,255,255,0.05);
    }
    .dropdown-toggle-btn svg { transition: transform 0.3s ease; }
    .has-dropdown.open .dropdown-toggle-btn svg { transform: rotate(180deg); }

    .nav-item.has-dropdown .dropdown-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; background: rgba(0,0,0,0.2); 
        display: none; padding: 12px 16px; margin-top: 8px;
    }
    .nav-item.has-dropdown.open .dropdown-menu { display: block; }
    
    .nav-mobile-actions { display: flex; flex-direction: column; gap: 16px; margin-top: auto; padding-top: 40px; }
    /* Кнопки внутри раскрытого мобильного меню на всю ширину */
    .nav-mobile-actions .btn { width: 100%; justify-content: center; } 
    
    .footer-top { grid-template-columns: 1fr; gap: 48px; }
    .pros-cons-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero { padding: 80px 5%; margin: 24px auto; }
    .seo-block { margin: 32px auto; padding: 40px 5%; }
}