:root {
    --main-color: #222B3C;
    --main-color-rgb: rgb(34, 43, 60);
    --main-color-lite: var(--bs-link-hover-color);

    --button-bg: #3860a9;

    /* #012BAB */
    --bs-primary: var(--main-color);
    --bs-primary-rgb: var(--main-color-rgb);
    --bs-link-color: var(--main-color);
    --bs-link-hover-color: hsl(from var(--main-color) h s calc(l + 20));
    --bs-primary-hover: hsl(from var(--main-color) h s calc(l + 20));
    --bs-primary-active: hsl(from var(--main-color) h s calc(l + 20));
    --bs-primary-contrast: #FFFFFF;
    --bs-primary-contrast-rgb: 255, 255, 255;
}


/* Мобильные: строго по центру, одна под другой */
@media (max-width: 575px) {
    .about__buttons {
        flex-direction: column;
        align-items: center;      /* ← ключевое: центрирование по горизонтали */
        justify-content: center;
        gap: 12px;
        margin-top: 24px;
        margin-bottom: 10px;
    }

    .about__buttons .btn {
        display: block;
        width: 100%;
        max-width: 320px;         /* ← чтобы не растягивались на весь экран */
        margin: 0 auto;           /* ← страховка для центрирования */
        text-align: center;
        padding: 14px 18px;
        font-size: 1rem;
    }

    .about__buttons .ms-2 {
        margin-left: 0 !important;
    }
}





