:root {
    --bg-deep: #0d0415;
    --bg-card: #180824;
    --bg-surface-light: #250d36;
    --accent: #ffe600; 
    --accent-purple: #b026ff;
    --text-primary: #ffffff;
    --text-secondary: #8e8699;
    --border: rgba(255, 255, 255, 0.08);
    --glow: 0 0 20px rgba(255, 230, 0, 0.25);
    --nav-h: 72px;
}

/* Base Settings */
* { box-sizing: border-box; margin: 0; padding: 0; outline: none; -webkit-tap-highlight-color: transparent; }
body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: 'Kanit', sans-serif; text-transform: uppercase; font-style: italic; }

/* Header */
.header {
    height: var(--nav-h);
    background: rgba(13, 4, 21, 0.9);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    border-bottom: var(--border);
    display: flex; align-items: center;
}
.logo { font-size: 32px; font-weight: 900; color: #fff; text-decoration: none; display: flex; align-items: center; }
.logo-img { height: 60px; width: auto; display: block; }
.logo span { color: var(--accent); }

.nav { display: flex; gap: 24px; margin-left: 40px; }
.nav-link { font-weight: 700; font-size: 13px; text-transform: uppercase; color: var(--text-secondary); text-decoration: none; transition: 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--accent); }

.header-btns { display: flex; gap: 12px; margin-left: auto; }
.btn { padding: 12px 24px; border-radius: 8px; font-weight: 800; font-size: 14px; cursor: pointer; border: none; transition: 0.2s; text-transform: uppercase; }
.btn-login { background: transparent; color: #fff; border: 1px solid var(--border); }
.btn-reg { background: var(--accent); color: #000; box-shadow: var(--glow); }
.btn-reg:hover { background: #fff; transform: translateY(-2px); }

/* Hero Block */
.hero { padding: 40px 0 20px; margin-top: var(--nav-h); }
.hero-card {
    background: url('main-banner.png');
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
    border: 1px solid var(--border); border-radius: 28px; padding: 60px;
    display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero-badge { background: rgba(255,230,0,0.1); color: var(--accent); padding: 6px 14px; border-radius: 50px; font-size: 12px; font-weight: 800; margin-bottom: 20px; display: inline-block; border: 1px solid rgba(255,230,0,0.2); }
.hero-content h1 { font-size: 56px; line-height: 1.2; margin-bottom: 24px; font-weight: 900; display: flex; flex-direction: column; gap: 0; }
.hero-content h1 .hero-amount { color: var(--accent); display: block; }
.hero-content h1 span:not(.hero-amount) { -webkit-text-stroke: 1px #fff; color: transparent; display: block; }
.hero-content p { color: var(--text-secondary); margin-bottom: 32px; font-size: 18px; }

/* Promo Grid */
.grid-promo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; }
.promo-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 32px; transition: 0.3s; }
.promo-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.promo-icon { font-size: 32px; margin-bottom: 16px; display: block; }
.promo-val { font-family: 'Kanit'; font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; }
.promo-desc { font-weight: 700; margin-bottom: 8px; font-size: 16px; }
.promo-sub { color: var(--text-secondary); font-size: 13px; }

/* Game Lobby */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.game-item { 
    aspect-ratio: 1 / 1.4; background: var(--bg-surface-light); border-radius: 16px; 
    overflow: hidden; position: relative; border: 1px solid var(--border); cursor: pointer;
}
.game-thumb { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
    transition: transform 0.3s ease;
}
.game-item:hover .game-thumb {
    transform: scale(1.05);
}
.game-overlay { 
    position: absolute; inset: 0; background: rgba(0,0,0,0.8); 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    opacity: 0; transition: 0.3s; gap: 10px; padding: 20px;
}
.game-item:hover .game-overlay { opacity: 1; }
.btn-play { background: var(--accent); color: #000; width: 100%; font-size: 12px; }
.btn-demo { background: rgba(255,255,255,0.1); color: #fff; width: 100%; font-size: 12px; }

/* Steps Section */
.steps { padding: 60px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.step-num { width: 40px; height: 40px; background: var(--accent); color: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-weight: 900; }

/* SEO & FAQ Hub */
.seo-faq-hub { 
    background: var(--bg-card); 
    border-radius: 28px; 
    padding: 50px; 
    margin: 60px 0; 
    border: 1px solid var(--border);
    position: relative;
}
.seo-faq-hub p { color: var(--text-secondary); font-size: 15px; margin-bottom: 20px; }

/* Headings in SEO - автоматически применяются к h2 и h3 */
.seo-faq-hub h2,
.seo-faq-hub .heading-h2 {
    font-family: 'Kanit', sans-serif;
    text-transform: uppercase;
    font-style: italic;
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 1em;
    margin-top: 1.5em;
    color: #fff;
}
.seo-faq-hub h2:first-child,
.seo-faq-hub .heading-h2:first-child {
    margin-top: 0;
}

.seo-faq-hub h3,
.seo-faq-hub .heading-h3 {
    font-family: 'Kanit', sans-serif;
    text-transform: uppercase;
    font-style: italic;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 0.5em;
    margin-top: 1em;
    color: #fff;
}

/* Tables in SEO — автоматически ко всем table; на мобильных прокрутка через родителя .seo-faq-hub */
.seo-faq-hub table {
    width: 100%; 
    border-collapse: collapse; 
    min-width: 500px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    margin: 30px 0;
}
.seo-faq-hub table th, 
.seo-faq-hub table td { 
    padding: 16px; 
    text-align: left; 
    border-bottom: 1px solid var(--border); 
}
.seo-faq-hub table th { 
    background: var(--bg-surface-light); 
    color: var(--accent); 
    font-family: 'Kanit'; 
    text-transform: uppercase; 
    font-size: 14px;
}
.seo-faq-hub table td { 
    color: var(--text-secondary); 
    font-size: 14px; 
}
.seo-faq-hub table tr:last-child td { 
    border-bottom: none; 
}
.seo-faq-hub table tr:hover td { 
    color: #fff; 
    background: rgba(255,255,255,0.01); 
}

/* Lists in SEO - автоматически применяются к ul и ol */
.seo-faq-hub ul,
.seo-faq-hub ol {
    list-style: none; 
    margin: 25px 0; 
    padding-left: 0; 
}
.seo-faq-hub ul li,
.seo-faq-hub ol li { 
    position: relative; 
    padding-left: 30px; 
    margin-bottom: 15px; 
    color: var(--text-secondary); 
    font-size: 15px;
}
.seo-faq-hub ul li::before { 
    content: '✦'; 
    position: absolute; 
    left: 0; 
    color: var(--accent); 
    font-weight: bold; 
}
.seo-faq-hub ol {
    list-style: decimal; 
    padding-left: 30px; 
}
.seo-faq-hub ol li { 
    padding-left: 10px; 
}
.seo-faq-hub ol li::before { 
    display: none; 
}

/* FAQ inside Hub */
.hub-faq { margin-top: 50px; border-top: 1px solid var(--border); padding-top: 40px; }
.faq-item { background: rgba(255,255,255,0.03); border-radius: 16px; padding: 24px; margin-bottom: 16px; border: 1px solid transparent; transition: 0.3s; }
.faq-item:hover { border-color: var(--border); background: rgba(255,255,255,0.05); }
.faq-item summary { font-weight: 800; color: #fff; margin-bottom: 10px; display: block; font-size: 17px; font-family: 'Kanit'; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }
.faq-item[open] summary { margin-bottom: 15px; }
.faq-q { font-weight: 800; color: #fff; margin-bottom: 10px; display: block; font-size: 17px; font-family: 'Kanit'; }
.faq-a { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin-top: 10px; }

/* Footer */
.footer { background: #08020e; padding: 80px 0 100px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-title { color: #fff; font-weight: 800; margin-bottom: 20px; font-size: 14px; text-transform: uppercase; }
.footer-link { display: block; color: var(--text-secondary); text-decoration: none; margin-bottom: 12px; font-size: 13px; transition: 0.2s; }
.footer-link:hover { color: var(--accent); }

/* Mobile Slip Bar */
.mobile-bar {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 70px;
    background: rgba(13, 4, 21, 0.95); backdrop-filter: blur(20px);
    border-top: 1px solid var(--border); display: none; justify-content: space-around;
    align-items: center; z-index: 1000; padding-bottom: env(safe-area-inset-bottom);
}
.m-item { text-align: center; color: var(--text-secondary); font-size: 10px; font-weight: 700; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.m-item.active { color: var(--accent); }
.m-icon { font-size: 20px; line-height: 1; }
.m-text { font-size: 10px; }

/* Utility Classes */
.header .container { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.btn-hero { padding: 18px 45px; font-size: 16px; }
.steps h2 { text-align: center; margin-bottom: 40px; }
.step p { color: var(--text-secondary); }
.section-header a { color: var(--accent); font-weight: 700; text-decoration: none; }
.footer-text { color: var(--text-secondary); margin-top: 15px; font-size: 13px; }
.footer-copyright { margin-top: 60px; text-align: center; color: #444; font-size: 12px; border-top: 1px solid #111; padding-top: 30px; }
.hub-faq h2:first-of-type { margin-top: 40px; }
.m-item.accent { color: var(--accent); }

/* Heading Wrappers - визуально как h2 и h3 */
.heading-h2 {
    font-family: 'Kanit', sans-serif;
    text-transform: uppercase;
    font-style: italic;
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 1em;
}

.heading-h3 {
    font-family: 'Kanit', sans-serif;
    text-transform: uppercase;
    font-style: italic;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 0.5em;
}

@media (max-width: 960px) {
    .nav { display: none; }
    .grid-promo, .footer-grid, .steps-grid { grid-template-columns: 1fr; }
    .hero-card { padding: 40px 20px; text-align: center; justify-content: center; }
    .hero-content { max-width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; margin: 0 auto; }
    .hero-content h1 { font-size: 40px; text-align: center; align-items: center; justify-content: center; }
    .hero-content h1 span { text-align: center; }
    .hero-content .btn-hero { margin: 0 auto; }
    .mobile-bar { display: flex; }
    .header-btns .btn-login { display: none; }
    .hero { padding-top: 20px; }
    .seo-faq-hub { padding: 30px 20px; }
    /* таблицы не выходят за экран — горизонтальная прокрутка секции по селектору .seo-faq-hub */
    .seo-faq-hub {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

