
/* =========================================
   1. Reset & Global Variables
   ========================================= */
:root {
    /* Colors */
    --color-bg-body: #0f1016;
    --color-bg-card: #1c1e2a;
    --color-bg-header: #151720;
    --color-primary: #ff3e3e;
    --color-primary-hover: #ff6b6b;
    --color-accent: #fcd34d; /* Gold */
    --color-accent-hover: #fbbf24;
    --color-text-main: #ffffff;
    --color-text-secondary: #9ca3af;
    --color-border: #2d3748;
    
    /* Gradients */
    --gradient-btn: linear-gradient(135deg, #ff3e3e 0%, #d91818 100%);
    --gradient-gold: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
    --gradient-dark: linear-gradient(180deg, rgba(28,30,42,0) 0%, #1c1e2a 100%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-size-base: 1rem;
    --line-height: 1.6;

    /* Spacing & Sizing */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 15px rgba(255, 62, 62, 0.3);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

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

ul {
    list-style: none;
}

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

/* =========================================
   2. Grid System & Utilities (Bootstrap-like emulation)
   ========================================= */
.container {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
    max-width: 1200px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

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

/* 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-md-left { text-align: left; }
.text-md-right { text-align: right; }
.d-none { display: none; }
.d-block { display: block; }

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

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

/* Responsive Media Queries for Grid */
@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; }
    .d-md-block { display: block; }
    .d-md-none { display: none; }
    .text-md-right { text-align: right; }
    .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; }
    .d-lg-none { display: none; }
}

/* =========================================
   3. Components: Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

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

.btn-defolt:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #e63939 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.btn-regist {
    background: var(--gradient-gold);
    color: #1a1a2e;
}

.btn-regist:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
}

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

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

/* =========================================
   4. Header Styling
   ========================================= */
.heder {
    background-color: var(--color-bg-header);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.header_navigation2 {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.header_navigation2 a {
    color: var(--color-text-secondary);
    position: relative;
}

.header_navigation2 a:hover,
.header_navigation2 a.active {
    color: var(--color-accent);
}

.header_navigation2 a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.header_navigation2 a:hover::after {
    width: 100%;
}

.logo {
    display: inline-block;
    width: 150px;
    height: 40px;
    background: url('path/to/logo.png') no-repeat center/contain; /* Fallback styles below */
    background-color: rgba(255,255,255,0.05); /* Placeholder if no img */
    border-radius: 4px;
    position: relative;
}

.logo::before {
    content: 'Azino777';
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255,62,62,0.5);
}

/* Mobile Menu Toggle */
.open-menu {
    width: 40px;
    height: 40px;
    background: var(--color-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.open-menu::after {
    content: '☰';
    font-size: 1.5rem;
    color: var(--color-text-main);
}

/* =========================================
   5. Pre-Header & Download Areas
   ========================================= */
.pre-header-dovnload {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.text-box {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.button_pp {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}
.button_pp::after {
    content: '⬇';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}
.pre-header-dovnload-v2 .button_pp {
    background: #0088cc; /* Telegram color */
}
.pre-header-dovnload-v2 .button_pp::after {
    content: '✈';
}

/* =========================================
   6. Navigation Tiles
   ========================================= */
.navigation {
    margin-bottom: 2rem;
}
.navigation-bg {
    background: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
}
.navigation .item {
    padding: 0.5rem;
}
.navigation .item a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: var(--border-radius-md);
    color: var(--color-text-main);
    font-weight: 600;
    transition: var(--transition-smooth);
    height: 100%;
    text-align: center;
    border: 1px solid transparent;
}
.navigation .item a:hover,
.navigation .item.activ a {
    background: rgba(255, 62, 62, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

/* =========================================
   7. Banners & Winners
   ========================================= */
.baner {
    margin-bottom: 2rem;
}
.owl-baner .item {
    background: linear-gradient(to right, #2b32b2, #1488cc);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.owl-baner .item::before {
    content: 'BONUS 777 RUB';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
    opacity: 0.1;
    white-space: nowrap;
}

.main_menu_winners {
    background: #111;
    padding: 1.5rem 0;
    border-top: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    margin: 2rem 0;
    overflow: hidden;
}
.main_menu_winners-call {
    font-family: 'Courier New', monospace;
    color: var(--color-accent);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 8px var(--color-accent);
}
.cifra, .valuta, .rubeli {
    display: inline-block;
    padding: 0 2px;
}
.cifra::before { content: '7'; } /* Simulation */
.rubeli::before { content: 'RUB'; font-size: 0.8em; margin-left: 5px;}

/* =========================================
   8. Games Grid
   ========================================= */
.games_list {
    padding: 2rem 0;
}
.games_list .item {
    background: var(--color-bg-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255,255,255,0.05);
    height: 250px; /* Fixed height for consistent grid */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
}

/* Placeholder for Game Image */
.games_list .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%), 
                radial-gradient(circle at center, #2d3748, #1a202c);
    z-index: 0;
    transition: transform 0.4s ease;
}

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

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

.games_list .item .title {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Buttons inside game card */
.games_list .item .btn {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.games_list .item:hover .btn {
    opacity: 1;
    transform: translateY(0);
}

.plau-game {
    background: var(--color-primary);
}
.plau-demo {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
}
.plau-demo:hover {
    background: rgba(255,255,255,0.1);
}

/* =========================================
   9. Content Typography
   ========================================= */
.main_content {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    padding-bottom: 3rem;
}

.main_content h1, 
.main_content h2, 
.main_content h3 {
    color: var(--color-text-main);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.main_content h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    background: linear-gradient(to right, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main_content h2 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
}

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

.main_content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(255, 62, 62, 0.3);
}

.main_content a:hover {
    color: var(--color-accent);
    text-decoration-color: var(--color-accent);
}

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

.main_content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.main_content ul li {
    margin-bottom: 0.5rem;
}

/* Tables */
.main_content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--color-bg-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.main_content th, 
.main_content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.main_content th {
    background: rgba(0,0,0,0.2);
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

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

.main_content tr:hover {
    background: rgba(255,255,255,0.02);
}

/* =========================================
   10. FAQ Section
   ========================================= */
#faq {
    margin-top: 3rem;
}

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

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

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

#faq .answer {
    padding: 1rem;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-border);
    background: rgba(0,0,0,0.1);
    /* Logic handled by JS class .hide, but here is base style */
    display: block;
    animation: slideDown 0.3s ease-out;
}

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   11. Footer
   ========================================= */
.footer {
    background-color: #000;
    border-top: 1px solid var(--color-border);
    padding-top: 3rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

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

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

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

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* =========================================
   12. Form Elements (Generic styling)
   ========================================= */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: #fff;
    font-family: inherit;
    transition: var(--transition-fast);
}

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

/* =========================================
   13. Helper Animations
   ========================================= */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 62, 62, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 62, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 62, 62, 0); }
}

.btn-regist {
    animation: pulse 2s infinite;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-body);
}
::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}
