
:root {
    /* Цветовая палитра - Dark Casino Theme */
    --c-bg-main: #0b0e14;
    --c-bg-secondary: #151a23;
    --c-bg-card: #1c2331;
    --c-primary: #ffcc00;
    --c-primary-hover: #ffd633;
    --c-accent: #e94560;
    --c-accent-hover: #ff2e51;
    --c-text-main: #ffffff;
    --c-text-secondary: #a0aec0;
    --c-border: #2d3748;
    --c-success: #48bb78;
    
    /* Типографика и размеры */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --container-width: 1200px;
    --header-height: 4.5rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --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(255, 204, 0, 0.3);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

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

/* 3. Header Styling */
header {
    background: rgba(21, 26, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Логотип */
.men1 a {
    display: block;
    width: 150px;
    height: 40px;
    background: url('path/to/logo.png') no-repeat center/contain; /* Fallback */
    background-color: var(--c-primary); /* Placeholder color if img missing */
    mask: url('https://upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Joycasino_logo.png/640px-Joycasino_logo.png') no-repeat center/contain;
    -webkit-mask: url('https://upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Joycasino_logo.png/640px-Joycasino_logo.png') no-repeat center/contain;
}

/* Мобильный хедер */
header.mob {
    display: none; /* Скрываем по умолчанию, покажем в медиа-запросах */
    background: var(--c-bg-secondary);
    padding: 0.75rem 0;
}

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

.menn {
    display: flex;
    gap: 0.75rem;
}

/* Кнопки меню (Вход/Регистрация) */
.men3, .men4 {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-fast);
}

.men3 {
    background: transparent;
    border: 1px solid var(--c-primary);
    color: var(--c-primary);
}

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

.men4 {
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-hover));
    color: white;
    box-shadow: 0 4px 10px rgba(233, 69, 96, 0.4);
}

.men4:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(233, 69, 96, 0.6);
}

/* 4. Hero Section (.joyl-slide) */
.joyl-slide {
    position: relative;
    min-height: 400px;
    background: radial-gradient(circle at center, #2a3b55 0%, var(--c-bg-main) 100%);
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.joyl-slide::before {
    content: 'JOYCASINO';
    position: absolute;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    z-index: 1;
    pointer-events: none;
}

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

/* 5. Typography */
h1, h2, h3 {
    color: var(--c-text-main);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem) !important; /* Override inline style */
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--c-primary), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem !important;
    text-align: center;
}

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

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

strong, b {
    color: var(--c-text-main);
    font-weight: 700;
}

/* Списки */
ol, ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--c-text-secondary);
}

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

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

/* 6. Main Content Area & Layout */
/* Переопределение inline стилей для flex контейнера */
.container > div[style*="display:flex"] {
    display: grid !important;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

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

.joy-left > p:first-child {
    font-size: 1.2rem;
    color: var(--c-text-main);
    margin-bottom: 2rem;
}

/* Sidebar (.main-right) */
.main-right {
    background: linear-gradient(160deg, var(--c-bg-card) 0%, #162033 100%);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-primary);
    position: sticky;
    top: 6rem;
    text-align: center;
    color: var(--c-text-main);
    box-shadow: var(--shadow-glow);
    animation: fadeIn 0.5s ease-out;
}

.main-right b {
    display: block;
    font-size: 1.5rem;
    color: var(--c-primary);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.main-right a.href {
    display: block;
    width: 100%;
    height: 200px;
    background: #000; /* Placeholder for ad banner */
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    background: url('https://via.placeholder.com/300x200?text=BONUS') center/cover;
}

/* 7. Buttons (Call to Action) */
.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.125rem;
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--c-primary) 0%, #ffeb3b 100%);
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(255, 204, 0, 0.4);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.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: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 204, 0, 0.6);
}

.btn:hover::before {
    left: 100%;
}

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

/* 8. Forms (Generic Styling) */
input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--c-bg-secondary);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    color: var(--c-text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    margin-bottom: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.2);
}

/* 9. Footer */
footer {
    background: var(--c-bg-secondary);
    border-top: 1px solid var(--c-border);
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
}

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

.menu-fo {
    color: var(--c-text-secondary);
    font-size: 0.875rem;
    opacity: 0.8;
}

/* 10. Scroll to Top */
#scroller {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--c-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition-fast);
    z-index: 90;
    opacity: 0.9;
}

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

.b-top-but {
    font-size: 0; /* Hide text, use icon instead */
}

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

/* 11. Responsive Design */
@media (max-width: 1024px) {
    .container > div[style*="display:flex"] {
        grid-template-columns: 1fr; /* Stack layout on tablets */
    }
    
    .main-right {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    /* Скрываем десктоп хедер, показываем мобильный */
    header:not(.mob) {
        display: none;
    }
    
    header.mob {
        display: block;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    /* Адаптация основного контента */
    .container > div[style*="display:flex"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem;
    }

    .joy-left {
        padding: 1.25rem;
    }

    .btn {
        width: 100%;
        padding: 1rem;
    }

    /* Шрифт для мобильных */
    html {
        font-size: 14px;
    }
    
    .menn {
        gap: 0.5rem;
    }
    
    .men3, .men4 {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    /* Скрыть лого в мобильной версии если мало места */
    header.mob .men1 {
        transform: scale(0.8);
        transform-origin: left;
    }
}

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

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