.about_podzakaz {
    margin-bottom: 80px;
    margin-top: 80px;
}


    .section-lizing_wrapper {
        padding: 3rem 40px;
    }

    .result-title_small {
        color: #fff;
        /* Цвет текста */
        font-size: 12px;
        /* Размер шрифта */
    }

    /* Кнопка */
    .submit-button_lizing {
        background-color: #fff;
        /* Фон кнопки */
        color: #000;
        /* Цвет текста */
        font-size: 16px;
        /* Размер шрифта */
        line-height: 20px;
        /* Высота строки */
        margin-bottom: 10px;
        text-decoration: none;
        text-align: center;
        font-weight: 400;
        /* Нормальный вес шрифта */
        border-radius: 0.75rem;
        /* Скруглённые углы */
        padding: 1rem 1.5rem;
        /* Внутренние отступы */
        transition: all 0.3s ease;
        /* Плавные переходы */
    }

    .result-section_wrap {
        margin-bottom: 100px;
    }


    /* Кнопка при наведении */
    .submit-button_lizing:hover {
        background-color: #d9e9ff;
        /* Фон при наведении */
    }

    /* Кнопка в состоянии disabled */
    .submit-button_lizing:disabled {
        opacity: 0.6;
        /* Прозрачность */
        cursor: not-allowed;
        /* Запрещённый курсор */
    }

    .wrapper_srok {
        font-size: 24px;
        /* Размер шрифта */
        line-height: 28px;
        /* Высота строки */
        color: #000;
        /* Цвет текста */
        font-weight: 400;
        /* Нормальный вес шрифта */
        padding-bottom: 10px;
    }


    .wrapper_konsalt {
        font-size: 16px;
        /* Размер шрифта */
        line-height: 20px;
        /* Высота строки */
        color: #8a8a8a;
        /* Цвет текста */
        font-weight: 400;
        /* Нормальный вес шрифта */
        text-decoration: underline;
    }

    /* Секция с результатами */
    .result-section {
        flex: 1;
        /* Растягивание на всю доступную ширину */
        max-width: 600px;
        /* Максимальная ширина */
        background-color: #222B3C;
        /* Цвет фона */
        border-radius: 1rem;
        /* Скруглённые углы */
        padding: 2rem;
        /* Внутренние отступы */
        display: grid;
        /* Флексбокс */
        grid-auto-rows: min-content;
        justify-content: space-between;
        align-content: space-evenly;
    }

    /* Текст для заголовков внутри синей секции */
    .result-title {
        font-size: 18px;
        /* Размер шрифта */
        line-height: 22px;
        /* Высота строки */
        color: #fff;
        /* Цвет текста */
        margin-bottom: 0.5rem;
        /* Отступ снизу */
    }


    .result-title_price {
        font-size: 48px;
        line-height: 56px;
        /* Высота строки */
        font-weight: 400;
        /* Нормальный вес шрифта */
        color: #fff;
        /* Цвет текста */
    }


    /* Общие стили */
    .flex {
        display: flex;
    }

    .gap-8 {
        gap: 2rem;
    }

    .flex-1 {
        flex: 1;
    }

    .max-w-[600px] {
        max-width: 600px;
    }

    .font-extrabold {
        font-weight: 800;
    }

    .mb-8 {
        margin-bottom: 2rem;
    }

    .border {
        border: 1px solid #ccc;
    }

    .border-gray-300 {
        border-color: #d1d5db;
    }

    .rounded-md {
        border-radius: 0.375rem;
    }


    .text-[#222B3C] {
        color: #222B3C;
    }

    .focus\:outline-none {
        outline: none;
    }

    .w-full {
        width: 100%;
    }

    .rounded-2xl {
        border-radius: 1rem;
    }

    .p-8 {
        padding: 2rem;
    }

    .justify-between {
        justify-content: space-between;
    }

    .mb-6 {
        margin-bottom: 1.5rem;
    }

    .items-center {
        align-items: center;
    }

    .border-t {
        border-top: 1px solid #fff;
    }

    .mb-2 {
        margin-bottom: 0.5rem;
    }

    .bg-white {
        background-color: #fff;
    }

    .rounded-xl {
        border-radius: 0.75rem;
    }

    .py-4 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }


    .credit__footer_1 {
        border-top: 1px solid #efefef;
        margin: 72px -55px 0;
        padding: 0px 40px 40px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        gap: 30px;
    }


    /* Адаптивные стили */
    @media (max-width: 768px) {
        .flex-col {
            flex-direction: column;
            /* Вертикальное расположение на мобильных устройствах */
        }

        .wrapper_srok {
            width: 100%;
            font-size: 16px;
            /* Размер шрифта */
        }

        .result-section_wrap {
            margin-bottom: 40px;
        }

        .section-lizing_wrapper {
            padding-top: 0rem;
            padding-left: 20px;
            padding-right: 20px;
            padding-bottom: 3rem;
        }

        .result-section {
            max-width: none;
            /* Убираем ограничение ширины */
            padding: 1rem;
            /* Уменьшаем отступы */
        }

        .result-title {
            font-size: 16px;
            /* Уменьшаем размер шрифта */
            line-height: 20px;
            /* Уменьшаем высоту строки */
        }

        .result-value {
            font-size: 36px;
            /* Уменьшаем размер шрифта */
            line-height: 44px;
            /* Уменьшаем высоту строки */
        }

        .currency {
            font-size: 32px;
            /* Уменьшаем размер шрифта */
            line-height: 40px;
            /* Уменьшаем высоту строки */
        }

        .submit-button {
            padding: 0.75rem 1rem;
            /* Уменьшаем отступы */
            font-size: 14px;
            /* Уменьшаем размер шрифта */
            line-height: 18px;
            /* Уменьшаем высоту строки */
        }
    }

    .transition {
        transition: all 0.3s ease;
    }

    .disabled\:opacity-60 {
        opacity: 0.6;
    }

    .disabled\:cursor-not-allowed {
        cursor: not-allowed;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .ml-2 {
        margin-left: 0.5rem;
    }



    @media only screen and (max-width: 767.97px) {
        .catalog_line__pic {
            min-width: 160px;
        }

        .l-section__main .col-xl-6 {
            width: 50%;
        }

        .product-item-label-text-item {
            font-size: 0.65rem;
            min-width: 1rem;
            padding: .125rem 0.2rem;
        }

        .product-item-label-left {
            left: 0rem;
        }


        .product-item-label-left {
            top: -0.4rem;
        }


    }

/* COLORS */
.text-bg-primary {
    color: #FFFFFF !important;
    background-color: var(--main-color) !important;
}

.btn-outline-primary {
    --bs-btn-color: var(--main-color);
    --bs-btn-border-color: var(--main-color);
    --bs-btn-hover-color: #FFFFFF;
    --bs-btn-hover-bg: var(--main-color);
    --bs-btn-hover-border-color: var(--main-color);
    --bs-btn-focus-shadow-rgb: 1, 43, 171;
    --bs-btn-active-color: #FFFFFF;
    --bs-btn-active-bg: var(--main-color);
    --bs-btn-active-border-color: var(--main-color);
    --bs-btn-disabled-color: var(--main-color);
    --bs-btn-disabled-border-color: var(--main-color);
    color: var(--main-color);
}

.dropdown-menu {
    --bs-dropdown-link-hover-color: #FFFFFF;
    --bs-dropdown-link-hover-bg: var(--main-color-lite);
    --bs-dropdown-link-active-color: #FFFFFF;
    --bs-dropdown-link-active-bg: var(--main-color-lite);
}

.btn-primary {
    --bs-btn-color: #FFFFFF;
    --bs-btn-bg: var(--main-color);
    --bs-btn-border-color: var(--main-color);
    --bs-btn-hover-color: #FFFFFF;
    --bs-btn-hover-bg: var(--main-color);
    --bs-btn-hover-border-color: var(--main-color);
    --bs-btn-focus-shadow-rgb: 39, 74, 183;
    --bs-btn-active-color: #FFFFFF;
    --bs-btn-active-bg: var(--main-color);
    --bs-btn-active-border-color: var(--main-color);
    --bs-btn-disabled-color: #FFFFFF;
    --bs-btn-disabled-bg: var(--main-color);
    --bs-btn-disabled-border-color: var(--main-color);
}

.btn-custom-bg {
    background-color: var(--button-bg);
    color: #fff;

    &:hover {
        background-color: #fff;
        border: 1px solid var(--button-bg);
        color: var(--button-bg);
    }
}

.service-name {
    color: var(--main-color);
}

input[type="range"] {
    background: var(--main-color);
}

input[type="range"]::-webkit-slider-runnable-track {
    background: var(--main-color);
}

input[type="range"]::-moz-range-track {
    background: var(--main-color);
}

input[type="range"]::-webkit-slider-thumb {
    border: 2px solid var(--main-color);
}

input[type="range"]::-moz-range-thumb {
    border: 2px solid var(--main-color);
}

input[type="range"] {
    background: var(--main-color);
}

input[type="range"]::-webkit-slider-runnable-track {
    background: var(--main-color);
}

input[type="range"]::-moz-range-track {
    background: var(--main-color);
}

.callback-form__btn {
    background-color: var(--main-color);
}

.form-check-input:checked {
    background-color: var(--main-color);
    border-color: var(--main-color);
}

.callback-block {
    background-color: hsl(from var(--main-color) h s 95);
}

.service_item a {
    background: var(--main-color);
}

.accordion-button:not(.collapsed) {
    background-color: var(--main-color);
}

.accordion-button:focus {
    border-color: var(--main-color-lite);
}

.page-link.active,
.active > .page-link {
    background-color: var(--main-color);
    border-color: var(--main-color);
}

.page-link:focus,
.page-link:hover {
    color: var(--main-color);
    background-color: hsl(from var(--main-color) h s 95);
}

.b-sidebar-map__icon {
    background: var(--main-color);
}

.b-sidebar-map:hover .b-sidebar-map__icon {
    background: var(--main-color-lite);
}

.blue_btn {
    background: var(--main-color);

    &:hover {
        background: var(--main-color-lite);
    }
}

.form_service a {
    background: var(--main-color);

    &:hover {
        background: var(--main-color-lite);
    }
}

.service_detail_list .item a {
    border: 1px solid var(--main-color);
    background: var(--main-color);

    &:hover {
        border: 1px solid var(--main-color-lite);
        background: var(--main-color-lite);
    }
}

.ploshka {
    color: var(--main-color);
    border: 1px solid var(--main-color);
}

.dealers-map__card-link {
    color: var(--main-color-lite);
    font-size: 15px;
    font-weight: 600;
    padding: 0.2em 0.8em;
    border: 1px solid var(--button-bg);
    color: var(--button-bg);
    border-radius: 8px;
}

.dealers-map__card-phone {
    color: var(--main-color-lite);
    font-size: 16px;
    font-weight: 600;
}

.dealers-map__email {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.6;

    a {
        text-decoration: none;

        &:hover {
            text-decoration: underline;
        }
    }
}

input,
button,
select,
optgroup,
textarea {
    accent-color: var(--main-color-lite);
}

.accordion__header::after {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M20.1197 25.3695C19.5014 25.9878 18.4989 25.9878 17.8806 25.3695L8.38058 15.8695C7.76224 15.2512 7.76224 14.2487 8.38058 13.6303C8.99891 13.012 10.0014 13.012 10.6197 13.6303L19.0002 22.0107L27.3806 13.6303C27.9989 13.012 29.0014 13.012 29.6197 13.6303C30.2381 14.2487 30.2381 15.2512 29.6197 15.8695L20.1197 25.3695Z' fill='url(%23paint0_linear_125_1243)'/%3e%3cdefs%3e%3clinearGradient id='paint0_linear_125_1243' x1='29.6195' y1='23.119' x2='7.60619' y2='21.972' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23222B3C'/%3e%3cstop offset='1' stop-color='%23222B3C'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e");
}

.button {
    background-color: var(--main-color);
}

.credit__list .button {
    text-decoration: none;
    border-radius: 6px;

    &:hover {
        background-color: var(--main-color);
        color: #fff;
    }
}

.credit__list li::before {
    background: var(--main-color-lite) url(/bitrix/templates/master_default/icon-check.svg) 50% 50% no-repeat;

}

.credit__footer .button {
    border-radius: 6px;
}

.b-head-search__form {
    background: var(--main-color) !important;
}

/* COLORS */

/* MAIN */
body {
    background-color: #fcfcfc;
}

.servise_list_brand div {
    background-color: #fff;
}

#catalog-filter {
    background-color: #fff;
    border: 1px solid #e4e4e4;
}

