.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition:
        box-shadow var(--transition-time),
        background-color var(--transition-time),
        transform var(--transition-time);
}

.site-header.is-scrolled {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    background: var(--background-color);
}

.site-header__inner {
    padding-block: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
}

.site-header.is-scrolled .site-header__inner {
    padding-block: 2px;
}

.site-header__logo {
    position: relative;
    z-index: 11;
    flex-shrink: 0;
}

.site-header__logo img {
    display: block;
    max-width: 180px;
    height: auto;
}

.site-header__menu-wrap {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: flex-end;
}

.site-header__nav {
    display: block;
}

.site-header__menu {
    display: flex;
    justify-content: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header__menu-item a,
.site-header__menu li a {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    transition: color var(--transition-time);
}

.site-header__menu-item a:hover,
.site-header__menu li a:hover {
    color: var(--accent-color-dark);
}

.site-header__phone {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.site-header__phone-icon {
    width: 16px;
    height: 16px;
}

.site-header__phone-link {
    font-size: 16px;
    font-weight: 700;
}

.site-header__burger {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    position: relative;
    z-index: 11;
    cursor: pointer;
    flex-shrink: 0;
}

.site-header__burger span {
    position: absolute;
    left: 10px;
    width: 28px;
    height: 2px;
    background: var(--main-color);
    border-radius: 999px;
    transition:
        transform var(--transition-time),
        opacity var(--transition-time),
        top var(--transition-time);
}

.site-header__burger span:nth-child(1) {
    top: 15px;
}

.site-header__burger span:nth-child(2) {
    top: 23px;
}

.site-header__burger span:nth-child(3) {
    top: 31px;
}

.site-header__burger.is-active span:nth-child(1) {
    top: 23px;
    transform: rotate(45deg);
}

.site-header__burger.is-active span:nth-child(2) {
    opacity: 0;
}

.site-header__burger.is-active span:nth-child(3) {
    top: 23px;
    transform: rotate(-45deg);
}

@media (width <= 1000px) {
    .site-header__phone-link {
        display: none;
    }

    .site-header__phone {
        color: var(--accent-color);
        border-radius: 50%;
        border: 2px solid var(--accent-color);
        background: transparent;
        padding: 12px;
    }

    .site-header__phone:hover {
        color: #fff;
        background: var(--accent-color);
    }
}

@media (width <= 830px) {
    .site-header__burger {
        display: block;
    }

    .site-header__menu-wrap {
        position: fixed;
        top: 0;
        right: 0;
        width: min(360px, 100%);
        height: 100vh;
        padding: 100px 24px 24px;
        background: #fff;
        box-shadow: -10px 0 30px rgba(15, 23, 42, 0.08);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 24px;
        transform: translateX(100%);
        transition: transform var(--transition-time);
        z-index: 10;
    }

    .site-header__menu-wrap.is-open {
        transform: translateX(0);
    }

    .site-header__nav {
        width: 100%;
    }

    .site-header__menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .site-header__menu li,
    .site-header__menu-item {
        width: 100%;
    }

    .site-header__menu li a,
    .site-header__menu-item a {
        display: block;
        width: 100%;
        font-size: 20px;
        line-height: 1.3;
        color: var(--main-color);
    }

    .site-header__phone {
        width: fit-content;
        border-radius: 999px;
        padding: 14px 18px;
    }

    .site-header__phone-link {
        display: inline;
    }
}

body.menu-open {
    overflow: hidden;
}