
.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: auto;
    margin: 0 auto;
    transition: all 0.35s ease;
}
.header.on-scroll {
    background: #000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);;
}

.header_top {
    display: flex;
    justify-content: space-between;
    /*align-items: center;*/
    padding-top: 20px;
}
.header_top_left,
.header_top_right {
    display: flex;
    justify-content: space-between;
    /*align-items: center;*/
    width: 100%;
}

.header_logo {
    display: flex;
    align-items: center;
}
.header_menu {
    background-color: #fff;
    height: 80px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    z-index: 1;
    position: relative;
}
.header_menu nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}
ul.menu-inner {
    height: 100%;
    display: flex;
    align-items: center;
}
ul.menu-inner {
    display: flex;
    list-style-type: none;
    padding-inline-start: 0px;
    margin: 0;
    padding: 0px;
    height: 100%;
    display: flex;
    align-items: center;
}

ul.menu-inner > li.menu-item > .sub-menu > li > a,
ul.menu-inner > li.menu-item > .sub-menu > li > .sub-menu > li > a {
    color: #FFFFFF;
    background: #0C8481;
}
ul.menu-inner > li.menu-item > .sub-menu > li > a:hover,
ul.menu-inner > li.menu-item > .sub-menu > li > .sub-menu > li > a:hover {
    background: #38ADA5;
}
ul.menu-inner li a {
    font-family: 'Istok Web';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 29px;
    display: flex;
    align-items: center;
    color: #0C8481;
    text-decoration: none;
    height: 100%;
    border-bottom: 4px solid transparent;

}
ul.menu-inner li a:hover {
    border-bottom: 4px solid #38ADA5
}
/*#menu-primary .sub-menu {*/
/*    display: none;*/
/*}*/
.header_top_phone_num,
.header_top_city,
.header_top_lang {
    font-family: 'Istok Web';
    font-style: normal;
    font-weight: lighter;
    font-size: 18px;
    line-height: 35px;
    display: flex;
    /*align-items: center;*/
    text-transform: uppercase;
    color: #FFFFFF;
}
.header_top_lang {
    padding-top: 5px;
}
.header_top_address_adr {
    font-family: 'Istok Web';
    font-style: normal;
    font-weight: lighter;
    font-size: 18px;
    line-height: 35px;
    display: flex;
    align-items: center;
    color: #FFFFFF;
}


.header_callback_btn {
    padding: 10px;
    border: 2px solid #000000;
    font-family: 'Istok Web';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    display: flex;
    align-items: center;
    color: #131313;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.header_callback_btn:hover {
    border: 2px solid #0C8481;
    color: #fff;
    background: #0C8481;
    transition: all 0.2s ease-in-out;
}
.burger {
    display: none;
}


.header.scrolled .header_top {
    height: 0px;
    transition: all 0.2s ease-in-out;
    padding-top: 0px;
}

.header .header_top {
    padding-top: 20px;
    height: 100px;
    transition: all 0.2s ease-in-out;
}

.header.scrolled .header_block {
    background: #fff;
    transition: all 0.2s ease-in-out;
}
.header .header_block {
    background: transparent;
    transition: all 0.2s ease-in-out;
}

ul.menu-inner li .sub-menu li .sub-menu {
    top: 0;
    left: 100%;
}

.menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
    align-items: center;
    height: 100%;
}

.menu li {
    position: relative;
    height: 100%;
}

.menu a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 998;
}

.menu-item-has-children:hover > .sub-menu {
    display: block;
}

.sub-menu li a {
    padding: 10px 10px;
    white-space: nowrap;
    color: #333;
    background: #f9f9f9;
}

.sub-menu li a:hover {
    background: #38ADA5;
    color: #fff;
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    transition: transform 0.3s;
}


.has-children > .nav-link {
    display: inline-block;
    position: relative;
}

.submenu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-block;
    padding: 5px;
}

.sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.has-children:hover > .sub-menu,
.has-children .submenu-toggle:focus + .sub-menu {
    display: block;
}
.menu-primary-container,
.menu-primary-en-container,
.menu-primary-ru-container {
    height: 100%;
}

