
:root {
    /* Цветовая палитра */
    --color-bg-main: #0f1115;
    --color-bg-card: #181b21;
    --color-bg-secondary: #232730;
    --color-text-primary: #e2e8f0;
    --color-text-secondary: #94a3b8;
    --color-accent: #f59e0b; /* Gold */
    --color-accent-hover: #d97706;
    --color-primary: #6366f1; /* Indigo */
    --color-secondary: #ec4899; /* Pink */
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--color-accent) 0%, #ef4444 100%);
    --gradient-dark: linear-gradient(to bottom, rgba(24, 27, 33, 0.9), rgba(15, 17, 21, 1));

    /* Размеры и отступы */
    --container-width: 1200px;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --shadow-card: 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);
    
    /* Типографика */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Сброс и базовые стили */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

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

a:hover {
    color: var(--color-secondary);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

/* Контейнер */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Типографика */
h1 {
    font-size: clamp(1.8rem, 5vw, 3rem) !important; /* Переопределение инлайн стиля */
    font-weight: 800;
    margin-bottom: 1.5rem !important;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin: 2rem 0 1rem;
    color: #fff;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    border-radius: var(--radius-sm);
}

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

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

ul li, ol li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.5rem;
    color: var(--color-text-secondary);
}

ul li::before {
    content: '•';
    color: var(--color-accent);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

ol {
    list-style: decimal;
    padding-left: 2rem;
}

ol li::marker {
    color: var(--color-accent);
    font-weight: bold;
}

/* Header */
header {
    background-color: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.men1 a {
    display: block;
    width: 150px;
    height: 50px;
    background: linear-gradient(90deg, #333, #444); /* Placeholder logo */
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.men1 a::after {
    content: 'CASINO X';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Mobile Header */
header.mob {
    display: none; /* Скрыто по умолчанию на десктопе */
}

@media (max-width: 768px) {
    header {
        display: none;
    }
    
    header.mob {
        display: block;
        padding: 0.5rem 0;
    }
    
    header.mob .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .menn {
        display: flex;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }
    
    .men3, .men4 {
        padding: 0.5rem 1rem;
        background: var(--color-bg-secondary);
        border-radius: var(--radius-sm);
        font-size: 0.9rem;
        color: #fff;
        transition: var(--transition-base);
    }
    
    .men4 {
        background: var(--color-accent);
        color: #000;
        font-weight: bold;
    }
}

/* Hero Section / Slider */
.joyl-slide {
    position: relative;
    padding: 4rem 0;
    background: radial-gradient(circle at center, #2a303c 0%, var(--color-bg-main) 70%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main1 {
    width: 100%;
    height: 200px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%231a1d24" width="100" height="100"/><text fill="%232c323d" x="50" y="50" font-family="sans-serif" font-size="20" text-anchor="middle" alignment-baseline="middle">BANNER AREA</text></svg>');
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* Основной контент */
.main {
    padding-bottom: 4rem;
}

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

/* Layout: Sidebar handling */
/* HTML structure uses inline styles for flex. We target that. */
div[style*="display:flex"] {
    display: flex !important;
    gap: 2rem;
    align-items: flex-start;
}

.main-left {
    flex: 1;
    min-width: 0; /* Fix flex overflow issues */
}

.main-right {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    background: var(--color-bg-secondary);
    min-height: 400px; /* Placeholder styling */
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-right::after {
    content: 'SIDEBAR';
    color: rgba(255,255,255,0.2);
    font-weight: bold;
}

/* Кнопки */
.btn-box {
    margin: 2rem 0;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-base);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ef4444 0%, var(--color-accent) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.4);
    color: #fff;
}

.btn:hover::before {
    opacity: 1;
}

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

/* Таблицы (если будут в контенте) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

th {
    background-color: rgba(0,0,0,0.2);
    color: var(--color-accent);
    font-weight: 600;
}

/* Forms Styling */
input, select, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: #fff;
    margin-bottom: 1rem;
    transition: var(--transition-base);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Footer */
footer {
    background-color: #000;
    padding: 3rem 0;
    border-top: 2px solid var(--color-accent);
    margin-top: 4rem;
    text-align: center;
}

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

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

/* Scroll to Top */
#scroller {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-base);
    z-index: 999;
    font-size: 0; /* Hide text, maybe add icon via pseudo */
}

#scroller::before {
    content: '↑';
    font-size: 1.5rem;
    font-weight: bold;
}

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

/* Адаптивность */
@media (max-width: 900px) {
    div[style*="display:flex"] {
        flex-direction: column !important;
    }
    
    .main-right {
        width: 100%;
        position: static;
        margin-top: 2rem;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    h1 {
        text-align: center;
    }

    .joy-left {
        padding: 1.5rem;
    }

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

    #scroller {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-main);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}
