/* ==========================================================================
   1. СБРОС СТИЛЕЙ И ПЕРЕМЕННЫЕ (Цвета продукта MD88)
   ========================================================================== */
   :root {
    --bg-color: #0d111b; 
    --text-main: #e8f1f9; 
    --text-muted: #8da0b1; 
    
    --primary-accent: #00c2ff; 
    --primary-hover: #0098cc; 
    
    --nav-bg: #21293c; 
    --dark-card: #161a28; 
    --dark-border: #2d354d; 
    
    --vip-text: #fff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; } /* Плавная прокрутка к якорям */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.75;
    font-size: 16px;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.page-wrapper { max-width: 900px; padding: 40px 15px 80px; }

/* ==========================================================================
   2. ШАПКА И ДЕСКТОПНАЯ НАВИГАЦИЯ
   ========================================================================== */
.header { background-color: var(--nav-bg); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--dark-border); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.nav-list { display: flex; list-style: none; gap: 20px; }
.nav-list a { color: var(--text-muted); font-weight: 600;}
.nav-list a:hover { color: var(--text-main); }
.nav-list a.active { color: var(--primary-accent); font-weight: bold; }

.btn { padding: 10px 20px; border-radius: 5px; font-weight: bold; text-align: center; transition: 0.3s ease; display: inline-block; }
.btn-login { border: 1px solid var(--text-muted); color: var(--text-muted); }
.btn-login:hover { border-color: var(--text-main); color: var(--text-main); }
.btn-register { background: var(--primary-accent); color: #000; }
.btn-register:hover { background: var(--primary-hover); }

.menu-toggle { display: none; background: none; border: none; color: var(--text-main); font-size: 28px; cursor: pointer; }

/* ==========================================================================
   3. БОКОВОЕ МЕНЮ (MOBILE APP STYLE)
   ========================================================================== */
.mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 998; opacity: 0; visibility: hidden; transition: 0.3s ease; }
.mobile-overlay.is-active { opacity: 1; visibility: visible; }
.mobile-sidebar { position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; background: var(--nav-bg); z-index: 999; box-shadow: -10px 0 25px rgba(0,0,0,0.9); transition: right 0.3s ease; display: flex; flex-direction: column; border-left: 1px solid var(--dark-border); }
.mobile-sidebar.is-active { right: 0; }
.mobile-sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--dark-border); margin-bottom: 25px; background: rgba(0,0,0,0.2); }
.mobile-sidebar-header img { max-height: 25px; width: auto; }
.close-menu { background: rgba(255,255,255,0.05); border: 1px solid var(--dark-border); color: var(--text-muted); width: 34px; height: 34px; border-radius: 50%; font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.close-menu:hover { background: rgba(0, 194, 255, 0.1); color: var(--primary-accent); border-color: var(--primary-accent); }
.mobile-auth { display: flex; flex-direction: column; gap: 12px; padding: 0 20px 25px; border-bottom: 1px solid var(--dark-border); margin-bottom: 20px; }
.mobile-auth .btn { width: 100%; padding: 12px; font-size: 16px; }
.mobile-nav { padding: 0 20px; }
.mobile-nav ul { list-style: none; }
.mobile-nav ul li { margin-bottom: 12px; }
.mobile-nav ul li a { font-size: 15px; color: var(--text-main); font-weight: 600; display: block; padding: 12px 16px; border-radius: 8px; transition: 0.2s; background: rgba(255,255,255,0.02); border: 1px solid transparent; }
.mobile-nav ul li a:hover { background: rgba(0, 194, 255, 0.05); border-color: rgba(0, 194, 255, 0.2); color: var(--primary-accent); transform: translateX(4px); }
.mobile-nav ul li a.active { color: var(--primary-accent); background: rgba(0, 194, 255, 0.1); border-color: rgba(0, 194, 255, 0.3); }

/* ==========================================================================
   4. КАРУСЕЛЬ БАННЕРОВ
   ========================================================================== */
.carousel-wrapper { position: relative; width: 100%; overflow: hidden; border-radius: 8px; margin-bottom: 30px; margin-top: 10px; }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; }
.carousel-slide { min-width: 100%; display: block; }
.carousel-slide img { width: 100%; height: auto; display: block; border-radius: 8px; }
.carousel-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; background: rgba(255,255,255,0.4); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--primary-accent); transform: scale(1.2); }

/* ==========================================================================
   5. КОМПАКТНЫЕ ИГРЫ
   ========================================================================== */
