.header_site {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 36px 0;
    z-index: 10;
}

.header_site .container {
    max-width: 1428px;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
}

.header_logotype {
    position: relative;
    z-index: 2;
}

.header_logotype img {
    width: auto;
    max-height: 50px;
}

.header_nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header_nav__btn {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header_nav__btn .btn {
    min-width: 107px;
    padding: 0 10px
}

.custom-lang-dropdown {
    position: relative;
    display: inline-block;
    padding: 9px 8px 7px;
    font-size: 12px;
    line-height: 1;
    color: var(--color-white);
    border: 0;
    border-radius: 8px;
    background: transparent;
    backdrop-filter: blur(1px) saturate(1.165) contrast(1.12);
    -webkit-backdrop-filter: blur(1px) saturate(1.165) contrast(1.12);
    cursor: pointer;
}

.menu-active .custom-lang-dropdown {
    display: none;
}

.header_site.dark .custom-lang-dropdown {
    border: 1px solid #E2E2E2;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.header_site.dark .custom-lang-dropdown:hover {
    background-color: #EAEAEA;
    border-color: #EAEAEA;
}

.header_site.dark .custom-lang-dropdown,
.header_site.dark .lang-item a {
    color: var(--color-black);
}

.custom-lang-dropdown:hover {
    background: rgba(255, 255, 255, 0.1);
}

.custom-lang-dropdown:before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0.5px 1.5px 1px rgba(255, 255, 255, 0.6), inset -1px -1px 1px rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    -webkit-mask-image: linear-gradient(135deg, #000 0%, rgba(0, 0, 0, 0.3) 100%, #000 40%, rgba(0, 0, 0, 0.1) 20%, #000 32%, rgba(0, 0, 0, 0.4) 100%);
    mask-image: linear-gradient(135deg, #000 0%, rgba(0, 0, 0, 0.3) 100%, #000 40%, rgba(0, 0, 0, 0.1) 20%, #000 32%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    transition: opacity .2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.lang-item a {
    text-decoration: none;
    color: var(--color-white);
}

.header_site.sticky .btn-box {
    transform: translate(0, -15px);
    position: fixed;
    display: block;
    opacity: 0;
    z-index: 9;
    right: 0;
    top: 0;
    padding: 10px
}

.header_site.sticky .btn-box.show {
    transition: all .4s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform: translate(0, 0);
    opacity: 1
}

.header_site.sticky .btn-box.show .btn:not(:hover) {
    color: var(--color-white);
    background-color: var(--color-black);
}

@media (min-width: 401px) {
    .header_site .header_nav__menu .btn-box {
        display: none;
    }
}

@media (min-width: 991px) {
    .header_site .container {
        padding: 0 30px;
    }

    .header_nav {
        gap: 24px;
    }

    .header_site .menu {
        display: flex;
        gap: 24px;
    }

    .header_site .menu a {
        font-size: 14px;
        text-decoration: none;
        letter-spacing: -0.2px;
        color: #fff;
    }

    .header_site .menu-item a .menu-link-wrap {
        position: relative;
        width: 100%;
        display: inline-block;
        overflow: hidden;
    }

    .header_site .menu-item a .menu-link-title {
        position: relative;
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .header_site .menu-item a .menu-link-title::before {
        content: attr(data-hover);
        position: absolute;
        top: -100%;
        left: 0;
        color: var(--color-white);
        transform: translate3d(0, 0, 0);
    }

    .header_site .menu-item a:hover .menu-link-title {
        transform: translateY(100%);
    }

    .header_site.dark .menu a,
    .header_site.dark .menu-item a .menu-link-title::before {
        color: var(--color-black);
    }

    .logotype-mobile,
    #menu-toggle {
        display: none;
    }

    .header_nav__btn {
        gap: 24px;
    }

    .header_nav__btn .btn-box {
        position: relative;
    }

    .header_nav__btn .custom-lang-dropdown + .btn-box::before {
        content: "";
        position: absolute;
        top: 50%;
        left: -12px;
        width: 1px;
        height: 16px;
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-50%);
    }

    .header_site.sticky .btn-box::before {
        display: none;
    }

    .header_site.sticky .btn-box {
        padding: 40px;
    }

    .lang-current {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
    }

    .lang-list {
        max-height: 0;
        padding: 0 0 0 16px;
        transition: max-height .2s cubic-bezier(0.645, 0.045, 0.355, 1), padding .2s cubic-bezier(0.645, 0.045, 0.355, 1);
        overflow: hidden;
    }

    .custom-lang-dropdown:hover .lang-list {
        max-height: 200px;
        padding: 3px 0 0 16px;
    }
}

@media (max-width: 991px) {
    .logotype-desktop {
        display: none;
    }

    .header_nav__menu {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        display: none;
        padding: 109px 24px 0;
        background-image: linear-gradient(90deg, rgba(114, 53, 232, 0.1) 0%, rgba(63, 241, 195, 0.1) 100%);
        background-color: var(--color-white);
    }

    #menu-toggle {
        position: relative;
        width: 44px;
        height: 44px;
        min-width: auto;
        padding: 0;
        border: 0;
        overflow: hidden;
    }

    #menu-toggle span {
        position: absolute;
        left: 10px;
        width: 24px;
        height: 2px;
        border-radius: 2px;
        background: var(--color-white);
        transition: all 0.4s;
    }

    .header_site.dark #menu-toggle {
        border: 1px solid #E2E2E2;
    }
    .header_site.dark #menu-toggle span {
        background: var(--color-black);
    }

    #menu-toggle span:nth-child(1) {
        top: calc(50% - 9px);
    }

    #menu-toggle span:nth-child(2) {
        top: calc(50% - 1px);
    }

    #menu-toggle span:nth-child(3) {
        top: calc(50% + 7px);
    }

    #menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    #menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .header_nav__menu #menu {
        height: 100%;
        padding-bottom: 24px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .header_site .menu {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .header_site .menu .menu-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    }


    .header_site .menu a {
        position: relative;
        width: 100%;
        padding: 13px 30px 13px 0;
        display: inline-block;
        font-size: var(--fs-h4);
        text-decoration: none;
        letter-spacing: -0.2px;
        color: var(--color-black);
    }

    .header_site .menu .menu-item a::before {
        content: "";
        position: absolute;
        top: 50%;
        right: 10px;
        width: 12px;
        height: 12px;
        background: url('../../images/arrow-next.svg') no-repeat center/contain;
        transform: translateY(-50%);
    }

    .custom-lang-dropdown {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0 32px 0 10px;
        font-size: 14px;
        text-transform: uppercase;
    }

    .lang-current {
        font-size: 0;
    }
    .custom-lang-dropdown span {
        display: none;
    }

    .lang-item a {
        position: absolute;
        inset: 0;
        text-align: right;
        align-content: center;
        padding-right: 10px;
    }
}

@media (max-width: 400px) {
    .header_site:not(.sticky) .header_nav__btn .btn-box {
        display: none;
    }

    .header_site .header_nav__menu .btn-box {
        margin-top: 24px;
    }
}