.smart-filter-block {
    border: none !important;
}

.custom-row:not(:last-child) {
    margin-bottom: 32px;
}

.custom-row {
    display: grid;
}

.header__button-car-selection {
    display: none;
}

.product-item {
    border-radius: 8px;
}

[aria-labelledby="bx_2431141594_368_menu"] .dropdown-item.disabled,
[aria-labelledby="bx_2431141594_698_menu"] .dropdown-item.disabled,
[aria-labelledby="bx_2431141594_423_menu"] .dropdown-item.disabled {
    display: none;
}

.services-title {
    color: unset;
}

.calculator-title {
    line-height: 1.1;
    margin-bottom: 32px;
}

.callback-form-wrapper {
    margin-bottom: 64px;
}

.callback-block {
    grid-template-columns: 500px 1fr;
    gap: 32px;
}

.callback-block__title {
    margin-bottom: 16px;
}

.callback-block__text {
    opacity: 0.8;
    font-size: 18px;
    max-width: 460px;
}

.l-section--product-list {

    .swiper-button-next,
    .swiper-button-prev {
        position: absolute;
        top: 50%;
        background-color: var(--main-color);

        &:hover {
            border: 1px solid var(--main-color);
            background-color: #fff;
        }

    }

    .swiper {
        margin-left: -20px;
        margin-right: -20px;
        padding-inline: 20px;
    }

    .swiper-button-prev {
        left: 0;
    }

    .swiper-button-next {
        right: 0;
    }
}

