
/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* Цветовая палитра (Dark Premium Casino Style) */
    --color-bg-body: #0f0f12;
    --color-bg-dark: #16161a;
    --color-bg-card: #1f1f25;
    --color-primary: #ff3e3e; /* Яркий красный акцент */
    --color-primary-dark: #cc0000;
    --color-secondary: #ffd700; /* Золотой для денег/побед */
    --color-accent-green: #2ecc71;
    --color-text-main: #e0e0e0;
    --color-text-muted: #8b8b99;
    --color-text-light: #ffffff;
    
    /* Типографика */
    --font-family: 'Montserrat', 'Roboto', sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;

    /* Отступы и размеры */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    
    /* Эффекты */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 15px rgba(255, 62, 62, 0.4);
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

/* Helper Utility Classes (Simulating Bootstrap Grid if not loaded) */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

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

.text-center { text-align: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.d-none { display: none; }
.d-block { display: block; }
.pt-10 { padding-top: 10px; }
.pb-10 { padding-bottom: 10px; }
.pt-5 { padding-top: 5px; }
.pb-30 { padding-bottom: 30px; }
.pt-20 { padding-top: 20px; }

/* =========================================
   2. BUTTONS & UI ELEMENTS
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
    transition: var(--transition-base);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-defolt {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-light);
    box-shadow: 0 4px 6px rgba(255, 62, 62, 0.2);
}

.btn-defolt:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 62, 62, 0.4);
}

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

.btn-regist {
    background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    background: linear-gradient(135deg, #ff512f, #dd2476); /* Более сочный градиент */
}

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

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

.btn-green {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    box-shadow: 0 4px 6px rgba(46, 204, 113, 0.2);
}

.open-menu {
    width: 30px;
    height: 30px;
    background-color: var(--color-bg-card);
    position: relative;
}

.open-menu::before,
.open-menu::after {
    content: '';
    position: absolute;
    left: 5px;
    width: 20px;
    height: 2px;
    background: var(--color-text-light);
}
.open-menu::before { top: 10px; }
.open-menu::after { bottom: 10px; }

/* =========================================
   3. HEADER AREA
   ========================================= */

.heder {
    background-color: rgba(22, 22, 26, 0.95);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: inline-block;
    width: 150px;
    height: 50px;
    background: url('path/to/logo.png') no-repeat center/contain; /* Placeholder logic */
    background-color: transparent; /* Assuming image */
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-secondary);
    text-transform: uppercase;
}
/* Fallback if no image */
.logo:empty::after {
    content: 'AZINO777';
    display: flex;
    align-items: center;
    height: 100%;
}

.pre-header-dovnload {
    background: linear-gradient(90deg, #1cb5e0 0%, #000851 100%);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.pre-header-dovnload-v2 {
    background: linear-gradient(90deg, #00b09b 0%, #96c93d 100%);
}

.text-box {
    font-weight: 500;
    flex: 1;
    padding-right: var(--spacing-md);
}

.button_pp {
    display: block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z'/%3E%3C/svg%3E") center no-repeat;
    border-radius: 50%;
    transition: var(--transition-base);
}

.button_pp:hover {
    background-color: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

/* =========================================
   4. NAVIGATION
   ========================================= */

.navigation {
    margin-bottom: var(--spacing-lg);
}

.navigation-bg {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    padding: 0;
    display: flex;
}

.navigation .item {
    padding: 0;
    border-right: 1px solid rgba(255,255,255,0.05);
    flex: 1;
}

.navigation .item:last-child {
    border-right: none;
}

.navigation a {
    display: block;
    padding: 1.25rem 1rem;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-main);
    transition: var(--transition-base);
}

.navigation a:hover {
    background-color: var(--color-primary);
    color: white;
}

/* =========================================
   5. GAMES GRID
   ========================================= */

.games_list {
    padding: var(--spacing-lg) 0;
}

/* Grid layout for games using CSS Grid */
.games_list .row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--spacing-lg);
}

/* Reset bootstrap col classes inside games list for grid usage */
.games_list [class*="col-"] {
    width: auto;
    padding: 0;
    margin: 0;
}

.games_list .item {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-height: 250px;
    justify-content: flex-end;
}

/* Simulated Game Image via Pseudo-element */
.games_list .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #333 0%, #1a1a1a 100%);
    z-index: 0;
    transition: transform 0.5s ease;
}

.games_list .item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.games_list .item:hover::before {
    transform: scale(1.1);
}

