.header_nav {
    margin: 0 53px 0 0
}

.header_nav>ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row;
    flex-flow: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    min-width: 940px
}

.header_nav a {
    color: #FFF;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: inherit;
    -webkit-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out
}

.header_nav li:hover>a {
    color: #FF632A
}


.header_nav ul {
    text-align: left
}

.header_nav ul .menu-item-has-children {
    position: relative;
    padding-right: 20px
}

.header_nav ul .menu-item-has-children::before {
    position: absolute;
    content: "";
    width: 10px;
    height: 10px;
    background: url(../images/sub_menu.svg) no-repeat center;
    top: calc(50% - 5px);
    right: 0
}

.header_nav ul .menu-item-has-children::after {
    position: absolute;
    content: "";
    width: 150%;
    height: 40px;
    background: transparent;
    bottom: -35px;
    left: -25%
}

.header_nav ul .menu-item-has-children:hover::before {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg)
}

.header_nav ul .menu-item-has-children .sub-menu,
.header_nav ul .has-mega-menu .sub-menu {
    position: absolute;
    left: -35px;
    top: 35px;
    visibility: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, 0.67);
    min-width: 335px
}

.menu-item:hover>.mega-menu-bg {
    opacity: 1;
    pointer-events: auto;
}

.mega-menu-bg {
    position: fixed;
    top: 126px;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.header_nav_bottom .header_nav_menu .has-mega-menu .mega-menu-bg {
    top: 126px;
}

.header_nav .header_nav_menu .has-mega-menu .mega-menu-bg {
    top: 116px;
}

.mega-menu-bg:hover {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.mega-menu-bg:hover+.sub-menu {
    visibility: hidden !important;
    opacity: 0 !important;
}

.menu-item:hover>.mega-menu-bg {
    opacity: 1;
    pointer-events: auto;
}

.header_nav ul .menu-item-has-children .sub-menu {
    padding: 25px 35px;
}

.header_nav ul .has-mega-menu .sub-menu {
    padding: 35px 220px;
}

/* ТЕСТ */

/* .header_nav ul .has-mega-menu .sub-menu {
    position: absolute;
    left: -35px;
    top: 35px;
    visibility: visible !important;
    opacity: 1;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.67);
    padding: 25px 35px;
    min-width: 335px;
    z-index: 100;
} */

/* ТЕСТ */

.header_nav ul .menu-item-has-children .sub-menu a {
    color: #FFF;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    display: block;
}

.header_nav ul .menu-item-has-children .sub-menu li {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin-top: 12px;
}

.header_nav ul .menu-item-has-children .sub-menu li:hover a {
    color: #FF632A !important;
    text-shadow: 0 0 0.3px #FF632A
}

.header_nav ul .menu-item-has-children:hover .sub-menu {
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
    visibility: visible;
    opacity: 1;
    z-index: 10;
    -webkit-transition: all 0.5s 0.1s;
    transition: all 0.5s 0.1s
}

/* .header_nav ul .menu-item-has-children:nth-child(3) .sub-menu {
    -webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;
    -webkit-column-gap: 35px;
    -moz-column-gap: 35px;
    column-gap: 35px;
    min-width: 830px
} */

.first_frame_nav ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row;
    flex-flow: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between
}

.first_frame_nav li a {
    color: #FFF;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    -webkit-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out
}

.first_frame_nav li:hover a {
    color: #ff632a
}

.menu_desctop {
    display: flex;
    flex-flow: column;
    justify-content: center;
    background: url(../images/menu_back.png) #2A2A2A;
    padding: 50px 70px 90px 100px;
    position: fixed;
    top: 0;
    width: 65vw;
    min-width: 1295px;
    height: 100vh;
    z-index: 999;
    transform: translateX(100%);
    right: 0;
    -webkit-transition: all 300ms ease-in-out;
    transition: transform 0.5s
}

.menu_desctop::before {
    position: absolute;
    content: "";
    width: 62%;
    height: 100%;
    top: 0;
    left: 0;
    transform: translateX(0);
    background: rgba(42, 42, 42, 0.53);
    backdrop-filter: blur(15px);
    transition: transform 0.5s
}

.menu_desctop.active {
    transform: translateX(0)
}

.menu_desctop.active::before {
    transform: translateX(-100%)
}

.menu_desctop.active .menu_desc_left,
.menu_desctop.active .menu_desc_middle,
.menu_desctop.active .menu_desc_right {
    transform: translateX(0);
    opacity: 1
}

.menu_desctop.active .menu_desc_left {
    transition: opacity 0.3s 0.4s, transform 0.3s 0.4s
}

.menu_desctop.active .menu_desc_middle {
    transition: opacity 0.4s 0.5s, transform 0.4s 0.5s
}

.menu_desctop.active .menu_desc_right {
    transition: opacity 0.5s 0.6s, transform 0.5s 0.6s
}

.menu_desctop_head {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 75px
}

.menu_desctop .header_city {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-left: 0 !important;
}

.menu_desctop .header_city img {
    height: 15px;
    width: 15px;
}

.menu_desctop .header_city a {
    color: white
}

.menu_desctop .header_search {
    border: 1px solid#FFFFFF80;
    border-radius: 5px
}

.search_city_menu {
    width: 85%;
    display: flex;
    justify-content: space-between;
    margin: 0
}

.search_city_menu .header_search {
    margin: 0;
    width: 70%;
}

.menu_btn_clouse {
    width: 15px;
    background: url(../images/menu_btn_clouse.png) no-repeat center;
    height: 15px;
    cursor: pointer;
}

.menu_desc_container {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    margin: 0 0 100px
}

.menu_desc_left,
.menu_desc_middle,
.menu_desc_right {
    width: calc(32.333% - 20px);
    margin: 0 40px 0 0;
    opacity: 0;
    -webkit-transform: translateX(50%);
    -moz-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
    -webkit-transition: opacity 0.5s 0.1s, -webkit-transform 0.5s 0.1s;
    -moz-transition: opacity 0.5s 0.1s, -moz-transform 0.5s 0.1s;
    -ms-transition: opacity 0.5s 0.1s, -ms-transform 0.5s 0.1s;
    transition: opacity 0.5s 0.1s, transform 0.5s 0.1s
}

.menu_desc_left ul,
.menu_desc_middle ul,
.menu_desc_right ul {
    margin: 0 0 55px;
    max-width: 315px
}

.menu_desc_left ul li,
.menu_desc_middle ul li,
.menu_desc_right ul li {
    color: #B3B3B3;
    font-family: "Montserrat";
    font-size: 19px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 12px;
    cursor: pointer;
    transition: all 0.3s ease-out
}

.menu_desc_left ul li:last-child,
.menu_desc_middle ul li:last-child,
.menu_desc_right ul li:last-child {
    margin: 0
}

.menu_desc_left ul li a,
.menu_desc_middle ul li a,
.menu_desc_right ul li a {
    color: #B3B3B3;
    transition: all 0.3s ease-out
}

.menu_desc_left ul li:hover,
.menu_desc_middle ul li:hover,
.menu_desc_right ul li:hover {
    color: #fff
}

.menu_desc_left ul li:hover a,
.menu_desc_middle ul li:hover a,
.menu_desc_right ul li:hover a {
    color: #fff
}

.menu_desc_left ul:last-child,
.menu_desc_middle ul:last-child,
.menu_desc_right ul:last-child {
    margin-bottom: 0
}

.menu_desc_right {
    margin: 0;
    display: flex;
    flex-flow: column
}

.menu_desc_right .banner_btn {
    margin: auto 87px 0 auto
}

.menu_desc_right .m_75 {
    margin: 0 0 75px
}

.menu_desc_title {
    color: #FF632A;
    font-family: "Montserrat";
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    display: block;
    margin: 0 0 25px
}

.menu_desc_footer .footer_right {
    display: flex;
    flex-flow: row-reverse;
    align-items: center;
    justify-content: end;
    width: 100%;
    padding-right: 87px
}

.menu_desc_footer .footer_contacts {
    display: flex;
    gap: 20px;
}

.menu_desc_footer .footer_contacts a {
    color: #FF632A;
    font-family: "Montserrat";
    font-size: 17px;
    font-style: normal;
    font-weight: 600;
    line-height: 250%
}

.menu_desc_footer .social_link {
    margin: 0 0 0 100px
}

.mega-menu-block .mega-menu-cat-parent:last-child() {
    margin-top: 42px
}

@media screen and (min-width:320px) and (max-width:1279px) {
    .mega-menu-bg {
        display: none;
    }

    .header_nav_open {
        right: 0;
        opacity: 1;
        visibility: visible;
    }

    .first_frame_nav {
        overflow: auto
    }

    .first_frame_nav ul li {
        margin: 0 15px 0 0
    }

    .first_frame_nav ul li a {
        width: -webkit-max-content;
        width: -moz-max-content;
        width: max-content;
        display: block;
        font-size: 14px
    }

    .header_nav_open>.header_nav_top>.social_link {
        display: none;
    }

    .header_nav_open .header_nav_top {
        flex-direction: row-reverse;
        padding: 0 20px;
        align-items: center;
    }

    .header_nav {
        position: fixed;
        width: 100%;
        height: 100vh;
        opacity: 0;
        visibility: hidden;
        top: 0;
        right: -100%;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        z-index: 99999;
        padding: 0 0 50px;
        background: url(../images/menu_back.png) #2A2A2A;
        margin: 0;
        -webkit-transition: all 0.6s ease-out;
        transition: all 0.6s ease-out
    }

    .header_nav ul {
        width: 100%;
        min-width: inherit;
        display: flex;
        flex-flow: column
    }

    .header_nav ul>li {
        text-align: left;
        border-bottom: 1px solid #8C8C8D
    }

    .header_nav ul>li a {
        color: #FFFFFF;
        font-size: 12px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
        display: block;
        padding: 0 0 15px;
        max-width: 100%
    }

    .header_nav ul li.menu-item-has-children:nth-child(n) .sub-menu {
        display: none !important;
        column-count: 1;
        background: none;
        padding: 0;
        width: auto;
        min-width: inherit;
        position: static;
        display: flex;
        flex-flow: column
    }

    .header_nav ul li.menu-item-has-children:nth-child(n) .sub-menu li {
        width: 100%;
        border: none;
        color: #B3B3B3;
        font-size: 12px;
        margin: 0
    }

    .header_nav ul li.menu-item-has-children:nth-child(n) .sub-menu li a {
        color: #B3B3B3
    }

    .header_nav ul li.menu-item-has-children:nth-child(n) .sub-menu_active {
        display: block !important
    }

    .header_nav ul li.menu-item-has-children:nth-child(n) .sub-menu_btn {
        position: absolute;
        right: 0;
        top: 0;
        display: block;
        width: 25px;
        height: 25px;
    }

    /* .header_nav ul li.menu-item-has-children:nth-child(n) .sub-menu_btn_active {
        background: url(../images/sub-menu_btn_active.svg) no-repeat center
    } */

    .header_nav_mobail {
        display: none
    }

    .header_nav_open {
        right: 0;
        opacity: 1;
        visibility: visible
    }

    .header_nav_open .header_nav_mobail {
        display: block
    }

    .header_nav_open .header_nav_mobail .clouse_menu,
    .header_nav_open .header_nav_top .clouse_menu {
        display: block;
        top: 40px;
        right: 18px;
        width: 20px;
        height: 20px;
        background: url(../images/clouse_menu.png) no-repeat center;
        background-size: contain
    }

    .header_nav_open .header_nav_mobail .header_city {
        display: block;
        top: 37px;
        left: 40px;
        font-size: 12px
    }

    .header_nav_open .header_nav_mobail .banner_btn {
        margin: 0 auto 40px;
        font-size: 12px
    }

    .header_nav_open .header_nav_mobail .menu_desc_footer .footer_contacts,
    .header_nav_open .header_nav_mobail .menu_desc_footer .social_link {
        width: 100%;
        display: flex;
        justify-content: center
    }

    .header_nav_open .header_nav_mobail .menu_desc_footer .footer_contacts a,
    .header_nav_open .header_nav_mobail .menu_desc_footer .social_link a {
        font-size: 12px
    }

    .header_nav_open .header_nav_mobail .menu_desc_footer .social_link {
        margin: 0
    }

    .header_nav_open .header_nav_mobail .menu_desc_footer .social_link .social_link_item {
        width: 18px;
        height: 18px;
        background-size: contain !important;
        margin: 0 20px 0 0
    }

    .header_nav ul .menu-item-has-children::before {
        display: none
    }

    .header_nav ul .menu-item-has-children {
        padding-right: 0;
    }

    .header_nav ul li {
        margin: 0 0 15px;
        text-align: left
    }

    .header_nav ul li:last-child {
        margin: 0
    }

    .first_frame_nav {
        overflow: auto
    }

    .first_frame_nav ul li {
        margin: 0 15px 0 0
    }

    .first_frame_nav ul li a {
        width: -webkit-max-content;
        width: -moz-max-content;
        width: max-content;
        display: block;
        font-size: 14px
    }

    .header_nav_open .header_nav_mobail .clouse_menu,
    .header_nav_open .header_nav_top .clouse_menu {
        display: block;
        top: 40px;
        right: 18px;
        background: url(../images/clouse_menu.png) no-repeat center;
        background-size: contain;
    }

    .header_nav_open .falang-language-switcher {
        display: none;
    }


    .header_nav_menu.dd-hidden {
        visibility: hidden;
        position: relative;
    }

    .header_nav_open .header_city::before {
        display: none;
    }

    .header_nav_open .header_city {
        position: static !important;
        display: flex !important;
    }

    .header_nav_open .header_city img {
        width: 14px;
        height: 14px;
    }

    .header_nav_open .clouse_menu {
        position: static !important;
    }

    .header_nav_mobail_bottom {
        flex-direction: column;
    }
}

@media screen and (min-width:320px) and (max-width:767px) {

    .first_frame_nav {
        overflow: visible;
        margin: 0 0 20px
    }

    .first_frame_nav ul {
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-items: center
    }

    .first_frame_nav ul li {
        margin: 0 0 10px
    }

    .first_frame_nav ul li a {
        font-weight: 400;
        font-size: 12px;
        line-height: 190%;
        text-align: center;
    }

    .header_nav_mobile_bottom_info .header_nav_mobile_bottom_info_wrapper .header_nav_menu_phone,
    .header_nav_mobile_bottom_info .header_nav_mobile_bottom_info_wrapper .contacts_link_mail {
        font-size: 11px;
    }

    .header_nav_mobile_bottom {
        gap: 46px !important
    }

    .header_nav_mobile_bottom_info {
        justify-content: center !important;
        flex-direction: column;
        align-items: center;
        gap: 12px
    }

    .header_nav_open .header_nav_mobail .clouse_menu,
    .header_nav_open .header_nav_top .clouse_menu {

        width: 12px;
        height: 12px;
    }

    .clouse_menu_wrapper {
        display: flex;
        gap: 16px;
        display: block;
    }

    .header_nav_mobile_bottom .social_link {
        display: flex !important;
    }
}

@media screen and (min-width:1024px) and (max-width:1279px) {
    .header_nav_phone {
        -webkit-box-ordinal-group: 0;
        -ms-flex-order: -1;
        /*order: -1
		infoline*/
    }

    .header_nav {
        margin: 0 25px 0 0
    }

    .header_nav ul {
        min-width: 600px
    }

    .header_nav ul li:not(.menu-item-has-children) {
        margin-right: 20px
    }

    .header_nav ul li:not(.menu-item-has-children):nth-last-child() {
        margin: 0
    }

    .header_nav a {
        font-size: 14px
    }

    .header_nav .sub-menu {
        display: none
    }

    .header_nav .menu-item-has-children::before {
        display: none
    }

    .header_search_city {
        /*infoline
		margin: 0*/
    }

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

}

@media screen and (min-width:1280px) and (max-width:1900px) and (min-height:500px) and (max-height:1079px) {
    .header_nav>ul {
        min-width: 870px
    }

    .header_nav ul .menu-item-has-children:nth-child(3) .sub-menu {
        min-width: 775px
    }

    .first_frame_nav li a {
        font-size: 18px
    }

    .menu_desctop {
        padding: 35px 45px 35px 65px;
        min-width: 1095px
    }

    .menu_desctop_head {
        margin: 0 0 25px
    }

    .menu_desc_title {
        font-size: 19px;
        margin: 0 0 20px
    }

    .menu_desc_container {
        margin: 0 0 30px
    }

    .menu_desc_left ul,
    .menu_desc_middle ul,
    .menu_desc_right ul {
        margin: 0 0 25px
    }

    .menu_desc_right .m_75 {
        margin: 0 0 25px
    }

    .menu_desc_left ul li,
    .menu_desc_middle ul li,
    .menu_desc_right ul li {
        font-size: 15px;
        margin: 0 0 5px
    }

    .menu_desc_left ul li a,
    .menu_desc_middle ul li a,
    .menu_desc_right ul li a {
        font-size: 15px;
        margin: 0 0 5px
    }
}

@media screen and (min-width: 1280px) and (max-width: 1900px) and (min-height: 500px) and (max-height: 720px) {
    .header_nav {
        margin: 0
    }
}

@media screen and (min-width: 1280px) and (max-width: 1900px) and (min-height: 500px) and (max-height: 750px) {
    .first_frame_nav ul {
        margin-top: 2.5vh;
    }
}


@media screen and (max-width: 1279px) {
    .first_frame_nav li a {
        font-weight: 400;
        font-size: 18px;
        line-height: 229%;
        text-align: center;
    }

    .first_frame_nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
}

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

    .mobail_visible,
    .header_nav_mobail {
        display: none
    }
}

