
/* =========================================
   1. Reset & Variables
   ========================================= */
:root {
    /* Colors */
    --c-primary: #ff3a3a;
    --c-primary-hover: #d11a1a;
    --c-accent: #ffcc00;
    --c-accent-hover: #eebb00;
    --c-dark-bg: #111111;
    --c-card-bg: #1e1e1e;
    --c-nav-bg: #252525;
    --c-text-main: #ffffff;
    --c-text-muted: #aaaaaa;
    --c-border: #333333;
    --c-gradient-main: linear-gradient(135deg, #ff3a3a 0%, #ff7f00 100%);
    --c-gradient-gold: linear-gradient(180deg, #ffd700 0%, #daa520 100%);
    
    /* Spacing & Sizes */
    --gap-sm: 0.5rem;
    --gap-md: 1rem;
    --gap-lg: 2rem;
    --container-width: 1200px;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    
    /* Typography */
    --font-main: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --fz-sm: 0.875rem;
    --fz-base: 1rem;
    --fz-lg: 1.25rem;
    --fz-xl: clamp(1.5rem, 4vw, 2.5rem);
}

/* Reset */
*, *::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(--c-dark-bg);
    color: var(--c-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* =========================================
   2. Layout System (Grid/Flex)
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap-md);
}

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

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

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

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

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

/* Spacing Utilities */
.pt-5 { padding-top: 0.3125rem; }
.pt-10 { padding-top: 0.625rem; }
.pt-15 { padding-top: 0.9375rem; }
.pt-20 { padding-top: 1.25rem; }
.pb-10 { padding-bottom: 0.625rem; }
.pb-15 { padding-bottom: 0.9375rem; }
.pb-20 { padding-bottom: 1.25rem; }
.pb-30 { padding-bottom: 1.875rem; }

/* Responsiveness */
@media (min-width: 768px) {
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .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; }
    .pb-md-0 { padding-bottom: 0 !important; }
    .pt-md-0 { padding-top: 0 !important; }
}

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

/* =========================================
   3. Header & Navigation
   ========================================= */
.heder {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-border);
    padding: 1rem 0;
    position: relative;
    z-index: 100;
}

.logo {
    display: inline-block;
    width: 150px;
    height: 50px;
    background: url('path/to/logo.png') no-repeat center/contain; /* Placeholder logic */
    background-color: transparent; /* Fallback */
}
/* Fallback if no image */
.logo:empty::before {
    content: 'AZINO777';
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--c-primary);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.navigation {
    background-color: var(--c-nav-bg);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

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

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

.navigation-bg a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    color: var(--c-text-muted);
}

.navigation-bg a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--c-gradient-main);
    transition: width 0.3s ease;
}

.navigation-bg a:hover,
.navigation-bg a.active {
    color: var(--c-text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.navigation-bg a:hover::before {
    width: 100%;
}

/* =========================================
   4. Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin: 0 0.25rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.btn:hover::after {
    opacity: 1;
}

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

.btn-regist, .btn-green {
    background: var(--c-gradient-main);
    color: white;
}

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

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

/* Download Buttons / Promo */
.pre-header-dovnload {
    background: linear-gradient(90deg, #1f1f1f 0%, #2a2a2a 100%);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
}

@media(min-width: 768px) {
    .pre-header-dovnload {
        flex-direction: row;
        justify-content: space-between;
    }
}

.text-box {
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--c-text-main);
}
@media(min-width: 768px) { .text-box { margin-bottom: 0; margin-right: 1rem; } }

.button_pp {
    display: inline-block;
    min-width: 150px;
    height: 45px;
    background: var(--c-accent);
    border-radius: var(--radius-sm);
    position: relative;
    transition: transform 0.2s;
}
/* Add text to empty download buttons */
.button_pp:empty::before {
    content: 'Скачать App';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
}

/* =========================================
   5. Winners Section (Counters)
   ========================================= */
.main_menu_winners {
    background: var(--c-card-bg);
    margin-top: 2rem;
    padding: 2rem 0;
    border-top: 2px solid var(--c-accent);
}

.menu_winners-title {
    margin-bottom: 1.5rem;
    height: 30px; /* Placeholder styling */
}

.main_menu_winners-call {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
}

.cifra, .brecpoint, .valuta {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--c-accent);
    background: #000;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.2);
    text-align: center;
}

.rubeli::before { content: '₽'; }

/* =========================================
   6. Games Grid
   ========================================= */
.games_list {
    padding: 2rem 0;
}

.games_list .item {
    background: var(--c-card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    /* Aspect ratio for card shape */
    aspect-ratio: 4/3;
    justify-content: flex-end;
}

/* Simulated Image Backgrounds */
.games_list .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to bottom, #333, #222);
    background-size: cover;
    z-index: 0;
}

.games_list .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 0 2px var(--c-primary);
}