.header_mobile_btn {
    display: none;
}
.lang > .wpml-ls-legacy-dropdown {
    width: 58px;
}
.lang .wpml-ls-legacy-dropdown a {
    border: 1px solid transparent;
    background-color: transparent;
    color: #FFFFFF;
    padding: 2px 10px;
}
.lang .wpml-ls-legacy-dropdown a:hover {
    color: #FFFFFF;
    background: transparent;
}
.lang .wpml-ls-legacy-dropdown a span {
    vertical-align: middle;
    text-shadow: 0px 10px 20px #000000;
    -webkit-text-stroke: 1px #e5e5e5;
    font-weight: lighter;
}
.lang .wpml-ls-legacy-dropdown .wpml-ls-current-language:hover>a,
.lang .wpml-ls-legacy-dropdown a:focus, .wpml-ls-legacy-dropdown a:hover {
    color: #FFFFFF;
    background: transparent;
}
.lang .wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
    border-top: 1px solid transparent;
}
.lang .wpml-ls-legacy-dropdown a.wpml-ls-item-toggle:after {
    position: absolute;
    content: '';
    top: 5px;
    right: 0;
    background-repeat: no-repeat;
    background-size: contain;
    width: 16px;
    height: 16px;
    border: none;
    border-top: none;
    background-image: url("data:image/svg+xml,%3Csvg width='26' height='15' viewBox='0 0 26 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 2.05121L13.1158 13L2 2' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.select2-container .select2-selection--single{
    height: 40px;
    display: flex;
    align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__arrow{
    height: 40px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered{
    line-height: 40px;
}

.city_mob_switcher {
    display: none;
}

@media only screen and (max-width: 1680px) {
    .menu a {
        padding: 15px 10px;
    }
    .header_menu {
        height: 82px;
    }
    ul.menu-inner li a {
        font-size: 15px;
    }
}
@media only screen and (max-width: 992px) {
    .city_mob_switcher {
        display: flex;
        justify-content: space-between;
        padding: 0 10px;
    }
    .city_mob_switcher a {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .city_mob_switcher a.active_city {
        background: #0b8481;
    }
    .city_mob_switcher a span {
        font-size: 20px;
        color: #fff;
    }
    .city_mob_switcher a svg {
        width: 30px;
    }
    .header_mobile_btn {
        display: flex;
        gap: 10px;
        align-items: center;
    }
    .header_logo {
        position: relative;
        z-index: 9999999;
    }
    .header {
        background: #000;
    }
    .header.active {
        height: 100%;
        overflow-x: scroll;
    }
    .header_top {
        display: none;
    }
    .header_menu {
        padding: 0 16px;
        height: 70px;
    }
    #menu,
    .header_callback {
        display: none;
    }

    .header_logo img {
        width: 150px;
    }
    #burger {
        display: flex;
        position: relative;
        height: 30px;
        z-index: 99999;
        top: 4px;
    }
    #menu.active {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .menu.active ul.menu-inner {
        flex-direction: column;
        /*background: #131313;*/
        z-index: 9999;
        width: 100%;
        margin-top: 70px;
    }
    .menu li {
        height: auto;
        width: 100%;
    }
    ul.menu-inner {
        align-items: flex-start;
    }
    li.menu-item.active > a {
        height: initial;
    }

    ul.menu-inner li a {
        height: auto;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .menu-item-has-children:hover > .sub-menu {
        width: 100%;
        position: relative;
        top: 0;
    }
    ul.menu-inner li .sub-menu li .sub-menu {
        top: 0;
        left: 0;
    }
    li.menu-item-has-children:after {
        position: absolute;
        content: '';
        top: 26px;
        right: 16px;
        background-repeat: no-repeat;
        background-size: cover;
        background-image: url("data:image/svg+xml,%3Csvg width='11' height='6' viewBox='0 0 11 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M6.11101 0.238562L11 4.84788L9.77797 6L5.5 1.96675L1.22203 6L0 4.84788L4.88898 0.238562C5.05105 0.0858111 5.27083 0 5.5 0C5.72916 0 5.94895 0.0858111 6.11101 0.238562Z' fill='white'/%3E%3C/svg%3E%0A");
        width: 11px;
        height: 6px;
        transform: rotate(180deg);
    }
    ul.menu-inner li a:hover {
        border-bottom: 4px solid transparent;
    }
    ul.menu-inner > li.menu-item > .sub-menu > li > a,
    ul.menu-inner > li.menu-item > .sub-menu > li > .sub-menu > li > a {
        background: #131313;
    }
    li.menu-item-has-children.active:after {
        transform: rotate(0deg);
    }
    .header_menu {
        background: #131313;
    }
    .burger span {
        background: #f9f9f9;
    }
}

#city-select.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.header_top_city {
    position: relative;
    height: 30px;
}

.header_top_city .select2-container--default .select2-selection--single {
    background-color: #ffffff00;
    border: none;
    border-radius: 4px;
    color: #fff;
}

.header_top_city .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #FFFFFF !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    position: relative;
}
.select2-container--default .select2-selection--single .select2-selection__arrow:after {
    position: absolute;
    content: '';
    top: 7px;
    right: 0;
    background-repeat: no-repeat;
    background-size: contain;
    width: 16px;
    height: 16px;
    border: none;
    border-top: none;
    background-image: url("data:image/svg+xml,%3Csvg width='26' height='15' viewBox='0 0 26 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 2.05121L13.1158 13L2 2' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}
.header_top_city .select2-container--default .select2-results>.select2-results__options {
    background: transparent;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-dropdown .select2-results__option {
    background-color: transparent !important;
    color: white !important;
    padding: 0px 6px;
}
.select2-dropdown {
    background-color: transparent !important;
}
.select2-container--open .select2-dropdown--below {
    border: none !important;
}
#select2-city-select-container {
    margin-top: 6px;
}
.header_top_city > span > span.selection > span > span.select2-selection__arrow {
    top: 6px;
}