.header {
    position: sticky;
    background-color: var(--color-white);
    z-index: 99;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.header.active {
    background-color: #0A0E20;
}

.header__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 120px;
}

.header__menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1 0 auto;
    gap: 20px;
}

.header__link {
    font-size: 18px;
    line-height: 100%;
    cursor: pointer;
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    margin: 20px;
    background-color: var(--color-white);
    position: relative;
}

.header__burger::after {
    width: 2px;
    height: calc(100% + 40px);
    content: "";
    border-left: 1px solid #DCDCDE;
    position: absolute;
    left: -20px;
    top: -20px;
}

.header__burger span {
    display: block;
    height: 2px;
    width: 20px;
    background-color: #9F9F9F;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.header__button--mobile {
    display: none;
}

.header__logo--light {
    display: none;
}

.header__logo--light.active {
    display: flex;
}

.header__logo--dark.hidden {
    display: none;
}

@media screen and (max-width:1681px) {
    .header__wrapper {
        gap: 50px;
    }
}

@media screen and (max-width: 1141px) {
    .header {
        background-color: #E5ECF3B2;
        height: max-content;
    }

    .header__button--desktop {
        display: none;
    }

    .header__button--mobile {
        display: flex;
    }

    .header__menu {
        position: fixed;
        bottom: 0;
        left: 0;
        transform: translateX(100%);
        width: 100%;
        height: calc(100% - 76px);
        background: url('../media/menu-bg.png') center / cover no-repeat;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 24px 20px;
        gap: 20px;
        display: flex;
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .header__link {
        color: var(--color-white);
        width: 100%;
        border-bottom: 1px solid #E1E5EA;
    }

    .header__button {
        margin-top: 40px;
        width: 100%;
    }

    .header__link:first-of-type {
        padding-bottom: 24px;
    }

    .header__link:not(:first-of-type) {
        padding: 24px 0;
    }

    .header__menu.active {
        transform: translateX(0);
    }

    .header__logo {
        width: 126px;
        height: 22px;
        object-fit: contain;
    }

    .header__burger {
        display: flex;
    }

    .header__burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(4.3px, 4.3px);
    }

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

    .header__burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4.3px, -4.3px);
    }
}