
/* ==========================================================================
   1. RESET & VARIABLES
   ========================================================================== */
:root {
    /* Colors */
    --color-bg-body: #0f1016;
    --color-bg-card: #1c1f2b;
    --color-bg-dark: #0a0b10;
    --color-primary: #ff3d00;
    --color-primary-dark: #c42e00;
    --color-secondary: #00e676;
    --color-accent: #ffd700;
    --color-text-main: #ffffff;
    --color-text-muted: #8b9bb4;
    --color-border: #2a2f45;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ff512f 0%, #dd2476 100%);
    --gradient-gold: linear-gradient(135deg, #fce38a 0%, #f38181 100%);
    --gradient-dark: linear-gradient(to bottom, #1c1f2b, #0f1016);

    /* Typography */
    --font-main: 'Roboto', 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --spacer-xs: 0.25rem;
    --spacer-sm: 0.5rem;
    --spacer-md: 1rem;
    --spacer-lg: 2rem;
    --spacer-xl: 4rem;

    /* UI Elements */
    --radius-sm: 0.3rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --shadow-card: 0 10px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 15px 30px rgba(255, 61, 0, 0.25);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::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(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

ul, ol {
    list-style: none;
}

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

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

/* ==========================================================================
   2. GRID SYSTEM & LAYOUT
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

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

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

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

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

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

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

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

@media (min-width: 768px) {
    .d-md-block { display: block !important; }
    .d-md-none { display: none !important; }
    .col-md-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .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; max-width: 100%; }
}

/* ==========================================================================
   3. BUTTONS & UI ELEMENTS
   ========================================================================== */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-defolt {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 81, 47, 0.4);
}

.btn-defolt:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 81, 47, 0.6);
}

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

.btn-regist {
    background: var(--color-secondary);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4);
}

.btn-regist:hover {
    background: #00c853;
    color: #fff;
}

.btn-voiti {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-text-main);
    box-shadow: none;
}

.btn-voiti:hover {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 61, 0, 0.4);
}

.btn-game-color {
    background: transparent;
    border: 1px solid var(--color-text-muted);
    color: var(--color-text-muted);
    min-width: 200px;
}

