:root {
    --header-sticky-h: 97px;
}

.burger {
    display: none;
    border: none;
    background: none;
    padding: 0;
    margin-left: 15px;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: #000;
}

.burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
    opacity: 0;
}

.burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
}

.burger {
    display: none;
    border: none;
    background: none;
    padding: 0;
    margin-left: 15px;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 24px;
    height: 3px;
    margin: 4px 0;
    background: #000;
}

.burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
    opacity: 0;
}

.burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

:not(.clients) > .about_list {
    display: flex;
    justify-content: space-around;
}

:not(.clients) > .about_list li:first-child,
:not(.clients) > .about_list li {
    display: flex;
    gap: 18px;
    margin: 0;
}

.m-filter-toggle {
    display: none;
}

.mobile-menu a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    text-transform: uppercase;
    border-top: 1px solid #eee;
}

.mobile-menu a:hover {
    color: #C6283A;
}

.mobile-menu ul li:first-child > a {
    border-top: none;
}

.mobile-menu__list + .mobile-menu__list--catalog {
    padding-top: 16px;
    border-top: 1px solid #ddd;
}


.mobile-menu__list--catalog > .mobile-menu__item > .mobile-menu__link--parent {
    text-transform: uppercase;
    padding-top: 10px;
}

.mobile-menu__sublist {
    margin: 4px 0 8px 12px;
    padding: 0;
    list-style: none;
}

.mobile-menu__sublist .mobile-menu__link {
    font-size: 12px;
    font-family: "PFSquareSansProMedium";
}

.mobile-menu__sublist .mobile-menu__link:hover {
    color: #C6283A;
}

.mobile-menu__sublist {
    display: none;
}

.mobile-menu__item.has-children > .mobile-menu__link--parent {
    position: relative;
    padding-right: 20px;
}

.mobile-menu__item.has-children > .mobile-menu__link--parent::after {
    content: "▾";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
}


.mobile-menu__item.has-children.is-open > .mobile-menu__link--parent::after {
    transform: translateY(-50%) rotate(180deg);
}

.mobile-menu__parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu__list--catalog > .mobile-menu__item > .mobile-menu__parent > .mobile-menu__link--parent {
    text-transform: uppercase;
    padding-top: 10px;
}

.mobile-menu__sublist {
    margin: 4px 0 8px 12px;
    padding: 0;
    list-style: none;
}

.mobile-menu__toggle {
    border: none;
    background: none;
    width: 24px;
    height: 24px;
    padding: 0;
    margin-left: 8px;
    cursor: pointer;
    position: relative;
}


.mobile-menu__toggle::before {
    content: "▾";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #333;
}

.mobile-menu__item.has-children.is-open > .mobile-menu__parent > .mobile-menu__toggle::before {
    transform: rotate(180deg);
}

.mobile-menu__sublist {
    display: none;
}


.mobile-menu a.mobile-menu__link--active {
    color: #a0a0a0;
}


ul.models_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    /*gap: 12px;*/
    padding: 0;
    margin: 0;
    list-style: none;
}

.models_list li .inner {
    box-sizing: border-box;
    min-height: 395px;
}

.models_list li .inner > .order {
    margin-top: 0;
}

ul.models_list > li {
    float: none;
    width: auto;
    margin-left: 0;
    height: auto;
}

.models_list li img {
    position: relative;
    top: unset;
    left: unset;
}

.models_list .description {
    margin: 15px 0;
}

.models_list.clearfix:before, .models_list.clearfix:after {
    content: none;
    display: none;
}

