/**
 * Файл: css/main.css
 * Назначение: Базовые стили сайта
 * Содержит: Сброс стилей, типографика, фоновая карусель, навигация, футер
 * Зависимости: Нет
 * Подключается: Всегда
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== ФОНОВАЯ КАРУСЕЛЬ ========== */
.background-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.bg-slide.active {
    opacity: 1;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

.bg-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 30px;
    z-index: 10;
}

.bg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bg-dot.active {
    background: #ffd966;
    width: 20px;
    border-radius: 10px;
}

/* ========== НАВИГАЦИЯ ========== */
.navbar {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-image {
    height: 40px;
}

.logo-text {
    line-height: 1.2;
}

.logo-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

.logo-subtitle {
    font-size: 0.7rem;
    opacity: 0.7;
    display: block;
}

.logo-subtitle {
    font-size: 0.7rem;
    opacity: 0.8;
    display: block;
    color: #ffffff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffd966;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

/* ========== ПОЛЬЗОВАТЕЛЬСКОЕ МЕНЮ ========== */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    text-align: right;
    font-size: 0.85rem;
}

.user-name {
    display: block;
    font-weight: 600;
}

.user-role {
    font-size: 0.7rem;
    opacity: 0.7;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffd966;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-decoration: none;
    color: #000;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

/* ========== ФУТЕР ========== */
.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 8px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #ffd966;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #aaa;
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== СТИЛИ ДЛЯ SELECT (ВЫПАДАЮЩИЕ СПИСКИ) ========== */
select {
    background: rgba(0, 0, 0, 0.9) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

select option {
    background: #1a1a1a !important;
    color: #ffffff !important;
}

select option:hover,
select option:focus,
select option:checked {
    background: #ffd966 !important;
    color: #000000 !important;
}