#menu-osnovnoe .menu-item-has-children:hover::after {
    transform: rotate(180deg);
    display: inline-block;
}

ul.menu>li:hover>.sub-menu:has(.menu-item-has-children) {
    column-count: 1 !important;
}



@media (min-width: 992px) {
    header .wrapper.vc_row {
        /* background: var(--whiteOpacity800); */
        padding-top: var(--gapX5);
        padding-bottom: var(--gapX4);
        /* padding-left: var(--gapX4);
        padding-right: var(--gapX4); */
        /* border-radius: var(--roundedM); */
    }

    .sub-menu li.menu-item+li.menu-item {
        margin-top: var(--gapX6);
    }

    header .wrapper.part-2 {
        padding-bottom: unset;
    }
}

@media(min-width: 1199px) {
    #menu-osnovnoe>li.menu-item-has-children:has(ul.sub-menu)::after {
        content: '\e136';
        font-family: 'Phosphor';
        font-size: var(--textSsize);
        margin-left: 4px;
        transition: transform 0.3s ease;
        margin-bottom: -2px;
    }

    #menu-osnovnoe li.menu-item-has-children:has(ul.sub-menu):hover::after {
        transform: rotate(180deg);
        display: inline-block;
    }

    #menu-osnovnoe>li.menu-item-has-children>ul.sub-menu>li.menu-item:last-child,
    #menu-osvnovnoe>li.menu-item-has-children>ul.sub-menu>li.menu-item-has-children:last-child {
        margin-bottom: 0;
    }
}

@media (min-width: 768px) {
    header {
        padding-top: var(--gapX4);
        padding-bottom: var(--gapX4);
    }
}

header>div:not(.vc_row),
header .vc_column_container {
    display: flex;
    justify-content: space-between;
    flex-flow: row wrap;
    gap: var(--gapX6);
    align-items: center;
}

.new-header .not-follow,
.new-header .none {
    cursor: default;
}

#menu-osnovnoe .menu-item-has-children {
    position: relative;
    padding-right: 40px;
    margin-right: -44px;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

@media (min-width: 768px) {
    :is(menu, header) ul.menu>li:hover>.sub-menu:has(.menu-item-has-children) {
        top: var(--gapX8);
        width: max-content;
        max-width: calc(100vw - (2 * var(--outsideGap)));
        overflow-x: hidden;
    }

    #menu-osnovnoe>li>.sub-menu,
    #menu-osnovnoe>li>.sub-menu li,
    #menu-osnovnoe>li>.sub-menu li>a {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    #menu-osnovnoe .sub-menu li>a:hover,
    #menu-osnovnoe .sub-menu li:hover>a,
    #menu-osnovnoe .sub-menu .current-menu-item>a:hover,
    #menu-osnovnoe .sub-menu .current-menu-parent>a:hover,
    #menu-osnovnoe .sub-menu .current-menu-ancestor>a:hover,
    #menu-osnovnoe .sub-menu .current_page_parent>a:hover,
    #menu-osnovnoe .sub-menu .current_page_ancestor>a:hover {
        color: var(--primary500) !important;
    }

    #menu-osnovnoe .menu-item-type-custom.menu-item-has-children :is(a, button).none {
        color: var(--contentOpacityColor);
    }

    .sub-menu .sub-menu {
        padding-left: unset !important;
    }
}

.menu-content {
    display: none;
}

#xleb-mobile-open {
    display: none;
}

