.header {
    margin-bottom: 40px;
    position: relative;
}
.header__up {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 16px 30px 0 20px;
    z-index: 2;
}
.header__logo {
    display: flex;
    align-items: center;
    flex: none;
}
.header--logo {
    display: block;
    margin-right: 14px;
}
.header--logo img {
    display: block;
    width: 172px;
}
.header__text {
    width: 362px;
    color: #383838;
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
    flex: none;
}
.header__searchContainer {
    position: relative;
    width: 348px;
    height: 38px;
}
.header__search {
    width: 348px;
    height: 38px;
    background-color: #004E86;
    border-radius: 13px;
    /*position: relative;*/
    position: absolute;
    top: 0;
    right: 0;
    transition: width 0.2s ease, opacity 0.2s ease;
}
.header__searchContainer.opened .header__search {
    width: calc(100% + 428px);
}
.header__searchContainer.showed .searchResult {
    opacity: 1;
    visibility: visible;
}
.header__search input {
    width: calc(100% - 60px);
    margin-top: 1px;
    margin-left: 1px;
    height: calc(100% - 2px);
    background: #FEFEFF;
    border-radius: 12px;
    outline: none;
    padding: 5px 16px;
    font-size: 14px;
    z-index: 1;
    position: relative;
    border: none;
}
.header__search--button {
    width: 60px;
    margin-left: -13px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
}
.header__search--button>span {
    font-size: 17px;
}
.header__search .search--clear, .header__search .search--close {
    position: absolute;
    top: 10px;
    right: 70px;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    z-index: 1;
    display: none;
}
.header__search .search--clear span, .header__search .search--close span {
    font-size: 20px;
    opacity: 0.3;
    transition: opacity 0.2s ease;
}
.header__search .search--clear span:before, .header__search .search--close span:before {
    color: #2C63AC;
}
.header__search .search--clear:hover span, .header__search .search--close:hover span {
    opacity: 1;
}
.header__searchContainer.noempty .search--clear {
    display: flex;
}
.header__left {
    display: flex;
    align-items: center;
    column-gap: 60px;
}

.header__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}
.header__phone--icon {
    font-size: 24px;
    margin-right: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.49);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.60) 8.4%, rgba(255, 255, 255, 0.10) 81.72%);
}
.header__phone--upText {
    color: rgba(113, 133, 158, 0.80);
    font-size: 12px;
    font-weight: 700;
    line-height: 100%;
    margin-bottom: 2px;
}
.header__phone--phone {
    color: #004E86;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    transition: color 0.2s ease;
}
.header__phone--phone:hover {
    color: #265899;
}
.header__phone--phone:active {
    color: #004E86;
}

.header__menu {
    display: flex;
    align-items: center;
    column-gap: 13px;
    z-index: 1;
    position: relative;
    padding: 18px 30px 36px 20px;
}
.header__menu__item {
    position: relative;
}
.header__menu__item__content {
    padding: 6px 16px 6px 14px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease, background-color 0.2s ease;
    color: #004E86;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    border-radius: 13px;
}
.header__menu__item--icon {
    font-size: 18px;
    margin-right: 6px;
}
.header__menu__item--icon:before {
    transition: color 0.2s ease;
}
.header__menu__item__content:hover {
    color: #FFE100;
    background-color: #F5F7FA;
}
.header__menu__item__content:hover .header__menu__item--icon:before {
    color: #FFE100;
}
.header__menu__item__content:active {
    color: #FFE100;
    background-color: #004E86;
}
.header__menu__item__content:active .header__menu__item--icon:before {
    color: #FFE100;
}
.header__menu__item.active .header__menu__item__content {
    color: #FFE100;
    background-color: #004E86;
}
.header__menu__item.active .header__menu__item__content .header__menu__item--icon:before {
    color: #FFE100;
}

.header__banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    overflow: hidden;
}
.header__banner picture {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}
.header__banner picture, .header__banner img {
    display: block;
    width: 100%;
    height: 100%;
}
.header__banner img {
    object-fit: cover;
    object-position: center bottom;
    display: block;
}


.header--selectLang {
    width: 76px;
}
.header--selectLang .select__header {
    height: 40px;
    background: rgba(255, 255, 255, 0.20);
    box-shadow: 0 5px 15px 0 rgba(0, 78, 134, 0.08);
}
.header--selectLang .select__header>div {
    flex: 1;
}
.header--selectLang .select__header p {
    text-align: center;
    width: 100%;
    color: #004E86;
}
.header--selectLang .select--arrow:before {
    color: #004E86;
}


.header__burger {
    display: none;
}
.header__burger>span {
    display: block;
}

.header__button {
    text-align: center;
    position: relative;
}
.header__button__content {
    cursor: pointer;
}
.header__button--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.49);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.60) 8.4%, rgba(255, 255, 255, 0.10) 81.72%);
}
.header__button--icon [class^="icon-"] {
    font-size: 16px;
}
.header__button--icon [class^="icon-"]:before {
    color: #004E86;
}
.header__popup {
    position: absolute;
    top: 100%;
    padding-top: 20px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}
