.header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    z-index: 16;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: fixed;
    padding: calc(15px + 5 * (100vw - 320px) / 960) 0;
    top: 0;
    right: 0;
    width: 100%;
    background-color: #fff;
    -webkit-box-shadow: 0 4px 11px rgba(3, 23, 122, 0.1);
    box-shadow: 0 4px 11px rgba(3, 23, 122, 0.1);
}

.header__menu-open {
    display: none;
}

.header__bloc {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.header__bloc-2 {
    width: 100%;
    max-width: 100%;
}

.header__wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    max-width: 100%;
    width: 100%;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.header__logo {
    margin-right: 50px;
}

.header__logo img {
    max-width: calc(111px + 39 * (100vw - 320px) / 1600);
    display: block;
}

.header__menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.header__menu-item {
    margin-right: 38px;
}

.header__menu-item:last-child {
    margin-right: 0;
}

.header__menu-link {
    font-family: Roboto, sans-serif;
    font-weight: normal;
    font-size: 16px;
    line-height: 19px;
    color: #03177A;
    text-decoration: none;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.header__menu-link:hover {
    color: #495DFA;
}

.header__actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 20px;
}

.header__login {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-family: Roboto, sans-serif;
    font-weight: normal;
    font-size: 16px;
    line-height: 19px;
    color: #03177A;
    transition: all 0.2s ease;
}

.header__login:hover {
    color: #495DFA;
}

.header__login-img {
    margin-right: 9px;
}

.header__registr {
    font-family: Montserrat, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
    display: -webkit-box;
    display: -ms-flexbox;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    display: inline-block;
    text-decoration: none;
}

.header__registr-link {
    padding: 10px 14px;
    background: #FA497F;
    border: 2px solid transparent;
    border-radius: 136px;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    color: #fff;
}

.header__registr-link:hover {
    background: #fff;
    border: 2px solid #FA497F;
    color: #FA497F;
}

.header__mob {
    display: none;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    position: fixed;
    width: 100%;
    min-height: 100vh;
    visibility: hidden;
    top: -100%;
    opacity: 0;
    left: 0;
    background: #4152D1;
    overflow: auto;
}

.header__mob-2.open {
    top: 127px !important;
}

.header__mob-2.open.higher {
    top: 52px !important;
    visibility: visible;
    opacity: 1;
    z-index: 15;
}

.header__mob.open {
    top: 57px;
    visibility: visible;
    opacity: 1;
    z-index: 15;
}

.header__mob-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 31px 20px 38px 20px;
    overflow: auto;
}

.header__mob-decor {
    height: 1px;
    background-color: #fff;
    width: 100%;
    display: block;
    margin-bottom: 36px;
}

.header__mob-login {
    max-width: 250px;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border: 1px solid #FFFFFF;
    box-sizing: border-box;
    border-radius: 136px;
    padding: 7px;
    margin-bottom: 36px;
}

.header__mob-login img {
    margin-right: 9px;
}

.header__menu-open {
    width: 23px;
    height: 23px;
    background-image: url(../img/icon-burger.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: none;
}

.header__menu-open.open {
    height: 13px;
    background-image: url(../img/icon-close.png);
}

.header-2 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding-top: 0;
    padding-bottom: 0;
}

.header-2 .header__container {
    padding-top: calc(15px + 5 * (100vw - 320px) / 960);
    padding-bottom: calc(15px + 5 * (100vw - 320px) / 960);
}

.header-2 .header__top {
    width: 100%;
    border-bottom: 1px solid #E0E3ED;
}

