
/* =========================================
   1. CSS VARIABLES & RESET
   ========================================= */
:root {
    /* Цветовая палитра - Dark Casino Theme */
    --bg-body: #0f1014;
    --bg-card: #1a1c23;
    --bg-darker: #0b0c0f;
    --primary-color: #ff3e3e; /* Акцентный красный */
    --primary-hover: #d32f2f;
    --secondary-color: #ffc107; /* Золотой */
    --btn-green: #00e676; /* Кнопки действия */
    --btn-green-hover: #00c853;
    --text-main: #e0e0e0;
    --text-muted: #9e9e9e;
    --border-color: #2c2e36;
    
    /* Типографика */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --fs-base: 1rem;
    --fs-h1: clamp(1.8rem, 4vw, 2.5rem);
    --fs-h2: clamp(1.5rem, 3vw, 2rem);
    
    /* Отступы и размеры */
    --container-width: 1200px;
    --spacer-sm: 0.5rem;
    --spacer-md: 1rem;
    --spacer-lg: 2rem;
    --spacer-xl: 4rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Эффекты */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 10px 30px rgba(255, 62, 62, 0.15);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::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(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul, ol {
    list-style: none;
}

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

/* =========================================
   2. LAYOUT GRID (Bootstrap-like Shim)
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacer-md);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

/* Flex Utilities for Grid */
[class*="col"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col { flex-basis: 0; flex-grow: 1; max-width: 100%; }
.col-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.text-center { text-align: center; }
.no-gutters { margin-right: 0; margin-left: 0; }
.no-gutters > .col, .no-gutters > [class*="col-"] { padding-right: 0; padding-left: 0; }

/* Spacing Utilities */
.pt-5 { padding-top: 0.5rem; }
.pt-10 { padding-top: 1rem; }
.pt-15 { padding-top: 1.5rem; }
.pt-20 { padding-top: 2rem; }
.pb-10 { padding-bottom: 1rem; }
.pb-20 { padding-bottom: 2rem; }
.pb-30 { padding-bottom: 3rem; }

/* Display Utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }

/* =========================================
   3. COMPONENTS: BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-defolt {
    color: #fff;
}

/* Primary Registration Button */
.btn-regist {
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    box-shadow: 0 4px 15px rgba(255, 62, 62, 0.4);
}

.btn-regist:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 62, 62, 0.6);
}

/* Login Button */
.btn-voiti {
    background: transparent;
    border: 1px solid var(--text-muted);
    margin-left: 10px;
}

.btn-voiti:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Game Buttons */
.plau-game {
    background: var(--btn-green);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
    width: 100%;
    margin-bottom: 0.5rem;
}

.plau-game:hover {
    background: var(--btn-green-hover);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.5);
}

