.header-desktop {
    display: block; /* Показывать десктопную шапку */
}

.header-mobile {
    display: none; /* Скрывать мобильную шапку по умолчанию */
}

/* ====== Кнопка бургер-меню для мобильной версии ====== */
.menu-btn {
    display: none; /* Показывается только на мобилке */
    width: 40px;
    height: 26px;
    flex-direction: column;
    justify-content: space-between;
}

.menu-btn span {
    height: 2px;
    background-color: #ffffff;
    width: 100%;
    border-radius: 10px;
}

/* ====== Стили шапки ====== */
header {
    font-family: "Montserrat", sans-serif;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right bottom;
}

.header-inner {
    margin-bottom: 50px;
}

/* ====== Верхняя часть шапки ====== */
.header-top-bg {
    padding-top: 14px;
    padding-bottom: 14px;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0b505b;
}

/* ====== Логотип с текстом ====== */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    width: 22px;
    height: auto;
    display: block;
}

.logo-text {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #2c74d7;
    text-transform: uppercase;
}

/* ====== Главное меню ====== */
.site-menu {
    display: flex;
}

.menu-list {
    display: flex;
    gap: 0 20px;
    color: var(--primary-text-color);
}

.menu-link.active {
    color: #0f0f0f;
    font-weight: 800;
}

.menu-item {
    position: relative;
}

/* ====== Выпадающее подменю (по клику) ====== */
.has-submenu {
    position: relative;
}

.menu-button {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Иконка глобуса (языки) */
.icon-globe {
    width: 18px;
    height: 18px;
    stroke: var(--secondary-text-color);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-right: 5px;
    vertical-align: middle;
}

/* Стрелка вниз */
.arrow-icon {
    display: inline-flex;
    transition: transform 0.2s ease;
}

/* Поворот стрелки при открытии подменю */
.has-submenu.open .arrow-icon {
    transform: rotate(180deg);
}

/* Подменю (dropdown) */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary-text-color);
    border-radius: 4px;
    padding: 10px;
    list-style: none;
    margin-top: 14px;
    min-width: 300px;
    box-shadow: var(--shadow-offset-x) var(--shadow-offset-y) var(--shadow-blur-radius) var(--shadow-color);
    z-index: 100;
}

/* Отображение подменю при наличии класса open */
.has-submenu.open > .dropdown {
    display: block;
}

/* Стили ссылок в подменю */
.dropdown a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #2c2c2c;
    border-radius: 4px;
}

.dropdown a:hover {
    background-color: var(--menu-drop);
    color: var(--primary-text-color);
}

/* ====== Кнопка "Позвонить" ====== */
.phone-button {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 200px;
    padding: 10px 16px 10px 40px;
    color: #fff;
    background-color: #2c74d7;
    border-radius: 8px;
    position: relative;
    transition: background-color 0.3s ease;
}

/* Иконка телефона в кнопке */
.phone-button::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("/assets/images/phone-2.svg");
    background-repeat: no-repeat;
    background-size: contain;
}

/* Ховер для кнопки */
.phone-button:hover {
    background-color: #1f5cb0;
}

.phone-text {
    color: rgb(255, 255, 255);
    font-size: 10px;
    font-weight: 300;
}

.phone-img {
    position: absolute;
    top: 24px;
    left: 54px;
}

/* ====== Кнопка "Регистрация" или действие ====== */
.register-link {
    display: inline-block;
    text-transform: uppercase;
    padding: 10px 16px;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(to bottom, #2591a2, #0b505b);
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.register-link:hover {
    background: linear-gradient(to bottom, #2a9daf, #0d5b67);
}

/* ====== Главное изображение в шапке ====== */
.header-image {
    max-width: 560px;
    height: 600px;
    object-fit: cover;
    object-position: left;
    border-radius: 5px;
}

/* ====== Серая полоса под шапкой ====== */
.header-top-2-bg {
    /* background-color: #eeeeee; */
    border-bottom: 1px solid #e9e9e9;
    padding-top: 14px;
    padding-bottom: 14px;
}

/* ====== Контейнер с телефоном и мессенджерами ====== */
.phone-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* ====== Список мессенджеров ====== */
.messenger-list {
    display: flex;
    gap: 26px;
    margin-top: 5px;
}

.messenger-icon img {
    width: 26px;
    height: 26px;
    transition: transform 0.2s ease;
}

.messenger-icon:hover img {
    transform: scale(1.1);
}

/* ВЫПАДАЮЩИЙ СПИСОК ЯЗЫКОВ */
.lang-button {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.lang-dropdown {
    display: none;
    position: absolute;
    background-color: white;
    z-index: 100;
    max-width: 140px;
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.has-submenu.open > .lang-dropdown {
    display: block;
}
.lang-dropdown li a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #0d1b3f;
}

.lang-dropdown li a:hover {
    background-color: var(--menu-drop);
}
.icon-globe {
    width: 22px;
    height: 22px;
    stroke: var(--primary-text-color);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-right: 5px;
    vertical-align: middle;
}
.lang-dropdown li a.active {
    font-weight: bold;
    background-color: var(--menu-drop);
    color: var(--primary-color); /* или любой другой цвет активации */
}


/* --- MOBILE HEADER --- */
.header-mobile {
    position: relative;
    z-index: 999;
}

.mobile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.burger-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 38px;
    height: 24px;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.burger-line {
    width: 100%;
    height: 4px;
    background-color: #1f1f1f;
    border-radius: 4px;
    transition: 0.3s ease;
}

.burger-button.open .burger-line:nth-child(1) {
    transform: rotate(45deg) translateY(13px);
}

.burger-button.open .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-button.open .burger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
}

#mobileMenu {
    display: none;
    background-color: #fff;
    padding: 16px 0;
    position: absolute;
    height: 100dvh;
    width: 100%;
    top: 100%;
    left: 0;
    z-index: 20;
}

#mobileMenu.open {
    display: block;
}

.mobile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 16px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.messenger-list img {
    width: 32px;
    height: 32px;
}

.mob-menu-list {
    list-style: none;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.mob-menu-button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    background-color: #f5f5f5;
    text-align: left;
    cursor: pointer;
}

.mob-menu-button:hover {
    background-color: #f8f8f8;
}

.menu-panel {
    display: none;
}

.menu-panel.active {
    display: block;
}

.back-button {
    background: none;
    border: none;
    font-size: 16px;
    color: #007bff;
    margin-bottom: 16px;
    cursor: pointer;
}
