/* ======== ДЕФОЛТНЫЙ ФОН ======== */
body {
    margin: 0;
    padding: 80px 0 60px 0; /* отступ под фиксированный хедер и футер */
    font-family: Arial, sans-serif;
    color: #ddd;
    position: relative;
    background: url('/public/assets/bg_default.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* ======== ФОНОВЫЕ КЛАССЫ ======== */
body.bg-main {
    background: url('/public/assets/bg_main.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
}

body.bg-quests {
    background: url('/public/assets/bg_quests.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
}

body.bg-contests {
    background: url('/public/assets/bg_contests.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
}

body.bg-about {
    background: url('/public/assets/bg_about.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
}

body.bg-support {
    background: url('/public/assets/bg_support.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
}

body.bg-contacts {
    background: url('/public/assets/bg_contacts.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
}

body.bg-rules {
    background: url('/public/assets/bg_rules.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
}

body.bg-privacy {
    background: url('/public/assets/bg_privacy.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
}

/* затемнение фона */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: -1;
}

/* ======== HEADER (АДАПТИВНЫЙ + ФИКСИРОВАННЫЙ) ======== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(0,0,0,0.85);
    padding: 15px 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid #333;

    box-sizing: border-box;
}

/* Левое меню */
.header .nav-left {
    display: flex;
    gap: 28px; /* расстояние между Главная / Квесты / Конкурсы */
    flex-wrap: wrap;
}

/* Правое меню */
.header .nav-right {
    display: flex;
    gap: 22px; /* расстояние между RU | EN / КОТ / Профиль / Выйти */
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Ссылки */
.header a {
    color: #9ecbff;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

.header a:hover {
    color: #fff;
}

/* ======== FOOTER (ФИКСИРОВАННЫЙ) ======== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

    background: rgba(0,0,0,0.85);
    padding: 12px;
    text-align: center;
    border-top: 1px solid #333;
    color: #777;
    z-index: 1000;

    box-sizing: border-box;
}

/* ======== КОНТЕЙНЕР ======== */
.container {
    width: min(900px, 95%);
    margin: 40px auto;
    background: rgba(0,0,0,0.55);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #333;
    box-sizing: border-box;
}

/* ======== КАРТОЧКИ КВЕСТОВ ======== */
.quest-card {
    background: rgba(20,20,20,0.8);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #444;
    border-radius: 6px;
    transition: 0.2s;
}

.quest-card:hover {
    border-color: #6bb6ff;
    background: rgba(30,30,30,0.9);
}

.quest-card h2 {
    margin-top: 0;
    color: #9ecbff;
}

/* ======== КНОПКИ ======== */
.btn {
    display: inline-block;
    padding: 10px 18px;
    background: #1a3b5d;
    color: #9ecbff;
    border: 1px solid #3d6fa5;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.2s;
}

.btn:hover {
    background: #25527c;
    color: #fff;
}

/* кнопка выполнения */
.btn-green {
    background: #1f5d2e;
    border-color: #3ca85a;
    color: #b6ffcb;
}

.btn-green:hover {
    background: #2f8a45;
    color: #fff;
}

/* update */
