/* ==========================================================================
   1. СБРОС СТИЛЕЙ И ПЕРЕМЕННЫЕ (Цвета продукта L89 - Light Theme)
   ========================================================================== */
   :root {
    --bg-color: #f4f6f9; /* Светло-серый фон L89 */
    --text-main: #2d3748; /* Темно-серый основной текст */
    --text-muted: #64748b; /* Приглушенный текст для описаний */
    
    --primary-accent: #ffcc00; /* Ярко-желтый (золотой) цвет L89 */
    --primary-hover: #e6b800; /* Темно-желтый для ховера */
    
    --nav-bg: #007c45; /* Насыщенный фирменный зеленый цвет L89 */
    --dark-card: #ffffff; /* Белые карточки контента */
    --dark-border: #e2e8f0; /* Светлые границы блоков */
    
    --vip-text: #111111; /* Темный текст для бейджей */
}

*, *::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; /* Поддерживает Bengali по умолчанию */
    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: 2px solid var(--primary-accent); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.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: rgba(255, 255, 255, 0.85); font-weight: 600; text-transform: uppercase; font-size: 14px;}
.nav-list a:hover { color: #ffffff; }
.nav-list a.active { color: var(--primary-accent); font-weight: bold; }

.btn { padding: 10px 20px; border-radius: 4px; font-weight: bold; text-align: center; transition: 0.3s ease; display: inline-block; text-transform: uppercase; font-size: 13px; letter-spacing: 0.5px;}
.btn-login { border: 1px solid rgba(255,255,255,0.5); color: #ffffff; }
.btn-login:hover { border-color: #ffffff; background: rgba(255,255,255,0.1); }
.btn-register { background: var(--primary-accent); color: #111111; border: 1px solid var(--primary-accent); }
.btn-register:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.menu-toggle { display: none; background: none; border: none; color: #ffffff; 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.6); 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.3); transition: right 0.3s ease; display: flex; flex-direction: column; border-left: 2px solid var(--primary-accent); }
.mobile-sidebar.is-active { right: 0; }
.mobile-sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 25px; background: rgba(0,0,0,0.15); }
.mobile-sidebar-header img { max-height: 30px; width: auto; }
.close-menu { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #ffffff; width: 34px; height: 34px; border-radius: 4px; font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.close-menu:hover { background: var(--primary-accent); color: #111; border-color: var(--primary-accent); }
.mobile-auth { display: flex; flex-direction: column; gap: 12px; padding: 0 20px 25px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; }
.mobile-auth .btn { width: 100%; padding: 12px; font-size: 15px; }
.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: #ffffff; font-weight: 600; text-transform: uppercase; display: block; padding: 12px 16px; border-radius: 4px; transition: 0.2s; background: rgba(255,255,255,0.05); border: 1px solid transparent; }
.mobile-nav ul li a:hover { background: rgba(255, 204, 0, 0.1); border-color: var(--primary-accent); color: var(--primary-accent); transform: translateX(4px); }
.mobile-nav ul li a.active { color: #111; background: var(--primary-accent); border-color: var(--primary-accent); }

/* ==========================================================================
   4. КАРУСЕЛЬ БАННЕРОВ
   ========================================================================== */
.carousel-wrapper { position: relative; width: 100%; overflow: hidden; border-radius: 6px; margin-bottom: 30px; margin-top: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.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: 6px; }
.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.6); border-radius: 50%; cursor: pointer; transition: 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.3);}
.dot.active { background: var(--primary-accent); transform: scale(1.3); }

/* ==========================================================================
   5. КОМПАКТНЫЕ ИГРЫ
   ========================================================================== */
.games-grid-compact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 40px; }
.game-card-mini { display: flex; flex-direction: column; align-items: center; background: var(--dark-card); padding: 10px; border-radius: 6px; border: 1px solid var(--dark-border); transition: 0.2s; position: relative; box-shadow: 0 2px 5px rgba(0,0,0,0.02);}
.game-card-mini img { width: 100%; border-radius: 4px; margin-bottom: 8px; aspect-ratio: 1/1; object-fit: cover; }
.game-card-mini span { font-size: 13px; font-weight: bold; color: var(--text-main); text-align: center; line-height: 1.2; text-transform: uppercase; }
.game-card-mini:hover { border-color: var(--nav-bg); background: #f8fafc; box-shadow: 0 4px 10px rgba(0, 124, 69, 0.1);}
.game-card-mini:hover span { color: var(--nav-bg); }

/* ==========================================================================
   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: 12px; letter-spacing: 1px; font-weight: 700; text-transform: uppercase; color: #111; background: var(--primary-accent); padding: 5px 15px; margin-bottom: 25px; border-radius: 20px; box-shadow: 0 2px 8px rgba(255,204,0,0.3); }
h1 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; color: #1a202c; line-height: 1.2; margin-bottom: 20px; letter-spacing: -0.5px; }
h1 span { color: var(--nav-bg); }
.hero-lead { font-size: 16px; color: var(--text-muted); max-width: 680px; margin: 0 auto 36px; }
.hero-cta { display: inline-block; background: var(--nav-bg); color: #ffffff; font-weight: 700; font-size: 16px; letter-spacing: 0.5px; padding: 16px 40px; text-transform: uppercase; border-radius: 4px; box-shadow: 0 4px 15px rgba(0, 124, 69, 0.2); transition: 0.3s; }
.hero-cta:hover { background: #006337; transform: translateY(-2px); color: #fff;}

.content-promo-btn { display: block; width: 100%; max-width: 400px; margin: 30px auto; background-color: var(--primary-accent); color: #111111 !important; font-weight: 800; font-size: 18px; text-align: center; padding: 16px 20px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; transition: background-color 0.3s ease, transform 0.2s ease; box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3); }
.content-promo-btn:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 204, 0, 0.5); }

.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; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.stat { background: var(--dark-card); padding: 24px 20px; text-align: center; }
.stat-value { display: block; font-size: 28px; font-weight: 800; color: var(--nav-bg); }
.stat-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; display: block; font-weight: bold;}

.section { margin-bottom: 56px; }
h2 { scroll-margin-top: 80px; font-size: clamp(20px, 3vw, 26px); color: #1a202c; font-weight: 800; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 3px solid var(--primary-accent); display: inline-block; }
h3 { font-size: 18px; color: #1a202c; font-weight: 700; margin: 24px 0 10px; }
p { margin-bottom: 16px; color: var(--text-muted); }

.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: #1a202c; 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: 6px; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.02);}
.game-card:hover { transform: translateY(-3px); border-color: var(--nav-bg); box-shadow: 0 6px 15px rgba(0, 124, 69, 0.08);}
.game-card h3 { margin-top: 0; color: var(--nav-bg); font-size: 17px;}
.game-card p { font-size: 14px; color: var(--text-muted); margin: 0; }

.table-responsive { overflow-x: auto; margin-bottom: 20px;}
.bonus-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; min-width: 500px; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.bonus-table th { background: var(--nav-bg); color: #ffffff; text-align: left; padding: 14px 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;}
.bonus-table td { padding: 14px 16px; border-bottom: 1px solid var(--dark-border); color: var(--text-main); }
.bonus-table tr:last-child td { border-bottom: none; }
.bonus-table tr:hover td { background: #f8fafc; }

.ambassador-block { background: var(--dark-card); border-left: 4px solid var(--nav-bg); padding: 28px 28px 24px; margin-top: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); border-radius: 0 6px 6px 0; }
.ambassador-block p { color: var(--text-muted);}

.payment-list-seo { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill-seo { background: #ffffff; border: 1px solid var(--nav-bg); padding: 7px 16px; font-size: 13px; font-weight: 700; color: var(--nav-bg); border-radius: 4px; background-color: rgba(0, 124, 69, 0.05);}

.vip-levels { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.vip-badge { padding: 6px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; border-radius: 4px; color: var(--vip-text);}
.vip-badge.bronze  { background: #cd7f32; color: #fff;}
.vip-badge.silver  { background: #cbd5e1; color: #111; }
.vip-badge.gold    { background: #fbbf24; color: #111; }
.vip-badge.platinum{ background: #94a3b8; color: #fff; }
.vip-badge.diamond { background: var(--nav-bg); color: #fff; }
.vip-badge.king    { background: var(--primary-accent); color: #111; border: 1px solid #d97706;}

.faq-item { border-bottom: 1px solid var(--dark-border); padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 17px; color: #1a202c; 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: 13px; text-transform: uppercase;}
.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(--nav-bg); }
.breadcrumbs span { color: var(--nav-bg); font-weight: 700; }

/* ==========================================================================
   8. ФУТЕР
   ========================================================================= */
.footer { background-color: #003a20; /* Очень темно-зеленый для солидности */ border-top: 4px solid var(--primary-accent); padding: 60px 0; margin-top: 60px; color: #cbd5e1; }
.footer-inner-pro { display: flex; flex-direction: column; gap: 40px; }
.section-pro h4 { color: #ffffff; font-size: 15px; margin-bottom: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px;}
.payment-list-pro, .license-list-pro { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pill-pro { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 7px 15px; font-size: 12px; border-radius: 4px; color: #cbd5e1; text-transform: uppercase; font-weight: 600;}
.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; transition: color 0.2s;}
.footer-nav-col ul li a:hover { color: var(--primary-accent); }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,0.1); 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: #111; border: none; font-size: 16px; background: var(--primary-accent);}
.resp-badge.badge-begamble { color: #ffffff; border: 1px solid rgba(255,255,255,0.3); font-size: 13px; background: transparent;}
.footer-disclaimer p { font-size: 13px; margin: 0 auto 10px auto; max-width: 700px; color: #94a3b8; line-height: 1.6;}
.footer-disclaimer p.copyright { font-size: 12px; margin-top: 20px; color: #64748b;}

/* ==========================================================================
   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(--nav-bg); line-height: 1; margin-bottom: 10px; text-shadow: 4px 4px 0px rgba(255, 204, 0, 0.5); }
.error-title { font-size: clamp(20px, 4vw, 28px); color: var(--text-main); border: none; padding: 0; margin-bottom: 15px; text-transform: uppercase;}
.error-desc { color: var(--text-muted); margin-bottom: 35px; max-width: 500px; font-size: 16px; }

/* ==========================================================================
   10. TABLE OF CONTENTS
   ========================================================================== */
.toc { background: #ffffff; border: 1px solid var(--dark-border); border-left: 4px solid var(--nav-bg); border-radius: 6px; padding: 25px; margin: 40px 0; box-shadow: 0 4px 15px rgba(0,0,0,0.03);}
.toc-title { font-size: 18px; font-weight: 800; color: var(--nav-bg); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px; }
.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-main); font-size: 15px; font-weight: 500; display: inline-block; transition: color 0.2s, transform 0.2s; }
.toc-list a:hover { color: var(--nav-bg); 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: #111111; border: none; border-radius: 50%; font-size: 24px; font-weight: bold; cursor: pointer; box-shadow: 0 4px 10px rgba(255, 204, 0, 0.4); 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(255, 204, 0, 0.6); }

/* ==========================================================================
   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: 26px; }
    .footer { padding: 40px 0; }
    .footer-links-pro { grid-template-columns: 1fr; gap: 25px; }
    .back-to-top { right: 15px; }
}