.leasing__subtitle {
    margin-bottom: 32px;
}

.b-light-gallery__item__partner-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    display: block;
    object-fit: contain;
}

.my-n1px {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.l-main__content .catalog {
    margin-top: 60px;
}

.l-section--categories {
    .catalog_line {
        height: 100%;
        margin: 0;

        .catalog_line__title {
            font-size: 15px;
            min-height: 2lh;

            span {
                color: var(--main-color-lite);
                opacity: 0.6;
                display: inline-block;
                margin-left: 4px;
            }
        }

        > .row {
            height: 100%;
            display: flex;
            flex-direction: column;

            > div:has(.catalog_line__body) {
                margin-top: auto;


            }
        }
    }
}

.servise_list_brand {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
}

.servise_list_brand img {
    display: block;
    width: 100%;
}

/* MAIN */

/* CARDS REDESIGN IN CAT*/
.custom-row {
    flex-direction: column;
    margin-bottom: 32px;
    gap: 32px;

    .col-sm-4 {
        width: 100%;
        margin: 0;
    }

    .product-item {
        display: flex;
        gap: 32px;
        border-radius: 4px;
    }

    .product-item-image-wrapper {
        margin: 0;
        position: relative;
        flex-grow: 1;
        padding: 0;
        max-width: 300px;
        flex-basis: 300px;
        border-radius: 4px;
        overflow: hidden;
        aspect-ratio: 4 / 3;
    }

    .custom-info {
        flex-grow: 1;
    }

    .custom-info__header {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: start;
        margin-bottom: 8px;
        gap: 16px;
    }

    .product-item-title {
        line-height: unset !important;
        height: unset;
        overflow: visible;
        margin-bottom: 0;
    }

    .product-item-title,
    .product-item-title a {
        font-size: 20px !important;
        font-weight: 600;
    }

    .item__avaible {
        margin-bottom: 0;
    }

    .product-item-title:after {
        display: none;
    }

    .custom-params {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 24px;
        margin-bottom: 20px;
    }

    .custom-params__item {
        padding: 0;
        background-color: transparent;
        position: relative;

        &:not(:last-child)::after {
            content: "";
            display: block;
            top: 50%;
            translate: 0 -50%;
            right: -14px;
            width: 4px;
            height: 4px;
            background-color: #0c0c0c;
            position: absolute;
            border-radius: 100vw;
            opacity: 0.5;
        }
    }

    .custom-params__item-title {
        display: none;
    }

    .custom-params__item-value {
        opacity: 0.5;
        font-weight: 600;
    }

    .product-item-price-container {
        margin-bottom: 20px;
        height: unset;
    }

    .avaible_hold,
    .avaible_true,
    .item__avaible {
        border-radius: 4px;
        font-weight: 500;
        flex-shrink: 0;
    }

    .product-item-label-left {
        left: 0.8em;
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
        height: fit-content;
    }

    .product-item-label-text-item {
        padding: 0.2em 0.4em 0.3em;
        display: flex;
        min-width: unset;
        line-height: 1;
        box-shadow: 0 0 8px #00000033;
    }

    .product-item-price-current {
        font-weight: 400;
        font-size: 24px;
        line-height: 1;
    }

    .auto__position {
        display: flex;
        align-items: center;
        gap: 6px;
        opacity: 0.6;
        font-weight: 600;
        font-size: 15px;
        margin-top: 32px;
    }

    @media (width <=991px) {
        .product-item-image-wrapper {
            max-width: 250px;
            flex-basis: 100%;
            aspect-ratio: 4 / 3;
            flex-shrink: 0;

        }

        .product-item {
            align-items: start;
        }
    }

    @media (width <=767px) {
        .product-item {
            padding: 0;
            gap: 24px;
        }

        .custom-info {
            padding: 16px 16px 16px 0;
        }

        .product-item {
            align-items: stretch;
        }

        .product-item-image-wrapper {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }

    }

    @media (width <=620px) {
        .product-item {
            flex-direction: column;
            height: auto;
            gap: 0;
        }

        .custom-info {
            padding: 16px;
        }

        .product-item-image-wrapper {
            max-width: unset;
            flex-basis: 100%;
            aspect-ratio: unset;
        }

        .product-item-image-wrapper {
            border-radius: 0;
            height: auto;
        }

        .product-item-image-original {
            position: relative;
            width: 100%;
            height: auto;
            aspect-ratio: 5 / 3;
        }

    }
}

.custom-info__buttons {
    .catalog-section & {
        display: flex;
        gap: 16px;
    }

    .swiper-wrapper & {
        gap: 4px;
        justify-content: space-between;
    }
}



.custom-info__contacts {
    display: flex;
    gap: 16px;

    .swiper-wrapper & {
        flex-direction: column;
        gap: 4px;

        .auto__position {
            display: flex;
            align-items: center;
            gap: 8px;

            &:first-child {
                translate: -3px 0;
            }
        }
    }
}


.l-main--has-sidebar .l-main__content:has(.page-import) {
    max-width: unset;

    .custom-row {
        display: grid;
        gap: 20px;
        grid-template-columns: repeat(2, minmax(min(250px, 100%), 1fr));
        padding-inline: 10px;
        margin-bottom: 20px;


        @media (width <=1200px) {
            grid-template-columns: auto;
            max-width: 768px;
            margin-inline: auto;
        }
    }

    .custom-row__item {
        padding: 0;

        .product-item {
            padding: 16px;
            gap: 20px;
        }
    }

    .custom-info {
        display: flex;
        flex-direction: column;

        > * {
            margin: 0;
        }
    }

    .custom-info__contacts {
        flex-direction: row;
        gap: 8px;
        /* margin-top: auto; */
        align-items: start;
    }

    .custom-info__term {
        font-size: 14px;
        font-weight: 600;
        opacity: 0.6;
        margin-bottom: 8px;
        margin-top: auto;
    }

    .auto__position {
        margin: 0;
        line-height: 1;
        font-size: 14px;

        svg {
            width: 14px;
            height: 14px;
            flex-shrink: 0;
            align-self: start;
        }

        &:first-child {
            translate: -4px 0;

            svg {
                width: 16px;
                height: 16px;
            }
        }
    }

    .product-item-image-wrapper {
        flex-grow: 0;
        flex-shrink: 0;
        flex-basis: 250px;
        /* align-self: start; */
    }


    .custom-info__buttons {
        margin-bottom: 16px;
    }

    .product-item-price-container {
        margin-bottom: 8px;
    }

    .custom-params {
        margin-bottom: 12px;
    }

    .product-item-title {
        margin-bottom: 4px;
    }

    .custom-params__item-value {
        font-size: 14px;
    }

}

.page-import .custom-info__buttons .product-item-info-container:has(a.btn[href*=import_avto]) {
    display: none;
}

.page-import .product-item-image-wrapper {
    pointer-events: none;
}

.page-import .product-item-title a {
    pointer-events: none;
}

/* CARDS REDESIGN IN CAT*/

/* SMART FILTER */
li:has(.smart-filter-dropdown-label.dropdown-item.disabled) {
    /* display: none !important; */

}

.smart-filter:has(input[data-text-value="Новый"]:checked) .smart-filter-parameters-box:has(.smart-filter-slider-track#drag_track_680) {
    display: none;
}

.smart-filter:has(input[data-text-value="С пробегом"]:checked) .smart-filter-parameters-box:has(.smart-filter-slider-track#drag_track_680) {
    display: block;
}


.l-main__inner:has(.page-import) .l-main__sidebar {
    display: none;
}

.sorter .button__filter {
    display: none;
}

@media (width <=767px) {
    .l-main__breadcrumb{
        display: none;
    }
    .l-main__sidebar:has(#catalog-filter) {
        width: 100% !important;
        height: 100%;
        /* overflow-y: auto; */
        position: fixed;
        display: block;
        opacity: 0;
        pointer-events: none;
        max-width: 90vw !important;
        max-height: calc(100dvh - 200px);

        padding: 0 !important;
        margin: 0 !important;
        z-index: 100;
        top: 64px;
        left: 50%;
        translate: -50% 0;
        transition: 250ms;
        box-shadow: 0 0 0 100vw #00000033;

        .row {
            margin-inline: 0;
        }

        &.active {
            opacity: 1;
            pointer-events: all;
            border-radius: 8px;
            overflow: clip;
        }

        .button__filter-close {
            position: absolute;
            height: 40px;
            width: 40px;
            background-color: #fff;
            border-radius: 8px;
            color: #00000099;
            top: 8px;
            right: 8px;
            font-size: 0;
            z-index: 100;
            background-image: url(/images/close.svg);
            background-repeat: no-repeat;
            background-position: center;
        }

        #catalog-filter {
            padding-top: 40px;
            height: 100%;
            overflow-y: auto;
        }
    }

    .catalog .sorter__item {
        display: block;
    }

    .sorter {
        align-items: center;
    }

    .sorter .button__filter {
        display: flex;
        font-size: 0;
        width: 40px;
        height: 40px;
        margin-right: 0;
        padding: 0;
        border-radius: 8px;
        background-color: transparent;
        color: var(--main-color);
        position: relative;

        &:before {
            content: attr(title);
            position: absolute;
            right: calc(100% + 16px);
            display: inline-block;
            font-size: 16px;
        }

        .page-import & {
            display: none;
        }
    }
}

