
:root {
    /* Цветовая палитра */
    --color-primary: #f5a623;
    --color-primary-hover: #ffc107;
    --color-secondary: #e74c3c;
    --color-bg-dark: #121212;
    --color-bg-card: #1e1e1e;
    --color-bg-overlay: rgba(18, 18, 18, 0.95);
    --color-text-main: #e0e0e0;
    --color-text-muted: #a0a0a0;
    --color-border: #333333;
    --color-success: #2ecc71;
    
    /* Типографика */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-base: 16px;
    --line-height: 1.6;
    
    /* Размеры и отступы */
    --container-width: 1200px;
    --header-height: 70px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Эффекты */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(245, 166, 35, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

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

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

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

ul, ol {
    list-style-position: inside;
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

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;
}

/* Хедер */
header {
    background-color: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 0;
    position: relative;
    z-index: 100;
}

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

header .men1 a {
    display: block;
    width: 150px;
    height: 50px;
    background: url('https://placehold.co/150x50/1e1e1e/f5a623?text=JOYCASINO') no-repeat center/contain;
    transition: var(--transition);
}

header .men1 a:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

/* Мобильный/Навигационный хедер */
header.mob {
    position: sticky;
    top: 0;
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

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

/* Скрытие дубликата логотипа в навбаре на десктопе для чистоты, если нужно */
header.mob .men1 {
    display: none;
}

.menn {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

.menn .href {
    flex: 1;
    max-width: 200px;
}

.men3, .men4 {
    padding: 0.75rem 1.5rem;
    text-align: center;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    color: #fff;
    cursor: pointer;
    border: 1px solid transparent;
}

.men3 {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.men3:hover {
    background-color: var(--color-primary);
    color: #000;
    box-shadow: var(--shadow-glow);
}

.men4 {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #c0392b 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

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

/* Главный блок и слайдер */
.main {
    padding-bottom: 4rem;
}

.joyl-slide {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: linear-gradient(to bottom, var(--color-bg-dark), rgba(0,0,0,0.5)), 
                url('https://placehold.co/1920x600/111/333?text=Welcome+Bonus') no-repeat center top/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

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

.main1 {
    /* Placeholder for potential slider content */
    height: 100%;
}

/* Типографика контента */
h1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem !important;
    background: linear-gradient(90deg, #fff, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #fff;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

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

strong {
    color: #fff;
}

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

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

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

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(45deg, var(--color-primary), #f1c40f);
    color: #000;
    font-weight: 800;
    font-size: 1.125rem;
    border-radius: var(--radius-full);
    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: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(245, 166, 35, 0.6);
    color: #000;
}

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

/* Сайдбар */
.main-right {
    background-color: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-primary);
    position: sticky;
    top: 100px;
    text-align: center;
}

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

.main-right .href {
    display: block;
    width: 100%;
    height: 40px;
    background: url('https://placehold.co/200x40/f5a623/000?text=ZERKALO') no-repeat center/contain;
    margin: 0 auto;
    border-radius: var(--radius-sm);
}

/* Формы (общие стили, даже если их нет явно в HTML, для соответствия ТЗ) */
input[type="text"], 
input[type="email"], 
input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: #fff;
    margin-bottom: 1rem;
    transition: var(--transition);
}

input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

/* Футер */
footer {
    background-color: #000;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

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

.footer-top a[href="/"] {
    display: block;
    width: 120px;
    height: 40px;
    background: url('https://placehold.co/120x40/000/666?text=LOGO') no-repeat center/contain;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-top a[href="/"]:hover {
    opacity: 1;
}

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

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

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

.b-top-but {
    font-size: 0;
}

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

/* Адаптивность */
@media (max-width: 992px) {
    div[style*="display:flex"] {
        grid-template-columns: 1fr;
    }
    
    .main-right {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    header.mob .men1 {
        display: block; /* Показываем лого на мобильном */
        margin: 0 auto;
    }

    .menn {
        flex-direction: column;
        align-items: center;
    }
    
    .menn .href {
        max-width: 100%;
        width: 100%;
    }

    .men3, .men4 {
        width: 100%;
    }

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

    .joy-left {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
    }
}

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

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

/* Кастомизация скроллбара */
::-webkit-scrollbar {
    width: 10px;
}

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

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

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