
:root {
    /* Цветовая палитра (Dark Casino Theme) */
    --c-bg-body: #0b0e17;
    --c-bg-card: #151a28;
    --c-bg-darker: #05070a;
    
    --c-primary: #ffc107; /* Золотой */
    --c-primary-hover: #ffca2c;
    --c-secondary: #e91e63; /* Малиновый акцент */
    --c-secondary-hover: #d81557;
    
    --c-text-main: #ffffff;
    --c-text-muted: #a0aec0;
    --c-text-gold: #ffd700;
    
    --c-border: rgba(255, 255, 255, 0.1);
    --c-shadow: rgba(0, 0, 0, 0.5);
    
    /* Размеры и отступы */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    
    /* Шрифты */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s 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(--c-bg-body);
    color: var(--c-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul, ol {
    list-style: none;
}

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

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

/* --- Header Styles --- */
header {
    background-color: var(--c-bg-card);
    border-bottom: 1px solid var(--c-border);
    padding: 1rem 0;
}

header.mob {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(21, 26, 40, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

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

/* Логотип (заглушка, так как изображение отсутствует) */
.men1 a {
    display: block;
    width: 150px;
    height: 40px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
    mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30'%3E%3Ctext y='25' font-size='25' font-weight='bold'%3EJOY%3C/text%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    background-color: var(--c-primary); /* fallback */
    border-radius: var(--radius-sm);
}

/* Навигация в шапке */
.menn {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.menn .href {
    display: inline-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;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

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

.men3:hover {
    background: var(--c-primary);
    color: var(--c-bg-darker);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
}

.men4 {
    background: linear-gradient(135deg, var(--c-secondary), #c2185b);
    color: white;
    border: 1px solid transparent;
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.3);
}

.men4:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(233, 30, 99, 0.5);
    filter: brightness(1.1);
}

/* --- Hero Section (.joyl-slide) --- */
.joyl-slide {
    position: relative;
    background: radial-gradient(circle at center, #2a3b55 0%, var(--c-bg-body) 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    overflow: hidden;
    border-bottom: 1px solid var(--c-border);
}

/* Абстрактный фон для слайдера */
.jou-abs {
    width: 100%;
    height: 100%;
}

.main1 {
    width: 100%;
    height: 300px;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg width="100%25" height="100%25" xmlns="http://www.w3.org/2000/svg"%3E%3Cdefs%3E%3Cpattern id="p" width="100" height="100" patternUnits="userSpaceOnUse"%3E%3Cpath d="M0 100 V 50 Q 25 25 50 50 t 50 0 V 100 z" fill="%23222" opacity="0.1"/%3E%3C/pattern%3E%3C/defs%3E%3Crect width="100%25" height="100%25" fill="url(%23p)" /%3E%3C/svg%3E');
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Main Content Layout --- */
.main {
    padding-bottom: 4rem;
}

/* Исправление inline-стиля flex для адаптивности */
.main .container > div[style*="flex"] {
    display: flex !important;
    flex-wrap: wrap;
    gap: 2rem;
}

.joy-left {
    flex: 1;
    min-width: 0; /* Для предотвращения переполнения flex-элемента */
    background-color: var(--c-bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid var(--c-border);
}

.main-right {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Если сайдбар пуст, скрываем его на мобильных, но даем стили заглушке */
.main-right:empty {
    display: none;
}

/* --- Typography & Content Styling --- */
h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--c-text-gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(to right, #ffd700, #ffecb3, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--c-text-main);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--c-secondary);
}

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

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

ul li, ol li {
    margin-bottom: 0.5rem;
    position: relative;
}

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

ol {
    counter-reset: item;
    list-style: none;
}

ol li {
    counter-increment: item;
}

ol li::before {
    content: counter(item) ".";
    color: var(--c-primary);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Выделения в тексте */
strong, b {
    color: var(--c-text-main);
    font-weight: 700;
}

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

/* --- Buttons in Content --- */
.btn-box {
    text-align: center;
    margin: 2rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--c-bg-darker);
    background: linear-gradient(45deg, var(--c-primary), #ffca2c);
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ffca2c, var(--c-primary));
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-fast);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.4);
    color: var(--c-bg-darker);
}

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

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

/* --- Footer --- */
footer {
    background-color: var(--c-bg-darker);
    border-top: 1px solid var(--c-border);
    padding: 3rem 0;
    margin-top: auto;
}

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

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

/* --- Scroll to Top Button --- */
#scroller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--c-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all var(--transition-fast);
    z-index: 900;
}

#scroller:hover {
    background-color: var(--c-secondary-hover);
    transform: translateY(-5px);
}

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

.b-top-but::after {
    content: '↑';
    font-size: 1.5rem;
    color: white;
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .main .container > div[style*="flex"] {
        flex-direction: column;
    }
    
    .main-right {
        width: 100%;
        order: -1; /* Сайдбар сверху на планшетах, если нужно, или убрать order */
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    header.mob .container {
        justify-content: center;
        flex-direction: column;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .menn {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .men3, .men4 {
        flex: 1;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .joy-left {
        padding: 1.5rem;
    }
    
    h1 {
        text-align: center;
        margin-top: 1rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* --- Form Elements Styles (Generic, as requested) --- */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--c-border);
    background-color: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    color: var(--c-text-main);
    font-family: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

/* Checkbox & Radio generic styles */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--c-primary);
    width: 1.2em;
    height: 1.2em;
    cursor: pointer;
}
