.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: 100%;
    height: 40px;
    background: transparent;
    bottom: -35px;
    left: 0
}

.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;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.67);
    padding: 25px 35px;
    min-width: 335px
}

/* ТЕСТ */

/* .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
}

.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
}

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


    .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;
    }

    .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;
        overflow: auto;
        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 {
        padding: 90px 5vw 30px;
        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: 80%
    }

    .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;
        background: url(../images/sub_menu_button_next.png) 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_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;
        position: absolute;
        top: 40px;
        right: 18px;
        width: 20px;
        height: 15px;
        background: url(../images/clouse_menu.png) no-repeat center;
        background-size: contain
    }

    .header_nav_open .header_nav_mobail .header_city {
        display: block;
        position: absolute;
        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 li {
        margin: 0 0 15px;
        text-align: left
    }

    .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;
        position: absolute;
        top: 40px;
        right: 18px;
        width: 20px;
        height: 15px;
        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;
    }

}

@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;
    }
}

@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
    }

}

@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: 660px) {
    .first_frame_nav ul {
        margin-top: 25px;
    }
}


@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;
    }
}


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

.has-mega-menu>.sub-menu {
    position: fixed !important;
    top: 149px !important;
    left: 0 !important;
    columns: 4;
    column-gap: 40px;
    column-fill: auto;
    padding: 37px 0 69px;
    background: #000000cc;
    height: 51vh;
    width: 100vw !important;
    list-style: none;
}

.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: 37px;
    color: #b3b3b3;
}

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

.mega-menu-block {
    margin-top: 42px !important;
}

.mega-menu-block:nth-child(1) {
    margin-top: 0 !important;
}

.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;
}

.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 (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 (max-width:1279px) {

    .mega-menu-block {
        margin-top: 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;
        top: 35px;
        inset: 0;
        padding: 90px 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_bottom {
        height: 100%
    }

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

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

    .header_nav_mobile_bottom_info .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 {
        margin: 0;
        height: 39px;
        max-width: 202px;
        font-size: 14px;
    }

    .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;
        gap: 10px;
        align-items: center;
        position: sticky;
        top: 0;
        padding: 0 0 15px;
        background: #2A2A2A;
        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;
    }
}