
:root {
    /* Цветовая палитра */
    --color-bg-body: #0f1118;
    --color-bg-dark: #161925;
    --color-bg-card: #1f2335;
    --color-primary: #ffc107; /* Золотой */
    --color-primary-hover: #ffca2c;
    --color-secondary: #d2a4f7; /* Лаванда */
    --color-accent: #ff3d00; /* Огненно-красный */
    --color-success: #00c853; /* Зеленый */
    --color-text-main: #ffffff;
    --color-text-muted: #a0a5b9;
    --color-border: #2d3246;

    /* Градиенты */
    --gradient-btn-primary: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    --gradient-btn-success: linear-gradient(135deg, #00e676 0%, #00c853 100%);
    --gradient-header: linear-gradient(to bottom, #161925 0%, rgba(22, 25, 37, 0.95) 100%);

    /* Размеры и отступы */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --container-width: 1200px;

    /* Тени */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-btn: 0 4px 15px rgba(255, 193, 7, 0.3);
    --shadow-glow: 0 0 15px rgba(210, 164, 247, 0.2);

    /* Типографика */
    --font-main: 'Roboto', 'Inter', system-ui, -apple-system, sans-serif;
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* CSS Reset & Basics */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Grid & Layout Utilities (Simplified Bootstrap-like) */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(var(--spacing-md) * -1);
    margin-right: calc(var(--spacing-md) * -1);
}

[class*="col"] {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    position: relative;
    width: 100%;
}

.no-gutters {
    margin-left: 0;
    margin-right: 0;
}
.no-gutters > [class*="col"] {
    padding-left: 0;
    padding-right: 0;
}

/* Flex Utilities */
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Responsive Grid */
@media (min-width: 768px) {
    .col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .col-md-auto { flex: 0 0 auto; width: auto; }
    .d-md-block { display: block !important; }
    .text-md-left { text-align: left; }
    .text-md-right { text-align: right; }
}

@media (min-width: 992px) {
    .col-lg { flex-basis: 0; flex-grow: 1; max-width: 100%; }
    .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .col-lg-auto { flex: 0 0 auto; width: auto; }
    .d-lg-block { display: block !important; }
    .d-lg-none { display: none !important; }
}

.d-none { display: none; }
.pt-10 { padding-top: 10px; }
.pb-10 { padding-bottom: 10px; }
.pt-5 { padding-top: 5px; }
.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }
.mt-15 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }

/* --- Components --- */

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.05em;
    z-index: 1;
}

.btn-defolt {
    background: var(--gradient-btn-primary);
    color: #000;
    box-shadow: var(--shadow-btn);
}

.btn-defolt:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
    filter: brightness(1.1);
}

.btn-defolt:active {
    transform: translateY(0);
}

