/* =======================================================
   ОБЩИЕ СТИЛИ ШАПКИ
   ======================================================= */
.header-main-bar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Кнопка слева, контакты справа */
    width: 100%;
    max-width: 1200px;
    margin: 10px auto;
    padding: 10px 15px;
    box-sizing: border-box;
    background-color: #ffffff; /* Белый чистый фон шапки */
    border-bottom: 1px solid #f0f0f0;
}

.menu-container {
    position: relative;
    z-index: 1001;
}

/* Блок контактов */
.header-contacts-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contacts-text-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
    font-size: 15px;
}

.phone-link {
    color: #1f1f1f;
    text-decoration: none;
}

.social-icons-row {
    display: flex;
    gap: 8px;
}

.sseti-icon img {
    display: block;
    transition: transform 0.2s;
}
.sseti-icon img:hover {
    transform: scale(1.1);
}

/* Стили меню (кнопки-карточки как на ПК) */
.menu-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.menu-list li a {
    display: inline-block;
    text-decoration: none !important;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}

.menu-list li a:hover {
    color: #ffffff !important;
    background-color: #3182ce;
    border-color: #3182ce;
}

/* Бургер-кнопка */
.menu-toggle-btn {
    background: transparent;
    border: 1px solid #000000;
    border-radius: 6px;
    width: 38px;
    height: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle-btn .bar {
    display: block;
    width: 22px;
    height: 3px;
    background-color: #000000;
    border-radius: 2px;
}

/* =======================================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ (До 768px)
   ======================================================= */
@media (max-width: 768px) {
    .header-main-bar {
        align-items: flex-start; /* Выравнивание по верхнему краю */
    }

    /* На мобильных текст и телефон переносим друг под друга */
    .header-contacts-block {
        flex-direction: column;
        align-items: flex-end; /* Выравнивание по правому краю экрана */
        gap: 6px;
        text-align: right;
    }

    .contacts-text-row {
        flex-direction: column; /* Текст "Экскурсии" сверху, телефон строго снизу */
        align-items: flex-end;
        gap: 2px;
        font-size: 13px; /* Чуть компактнее */
    }

    /* Выпадающее меню под кнопкой гамбургера */
    .menu-list {
        display: none;
        position: absolute;
        top: 45px;
        left: 0;
        width: 260px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 10px !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .menu-list.show {
        display: flex !important;
        flex-direction: column;
    }

    .menu-list li a {
        display: block;
        text-align: left;
        padding: 12px;
    }
}

/* =======================================================
   ДЛЯ ПК (От 769px)
   ======================================================= */
@media (min-width: 769px) {
    .header-main-bar {
        flex-direction: column; /* На ПК сначала идет меню во всю ширину, ниже — контакты */
        gap: 15px;
        border-bottom: none;
    }

    .menu-toggle-btn {
        display: none !important;
    }

    .menu-list {
        display: flex !important;
        justify-content: center;
    }
}