@media (max-width: 991px) {
    body.noScroll {
        overflow: hidden;
        height: 100vh;
        touch-action: none;
    }

    #xleb-mobile-open {
        display: block;
        background-color: transparent;
    }

    #xleb-mobile-menu {
        position: fixed;
        top: var(--outsideGap);
        bottom: var(--outsideGap);
        left: var(--outsideGap);
        width: calc(100% - (2 * var(--outsideGap)));
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-100%);
        transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0.4s;
        display: flex;
        border-radius: var(--roundedM);
        overflow: hidden;
    }

    #xleb-mobile-menu.is-open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
    }

    .menu-content {
        position: relative;
        width: 100%;
        height: 100%;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: var(--roundedM);
    }

    .xleb-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--gapX4) var(--gapX5);
        border-bottom: 1px solid var(--dividerDefault);
        background: var(--white);
        position: absolute;
        top: 10px;
        left: 0;
        right: 0;
        z-index: 20;
        border-radius: var(--roundedM) var(--roundedM) 0 0;
    }

    .xleb-mobile-header .xleb-mobile-logo .logo {
        display: inline-flex;
        align-items: center;
    }

    .xleb-mobile-header .xleb-mobile-logo img,
    .xleb-mobile-header .xleb-mobile-logo svg {
        max-height: 24px;
        width: auto;
    }

    .xleb-mobile-header-right {
        display: inline-flex;
        align-items: center;
        gap: var(--gapX3);
    }

    .xleb-mobile-phone {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        color: inherit;
        text-decoration: none;
    }

    .xleb-mobile-phone i {
        font-size: 22px;
    }

    #xleb-mobile-close {
        width: 28px;
        height: 28px;
        border: 0;
        padding: 0;
        background: transparent;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    #xleb-mobile-close .line-1 {
        transform: translateY(12px) rotate(45deg);
    }

    #xleb-mobile-close .line-2 {
        opacity: 0;
    }

    #xleb-mobile-close .line-3 {
        transform: translateY(-12px) rotate(-45deg);
    }

    #xleb-mobile-menu .menu-panel {
        padding-top: max(10dvh, 84.7px);
        box-sizing: border-box;
    }

    .menu-panel {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        background: var(--white) !important;
        scrollbar-width: none !important;
        display: flex;
        flex-direction: column;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .menu-panel::-webkit-scrollbar {
        display: none !important;
    }

    .submenu-panel {
        transform: translateX(100%);
    }

    ul.submenu-panel {
        position: absolute !important;
        inset: 0;
        display: flex !important;
        flex-direction: column;
        overflow-y: auto !important;
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 100px);
    }

    .menu-panel.is-active {
        transform: translateX(0);
        z-index: 10;
        display: flex !important;
    }

    #xleb-mobile-menu .submenu-panel {
        display: flex !important;
    }

    #xleb-mobile-menu .submenu-panel:not(.is-active) {
        pointer-events: none;
    }

    #xleb-mobile-menu .submenu-panel.is-active {
        pointer-events: auto;
    }

    .menu-panel.is-sliding-out {
        transform: translateX(-100%);
    }

    .main-menu,
    .sub-menu {
        list-style: none;
        padding: 0 var(--gapX5);
        margin: 0;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        flex: 1;
        position: relative;
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 100px);
    }

    ul.sub-menu.menu-group-list {
        flex: 0 0 auto !important;
        overflow: visible !important;
    }

    .main-menu :is(a, button),
    .sub-menu li :is(a, button) {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: fit-content;
        color: #2c3e50;
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease;
        font-size: 19px;
        line-height: 1.3;
        box-sizing: border-box;
    }

    .main-menu button,
    .sub-menu li button {
        width: 100%;
        border: 0;
        background: transparent;
        text-align: left;
        appearance: none;
        font: inherit;
        cursor: pointer;
    }

    .menu-item-has-children> :is(a, button)::after {
        content: '\e13a' !important;
        font-family: 'Phosphor' !important;
        margin-left: var(--gapX2) !important;
        flex-shrink: 0 !important;
    }

    li.menu-item-has-children> :is(a, button)::after {
        content: '\e13a' !important;
        font-family: 'Phosphor' !important;
    }

    .submenu-header {
        position: relative !important;
        top: 0px !important;
        z-index: 10 !important;
        background: var(--white) !important;
        padding: var(--gapX3) 0 var(--gapX4) !important;
        border-bottom: 1px solid var(--dividerDefault) !important;
        margin-left: calc(-1 * var(--gapX5));
        margin-right: calc(-1 * var(--gapX5));
        padding-left: var(--gapX5) !important;
        padding-right: var(--gapX5) !important;
    }

    .submenu-header .menu-back-btn {
        display: inline-flex;
        align-items: center;
        gap: var(--gapX1);
        border: 0;
        background: transparent;
        padding: var(--gapX2) 0;
        cursor: pointer;
        font-size: var(--textMsize);
        color: var(--contentColor);
    }

    .submenu-header .menu-back-btn::before {
        content: '\e138';
        font-family: 'Phosphor';
        font-size: 11px;
        line-height: 1;
    }

    .submenu-header .submenu-title {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: var(--gapX3);
    }

    .submenu-header .watch-all-btn {
        color: var(--linkDefaultColor);
        font-size: var(--textMsize);
        text-decoration: none;
    }

    .xleb-menu-actions {
        display: flex;
        flex-direction: column;
        gap: var(--gapX3);
        padding: var(--gapX4) var(--gapX5) calc(var(--gapX5) + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(to top, var(--white) 70%, transparent);
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 30;
    }

    .menu-panel>li.menu-item.xleb-menu-actions-item {
        display: none !important;
    }

    #xleb-mobile-menu .menu-item:not(.xleb-menu-actions-item) {
        padding-top: var(--gapX4);
        padding-bottom: var(--gapX4);
        border-bottom: 1px solid var(--dividerDefault);
    }

    #xleb-mobile-menu .menu-item:last-child:not(.xleb-menu-actions-item) {
        border-bottom: 0;
    }

    .xleb-menu-actions-dock {
        background: linear-gradient(to top, var(--white) 70%, transparent) !important;
        padding: var(--gapX4) var(--gapX5) calc(var(--gapX5) + env(safe-area-inset-bottom, 0px)) !important;
    }

    ul#main-menu-panel li.last-child {
        margin-bottom: auto !important;
        height: auto;
    }

    header .nav.xleb-nav-ready {
        position: relative;
    }

    header .nav.open.xleb-nav-ready {
        position: fixed !important;
        left: var(--outsideGap);
        right: var(--outsideGap);
        top: var(--outsideGap);
        bottom: var(--outsideGap);
        width: auto !important;
        height: auto !important;
        max-height: calc(100dvh - (2 * var(--outsideGap)));
        overflow: hidden;
        z-index: 1001;
        background: var(--white);
        border-radius: var(--roundedM);
        display: flex;
        flex-direction: column;
        -webkit-box-shadow: 4px 0px 5px 5dvh rgba(0, 0, 0, 0.74);
        -moz-box-shadow: 4px 0px 5px 5dvh rgba(0, 0, 0, 0.74);
        box-shadow: 4px 0px 5px 5dvh rgba(0, 0, 0, 0.74);
    }

    ::-webkit-scrollbar {
        display: none;
    }

    header .nav.open.xleb-nav-ready+.buttons .menu-button,
    header .nav.open.xleb-nav-ready~.buttons .menu-button {
        opacity: 0;
        pointer-events: none;
    }

    header .nav.xleb-nav-ready .xleb-mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 1004;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0 10px 0;
        ;
        background: var(--white);
    }

    header .nav.xleb-nav-ready .xleb-mobile-topbar-left,
    header .nav.xleb-nav-ready .xleb-mobile-topbar-right {
        display: inline-flex;
        align-items: center;
    }

    header .nav.xleb-nav-ready .xleb-mobile-topbar-right {
        gap: 10px;
    }

    header #menu-osnovnoe ul li:not(.xleb-nav-actions-item),
    header ul.sub-menu li:not(.xleb-nav-back-item):not(.xleb-nav-actions-item) {
        border-bottom: 1px solid var(--dividerDefault);
        padding-bottom: var(--gapX4);
        padding-top: var(--gapX4);
    }

    ul#menu-osnovnoe {
        gap: var(--gapX4);
    }

    ul.sub-menu.xleb-nav-submenu {
        gap: var(--gapX4);
    }

    header .nav.xleb-nav-ready .xleb-mobile-topbar-left .logo {
        display: inline-flex;
        align-items: center;
        margin: 0 !important;
    }

    header .nav.xleb-nav-ready .xleb-mobile-topbar-left img,
    header .nav.xleb-nav-ready .xleb-mobile-topbar-left svg {
        max-height: 24px;
        width: auto;
    }

    header .nav.xleb-nav-ready .xleb-nav-phone {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        color: inherit;
        text-decoration: none;
    }

    header .nav.xleb-nav-ready .xleb-nav-phone i {
        font-size: 22px;
    }

    header .nav.xleb-nav-ready .xleb-nav-close {
        width: 28px;
        height: 28px;
        border: 0;
        padding: 0;
        background: transparent;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        position: static !important;
        z-index: auto;
    }

    header .menu-button {
        position: relative;
        z-index: 1002;
    }

    header .menu-button.opened {
        position: fixed !important;
        top: calc(var(--outsideGap) + var(--gapX3));
        right: calc(var(--outsideGap) + var(--gapX3));
        z-index: 1003;
        display: none;
    }

    header .nav.xleb-nav-ready #menu-osnovnoe.xleb-nav-panel,
    header .nav.xleb-nav-ready ul.sub-menu.xleb-nav-panel {
        width: 100%;
        min-height: 100%;
        height: 100%;
        display: none;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 120px);
        background: var(--white);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        gap: var(--gapX4);
    }

    header .nav.open {
        padding: 0 var(--gapX3) !important;
    }

    header .nav.xleb-nav-ready .xleb-nav-panel.is-active {
        display: flex !important;
    }

    header .nav.xleb-nav-ready .xleb-nav-head {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 10px 0 var(--gapX1);
    }

    header .nav.xleb-nav-ready .xleb-nav-back-item .xleb-back-btn {
        width: auto;
        border: 0;
        background: var(--white);
        text-align: left;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: calc(var(--gapX1) / 2);
        cursor: pointer;
    }

    header .xleb-mobile-menu-panel .titleXS+.textM:not(.tight) {
        margin-top: unset;
    }

    header .nav.xleb-nav-ready .xleb-back-text {
        font-size: var(--textMsize);
        opacity: 1;
        display: inline-flex;
        align-items: center;
        gap: var(--gapX1);
        color: var(--contentColor);
    }

    header .nav.xleb-nav-ready .xleb-back-text::before {
        content: '\e138';
        font-size: 11px;
        line-height: 1;
        font-family: 'Phosphor';
    }

    button.xleb-back-btn {
        min-height: fit-content !important;
        padding: unset !important;
        padding-bottom: var(--gapX10) !important;
    }

    header .nav.xleb-nav-ready .xleb-nav-title-row {
        display: block;
    }

    header .xleb-mobile-menu-panel {
        border-bottom: 1px solid var(--dividerDefault);
        padding-bottom: var(--gapX5);
    }

    header .xleb-mobile-menu-panel .xleb-go-link {
        padding: var(--gapX3) 0 0 0;
        color: var(--linkDefaultColor);
        font-size: var(--textMsize);
    }

    header .xleb-mobile-topbar-right i::before {
        font-size: var(--gapX8);
    }

    header ul#menu-osnovnoe li:not(.xleb-nav-actions-item) {
        padding-bottom: var(--gapX4) !important;
        border-bottom: 1px solid var(--dividerDefault) !important;
        padding-top: var(--gapX4) !important;
    }

    header #menu-osnovnoe .xleb-nav-actions-item {
        border-bottom: 0 !important;
        padding-top: var(--gapX3) !important;
        padding-bottom: 0 !important;
    }

    header #menu-osnovnoe .xleb-nav-actions-item .xleb-menu-actions {
        padding-left: 0;
        padding-right: 0;
    }

    .xleb-menu-actions {
        gap: var(--gapX3);
    }

    .xleb-menu-actions .xleb-button-wrapper.outlined {
        background: transparent;
        color: var(--contentOpacityColor);
        border: 1px solid var(--dividerDefault) !important;
        justify-content: center;
        display: flex !important;
        padding: 10px var(--gapX5);
    }

    .xleb-menu-actions .xleb-button-wrapper.filled {
        background: var(--btnDefaultBg);
        color: var(--btnDefaultColor);
        border: 1px solid var(--btnDefaultColor) !important;
        justify-content: center;
        display: flex !important;
        padding: 16px var(--gapX5);
    }

    .xleb-menu-actions .xleb-button-wrapper.filled p {
        font-size: var(--textMsize);
        margin-top: var(--textMtopS);
        margin-bottom: var(--textMbottomS);
        line-height: var(--textMheightS);
    }

    .xleb-menu-actions .xleb-button-wrapper.outlined i.ph-map-pin {
        font-size: 22px;
    }

    .xleb-menu-actions .xleb-button-wrapper.outlined p {
        font-size: var(--textMsize);
        margin-bottom: var(--textMbottomS);
        margin-top: var(--textMtopS);
        line-height: var(--textMheightS);
        display: flex;
        gap: var(--gapX2);
    }

    .xleb-menu-actions .xleb-button-wrapper.outlined span {
        color: var(--primary500);
        text-decoration: underline;
        text-decoration-color: var(--linkDefaultUnderline);
        text-underline-offset: 4px;
    }

    header li .xleb-menu-actions a {
        margin-top: 0;
        margin-bottom: 0;
    }

    .xleb-nav-actions-item .btn {
        display: flex !important;
        flex-direction: row;
        font-size: var(--textSsize);
    }

    header .xleb-mobile-header-menu {
        display: flex;
        flex-wrap: wrap;
        gap: var(--gapX3);
        justify-content: space-between;
        align-items: center;
    }

    header li.menu-item {
        max-width: 100%;
    }

    header li.menu-item.menu-item-has-children {
        padding-right: 0 !important;
    }

    header .nav.xleb-nav-ready .xleb-nav-panel>li> :is(a, button) {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--dividerDefault);
    }

    body.noScroll .vc_row:has([data-name="forma-v-shapke"]) {
        display: none !important
    }

    .wrapper.part-2 .nav.open {
        display: none !important;
    }
}