.btn-green {
    background: var(--gradient-btn-success);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

/* Header */
.heder {
    background: var(--color-bg-dark);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.logo {
    display: inline-block;
    width: 150px;
    height: 50px;
    background: url('/logo.png') no-repeat center/contain; /* Fallback if img not provided */
    background-color: transparent;
}

.btn-regist {
    background: var(--color-accent);
    color: #fff;
    margin-right: var(--spacing-sm);
}

.btn-voiti {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    box-shadow: none;
}

.btn-voiti:hover {
    background: var(--color-primary);
    color: #000;
}

/* Navigation */
.navigation {
    background: rgba(31, 35, 53, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.navigation .item a.main {
    display: block;
    padding: 1rem;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-align: center;
    position: relative;
}

.navigation .item a.main:hover,
.navigation .item a.main:focus {
    color: var(--color-primary);
}

.navigation .item a.main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-base);
}

.navigation .item a.main:hover::after {
    width: 100%;
}

/* Banner */
.baner {
    position: relative;
    background: radial-gradient(circle at center, #2a2e45 0%, #0f1118 100%);
    min-height: 300px;
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.owl-baner .item {
    position: relative;
    padding: 40px 0;
    text-align: center;
    color: #fff;
    z-index: 2;
}

/* Adjusting banner text provided inline styles */
.baner .black {
    display: inline-flex;
    flex-direction: column;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin: 0 1rem;
    vertical-align: middle;
}

.baner .btn {
    margin-top: 2rem;
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

/* Games Menu */
.games_menu {
    background: var(--color-bg-dark);
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.games_menu .item a {
    display: block;
    padding: 0.8rem 1rem;
    background: var(--color-bg-card);
    color: var(--color-text-muted);
    border-radius: var(--border-radius-md);
    text-align: center;
    font-size: 0.85rem;
    border: 1px solid transparent;
    white-space: nowrap;
}

.games_menu .item a:hover {
    background: var(--color-bg-body);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Winners Ticker */
.main_menu_winners {
    background: #12141c;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

.main_menu_winners-call {
    color: var(--color-primary);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
}

/* Games Grid */
.games_list .item {
    background: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 250px; /* Placeholder height */
}

/* Placeholder pattern for missing images */
.games_list .item::before {
    content: 'GAME';
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(45deg, #23273a, #2d3246);
    color: rgba(255,255,255,0.05);
    font-size: 2rem;
    font-weight: 900;
    z-index: 0;
}

.games_list .item:hover {
    transform: translateY(-5px);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-card);
}

.games_list .item .title {
    margin-top: 65%; /* Pushes title down below placeholder */
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    z-index: 1;
    position: relative;
}

.games_list .item .btn {
    width: 100%;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    padding: 0.5rem;
    z-index: 1;
}

.games_list .item .plau-demo {
    background: transparent;
    border: 1px solid var(--color-text-muted);
    color: var(--color-text-muted);
    box-shadow: none;
}

.games_list .item .plau-demo:hover {
    border-color: #fff;
    color: #fff;
}

/* Content Area Styles */
.main_content h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.main_content h2 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #fff;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    border-left: 4px solid var(--color-secondary);
    padding-left: 1rem;
}

.main_content p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.main_content a {
    color: var(--color-secondary);
    border-bottom: 1px dashed var(--color-secondary);
}

.main_content a:hover {
    color: #fff;
    border-bottom-style: solid;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    background: var(--color-bg-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

table td, table th {
    padding: 1rem;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

table tr:first-child td {
    background: #252a3b;
    font-weight: bold;
    color: var(--color-primary);
    text-transform: uppercase;
}

table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* Subscribe Form */
.content-form {
    background: linear-gradient(135deg, #1f2335 0%, #161925 100%);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin: 2rem 0;
    border: 1px solid var(--color-border);
}

.content-form .h2 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.form-box {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    color: #fff;
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(210, 164, 247, 0.1);
}

/* Table of Contents */
.toc_container {
    background: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--color-primary);
    margin-bottom: 2rem;
}

.toc_title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.toc_list ol {
    padding-left: 1.2rem;
}

.toc_list li {
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

/* Accordion / FAQ */
.accord-group {
    margin-top: 2rem;
}

.accord-block {
    background: var(--color-bg-card);
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.accord-block-header {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
    background: #252a3b;
    position: relative;
    transition: background 0.3s;
}

.accord-block-header:hover {
    background: #2d3246;
    color: var(--color-primary);
}

.accord-block-content {
    padding: 1.5rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
}

/* Footer */
.footer {
    background: #0b0d12;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.footer a {
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.footer a:hover {
    color: var(--color-secondary);
}

.row-menu-footer {
    margin-bottom: 2rem;
}

.footer-content {
    color: #6c757d !important; /* Override inline style */
    line-height: 1.5;
}

.dmca-badge img {
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.dmca-badge:hover img {
    opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .baner .black span {
        font-size: 1.5rem !important; /* Override inline styles for mobile */
    }
    
    .baner .btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
        margin-top: 1rem;
    }
    
    .games_list .item {
        min-height: 200px;
    }

    .form-box {
        flex-direction: column;
    }
    
    .btn-regist, .btn-voiti {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .heder .logo {
        width: 100px;
    }
    
    .games_menu {
        overflow-x: auto;
        white-space: nowrap;
        padding: 1rem 0;
    }
    
    .games_menu .container > .row {
        flex-wrap: nowrap;
    }
}
