/* ========== 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;
    margin-bottom: 10px;
}

/* ========== ВЕРХНИЙ БЛОК ========== */
.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;
    text-decoration: none;
}

.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);
}

.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 {
    display: flex;
    align-items: center;
}

.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;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
}

.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;
}

/* ========== DROPDOWN SUBMENU ========== */
/* Все пункты с подменю */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > a {
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

/* Стрелочка у всех */
.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3E%3Cpath stroke='%23051A2D' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

/* При наведении стрелка поворачивается */
.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Активный пункт - синяя стрелка */
.menu-item-has-children > a.active::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3E%3Cpath stroke='%23003BFF' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
}

/* Подменю - общие стили для всех */
.sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 260px;
    background: linear-gradient(135deg, #0B204F 0%, #071F6E 100%);
    border: 1px solid #00D7D0;
    border-radius: 12px;
    padding: 12px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* При наведении показываем подменю */
.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ссылки в подменю */
.sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
}

/* При наведении на пункт подменю */
.sub-menu li a:hover {
    background: rgba(0, 215, 208, 0.2);
    color: #00D7D0;
    padding-left: 25px;
}

/* Убираем активный стиль у подменю (чтобы не подсвечивалось) */
.sub-menu li a.active {
    background: transparent !important;
    color: #FFFFFF !important;
    border: none !important;
    padding-left: 20px !important;
}

/* При наведении на активный пункт - подсвечиваем */
.sub-menu li a.active:hover {
    background: rgba(0, 215, 208, 0.2) !important;
    color: #00D7D0 !important;
    padding-left: 25px !important;
}

/* Активный родительский пункт */
.menu-item-has-children > a.active {
    color: var(--color-main);
    border-bottom-color: var(--color-main);
}

/* Для пунктов без подменю */
.nav-menu li:not(.menu-item-has-children) a {
    display: flex;
    align-items: center;
}

/* ========== МОБИЛЬНОЕ МЕНЮ ========== */

/* Мобильный хедер */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #051A2D;
    padding: 12px 20px;
    z-index: 1000;
}

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

.mobile-logo img {
    height: 40px;
    width: auto;
}

/* Бургер */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: #00D7D0;
    border-radius: 8px;
    position: relative;
    z-index: 1003;
}

.burger-menu span {
    width: 22px;
    height: 2px;
    background: #051A2D;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Оверлей */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: #00D7D0;
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-inner {
    padding: 80px 20px 30px;
}

/* Навигация */
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Обертка для ссылки и плюсика (для пунктов с подменю) */
.mobile-nav-link-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Обычная ссылка (для пунктов без подменю) - такие же отступы */
.mobile-nav-item:not(.has-children) .mobile-nav-link {
    display: block;
    padding: 15px 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    color: #051A2D;
    text-decoration: none;
}

/* Ссылка внутри обертки (для пунктов с подменю) */
.mobile-nav-link {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    color: #051A2D;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    flex: 1;
}

.mobile-nav-link:hover {
    color: #003BFF;
}

/* Кнопка-плюсик (только для пунктов с подменю) */
.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 24px;
    font-weight: 700;
    color: #003BFF;
    cursor: pointer;
    transition: transform 0.3s ease;
    user-select: none;
}

.mobile-nav-item.has-children.open .mobile-toggle {
    transform: rotate(45deg);
}

/* Подменю */
.mobile-submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    background: rgba(0, 59, 255, 0.1);
    border-radius: 8px;
}

.mobile-submenu.open {
    display: block;
}

.mobile-submenu li a {
    display: block;
    padding: 12px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #051A2D;
    text-decoration: none;
    border-radius: 8px;
}

.mobile-submenu li a:hover {
    background: rgba(0, 59, 255, 0.2);
    color: #003BFF;
}

/* Переключатель языка */
.mobile-lang {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-lang-item {
    padding: 8px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    border-radius: 30px;
    cursor: pointer;
}

.mobile-lang-item.active {
    background: transparent;
    color: #051A2D;
}

.mobile-lang-item:not(.active) {
    background: #0E45FF;
    color: white;
}

/* Мобильные кнопки */
.mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.mobile-btn {
    padding: 14px;
    border: none;
    border-radius: 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
}

.mobile-btn-blue {
    background: #003BFF;
    color: white;
}

.mobile-btn-turq {
    background: #00D7D0;
    color: #051A2D;
}

.mobile-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Адаптация для мобилок */
@media (max-width: 768px) {
    .mobile-header {
        display: block;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .top-bar, .bottom-bar {
        display: none;
    }
    
    .site-wrapper {
        padding-top: 64px;
    }
}
/* Скрываем мобильные элементы на десктопе */
.mobile-phone,
.mobile-vk {
    display: none;
}

/* Показываем на мобилке */
@media (max-width: 768px) {
    .mobile-phone,
    .mobile-vk {
        display: block;
    }
    
    .mobile-phone {
        font-family: '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;
    }
}

@media (max-width: 480px) {
    .mobile-phone {
        font-size: 11px;
        margin-right: 8px;
    }
    
    .mobile-vk img {
        width: 24px;
        height: 24px;
    }
}