@media screen and (max-width: 1600px) {
    .first_frame_nav li a {
        font-size: 17px;
    }
}

.header_nav_mobile_bottom_info .header_nav_mobile_bottom_info_wrapper .contacts_link_mail,
.header_nav_mobile_bottom_info .social_link {
    display: none
}

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

    .clouse_menu_wrapper {
        display: none;
    }

    /*  Для продукции */


    .has-mega-menu:hover::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100vw;
    }

    .header_nav_bottom .header_nav_menu .has-mega-menu .sub-menu {
        top: 126px !important;
    }

    .header_nav .header_nav_menu .has-mega-menu .sub-menu {
        top: 116px !important;
    }

    .header_nav_bottom .header_nav_menu .has-mega-menu .sub-menu,
    .header_nav .header_nav_menu .has-mega-menu .sub-menu {
        position: fixed !important;
        left: 0 !important;
        display: flex;
        flex-wrap: wrap;
        gap: 5vh clamp(50px, 6vw, 116px);
        padding: 37px clamp(50px, 6vw, 220px) 37px;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 0 !important;
        /* height: clamp(500px, 51vh, 557px); */
        height: fit-content;
        width: 100vw !important;
        list-style: none;
        z-index: 20;
    }

    .has-mega-menu>.sub-menu>li {
        break-inside: avoid;
        display: block;
        margin-bottom: 10px;
    }

    .has-mega-menu>.sub-menu>.menu-item-has-children::before,
    .has-mega-menu>.sub-menu>.menu-item-has-children::after {
        display: none;
    }

    .has-mega-menu>.sub-menu>.menu-item {
        list-style: none;
        line-height: normal;
    }

    .mega-menu-cat-parent a {
        text-transform: uppercase;
        font-weight: 700 !important;
        font-size: 16px !important;
        line-height: 17px !important;
        color: #b3b3b3 !important;
    }

    .mega-menu-cat-parent:hover a {
        color: #ff632a !important;
    }

    .mega-menu-block {
        display: flex;
        flex-direction: column;
        max-width: 450px;
    }

    .mega-menu-block:first-child {
        margin-top: 0;
    }

    .mega-menu-block .mega-menu-cat-parent:last-of-type:not(:only-of-type) {
        margin-top: 42px;
    }

    .has-mega-menu>.sub-menu>ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .has-mega-menu>.sub-menu>a,
    .mega-menu-child {
        font-weight: 400 !important;
        font-size: 15px !important;
        color: #b3b3b3 !important;
        transition: color 0.3s;
    }

    .has-mega-menu>.sub-menu>.mega-menu-children>li:hover .mega-menu-child {
        color: #ff632a !important;
    }

    .mega-menu-section:nth-child(2) {
        margin-top: 42px;
    }

    .has-mega-menu>.sub-menu>li {
        margin: 0;
        padding: 0;
        list-style: none;
        line-height: normal;
    }
}