/* SMART FILTER */

/* BRANDS SLIDER */
.b-light-gallery__item__partner-img {
    width: 100%;
    aspect-ratio: 1;
    display: block;
}

.b-light-gallery__item__partner-title {
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    color: #00000099;
}

.b-light-gallery__item__partner-link {
    text-align: center;
    text-decoration: none;
    display: grid;
    grid-template-rows: 120px auto;
    gap: 16px;
    transition: 150ms;

    &:hover {
        text-decoration: none;
        /* opacity: 0.6; */
        scale: 1.05;
    }
}

.b-light-gallery__item {
    padding: 20px;
}

/* BRANDS SLIDER */

/* FORM POPUP */
.fancybox__content:has(.custom-popup-form) {
    background-color: hsl(from var(--main-color) h s 97);
}

.custom-popup-form {

    input[type=text],
    select {
        background-color: #fff;
    }
}

.custom-popup-fields {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.custom-captcha {
    margin-bottom: 24px;
}

.main-user-consent-request {
    margin-bottom: 16px;
}

.fancybox__content :focus:not(.carousel__button.is-close) {
    outline: none;
    box-shadow: none;
}

/* FORM POPUP */

/* MEDIA */
@media (width <=1200px) {
    .container {
        padding: 0 20px;
    }
}

@media (width <=991px) {
    .service_item {
        flex-wrap: wrap;
        gap: 16px;

        > * {
            flex: 1;
            margin: 0 !important;
            font-size: 15px !important;
            text-align: center !important;
            justify-content: center;
        }
    }

    .servise_list_brand {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));

        div {
            max-width: unset;
        }
    }

    .callback-block {
        grid-template-columns: auto;
        gap: 16px;
    }

    .callback-block__text {
        max-width: 430px;
    }
}

