/* ===== СТИЛИ ХЕДЕРА (конфликтов нет) ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.02);
    padding: 0 20px;
    border-bottom: 1px solid #edf2f7;
    /* переопределяем глобальный overflow */
    overflow: visible !important; /* важно для бургера */
}

.header__container {
    max-width: 1200px; /* как в твоем container */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px; /* минимальная высота */
    /* убираем лишнее */
    overflow: visible !important;
}

/* Логотип */
/* .header__logo {
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
    overflow: visible;
}

.header__logo:hover {
    color: #5cb8a8;
} */

/* Навигация по центру */
.header__nav {
    display: flex;
    align-items: center;
    /* justify-content: center; */
    flex: 1 1 auto;
    margin: 0 12px;
    margin-right: auto;
    overflow: visible;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.nav__link {
    text-decoration: none;
    color: #5d6f7e;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1.3;
    display: inline-block;
    background-color: transparent;
    overflow: visible;
}

.nav__link:hover {
    color: #5cb8a8;
    background-color: #e1f0f5;
}

.nav__link--active {
    color: #5cb8a8;
    background-color: #e1f0f5;
    font-weight: 600;
}

/* Правая зона */
.header__actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
    overflow: visible;
}

.header__phone {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
    overflow: visible;
}

.header__phone:hover {
    color: #5cb8a8;
}

.header__phone::before {
    content: "📞";
    font-size: 1rem;
    opacity: 0.8;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background-color: #5cb8a8;
    border-radius: 30px;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(92, 184, 168, 0.15);
    line-height: 1.3;
    border: none;
    cursor: pointer;
    overflow: visible;
}

.btn:hover {
    background-color: #4a9e8e;
    transform: translateY(-1px);
}

/* Бургер */
.header__burger {
    display: none;
    overflow: visible;
}

.burger__checkbox {
    display: none;
}

.burger__icon {
    display: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    overflow: visible;
}

.burger__icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #2c3e50;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .nav__list {
        gap: 0.2rem;
    }
    
    .nav__link {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .header__actions {
        gap: 0.6rem;
    }
}

@media (max-width: 768px) {

    .header {
        /* Фиксируем хедер */
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1000 !important; /* Ниже, чем у меню (1001) */
        
        /* Сохраняем визуальные стили */
        background-color: #ffffff;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.02);
        border-bottom: 1px solid #edf2f7;
    }
    



    .header__container {
        height: 48px;
    }



    /* Меню в бургер */
    .header__nav {
        display: none;
        position: fixed;
        top: 48px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 15px 20px -10px rgba(0,0,0,0.1);
        padding: 1rem 0;
        border-top: 1px solid #edf2f7;
        margin: 0;
        overflow: visible;
    }

    .header__nav.active {
        display: flex !important; /* !important перекроет inline-стили, если они останутся */
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .nav__link {
        font-size: 1rem;
        padding: 0.5rem 2rem;
    }

    .header__actions {
        gap: 0.4rem;
    }

    .header__phone {
        font-size: 0;
        width: 34px;
        height: 34px;
        justify-content: center;
        background-color: #e1f0f5;
        border-radius: 50%;
        padding: 0;
    }

    .header__phone::before {
        font-size: 1.1rem;
    }

    .btn--header {
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
    }

    .header__burger {
        display: block;
    }

    .burger__icon {
        display: flex;
    }

    .burger__checkbox:checked ~ .header__nav {
        display: flex;
    }

    .burger__checkbox:checked + .burger__icon span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .burger__checkbox:checked + .burger__icon span:nth-child(2) {
        opacity: 0;
    }
    .burger__checkbox:checked + .burger__icon span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

@media (max-width: 380px) {

    .header__nav.active {
        display: flex !important; /* !important перекроет inline-стили, если они останутся */
    }

    .header__logo {
        font-size: 1rem;
    }
    
    .btn--header {
        padding: 0.25rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .header__container {
        height: 44px;
    }
}