.games_list .title {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-align: center;
    color: var(--color-text-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.games_list .btn {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: var(--spacing-sm);
    opacity: 0.9;
}

.games_list .plau-demo {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    padding: 0.5rem;
}

.games_list .plau-demo:hover {
    background: rgba(255,255,255,0.1);
    color: var(--color-text-light);
}

/* =========================================
   6. MAIN CONTENT & TYPOGRAPHY
   ========================================= */

.main_content {
    background-color: var(--color-bg-dark);
    padding: var(--spacing-xl) 0;
    color: var(--color-text-main);
}

h1, h2, h3 {
    color: var(--color-text-light);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; text-align: center; color: var(--color-secondary);}
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: var(--spacing-lg); border-left: 4px solid var(--color-primary); padding-left: var(--spacing-sm); }
h3 { font-size: 1.5rem; }

p, li {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    color: #cccccc;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

td {
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

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

td:first-child {
    font-weight: 700;
    color: var(--color-text-light);
    width: 40%;
}

/* =========================================
   7. FORMS (Subscribe)
   ========================================= */

.content-form {
    background: linear-gradient(135deg, #1f1f25 0%, #2a2a35 100%);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-xl);
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.content-form .h2 {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: bold;
}

.form-box {
    display: flex;
    gap: var(--spacing-md);
    max-width: 600px;
    margin: var(--spacing-lg) auto 0;
    flex-wrap: wrap;
}

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

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

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

/* =========================================
   8. FAQ SECTION
   ========================================= */

#faq {
    margin-top: var(--spacing-xl);
}

#faq .item {
    background-color: var(--color-bg-card);
    margin-bottom: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border-left: 3px solid transparent;
    transition: var(--transition-base);
}

#faq .item:hover {
    border-left-color: var(--color-secondary);
}

#faq .question {
    display: block;
    padding: var(--spacing-md);
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-light);
    position: relative;
    padding-right: 40px;
}

#faq .question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-secondary);
}

#faq .question.hide::after { /* Based on script logic */
    content: '-';
}

#faq .answer {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--color-text-muted);
    line-height: 1.6;
    display: block;
}

#faq .answer.hide {
    display: none;
}

/* =========================================
   9. FOOTER
   ========================================= */

.footer {
    background-color: #050505;
    padding-top: var(--spacing-xl);
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #777;
}

.footer .title {
    color: var(--color-text-light);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    font-size: 1rem;
}

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

.footer a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer span {
    color: var(--color-text-light);
    font-weight: 600;
    margin-right: 5px;
}

/* =========================================
   10. WINNERS / JACKPOT (Specific Components)
   ========================================= */

.main_menu_winners {
    background: url('path/to/gold-dust.png'), linear-gradient(to bottom, #232526, #414345);
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-lg);
    border: 1px solid gold;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.cifra {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-secondary);
    background: #000;
    padding: 0 5px;
    margin: 0 2px;
    border-radius: 4px;
    text-shadow: 0 0 10px gold;
}

.brecpoint {
    font-size: 2rem;
    color: white;
}

/* =========================================
   11. RESPONSIVE MEDIA QUERIES
   ========================================= */

/* Tablet & Mobile */
@media (max-width: 991px) {
    .navigation-bg {
        flex-direction: column;
    }
    .navigation .item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .cifra {
        font-size: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header adjustments */
    .row.align-items-center.justify-content-between {
        flex-direction: row; /* Keep logo and menu button on same line */
        flex-wrap: nowrap;
    }

    .col.left, .col-12.right {
        width: auto;
    }

    .btn-regist, .btn-voiti {
        display: none; /* Hide buttons on very small screens if specified by HTML logic d-lg-none */
    }
    
    /* Pre-header stack */
    .pre-header-dovnload {
        flex-direction: column;
        text-align: center;
    }
    
    .text-box {
        padding-right: 0;
        margin-bottom: var(--spacing-md);
    }

    /* Grid adjustments */
    .games_list .row {
        grid-template-columns: 1fr 1fr; /* 2 columns on mobile */
        gap: var(--spacing-md);
    }
    
    .games_list .item {
        min-height: 180px;
        padding: var(--spacing-sm);
    }
    
    .games_list .title {
        font-size: 0.9rem;
    }
    
    .games_list .btn {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .footer .row {
        text-align: center;
    }
    
    .footer-content {
        width: 100%;
        margin-left: 0;
    }

    .form-box {
        flex-direction: column;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .games_list .row {
        grid-template-columns: 1fr; /* 1 column on very small screens */
    }
    
    h1 { font-size: 1.5rem; }
}

/* Utilities fixes for provided HTML classes */
.d-lg-none { display: none !important; }
@media (max-width: 991px) { .d-lg-none { display: inline-block !important; } }
@media (max-width: 991px) { .d-none.d-lg-block { display: none !important; } }
