/* ========== HEADER STYLES ========== */
:root {
    --color-main: #003BFF;
    --color-dark-bg: #051A2D;
    --color-accent-turq: #00D7D0;
    --color-white: #ffffff;
    --color-cabinet-border: #941FFF;
    --color-inactive-lang: #0E45FF;
    --color-reg-btn: #003BFF;
    --color-page-bg: #0B204F;
    --color-active-link: #003BFF;
    --padding: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-page-bg);
    overflow-x: hidden;
}

.site-wrapper {
    width: 100%;
    max-width: 1440px;
    background-color: #fff;
    margin: 0 auto;
    position: relative;
}

/* ========== ВЕРХНИЙ БЛОК ========== */
.top-bar {
    background-color: var(--color-dark-bg);
    padding: var(--padding) 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.age-restriction {
    font-family: 'Hitmarker Text VF', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--color-white);
}

.logo-placeholder {
    display: none;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

/* Бургер-меню (скрыто на десктопе) */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 200;
    background-color: var(--color-accent-turq);
    border-radius: 8px;
}

.burger-menu span {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: var(--color-dark-bg);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Кнопка ЛИЧНЫЙ КАБИНЕТ */
.btn-cabinet {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid var(--color-cabinet-border);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-white);
    transition: all 0.2s;
    padding: 8px 16px;
    border-radius: 40px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-cabinet:hover {
    background: rgba(148, 31, 255, 0.2);
    transform: scale(1.02);
}

.btn-cabinet svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--color-white);
    stroke-width: 1.8;
}

/* VK иконка */
.vk-link {
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.vk-link:hover {
    transform: scale(1.05);
}

.vk-icon {
    width: 32px;
    height: 32px;
}

.vk-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Блок выбора языка */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-item.active {
    background: transparent;
    color: var(--color-white);
    padding: 6px 12px;
}

.lang-arrow-placeholder {
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

}

.lang-arrow-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: rotate(180deg);
}

.lang-item.inactive {
    background-color: var(--color-inactive-lang);
    color: var(--color-white);
}

.lang-item.inactive:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

/* ========== НИЖНИЙ БЛОК ========== */
.bottom-bar {
    background-color: var(--color-accent-turq);
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 10;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-menu li a {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--color-dark-bg);
    transition: color 0.2s, border-bottom 0.2s;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-menu li a:hover {
    color: var(--color-main);
    border-bottom-color: var(--color-main);
}

.nav-menu li a.active {
    color: var(--color-active-link);
    border-bottom-color: var(--color-active-link);
}

.right-info {
    display: flex;
    align-items: center;
    gap: 28px;
}

.btn-reg {
    background-color: var(--color-reg-btn);
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 40px;
    color: var(--color-white);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-reg:hover {
    background-color: #0029b3;
    transform: scale(1.02);
}

.phone-number {
    font-family: 'Hitmarker Text VF', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--color-dark-bg);
    background: transparent;
    white-space: nowrap;
}

/* Мобильные элементы (скрыты на десктопе) */
.mobile-phone,
.mobile-vk,
.mobile-lang-switch {
    display: none;
}

/* Мобильные кнопки */
.mobile-buttons {
    display: none;
    padding: 12px 40px 20px;
    gap: 15px;
    background-color: var(--color-accent-turq);
}

.btn-mobile-participant,
.btn-mobile-reg {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mobile-participant {
    background-color: var(--color-reg-btn);
    color: var(--color-white);
}

.btn-mobile-reg {
    background-color: var(--color-dark-bg);
    color: var(--color-white);
}

/* Мобильное выезжающее меню */
.mobile-nav-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background-color: var(--color-accent-turq);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    z-index: 199;
    transition: top 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    padding: 80px 20px 40px;
    margin: 0;
    list-style: none;
    display: flex;
}

.mobile-nav-menu.active {
    top: 0;
}

.mobile-nav-menu li {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav-menu.active li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-menu.active li:nth-child(1) {
    transition-delay: 0.05s;
}

.mobile-nav-menu.active li:nth-child(2) {
    transition-delay: 0.1s;
}

.mobile-nav-menu.active li:nth-child(3) {
    transition-delay: 0.15s;
}

.mobile-nav-menu.active li:nth-child(4) {
    transition-delay: 0.2s;
}

.mobile-nav-menu.active li:nth-child(5) {
    transition-delay: 0.25s;
}

.mobile-nav-menu.active li:nth-child(6) {
    transition-delay: 0.3s;
}

.mobile-nav-menu.active li:nth-child(7) {
    transition-delay: 0.35s;
}

.mobile-nav-menu li a {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--color-dark-bg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Внутри мобильного меню - переключатель языка */
.mobile-lang-in-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-lang-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-lang-item.active {
    background: transparent;
    color: var(--color-dark-bg);
}

.mobile-lang-item.inactive {
    background-color: var(--color-inactive-lang);
    color: var(--color-white);
}

/* ========== МОБИЛЬНАЯ ВЕРСИЯ (до 768px) ========== */
@media (max-width: 768px) {
    .top-bar {
        padding: 12px 20px;
    }

    /* Скрываем 18+ на мобилке */
    .age-restriction {
        display: none;
    }

    /* Показываем логотип */
    .logo-placeholder {
        display: block;
        width: 88px;
        height: 53px;
    }

    /* Бургер справа */
    .burger-menu {
        display: flex;
        order: 2;
    }

    /* Скрываем десктопные элементы в top-actions */
    .top-actions {
        display: none;
    }

    /* Показываем мобильные элементы */
    .mobile-phone {
        display: block;
        font-family: 'Hitmarker Text VF', 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 14px;
        color: var(--color-white);
        text-decoration: none;
        margin-left: auto;
        margin-right: 15px;
    }

    .mobile-vk {
        display: flex;
        margin-right: 10px;
    }

    .mobile-vk img {
        width: 28px;
        height: 28px;
    }

    /* Скрываем bottom-bar на мобилке */
    .bottom-bar {
        display: none;
    }

    /* Показываем мобильные кнопки */
    .mobile-buttons {
        display: flex;
    }
}

.site-wrapper {
    margin-bottom: 10px;
}



/* Mobile M (375px - 640px) */
@media (max-width: 640px) {
    .logo-placeholder {
        width: 70px;
        height: 42px;
    }

    .mobile-phone {
        font-size: 12px;
        margin-right: 10px;
    }

    .mobile-vk img {
        width: 24px;
        height: 24px;
    }

    .burger-menu {
        width: 36px;
        height: 36px;
    }

    .burger-menu span {
        width: 18px;
        height: 2px;
    }

    .mobile-buttons {
        padding: 12px 20px 20px;
        gap: 10px;
    }

    .btn-mobile-participant,
    .btn-mobile-reg {
        padding: 12px;
        font-size: 12px;
    }
}

/* Mobile S (320px - 375px) */
@media (max-width: 375px) {
    .logo-placeholder {
        width: 60px;
        height: 36px;
    }

    .mobile-phone {
        font-size: 10px;
        margin-right: 8px;
    }

    .mobile-vk img {
        width: 20px;
        height: 20px;
    }

    .burger-menu {
        width: 32px;
        height: 32px;
    }

    .burger-menu span {
        width: 16px;
        height: 2px;
    }

    .mobile-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-mobile-participant,
    .btn-mobile-reg {
        width: 100%;
    }

    .mobile-nav-menu li a {
        font-size: 16px;
    }
}