
:root {
    /* Цветовая палитра */
    --primary-color: #f59e0b; /* Золотой для акцентов */
    --primary-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --secondary-color: #6366f1; /* Индиго для дополнительных элементов */
    --accent-color: #10b981; /* Зеленый для успеха/действия */
    
    --bg-body: #0f172a; /* Глубокий темный фон */
    --bg-surface: #1e293b; /* Светлее для карточек */
    --bg-surface-hover: #334155;
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-inverse: #0f172a;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-neon: 0 0 15px rgba(245, 158, 11, 0.3);

    /* Размеры и отступы */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    
    /* Типографика */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Сброс и базовые стили (Reset/Normalize) */
*, *::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;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

ul, ol {
    list-style: none;
}

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

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

/* Типографика контента */
h1, h2, h3 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
    margin-bottom: 2rem !important; /* Override inline styles */
    text-align: center;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-top: 3rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

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

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

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

.main-left ol li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

/* Хедер */
header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

/* Скрываем первый пустой хедер, оставляем .mob как основной */
header:not(.mob) {
    display: none;
}

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

/* Логотип/Меню 1 */
.men1 a {
    display: block;
    width: 150px;
    height: 50px;
    background: url('path/to/logo.png') no-repeat center/contain; /* Fallback */
    background-color: rgba(255,255,255,0.05); /* Placeholder visibility */
    border-radius: var(--radius-sm);
}

/* Навигация (Меню) */
.menn {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.menn a.href {
    display: block;
}

/* Кнопки в меню */
.men3, .men4 {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-base);
    text-align: center;
}

.men3 {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.men3:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.men4 {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    box-shadow: var(--shadow-neon);
}

.men4:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.5);
}

/* Hero Section (Слайдер) */
.joyl-slide {
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.7), var(--bg-body)), url('https://placehold.co/1920x600/1e293b/FFF?text=Casino+X') center/cover;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.jou-abs {
    width: 100%;
    position: relative;
    z-index: 2;
}

.main1 {
    /* Placeholder styles for banner content */
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

/* Исправление inline-стилей для Flexbox через атрибут-селектор для адаптивности */
div[style*="display:flex"] {
    display: grid !important;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

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

.joy-left > p:first-child {
    font-size: 1.2rem;
    color: var(--text-main);
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

/* Левая колонка (Основной текст) */
.main-left {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Сайдбар */
.main-right {
    position: sticky;
    top: 100px;
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    min-height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    /* Placeholder content styling if empty */
    background-image: linear-gradient(45deg, #1e293b 25%, #253045 25%, #253045 50%, #1e293b 50%, #1e293b 75%, #253045 75%, #253045 100%);
    background-size: 20px 20px;
}

/* Кнопки CTA */
.btn-box {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-inverse);
    background: var(--primary-gradient);
    border-radius: 50px;
    box-shadow: var(--shadow-neon);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    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::before {
    left: 100%;
}

.btn:active {
    transform: scale(0.98);
}

/* Формы (если будут добавлены динамически или в будущем) */
input[type="text"], 
input[type="email"], 
input[type="password"] {
    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-sm);
    color: var(--text-main);
    transition: var(--transition-base);
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.4);
}

/* Footer */
footer {
    background: #020617;
    padding: 3rem 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.menu-fo {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Кнопка "Наверх" */
#scroller {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 900;
    transition: var(--transition-base);
    opacity: 0.8;
}

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

.b-top-but {
    font-size: 0; /* Скрыть текст, можно заменить на иконку */
}

#scroller::after {
    content: "↑";
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
}

/* Адаптивность */

/* Планшеты (max-width: 1024px) */
@media (max-width: 1024px) {
    div[style*="display:flex"] {
        grid-template-columns: 1fr; /* Сайдбар вниз */
    }
    
    .main-right {
        margin-top: 2rem;
    }
}

/* Мобильные устройства (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    header.mob .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .menn {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .men3, .men4 {
        flex: 1;
        min-width: 100px;
        font-size: 0.8rem;
    }
    
    .joyl-slide {
        min-height: 250px;
        border-radius: 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .main-left {
        padding: 1.5rem;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    #scroller {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-left > * {
    animation: fadeIn 0.6s ease-out forwards;
}
