
/* =========================================
   1. Reset & Variables
   ========================================= */
:root {
    /* Цветовая палитра (Dark Luxury Theme) */
    --color-bg-body: #0f172a;
    --color-bg-card: #1e293b;
    --color-bg-darker: #020617;
    
    --color-primary: #f59e0b; /* Золотой/Янтарный */
    --color-primary-hover: #d97706;
    --color-accent: #3b82f6; /* Яркий синий */
    
    --color-text-main: #f1f5f9;
    --color-text-muted: #94a3b8;
    
    --gradient-primary: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-dark: linear-gradient(180deg, rgba(30,41,59,0.9) 0%, rgba(15,23,42,1) 100%);
    
    /* Размеры и отступы */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    
    --border-radius: 0.75rem;
    --border-radius-lg: 1.5rem;
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(245, 158, 11, 0.3);
    
    /* Типографика */
    --font-family: '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 {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

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

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

ul, ol {
    list-style-position: inside;
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-sm);
}

li {
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

/* =========================================
   2. Layout & Container
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* =========================================
   3. Header Styling
   ========================================= */
header {
    background-color: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.men1 a {
    display: block;
    width: 150px;
    height: 50px;
    background: url('https://placehold.co/150x50/f59e0b/ffffff?text=CASINO+X') no-repeat center/contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Навигация (Header Mob & Menus) */
.header.mob {
    margin-top: 0;
    background: var(--color-bg-darker);
}

.menn {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    align-items: center;
}

.menn .href {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.men3, .men4 {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    background: rgba(255,255,255,0.03);
    color: var(--color-text-main);
    transition: var(--transition-base);
}

.men4 {
    background: var(--color-primary);
    color: var(--color-bg-darker);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.href:hover .men3 {
    background: rgba(255,255,255,0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

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

/* =========================================
   4. Hero / Slider Section
   ========================================= */
.joyl-slide {
    position: relative;
    min-height: 400px;
    background: linear-gradient(rgba(15, 23, 42, 0.7), var(--color-bg-body)), 
                url('https://placehold.co/1920x600/1e293b/475569?text=Casino+Background') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.main1 {
    width: 100%;
    height: 100%;
}

.joyl-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--color-bg-body), transparent);
}

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

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-primary);
    text-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
    margin-bottom: var(--spacing-md) !important;
    text-align: center;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-text-main);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    padding-left: 1rem;
    border-left: 4px solid var(--color-primary);
}

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

strong em {
    color: var(--color-primary);
    font-style: normal;
    font-weight: 700;
}

/* Обертка для контента и сайдбара (Override inline styles) */
div[style*="display:flex"] {
    display: grid !important;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-md);
    align-items: start;
}

.joy-left {
    background: var(--color-bg-card);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Сайдбар */
.main-right {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.main-right a {
    display: block;
    width: 100%;
    height: 300px;
    background: url('https://placehold.co/300x300/3b82f6/ffffff?text=Promo+Banner') center/cover;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    opacity: 0.9;
}

.main-right a:hover {
    opacity: 1;
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* =========================================
   6. Button Styles
   ========================================= */
.btn-box {
    display: flex;
    justify-content: center;
    margin: var(--spacing-md) 0;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-bg-darker);
    background: var(--gradient-primary);
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-base);
    z-index: -1;
}

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

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

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

/* =========================================
   7. Footer Styling
   ========================================= */
footer {
    background-color: var(--color-bg-darker);
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: var(--spacing-lg);
    text-align: center;
}

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

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

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

.b-top-but {
    font-size: 0; /* Скрываем текст, добавляем иконку CSS */
}

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

/* =========================================
   9. Form Elements (Generic styling)
   ========================================= */
input[type="text"], 
input[type="email"], 
input[type="password"], 
textarea, 
select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--color-text-main);
    font-family: inherit;
    transition: var(--transition-base);
    margin-bottom: 1rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}

/* =========================================
   10. Animations
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.joy-left, .main-right, h1, h2 {
    animation: fadeIn 0.6s ease-out forwards;
}

/* =========================================
   11. Responsiveness
   ========================================= */
@media (max-width: 900px) {
    div[style*="display:flex"] {
        grid-template-columns: 1fr; /* Стак колонок */
    }
    
    .main-right {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        position: static;
        margin-top: var(--spacing-md);
    }
    
    .main-right a {
        height: 150px;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
    }

    .menn {
        justify-content: center;
    }
    
    .men3, .men4 {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

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

    .joy-left {
        padding: var(--spacing-sm);
    }
    
    h1 {
        margin-top: var(--spacing-sm);
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem;
        font-size: 1rem;
    }
}