@media (max-width: 992px) {
    body {
        width: 100%;
        min-width: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .main_section {
        flex: 1;
    }

    .header_wrapper, .header_middle, .header_bottom, .main_section,
    .news,
    .content_inner,
    .slider ul li,
    .footer_l {
        width: 100%;
    }

    .content_inner {
        height: auto;
    }

    .slider,
    .slider .js-slider {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        height: auto;
    }

    .slider img {
        width: 100%;
        height: auto;
        display: block;
    }

    .slider ul li {
        height: auto;
    }

    .slider ul {
        height: auto !important;
    }

    .caroufredsel_wrapper,
    .caroufredsel_wrapper > ul {
        width: 100% !important;
        max-width: 100% !important;
    }

    .header {
        position: sticky;
        top: 0;
        z-index: 997;
        background: #fff;
    }

    .clear {
        display: none;
    }

    .header_middle {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        gap: 10px;
    }

    .header-l {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .header-r {
        display: flex;
        justify-content: flex-end;
        gap: 24px;
        align-items: center;
        width: calc(100% - 50px);
        margin-top: 10px;
    }

    .header-l,
    .header-r {
        margin: 0 25px;
    }

    .header-l .logo-wrapper {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .header-l > *,
    .header-l .logo-wrapper > *,
    .header-r > * {
        margin: 0;
    }

    .burger {
        display: block;
    }

    .header_top {
        display: none;
    }

    .header_top.is-open {
        display: block;
    }

    .header_bottom.main .menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }

    .header_bottom.main .menu > li {
        float: none;
    }

    .header_bottom.main .menu > li > a {
        font-size: 12px;
        padding: 4px 0;
    }

    .basket_anchor {
        top: calc(var(--header-sticky-h, 0px) + 100px);
        z-index: 998;
    }

    .header_top {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100px;
        background: #f8f8f8;
        border-bottom: 1px solid #ddd;
        z-index: 100;
    }

    .header_top.is-open {
        display: block;
    }

    .header_top .header_wrapper {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 10px 16px;
    }

    .header_top .trade {
        display: block;
        margin-bottom: 10px;
    }

    .header_top .menu,
    .header_top ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }

    .header_top .menu li {
        margin: 0;
    }

    .header_top .menu li a {
        display: block;
        padding: 8px 0;
        text-transform: uppercase;
        font-size: 13px;
        border-top: 1px solid #e3e3e3;
    }

    .header_top .menu li:first-child a {
        border-top: none;
    }

    .spacer {
        display: none;
    }

    .footer_l,
    .footer_r {
        float: unset;
        margin-left: 0;
    }

    .logo img {
        width: 90px;
        height: auto;
    }

    .home_page .address {
        width: fit-content;
    }

    .footer {
        position: relative;
    }

    .footer_l small,
    .footer_l a {
        float: none;
        margin: 0;
    }

    .footer_r,
    .footer_r a {
        margin: 0;
    }

    .footer_wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        width: calc(100% - 24px);
    }

    .for_dealers {
        white-space: nowrap;
    }

    .system {
        font-size: 10px;
        width: auto;
        line-height: 14px;
        text-align: left;
    }

    .system > .tooltip {
        position: initial;
    }

    .system > .tooltip .tooltip-content {
        position: absolute;
        left: 50%;
        top: var(--header-sticky-h, 0px);
        transform: translateX(-50%);
        font-size: 12px;
    }

    .page_search_wrapper .search {
        width: 100%;
    }

    .search input[type="text"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        flex: 1 1 auto;
    }

    .burger {
        display: inline-block;
        margin-left: 8px;
    }

    .header_top,
    .header_bottom {
        display: none;
    }

    .header_middle {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .header-l {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .mobile-menu {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 999;
        pointer-events: none;
    }

    .mobile-menu__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .mobile-menu__panel {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 80%;
        max-width: 320px;
        background: #fff;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        overflow-y: auto;
        padding: 16px;
    }

    .mobile-menu__inner {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mobile-menu__close {
        border: none;
        background: none;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        margin-left: auto;
        display: block;
        color: #333;
    }

    .mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-menu li {
        margin: 0;
    }

    .mobile-menu a {
        display: block;
        padding: 8px 0;
        font-size: 14px;
        border-top: 1px solid #eee;
        text-transform: uppercase;
    }

    .mobile-menu a:first-child {
        border-top: none;
    }

    .mobile-menu.is-open {
        pointer-events: auto;
    }

    .mobile-menu.is-open .mobile-menu__backdrop {
        opacity: 1;
    }

    .mobile-menu.is-open .mobile-menu__panel {
        transform: translateX(0);
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    .clients .about_list,
    .about_list {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: space-around;
        padding: 0 25px;
        box-sizing: border-box;
    }

    .clients .about_list {
        margin: 44px 0;
    }

    .clients .about_list li:first-child,
    .about_list li:first-child,
    .clients .about_list li,
    .about_list li {
        margin: 0;
    }

    .clients .about_list li {
        width: auto;
    }

    :not(.clients) > .about_list li {
        display: flex;
        gap: 12px;
        width: calc(50% - 12px);
        justify-content: space-around;
    }

    .main_section img,
    .clients img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .main_section > h3 {
        padding: 0 15px;
    }

    .clients h3,
    .about_box h3 {
        padding: 0 15px;
    }

    .clients_info h3 {
        padding: 0;
    }

    .clients_info ul {
        width: 100%;
        box-sizing: border-box;
    }

    .about_box_list li {
        width: 100%;
        margin-left: 0;
        box-sizing: border-box;
    }

    .about_box {
        margin: 0;
        padding-bottom: 0;
    }

    .about_box_list {
        padding: 0 25px;
        box-sizing: border-box;
    }

    .clients_info {
        padding: 0 25px;
    }

    .about_info {
        width: 100%;
        box-sizing: border-box;
    }

    .contacts {
        display: flex;
        flex-wrap: wrap;
        gap: 18px;
        box-sizing: border-box;
        padding: 0 25px;
    }

    .contacts .address,
    .contacts .maps {
        float: none;
        width: auto;
        margin: 0;
    }

    .m-filter-toggle:not(.is-open),
    .options.is-open {
        margin-bottom: 25px;
    }

    .options-wrapper {
        position: sticky;
        top: var(--header-sticky-h, 0px);
        z-index: 50;
    }

    .m-filter-toggle {
        width: calc(100% - 50px);
        margin: 12px 25px 0;
        padding: 10px 12px;
        border: 1px solid #ddd;
        background: #fff;
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: 1px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        z-index: 20;
        color: #333;
    }

    .m-filter-toggle::after {
        content: "▾";
        font-size: 12px;
        color: #333;
    }

    .m-filter-toggle.is-open::after {
        transform: rotate(180deg);
    }

    .options {
        display: none;
        position: absolute;
        left: 25px;
        right: 25px;
        top: 36px;
        z-index: 30;
        padding: 12px;
        border: 1px solid #eee;
        background: #fff;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
    }

    .options.is-open {
        display: block;
    }

    .options form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .options input[type="submit"] {
        text-transform: uppercase;
        font-size: 12px;
        font-family: "PFSquareSansProMedium";
        cursor: pointer;
        border: 0;
        background: #C6283A;
        color: #fff;
        height: 31px;
        line-height: 35px;
        text-align: center;
        border-bottom: none !important;
    }

    .options input[type="submit"]:hover {
        opacity: 0.7;
    }

    .options select,
    .options input[type="submit"],
    .options a.options_close {
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
    }

    .options a.options_close {
        order: 99;
        text-align: center;
        text-decoration: none;
        padding: 10px 12px;
        border: 1px solid #ddd;
        background: #f8f8f8;
        text-transform: uppercase;
        font-size: 12px;
    }

    .popup {
        padding: 30px 10px;
    }

    .popup.catalogue {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        background: #fff;
        z-index: 9999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    .cat_popup {
        display: flex;
        flex-direction: column;
        padding: 16px;
    }

    .popup.catalogue .popup_gallery {
        width: 100%;
        height: auto;
        margin: 0;
    }

    .popup_gallery img {
        width: 100%;
        height: auto;
        max-height: 60vh;
        object-fit: contain;
    }

    .product_gallery .thumbs {
        width: 100%;
        display: flex;
        float: none;
        height: auto;
    }

    .description_catalogue {
        width: 100% !important;
    }

    .popup.catalogue .close {
        position: fixed;
        top: 12px;
        right: 12px;
    }

    .popup.catalogue .arrow_next {
        right: 0;
    }

    .popup.catalogue .arrow_prev {
        left: 0;
    }

    .m-search-toggle {
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: url(../images/icon_search.png) 0 0 no-repeat transparent;
        width: 13px;
        height: 13px;
        border: 0;

    }

    .m-search-panel {
        display: none;
        position: fixed;
        left: 12px;
        right: 12px;
        top: var(--header-sticky-h, 0px);
        background: #fff;
        padding: 10px;
        border: 1px solid #eee;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
        z-index: 50;
    }

    .m-search-panel .search {
        margin: 0;
        width: 100%;
    }

    .m-search-panel.is-open {
        display: block;
    }

    .m-search-panel #title-search-input {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    .basket.basket_fixed {
        top: var(--header-sticky-h, 0px);
        width: calc(100% - 55px);
        right: -110%;
        box-sizing: border-box;
        height: auto;
        z-index: 60;
    }

    .basket_fixed.on {
        right: 0;
    }

    .basket_anchor.on {
        right: calc(100% - 50px);
    }

    .basket ul,
    .step .basket ul {
        width: 100%;
    }

    .basket .summary {
        margin-right: 15px;
    }

    .basket .submit {
        margin: 16px auto 0;
    }

    .step_block {
        width: 100%;
        max-width: 400px;
        box-sizing: border-box;
        padding: 25px 15px;
    }

    .basket .delete {
        margin-top: 3px;
    }

    .step_block.form_confirm label {
        display: flex;
    }

    .step_block.form_confirm label span {
        min-width: 102px;
    }

    .order_summary .edit_link {
        margin-left: 0;
    }

    .order_summary.basket .summary {
        float: none;
        margin-left: 0;
    }

    .order_summary.basket {
        float: none;
        max-width: 440px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .user_summary {
        padding: 15px;
        box-sizing: border-box;
        max-width: 470px;
        margin: 0 auto;
    }

    .step .basket figure {
        margin-left: 0;
    }

    .user_summary table {
        width: 100%;
    }

    .personal_form {
        width: 100%;
        box-sizing: border-box;
        padding: 30px;
        max-width: 380px;
    }

    .personal_form label span {
        margin-left: 0;
    }

    .personal_form .submit {
        display: block;
        margin: 0 auto;
        width: 100%;
    }

    .personal_form label input {
        width: 100%;
        box-sizing: border-box;
    }

    .personal_cabinet h3 {
        padding: 0;
    }

    .clients .about_box {
        padding: 27px 0;
    }

    .about_box li > p {
        padding: 0 25px;
    }

    .step4 {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    :not(.clients) > .about_list li {
        width: 100%;
    }
}

@media (max-width: 425px) {
    .header-l, .header-r {
        margin: 0 15px;
    }

    .header-r {
        width: calc(100% - 30px);
    }

    .search {
        width: 70%;
    }

    .header-r {
        margin-top: 0;
    }

    .clients_info ul li {
        width: fit-content;
        line-height: normal;
    }

    .clients_info ul {
        display: flex;
        flex-direction: column;
        padding-left: 12px;
        padding-right: 12px;
    }

    .clients .about_list {
        box-sizing: border-box;
        padding: 0 15px;
    }

    .about_box_list {
        padding: 0 15px;
    }

    .clients_info {
        padding: 0 15px;
    }

    .contacts {
        padding: 0 15px;
    }

    .m-filter-toggle {
        width: calc(100% - 30px);
        margin-left: 15px;
        margin-right: 15px;
    }

    .options {
        left: 15px;
        right: 15px;
    }

    .basket.basket_fixed {
        width: 100%;
    }

    .basket_fixed.on {
        right: 0;
    }

    .basket_anchor.on {
        right: 100%;
    }

    .basket ul li {
        display: flex;
        gap: 4px;
        max-height: none;
    }

    .basket ul li > .list_wrapper {
        width: 100%;
        height: 100%;
        flex: 1 1 auto;
        max-height: none;
        overflow: visible;
        float: none;
    }

    .js-basket li > .list_wrapper {
        display: flex;
        flex-direction: column;
        margin-left: 15px
    }

    .js-basket li > .list_wrapper figure,
    .step .basket ul li > .list_wrapper figure {
        margin-left: 0;
    }

    .js-basket li > .quantity,
    .step1 .basket ul li > .quantity {
        display: flex;
        align-items: center;
        flex-direction: column;
        float: none;
        width: 100%;
    }

    .step .basket ul li > .quantity {
        width: 100%;
    }

    .basket ul li > .quantity .prod-price {
        margin-left: 30px;
    }

    .step .basket ul li > .delete {
        float: none;
    }

    .step_block .summary {
        margin: 20px 0 0 0;
    }

    .user_summary .submit {
        margin: 19px auto 0;
        display: block;
        width: 100%;
    }

    .about_box li > p {
        padding: 0 15px;
    }
}

@media (min-width: 768px) {
    ul.models_list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        /*gap: 20px;*/
    }
}

@media (min-width: 1200px) {
    .catalogue,
    .main_section.catalog,
    .catalogue .models_list {
        width: auto;
        max-width: 1400px;
    }

    ul.models_list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        /*gap: 24px;*/
        padding: 0;
        margin: 0;
        list-style: none;
    }
}

