/* ----------------------------------------------------------------------
   1. ПЕРЕМЕННЫЕ И ОСНОВНЫЕ СТИЛИ
   ---------------------------------------------------------------------- */
:root {
    --bg-main: #0c0f14;
    --bg-card: #141923;
    --bg-card-hover: #1e2532;
    --accent-yellow: #ffc800;
    --accent-yellow-hover: #e0b000;
    --accent-green: #00e676;
    --accent-green-hover: #00c853;
    --text-white: #ffffff;
    --text-muted: #7c8ba1;
    --border-color: #222b3c;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: var(--font-family);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    color: var(--accent-yellow);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--text-white);
}

/* ЗАГОЛОВКИ - СТРОГО UPPERCASE */
h1, h2, h3, h4 {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-white);
    margin-bottom: 15px;
}

h1 { font-size: 2.2rem; line-height: 1.2; }
h2 { font-size: 1.75rem; margin-top: 35px; border-left: 4px solid var(--accent-yellow); padding-left: 12px; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-section {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* ----------------------------------------------------------------------
   2. HEADER & LOGO
   ---------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(12, 15, 20, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1.0px;
    display: flex;
    align-items: center;
}

.logo-yellow {
    color: var(--accent-yellow);
}

.logo-white {
    color: #ffffff;
    margin-left: 5px;
    letter-spacing: 0px;
    font-weight: 800;
}

/* SVG КОРУНА В ЛОГОТИПЕ */
.logo-crown {
    width: 28px;
    height: 28px;
    margin-top: 4px;
    margin-right: 2px;
    display: inline-block;
    vertical-align: middle;
}

.crown-gold {
    fill: var(--accent-yellow);
}

.crown-gem {
    fill: #ff5252;
}

/* ----------------------------------------------------------------------
   MAIN NAV & ACTIVE MENU ITEM
   ---------------------------------------------------------------------- */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

.main-nav a {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

/* СТИЛЬ АКТИВНОГО ПУНКТА МЕНЮ */
.main-nav a.active {
    color: var(--accent-yellow);
    background: rgba(255, 200, 0, 0.1);
    border-color: rgba(255, 200, 0, 0.1);
}

.header-auth {
    display: flex;
    gap: 10px;
}

/* КНОПКИ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-login {
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 200, 0, 0.7);
}

.btn-login:hover {
    background: var(--bg-card);
    border-color: rgba(255, 200, 0, 0.99);
}

.btn-register {
    background: var(--accent-yellow);
    color: #000;
}

.btn-register:hover {
    background: var(--accent-yellow-hover);
    color: #fff;
}

.btn-primary {
    background: var(--accent-yellow);
    color: #000;
    font-size: 1rem;
    padding: 14px 28px;
}

.btn-primary:hover {
    background: var(--accent-yellow-hover);
}

/* ----------------------------------------------------------------------
   3. HERO BANNER
   ---------------------------------------------------------------------- */
.hero {
    background: linear-gradient(180deg, rgba(20, 25, 35, 0.8) 0%, rgba(12, 15, 20, 1) 100%);
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.badge {
    background: rgba(255, 200, 0, 0.1);
    color: var(--accent-yellow);
    border: 1px solid rgba(255, 200, 0, 0.3);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ----------------------------------------------------------------------
   4. GAME GRID (KAAS.BET STYLE)
   ---------------------------------------------------------------------- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.game-card-kaas {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.game-card-kaas:hover {
    transform: translateY(-4px);
    border-color: var(--accent-yellow);
}

.game-cover {
    position: relative;
    width: 100%;
    height: 140px;
    background: #1c2330;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.game-badges-container {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    z-index: 2;
}

.tag-top {
    background: #ff9800;
    color: #000;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
}

.tag-new {
    background: #76ff03;
    color: #000;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
}

.game-meta {
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.game-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 4px;
}

.game-dev {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
}

.game-counter {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.dot-green {
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
}

.btn-play-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(12, 15, 20, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.game-card-kaas:hover .btn-play-overlay {
    opacity: 1;
}

/* ----------------------------------------------------------------------
   5. PROS & CONS
   ---------------------------------------------------------------------- */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.pros-box, .cons-box {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 25px;
    border: 1px solid var(--border-color);
}

.pros-box ul, .cons-box ul {
    list-style: none;
}

.pros-box li, .cons-box li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.pros-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

.cons-box li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #ff5252;
    font-weight: bold;
}

/* ----------------------------------------------------------------------
   6. КАРТОЧКИ КОНТЕНТА И ТАБЛИЦЫ
   ---------------------------------------------------------------------- */
.content-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.content-card-narrow {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 25px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.data-table th, .data-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: #1c2330;
    color: var(--accent-yellow);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.data-table td {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ----------------------------------------------------------------------
   7. FAQ & AUTHOR BOX
   ---------------------------------------------------------------------- */
.faq-section {
    margin: 40px 0;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.faq-item summary {
    padding: 18px 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    color: var(--accent-yellow);
    font-size: 1.2rem;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    padding: 0 20px 20px 20px;
    color: var(--text-muted);
}

.author-box {
    background: var(--bg-card);
    border-left: 4px solid var(--accent-yellow);
    padding: 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 40px 0;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--accent-yellow);
}

/* ----------------------------------------------------------------------
   8. УТИЛИТАРНЫЕ КЛАССЫ (ЗАМЕНА INLINE-СТИЛЕЙ)
   ---------------------------------------------------------------------- */
.text-muted { color: var(--text-muted); }
.text-yellow { color: var(--accent-yellow); }
.text-green { color: var(--accent-green); }
.text-red { color: #ff5252; }
.text-center { text-align: center; }

.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-25 { margin-top: 25px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

.flex-btn-group { display: flex; gap: 15px; flex-wrap: wrap; }
.flex-column-gap { display: flex; flex-direction: column; gap: 15px; }

.ordered-list { color: var(--text-muted); margin-left: 20px; line-height: 1.8; }
.unordered-list { color: var(--text-muted); margin-left: 20px; line-height: 1.8; list-style-type: disc; }

/* ----------------------------------------------------------------------
   9. FOOTER
   ---------------------------------------------------------------------- */
.site-footer {
    background: #080a0e;
    border-top: 1px solid var(--border-color);
    padding: 50px 0 20px 0;
    margin-top: 60px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.payment-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    opacity: 0.7;
}

.disclaimer-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.age-badge {
    display: inline-block;
    background: #ff5252;
    color: #fff;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .hero-grid, .pros-cons-grid { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    h1 { font-size: 1.7rem; }
}

/* GAME CATEGORIES & PROVIDERS GRID */
.category-grid, .providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.category-card, .provider-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 15px;
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-white);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover, .provider-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-yellow);
}
