.header {
    position: fixed;
    top: 0;
    left: calc(50% - (var(--cont) / 2 * 1px - var(--sb-width)));
    right: calc(50% - var(--cont) / 2 * 1px);
    z-index: 20;
    padding-right: 40px;
    padding-top: 50px;
    transition: padding .3s;
}

.inn_h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 84px;
    border-radius: 12px;
    background-color: var(--c-red);
    transition: background .3s, box-shadow .3s;
    box-shadow: 0 0 8px #0005;
}

.h_menu {
    transition: .3s;
    color: var(--c-white);
    width: calc(100% - 260px - 39px);
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    visibility: visible;
    opacity: 1;
}

.h_menu_link {
    position: relative;
}

.h_menu_link:after {
    position: absolute;
    content: "";
    left: 50%;
    right: 50%;
    width: 0;
    height: 2px;
    background-color: var(--c-white);
    transition: .3s;
    top: calc(100% + 5px);
}

.h_menu_link:hover {
    opacity: 1;
}

.h_menu_link:hover:after {
    left: 0;
    right: 0;
    width: 100%;
}

.h_links,
.h_btns {
    display: flex;
    align-items: center;
}

.h_btns {
    justify-content: space-between;
    width: 260px;
}

.h_btn_login {
    cursor: pointer;
    display: flex;
    align-items: center;
    background-color: var(--c-white);
    border-radius: 12px;
    height: 46px;
    padding: 0 14px;
    transition: .3s;
}
.h_btn_login.account {
    max-width: 200px;
    margin-left: 16px;
    padding: 0 10px;
}

.h_btn_ava{
    --s:28px;
    width: var(--s);
    min-width: var(--s);
    height: var(--s);
    border-radius: 100%;
    overflow: hidden;
}
.h_btn_ava img{
    width: 100%;
    height: 100%;
}
.h_btn_name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-left: 10px;
}

.h_btn_login svg {
    width: 24px;
    height: 24px;
}

.h_link svg *,
.h_btn_login svg path {
    transition: .3s;
}

.h_btn_login:hover {
    opacity: 1;
    color: var(--c-red);
}

.h_btn_login:hover svg path {
    stroke: var(--c-red);
}

.h_btn_login span {
    padding-top: 2px;
    margin-left: 2px;
}

.h_link_search .h_link_search_icon,
.h_link_favo {
    width: 20px;
    min-width: 20px;
}

.h_link_favo svg path {
    fill: #fff0;
}

.h_link_favo:hover svg path, .h_link_favo.active svg path {
    fill: var(--c-white);
}

.h_link:hover {
    opacity: 1;
}

.h_link svg {
    width: 100%;
    height: auto;
}

