
:root {
    /* Цветовая палитра (Dark Luxury Theme) */
    --color-bg-body: #0f1115;
    --color-bg-card: #1c1f26;
    --color-bg-header: rgba(28, 31, 38, 0.95);
    
    --color-primary: #d6a136; /* Золотой */
    --color-primary-hover: #f3c258;
    --color-secondary: #22c55e; /* Изумрудный для кнопок/акцентов */
    --color-accent-red: #ef4444;
    
    --color-text-main: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-border: #2d3748;

    /* Типографика */
    --font-family-base: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
    
    /* Размеры и отступы */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    
    /* Эффекты */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 15px rgba(214, 161, 54, 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 {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    font-family: var(--font-family-base);
    line-height: var(--line-height-base);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Ссылки */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

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

/* Контейнер */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* === HEADER === */
header {
    background: var(--color-bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

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

/* Логотип */
.men1 a {
    display: block;
    width: 150px;
    height: 50px;
    background-image: url('https://placehold.co/150x50/1c1f26/d6a136?text=LOGO'); /* Плейсхолдер, так как картинки нет */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Мобильный хедер и навигация */
header.mob {
    display: block; /* Отображаем как основной хедер */
}

/* Навигационное меню (.menn) */
.menn {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Кнопки меню (.men3, .men4) */
.men3, .men4 {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-base);
    text-align: center;
    cursor: pointer;
}

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

.men3:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(214, 161, 54, 0.1);
}

.men4 {
    background: linear-gradient(135deg, var(--color-primary) 0%, #b8860b 100%);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(214, 161, 54, 0.4);
}

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

/* === MAIN CONTENT === */
.main {
    flex: 1;
    padding: 2rem 0;
}

/* Слайдер/Баннер (.joyl-slide) */
.joyl-slide {
    position: relative;
    width: 100%;
    min-height: 300px;
    background: radial-gradient(circle at center, #2d3748 0%, #0f1115 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
}

.main1 {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    /* Здесь предполагается фоновое изображение слайдера */
}

/* Типографика контента */
h1, h2, h3 {
    color: var(--color-text-main);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    color: var(--color-primary);
}

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

/* Layout Hacks для инлайн стилей в HTML */
/* Переопределяем inline flex для адаптивности */
div[style*="display:flex"] {
    display: flex !important;
    gap: 2rem;
}

/* Основной контент левая часть */
.joy-left, .main-left {
    flex: 3;
    min-width: 0; /* Fix flex overflow */
}

/* Сайдбар правая часть */
.main-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Кнопки в контенте */
.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;
    color: #fff;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #15803d 100%);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.6);
    color: #fff;
}

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

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

li {
    margin-bottom: 0.5rem;
}

li::marker {
    color: var(--color-primary);
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    font-size: 0.95rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background: rgba(214, 161, 54, 0.1);
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Accordion (FAQ) */
.accordion-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-base);
}

.accordion-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.accordion-item p strong em {
    display: block;
    color: var(--color-primary);
    font-style: normal;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Forms (Generic - based on inputs in registration logic) */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    font-family: inherit;
    transition: var(--transition-base);
    margin-bottom: 1rem;
}

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

/* === FOOTER === */
footer {
    background: #050608;
    border-top: 1px solid var(--color-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(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* === SCROLL TO TOP === */
#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 15px rgba(214, 161, 54, 0.5);
    transition: var(--transition-base);
    opacity: 0.8;
}

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

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

.b-top-but::after {
    content: '↑';
    font-size: 1.5rem;
    color: #000;
    font-weight: bold;
}

/* === ADAPTIVE DESIGN === */
@media (max-width: 992px) {
    div[style*="display:flex"] {
        flex-wrap: wrap;
    }
    
    .main-right {
        flex-basis: 100%;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .menn {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .men3, .men4 {
        flex: 1;
        min-width: 120px;
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    div[style*="display:flex"] {
        flex-direction: column !important; /* Force column on mobile */
        gap: 1rem;
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .joyl-slide {
        min-height: 200px;
    }
}
