/* ==================== 1. Хедер ==================== */

/* Загальні стилі для хедера */
header {
    height: 85px;
    background: #000;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

header .header_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Логотип */
.header_logo img {
    height: 49.4px;
    width: auto;
}

/* Навігація */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    padding-left: 25px;
    gap: 25px;
}

.nav-links li {
    padding-left: 0;
}

.nav-links a {
    font-family: 'Tektur', sans-serif;
    font-weight: 400;
    color: #fff;
    font-size: 1.1rem;
    white-space: nowrap;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a:focus {
    color: #f67828;
}

/* Контактна інформація та кнопки */
.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info .phone-number {
    font-family: 'Tektur', sans-serif;
    font-weight: 400;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
}

/* Бургер-меню */
.burger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.4s;
}

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

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

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

/* Контейнер для навігації та контактів */
.nav-block {
    display: flex;
}

/* ==================== 2. Адаптивність хедера ==================== */
@media (max-width: 991px) {
    .nav-links,
    .contact-info .phone-number {
        display: none;
    }

    .burger {
        display: block;
    }

    .contact-info {
        gap: 10px;
    }

    /* Стилі для мобільного меню */
    .nav-block {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 85px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 85px);
        background-color: #000;
        z-index: 999;
        transition: left 0.3s ease-in-out;
        padding: 20px;
    }

    .nav-block.active {
        left: 0;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links li {
        margin: 10px 0;
    }
}
