.header__auth img,.modal_overlay.active,.overlay.active {
    display: block
}
.header a {
    text-decoration: none;
    color: var(--textColor);
    font-family: "TT-Regular";
}


.header__wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(78*2560px / 1920);
    height: calc(78*var(--width-multiplier));
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    z-index: 994;
    width: 100vw;
    box-shadow: 0 0 calc(25*2560px / 1920) #b4b4b4;
    box-shadow: 0 0 calc(25*var(--width-multiplier)) #b4b4b4;
    padding: 0 calc(15*2560px / 1920);
    padding: 0 calc(15*var(--width-multiplier));
    transition: height .3s ease-out;
}

@media (max-width: 1023px) {
    .header__wrapper {
        height: calc(60*2560px / 1920);
        height: calc(60*var(--width-multiplier));
    }
}

.header__logo {
    margin-right: calc(32*2560px / 1920);
    margin-right: calc(32*var(--width-multiplier));
    margin-top: calc(6*2560px / 1920);
    margin-top: calc(6*var(--width-multiplier));
    width: calc(240*2560px / 1920);
    width: calc(240*var(--width-multiplier));
    transition: width .3s ease-out;
    padding-right: 1rem;
}


@media (max-width: 1023px) {
    .header__logo {
        margin: calc(15*2560px / 1920) 0 0 calc(115*2560px / 1920);
        margin: calc(15*var(--width-multiplier)) 0 0 calc(115*var(--width-multiplier));
        width: calc(140*2560px / 1920);
        width: calc(140*var(--width-multiplier));
        transition: width .3s ease-out;
        padding-right: 0;
    }
}
.header__menu {
    display: flex;
    align-items: center;
    height: 100%;
}

@media (max-width: 1307px) {
    .header__menu {
        display:none
    }
}

.header__menu-link {
    color: var(--textColor);
    font-family: "TT-Medium";
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    position: relative;
    cursor: pointer;
    transition: .2s all ease-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    padding-right: 10px;
    margin-right: 10px;
    display: flex;
    align-items: center;

}

.header__lang-link:hover .header__menu-link {
    color: var(--red);
}

.header__menu:hover .header__menu-link{
    color: var(--red);

}


.header__menu-link:hover::after {
    border-top: 5px solid var(--red);
}
.header__menu:hover .header__menu-link::after{
    border-top: 5px solid var(--red);

}
.header__menu:hover .header__menu-link:hover::after {
    border-top: 5px solid var(--red);
}

.header__menu-link::after,.header__menu-link::before {
    content: "";
    display: block;
    position: absolute;
    transition: .2s all ease-out
}

.header__menu-link::after {
    border: 3px solid transparent;
    border-top: 5px solid var(--textGray);
    opacity: 1;
    right: 0;
}

.header__menu-link::before {
    left: 0;
    bottom: 0px;
    width: 90%;
    height: 3px;
    background-color: var(--red);
    opacity: 0;
    border-radius: 5rem;


}
header a{
    color: var(--textColor);
}

.header__menu:hover .header__menu-link::before{
    opacity: 1

}

.main-first-section__img::after {
    content: url("../img/lin_02_right_bann-2.svg");
    width: calc(64*2560px / 1920);
    width: calc(64*var(--width-multiplier));
    position: absolute;
    right: calc(255*2560px / 1920);
    right: calc(255*var(--width-multiplier));
    bottom: calc(-237*2560px / 1920);
    bottom: calc(-237*var(--width-multiplier));
    z-index: -1;
}

@media (max-width: 1023px) {
    .main-first-section__img::after {
        content: url("../img/lin_06_right_m.svg");
        width: calc(45*2560px / 1920);
        width: calc(45*var(--width-multiplier));
        right: calc(8*2560px / 1920);
        right: calc(8*var(--width-multiplier));
        bottom: calc(426*2560px / 1920);
        bottom: calc(426*var(--width-multiplier));
    }
}

.main-first-section__links-link{
    display: flex;
    align-items: center;
    gap: .7rem;
}
.main-first-section__links-link:hover a{
    color: var(--red);
}

.main-first-section__links-link img{
    width: calc(21* var(--width-multiplier));
}

@media (max-width: 1023px) {
    .main-first-section__links-link img{
        width: calc(16*2560px / 1920);
        width: calc(16*var(--width-multiplier));
    }
}

.main-first-section__links {
    position: absolute;
    font-family: "TT Moscow Economy - Md";
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .6rem;
    bottom: 0;
    right: calc(350*2560px / 1920);
    right: calc(350*var(--width-multiplier));
}

@media (max-width: 1023px) {
    .main-first-section__links {
        position: relative;
        right: 0;
        margin-top: calc(20*2560px / 1920);
        margin-top: calc(20*var(--width-multiplier));
        padding: 0 calc(20*2560px / 1920);
        padding: 0 calc(20*var(--width-multiplier));
        font-size: calc(12*2560px / 1920);
        font-size: calc(12*var(--width-multiplier));
    }
}
.header__right {
    margin-top: calc(8*2560px / 1920);
    margin-top: calc(8*var(--width-multiplier));
    justify-content: space-between;
    padding-left: calc(32*2560px / 1920);
    padding-left: calc(32*var(--width-multiplier));
}

@media (max-width: 1023px) {
    .header__right {
        margin-left: auto;
        padding-left: 0;
    }
}

.header__phone {
    color: var(--textColor);
    padding-right: 1rem;
    font-family: "TT Moscow Economy - Md";
}

@media (max-width: 1023px) {
    .header__phone {
        display: none;
    }
}

.header__lang,.header__right {
    display: flex;
    align-items: center
}

