/*NOTE: This file is intended for programmers. Aspro technical support is not advised to work with him.*/

/* Examples (uncomment to use):*/

/* Expand site width */
/* body .wrapper { max-width: 1400px !important;  } */

/* Set site background image */
/* body {  background: url(image_source) top no-repeat; }

/* Hide compare button */
/* a.compare_item { display: none !important;  }*/
html {
    scroll-behavior: smooth;
}

.header-menu__wide-limiter {
    max-height: none !important;
}


.sale-list__item-image {
    background-size: contain !important;
}

.padding-0 {
    padding: 0;
}

.padding-l0 {
    padding-left: 0;
}

.grid-list .sections-list__wrapper:nth-child(6n) .sections-list__item-products-count{
    font-size: 0 !important;
}

.grid-list .sections-list__wrapper:nth-child(6n) .sections-list__item-products-count:before{
    content: "ремонт, выезд инженера, запчасти";
    font-size: 13px;
    line-height: calc(1em + 7px);
}

.btn.btn-transparent-bg {
    border-color: #fff;
    color: #fff;
}

.bottom-menu .accordion-grid-item .font_15.font_bold {
    font-weight: normal;
    font-size: .86667em;
    line-height: calc(1em + 7px);
}
.row.row-flex {
    display: flex;
    flex-wrap: wrap;
}
.row.row-flex .flex-col {
    flex: 0 0 auto;
}

.sections-list--img-srl .sections-list__item-image-wrapper--LEFT .sections-list__item-link {
    margin-right: 22px;
    margin-left: 0;
}

.sections-list--img-srl .grid-list--items-3 .sections-list__item-image-wrapper:not(.sections-list__item-image-wrapper--ICONS) .sections-list__item-link {
	width: 120px;
	height: 120px;
}

.sections-list--img-srl .grid-list--items-3 .sections-list__item-image-wrapper:not(.sections-list__item-image-wrapper--ICONS) .sections-list__item-link .rounded {
	border-radius: 0;
}

.sections-list__item--big-padding {
    padding: 34px 40px 40px 30px;
}

@media (min-width: 1500px) {
    .grid-list--items-5.grid-list--no-gap {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

.detail img {
    //display: block;
    //width: 100%;
    max-width: 600px;
}

.detail.detail-maxwidth.news img{
    display: inline-block;
    width: inherit;
}

.detail .grid-list + p,
.detail img + p{
    margin-top: 2em;
}

.sections-list__item-link .rounded {
    border-radius: 0;
}

.catalog-block__info .catalog-block__info-section {
    display: none;
}

.parent_active .header-menu__link {
    color: #2c53b0;
}

.top-content-block .sections-list__wrapper .sections-list__item-image-wrapper--ICONS {
    display: none;
}

.top-content-block .grid-list--items-4 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.top-content-block .sections-list__item {
    background: #fafafa;
}

.top-content-block .sections-list__item a{
    font-size: 0.9em;
    line-height: 1.3;
    display: inline-block;
}


@media (min-width: 992px) {
    .banners-img-list__item-image.banners-img-list__item-image--one {
        height: 310px;
        background-size: cover;
    }
}

/* Схема проезда по территории — печать */
@media print {
    body:has(.contacts2-territory-map) * {
        visibility: hidden;
    }

    body:has(.contacts2-territory-map) .contacts2-territory-map__print-area,
    body:has(.contacts2-territory-map) .contacts2-territory-map__print-area * {
        visibility: visible;
    }

    body:has(.contacts2-territory-map) .contacts2-territory-map__no-print,
    body:has(.contacts2-territory-map) .contacts2-territory-map__no-print * {
        visibility: hidden !important;
        display: none !important;
    }

    body:has(.contacts2-territory-map) .contacts2-territory-map__print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    body:has(.contacts2-territory-map) .contacts2-territory-map .contacts__row,
    body:has(.contacts2-territory-map) .contacts2-territory-map .contacts__col--left {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body:has(.contacts2-territory-map) .contacts2-territory-map__scheme-link {
        display: block;
        text-decoration: none;
    }

    body:has(.contacts2-territory-map) .contacts2-territory-map__scheme-img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }

    body:has(.contacts2-territory-map) .contacts2-territory-map__section {
        display: block !important;
        page-break-inside: avoid;
        margin-bottom: 24px;
    }

    body:has(.contacts2-territory-map) .contacts2-territory-map__instruction {
        margin-bottom: 20px;
    }

    body:has(.contacts2-territory-map) .contacts2-territory-map__route--foot {
        color: #2c53b0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body:has(.contacts2-territory-map) .contacts2-territory-map__route--car {
        color: #e30613 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body:has(.contacts2-territory-map) a[href^="tel:"],
    body:has(.contacts2-territory-map) a[href^="mailto:"] {
        color: inherit !important;
        text-decoration: none !important;
    }
}

.section-gallery-wrapper__item.active img {
    object-fit: contain;
}

/* Main banner: keep page scroll when hovering the text block */
.banners-big__text.scrollbar {
    overflow: hidden;
    overflow-y: hidden;
    overscroll-behavior: auto;
}

/* Mobile adaptive-1: theme clamps text-block to 3 lines via -webkit-box.
   With multiple <p> inside, the second paragraph collapses to one line.
   Removing only overflow leaves a fixed -webkit-box height, so text overlaps buttons. */
@media (max-width: 600px) {
    .sticker {
        display: block !important;
    }

    .image-list .side-icons {
        display: none;
    }

    .banners-big--adaptive-1 .banners-big__text-block {
        display: block;
        -webkit-box-orient: initial;
        -webkit-line-clamp: unset;
        line-clamp: unset;
        overflow: visible;
        max-height: none;
    }

    .banners-big--adaptive-1 .banners-big__text-block > p {
        margin-top: 0;
        margin-bottom: 0.5em;
    }

    .banners-big--adaptive-1 .banners-big__text-block > p:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 400px) {
    .sticker--upper .sticker__item {
        white-space: nowrap;
    }
}

.detail .catalog-detail__gallery-slider .catalog-detail__gallery__item img {
    width: 100%;
}

@media (max-width: 600px) {
    .catalog-block__info-tech.compact-hidden-t600 {
        display: block;
    }

    /* Каталог: одна карточка в ряд на мобильном (тема по умолчанию даёт 2 колонки для .grid-list--compact) */
    #main .catalog-block .grid-list.grid-list--compact {
        grid-template-columns: 1fr;
    }
}