
/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* Colors */
    --primary-gradient: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
    --secondary-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --bg-dark: #0f1115;
    --bg-card: #1c1f26;
    --bg-input: #252830;
    --text-main: #e0e6ed;
    --text-muted: #949aa3;
    --accent-color: #ff5e62;
    --gold: #ffd700;
    --success: #38ef7d;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 4.5rem;
    --gap-sm: 0.5rem;
    --gap-md: 1rem;
    --gap-lg: 2rem;
    
    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 15px rgba(255, 94, 98, 0.4);
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

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

ul, ol {
    list-style: none;
}

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

/* =========================================
   2. GRID SYSTEM (Bootstrap Emulation)
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: var(--gap-md);
    padding-right: var(--gap-md);
}

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

.no-gutters {
    margin-right: 0;
    margin-left: 0;
}

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

[class*="col-"], .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%; }

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

/* Flex Utilities */
.d-flex { display: flex !important; }
.d-none { display: none !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.text-center { text-align: center !important; }

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

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.heder {
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.logo {
    display: inline-block;
    width: 150px;
    height: 50px;
    background: url('/path/to/logo.png') no-repeat center/contain; /* Fallback if generic */
    background-color: rgba(255, 255, 255, 0.05); /* Placeholder */
    border-radius: var(--radius-sm);
}

.navigation {
    background: var(--bg-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navigation-bg {
    padding: 1rem 0;
}

.navigation .item a.main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.navigation .item a.main:hover,
.navigation .item a.main.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-regist {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 94, 98, 0.3);
}

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

.btn-voiti {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    margin-left: 0.5rem;
}

.btn-voiti:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Mobile Menu Toggle */
.open-menu {
    width: 40px;
    height: 40px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-left: 0.5rem;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
}

.open-menu::before,
.open-menu::after {
    content: '';
    position: absolute;
    left: 10px;
    width: 20px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

.open-menu::before { top: 14px; }
.open-menu::after { bottom: 14px; }

/* =========================================
   4. WINNERS & TICKER
   ========================================= */
.main_menu_winners {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
    padding: 2rem 0;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.main_menu_winners-call {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
}

.cifra {
    background: #000;
    color: var(--gold);
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.25rem 0.4rem;
    border-radius: 2px;
    border: 1px solid #333;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    min-width: 1.8rem;
    text-align: center;
}

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

.valuta.rubeli::after {
    content: '₽';
    color: var(--success);
    font-weight: bold;
    margin-left: 0.5rem;
}

/* =========================================
   5. GAMES LIST
   ========================================= */
.games_list {
    padding: 3rem 0;
}

.games_list .item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

/* Pseudo-element for missing image in HTML */
.games_list .item::before {
    content: '';
    display: block;
    width: 100%;
    padding-top: 60%; /* Aspect Ratio */
    background: linear-gradient(45deg, #2b3242, #1c1f26);
    background-size: 200% 200%;
    animation: pulseBg 3s ease infinite;
}

@keyframes pulseBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.games_list .title {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    position: absolute;
    top: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.games_list .btn-box {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--bg-card);
    margin-top: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    background: rgba(15, 17, 21, 0.9);
    backdrop-filter: blur(2px);
}

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

.games_list .plau-game {
    background: var(--primary-gradient);
    color: #fff;
    width: 100%;
    box-shadow: 0 4px 10px rgba(255, 94, 98, 0.4);
}

.games_list .plau-demo {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 100%;
}

.games_list .plau-demo:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-game-color {
    background: var(--success);
    color: #0f1115;
    font-size: 1.2rem;
    padding: 1rem 3rem;
    box-shadow: 0 0 20px rgba(56, 239, 125, 0.3);
}

.btn-game-color:hover {
    background: #2ecc71;
    color: #fff;
    transform: scale(1.05);
}

/* =========================================
   6. CONTENT & TYPOGRAPHY
   ========================================= */
.main_content {
    background: #15181e;
    padding: 3rem 0;
    color: var(--text-muted);
}

.main_content h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.main_content h2, .main_content .h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #fff;
    margin: 2rem 0 1rem;
}

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

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

/* Table of Contents */
.box-pagenav {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.box-href-naw {
    font-weight: bold;
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.box-pagenav table,
.main_pg_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.box-pagenav td {
    padding: 0.5rem 0;
}

.box-pagenav a {
    color: var(--accent-color);
    text-decoration: none;
}

.box-pagenav a:hover {
    text-decoration: underline;
}

/* Data Tables */
.main_pg_table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}

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

.main_pg_table td:first-child {
    font-weight: 600;
    color: #fff;
    width: 30%;
}

/* =========================================
   7. FORMS & SUBSCRIBE
   ========================================= */
.content-form {
    background: linear-gradient(135deg, #1e222b 0%, #15181e 100%);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 3rem;
    text-align: center;
}

.subscribe-form .form-box {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto 0;
    flex-wrap: wrap;
}

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

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 50px;
    border: 1px solid transparent;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 94, 98, 0.1);
}

.btn-green {
    background: var(--secondary-gradient);
    color: #fff;
    width: 100%;
    border: none;
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.3);
}

.btn-green:hover {
    box-shadow: 0 6px 20px rgba(56, 239, 125, 0.5);
    transform: translateY(-2px);
}

/* =========================================
   8. BANNERS & ALERTS
   ========================================= */
.pre-header-dovnload {
    background: rgba(255, 153, 102, 0.1);
    border: 1px solid rgba(255, 153, 102, 0.2);
    color: #ff9966;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.button_pp {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='%23ff9966' d='M9.7 18.9L12.7 15.6L18.7 20C19.3 20.3 20 20 20.1 19.3L22.8 6.5C23.1 5.3 22.3 4.5 21.3 4.9L3.5 11.8C2.7 12.1 2.7 13.2 3.7 13.5L8.2 14.9L18.6 8.3C19.1 8 19.5 8.2 19.1 8.6L10.7 16.2L9.7 18.9Z'/%3E%3C/svg%3E") no-repeat center;
    width: 24px;
    height: 24px;
    display: inline-block;
    transition: var(--transition);
}

.button_pp:hover {
    transform: scale(1.2) rotate(-10deg);
}

/* Owl Carousel Mockup */
.baner {
    margin-bottom: 2rem;
}

.owl-baner .item {
    background: linear-gradient(to right, #434343 0%, black 100%);
    border-radius: var(--radius-lg);
    height: 300px; /* Min height for visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.owl-baner .item::after {
    content: 'BONUS 777 RUB';
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255,255,255,0.05);
    position: absolute;
    transform: rotate(-10deg);
}

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

#faq .item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

#faq .item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.question {
    display: block;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.answer {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   10. FOOTER
   ========================================= */
.footer {
    background: #0a0b0e;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: auto;
}

.footer a {
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

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

.footer span {
    color: #fff;
    font-weight: bold;
    margin-right: 0.5rem;
}

.footer-content p {
    opacity: 0.6;
    font-size: 0.8rem;
}

/* =========================================
   11. MEDIA QUERIES (Mobile Adaptation)
   ========================================= */
@media (max-width: 768px) {
    :root {
        --header-height: 3.5rem;
    }

    .heder {
        padding: 0.5rem 0;
    }
    
    .btn-regist, .btn-voiti {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .games_list .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0.25rem;
    }
    
    .games_list .title {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .main_content {
        padding: 1.5rem 0;
    }
    
    .content-form {
        padding: 1.5rem;
    }
    
    .subscribe-form .form-box {
        flex-direction: column;
    }

    .main_pg_table {
        display: block;
        overflow-x: auto;
    }
    
    .pre-header-dovnload-pk {
        display: none !important;
    }
    
    /* Hide desktop nav, assume mobile menu script handles styling or use simple stack */
    .navigation.d-lg-block {
        display: none !important;
    }
}