.btn-game-color:hover {
    border-color: var(--color-text-main);
    color: var(--color-text-main);
    background: rgba(255,255,255,0.05);
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.heder {
    background: rgba(28, 31, 43, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacer-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.header_navigation2 {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

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

.open-menu {
    width: 40px;
    height: 40px;
    background: var(--color-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.open-menu::before {
    content: "☰";
    font-size: 1.5rem;
}

/* Secondary Navigation */
.navigation {
    background: var(--color-bg-dark);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 900;
}

.navigation-bg .item {
    text-align: center;
    padding: 1rem;
}

.navigation-bg a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    position: relative;
    padding-bottom: 5px;
}

.navigation-bg .activ a,
.navigation-bg a:hover {
    color: var(--color-primary);
}

.navigation-bg .activ a::after,
.navigation-bg a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

/* ==========================================================================
   5. BANNERS & PROMOS
   ========================================================================== */
.pre-header-dovnload {
    background: var(--gradient-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pre-header-dovnload .text-box {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.button_pp {
    display: block;
    width: 40px;
    height: 40px;
    background: url('download-icon.svg') no-repeat center, var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.baner .owl-carousel .item {
    min-height: 300px;
    background-color: var(--color-bg-card);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Simulate banner image */
    background-image: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.baner .owl-carousel .item::before {
    content: 'BANNER AREA';
    color: rgba(255,255,255,0.1);
    font-size: 3rem;
    font-weight: 900;
}

/* ==========================================================================
   6. WINNERS TICKER
   ========================================================================== */
.main_menu_winners {
    background: linear-gradient(to right, #111, #222, #111);
    border-top: 1px solid var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
    margin-top: 2rem;
    padding: 1.5rem 0;
    box-shadow: 0 0 20px rgba(255, 61, 0, 0.1);
}

.menu_winners-title {
    margin-bottom: 1rem;
}

.main_menu_winners-call {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    background: #000;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid #333;
}

.cifra {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #222;
    margin: 0 1px;
    padding: 0 5px;
    border-radius: 2px;
    min-width: 20px;
}

.valuta.rubeli::after {
    content: "₽";
    margin-left: 5px;
}

/* ==========================================================================
   7. GAMES GRID
   ========================================================================== */
.games_list {
    padding: 2rem 0;
}

.games_list .item {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    aspect-ratio: 4/3; /* Enforce game card aspect ratio */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

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

/* Placeholder for game image */
.games_list .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #2b3242 25%, #363d50 50%, #2b3242 75%);
    background-size: 200% 200%;
    animation: shimmer 10s infinite linear;
    z-index: 0;
}

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

.games_list .title {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    pointer-events: none;
}

/* Buttons overlay on hover */
.games_list .item .btn {
    position: relative;
    z-index: 2;
    margin: 0.25rem;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

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

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

.games_list .item .plau-demo:hover {
    background: rgba(255,255,255,0.4);
}

/* Overlay darkener on hover */
.games_list .item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

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

/* Flex container for buttons inside card */
.games_list .item {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-top: 40px; /* Space for title */
}

/* ==========================================================================
   8. CONTENT & TYPOGRAPHY
   ========================================================================== */
.main_content {
    background: var(--color-bg-card);
    padding: var(--spacer-xl) 0;
    margin-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.main_content h1,
.main_content h2,
.main_content h3 {
    color: var(--color-text-main);
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.main_content h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main_content h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-top: 2rem;
}

.main_content p {
    color: var(--color-text-muted);
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

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

.main_content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

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

.main_content a {
    color: var(--color-primary);
    border-bottom: 1px dashed var(--color-primary);
}

.main_content a:hover {
    color: var(--color-accent);
    border-bottom-style: solid;
}

/* ==========================================================================
   9. FORMS & SUBSCRIPTION
   ========================================================================== */
.content-form {
    margin: 2rem 0 3rem;
}

.form {
    background: linear-gradient(135deg, #232736 0%, #171a25 100%);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.form::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--color-primary);
    filter: blur(80px);
    opacity: 0.1;
    border-radius: 50%;
}

.form .h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.form-box {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

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

.form-group-submit .btn {
    width: 100%;
    height: 100%;
}

.status-message.error { color: #ff3d00; font-size: 0.85rem; margin-top: 5px; }
.status-message.success { color: #00c853; font-size: 0.85rem; margin-top: 5px; }

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

#faq .item {
    background: rgba(255,255,255,0.03);
    margin-bottom: 0.8rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.question {
    display: block;
    padding: 1.2rem;
    cursor: pointer;
    position: relative;
    padding-right: 3rem;
    font-weight: 600;
    color: #fff;
    transition: var(--transition);
}

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

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

/* Hide/Show logic handled by JS, but basic visual states here */
.question.hide::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg);
}
.question:not(.hide)::after {
    content: '+';
}

.answer {
    padding: 0 1.2rem 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.answer.hide {
    display: none;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.footer {
    background: #050507;
    border-top: 1px solid #1a1e29;
    padding-top: 3rem;
    font-size: 0.9rem;
    color: #5d6677;
}

.footer-content {
    margin: 0 auto;
}

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

.footer span {
    color: var(--color-text-main);
    font-weight: 600;
}

.footer .title {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   12. RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 991px) {
    .header_navigation2 {
        display: none; /* Hide top nav on mobile/tablet if not needed or collapsed */
    }
    
    .games_list .item {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {
    :root {
        --spacer-xl: 2rem;
    }
    
    .heder {
        padding: 0.5rem 0;
    }
    
    .header_navigation2 {
        display: none;
    }
    
    .logo {
        width: 120px;
        height: 40px;
    }

    .pre-header-dovnload {
        flex-direction: column;
        text-align: center;
    }
    
    .navigation-bg {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .navigation-bg .item {
        flex: 0 0 auto;
        min-width: 120px;
    }
    
    .games_list .item .btn {
        opacity: 1;
        transform: translateY(0);
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .games_list .item::after {
        background: rgba(0,0,0,0.3);
        opacity: 1;
    }

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