@media (width <=767px) {
    .servise_list_brand div {
        width: unset;
    }

    .d-block a[data-fancybox="catalog-filter"] {
        display: none;
    }
}

@media (width <=425px) {
    .b-light-gallery__item__partner-img {
        width: 83px;
        height: 83px;
        display: block;

        margin-inline: auto;
    }

    .b-light-gallery__item__partner-link {
        grid-template-rows: 90px auto;
    }

    .l-main .l-main__content {
        padding: 0 !important;
    }

    .custom-row {
        padding-inline: 0 !important;
    }

    .custom-row .product-item {
        padding: 0 !important;
    }

    .custom-row {
        .product-item-image-original {
            height: 100%;
        }
    }

}

/* MEDIA */

#feature-list-jmonnO {
    display: none;
}

.l-main__inner:not(:has(.l-main__sidebar)) .l-main__content {
    width: 100%;
    max-width: unset;
}

.dealers-map {
    margin-bottom: 64px;
}

.services-main {
    margin-bottom: 80px !important;
    margin-top: 110px !important;
}

/* PAGE IMPORT */
.page-import > .catalog > div.mb-4 {
    display: none;
}

.page-import + .ak-import-section .l-section--product-list {
    /* position: relative;
    width: 100vw;
    left: 50%;
    translate: -50% 0; */
    margin-inline: -40px;
}