.games_list .title {
    background: rgba(0,0,0,0.8);
    padding: 0.5rem;
    text-align: center;
    font-weight: 700;
    z-index: 2;
    color: #fff;
    margin-bottom: auto; /* Push title to top */
    width: 100%;
    position: absolute;
    top: 0;
}

/* Hover overlay buttons */
.games_list .item .btn {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 20px);
    opacity: 0;
    transition: all 0.3s ease;
    width: 80%;
    z-index: 3;
    font-size: 0.8rem;
    padding: 0.4rem;
}

.games_list .plau-game {
    top: 40%;
    background: var(--c-primary);
    color: white;
}

.games_list .plau-demo {
    top: 65%;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.games_list .item:hover .btn {
    opacity: 1;
}

.games_list .item:hover .plau-game {
    transform: translate(-50%, -50%);
}
.games_list .item:hover .plau-demo {
    transform: translate(-50%, -50%);
}

.btn-game-color {
    background: #333;
    color: #fff;
    border: 1px solid #444;
    min-width: 200px;
}
.btn-game-color:hover {
    background: var(--c-accent);
    color: #000;
    border-color: var(--c-accent);
}

/* =========================================
   7. Content & Typography
   ========================================= */
.main_content {
    background: #151515;
    padding: 3rem 0;
    color: #ddd;
}

h1, .h2, h3 {
    color: var(--c-text-main);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: var(--fz-xl);
    background: var(--c-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2, .h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; color: var(--c-primary); }

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

blockquote {
    border-left: 4px solid var(--c-accent);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
}

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

td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: top;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

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

/* Forms */
.content-form {
    background: linear-gradient(135deg, #222 0%, #111 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    border: 1px solid var(--c-border);
}

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

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

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

/* FAQ */
#faq {
    margin-top: 3rem;
}

#faq .item {
    margin-bottom: 1rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

#faq .question {
    display: block;
    padding: 1rem;
    background: var(--c-card-bg);
    cursor: pointer;
    color: var(--c-text-main);
    transition: background 0.3s;
    position: relative;
    padding-right: 2rem;
}

#faq .question:hover {
    background: #2a2a2a;
}

#faq .question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}

#faq .answer {
    padding: 1rem;
    background: #111;
    color: #bbb;
    border-top: 1px solid var(--c-border);
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* =========================================
   8. Footer
   ========================================= */
.footer {
    background: #000;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #222;
}

.footer a {
    color: #888;
}

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

.footer .title a {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
}

.footer span {
    color: var(--c-primary);
    margin-right: 0.5rem;
}

/* =========================================
   9. Mobile Menu Button
   ========================================= */
.open-menu {
    width: 40px;
    height: 40px;
    background: #333;
    position: relative;
    border-radius: var(--radius-sm);
    vertical-align: middle;
}

.open-menu::before {
    content: '\2630'; /* Hamburger icon unicode */
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

/* =========================================
   10. Animations
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.owl-carousel .item {
    text-align: center;
    padding: 2rem;
    background: url('placeholder-banner.jpg'); /* Placeholder */
    background-color: #222;
    border-radius: var(--radius-lg);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Helper to hide/show nav on mobile */
@media (max-width: 991px) {
    .navigation.hide {
        display: none;
    }
    .navigation {
        display: block; /* Toggled by JS */
    }
    .navigation-bg {
        flex-direction: column;
    }
    .navigation-bg .item {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
}