@media screen and (min-width: 1033px) {
    .header.header-scroll {
        padding-top: 20px;
    }

    .header.header-transparent {
        padding-top: 38px;
    }

    .header.header-transparent .inn_h {
        box-shadow: 0 0 8px #0000;
        background-color: #fff0;
    }

    .header.header-transparent .h_menu {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .header.header-transparent .h_btn_login {
        box-shadow: inset 0 0 0 1px var(--c-white);
    }

    .header.header-transparent .h_btn_login:hover {
        background-color: var(--c-red-light);
        color: var(--c-white);
    }

    .header.header-transparent .h_btn_login:hover svg path {
        stroke: var(--c-white);
    }
}

.h_link_search {
    display: none;
}

.h_btn_burger,
.h_logo {
    display: none;
}

.header_mob_menu {
    display: none;
}

@media screen and (max-width: 1728px) {
    .h_menu {
        font-size: 16px;
    }

    .inn_h {
        padding: 0 20px;
    }

    .inn_h {
        height: 64px;
    }

    .h_btns {
        width: 230px;
    }

    .h_menu {
        width: calc(100% - 230px - 30px);
    }
}

@media screen and (max-width: 1440px) {
    .h_menu {
        font-size: 14px;
    }

    .h_btn_login {
        height: 40px;
    }
}

@media screen and (max-width: 1240px) {
    .h_btns {
        width: 220px;
    }

    .h_menu {
        width: calc(100% - 214px - 30px);
    }

    .header {
        padding-right: 20px;
    }
}

/*@media (min-width: 1033px) {*/
    .header {
        position: absolute;
    }
/*}*/

@media screen and (max-width: 1140px) and (min-width: 1033px) {
    .h_link_search {
        border-radius: 12px;
        transition: background .3s;
        padding: 8px;
        cursor: pointer;
    }

    .h_link_search:hover {
        background-color: var(--c-white);
    }

    .h_link_search:hover svg path {
        stroke: var(--c-red);
    }
}

@media screen and (min-width: 1033px) {

    .h_link_search.show {
        background-color: var(--c-white);
    }
}
@media screen and (max-width: 1140px) {
    .h_link_search.show svg path {
        stroke: var(--c-red);
    }
    .header {
        padding-top: 20px;
        left: 0;
        right: 0;
        padding-right: 0;
    }

    .h_link_search {
        position: relative;
        display: flex;
    }

    .h_link_search_inp {
        display: none;
        top: 0;
        overflow: hidden;
        position: absolute;
        right: 0;
        z-index: 1;
        width: 200px;
        height: 100% !important;
        border-radius: 12px;
        background-color: #fff;
        font-size: 14px;
        border:1px solid #fff0;
        transition: border .3s;
    }
    .h_link_search_inp input{
        height: 100%;
        width: 100%;
        padding: 0 40px 0 12px;
    }
    .h_link_search.is_invalid  .h_link_search_inp{
        border-color: var(--c-red);
    }
    .h_link_search_icon{
        position: relative;
        z-index: 2;
    }

    .h_link_search svg path {
        transition: .3s;
    }

    .h_btns {
        width: unset;
    }

    .h_link + .h_link {
        margin-left: 8px;
    }

    .h_btn_login {
        margin-left: 16px;
    }

    .h_menu {
        width: unset;
    }

    .h_menu_link + .h_menu_link {
        margin-left: 20px;
    }
}

@media screen and (max-width: 1032px) {
    .h_link_search_inp{
        height: 40px!important;
        top:50%;
        transform: translateY(-50%);
        right: -10px;
    }
    .header {
        padding-top: unset;
        box-shadow: 0 0 4px #0002;
    }

    .inn_h {
        height: 76px;
        padding: 0;
        border-radius: unset;
        background: none;
        box-shadow: unset;
    }

    .h_logo {
        display: flex;
        align-items: center;
    }

    .hl_name {
        margin-left: 8px;
        font-size: 20px;
        color: var(--c-red);
/*        animation: hl_name_anim 1.6s ease-out;*/
    }

    .hl_imgs {
        --s: 34px;
        display: flex;
/*        animation: hl_imgs_anim 1.2s;*/
    }

    .hl_img {
        box-shadow: 0 0 0 3px #F2F2F2;
        width: var(--s);
        height: var(--s);
        border-radius: 100%;
        overflow: hidden;
    }

    .hl_img + .hl_img {
        margin-left: calc(var(--s) * -1 / 2);
/*        animation: hl_img_anim 1.2s;*/
    }

    @keyframes hl_imgs_anim {
        0% {
            transform: scale(.2);
            opacity: 0;
        }
        50% {
            transform: scale(1);
            opacity: 1;
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }
    @keyframes hl_img_anim {
        0% {
            margin-left: -34px;
        }
        50% {
            margin-left: -34px;
        }
        100% {
            margin-left: -17px;
        }
    }
    @keyframes hl_name_anim {
        0% {
            transform: translateX(-10px);
            opacity: 0;
        }
        75% {
            transform: translateX(-10px);
            opacity: 0;
        }
        100% {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .hl_img img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .h_btn_login,
    .h_menu {
        display: none;
    }

    .header {
        background-color: #F2F2F2;
        border-radius: 0 0 10px 10px;
    }

    .h_link svg path {
        stroke: var(--c-primary);
    }

    .h_btn_burger {
        position: relative;
        display: block;
        cursor: pointer;
        width: 36px;
        height: 36px;
        margin-left: 26px;
    }

    .h_link_search {
        padding: unset;
    }

    .h_link + .h_link {
        margin-left: 18px;
    }

    .h_link_search .h_link_search_icon,
    .h_link_favo {
        width: 18px;
        min-width: 18px;
    }

    .h_btn_burger_icon,
    .h_btn_krest_icon {
        top: 0;
        left: 0;
        position: absolute;
        width: 100%;
        height: 100%;
        transition: opacity .3s;
    }

    body.showBurgerMenu {
        overflow: hidden;
    }

    .header_mob_menu {
        display: block;
        position: fixed;
        z-index: 19;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        visibility: hidden;
        opacity: 0;
        transition: .3s;
    }

    .hmm_bg {
        position: absolute;
        z-index: 1;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #0003;
    }

    .hmm_bg,
    .inn_hmm {
        position: absolute;
    }

    .inn_hmm {
        --hmm-w: 375px;
        padding-top: 76px;
        padding-bottom: 40px;
        right: 0;
        top: 0;
        bottom: 0;
        width: calc((100% - var(--cont) * 1px) / 2 + var(--hmm-w));
        background-color: rgba(245, 245, 245, 1);
        color: #302929;
        overflow-y: auto;
        z-index: 2;
    }

    .hmm_cont {
        padding: 0 var(--cont-padding);
        padding: 0 28px;
        width: var(--hmm-w);
        display: flex;
        flex-direction: column;
        gap: 24px;
        font-size: 16px;
    }

    .hmm_btn_login {
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: .3s;
        /*border: 1px solid var(--c-white);
        border-radius: 12px;
        height: 46px;
        padding: 0 14px;*/
        transition: .3s;

    }

    .hmm_btn_login_left{
        display: flex;
        align-items: center;
        gap:8px;
    }

    .hmm_btn_login_right{
        display: flex;
        align-items: center; 
        gap:8px;
    }

    .hmm_account {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 16px;
    }
    .hmm_account + .hmm_menu{
        margin-top: 0;
    }

    .hmma_name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 16px;
    }
    .hmma_edit_i:hover{
        opacity: 1;
    }
    .hmma_edit_i,
    .hmma_ava {
        min-width: var(--s);
        width: var(--s);
        height: var(--s);
    }
    .hmma_ava {
        border-radius: 100%;
        /*overflow: hidden;*/
        --s: 36px;
    }
    .hmma_ava img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
     }
    .hmma_edit_i {
        --s: 24px;
        margin-left: auto;
        position: absolute;
        bottom: 0;
        right: 0;
    }
    .hmma_edit_i svg{
        width: 100%;
        height: 100%;
    }
    .hmm_menu {
        margin-top: 16px;
    }

    .hmm_menu_link {
        display: flex;
        padding: 16px 0;
    }

    body.showBurgerMenu .header_mob_menu {
        visibility: visible;
        opacity: 1;
    }

    .hmm_menu_link + .hmm_menu_link {
        border-top: 1px solid #CECECE;
    }

    body.showBurgerMenu .h_btn_burger_icon,
    .h_btn_krest_icon {
        opacity: 0;
    }

    body.showBurgerMenu .h_btn_krest_icon,
    .h_btn_burger_icon {
        opacity: 1;
    }



    .hmm_balance_pan {
        display: flex;
        justify-content: space-between;
        color:var(--c-red);
    }

    .hmm_bp_btn {
        font-weight: 700;
        text-decoration: underline;
    }

    .hmm_stat {
        display: flex;
        justify-content: space-between;
    }

    .hmm_stat + .hmm_stat{
        margin-top: 10px;
    }

    .hmm_ml {
        display: flex;
        align-items: center;
        gap: 8px;
        padding-bottom: 16px;
        padding-top: 16px;
    }

    .hmm_ml_icon {
        width: 24px;
        height: 24px;
    }

    .hmm_ml_icon svg {
        width: 100%;
        height: 100%;
    }

    .hmm_ml_name {
        padding-top: 2px;
    }

    .hmm_gml + .hmm_gml, .hmm_ml + .hmm_ml {
        /*margin-top: 16px;
        padding-top: 16px;*/
        border-top: 1px solid #444143;
    }

    .hmm_gus_menu {
        display: flex;
        flex-direction: column;
        padding: 24px 0;
    }

    .hmm_gus_menu .hmm_gml{
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .hmm_btns {
        display: flex;
        justify-content: space-between;
    }

    .hmm_btn {
        align-items: center;
        display: flex;
        gap: 8px;
    }

    .hmm_btn svg {
        width: 24px;
        height: 24px;
    }

    .hmm_btn span {
        padding-top: 2px;
    }

    .hmm_account {
        display: flex;
        align-items: center;
        margin-top: 16px;
    }

    .hmm_account {
        flex-direction: column;
        gap: 12px;
        position: relative;
    }

    .hmma_ava {
        border-radius: 100%;
        --s: 66px;
        position: relative;
    }
    .header {
        position: fixed;
    }

}

@media screen and (max-width: 495px) {

    .hmm_account {
        flex-direction: column;
        gap: 12px;
        position: relative;
    }

    .hmma_edit_i {
        /*position: absolute;
        top: 72px;
        border-radius: 10px;
        background-color: var(--c-red);
        left: calc(50% + 22px);
        --s: 32px;
        margin-left: unset;*/
    }

    .hmma_name{
        font-size: 16px;
    }
    .hmma_ava {
        --s: 100px;
    }
    .inn_hmm {
        --hmm-w: 100%;
        left: 0;
        width: unset;
    }

    .hmm_menu_link {
        font-size: 20px;
        line-height: calc(100% * 28 / 20);
    }

    .hmm_btn_login {
        font-size: 20px;
        height: 54px;
    }
}
