.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    background: var(--header-background, var(--header-background));
    color: var(--header-text, var(--header-text-color));
}

.header__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30rem;
    padding: 15rem 0;
}

.header__logo {
    display: block;
    width: 222rem;
    height: 40rem;
}

.header__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header__nav {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--header-background, var(--color-primary));
    transform-origin: center;
    transition:
        transform var(--global-transition-duration),
        visibility var(--global-transition-duration);
}

.header__nav:not(.active) {
    visibility: hidden;
    transform: scale(0);
}

.header__nav-content {
    display: flex;
    flex-direction: column;
    gap: 60rem;
    height: calc(var(--vh, 1vh) * 100 - var(--header-height));
    overflow-y: auto;
    padding: 15rem 0 30rem;
}

.header__menu {
    display: flex;
    flex-direction: column;
    gap: 30rem;
    font-weight: 600;
    font-size: 18rem;
    line-height: 26rem;
}

.header__menu a {
    display: block;
    transition: color var(--global-transition-duration);
}

.header__menu > li:has(> ul) {
    display: flex;
    flex-direction: column;
    gap: 15rem;
}

.header__menu > li:has(> ul) > ul {
    display: flex;
    flex-direction: column;
    gap: 10rem;
    padding-left: 15rem;
}

.header__buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15rem;
}

@media screen and (min-width: 1024px) and (orientation: landscape) {
    .header__nav {
        max-width: calc(100% - 252rem);
        position: unset;
        background-color: transparent;
        transition: unset;
    }

    .header__nav[data-lock-padding] {
        padding-right: 0 !important;
    }

    .header__nav:not(.active) {
        visibility: visible;
        transform: scale(1);
    }

    .header__nav-container {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .header__nav-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 30rem;
        height: unset;
        overflow: unset;
        padding: 0;
    }

    .header__menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30rem;
        margin: 0 auto;
    }

    .header__menu > li:has(> ul) {
        gap: 5rem;
        position: relative;
    }

    .header__menu > li:has(> ul) > a {
        position: relative;
        padding-right: 24rem;
    }

    .header__menu > li:has(> ul) > a[href='#'] {
        pointer-events: none;
    }

    .header__menu > li:has(> ul) > a:after {
        content: '\f078';
        display: flex;
        justify-content: center;
        align-items: center;
        width: 16rem;
        height: 16rem;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        font-family: "Font Awesome 7 Free";
        font-weight: 900;
        font-size: 14rem;
        line-height: 14rem;
        transform-origin: center;
        transition: transform var(--global-transition-duration);
    }

    .header__menu > li:has(> ul):hover > a:after {
        transform: translateY(-50%) rotate(180deg);
    }

    .header__menu > li:has(> ul) > ul {
        min-width: max-content;
        max-width: 100%;
        position: absolute;
        top: calc(100% + 15rem);
        left: 50%;
        transform: translateX(-50%);
        visibility: hidden;
        opacity: 0;
        background-color: var(--header-background);
        padding: 20rem;
        transition: visibility var(--global-transition-duration), opacity var(--global-transition-duration);
    }

    .header__menu > li:has(> ul):hover > ul {
        visibility: visible;
        opacity: 1;
    }

    .header__menu > li:has(> ul) > ul:before {
        content: '';
        width: 100%;
        height: 15rem;
        position: absolute;
        top: 0;
        left: 0;
        transform: translateY(-100%);
    }

    .header__buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (hover: hover) {
    .header__menu a:hover {
        color: var(--color-accent);
    }
}