
:root {
    /* Colors - Dark Casino Theme */
    --c-bg-body: #0f172a;
    --c-bg-card: #1e293b;
    --c-bg-dark: #020617;
    --c-text-primary: #f8fafc;
    --c-text-secondary: #94a3b8;
    
    /* Accents */
    --c-accent-1: #f59e0b; /* Gold */
    --c-accent-1-hover: #d97706;
    --c-accent-2: #3b82f6; /* Blue */
    --c-accent-grad-start: #f59e0b;
    --c-accent-grad-end: #ef4444; /* Gold to Red */

    /* Spacing & Sizes */
    --container-width: 1200px;
    --gap-md: 1.5rem;
    --gap-lg: 3rem;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 15px rgba(245, 158, 11, 0.3);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* 1. Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%; /* ~16px */
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

/* 2. Layout & Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* 3. Header Styles */
header {
    background: rgba(15, 23, 42, 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;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Placeholder */
.men1 a {
    display: block;
    width: 150px;
    height: 40px;
    background: linear-gradient(90deg, var(--c-text-secondary), var(--c-text-primary));
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 30" xmlns="http://www.w3.org/2000/svg"><text x="0" y="25" font-family="sans-serif" font-weight="900" font-size="25">CASINO X</text></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 30" xmlns="http://www.w3.org/2000/svg"><text x="0" y="25" font-family="sans-serif" font-weight="900" font-size="25">CASINO X</text></svg>');
    mask-repeat: no-repeat;
    background-color: var(--c-accent-1);
}

/* Navigation Links */
.menn {
    display: flex;
    gap: 1rem;
}

.men3, .men4 {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
}

.men3 {
    background-color: transparent;
    border: 1px solid var(--c-accent-2);
    color: var(--c-accent-2);
}

.men3:hover {
    background-color: var(--c-accent-2);
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.men4 {
    background: linear-gradient(135deg, var(--c-accent-grad-start), var(--c-accent-grad-end));
    color: var(--c-bg-dark);
    box-shadow: var(--shadow-glow);
}

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

/* 4. Hero Section */
.joyl-slide {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at center, #2e1065 0%, var(--c-bg-body) 70%);
    margin-bottom: var(--gap-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}

.joyl-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.jou-abs {
    width: 100%;
    z-index: 2;
    text-align: center;
}

/* 5. Main Content Area */
.main {
    padding-bottom: var(--gap-lg);
}

/* Typography */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem !important;
    text-align: center;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--c-accent-1);
    margin: 2rem 0 1rem;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--c-accent-2);
}

p {
    margin-bottom: 1.25rem;
    color: var(--c-text-secondary);
    font-size: 1.05rem;
}

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

ul li {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    color: var(--c-text-primary);
}

ul li::before {
    content: '►';
    position: absolute;
    left: 0;
    color: var(--c-accent-1);
    font-size: 0.8rem;
    top: 3px;
}

/* Flexbox Layout Fix for Inline Style */
/* Targeting the div with style="display:flex;flex-direction:row" */
.container > div[style*="display:flex"] {
    display: flex !important;
    flex-direction: row;
    gap: var(--gap-lg);
    align-items: flex-start;
}

/* Left Content Column */
.joy-left {
    flex: 1;
    min-width: 0; /* Fix flex overflow */
}

.main-left {
    background-color: var(--c-bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Call to Action Button */
.btn-box {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--c-accent-grad-start), var(--c-accent-grad-end));
    color: var(--c-bg-dark);
    padding: 1rem 2.5rem;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 50px;
    text-transform: uppercase;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
}

.btn:hover::after {
    left: 100%;
}

/* Sidebar (.main-right) */
.main-right {
    width: 300px;
    flex-shrink: 0;
    background-color: var(--c-bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    position: sticky;
    top: 90px;
    border: 1px solid var(--c-accent-2);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
    text-align: center;
}

.main-right b {
    display: block;
    color: var(--c-accent-1);
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

/* Empty links in sidebar (Mirror button placeholder) */
.main-right .href {
    display: block;
    height: 50px;
    background: var(--c-accent-2);
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    position: relative;
    cursor: pointer;
}

.main-right .href::before {
    content: 'АКТУАЛЬНОЕ ЗЕРКАЛО';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.main-right .href:hover {
    background: #2563eb;
}

/* 6. Footer */
footer {
    background-color: var(--c-bg-dark);
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

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

/* 7. Scroll Top Button */
#scroller {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--c-accent-2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    opacity: 0.8;
}

#scroller:hover {
    opacity: 1;
    transform: translateY(-5px);
    background-color: var(--c-accent-1);
}

.b-top-but {
    font-size: 0; /* Hide text, use icon */
}

#scroller::after {
    content: '▲';
    font-size: 1.2rem;
}

/* 8. Responsive Design */
@media (max-width: 900px) {
    .container > div[style*="display:flex"] {
        flex-direction: column !important;
    }

    .main-right {
        width: 100%;
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .menn {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .joyl-slide {
        min-height: 250px;
    }

    .main-left {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
}
