/* шапка */
.header {
    position: fixed;
    top: 0;
    z-index: 50;
    background: #fff;
    box-shadow: none;
    transition: box-shadow 220ms ease;
}

.header .container {
    padding: 0 var(--side-pad);
    max-width: var(--container-w);
    margin: 0 auto;
    position: fixed;
    background: white;
    padding-bottom: 20px;
    padding-top: 20px;
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    justify-content: space-between;
}

.header__logo {
    display: block;
    width: 185px;
    height: 102px;
}

.header__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.header__nav {
    width: 668px;
    height: 50px;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 0 18px;
    background: #fff;
}

.header__navItem {
    font-size: 16px;
    color: var(--color-accent);
    text-decoration: none;
    white-space: nowrap;
}

.header__navItem--accent {
    font-weight: 700;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__phone {
    font-size: 18px;
    color: #353535;
    white-space: nowrap;
}

.header__cta {
    width: 232px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
}

/* бургер */
.burger {
    display: none;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-accent);
    border-radius: 2px;
    transition: transform 200ms ease, opacity 200ms ease;
}

.burger span+span {
    margin-top: 6px;
}

/* состояние, когда меню открыто – анимация иконки */
.burger--active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger--active span:nth-child(2) {
    opacity: 0;
}

.burger--active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== адаптив шапки и бургера ===== */
@media (max-width: 1024px) {
    :root {
        --side-pad: 20px;
    }

    .header .container {
        padding: 0 var(--side-pad);
        max-width: var(--container-w);
        margin: 0 auto;
        height: 120px;
        padding-top: 30px;
        padding-bottom: 30px;
        padding-left: 0px;
    }

    .header {
        height: auto;
    }

    .header__inner {
        gap: 16px;
    }

    .header__logo {
        width: 185px;
        height: 90px;
    }

    .header__nav {
        display: none;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    /* когда к nav добавили класс header__nav--mobile – показываем */
    .header__nav.header__nav--mobile {
        display: flex;
        height: auto;
    }

    .burger {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
    }

    .header__right {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .header__cta {
        width: stretch;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--color-accent);
        color: #fff;
        text-decoration: none;
        border-radius: var(--radius);
        font-size: 14px;
        font-weight: 700;
    }

    /* выпадающее меню */
    .header__nav--mobile {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #fff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding: 12px 20px 26px;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .header__nav--mobile .header__navItem {
        display: block;
    }
}

@media (max-width: 768px) {
    .header__logo {
        width: 132px;
        height: 60px;
    }
}