
:root {
    /* Цветовая палитра (Dark Theme / Cyberpunk Casino Vibe) */
    --bg-body: #0f111a;
    --bg-card: #1a1d2d;
    --bg-header: rgba(15, 17, 26, 0.95);
    
    --color-primary: #00d2ff; /* Неоновый голубой */
    --color-primary-dark: #009ac2;
    --color-secondary: #ff0055; /* Яркий розовый/красный */
    --color-secondary-dark: #cc0044;
    --color-accent: #ffd700; /* Золотой */
    
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dark: #0f111a;
    
    /* Размеры и отступы */
    --container-width: 1200px;
    --gap-md: 1.5rem;
    --gap-lg: 3rem;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-full: 9999px;
    
    /* Эффекты */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(0, 210, 255, 0.3);
    --transition-base: 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;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
    padding-left: 0;
}

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

/* --- Типографика --- */
h1, h2, h3 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Переопределение инлайн-стиля */
    margin-bottom: 1.5rem !important; 
    background: linear-gradient(90deg, #fff, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

strong, em {
    color: var(--text-main);
}

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

ul li::before {
    content: "•";
    color: var(--color-secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

ol {
    counter-reset: list-counter;
}

ol li {
    padding-left: 2rem;
}

ol li::before {
    counter-increment: list-counter;
    content: counter(list-counter) ".";
    color: var(--color-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

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

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

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

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

.men1 a {
    display: block;
    width: 150px;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30"><text y="20" font-family="sans-serif" font-weight="bold" font-size="20" fill="white">CASINO X</text></svg>') no-repeat center left;
    background-size: contain;
}

/* Mobile Header Styles */
.menn {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.menn .href {
    text-decoration: none;
}

/* Меню кнопки (Вход, Регистрация, Зеркало) */
.men3, .men4 {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    transition: var(--transition-base);
    cursor: pointer;
}

/* Вход и Зеркало - outline стиль */
.men3 {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.men3:hover {
    background: rgba(0, 210, 255, 0.1);
    box-shadow: var(--shadow-glow);
}

/* Регистрация - solid стиль */
.men4 {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.4);
}

.men4:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 85, 0.6);
}

/* --- Hero Section & Sliders --- */
.main {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.joyl-slide {
    position: relative;
    width: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #2a2a4a, #1a1a2e);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Имитация контента слайдера, так как картинок нет */
.joyl-slide::after {
    content: "Welcome Bonus 200%";
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
}

/* Ссылки-оверлеи в слайдере */
.joyl-slide .href {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* --- Content Layout --- */
/* Обработка инлайн flex контейнера */
div[style*="display:flex"] {
    display: grid !important;
    grid-template-columns: 1fr 300px; /* Основной контент + Сайдбар */
    gap: var(--gap-lg);
    align-items: start;
}

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

/* Интро текст над колонками */
.main > .container > .joy-left {
    margin-bottom: 2rem;
}

.main-left {
    /* Контент внутри левой колонки */
    width: 100%;
}

.main-right {
    position: sticky;
    top: 80px;
}

/* Баннер в сайдбаре */
.main-right .href {
    display: block;
    width: 100%;
    height: 400px;
    background: linear-gradient(to bottom, #2b32b2, #1488cc);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.main-right .href::before {
    content: "Играть сейчас";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* --- Buttons (CTA) --- */
.btn-box {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-dark);
    background: linear-gradient(45deg, var(--color-primary), #42e8e0);
    border-radius: var(--radius-full);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.6);
    color: var(--text-dark);
}

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

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

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

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

.menu-fo a {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

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

/* --- Scroll Top Button --- */
#scroller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition-base);
    opacity: 0.8;
}

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

.b-top-but {
    font-size: 0; /* Скрываем текст */
}

#scroller::after {
    content: "▲";
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    div[style*="display:flex"] {
        grid-template-columns: 1fr; /* Одна колонка на планшетах */
    }
    
    .main-right {
        display: none; /* Скрываем сайдбар или переносим вниз */
    }
}

@media (max-width: 768px) {
    header:not(.mob) {
        display: none;
    }
    header.mob {
        display: block;
        padding: 0.75rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .men1 {
        justify-content: center;
        margin-bottom: 0.75rem;
    }
    
    .menn {
        justify-content: center;
        gap: 0.5rem;
    }

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

    /* Исправление инлайн стилей flex для мобильных */
    div[style*="display:flex"] {
        display: flex !important;
        flex-direction: column !important;
    }

    h1 {
        font-size: 1.75rem;
        text-align: center;
    }

    .joy-left {
        padding: 1.25rem;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
    }
}

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

.joy-left, h2, p, .btn-box {
    animation: fadeIn 0.6s ease-out forwards;
}