.plau-demo {
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.plau-demo:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-game-color {
    background: var(--bg-card);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    min-width: 200px;
}

.btn-game-color:hover {
    background: var(--primary-color);
    color: #fff;
}

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
.heder {
    background-color: var(--bg-darker);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    display: inline-block;
    width: 180px;
    height: 50px;
    background: url('path/to/logo.png') no-repeat center/contain; /* Fallback styles */
    background-color: rgba(255,255,255,0.1); /* Temporary placeholder color */
    border-radius: var(--radius-sm);
}

/* Pre-header Banners */
.pre-header-dovnload {
    background: linear-gradient(90deg, #2b5876 0%, #4e4376 100%);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    box-shadow: var(--shadow-card);
}

.pre-header-dovnload-v2 {
    background: linear-gradient(90deg, #11998e 0%, #38ef7d 100%);
}

.text-box {
    font-size: 0.95rem;
    font-weight: 500;
}

.button_pp {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2) url('path/to/icon.png') center no-repeat;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform var(--transition-fast);
}

.button_pp:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Main Navigation */
.navigation {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.navigation-bg {
    display: flex;
    justify-content: center;
}

.navigation .item a {
    display: block;
    padding: 1rem;
    text-align: center;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.navigation .item a:hover,
.navigation .item a.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.02);
}

/* Mobile Menu Toggle */
.open-menu {
    width: 40px;
    height: 40px;
    background-color: var(--bg-card);
    position: relative;
    vertical-align: middle;
    margin-left: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.open-menu::before, .open-menu::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #fff;
}
.open-menu::before { top: 14px; }
.open-menu::after { bottom: 14px; }

/* =========================================
   5. GAME CARDS & GRID
   ========================================= */
.games_list {
    padding: 2rem 0;
}

.games_list .item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Pseudo-element for image placeholder */
.games_list .item::before {
    content: '';
    display: block;
    width: 100%;
    padding-bottom: 70%; /* Aspect ratio */
    background: #2a2d36;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    transition: transform 0.5s ease;
}

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

.games_list .item:hover::before {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.games_list .title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================
   6. WINNERS TICKER SECTION
   ========================================= */
.main_menu_winners {
    background: radial-gradient(circle at center, #23252e 0%, var(--bg-body) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    margin: 2rem 0;
}

.main_menu_winners-call {
    display: flex;
    gap: 4px;
}

.cifra {
    background: #000;
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #333;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.brecpoint {
    font-size: 2rem;
    color: var(--text-muted);
    line-height: 1;
    align-self: flex-end;
    padding-bottom: 5px;
}

.valuta {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-left: 10px;
    align-self: center;
}

/* =========================================
   7. CONTENT & TYPOGRAPHY
   ========================================= */
.main_content {
    background: var(--bg-card);
    padding: 3rem 0;
    border-radius: var(--radius-lg);
    margin: 2rem auto;
    box-shadow: var(--shadow-card);
}

.main_content h1, .main_content h2, .main_content h3 {
    color: var(--text-main);
    margin-bottom: 1rem;
    margin-top: 2rem;
    line-height: 1.2;
}

.main_content h1 { font-size: var(--fs-h1); color: var(--secondary-color); }
.main_content h2 { font-size: var(--fs-h2); border-left: 4px solid var(--primary-color); padding-left: 1rem; }

.main_content p {
    margin-bottom: 1rem;
    color: #ccc;
}

.main_content ul, .main_content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.main_content ul li {
    list-style: disc;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.main_content blockquote {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

table tr td {
    padding: 1rem;
    border: 1px solid var(--border-color);
}

table tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.03);
}

table tr td:first-child {
    font-weight: 600;
    color: var(--secondary-color);
    width: 30%;
}

/* FAQ Accordion */
#faq .item {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

#faq .question {
    display: block;
    padding: 1.2rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    position: relative;
    transition: background 0.3s;
}

#faq .question:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

#faq .answer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
    color: #bbb;
}

#faq .question.hide + .answer,
#faq .answer.hide {
    display: none;
}

/* =========================================
   8. FORMS
   ========================================= */
.content-form {
    background: linear-gradient(135deg, #1e2029 0%, #16181e 100%);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: #fff;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 62, 62, 0.2);
}

.subscribe-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.form-group-email { flex-grow: 1; }
.form-group-submit .btn { height: 100%; }

/* =========================================
   9. FOOTER
   ========================================= */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer span {
    color: var(--text-main);
    font-weight: 600;
}

.footer .title a {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

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

/* =========================================
   10. MEDIA QUERIES (Responsive)
   ========================================= */
@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; max-width: 100%; }
    
    .text-md-left { text-align: left; }
    .text-md-right { text-align: right; }
    
    .d-md-block { display: block !important; }
    
    .pt-md-0 { padding-top: 0; }
    .pb-md-0 { padding-bottom: 0; }
}

@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-auto { flex: 0 0 auto; width: auto; }
    
    .d-lg-block { display: block !important; }
    .d-lg-none { display: none !important; }
    
    .navigation .item {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    /* Mobile Header adjustments */
    .heder .row {
        flex-direction: column;
    }
    
    .btn-regist, .btn-voiti {
        width: 100%;
        margin: 5px 0;
        display: block;
        text-align: center;
    }
    
    /* Hide nav by default on mobile (controlled by JS) */
    .navigation.hide {
        display: none;
    }
    
    .navigation-bg {
        flex-direction: column;
    }
    
    .cifra {
        font-size: 1.2rem;
        padding: 0.1rem 0.3rem;
    }
    
    .games_list .title {
        font-size: 0.9rem;
    }
}