.header__lang-link,.header__lang-separator {
    color: var(--textGray);
    font-family: "TT-Regular";
    font-size: calc(14*2560px / 1920);
    font-size: calc(14*var(--width-multiplier));
    font-weight: 400;
    text-transform: uppercase
}

@media (max-width: 1023px) {
    .header__lang-link,.header__lang-separator {
        font-size: calc(12*2560px / 1920);
        font-size: calc(12*var(--width-multiplier));
    }
}

.header__lang-link {
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    transition: .2s all ease-out
}

.header__lang-link:hover{
    color: var(--red);
}



.header__lang-separator {
    margin: 0 2px
}

.header__lang-link--active {
    color: var(--red)
}

.download-card:hover .download-card__icon::after,.header__lang-link--active::before {
    opacity: 1
}

.header__auth {
    width: calc(44*2560px / 1920);
    width: calc(44*var(--width-multiplier));
    height: calc(44*2560px / 1920);
    height: calc(44*var(--width-multiplier));
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: calc(30*2560px / 1920);
    margin-left: calc(30*var(--width-multiplier));
    background-image: url("../img/icon_LK.svg");
    background-repeat: no-repeat;
}
.header__auth:hover{
    background-image: url("../img/icon_LK_active.svg");

}

@media (max-width: 1023px) {
    .header__auth {
        width: calc(26*2560px / 1920);
        width: calc(26*var(--width-multiplier));
        height: calc(26*2560px / 1920);
        height: calc(26*var(--width-multiplier));
        margin-left: 0;
    }
}

.header__search {
    cursor: pointer;
    margin-left: calc(18*2560px / 1920);
    margin-left: calc(18*var(--width-multiplier));
    transition: .2s all ease-out;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    width: calc(24*2560px / 1920);
    width: calc(24*var(--width-multiplier));
    height: calc(24*2560px / 1920);
    height: calc(24*var(--width-multiplier));
    background-image: url("../img/icon_search.svg");
    background-repeat: no-repeat;

}
.header__search:hover{
    background-image: url("../img/icon_search_active.svg");
}

@media (max-width: 1023px) {
    .header__search {
        width: calc(20*2560px / 1920);
        width: calc(20*var(--width-multiplier));
        height: calc(20*2560px / 1920);
        height: calc(20*var(--width-multiplier));
        margin-left: calc(10*2560px / 1920);
        margin-left: calc(10*var(--width-multiplier));
    }
}

.header__search:hover {
    opacity: .8
}

.header__mobile-menu-button {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    width: calc(47*2560px / 1920);
    width: calc(47*var(--width-multiplier));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: calc(22*2560px / 1920);
    margin-left: calc(22*var(--width-multiplier));
    display: none
}

@media (max-width: 1023px) {
    .header__mobile-menu-button {
        display: flex;
        justify-content: flex-start;
        width: calc(30*2560px / 1920);
        width: calc(30*var(--width-multiplier));
        margin-left: 0;
    }
}

.header__mobile-menu-button span {
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background-color: var(--lightGray);
    transition: .2s all ease-out;
    display: block;
    text-align: left;
    float: left;
}

.header__mobile-menu-button span:nth-child(1) {
    width: calc(24*2560px / 1920);
    width: calc(24*var(--width-multiplier));
}

.header__mobile-menu-button span:nth-child(2) {
    margin: calc(5*2560px / 1920) 0;
    margin: calc(5*var(--width-multiplier)) 0;
}

.header__mobile-menu-button span:nth-child(3) {
    width: calc(16*2560px / 1920);
    width: calc(16*var(--width-multiplier));
}

.header__mobile-menu-button:hover span {
    background-color: #d00e46
}

.header__mobile-menu-button:hover span:nth-child(1),.header__mobile-menu-button:hover span:nth-child(3) {
    width: 100%
}

.header__submenu {
    padding-top: 0.5rem;
    /* position: relative; */
}


.header_drop-menu:hover{
display: flex;
}

.header__menu:hover .header__drop-menu{
    display: flex;
    width: 100%;
}
.header__drop-menu {
    position: absolute;
    top: 75px;
    z-index: 4;
    width: auto;
    display: flex;
    flex-direction: column;
    display: none;
    /* animation: fade .3s ease-out; */
    background: #fff;
    padding: .5rem 0 1rem 0;
}
.header__drop-menu::before{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: -100%;
    top:0;
    background-color: #fff;
}

.header__drop-menu::after {
    content: "";
    display: block;
    border: 10px solid transparent;
    opacity: 1;
    position: absolute;
    left: 10px;
    top: -22px;
    transition: .2s all ease-out
}

.header__drop-menu a {
    color: #393649;
    font-family: "TT-Regular";
    font-size: 14px;
    font-weight: 400;
    line-height: 28px;
    white-space: nowrap;
    transition: .2s all ease-out
}

.header__drop-menu a:hover {
    color: var(--red);
}

.header__drop-menu:hover .menu-drop-filter{
    display: block;
}

.header__menu:hover .menu-drop-filter{
    display: block;
}

.menu-drop-filter{
    display: none;
    position: absolute;
    left: -100%;
    top: 100%;
    height: 100vh;
    width: 300vw;
    z-index: -100;
    backdrop-filter: blur(10px) ;
    background-color: rgba(57,54,73,.5);
}

.header__drop-menu:has(.menu-drop-filter:hover){
    display: none;
}

.header__disable {
    pointer-events: none;
    color: #e5e5e5
}

.header--inverse {
    background: #1b1e26
}

.header--inverse .header__lang-link,.header--inverse .header__lang-separator,.header--inverse .header__menu-link {
    color: #fff
}

.header--inverse .header__mobile-menu-button span {
    background-color: #fff
}

.header--inverse .header__menu-link::after {
    border-top: 5px solid #fff
}