.games-grid-compact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 40px; }
.game-card-mini { display: flex; flex-direction: column; align-items: center; background: var(--dark-card); padding: 10px; border-radius: 8px; border: 1px solid var(--dark-border); transition: 0.2s; position: relative; }
.game-card-mini img { width: 100%; border-radius: 6px; margin-bottom: 8px; aspect-ratio: 1/1; object-fit: cover; }
.game-card-mini span { font-size: 12px; font-weight: bold; color: var(--primary-accent); text-align: center; line-height: 1.2; }
.game-card-mini:hover { border-color: var(--primary-accent); box-shadow: 0 0 10px rgba(0, 194, 255, 0.2); }

/* ==========================================================================
   6. SEO КОНТЕНТ 
   ========================================================================== */
.hero-seo { text-align: center; padding: 40px 0 56px; border-bottom: 1px solid var(--dark-border); margin-bottom: 56px; }
.hero-tag { display: inline-block; font-size: 11px; letter-spacing: 1px; font-weight: 700; text-transform: uppercase; color: var(--primary-accent); border: 1px solid rgba(0, 194, 255, 0.3); background: rgba(0, 194, 255, 0.05); padding: 5px 15px; margin-bottom: 25px; border-radius: 20px; }
h1 { font-size: clamp(28px, 4.5vw, 46px); font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 20px; letter-spacing: -0.5px; }
h1 span { color: var(--primary-accent); }
.hero-lead { font-size: 17px; color: var(--text-muted); max-width: 680px; margin: 0 auto 36px; }
.hero-cta { display: inline-block; background: var(--primary-accent); color: #000; font-weight: 700; font-size: 15px; letter-spacing: 0.5px; padding: 14px 36px; text-transform: uppercase; border-radius: 4px; }
.hero-cta:hover { background: var(--primary-hover); }

.content-promo-btn { display: block; width: 100%; max-width: 400px; margin: 30px auto; background-color: var(--primary-accent); color: #000 !important; font-weight: 800; font-size: 18px; text-align: center; padding: 16px 20px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px; transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 4px 15px rgba(0, 194, 255, 0.15); }
.content-promo-btn:hover { background-color: var(--primary-hover); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 194, 255, 0.3); }

.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--dark-border); border: 1px solid var(--dark-border); margin-bottom: 64px; }
.stat { background: var(--dark-card); padding: 24px 20px; text-align: center; }
.stat-value { display: block; font-size: 26px; font-weight: 700; color: var(--primary-accent); }
.stat-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; display: block; }