.header-2__container {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.header-2 .header__top-left {
    min-height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.header-2 .header__top-left-link {
    font-family: Montserrat, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: calc(12px + 6 * (100vw - 320px) / 1600);
    line-height: calc(14px + 8 * (100vw - 320px) / 1600);
    color: #6E84A7;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-left: calc(23px + 12 * (100vw - 320px) / 1600);
    position: relative;
    border-bottom: 2px solid transparent;
}

.header-2 .header__top-left-link:nth-child(1) {
    margin-right: 38px;
}

.header-2 .header__top-left-link:nth-child(1)::before {
    position: absolute;
    content: "";
    background-image: url(../img/icon-puzzle.png);
    background-size: contain;
    background-repeat: no-repeat;
    left: 0;
    bottom: 50%;
    -ms-transform: translateY(50%);
    transform: translateY(50%);
    width: calc(15px + 9 * (100vw - 320px) / 1600);
    height: calc(15px + 11 * (100vw - 320px) / 1600);
}

.header-2 .header__top-left-link:nth-child(2)::before {
    position: absolute;
    content: "";
    background-image: url(../img/icon-calendar.png);
    background-size: contain;
    background-repeat: no-repeat;
    left: 0;
    bottom: 50%;
    -ms-transform: translateY(50%);
    transform: translateY(50%);
    width: calc(15px + 9 * (100vw - 320px) / 1600);
    height: calc(15px + 11 * (100vw - 320px) / 1600);
}

.header-2 .header__top-left-link.active {
    border-bottom: 2px solid #495DFA;
    color: #495DFA;
}

.header-2 .header__top-left-link.active:nth-child(1)::before {
    background-image: url(../img/icon-puzzle-active.png);
}

.header-2 .header__top-left-link.active:nth-child(2)::before {
    background-image: url(../img/icon-calendar-active.png);
}

.header-2 .header__top-right {
    padding-top: 12px;
    padding-bottom: 12px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.header-2 .header__top-user {
    margin-right: 36px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-family: Roboto, sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 19px;
    color: #03177A;
}

.header-2 .header__top-user picture {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.header-2 .header__top-user img {
    margin-right: 14px;
}

.header-2 .header__top-logout {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-family: Roboto, sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 19px;
    color: #495DFA;
}

.header-2 .header__top-logout img {
    margin-right: 10px;
}

.header-2 .header__top-logout picture {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.header__top-logout-icon {
    display: none;
}

.header .container {
    max-width: 1330px;
    padding: 0 20px;
    margin: 0 auto;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

@media (max-width: 1260px) {
    .header__logo {
        margin-right: 22px;
    }

    .header__menu-item {
        margin-right: 24px;
    }
}

@media (max-width: 1200px) {
    .header__menu-open {
        display: block;
    }

    .header__menu {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        max-width: 100%;
        width: 100%;
    }

    .header__menu-item {
        margin-bottom: 36px;
    }

    .header__menu-link {
        color: #E0E3ED;
    }

    .header__login {
        margin-right: 0;
    }

    .header__login-text {
        font-family: Roboto, sans-serif;
        font-style: normal;
        font-weight: normal;
        font-size: 16px;
        line-height: 19px;
        color: #EFF1F8;
    }

    .header__registr {
        width: 100%;
        max-width: 250px;
    }

    .header__registr-link {
        max-width: 100%;
        width: 100%;
        display: inline-block;
    }

    .header__mob {
        display: block;
    }

    .header__menu-open {
        display: block;
    }

    .header-2.hide .header__top {
        display: none;
    }
}

@media (max-width: 870px) {
    .header__mob-2.open {
        top: 93px !important;
    }

    .header-2__container {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .header-2 .header__top-left-link {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .header-2 .header__top-right {
        display: none;
    }
}

@media (max-width: 700px) {
    .header-2 .header__top-right {
        max-width: 100%;
        width: 100%;
    }

    .header__top-right {
        max-width: 100%;
        width: 100%;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .header__top-user {
        margin-right: 36px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        font-family: Roboto, sans-serif;
        font-style: normal;
        font-weight: normal;
        font-size: 16px;
        line-height: 19px;
        color: #fff;
    }

    .header__top-user picture {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .header__top-user img {
        margin-right: 14px;
    }

    .header__top-logout {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        font-family: Roboto, sans-serif;
        font-style: normal;
        font-weight: normal;
        font-size: 16px;
        line-height: 19px;
        color: #fff;
        margin-top: 28px;
    }

    .header__top-logout img {
        margin-right: 10px;
    }

    .header__top-logout-icon-dn {
        display: none;
    }

    .header__top-logout-icon {
        display: block;
    }
}
