.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 {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right bottom;
    margin-bottom: 20px;
}

.header-inner {
    margin-bottom: 50px;
}

/* ==== MENU HEADER 2 ==== */
.header-top-bg {
    padding-top: 14px;
    padding-bottom: 14px;
    width: 100%;
    /*background: linear-gradient(135deg,*/
    /*        #162d63 0%,*/
    /*        #1f3f8c 50%,*/
    /*        #132654 100%);*/

    background-color: #131921;
}


.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-top-2-bg {
    background: #1f2b3a;
    justify-content: flex-start;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.site-menu {
    display: flex;
    margin-left: -12px;
}


.menu-list {
    display: flex;
    gap: 0 4px;
    color: var(--secondary-text-color);
    font-size: 14px;
    font-weight: 500;

}

.menu-item {
    position: relative;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.menu-link {
    display: block;
    padding: 8px 12px;
}

.menu-item:hover {
    background-color: #f38e4f;
}

/* активная страница */
.menu-item:has(a[aria-current="page"]) {
    background-color: #f38e4f;
}

.menu-button {
    font: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ffffff;
}

/* ====== Логотип с текстом ====== */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    width: 32px;
    height: auto;
    display: block;
}

.logo-text {
    font-family: "Montserrat", sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

/* ===== SEARCH ===== */
.search-bar {
    display: flex;
    align-items: center;
    flex: 1;
    height: 42px;
    max-width: 800px;
    min-width: 200px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
}


/* ФОКУС */
.search-bar:focus-within {
    border-color: #616161;
}

.search-input,
.search-button {
    height: 100%;
}

/* INPUT */
.search-input {
    flex: 1;
    height: 48px;
    border: none;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    position: relative;
    z-index: 2;
    color: var(--primary-text-color);
}

/* BUTTON */
.search-button {
    width: 54px;
    background-color: #f38e4f;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
    z-index: 2;
}

.search-button::before {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 26px;
    height: 26px;
    transform: translateY(-50%);
    background-image: url('/assets/images/icons/search-white.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}


/* ==== Стрелка вниз ==== */
.arrow-icon {
    display: inline-flex;
    transition: transform 0.2s ease;
    color: #ffffff;
}

/* ====== Кнопка "Позвонить" ====== */
.phone-button {
    padding-left: 10px;
    position: relative;
    white-space: nowrap;
    font-weight: 600;
    color: #ffffff;
    font-size: 20px;
}

/* Иконка телефона в кнопке */
.phone-button::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 52%;
    text-align: center;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url("/assets/images/icons/phone-white.svg");
    background-repeat: no-repeat;
    background-size: contain;
}

.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;
}

/* ! ====== Контейнер с телефоном и мессенджерами ====== */
.phone-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
    margin-left: 10px;
}



/* Кнопка */
.phone-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: transform .25s ease;
}

/* Dropdown */
.phone-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;

    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 14px 20px;

    display: flex;
    flex-direction: column;
    gap: 16px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    min-width: 240px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all .25s ease;
    z-index: 1000;
}

/* Активное состояние */
.phone-container.open .phone-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.phone-container.open .phone-toggle {
    transform: rotate(180deg);
}

/* Пункты */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
}

.dropdown-item img {
    width: 20px;
    height: 20px;
}

/* visually hidden (a11y) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Дата и время */
.header-info-block {
    margin-top: 2px;
    font-size: 14px;
    color: #333333;
}

/* Календарь */
.calendar-block {
    background-color: #ffffff15;
    color: #2b2b2b;
    padding: 10px 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.calendar-date {
    font-weight: bold;
    font-size: 14px;
}

.calendar-day {
    font-style: italic;
    opacity: 0.85;
}

.calendar-time {
    font-size: 13px;
    margin-top: 4px;
    font-weight: 500;
}

/* Адрес компании */
.header-info-block .info-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #007bff;
}

.header-info-block .info-icon svg {
    width: 100%;
    height: 100%;
}


/* ==== PHONE MODAL ==== */
.phone-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

/* затемнение */
.phone-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: 0.3s;
}

.phone-modal-content {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50dvh;
    overflow-y: auto;
    will-change: transform;
    touch-action: pan-y;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(.22, 1, .36, 1);
}

.phone-modal.is-active .phone-modal-content {
    transform: translateY(0);
}

/* активное состояние */
.phone-modal.active {
    pointer-events: auto;
}

.phone-modal.active .phone-modal-overlay {
    opacity: 1;
}

.phone-modal.active .phone-modal-content {
    bottom: 0;
}

/* полоска сверху */
.phone-modal-handle {
    width: 40px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    margin: 0 auto 12px;
}

/* пункты */
.phone-modal .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    font-size: 16px;
}

.phone-modal .dropdown-item:active {
    opacity: 0.6;
}