@media (max-width: 991px) {
    header {
        padding-bottom: var(--gapX12);
    }

    .menu-item> :is(a, button) {
        color: var(--black) !important;
        font-size: var(--textMsize) !important;
        border-bottom: unset !important;
        background: transparent;
        display: flex;
    }
}

@media(min-width: 768px) {
    .menu-item-has-children button {
        font-size: var(--textMsize);
        background: transparent;
        margin-bottom: -4px;
    }
}

#xleb-mobile-menu.is-open :is(a, button).none {
    color: var(--contentOpacityColor) !important;
    border-top: 1px solid var(--blackOpacity100) !important;
}

ul.sub-menu.menu-group-list {
    display: block;
    padding-bottom: var(--gapX4);
    border-bottom: 1px solid var(--dividerDefault);
}

@media (max-width: 991px) {
    ul.sub-menu.menu-group-list {
        display: flex;
        flex-direction: column;
    }
}

@media (min-width: 992px) {
    .xleb-mobile-topbar {
        display: none;
    }
}


@media(max-width: 991px) {
    a.contact-icon svg {
        width: 32px;
        height: 32px;
    }

    header .buttons a {
        align-items: center;
        display: flex;
    }

    header .menu-button {
        align-items: center;
        width: 33px;
        display: flex;
    }

    header .menu-button .menu-icon {
        width: 28px;
        height: 28px;
        margin: unset;
        margin-left: auto !important;
    }

    header .menu-button .line-1 {
        top: 0px;
    }

    header .menu-button .line-2 {
        top: 12px;
    }

    header .menu-button .line-3 {
        top: 25px;
    }

    header .buttons {
        gap: var(--gapX3);
    }

    header .opened .line-1 {
        transform: translateY(13px) rotate(45deg) scale(1.2, 0.9);
    }

    li.menu-item+li.menu-item {
        margin-top: unset;
    }

    li.menu-item>a {
        line-height: unset;
        margin-top: unset;
        margin-bottom: unset;
    }
}

@media(min-width: 992px) {
    .sub-menu li.menu-item+li.menu-item {
        margin-top: 0px;
    }

    .sub-menu li.menu-item {
        width: max-content;
    }

    ul.menu>li.menu-item-has-children::after {
        content: '\e136';
        font-family: 'Phosphor';
        font-size: var(--textSsize);
        transition: transform 0.3s ease;
    }

    ul.menu>li.menu-item-has-children:hover::after {
        transform: rotate(180deg);
    }

    ul.menu>li.menu-item-has-children {
        display: flex;
        gap: var(--gapX2);
        flex-direction: row;
    }
}


@media(min-width: 992px) {
    ul.sub-menu::before {
        content: '';
        position: absolute;
        width: auto;
        top: -10px;
        padding-top: 20px;
        width: 100%;
    }
}