.ak-import-section .l-section--product-list .product-item-title {
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 400;
}

.ak-import-section .custom-info__contacts {
    flex-direction: column !important;

    .auto__position {
        font-size: 15px !important;
    }
}


.l-main__content .custom-banner {
    display: none;
}

.from-prefix {
    display: none;
}

.page-import .from-prefix {
    display: inline;
}

.ak-import-section .buttons-flex {
    display: flex;
    align-items: center;
    gap: 16px;

    a {
        flex: 1;


        &:hover {
            text-decoration: none;
            border: 1px solid #fff;
        }
    }
}

.fancybox-custom-popup {
    display: grid;
    grid-template-columns: 1fr 450px;
    width: 100vw;
    max-width: 1024px;

    .form-select[name=FIELD_FILIAL] {
        font-size: 15px;
        padding-right: 40px;
    }

    @media (width <=640px) {
        grid-template-columns: 0 auto;
    }
}

.fancybox__content:has(.fancybox-custom-popup) {
    border-radius: 20px;
    padding: 0;
    background-image: url(/images/0001.JPG);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    .fancybox__title {
        display: none;
    }

    .input-group {
        flex-wrap: nowrap;
    }

    .custom-popup-form {
        padding: 32px;
        background-color: #00000066;
        backdrop-filter: blur(4px);
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;

        @media (width <=640px) {
            border-radius: 20px;
        }
    }

    .form-check-label a {
        color: #fff;
        text-decoration: none;

        &:hover {
            text-decoration: underline;
        }
    }

    .fs-xs.text-muted {
        color: #ffffff99 !important;
    }
}

.ak-import-section .l-section__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

/* PAGE IMPORT */


.product-item-label-text-item.label-new {
    background-color: #267e3b !important;
    color: #ffffff !important;
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-block;
    line-height: 1.4;
}

/* С пробегом */
.product-item-label-text-item.label-used {
    background-color: #f26f31 !important;
    color: #ffffff !important;
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-block;
    line-height: 1.4;
}

.mainslider__buttons {

 display: flex;
}