/* HEADER */

.header-gradient {
    position: absolute;
    left: 0;
    top: -50px;
    width: 100%;
    height: 221px;
    background: url(../images/bg-gradient.png) no-repeat center;
    background-size: cover;
    transform-origin: center;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 24px var(--container-padding);
    background-color: transparent;
    position: absolute;
    z-index: 5;
    top: 0;
}

.header-logo {
    display: block;
    width: 138px;
    height: 20px;
    background-image: url("../images/logo.svg");
    background-repeat: no-repeat;
    background-size: contain;
}

.header-logo:hover {
    cursor: pointer;
}

.header-menu__nav {
    display: none;
}

.header--menu__link,
.mobile-menu__link {
    font-weight: 400;
    font-size: 20px;
    line-height: 120%;
    text-align: center;
    color: var(--color-primary);
}

/* LANGUAGE MENU */
.language-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: end;
}

.language-menu {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 110px;
    padding: 3px 0;
    border: 0.8px solid #5E5C74;
    border-radius: 80px;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 20;
    background: transparent;
}

.language-menu.active {
    border-color: transparent;
    border-radius: 14px;
    overflow: visible;
}

.language-menu.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 99px;
    border: 0.8px solid #5E5C74;
    border-radius: 14px;
    background: #F8F8F8;
    box-sizing: border-box;
    z-index: 1;
    pointer-events: none;
}

.language-menu__label {
    font-size: 12px;
    color: var(--color-primary);
}

.language-menu__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-left: 6px;
    padding-right: 2px;
    position: relative;
    text-transform: capitalize;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 2;
}

.language-menu__arrow {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}
.language-menu__arrow.active {
    transform: rotate(180deg);
}

.language-menu__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    display: none;
    background: none;
    z-index: 2;
}

.language-menu.active .language-menu__dropdown {
    display: block;
}

.language-menu__item {
    display: block;
    padding: 6px 8px;
    margin: 0 3px;
    font-size: 12px;
    color: var(--color-primary);
    text-transform: capitalize;
    text-decoration: none;
    gap: 10px;
}

.language-menu__item.is-active {
    background: var(--color-primary);
    color: white;
    border-radius: 12px;
}

/* GENERAL MENU */
.header-general-menu__button {
    width: 30px;
    height: 30px;
    margin-left: 16px;
    border: none;
    color: #383554;
    background: none;
    cursor: pointer;
}

.general-menu__icon {
    display: block;
    width: 100%;
    height: 100%;
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(33, 33, 33, 0.72);
}

.mobile-menu__panel {
    position: relative;
    width: 100%;
    height: 100dvh;
    padding: 0 24px;
    background: #F8F8F8;
    overflow: hidden;
}

.mobile-menu__header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 24px;
}

.mobile-menu__title {
    font-size: 14px;
    line-height: 1.4;
    color: #7E7C95;
}

.mobile-menu__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.mobile-menu__close-icon {
    display: block;
    width: 24px;
    height: 24px;
}

.mobile-menu__divider {
    width: 100%;
    height: 1px;
    margin-top: 44px;
    background: #D9D9E3;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: calc(100% - 220px);
}

.mobile-menu__link {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    color: #2F2C4A;
    text-decoration: none;
}

.mobile-menu__top-gradient,
.mobile-menu__bottom-gradient {
    position: absolute;
    left: 0;
    width: 100%;
    height: 108px;
    pointer-events: none;
    opacity: 0.9;
    filter: blur(24px);
    background:
        linear-gradient(
            90deg,
            rgba(213, 222, 255, 0.7) 0%,
            rgba(213, 222, 255, 0.2) 28%,
            rgba(255, 241, 186, 0.6) 58%,
            rgba(255, 227, 217, 0.38) 100%
        );
}

.mobile-menu__top-gradient {
    top: 0;
    transform: translateY(-38%);
}

.mobile-menu__bottom-gradient {
    bottom: 0;
    transform: translateY(38%);
}

body.is-menu-open {
    overflow: hidden;
}

/* desktop: tablet */
@media (min-width: 744px) {
    .header {
        padding: 32px var(--container-padding);
    }
}

/* desktop: fullscreen 1440 */
@media (min-width: 1440px) {
    .header-logo {
        width: 200px;
        height: 30px;
    }
    
    .header-menu__nav {
        display: flex;
        padding: 18px;
        gap: 18px;
    }
    
    .mobile-menu {
        display: none;
    }

    .header-general-menu__button {
        display: none;
    }
    
    .language-menu {
        width: 135px;
    }
    
    .language-menu__label {
        font-size: 16px;
        line-height: 120%;
    }
    
    .language-menu__arrow {
        width: 32px;
        height: 32px;
    }
    
    .language-menu.active::before {
        height: 108px;
    }
}