.section { margin-bottom: 56px; }
h2 { scroll-margin-top: 80px; font-size: clamp(20px, 3vw, 28px); color: #fff; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--primary-accent); display: inline-block; }
h3 { font-size: 17px; color: #fff; font-weight: 600; margin: 24px 0 10px; }
p { margin-bottom: 16px; color: var(--text-main); }

.section ul, .section ol { margin-left: 20px; margin-bottom: 16px; color: var(--text-muted); }
.section li { margin-bottom: 10px; }
.section dl { margin-top: 20px; }
.section dt { font-weight: bold; color: #fff; margin-top: 20px; font-size: 16px; }
.section dd { margin-left: 0; color: var(--text-muted); font-size: 15px; margin-top: 8px; line-height: 1.6; padding-bottom: 15px; border-bottom: 1px dashed var(--dark-border); }

.games-grid-seo { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 24px; }
.game-card { background: var(--dark-card); border: 1px solid var(--dark-border); padding: 22px 20px; border-radius: 8px; transition: transform 0.2s;}
.game-card:hover { transform: translateY(-3px); border-color: var(--primary-accent); }
.game-card h3 { margin-top: 0; color: var(--primary-accent); }
.game-card p { font-size: 14px; color: var(--text-muted); margin: 0; }

.table-responsive { overflow-x: auto; }
.bonus-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; min-width: 500px; }
.bonus-table th { background: var(--primary-accent); color: #000; text-align: left; padding: 12px 16px; font-weight: 700; letter-spacing: 0.3px; }
.bonus-table td { padding: 12px 16px; border-bottom: 1px solid var(--dark-border); color: var(--text-main); }
.bonus-table tr:nth-child(even) td { background: var(--dark-card); }

.ambassador-block { background: var(--dark-card); border-left: 4px solid var(--primary-accent); padding: 28px 28px 24px; margin-top: 24px; }
.ambassador-block p { color: var(--text-muted);}

.payment-list-seo { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill-seo { background: rgba(0, 194, 255, 0.05); border: 1px solid var(--primary-accent); padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--primary-accent); border-radius: 20px;}

.vip-levels { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.vip-badge { padding: 6px 16px; font-size: 13px; font-weight: 700; text-transform: uppercase; border-radius: 4px; color: var(--vip-text);}
.vip-badge.bronze  { background: #cd7f32; }
.vip-badge.silver  { background: #c0c0c0; color: #000; }
.vip-badge.gold    { background: #ffd700; color: #000; }
.vip-badge.platinum{ background: #e5e4e2; color: #000; }
.vip-badge.diamond { background: var(--primary-accent); color: #000; }
.vip-badge.king    { background: #e900ff; color: #fff; }

.faq-item { border-bottom: 1px solid var(--dark-border); padding: 20px 0; }
.faq-item h3 { font-size: 16px; color: #fff; margin: 0 0 10px; }
.faq-item p  { margin: 0; font-size: 15px; color: var(--text-muted); }

/* ==========================================================================
   7. BREADCRUMBS
   ========================================================================== */
.breadcrumbs { padding: 10px 0 20px; font-size: 14px; }
.breadcrumbs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: '»'; color: var(--text-muted); font-size: 12px; }
.breadcrumbs a { color: var(--text-muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--primary-accent); }
.breadcrumbs span { color: var(--primary-accent); font-weight: 600; }

/* ==========================================================================
   8. ФУТЕР
   ========================================================================= */
.footer { background-color: #080a13; border-top: 1px solid var(--dark-border); padding: 60px 0; margin-top: 60px; color: var(--text-muted); }
.footer-inner-pro { display: flex; flex-direction: column; gap: 40px; }
.section-pro h4 { color: #fff; font-size: 16px; margin-bottom: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; text-align: center; }
.payment-list-pro, .license-list-pro { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pill-pro { background: rgba(141, 160, 177, 0.05); border: 1px solid rgba(141, 160, 177, 0.1); padding: 7px 15px; font-size: 13px; border-radius: 4px; color: var(--text-muted);}
.footer-links-pro { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.footer-nav-col { text-align: center; }
.footer-nav-col ul { list-style: none; }
.footer-nav-col ul li { margin-bottom: 10px; }
.footer-nav-col ul li a { font-size: 14px; }
.footer-nav-col ul li a:hover { color: var(--primary-accent); }
.footer-disclaimer { border-top: 1px solid var(--dark-border); padding-top: 30px; text-align: center; }
.responsibility-logos { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; }
.resp-badge { display: inline-block; font-weight: bold; border-radius: 4px; padding: 5px 10px;}
.resp-badge.badge-18 { color: #fff; border: 2px solid #fff; font-size: 18px; }
.resp-badge.badge-begamble { color: #fff; border: 2px solid #fff; font-size: 13px; }
.footer-disclaimer p { font-size: 13px; margin: 0 auto 10px auto; max-width: 700px; color: var(--text-muted);}
.footer-disclaimer p.copyright { font-size: 12px; margin-top: 20px; color: rgba(141, 160, 177, 0.4);}

/* ==========================================================================
   9. 404 ERROR PAGE
   ========================================================================== */
.error-section { text-align: center; padding: 60px 20px 80px; min-height: 50vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.error-code { font-size: clamp(80px, 15vw, 150px); font-weight: 900; color: var(--primary-accent); line-height: 1; margin-bottom: 10px; text-shadow: 0 0 20px rgba(0, 194, 255, 0.3); }
.error-title { font-size: clamp(20px, 4vw, 28px); color: #fff; border: none; padding: 0; margin-bottom: 15px; }
.error-desc { color: var(--text-muted); margin-bottom: 35px; max-width: 500px; font-size: 16px; }

/* ==========================================================================
   10. TABLE OF CONTENTS
   ========================================================================== */
.toc { background: var(--dark-card); border: 1px solid var(--dark-border); border-left: 4px solid var(--primary-accent); border-radius: 8px; padding: 25px; margin: 40px 0; }
.toc-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 12px; }
.toc-list li:last-child { margin-bottom: 0; }
.toc-list a { color: var(--text-muted); font-size: 15px; display: inline-block; transition: color 0.2s, transform 0.2s; }
.toc-list a:hover { color: var(--primary-accent); transform: translateX(5px); }

/* ==========================================================================
   11. BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top { position: fixed; bottom: -60px; right: 20px; width: 45px; height: 45px; background-color: var(--primary-accent); color: #000; border: none; border-radius: 50%; font-size: 24px; font-weight: bold; cursor: pointer; box-shadow: 0 4px 10px rgba(0, 194, 255, 0.3); transition: all 0.3s ease; z-index: 99; opacity: 0; visibility: hidden; display: flex; align-items: center; justify-content: center; }
.back-to-top.show { bottom: 20px; opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--primary-hover); transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0, 194, 255, 0.5); }

/* ==========================================================================
   12. МОБИЛЬНАЯ АДАПТАЦИЯ
   ========================================================================= */
@media (max-width: 768px) {
    .desktop-only { display: none; }
    .menu-toggle { display: block; }
    .games-grid-compact { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .games-grid-seo { grid-template-columns: 1fr; }
    h1 { font-size: 28px; }
    .footer { padding: 40px 0; }
    .footer-links-pro { grid-template-columns: 1fr; gap: 25px; }
    .back-to-top { right: 15px; }
}