.header-wrapper {
    z-index: 900;

    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */

    position: absolute;
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 40px 16px;
}

.right {
    z-index: 999;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.locale-btn {
    width: max-content;
}

.aij-logo {
    background-image: url("../icons/logos/logo_aij.svg");
    cursor: pointer;

    background-size: cover;
    background-repeat: no-repeat;

    min-width: 148px;
    min-height: 36px;
}

.header-btn {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */

    transition: 0.3s;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    cursor: pointer;
    border-radius: 1000px;
    outline: none;

    height: 48px;

    font-size: 16px;
    font-family: "SB Sans Display Regular";

    padding: 12px 24px;

    border: 2px solid #F2F5F7;
    background: rgba(8, 9, 10, 0.8);
    color: #F2F5F7;
}

.nav-menu-button {
    transition: 0.3s;
    position: absolute;
    border-radius: 50%;
    z-index: 11111;
    width: 48px;
    max-width: 48px;
    height: 48px;
    top: 40px;
    right: 16px;
    min-height: 48px;
}


.nav-menu-wrapper {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */

    background: linear-gradient(180deg, #08090A 0%, #062237 100%);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
    width: 100vw;
    top: 0;
    right: 0;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    opacity: 0;
    transition: 0.5s;
}

.opened {
    z-index: 999;
    opacity: 1;
}

.nav-menu {
    position: absolute;
    width: 100%;
    height: 100vh;
    top: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    list-style-type: none;
    margin-top: 142px;
    padding: 0 20px;
}

.menu-li {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: end;
    width: 100%;
    height: 50px;
}

.menu-li > a {
    text-decoration: none;
}

.link {
    font-family: "SB Sans Display Regular";
    color: #F2F5F7;
    text-decoration: none;
    position: relative;
    font-size: 24px;
}

.link::before {
    content: "";
    position: absolute;
    display: block;
    width: 80px;
    height: 2px;
    bottom: -10px;
    right: 0;
    background-color: #328ba1;
    transform: scaleX(0);
    transform-origin: top right;
    transition: transform 0.5s ease;
}

.navOpenedDarkBg {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
    z-index: -1;
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    opacity: 0;
    transition: 0.7s;
}
.show {
    opacity: 0.5;
    z-index: 998;
}


@media (min-width: 768px) {
    .nav-menu-button {
        top: 49px;
        right: 24px;
    }

    .header-wrapper {
        padding: 34px 24px;
    }

    .aij-logo {
        min-width: 330px;
        min-height: 80px;
    }

    .nav-menu-wrapper {
        width: 380px;
    }

    .nav-menu {
        margin-top: 162px;
        padding: 0 28px;
    }

    .menu-li {
        height: 50px;
    }

    .link {
        font-size: 24px;
    }
}

@media (max-height: 500px) {
    .header-wrapper {
        padding: 24px;
    }

    .aij-logo {
        min-width: 148px;
        min-height: 36px;
    }

    .nav-menu-button {
        top: 24px;
        right: 24px;
    }

    .nav-menu-wrapper {
        width: 360px;
    }

    .nav-menu {
        overflow: scroll;
        display: flex;
        flex-direction: column;
        height: calc(100vh - 82px);
        margin-top: 82px;
        padding: 0 24px 20px 24px;
    }

    .nav-menu::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .menu-li {
        height: 30px;
    }

    .link {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .header-wrapper {
        padding: 34px 40px;
    }

    .locale-btn:not(:last-child) {
        margin-right: 16px;
    }

    .only-desktop {
        display: block;
    }

    .header-btn:hover {
        transition: 0.3s;
        background-color: #F2F5F7;
        color: #08090A;
    }

    .nav-menu-button {
        top: 50px;
        right: 40px;
    }

    .nav-menu-wrapper {
        width: 380px;
    }

    .nav-menu {
        margin-top: 162px;
        padding: 0 40px;
    }

    .menu-li {
        height: 50px;
    }

    .link {
        font-size: 24px;
    }

    .link:hover::before {
        transform: scaleX(1);
    }
}

@media (min-width: 1024px) and (max-height: 768px) {
    .nav-menu-button {
        top: 48px;
    }
}

@media (min-width: 1352px) {
    .header-wrapper {
        padding: 40px 100px;
    }

    .aij-logo {
        min-width: 338px;
        min-height: 82px;
    }

    .locale-btn:not(:last-child) {
        margin-right: 24px;
    }


    .nav-menu-button {
        top: 57px;
        right: 100px;
    }

    .nav-menu-wrapper {
        width: 585px;
    }

    .nav-menu {
        margin-top: 182px;
        padding: 0 100px;
    }

    .menu-li {
        height: 80px;
    }

    .link {
        font-size: 28px;
    }
}

@media (min-width: 2560px) {
    .header-wrapper {
        padding: 40px 100px;
        align-items: center;
    }

    .aij-logo {
        margin-top: 0;
    }

    .locale-btn:not(:last-child) {
        margin-right: 16px;
    }


    .nav-menu-button {
        top: 57px;
        right: 100px;
    }

    .nav-menu-wrapper {
        width: 765px;
    }
}