@media screen and (max-width: 1400px) {
    .mega-menu-cat-parent a {
        font-size: 15px !important;
    }

    .mega-menu-child {
        font-size: 14px !important;
    }
}

@media screen and (max-height: 970px) {
    .mega-menu-section:nth-child(2) {
        margin-top: 15px;
    }
}

@media screen and (max-height: 900px) {
    .mega-menu {
        padding: 17px 0 10px;
    }

    .mega-menu-cat-parent a {
        font-size: 15px !important;
    }

    .mega-menu-child {
        font-size: 14px !important;
    }
}

@media screen and (max-height: 760px) {
    .menu-column a {
        line-height: 25px;
    }

    .menu-column h3 {
        line-height: 27px;
    }
}

@media screen and (max-height: 680px) {
    .menu-column h3 {
        line-height: 20px;
    }

    .mega-menu-section:nth-child(2) {
        margin-top: 10px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1279px) {

    .dd-panel .mega_menu_block .mega-menu-cat-parent a,
    .mega-menu .mega_menu_block .mega-menu-cat-parent a,
    .mega-menu-cat-parent a {
        font-size: 14px !important;
        padding: 0 0 15px !important;
        margin: 0 0 15px;
        border-bottom: 1px solid #8C8C8D !important;
    }

    .header_nav_input_wrap {
        display: flex;
        border: 1px solid #FFFFFF80;
        border-radius: 5px;
        width: 401px;
        height: 35px;
        padding-left: 19px;
        font-size: 16px;
    }

    .header_nav_mobile_bottom .price_list_button,
    .header_nav_mobail_bottom .site_btn {
        margin: 0;
    }

    .header_nav ul li.menu-item-has-children:nth-child(n) .sub-menu_btn {
        background: url(../images/sub_menu_button_next.png) no-repeat center
    }

    .header_nav_open .header_search_btn {
        display: none
    }

    .header_nav_open .header_nav_mobail .clouse_menu,
    .header_nav_open .header_nav_top .clouse_menu {

        width: 20px;
        height: 20px;
    }

    .header_nav_open .header_nav_top,
    .header_nav_open .header_nav_mobail {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .header_nav_open .header_nav_top,
    .header_nav_open .header_nav_mobail {
        margin-top: 54px;
    }

    .header_nav_open .header_nav_mobail {
        margin-bottom: 20px;
    }

    .header_nav ul {
        padding: 90px 5vw 30px;
    }
}

@media screen and (min-width: 320px) and (max-width: 767px) {
    .header_nav_input_wrap {
        display: none;
    }

    .header_nav_open .header_nav_top,
    .header_nav_open .header_nav_mobail {
        margin-top: 34px;
    }

    .header_nav {
        overflow: auto;
    }

    .header_search_btn {
        height: 15px !important;
        width: 15px !important;
    }

    .header_nav ul li.menu-item-has-children:nth-child(n) .sub-menu_btn {
        background: url(../images/sub-menu_btn.svg) no-repeat center;
    }

    .header_nav ul li.menu-item-has-children:nth-child(n) .sub-menu_btn_active {
        background: url(../images/sub-menu_btn_active.svg) no-repeat center;
    }

    .header_nav_open .header_search {
        left: auto;
        right: auto;
        top: 95px;
    }

    .header_nav_open .header_nav_top,
    .header_nav_open .header_nav_mobail {
        justify-content: space-between;
    }

    .header_nav ul {
        padding: 30px 5vw 0px;
    }

    .header_nav_top,
    .header_nav_bottom,
    .header_nav_open .header_nav_mobail {
        gap: 20px !important
    }

    .header_nav_open .header_nav_mobail {
        display: flex;
        padding: 0 20px;
    }
}

@media screen and (min-width: 320px) and (max-width: 1279px) {
    .header_search.active {
        width: 90vw;
        height: 40px;
        opacity: 1;
        z-index: 100;
        visibility: visible;
        -webkit-transition: all 0.3s ease-out;
        transition: all 0.3s ease-out;
    }

    .sertificates_search.header_search {
        position: relative;
        top: 0;
        left: 0;
        height: 40px;
        visibility: visible;
        opacity: 1;
        width: 64%;
        margin: -50px 0 36px 0;
        background: #fff
    }

    .header_search_city {
        margin: 0 15px 0 0
    }

    .header_search {
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        opacity: 0;
        visibility: hidden;
        height: 0;
        width: 0;
        margin: 0;
        background: #000
    }

    .header_search.active {
        width: 90vw;
        height: 40px;
        opacity: 1;
        visibility: visible;
        -webkit-transition: all 0.3s ease-out;
        transition: all 0.3s ease-out
    }

    .header_search_btn {
        display: block;
        height: 24px;
        width: 24px;
        background: url(../images/search_mobail.png) no-repeat center;
        background-size: contain;
        margin: 0 0 0 0
    }
}

@media (max-width:1279px) {

    .dd-panel .mega_menu_block .mega-menu-cat-parent a,
    .mega-menu .mega_menu_block .mega-menu-cat-parent a,
    .mega-menu-cat-parent a {
        color: #B3B3B3 !important;
        font-weight: 400 !important;
        line-height: 1.4 !important;
    }




    #ajaxsearchlite1 .probox .proinput input,
    div.asl_w .probox .proinput input {
        height: 35px !important;
    }

    .mega-menu-block {
        margin-top: 0 !important;
        padding: 0 !important
    }

    .mega-menu-children,
    .mega-menu-children {
        display: none !important;
    }

    /* Каждая вложенная ul.sub-menu превращается в полноэкранную панель */
    .header_nav ul li.menu-item-has-children:nth-child(n) .sub-menu.dd-panel {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        height: auto !important;
        inset: 0;
        padding: 130px 5vw 30px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(100%);
        transition: transform .35s ease;
        z-index: 100000;
    }

    /* Открытая панель въезжает */
    .header_nav ul li.menu-item-has-children:nth-child(n) .sub-menu.dd-panel.dd-open {
        transform: translateX(0);
    }

    .header_nav_mobile_bottom {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        width: 100%;
        padding: 0 20px;
        justify-content: flex-end;
        gap: 80px
    }

    .header_nav_mobile_bottom_info,
    .menu_desc_footer {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .menu_desc_footer .footer_contacts {
        justify-content: flex-start !important;
    }

    .menu_desc_footer .social_link {
        justify-content: flex-end !important;
    }

    .header_nav_open .header_nav_mobail .menu_desc_footer {
        padding: 0 20px;
    }

    .header_nav_mobile_bottom_info .social_link,
    .header_nav_open .header_nav_mobail .menu_desc_footer .social_link {
        gap: 20px
    }

    .header_nav_mobile_bottom_info_wrapper {
        display: flex;
        gap: 20px;
        align-items: center;
    }

    .header_nav_mobile_bottom_info .header_nav_mobile_bottom_info_wrapper .contacts_link_mail,
    .header_nav_mobile_bottom_info .social_link {
        display: flex
    }

    .header_nav_mobile_bottom .price_list_button,
    .header_nav_mobail_bottom .site_btn {
        height: 39px;
        max-width: 202px;
        font-size: 14px;
    }

    .header_nav_open .header_nav_top .header_nav_input_wrap {
        padding: 0;
    }

    .header_nav_mobile_bottom_info .header_nav_mobile_bottom_info_wrapper .header_nav_menu_phone,
    .header_nav_mobile_bottom_info .header_nav_mobile_bottom_info_wrapper .contacts_link_mail {
        color: #ff632a
    }

    .header_nav_mobile_bottom_info .header_nav_mobile_bottom_info_wrapper .header_nav_menu_phone:hover,
    .header_nav_mobile_bottom_info .header_nav_mobile_bottom_info_wrapper .contacts_link_mail:hover {
        color: #FFFFFF
    }

    .dd-open .menu-item {
        border-bottom: 1px solid #8C8C8D !important;
    }

    /* Контент внутри панели */
    .header_nav ul li.menu-item-has-children:nth-child(n) .sub-menu.dd-panel>li {
        border: none;
        margin: 0 0 15px;
    }

    .header_nav ul li.menu-item-has-children:nth-child(n) .sub-menu.dd-panel>li>a {
        color: #B3B3B3;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.4;
    }

    /* Верхняя полоска панели: Назад + заголовок + (опционально) ссылка "Открыть" */
    .dd-bar {
        display: flex !important;
        gap: 10px !important;
        align-items: center;
        position: sticky;
        top: 0;
        padding: 0 0 15px !important;
        z-index: 2;
        border-bottom: 1px solid #8C8C8D;
        margin-bottom: 10px;
    }

    .dd-back {
        display: inline-block;
        width: 7px;
        height: 13px;
        cursor: pointer;
        border: none;
        background: url(../images/sub_menu_back_button.svg) no-repeat center;
        background-size: contain;
        padding: 0;
    }

    .dd-title {
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        color: #FF632A;
    }

    .dd-visit {
        /* опциональная ссылка на родительскую страницу */
        margin-left: auto;
        font-size: 12px;
        color: #B3B3B3;
        text-decoration: underline;
    }

    /* Блокируем проскрол страницы, когда открыт любой экран-панель */
    body.dd-lock {
        overflow: hidden;
        height: 100vh;
    }
}

@media screen and (max-width: 1750px) and (min-width: 1023px) {
    .header_nav_bottom .header_nav_menu .has-mega-menu .sub-menu {
        top: 103px !important;
    }

    .header_nav_bottom .header_nav_menu .has-mega-menu .mega-menu-bg {
        top: 104px;
    }

    .header_nav ul .menu-item-has-children .sub-menu li {
        margin-top: 6px;
    }
}

@media screen and (min-height:863px) and (max-height:1079px) {
    .menu_desctop {
        padding: 50px 50px 70px 80px
    }

    .menu_desctop_head,
    .menu_desc_container {
        margin: 0 0 50px
    }
}