.header__popup.showed {
    opacity: 1;
    visibility: visible;
}
.header__popup:before {
    content: "";
    display: block;
    width: 43px;
    height: 19px;
    background-image: url("data:image/svg+xml;utf8,<svg width='43' height='19' viewBox='0 0 43 19' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M20.4157 0.644895C17.9198 6.14565 11.1145 18.3931 0 18.3931L43 18.3931C31.8855 18.3931 25.0802 6.14565 22.5843 0.644895C22.1941 -0.215043 20.8059 -0.215043 20.4157 0.644895Z' fill='white'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    top: 2px;
    position: absolute;
}
.header__popup.phonePopup:before {
    right: 53px;
}

@media screen and (max-width: 1400px) {
    .header__left {
        column-gap: 30px;
    }
    .header__searchContainer.opened .header__search {
        width: calc(100% + 398px);
    }
}

@media screen and (max-width: 1350px) {
    .header__left {
        column-gap: 10px;
    }
    .header__searchContainer.opened .header__search {
        width: calc(100% + 378px);
    }
}

@media screen and (max-width: 1300px) {
    .header__text {
        width: 270px;
    }
    .header__menu {
        column-gap: 5px;
    }
    .header__menu__item__content {
        padding: 6px 14px 6px 12px;
    }
    .header__left {
        column-gap: 5px;
    }
    .header__searchContainer.opened .header__search {
        width: calc(100% + 280px);
    }
}

@media screen and (max-width: 1200px) {
    .header {
        margin-bottom: 20px;
    }
    .header__menu {
        display: none;
    }
    .header__logo {
        flex: 1;
    }
    .header__burger {
        display: block;
        font-size: 34px;
        margin-right: 12px;
        cursor: pointer;
    }
    .header--logo {
        margin-right: 12px;
    }
    .header--logo img {
        width: 119px;
    }
    .header__text {
        flex: 1;
        color: #05325C;
        font-size: 13px;
        line-height: 15px;
        max-width: 300px;
    }
    .header__rightButtons {
        display: flex;
        align-items: center;
        column-gap: 14px;
    }
    .header__up {
        padding: 12px 20px 24px;
        /*column-gap: 40px;*/
    }
    .header__banner {
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }

    .header--selectLang {
        width: 78px;
    }
    .header--selectLang .select__header {
        height: 34px;
        border-radius: 11px;
    }

    .header__left {
        flex: 1;
        margin-right: 14px;
        column-gap: 40px;
    }
    .header__search--button {
        display: none;
    }
    .header__searchContainer {
        width: 34px;
        height: 34px;
    }
    .header__search {
        opacity: 0;
        visibility: hidden;
        position: absolute;
        right: 38px;
        width: 0;
        border-radius: 11px;
        background: linear-gradient(150deg, rgba(255, 255, 255, 0.60) 8.4%, rgba(255, 255, 255, 0.10) 81.72%);
        height: 36px;
        top: 50%;
        transform: translateY(-50%);
        backdrop-filter: blur(10px);
    }
    .header__search input {
        width: calc(100% - 8px);
        margin-left: 4px;
        margin-top: 4px;
        height: calc(100% - 8px);
        border-radius: 7px;
    }
    .header__searchContainer.opened .header__search {
        visibility: visible;
        opacity: 1;
        width: calc(100vw - 266px);
    }
    .header__search .search--clear, .header__search .search--close {
        top: 8px;
        right: 16px;
        width: 20px;
        height: 20px;
    }
    .header__search .search--clear span, .header__search .search--close span {
        font-size: 20px;
        opacity: 0.3;
        transition: opacity 0.2s ease;
    }
}

@media screen and (max-width: 700px) {
    .header {
        margin-left: -10px;
        width: calc(100% + 20px);
    }
    .header__banner {
        border-bottom-left-radius: 26px;
        border-bottom-right-radius: 26px;
    }
    .header__text {
        display: none;
    }
    .header__up {
        padding: 12px 20px 18px;
        column-gap: 0;
    }
    .header__burger {
        font-size: 24px;
        margin-right: 6px;
    }
    .header--logo {
        margin-right: 0;
    }
    .header--logo img {
        width: 95px;
    }
    .header__rightButtons {
        column-gap: 10px;
    }
    .header__button--icon {
        width: 24px;
        height: 24px;
        border-radius: 7px;
    }
    .header__button--icon [class^="icon-"] {
        font-size: 12px;
    }
    .header--selectLang {
        width: 64px;
    }
    .header--selectLang .select__header {
        height: 24px;
        border-radius: 7px;
    }
    .select__body>div {
        padding: 0 5px;
    }
    .select__body ul {
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .select__body ul li {
        column-gap: 6px;
    }

    .header__left {
        margin-right: 10px;
        column-gap: 10px;
    }
    .header__searchContainer {
        width: 24px;
        height: 24px;
    }
    .header__search {
        width: calc(100% - 40px) !important;
        position: fixed;
        top: 6px;
        left: 20px;
        right: auto;
        transform: none;
        z-index: 1000;
    }
    .header__searchContainer.opened .header__search {
    }

    .header__search .search--clear {
        display: none !important;
    }
    .header__search .search--close {
        display: flex !important;
    }
}