
/* =========================================
   1. Reset & Variables
   ========================================= */
:root {
    /* Colors */
    --bg-body: #0f1219;
    --bg-card: #1a1e29;
    --bg-dark: #090b10;
    --bg-input: #131720;
    
    --primary-color: #ff4e00;
    --primary-gradient: linear-gradient(135deg, #ff4e00 0%, #ff8700 100%);
    --secondary-color: #ffd700;
    --secondary-gradient: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    --success-color: #00b09b;
    --success-gradient: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
    --accent-blue: #00c6ff;
    --accent-blue-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    
    --text-main: #ffffff;
    --text-secondary: #a0a5b9;
    --text-muted: #6c757d;
    
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --fs-base: 1rem;
    --fs-sm: 0.875rem;
    
    /* Spacing & Sizing */
    --container-width: 1200px;
    --gap: 1rem;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(255, 78, 0, 0.3);
}

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

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

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: var(--transition);
}

ul {
    list-style: none;
}

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

/* =========================================
   2. Layout System (Mini Bootstrap-like)
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

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

[class*="col-"], .col {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    position: relative;
}

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

.col-auto {
    flex: 0 0 auto;
    width: auto;
}

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

.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-left: 0; margin-right: 0; }
.no-gutters > .col, .no-gutters > [class*="col-"] { padding-left: 0; padding-right: 0; }

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

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

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

/* Helper display classes */
.d-none { display: none; }
.d-inline-block { display: inline-block; }

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

.btn-defolt {
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: inset 0 0 0 1px var(--border-color);
}

.btn-regist {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
    animation: pulse 2s infinite;
}

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

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

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

.btn-game-color {
    background: var(--secondary-gradient);
    color: #000;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-game-color:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

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

.logo {
    display: inline-block;
    width: 150px;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 50"><text x="50%" y="50%" fill="%23ff4e00" font-family="sans-serif" font-weight="900" font-size="30" text-anchor="middle" dominant-baseline="middle">AZINO777</text></svg>') no-repeat center;
    background-size: contain;
}

.open-menu {
    width: 40px;
    height: 40px;
    margin-left: 10px;
    background: var(--bg-input);
    position: relative;
    vertical-align: middle;
}
.open-menu::before, .open-menu::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: white;
}
.open-menu::before { top: 14px; }
.open-menu::after { bottom: 14px; box-shadow: 0 -6px 0 white; }

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

.navigation .item a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-bottom: 2px solid transparent;
}

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

.navigation .item a::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    opacity: 0.5;
}

.navigation .item a:hover::before {
    opacity: 1;
    box-shadow: 0 0 10px var(--primary-color);
}

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

.pre-header-dovnload::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--success-color);
}

.pre-header-dovnload-v2::before {
    background: var(--accent-blue);
}

.text-box {
    font-weight: 500;
    color: var(--text-main);
    margin-right: 1rem;
}

.button_pp {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1) url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 16l4-5h-3V4h-2v7H8l4 5zm0 2c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6z"/></svg>') center no-repeat;
    background-size: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition);
}

.button_pp:hover {
    background-color: var(--primary-color);
    transform: rotate(90deg);
}

/* Main Banner Carousel (Static Fallback) */
.owl-baner {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
}

.owl-baner .item {
    min-width: 100%;
    height: 300px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7)), url('https://placehold.co/1200x400/1a1e29/FFF?text=Jackpot+Bonus');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    position: relative;
}

.owl-baner .item .btn {
    font-size: 1.5rem;
    padding: 1em 2em;
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border: none;
}

/* =========================================
   6. Jackpot / Winners Ticker
   ========================================= */
.main_menu_winners {
    background: radial-gradient(circle at center, #2a2f3d 0%, var(--bg-body) 70%);
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.cifra {
    width: 1.8rem;
    height: 2.5rem;
    background: #000;
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    box-shadow: inset 0 0 5px rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.brecpoint {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: bold;
    margin: 0 2px;
}

.valuta.rubeli::before {
    content: '₽';
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-left: 0.5rem;
}

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

.games_list .col-6 {
    margin-bottom: 1.5rem;
}

.games_list .item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    padding-top: 70%; /* Aspect ratio */
    border: 1px solid transparent;
    transition: var(--transition);
}

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

/* Fake image background for games */
.games_list .item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, #2b3242 25%, #232836 25%, #232836 50%, #2b3242 50%, #2b3242 75%, #232836 75%, #232836 100%);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 0;
}

.games_list .item .title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover Overlay Buttons */
.games_list .item .btn {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    z-index: 2;
    transition: var(--transition);
    width: 80%;
    font-size: 0.75rem;
}

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

.games_list .item .plau-demo {
    top: 65%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}

.games_list .item:hover .btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* =========================================
   8. Main Content & Articles
   ========================================= */
.main_content {
    color: var(--text-secondary);
    padding: 2rem 0;
}

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

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

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

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

.main_content li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

blockquote {
    border-left: 4px solid var(--primary-color);
    background: rgba(255, 78, 0, 0.05);
    padding: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-main);
}

/* Casino Info Table Look */
.casino-info {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.casino-info ul {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.casino-info li {
    list-style: none;
    display: flex;
    align-items: flex-start;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.casino-info li strong {
    color: var(--text-main);
    margin-right: 0.5rem;
    min-width: 140px;
}

.casino-info .icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

/* =========================================
   9. Forms (Subscribe)
   ========================================= */
.content-form {
    background: linear-gradient(135deg, #1e2430, #131720);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    text-align: center;
    border: 1px solid var(--border-color);
}

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

.content-form .form-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.form-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .form-box {
        flex-direction: row;
    }
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

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

.btn-green {
    background: var(--success-gradient);
    color: white;
    width: 100%;
    border: none;
}

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

#faq h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-main);
}

#faq .item {
    background: var(--bg-card);
    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.03);
    position: relative;
    padding-right: 3rem;
    transition: var(--transition);
    color: var(--text-main);
}

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

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

#faq .question:not(.hide) + .answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

#faq .answer {
    padding: 1.2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.6;
    /* JS logic in HTML implies toggle class, CSS handles appearance */
}
#faq .answer.hide { display: none; }
#faq .question.hide::after { content: '+'; }
#faq .question:not(.hide)::after { content: '-'; color: var(--primary-color); }

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

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

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

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

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

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

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

/* =========================================
   13. Specific Mobile Adjustments
   ========================================= */
@media (max-width: 768px) {
    .header .row {
        flex-direction: row; /* Keep logo and menu on same line */
    }
    
    .pre-header-dovnload {
        flex-direction: column;
        text-align: center;
    }
    
    .pre-header-dovnload .text-box {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .main_menu_winners-call {
        transform: scale(0.8); /* Shrink ticker on mobile */
    }
    
    .games_list .col-6 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    .navigation.hide {
        display: none;
    }
    
    .navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    .navigation .item {
        width: 100%;
    }
    
    .navigation .item a {
        justify-content: flex-start;
        padding: 1.2rem;
    }
}
