/* New catalog card (catalog.section_new / catalog_block) */

.catalog_block_template .d-catalog-grid.catalog_block.items.row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: start;
    align-items: stretch;
    margin-left: 0;
    margin-right: 0;
    column-gap: 12px;
    row-gap: 12px;
    border: none !important;
    padding-bottom: 0 !important;
    box-shadow: none !important;
}

.catalog_block_template .d-catalog-grid.catalog_block.items.row::before,
.catalog_block_template .d-catalog-grid.catalog_block.items.row::after,
.catalog .catalog_block_template .catalog_block:after,
.catalog .d-catalog-grid.catalog_block:after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
}

.catalog_block_template .top_wrapper,
.catalog_block_template,
.js-load-wrapper:has(.d-catalog-grid),
.ajax_load.cur:has(.d-catalog-grid),
.ajax_load:has(.d-catalog-grid) .top_wrapper,
#content .right_block .inner_wrapper:has(.d-catalog-grid),
.inner_wrapper:has(.d-catalog-grid) {
    border-top: none !important;
    margin-top: 0 !important;
    margin-right: 0 !important;
}

.catalog_block_template .d-catalog-grid > .linked-banners-list,
.d-catalog-grid.catalog_block > .linked-banners-list {
    display: none !important;
}

.catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    float: none;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    grid-column: auto / span 1;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
    order: 9;
}

@media (min-width: 768px) {
    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block:not(.big),
    #main .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block:not(.big),
    #main .right_block.wide_Y.catalog_page .section-content-wrapper.with-leftblock .catalog_block_template .d-catalog-grid .item_block:not(.big),
    #main .right_block.wide_Y.catalog_page .section-content-wrapper.with-leftblock .d-catalog-grid .col-lg-4:not(.custom-line) {
        width: auto !important;
        flex: none;
        max-width: none !important;
    }
}

@media (max-width: 767px) {
    .catalog_block_template .d-catalog-grid.catalog_block.items.row {
        grid-template-columns: 1fr;
        gap: 12px 0;
    }

    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block {
        width: 100% !important;
        max-width: 100% !important;
    }
}

.catalog_block_template .d-catalog-grid.catalog_block.items.row > .d-catalog-benefits {
    grid-column: 1 / -1;
    grid-row: auto;
    order: 4;
    float: none;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 25px 0 30px;
    margin: 0;
    box-sizing: border-box;
}

.catalog_block_template .d-catalog-grid.catalog_block.items.row > .d-catalog-price {
    grid-column: 1 / -1;
    grid-row: auto;
    order: 6;
    float: none;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 35px 0 30px;
    margin: 0;
    box-sizing: border-box;
}

.catalog_block_template .d-catalog-grid.catalog_block.items.row > .d-catalog-choice {
    grid-column: 1 / -1;
    grid-row: auto;
    order: 8;
    float: none;
    width: auto;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
}

/* Десктоп (3 кол.): по 3 товара перед каждым баннером, без привязки к :has() */
.catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="1"],
.catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="2"],
.catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="3"] {
    order: 1;
}

.catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="4"],
.catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="5"],
.catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="6"] {
    order: 5;
}

.catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="7"],
.catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="8"],
.catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="9"] {
    order: 7;
}

.catalog_block_template .d-catalog-grid.catalog_block.items.row > .d-catalog-benefits--short {
    order: 2;
}

@media (max-width: 767px) {
    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block {
        order: 8;
    }

    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .d-catalog-benefits {
        order: 3;
    }

    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .d-catalog-price {
        order: 5;
    }

    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .d-catalog-choice {
        order: 7;
    }

    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="1"],
    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="2"] {
        order: 1;
    }

    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="3"],
    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="4"] {
        order: 4;
    }

    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="5"] {
        order: 6;
    }

    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="6"],
    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="7"],
    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="8"],
    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="9"] {
        order: 8;
    }
}

.d-catalog-benefits__title {
    margin: 0 0 20px;
    color: #222222;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.d-catalog-benefits__title span {
    color: #1965E3;
}

@media (min-width: 768px) {
    .d-catalog-benefits__title {
        margin-bottom: 16px;
        font-size: 24px;
        line-height: 26px;
    }
}

.d-catalog-benefits__row {
    --d-benefits-columns: 4;
    --d-benefits-gap: 40px;
    --d-benefits-pad-y: 16px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--d-benefits-columns), minmax(0, 1fr));
    column-gap: var(--d-benefits-gap);
    box-sizing: border-box;
}

.d-catalog-benefits__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    box-sizing: border-box;
    padding: var(--d-benefits-pad-y) 0;
    text-align: center;
    border-bottom: 1px solid #D9DEE7;
}

.d-catalog-benefits__item::after {
    content: '';
    position: absolute;
    top: var(--d-benefits-pad-y);
    bottom: var(--d-benefits-pad-y);
    right: calc(var(--d-benefits-gap) / -2);
    width: 1px;
    background-color: #D9DEE7;
}

.d-catalog-benefits__icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
}

.d-catalog-benefits__icon svg {
    display: block;
    width: 34px;
    height: 34px;
}

.d-catalog-benefits__text {
    color: #222222;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .d-catalog-benefits__item:nth-child(4n)::after,
    .d-catalog-benefits__item:last-child::after {
        display: none;
    }

    .d-catalog-benefits__item:nth-child(4n + 1):nth-last-child(-n + 4),
    .d-catalog-benefits__item:nth-child(4n + 1):nth-last-child(-n + 4) ~ .d-catalog-benefits__item {
        border-bottom: none;
    }
}

@media (max-width: 767px) {
    .d-catalog-benefits__row {
        --d-benefits-columns: 2;
        --d-benefits-gap: 24px;
        --d-benefits-pad-y: 12px;
    }

    .d-catalog-benefits__row::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        z-index: 1;
        width: 1px;
        background-color: #D9DEE7;
        transform: translateX(-50%);
        pointer-events: none;
    }

    .d-catalog-benefits__item::after {
        display: none;
    }

    .d-catalog-benefits__item:nth-child(2n + 1):nth-last-child(-n + 2),
    .d-catalog-benefits__item:nth-child(2n + 1):nth-last-child(-n + 2) ~ .d-catalog-benefits__item {
        border-bottom: none;
    }
}

.d-catalog-price__block {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: 80px;
    padding: 28px 64px;
    background-color: #1965E3;
    border-radius: 3px;
}

.d-catalog-price__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 0 1 auto;
    min-width: 0;
    text-align: center;
}

.d-catalog-price__item-img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.d-catalog-price__item-label {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
    color: #fff;
}

.d-catalog-price__sign {
    display: flex;
    align-items: center;
    align-self: flex-start;
    height: 52px;
    flex-shrink: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
}

.d-catalog-delivery {
    margin-top: 35px;
}

.d-catalog-price--services-only > .d-catalog-delivery:first-child {
    margin-top: 0;
}

.d-catalog-delivery:not(.is-open) > .d-catalog-delivery__body,
.d-catalog-delivery:not(.is-open) > .d-catalog-works__body {
    display: none !important;
}

.d-catalog-delivery__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    user-select: none;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    color: #222222;
}

.d-catalog-delivery__title {
    flex: 1;
    min-width: 0;
}

.d-catalog-delivery__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 15px;
    height: 14px;
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}

.d-catalog-delivery.is-open .d-catalog-delivery__arrow {
    transform: rotate(0deg);
}

.d-catalog-delivery__body {
    margin-top: 20px;
}

.d-catalog-delivery__item {
    padding: 15px 0;
    border-bottom: 1px solid #D9DEE7;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.3;
    color: #222222;
}

.d-catalog-delivery__item:first-child {
    padding-top: 0;
}

.d-catalog-delivery__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.d-catalog-delivery__accent {
    color: #1965E3;
}

.d-catalog-price {
    padding-bottom: 30px;
}

.d-catalog-works__body {
    margin-top: 20px;
}

.d-catalog-works__section + .d-catalog-works__section {
    margin-top: 20px;
}

.d-catalog-works__section-title {
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.3;
    color: #878B99;
}

.d-catalog-works__list {
    margin-top: 15px;
    padding: 15px 20px;
    border-radius: 3px;
    background: #F7F7F9;
}

.d-catalog-works__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #D9DEE7;
}

.d-catalog-works__row:first-child {
    padding-top: 0;
}

.d-catalog-works__row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.d-catalog-works__name {
    flex: 1;
    min-width: 0;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.3;
    color: #222222;
}

.d-catalog-works__price {
    flex-shrink: 0;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.3;
    color: #1965E3;
    text-align: right;
    white-space: nowrap;
}

.d-catalog-choice {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px -16px 30px;
    padding: 30px 16px;
    background: #1D274B;
    box-sizing: border-box;
}

.d-catalog-choice__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.d-catalog-choice__label {
    margin: 0;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 11px;
    line-height: 1.3;
    color: #CFDBEB;
}

.d-catalog-choice__title {
    margin: 0;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.25;
    color: #FFFFFF;
}

.d-catalog-choice__title span {
    color: #7DBAFF;
}

.d-catalog-choice__text {
    margin: 0;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
    color: #FFFFFF;
}

.d-catalog-choice__btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 17.5px 16px;
    border: none;
    border-radius: 3px;
    background: #ffffff;
    box-sizing: border-box;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    color: #222222;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    overflow: visible;
    position: relative;
}

.d-catalog-choice__btn:hover,
.d-catalog-choice__btn:focus {
    background: #f4f7fb;
    outline: none;
}

.d-catalog-choice__media {
    min-width: 0;
    line-height: 0;
}

.d-catalog-choice__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .d-catalog-choice {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        align-items: center;
        gap: 28px 32px;
        margin: 25px 0 30px;
        padding: 28px 32px;
    }

    .d-catalog-choice__content {
        gap: 14px;
        justify-content: center;
    }

    .d-catalog-choice__label {
        font-size: 12px;
    }

    .d-catalog-choice__title {
        font-size: 24px;
        line-height: 1.2;
    }

    .d-catalog-choice__text {
        font-size: 14px;
        line-height: 1.4;
    }

    .d-catalog-choice__btn {
        width: 100%;
        max-width: 360px;
        padding: 16px 20px;
        font-size: 13px;
    }

    .d-catalog-choice__media {
        align-self: center;
    }

    .d-catalog-choice__image {
        height: auto;
        object-fit: contain;
        object-position: center;
    }
}

@media (min-width: 1200px) {
    .d-catalog-choice {
        padding: 32px 40px;
        gap: 32px 40px;
    }

    .d-catalog-choice__title {
        font-size: 26px;
    }

    .d-catalog-choice__text {
        font-size: 15px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .d-catalog-price__block {
        gap: 12px;
        padding: 20px 16px;
    }

    .d-catalog-price__item-img {
        width: 40px;
        height: 40px;
    }

    .d-catalog-price__item-label {
        font-size: 12px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .d-catalog-price__sign {
        height: 40px;
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .d-catalog-price__block {
        gap: 10px;
        padding: 20px 12px;
    }

    .d-catalog-price__item {
        gap: 7px;
    }

    .d-catalog-price__item-img {
        width: 28px;
        height: 28px;
    }

    .d-catalog-price__item-label {
        font-size: 12px;
        font-weight: 600;
        line-height: normal;
    }

    .d-catalog-price__sign {
        height: 28px;
        font-size: 20px;
        font-weight: 700;
        line-height: 26px;
    }
}

@media (max-width: 768px) {
    .d-catalog-delivery__heading {
        font-size: 22px;
        line-height: 26px;
    }

    .d-catalog-delivery__item {
        font-size: 13px;
    }

    .d-catalog-works__section-title,
    .d-catalog-works__name,
    .d-catalog-works__price {
        font-size: 13px;
    }

    .d-catalog-works__row {
        padding: 10px 0;
    }
}

.catalog_block_template .d-catalog-card.catalog_item,
.catalog_block_template .d-catalog-card.catalog_item_wrapp {
    background: #fff;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
}

.catalog_block_template .d-catalog-card.catalog_item > .inner_wrap,
.ajax_load .top_wrapper .catalog_block .d-catalog-card.catalog_item > .inner_wrap,
.ajax_load .top_wrapper .catalog_block .d-catalog-card.catalog_item > div {
    padding: 39px 12px 20px;
    border-radius: 5px;
    border: 1px solid #dedede;
    box-shadow: none !important;
    margin: 0 !important;
    height: 100% !important;
    background: #fff;
    box-sizing: border-box;
    position: relative;
    flex: 1 1 auto;
}

.catalog_block_template .d-catalog-card.has-stickers > .inner_wrap,
.ajax_load .top_wrapper .catalog_block .d-catalog-card.has-stickers.catalog_item > .inner_wrap,
.ajax_load .top_wrapper .catalog_block .d-catalog-card.has-stickers.catalog_item > div {
    padding-top: 39px;
}

.catalog_block_template .d-catalog-card.catalog_item:hover,
.catalog_block_template .d-catalog-card.catalog_item:hover .inner_wrap,
.catalog_block_template .catalog_block.owl-carousel .d-catalog-card.catalog_item:hover .inner_wrap {
    box-shadow: none;
    border-color: #dedede;
    height: 100%;
    z-index: 2;
}

.catalog_block_template .d-catalog-card.catalog_item:has(.d-card__service-star.is-open) {
    z-index: 3;
}

.ajax_load .top_wrapper .d-catalog-card.catalog_item .footer_button {
    margin-left: 0;
    margin-right: 0;
}

/* Stickers: slot is reserved via inner_wrap padding-top (10 + 23 + 6) */
.d-catalog-card .d-card__stickers {
    position: absolute !important;
    left: 12px;
    right: 12px;
    top: 10px;
    padding: 0;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: auto;
    min-height: 23px !important;
    height: 23px !important;
    flex-shrink: 0;
    z-index: 2;
    line-height: 1;
    opacity: 1;
    visibility: visible;
    box-sizing: border-box;
}

.d-catalog-card .d-card__stickers .stickers,
.d-catalog-card .stickers {
    position: static;
    left: auto;
    top: auto;
    padding: 0;
    margin: 0;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 100%;
    z-index: 2;
    line-height: 1;
    height: auto;
    opacity: 1;
    visibility: visible;
}

.d-catalog-card .stickers:after {
    display: none;
}

.d-catalog-card .stickers > div {
    float: none;
}

.d-catalog-card .stickers [class*="sticker_"],
.d-catalog-card .stickers.custom-font [class*="sticker_"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 23px;
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #ffffff;
    border-radius: 3px;
    padding: 0 15px;
    margin: 0;
}

.d-catalog-card .stickers .sticker_series,
.d-catalog-card .stickers.custom-font .sticker_series {
    background: var(--sticker-series-bg, #1454c4) !important;
    color: var(--sticker-series-text, #fff) !important;
}

/* Image
   Стикеры: 10px сверху + 23px высота + 6px до картинки.
   Картинка на всю ширину контента (inner_wrap 12px), без доп. боковых 50px.
   Aspro подменяет src на 1×1 GIF (lazyload) и ждёт ненулевую высоту слота —
   держим её через aspect-ratio, картинку кладём внутрь. */
.d-catalog-card .image_wrapper_block,
.d-catalog-card.catalog_item .image_wrapper_block,
.catalog_block .d-catalog-card.catalog_item .image_wrapper_block {
    margin: 0 auto 8px !important;
    padding: 0 !important;
    padding-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 266 / 278;
    height: auto !important;
    max-height: none;
    min-height: unset;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.d-catalog-card .image_wrapper_block > a,
.d-catalog-card .image_wrapper_block .thumb,
.d-catalog-card .image_wrapper_block .section-gallery-wrapper,
.d-catalog-card .image_wrapper_block .section-gallery-wrapper__item {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    display: block;
}

.d-catalog-card .image_wrapper_block .section-gallery-wrapper__item-nav,
.d-catalog-card .section-gallery-wrapper__item:not(._active) {
    display: none !important;
}

.d-catalog-card .d-card__rating .rating {
    position: static;
    margin: 0;
    padding: 0;
}

.d-catalog-card .image_wrapper_block .like_icons,
.d-catalog-card .image_wrapper_block .fast_view_button,
.d-catalog-card .image_wrapper_block .ce_cmp_visible,
.d-catalog-card .image_wrapper_block .properties {
    display: none !important;
}

.d-catalog-card .image_wrapper_block img,
.d-catalog-card .image_wrapper_block .img-responsive {
    position: absolute !important;
    inset: 0;
    display: block !important;
    margin: auto !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    height: auto !important;
    object-fit: contain;
    opacity: 1 !important;
}

/* Variants / SKU */
.d-catalog-card .d-card__variants,
.d-catalog-card .d-card__variants.sku_props {
    margin: 0 0 12px;
    padding: 0 !important;
    width: 100%;
    min-width: 0;
}

.d-catalog-card .d-card__variants--silent {
    margin: 0;
    width: 100%;
    min-height: 0;
    height: 0;
    overflow: hidden;
}

.d-catalog-card .d-card__variants-title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    color: #222222;
    margin: 0 0 7px;
    padding: 0;
    text-align: left;
}

.d-catalog-card .d-card__variants .bx_item_section_name,
.d-catalog-card .d-card__sku-hidden {
    display: none !important;
}

.d-catalog-card .d-card__variants .bx_catalog_item_scu,
.d-catalog-card .d-card__variants .item_wrapper,
.d-catalog-card .d-card__variants .bx_item_detail_scu,
.d-catalog-card .d-card__variants .bx_scu_scroller_container,
.d-catalog-card .d-card__variants .bx_scu,
.d-catalog-card .d-card__variants .scrollblock {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    max-height: none;
}

.d-catalog-card .d-card__sku-list,
.d-catalog-card .bx_catalog_item_scu ul.list_values_wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    cursor: grab;
    touch-action: pan-x pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.d-catalog-card .d-card__sku-list.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.d-catalog-card .d-card__sku-list.is-dragging .d-card__sku-item {
    pointer-events: none;
}

.d-catalog-card .d-card__sku-list::-webkit-scrollbar,
.d-catalog-card .bx_catalog_item_scu ul.list_values_wrapper::-webkit-scrollbar {
    display: none;
}

.d-catalog-card .d-card__sku-item,
.d-catalog-card .bx_catalog_item_scu ul li.item,
body .ajax_load .d-catalog-card .bx_catalog_item_scu ul li#li_TP {
    box-sizing: border-box;
    flex: 0 0 90px;
    width: 90px !important;
    height: 90px !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid #dedede;
    border-radius: 3px;
    background: #fff !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    float: none !important;
    opacity: 1 !important;
    color: inherit;
}

.d-catalog-card .d-card__sku-item:hover,
.d-catalog-card .bx_catalog_item_scu ul li.item:hover,
body .ajax_load .d-catalog-card .bx_catalog_item_scu ul li#li_TP:hover {
    border-color: #1965e3 !important;
    background: #eef3ff !important;
}

.d-catalog-card .d-card__sku-item.active,
.d-catalog-card .bx_catalog_item_scu ul li.item.active,
body .ajax_load .d-catalog-card .bx_catalog_item_scu ul li#li_TP.active {
    border-color: #1965e3 !important;
    background: #eef3ff !important;
}

.d-catalog-card .d-card__sku-item.missing,
.d-catalog-card .d-card__sku-item.missing .d-card__sku-image,
.d-catalog-card .d-card__sku-item.missing .d-card__sku-name,
.d-catalog-card .d-card__sku-item.missing .d-card__sku-price {
    opacity: 1 !important;
    text-decoration: none !important;
}

.d-catalog-card .d-card__sku-item.missing::before,
.d-catalog-card .d-card__sku-item.missing .d-card__sku-image::before,
.d-catalog-card .d-card__sku-item .cnt1:before,
.d-catalog-card .item.missing .cnt1:before {
    content: none !important;
    display: none !important;
    background: none !important;
}

.d-catalog-card .d-card__sku-image {
    width: 30px;
    height: 30px;
    padding: 0 !important;
    margin: 0 auto 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    position: relative;
}

.d-catalog-card .d-card__sku-image img {
    display: block;
    max-width: 30px;
    max-height: 30px;
    width: auto;
    height: auto;
    object-fit: contain;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.d-catalog-card .d-card__sku-item.active .d-card__sku-image,
.d-catalog-card .d-card__sku-item.active .d-card__sku-image img,
.d-catalog-card .d-card__sku-item:hover .d-card__sku-image,
.d-catalog-card .d-card__sku-item:hover .d-card__sku-image img {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.d-catalog-card .d-card__sku-name,
.d-catalog-card .d-card__sku-item.active .d-card__sku-name,
.d-catalog-card .d-card__sku-item:hover .d-card__sku-name {
    font-weight: 500;
    font-size: 10px;
    line-height: 1.15;
    color: #222222 !important;
    margin: 0 0 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: none !important;
}

.d-catalog-card .d-card__sku-price,
.d-catalog-card .d-card__sku-item.active .d-card__sku-price,
.d-catalog-card .d-card__sku-item:hover .d-card__sku-price {
    font-weight: 600;
    font-size: 12px;
    line-height: 1.15;
    color: #1965e3 !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: none !important;
    text-decoration: none !important;
}

.d-catalog-card .bx_catalog_item_scu ul li.item > i {
    display: none;
}

/* Title + compare */
.d-catalog-card .d-card__title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 7px;
    min-height: calc(22px * 1.2 * 2);
    flex-shrink: 0;
}

.d-catalog-card .d-card__title-row .item-title {
    display: block;
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    height: calc(1.2em * 2);
    min-height: calc(1.2em * 2);
    max-height: calc(1.2em * 2);
    overflow: hidden;
    font-size: 22px;
    line-height: 1.2;
    align-self: flex-start;
}

.d-catalog-card .d-card__title,
.d-catalog-card .item-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
    min-height: calc(1.2em * 2);
    max-height: calc(1.2em * 2);
    color: #222222;
    -webkit-box-pack: start;
    justify-content: flex-start;
    align-items: flex-start;
}

.d-catalog-card .item-title span {
    font-weight: 700;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.d-catalog-card .d-card__compare {
    flex-shrink: 0;
}

.d-catalog-card .d-card__compare .like_icons,
.d-catalog-card .d-card__compare .compare_item_button {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.d-catalog-card .d-card__compare .like_icons {
    display: flex !important;
    width: auto;
    height: auto;
}

.d-catalog-card .d-card__compare .wish_item_button,
.d-catalog-card .d-card__compare .wrapp_one_click,
.d-catalog-card .d-card__compare .fast_view_button {
    display: none !important;
}

.d-catalog-card .d-card__compare .compare_item_button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 28px;
    height: 28px;
}

.d-catalog-card .d-card__compare .compare_item {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 !important;
    padding: 0;
    border: 1px solid #dedede;
    border-radius: 3px;
    background: #fff !important;
    box-sizing: border-box;
    opacity: 1 !important;
}

.d-catalog-card .d-card__compare .compare_item.to {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.d-catalog-card .d-card__compare .compare_item.in {
    display: none !important;
}

.d-catalog-card .d-card__compare .compare_item.to[style*="display: none"] {
    display: none !important;
}

.d-catalog-card .d-card__compare .compare_item.in[style*="display: block"],
.d-catalog-card .d-card__compare .compare_item.in[style*="display: inline"] {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.d-catalog-card .d-card__compare .compare_item:hover,
.d-catalog-card .d-card__compare .compare_item.added,
.d-catalog-card .d-card__compare .compare_item.in,
.d-catalog-card .d-card__compare .compare_item.colored_theme_hover_bg:hover,
.d-catalog-card .d-card__compare .compare_item.colored_theme_bg {
    border-color: #1965e3;
    background: #eef3ff !important;
}

.d-catalog-card .d-card__compare .compare_item .svg,
.d-catalog-card .d-card__compare .compare_item.added .svg,
.d-catalog-card .d-card__compare .compare_item:hover .svg {
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 13px !important;
    height: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    vertical-align: middle;
    background: none !important;
    background-color: transparent !important;
}

.d-catalog-card .d-card__compare .compare_item .svg svg {
    display: none !important;
}

.d-catalog-card .d-card__compare .compare_item .svg::before {
    content: '';
    display: block;
    width: 13px;
    height: 13px;
    background-color: #222222;
    -webkit-mask: url('../images/compare.svg') center / contain no-repeat;
    mask: url('../images/compare.svg') center / contain no-repeat;
}

.d-catalog-card .d-card__compare .compare_item:hover .svg::before,
.d-catalog-card .d-card__compare .compare_item.added .svg::before,
.d-catalog-card .d-card__compare .compare_item.in .svg::before {
    background-color: #1965e3;
}

/* Article + rating */
.d-catalog-card .d-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 7px;
    min-height: 14px;
    flex-shrink: 0;
}

.d-catalog-card .d-card__article,
.d-catalog-card .article_block,
.d-catalog-card .article_block > div,
.d-catalog-card .article_block .muted,
.catalog_block .d-catalog-card .article_block {
    display: block;
    font-weight: 500;
    font-size: 11px;
    line-height: 1.2;
    color: #878b99;
    margin: 0 !important;
    padding: 0 !important;
}

.catalog_block .d-catalog-card .sa_block {
    margin: 0 !important;
    padding: 0 !important;
}

.d-catalog-card .d-card__rating .rating,
.d-catalog-card .d-card__rating .blog-info__rating--top-info {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.d-catalog-card .votes_block.nstar {
    margin: 0;
}

.d-catalog-card .votes_block .item-rating,
.d-catalog-card .votes_block .item-rating .svg,
.d-catalog-card .votes_block .item-rating svg {
    width: 12px;
    height: 12px;
}

.d-catalog-card .d-card__rating-count,
.d-catalog-card .d-card__rating .font_sxs {
    font-weight: 500;
    font-size: 11px;
    line-height: 1;
    color: #878b99;
}

.d-catalog-card .sa_block .item-stock,
.d-catalog-card .preview_text {
    display: none !important;
}

/* Features from PRODUCT_ICONS */
.d-catalog-card .d-card__features {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin: 0 0 12px;
    min-height: 0;
    flex-shrink: 0;
}

.d-catalog-card .d-card__features:empty {
    display: flex;
    margin: 0;
    min-height: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
}

/*
 * Слайдер (Owl) без subgrid: слот под иконки только если они есть
 * хотя бы у одной карточки в этой карусели/блоке.
 * Сетка каталога выравнивает строку через subgrid — пустой блок там
 * остаётся в треке, но без собственной высоты.
 */
.catalog_block.owl-carousel:has(.d-card__features:not(:empty)) .d-card__features:empty,
.series-block_catalog-wrap .catalog_block:has(.d-card__features:not(:empty)) .d-card__features:empty {
    height: auto;
    min-height: calc(8px + 6px + 12px * 1.2 * 2);
    margin: 0 0 12px;
    overflow: visible;
}

.d-catalog-card .d-card__feature {
    flex: 1 1 calc(50% - 2.5px);
    max-width: calc(50% - 2.5px);
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 8px 10px 6px;
    border: 1px solid #dedede;
    border-radius: 3px;
    min-width: 0;
}

.d-catalog-card .d-card__feature-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.d-catalog-card .d-card__feature-icon img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.d-catalog-card .d-card__feature-text {
    font-weight: 500;
    font-size: 12px;
    line-height: 1.2;
    color: #222222;
    display: block;
    min-width: 0;
    min-height: calc(1.2em * 2);
}

/* Price */
.d-catalog-card .d-card__price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    margin: 0 0 7px;
    min-height: 20px;
    flex-shrink: 0;
}

.d-catalog-card .d-card__price-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    color: #222222;
    padding: 0;
}

.d-catalog-card .d-card__price-label--sale {
    display: none;
}

.d-catalog-card .d-card__price:has(.price.discount) .d-card__price-label--default {
    display: none;
}

.d-catalog-card .d-card__price:has(.price.discount) .d-card__price-label--sale {
    display: flex;
}

.d-catalog-card .d-card__price .cost.prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    margin: 0;
    padding: 0;
}

.d-catalog-card .d-card__price .price,
.d-catalog-card .d-card__price .price.font-bold,
.d-catalog-card .d-card__price .price.font_mxs,
.d-catalog-card .d-card__price .values_wrapper {
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    color: #1965e3;
}

.d-catalog-card .d-card__price .price.discount,
.d-catalog-card .d-card__price .price.discount .values_wrapper,
.d-catalog-card .d-card__price .price.discount .muted {
    display: block;
    margin-top: 3px;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.2;
    color: #878b99;
    text-decoration: line-through;
    text-decoration-color: #878b99;
}

.d-catalog-card .d-card__price .sale_block,
.d-catalog-card .d-card__price .price_measure,
.d-catalog-card .d-card__price .js-show-info-block,
.d-catalog-card .d-card__price .js-info-block,
.d-catalog-card .d-card__price .more-item-info,
.d-catalog-card .d-card__price .ce_cmp_visible,
.d-catalog-card .bonus-block-wrapper,
.d-catalog-card .d-card__price .with_matrix.price_matrix_wrapper[style*="display: none"],
.d-catalog-card .d-card__price .with_matrix.price_matrix_wrapper[style*="display:none"],
.d-catalog-card .d-card__price .price_matrix_wrapper[style*="display: none"],
.d-catalog-card .d-card__price .price_matrix_wrapper[style*="display:none"] {
    display: none !important;
}

.d-catalog-card .d-card__price .prices-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Services */
.d-catalog-card .d-card__services {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 8px 10px 6px;
    border: 1px solid #dedede;
    border-radius: 3px;
    position: relative;
    overflow: visible;
    min-height: 68px;
    flex-shrink: 0;
}

.d-catalog-card .d-card__service-row {
    display: flex;
    align-items: center;
}

.d-catalog-card .d-card__service-row + .d-card__service-row {
    margin-top: 7px;
}

.d-catalog-card .d-card__service-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    color: #1965e3;
}

.d-catalog-card .d-card__service-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.d-catalog-card .d-card__service-text {
    font-weight: 500;
    font-size: 12px;
    line-height: 1.2;
    color: #222222;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: 1.2em;
}

.d-catalog-card .d-card__service-star {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0 0 0 2px;
    padding: 0 3px;
    border: 0;
    background: none;
    box-shadow: none;
    color: #ff0000;
    font: inherit;
    font-weight: 500;
    line-height: 1;
    cursor: help;
    appearance: none;
    -webkit-appearance: none;
}

.d-catalog-card .d-card__body {
    margin-bottom: 12px;
    overflow: visible;
}

.d-catalog-card .d-card__services-note {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: calc(100% + 6px);
    z-index: 20;
    box-sizing: border-box;
    margin: 0;
    padding: 10px 12px;
    font-weight: 500;
    font-size: 11px;
    line-height: 1.3;
    text-align: left;
    color: #878b99;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 10px 25px 0 rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.d-catalog-card .d-card__services-note::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 18px;
    border: 6px solid transparent;
    border-top-color: #fff;
}

.d-catalog-card .d-card__services:has(.d-card__service-star:hover),
.d-catalog-card .d-card__services:has(.d-card__service-star:focus-visible),
.d-catalog-card .d-card__services:has(.d-card__service-star.is-open) {
    z-index: 6;
}

.d-catalog-card .d-card__service-star.is-open .d-card__services-note {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.d-card__service-star span {
    font-size: 20px;
}

@media (hover: hover) and (pointer: fine) {
    .d-catalog-card .d-card__service-star:hover .d-card__services-note,
    .d-catalog-card .d-card__service-star:focus-visible .d-card__services-note {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* Buttons */
.d-catalog-card .d-card__actions,
.d-catalog-card .footer_button.d-card__actions,
.d-catalog-card .footer_button .counter_wrapp {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 0;
    min-height: 38px;
    flex-shrink: 0;
}

.d-catalog-card .footer_button .offer_buy_block {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
}

.d-catalog-card .footer_button .offer_buy_block .counter_wrapp,
.d-catalog-card .footer_button .offer_buy_block .button_block,
.d-catalog-card .footer_button .offer_buy_block .btn {
    width: 100%;
}

.d-catalog-card .d-card__meta .sa_block {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.d-catalog-card .footer_button .counter_block,
.d-catalog-card .footer_button .counter_wrapp .counter_block,
.d-catalog-card .footer_button .ce_cmp_visible,
.d-catalog-card .n-btn .button_block {
    display: none !important;
}

.d-catalog-card .footer_button .counter_wrapp.woffers,
.d-catalog-card .footer_button .offer_buy_block .counter_wrapp.ce_cmp_hidden {
    display: flex;
}

.d-catalog-card .d-card__actions .button_block,
.d-catalog-card .footer_button .button_block,
.d-catalog-card .d-card__one-click,
.d-catalog-card .footer_button .wrapp-one-click {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    float: none;
    padding: 0;
    margin: 0;
}

.d-catalog-card .footer_button .button_block.wide {
    flex: 1 1 0;
    width: auto;
}

.d-catalog-card .footer_button .btn,
.d-catalog-card .d-card__one-click .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    height: 38px;
    padding: 13px 8px 11px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    text-align: center;
    box-sizing: border-box;
}

.d-catalog-card .footer_button .btn .svg,
.d-catalog-card .d-card__one-click .btn .svg {
    display: none;
}

.d-catalog-card .footer_button .btn.btn-default,
.d-catalog-card .footer_button .btn.to-cart,
.d-catalog-card .footer_button .btn.in-cart,
.d-catalog-card .footer_button .btn.read_more {
    background: #1965e3;
    border: 1px solid #1965e3;
    color: #ffffff;
}

.d-catalog-card .footer_button .btn.btn-default:hover,
.d-catalog-card .footer_button .btn.to-cart:hover,
.d-catalog-card .footer_button .btn.in-cart:hover,
.d-catalog-card .footer_button .btn.read_more:hover {
    background: #1454c4;
    border-color: #1454c4;
    color: #ffffff;
}

.d-catalog-card .d-card__one-click .btn,
.d-catalog-card .footer_button .btn.one_click,
.d-catalog-card .footer_button .wrapp-one-click .btn {
    background: #ffffff;
    border: 1px solid #1965e3;
    color: #1965e3;
}

.d-catalog-card .d-card__one-click .btn:hover,
.d-catalog-card .footer_button .btn.one_click:hover,
.d-catalog-card .footer_button .wrapp-one-click .btn:hover {
    background: #eef3ff;
    border-color: #1454c4;
    color: #1454c4;
}

.d-catalog-card .footer_button .btn.one_click {
    border-color: #1965e3 !important;
    padding-top: 13px !important;
    padding-bottom: 11px !important;
    height: 38px !important;
    min-height: 38px !important;
}

.d-catalog-card .item_info,
.catalog_block .d-catalog-card.catalog_item > div .item_info,
.catalog_block .d-catalog-card.catalog_item:not(.big) > div .item_info {
    padding-bottom: 0 !important;
    flex: none !important;
    justify-content: flex-start !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.d-catalog-card .item_info--bottom_block {
    margin: 0;
}

.d-catalog-card .icons-basket-wrapper {
    display: none;
}

/* Overrides against Aspro compact-catalog / ajax_load */
body .compact-catalog .ajax_load .item .d-catalog-card.catalog_item > .inner_wrap,
body .compact-catalog .ajax_load .item .d-catalog-card.catalog_item > div,
body .compact-catalog .ajax_load.block .d-catalog-card.catalog_item > .inner_wrap {
    padding: 39px 12px 20px !important;
    border-radius: 5px;
    position: relative;
    height: 100% !important;
}

body .compact-catalog .ajax_load .item .d-catalog-card.has-stickers > .inner_wrap,
body .compact-catalog .ajax_load .item .d-catalog-card.has-stickers.catalog_item > div {
    padding-top: 39px !important;
}

body .compact-catalog .d-catalog-card .d-card__stickers,
body .compact-catalog .item .d-catalog-card .stickers,
body .compact-catalog .d-catalog-card .stickers,
.compact-catalog .item .d-catalog-card .stickers {
    display: flex !important;
    position: static !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0 !important;
    width: 100%;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body .compact-catalog .d-catalog-card .d-card__stickers {
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    top: 10px !important;
    width: auto !important;
    margin: 0 !important;
    min-height: 23px !important;
    height: 23px !important;
}

body .compact-catalog .d-catalog-card .d-card__stickers .stickers,
body .compact-catalog .item .d-catalog-card .d-card__stickers .stickers {
    margin: 0 !important;
}

body .compact-catalog .d-catalog-card .stickers [class*="sticker_"],
body .compact-catalog .d-catalog-card .stickers.custom-font [class*="sticker_"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 23px;
    font-weight: 700 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    text-transform: none !important;
    color: #ffffff !important;
    border-radius: 3px !important;
    padding: 0 15px !important;
    margin: 0 !important;
}

body .compact-catalog .d-catalog-card .stickers .sticker_series,
body .compact-catalog .d-catalog-card .stickers.custom-font .sticker_series {
    background: var(--sticker-series-bg, #1454c4) !important;
    color: var(--sticker-series-text, #fff) !important;
}

body .compact-catalog .d-catalog-card .sa_block .article_block,
body .compact-catalog .d-catalog-card .article_block,
body .compact-catalog .d-catalog-card .d-card__article,
.catalog_block .d-catalog-card .article_block {
    display: block !important;
    font-weight: 500 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    color: #878b99 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.catalog_block .d-catalog-card .sa_block,
.d-catalog-card .d-card__meta .sa_block {
    margin: 0 !important;
    padding: 0 !important;
}

body .compact-catalog .d-catalog-card .d-card__rating,
body .compact-catalog .d-catalog-card .d-card__rating .rating,
body .compact-catalog .d-catalog-card .sa_block .rating {
    display: flex !important;
}

body .compact-catalog .d-catalog-card .d-card__variants.ce_cmp_hidden,
body .compact-catalog .d-catalog-card .ce_cmp_hidden.d-card__variants {
    display: block !important;
}

body .compact-catalog .d-catalog-card .d-card__price,
body.compact-catalog .d-catalog-card .d-card__price,
.mobile .d-catalog-card .d-card__price {
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
}

body .compact-catalog .d-catalog-card .d-card__price .cost.prices,
body .compact-catalog .d-catalog-card .d-card__price .ce_cmp_hidden,
body .compact-catalog .d-catalog-card .d-card__price .ce_cmp_hidden .js_price_wrapper,
body .compact-catalog .d-catalog-card .d-card__price .price_matrix_wrapper:not([style*="display: none"]):not([style*="display:none"]),
.mobile .d-catalog-card .d-card__price .cost.prices,
.mobile .d-catalog-card .d-card__price .ce_cmp_hidden,
.mobile .d-catalog-card .d-card__price .ce_cmp_hidden .js_price_wrapper {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
}

body .compact-catalog .d-catalog-card .d-card__price .price_matrix_wrapper[style*="display: none"],
body .compact-catalog .d-catalog-card .d-card__price .price_matrix_wrapper[style*="display:none"],
body .compact-catalog .d-catalog-card .d-card__price .with_matrix[style*="display: none"],
body .compact-catalog .d-catalog-card .d-card__price .with_matrix[style*="display:none"],
.mobile .d-catalog-card .d-card__price .price_matrix_wrapper[style*="display: none"],
.mobile .d-catalog-card .d-card__price .price_matrix_wrapper[style*="display:none"],
.mobile .d-catalog-card .d-card__price .with_matrix[style*="display: none"],
.mobile .d-catalog-card .d-card__price .with_matrix[style*="display:none"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    border: 0 !important;
}

body .compact-catalog .d-catalog-card .d-card__price .ce_cmp_visible,
.mobile .d-catalog-card .d-card__price .ce_cmp_visible {
    display: none !important;
}

.d-catalog-card .d-card__title,
.d-catalog-card .item-title a,
body .compact-catalog .ajax_load .item .d-catalog-card .item-title a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    font-weight: 700 !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
    min-height: calc(1.2em * 2);
    max-height: calc(1.2em * 2);
    color: #222222 !important;
    -webkit-box-pack: start;
    justify-content: flex-start;
    align-items: flex-start;
}

.d-catalog-card .item-title a span,
.d-catalog-card .item-title span,
body .compact-catalog .ajax_load .item .d-catalog-card .item-title a > span {
    display: inline !important;
    font-weight: 700 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: #222222 !important;
    -webkit-line-clamp: unset;
}

.d-catalog-card .d-card__price .price,
.d-catalog-card .d-card__price .price.font-bold,
.d-catalog-card .d-card__price .price.font_mxs,
.d-catalog-card .d-card__price .values_wrapper,
body .compact-catalog .ajax_load .d-catalog-card .cost.prices .price {
    font-weight: 700 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: #1965e3 !important;
}

.d-catalog-card .d-card__price .price.discount,
.d-catalog-card .d-card__price .price.discount .values_wrapper,
body .compact-catalog .ajax_load .d-catalog-card .cost.prices .price.discount {
    display: block !important;
    margin-top: 3px !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    color: #878b99 !important;
    text-decoration: line-through;
    text-decoration-color: #878b99;
}

body .compact-catalog .ajax_load.block .d-catalog-card.catalog_item .footer_button,
body .compact-catalog .ajax_load.block .d-catalog-card .footer_button,
html:not(.mobile) .catalog_block .item_block .d-catalog-card.catalog_item:not(.big) .footer_button,
.ajax_load .top_wrapper .d-catalog-card.catalog_item .footer_button {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 1;
}

body .compact-catalog .ajax_load.block .d-catalog-card .footer_button .counter_wrapp:not(.ce_cmp_visible),
.d-catalog-card .footer_button .counter_wrapp:not(.ce_cmp_visible),
.d-catalog-card .footer_button .wrapp-one-click,
.d-catalog-card .d-card__one-click {
    display: flex !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
}

.d-catalog-card .footer_button .ce_cmp_visible {
    display: none !important;
}

.d-catalog-card .footer_button .button_block {
    display: flex !important;
    flex-wrap: wrap !important;
    align-content: flex-start !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    float: none !important;
}

.d-catalog-card .footer_button .button_block > .btn {
    flex: 1 1 100%;
}

.d-catalog-card .footer_button .more_text {
    display: block !important;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 8px 0 0;
    padding: 0;
    font-weight: 500;
    font-size: 11px;
    line-height: 1.3;
    color: #878b99;
    text-align: left;
    text-transform: none;
    white-space: normal;
}

.d-catalog-card .footer_button .button_block.wide {
    flex: 1 1 0 !important;
    width: auto !important;
}

.d-catalog-card .footer_button .btn.in-cart[style*="display: none"],
.d-catalog-card .footer_button .btn.to-cart[style*="display: none"],
.d-catalog-card .footer_button .btn.in-cart[style*="display:none"],
.d-catalog-card .footer_button .btn.to-cart[style*="display:none"],
body .ajax_load.block .d-catalog-card .footer_button .btn.to-cart[style*="display: none"],
body .ajax_load.block .d-catalog-card .footer_button .btn.in-cart[style*="display: none"],
body .ajax_load.block .d-catalog-card .footer_button .btn.to-cart[style*="display:none"],
body .ajax_load.block .d-catalog-card .footer_button .btn.in-cart[style*="display:none"],
body .compact-catalog .ajax_load.block .d-catalog-card .footer_button .btn.to-cart[style*="display: none"],
body .compact-catalog .ajax_load.block .d-catalog-card .footer_button .btn.in-cart[style*="display: none"],
body .compact-catalog .ajax_load.block .d-catalog-card .footer_button .btn.to-cart[style*="display:none"],
body .compact-catalog .ajax_load.block .d-catalog-card .footer_button .btn.in-cart[style*="display:none"] {
    display: none !important;
}

.d-catalog-card .footer_button .button_block:has(.btn.in-cart:not([style*="display: none"]):not([style*="display:none"])) .btn.to-cart,
body .ajax_load.block .d-catalog-card .footer_button .button_block:has(.btn.in-cart:not([style*="display: none"]):not([style*="display:none"])) .btn.to-cart,
body .compact-catalog .ajax_load.block .d-catalog-card .footer_button .button_block:has(.btn.in-cart:not([style*="display: none"]):not([style*="display:none"])) .btn.to-cart {
    display: none !important;
}

@media (min-width: 769px) {
    body .ajax_load.block .d-catalog-card .footer_button .btn:not(.in-cart):not([style*="display: none"]):not([style*="display:none"]),
    body .compact-catalog .ajax_load.block .d-catalog-card .footer_button .btn:not(.in-cart):not([style*="display: none"]):not([style*="display:none"]),
    .d-catalog-card .footer_button .btn:not(.in-cart):not([style*="display: none"]):not([style*="display:none"]),
    .d-catalog-card .footer_button .btn.in-cart:not([style*="display: none"]):not([style*="display:none"]),
    .d-catalog-card .d-card__one-click .btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 13px 8px 11px !important;
        border-radius: 3px !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        line-height: 1 !important;
        text-transform: uppercase;
        box-sizing: border-box;
        margin: 0 !important;
    }
}

.d-catalog-card .footer_button .btn.btn-default,
.d-catalog-card .footer_button .btn.to-cart,
.d-catalog-card .footer_button .btn.in-cart,
.d-catalog-card .footer_button .btn.read_more {
    background: #1965e3 !important;
    border: 1px solid #1965e3 !important;
    color: #ffffff !important;
}

.d-catalog-card .footer_button .btn.btn-default:hover,
.d-catalog-card .footer_button .btn.to-cart:hover,
.d-catalog-card .footer_button .btn.in-cart:hover,
.d-catalog-card .footer_button .btn.read_more:hover {
    background: #1454c4 !important;
    border-color: #1454c4 !important;
    color: #ffffff !important;
}

.d-catalog-card .d-card__one-click .btn,
.d-catalog-card .footer_button .btn.one_click,
.d-catalog-card .footer_button .wrapp-one-click .btn {
    background: #ffffff !important;
    border: 1px solid #1965e3 !important;
    color: #1965e3 !important;
}

.d-catalog-card .d-card__one-click .btn:hover,
.d-catalog-card .footer_button .btn.one_click:hover,
.d-catalog-card .footer_button .wrapp-one-click .btn:hover {
    background: #eef3ff !important;
    border-color: #1454c4 !important;
    color: #1454c4 !important;
}

.d-catalog-card .inner_wrap {
    display: flex;
    flex-direction: column;
    height: 100% !important;
    position: relative;
}

.d-catalog-card .inner_content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
}

.d-catalog-card .d-card__body,
.catalog_block .d-catalog-card.catalog_item > div .d-card__body.item_info {
    flex: none !important;
    justify-content: flex-start !important;
    padding-bottom: 0 !important;
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}


.catalog_block .d-catalog-card .counter_wrapp > div,
.catalog_block .d-catalog-card .counter_wrapp > .button_block,
.d-catalog-card .footer_button .counter_wrapp > div,
.d-catalog-card .footer_button .counter_wrapp > .button_block {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.d-catalog-card .footer_button .counter_wrapp::before,
.d-catalog-card .footer_button .counter_wrapp::after,
.d-catalog-card .footer_button .clearfix::before,
.d-catalog-card .footer_button .clearfix::after {
    display: none !important;
    content: none !important;
}

.d-catalog-card .footer_button .offer_buy_block,
.d-catalog-card .footer_button .counter_wrapp:not(.ce_cmp_visible),
.d-catalog-card .footer_button .wrapp-one-click,
.d-catalog-card .d-card__one-click {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    order: 0 !important;
}

.d-catalog-card .footer_button .wrapp-one-click,
.d-catalog-card .d-card__one-click {
    order: 1 !important;
    align-self: flex-start;
    align-items: stretch;
}

.d-catalog-card .footer_button .wrapp-one-click .btn,
.d-catalog-card .d-card__one-click .btn {
    flex: 0 0 auto;
    height: auto !important;
    align-self: flex-start;
}

.d-catalog-card .footer_button:has(.to-order) .wrapp-one-click,
.d-catalog-card .footer_button:has(.to-order) .d-card__one-click,
html.mobile .d-catalog-card .footer_button:has(.to-order) .wrapp-one-click,
html.mobile .d-catalog-card .footer_button:has(.to-order) .d-card__one-click,
.mobile .d-catalog-card .footer_button:has(.to-order) .wrapp-one-click,
.mobile .d-catalog-card .footer_button:has(.to-order) .d-card__one-click {
    display: none !important;
}

.d-catalog-card .d-card__compare .like_icons,
.d-catalog-card .d-card__compare .compare_item_button,
body .compact-catalog .d-catalog-card .d-card__compare .like_icons,
.catalog_item_wrapp.d-catalog-card .d-card__compare .like_icons {
    opacity: 1 !important;
    visibility: visible !important;
}

.d-catalog-card .d-card__compare .compare_item.to:not([style*="display: none"]),
.d-catalog-card .d-card__compare .compare_item.in[style*="display: block"],
.d-catalog-card .d-card__compare .compare_item.in[style*="display: inline"] {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Equal-height slots in a row: empty placeholder for a missing block, not stretched gaps.
   Parent gap would also apply between subgrid tracks — keep column-gap only, spacer row for card rows. */
@media (min-width: 768px) {
    .catalog_block_template .d-catalog-grid.catalog_block.items.row {
        column-gap: 12px;
        row-gap: 0;
        grid-auto-rows: min-content;
    }

    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block {
        display: grid;
        grid-template-rows: subgrid;
        grid-template-columns: minmax(0, 1fr);
        grid-row: span 10;
        align-self: stretch;
        height: auto;
        row-gap: 0;
        min-width: 0;
    }

    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block > .d-catalog-card {
        grid-row: span 9;
    }

    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block::after {
        content: "";
        display: block;
        height: 12px;
        width: 100%;
        pointer-events: none;
    }

    .catalog_block_template .d-catalog-card.catalog_item,
    .catalog_block_template .d-catalog-card.catalog_item_wrapp,
    .d-catalog-card .inner_wrap,
    .catalog_block_template .d-catalog-card.catalog_item > .inner_wrap,
    .ajax_load .top_wrapper .catalog_block .d-catalog-card.catalog_item > .inner_wrap,
    .ajax_load .top_wrapper .catalog_block .d-catalog-card.catalog_item > div,
    body .compact-catalog .ajax_load .item .d-catalog-card.catalog_item > .inner_wrap,
    body .compact-catalog .ajax_load .item .d-catalog-card.catalog_item > div,
    body .compact-catalog .ajax_load.block .d-catalog-card.catalog_item > .inner_wrap {
        display: grid !important;
        grid-template-rows: subgrid;
        grid-template-columns: minmax(0, 1fr);
        grid-row: span 9;
        height: auto !important;
        align-content: start;
        row-gap: 0;
    }

    .d-catalog-card .inner_content {
        display: grid !important;
        grid-template-rows: subgrid;
        grid-template-columns: minmax(0, 1fr);
        grid-row: span 8;
        flex: none;
        min-height: 0;
        width: 100%;
        row-gap: 0;
    }

    .d-catalog-card .d-card__body,
    .catalog_block .d-catalog-card.catalog_item > div .d-card__body.item_info {
        display: grid !important;
        grid-template-rows: subgrid;
        grid-template-columns: minmax(0, 1fr);
        grid-row: span 6;
        flex: none !important;
        margin-bottom: 12px;
        align-content: start;
        justify-content: stretch !important;
        justify-items: stretch;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        row-gap: 0;
    }

    .d-catalog-card .d-card__body > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        justify-self: stretch;
    }

    .d-catalog-card .d-card__variants,
    .d-catalog-card .d-card__variants.sku_props,
    .d-catalog-card .d-card__title-row,
    .d-catalog-card .d-card__meta,
    .d-catalog-card .d-card__features,
    .d-catalog-card .d-card__price,
    .d-catalog-card .d-card__services,
    .d-catalog-card .d-card__actions,
    .d-catalog-card .footer_button.d-card__actions {
        align-self: start;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .d-catalog-card .d-card__variants--silent {
        height: auto;
        min-height: 0;
        margin: 0 0 12px;
        overflow: hidden;
    }

    .d-catalog-card .d-card__variants--silent > * {
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        visibility: hidden;
    }

    .d-catalog-card .d-card__features:empty {
        display: flex;
        margin: 0;
        min-height: 0;
        height: 0;
        overflow: hidden;
    }

    body .compact-catalog .ajax_load.block .d-catalog-card.catalog_item .footer_button,
    body .compact-catalog .ajax_load.block .d-catalog-card .footer_button,
    html:not(.mobile) .catalog_block .item_block .d-catalog-card.catalog_item:not(.big) .footer_button,
    .ajax_load .top_wrapper .d-catalog-card.catalog_item .footer_button {
        margin: 0 !important;
    }
}

@media (max-width: 767px) {
    .d-catalog-card .d-card__variants--silent {
        margin: 0;
        height: 0;
        min-height: 0;
        overflow: hidden;
    }

    .d-catalog-card .d-card__features:empty {
        display: flex;
        margin: 0;
        min-height: 0;
        height: 0;
        overflow: hidden;
    }

    .catalog_block.owl-carousel:has(.d-card__features:not(:empty)) .d-card__features:empty,
    .series-block_catalog-wrap .catalog_block:has(.d-card__features:not(:empty)) .d-card__features:empty {
        height: auto;
        min-height: calc(8px + 6px + 10px * 1.2 * 2);
        margin: 0 0 12px;
        overflow: visible;
    }

    .d-catalog-card .d-card__body,
    .catalog_block .d-catalog-card.catalog_item > div .d-card__body.item_info {
        flex: none !important;
    }
}

@media (max-width: 768px) {
    .catalog_block_template .d-catalog-card.catalog_item > .inner_wrap,
    .ajax_load .top_wrapper .catalog_block .d-catalog-card.catalog_item > .inner_wrap,
    .ajax_load .top_wrapper .catalog_block .d-catalog-card.catalog_item > div,
    .catalog_block_template .d-catalog-card.has-stickers > .inner_wrap,
    body .compact-catalog .ajax_load .item .d-catalog-card.catalog_item > .inner_wrap,
    body .compact-catalog .ajax_load .item .d-catalog-card.catalog_item > div,
    body .compact-catalog .ajax_load.block .d-catalog-card.catalog_item > .inner_wrap,
    body .compact-catalog .ajax_load .item .d-catalog-card.has-stickers > .inner_wrap,
    body .compact-catalog .ajax_load .item .d-catalog-card.has-stickers.catalog_item > div {
        padding-top: 36px !important;
    }

    .d-catalog-card .d-card__stickers,
    body .compact-catalog .d-catalog-card .d-card__stickers {
        min-height: 20px !important;
        height: 20px !important;
        top: 10px;
        left: 12px;
        right: 12px;
    }

    .d-catalog-card .stickers [class*="sticker_"],
    .d-catalog-card .stickers.custom-font [class*="sticker_"],
    body .compact-catalog .d-catalog-card .stickers [class*="sticker_"],
    body .compact-catalog .d-catalog-card .stickers.custom-font [class*="sticker_"] {
        font-size: 8px !important;
        height: 20px;
    }

    .d-catalog-card .d-card__variants-title {
        font-size: 13px;
    }

    .d-catalog-card .d-card__title-row {
        min-height: calc(20px * 1.2 * 2);
    }

    .d-catalog-card .d-card__title-row .item-title,
    .d-catalog-card .d-card__title,
    .d-catalog-card .item-title a,
    body .compact-catalog .ajax_load .item .d-catalog-card .item-title a {
        height: calc(1.2em * 2);
        min-height: calc(1.2em * 2);
        max-height: calc(1.2em * 2);
        font-size: 20px !important;
    }

    .d-catalog-card .d-card__article,
    .d-catalog-card .article_block,
    .d-catalog-card .article_block > div,
    .d-catalog-card .article_block .muted,
    .catalog_block .d-catalog-card .article_block,
    body .compact-catalog .d-catalog-card .sa_block .article_block,
    body .compact-catalog .d-catalog-card .article_block,
    body .compact-catalog .d-catalog-card .d-card__article {
        font-size: 8px !important;
    }

    .d-catalog-card .votes_block .item-rating,
    .d-catalog-card .votes_block .item-rating .svg,
    .d-catalog-card .votes_block .item-rating svg {
        width: 8.8px;
        height: 8.8px;
    }

    .d-catalog-card .d-card__rating-count,
    .d-catalog-card .d-card__rating .font_sxs {
        font-size: 8px;
    }

    .catalog_block.owl-carousel:has(.d-card__features:not(:empty)) .d-card__features:empty,
    .series-block_catalog-wrap .catalog_block:has(.d-card__features:not(:empty)) .d-card__features:empty {
        min-height: calc(8px + 6px + 10px * 1.2 * 2);
    }

    .d-catalog-card .d-card__feature-text {
        font-size: 10px;
        min-height: calc(1.2em * 2);
    }

    .d-catalog-card .d-card__price {
        min-height: 16px;
    }

    .d-catalog-card .d-card__price-label {
        font-size: 13px;
    }

    .d-catalog-card .d-card__price .price,
    .d-catalog-card .d-card__price .price.font-bold,
    .d-catalog-card .d-card__price .price.font_mxs,
    .d-catalog-card .d-card__price .values_wrapper,
    body .compact-catalog .ajax_load .d-catalog-card .cost.prices .price {
        font-size: 16px !important;
    }

    .d-catalog-card .d-card__price .price.discount,
    .d-catalog-card .d-card__price .price.discount .values_wrapper,
    .d-catalog-card .d-card__price .price.discount .muted,
    body .compact-catalog .ajax_load .d-catalog-card .cost.prices .price.discount {
        font-size: 11px !important;
    }

    .d-catalog-card .d-card__service-text {
        font-size: 10px;
        min-height: 1.2em;
    }

    .d-catalog-card .d-card__services {
        min-height: 62px;
    }

    .d-catalog-card .d-card__services-note {
        font-size: 11px;
    }

    body .compact-catalog .ajax_load.block .d-catalog-card.catalog_item .footer_button,
    body .compact-catalog .ajax_load.block .d-catalog-card .footer_button,
    .mobile .catalog_block .d-catalog-card.catalog_item .footer_button,
    .ajax_load .top_wrapper .d-catalog-card.catalog_item .footer_button {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 7px !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body .compact-catalog .d-catalog-card .footer_button .wrapp-one-click,
    body .compact-catalog .d-catalog-card .d-card__one-click,
    .mobile .d-catalog-card .footer_button .wrapp-one-click,
    .mobile .d-catalog-card .d-card__one-click {
        display: flex !important;
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .d-catalog-card .footer_button .btn,
    .d-catalog-card .footer_button .btn.to-cart,
    .d-catalog-card .footer_button .btn.in-cart,
    .d-catalog-card .footer_button .btn.to-order,
    .d-catalog-card .footer_button .btn.btn-default,
    .d-catalog-card .d-card__one-click .btn,
    .d-catalog-card .footer_button .btn.one_click,
    body .ajax_load.block .d-catalog-card .footer_button .btn,
    body .ajax_load.block .d-catalog-card .footer_button .btn:not(.in-cart),
    body .ajax_load.block .d-catalog-card .footer_button .btn:not(.in-cart):not([style*="display: none"]):not([style*="display:none"]),
    body .compact-catalog .ajax_load.block .d-catalog-card .footer_button .btn,
    body .compact-catalog .ajax_load.block .d-catalog-card .footer_button .btn:not(.in-cart),
    body .compact-catalog .ajax_load.block .d-catalog-card .footer_button .btn:not(.in-cart):not([style*="display: none"]):not([style*="display:none"]),
    .d-catalog-card .footer_button .btn:not(.in-cart):not([style*="display: none"]):not([style*="display:none"]),
    .d-catalog-card .footer_button .btn.in-cart:not([style*="display: none"]):not([style*="display:none"]),
    .mobile .d-catalog-card .footer_button .btn,
    .mobile .d-catalog-card .btn.one_click,
    .mobile .d-catalog-card .d-card__one-click .btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 13px 8px 11px !important;
        border-radius: 3px !important;
        border-bottom-width: 1px !important;
        font-weight: 600 !important;
        font-size: 12px !important;
        line-height: 1.15 !important;
        text-transform: uppercase !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        white-space: normal !important;
        overflow: visible !important;
        overflow-wrap: anywhere;
        text-align: center;
    }

    .mobile .d-catalog-card .footer_button .offer_buy_block,
    .mobile .d-catalog-card.catalog_item .footer_button .offer_buy_block {
        order: 0 !important;
        margin: 0 !important;
    }

    .d-catalog-card .footer_button .btn.btn-default,
    .d-catalog-card .footer_button .btn.to-cart,
    .d-catalog-card .footer_button .btn.in-cart,
    .d-catalog-card .footer_button .btn.read_more,
    body .compact-catalog .d-catalog-card .footer_button .btn.to-cart,
    body .compact-catalog .d-catalog-card .footer_button .btn.in-cart {
        background: #1965e3 !important;
        border: 1px solid #1965e3 !important;
        color: #ffffff !important;
    }

    .d-catalog-card .d-card__one-click .btn,
    .d-catalog-card .footer_button .btn.one_click,
    .d-catalog-card .footer_button .wrapp-one-click .btn,
    body .compact-catalog .d-catalog-card .btn.one_click,
    .mobile .d-catalog-card .btn.one_click {
        background: #ffffff !important;
        border: 1px solid #1965e3 !important;
        color: #1965e3 !important;
    }

    .d-catalog-card .footer_button:has(.to-order) .wrapp-one-click,
    .d-catalog-card .footer_button:has(.to-order) .d-card__one-click,
    .mobile .d-catalog-card .footer_button:has(.to-order) .wrapp-one-click,
    .mobile .d-catalog-card .footer_button:has(.to-order) .d-card__one-click,
    html.mobile .d-catalog-card .footer_button:has(.to-order) .wrapp-one-click,
    html.mobile .d-catalog-card .footer_button:has(.to-order) .d-card__one-click {
        display: none !important;
    }
}

/* Show more + pagination
   25px от карточек всегда идёт с bottom_nav, а не с кнопки —
   иначе на последней странице (без «Показать ещё») пагинация липнет. */
.js-load-wrapper .bottom_nav.block-type,
.ajax_load.block .bottom_nav.block-type,
.catalog_page .bottom_nav.block-type {
    padding-top: 0;
    margin-top: 25px !important;
    top: auto;
    float: none;
}

.js-load-wrapper .bottom_nav .ajax_load_btn,
.ajax_load.block .bottom_nav .ajax_load_btn,
.catalog_page .bottom_nav .ajax_load_btn,
.catalog_block + .bottom_nav .ajax_load_btn,
.bottom_nav.animate-load-state.has-nav .ajax_load_btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 25px !important;
    padding: 16px 10px 14px !important;
    top: auto !important;
    background: #ffffff !important;
    border: 1px solid #c4c4c4 !important;
    border-radius: 3px !important;
    text-align: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
    box-shadow: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.js-load-wrapper .bottom_nav .ajax_load_btn .more_text_ajax,
.ajax_load.block .bottom_nav .ajax_load_btn .more_text_ajax,
.catalog_page .bottom_nav .ajax_load_btn .more_text_ajax {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    color: #222222 !important;
    text-align: center;
    text-transform: uppercase;
    background: transparent !important;
    border: none !important;
}

.js-load-wrapper .bottom_nav .ajax_load_btn:hover,
.ajax_load.block .bottom_nav .ajax_load_btn:hover,
.catalog_page .bottom_nav .ajax_load_btn:hover,
.js-load-wrapper .bottom_nav .ajax_load_btn.colored_theme_hover_bg:hover,
.ajax_load.block .bottom_nav .ajax_load_btn.colored_theme_hover_bg:hover {
    background: #eef3ff !important;
    border-color: #1965e3 !important;
}

.js-load-wrapper .bottom_nav .ajax_load_btn:hover .more_text_ajax,
.ajax_load.block .bottom_nav .ajax_load_btn:hover .more_text_ajax,
.catalog_page .bottom_nav .ajax_load_btn:hover .more_text_ajax {
    color: #1965e3 !important;
}

/* .loadings прячет текст; штатный preloader.gif отсутствует — показываем double_ring. */
.js-load-wrapper .bottom_nav .ajax_load_btn.loadings,
.ajax_load.block .bottom_nav .ajax_load_btn.loadings,
.catalog_page .bottom_nav .ajax_load_btn.loadings,
.catalog_block + .bottom_nav .ajax_load_btn.loadings,
.bottom_nav.animate-load-state.has-nav .ajax_load_btn.loadings,
.js-load-wrapper .bottom_nav .ajax_load_btn.loadings:hover,
.ajax_load.block .bottom_nav .ajax_load_btn.loadings:hover,
.catalog_page .bottom_nav .ajax_load_btn.loadings:hover {
    background: #ffffff !important;
    border-color: #c4c4c4 !important;
    cursor: default !important;
    pointer-events: none;
}

.js-load-wrapper .bottom_nav .ajax_load_btn.loadings::after,
.ajax_load.block .bottom_nav .ajax_load_btn.loadings::after,
.catalog_page .bottom_nav .ajax_load_btn.loadings::after,
.catalog_block + .bottom_nav .ajax_load_btn.loadings::after,
.bottom_nav.animate-load-state.has-nav .ajax_load_btn.loadings::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    background-color: #1965e3;
    -webkit-mask: url("/bitrix/templates/aspro_max/images/loaders/double_ring.svg") center / contain no-repeat;
    mask: url("/bitrix/templates/aspro_max/images/loaders/double_ring.svg") center / contain no-repeat;
    animation: spinner 0.8s linear infinite;
}

.js-load-wrapper .module-pagination,
.ajax_load.block .module-pagination,
.catalog_page .module-pagination,
.d-catalog-pagination {
    margin: 0 0 25px !important;
    text-align: center;
    font-size: 0;
    position: relative;
}

.d-catalog-pagination .nums,
.js-load-wrapper .module-pagination .nums,
.ajax_load.block .module-pagination .nums {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    width: auto;
    min-height: 24px;
    gap: 10px;
}

.d-catalog-pagination .flex-direction-nav,
.js-load-wrapper .module-pagination .flex-direction-nav {
    display: contents;
    margin: 0;
    padding: 0;
    list-style: none;
}

.d-catalog-pagination .flex-direction-nav > li,
.js-load-wrapper .module-pagination .flex-direction-nav > li,
.ajax_load.block .module-pagination .flex-direction-nav > li {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.d-catalog-pagination__arrow {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    flex-shrink: 0;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none;
    z-index: 1;
}

.d-catalog-pagination__arrow--prev,
.d-catalog-pagination .flex-prev {
    left: auto !important;
    right: auto !important;
}

.d-catalog-pagination__arrow--next,
.d-catalog-pagination .flex-next {
    right: auto !important;
    left: auto !important;
}

.d-catalog-pagination__arrow svg {
    display: block;
    width: 24px;
    height: 24px;
}

.d-catalog-pagination .flex-direction-nav > li.disabled > a,
.d-catalog-pagination .flex-direction-nav > li.disabled > span,
.d-catalog-pagination__arrow.is-disabled {
    pointer-events: none;
    cursor: default;
    opacity: 1;
}

.d-catalog-pagination__pages > a.dark_link,
.d-catalog-pagination__pages > span.cur,
.d-catalog-pagination .nums a.dark_link,
.d-catalog-pagination .nums span.cur,
.js-load-wrapper .module-pagination .nums a.dark_link,
.js-load-wrapper .module-pagination .nums span.cur,
.ajax_load.block .module-pagination .nums a.dark_link,
.ajax_load.block .module-pagination .nums span.cur {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 11px 14px 9px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    color: #1965e3 !important;
    background: #ffffff !important;
    border: 1px solid #1965e3 !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.js-load-wrapper .module-pagination .nums a.dark_link:hover,
.ajax_load.block .module-pagination .nums a.dark_link:hover,
.d-catalog-pagination .nums a.dark_link:hover {
    background: #eef3ff !important;
    border-color: #1965e3 !important;
    color: #1965e3 !important;
}

.js-load-wrapper .module-pagination .nums span.cur,
.ajax_load.block .module-pagination .nums span.cur,
.d-catalog-pagination .nums span.cur {
    color: #ffffff !important;
    background: #1965e3 !important;
    border-color: #1965e3 !important;
}

.js-load-wrapper .module-pagination .point_sep,
.ajax_load.block .module-pagination .point_sep,
.d-catalog-pagination .point_sep,
.d-catalog-pagination__pages > span.point_sep {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 11px 2px 9px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    letter-spacing: 0.08em;
    color: #1965e3 !important;
    cursor: default;
    pointer-events: none;
    user-select: none;
}

.d-catalog-pagination__pages {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .d-catalog-pagination .nums,
    .js-load-wrapper .module-pagination .nums,
    .ajax_load.block .module-pagination .nums {
        display: flex;
        width: 100%;
    }

    .d-catalog-pagination__arrow {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%);
    }

    .d-catalog-pagination__arrow--prev,
    .d-catalog-pagination .flex-prev {
        left: 15px !important;
        right: auto !important;
    }

    .d-catalog-pagination__arrow--next,
    .d-catalog-pagination .flex-next {
        right: 15px !important;
        left: auto !important;
    }
}

/* Форма «Заказать замер двери» после пагинации */
.d-catalog-page-form {
    margin-top: 30px;
    padding: 35px 0 35px 0;
    box-sizing: border-box;
    background: transparent;
    min-width: 0;
}

.d-catalog-page-form .page-form {
    box-sizing: border-box;
    min-width: 0;
    border: 1px solid #c4c4c4;
    border-radius: 3px;
}

.d-catalog-page-form .page-form_title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    color: #222;
}

.d-catalog-page-form .page-form_content {
    display: block;
}

.d-catalog-page-form .page-form_form {
    box-sizing: border-box;
    min-width: 0;
}

.d-catalog-page-form .page-form_icons {
    display: none;
}

.d-catalog-page-form .page-form_form .maxwidth-theme {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.d-catalog-page-form .page-form_form .maxwidth-theme,
.d-catalog-page-form .page-form_form .form.inline,
.d-catalog-page-form .form.inline.inline_custom {
    background: none !important;
    background-color: transparent !important;
    padding: 0 !important;
}

.d-catalog-page-form .form.inline_custom .form_body div.form-control,
.d-catalog-page-form .form.inline_custom .form_body div.form_control {
    background: none !important;
    background-color: transparent !important;
}

.d-catalog-page-form .form.inline_custom .form_control label,
.d-catalog-page-form .form.inline_custom .form_control label > span,
.d-catalog-page-form .form.inline_custom .form-control label,
.d-catalog-page-form .form.inline_custom .form-control label > span,
.d-catalog-page-form .form.inline_custom label[for="licenses_inline"] {
    color: #222 !important;
    font-weight: 600 !important;
}

.d-catalog-page-form .form.inline_custom .form_control input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
.d-catalog-page-form .form.inline_custom .form_control textarea,
.d-catalog-page-form .form.inline_custom .form_control select,
.d-catalog-page-form .form.inline_custom .form-control input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
.d-catalog-page-form .form.inline_custom .form-control textarea,
.d-catalog-page-form .form.inline_custom .form-control select {
    background-color: #fff !important;
}

.d-catalog-page-form .page-form_form .form_footer {
    margin: 0;
    width: 100%;
}

.d-catalog-page-form .page-form_form .form_footer button[type="reset"] {
    display: none !important;
}

.d-catalog-page-form .page-form_measure-note {
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: #222222;
}

.d-catalog-page-form .page-form_form .form_footer .page-form_submit,
.d-catalog-page-form .page-form_form .form_footer button[type="submit"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 18px;
    min-height: 47px;
    line-height: 1.2;
    background-color: #1965E3;
    border-color: #1965E3;
}

@media (min-width: 769px) {
    .d-catalog-page-form .page-form {
        padding: 24px;
    }

    .d-catalog-page-form .page-form_form form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 24px;
        align-items: stretch;
    }

    .d-catalog-page-form .form_body {
        height: 100%;
        padding-right: 24px;
        border-right: 1px solid #c4c4c4;
    }

    .d-catalog-page-form .form .form_footer,
    .d-catalog-page-form .form_footer {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        align-self: stretch;
        box-sizing: border-box;
        width: auto !important;
        height: 100%;
        min-height: 100%;
        margin: 0;
        padding-left: 0;
    }

    .d-catalog-page-form .form_footer > .licence_block,
    .d-catalog-page-form .form_footer > .filter.licence_block,
    .d-catalog-page-form .form_footer > .page-form_measure-note {
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .d-catalog-page-form .page-form {
        padding: 16px;
    }

    .d-catalog-page-form .page-form_title {
        font-size: 22px;
        font-weight: 700;
        line-height: 26px;
    }

    .d-catalog-page-form .page-form_content {
        display: block;
    }

    .d-catalog-page-form .page-form_measure-note {
        font-size: 12px;
        margin-bottom: 10px;
    }
}

/* Таблицы для сравнения серий — сквозной блок каталога и карточки */
.d-catalog-series-table {
    margin-top: 0;
    padding: 35px 0;
    box-sizing: border-box;
    min-width: 0;
}

.d-catalog-series-table .series-table-block {
    box-sizing: border-box;
    min-width: 0;
}

.d-catalog-series-table .series-table-block_title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    color: #222;
}

.d-catalog-series-table .series-table-block_title-br,
.d-catalog-series-table .series-table-block_table-title-br {
    display: none;
}

.d-catalog-series-table .series-table-block_description {
    margin: 0 0 28px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: #222222;
}

.d-catalog-series-table .series-table-block_table-blocks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    box-sizing: border-box;
}

.d-catalog-series-table .series-table-block_table-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #c4c4c4;
    border-radius: 3px;
    padding: 24px;
}

.d-catalog-series-table .series-table-block_table-block-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.d-catalog-series-table .series-table-block_table-block-icon {
    display: block;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    object-fit: contain;
    flex-shrink: 0;
}

.d-catalog-series-table .series-table-block_table-block-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    min-width: 0;
}

.d-catalog-series-table .series-table-block_table-block-title {
    display: block;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
}

.d-catalog-series-table .series-table-block_table-block-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #878B99;
}

.d-catalog-series-table .series-table-block_table-block-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border-radius: 3px;
    object-fit: contain;
    background-color: #F7F7F9;
}

.d-catalog-series-table .series-table-block_table-block-button.btn {
    display: block !important;
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
    font-weight: 600 !important;
    white-space: normal;
    background: #1965e3 !important;
    border: 1px solid #1965e3 !important;
    color: #ffffff !important;
}
.d-catalog-series-table .series-table-block_table-block-button.btn .include-edit a {
    color: inherit !important;
    text-decoration: none !important;
}
.d-catalog-series-table .series-table-block_table-block-button.btn .include-edit a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.d-catalog-series-table .series-table-block_table-block-button-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    vertical-align: middle;
}

.d-catalog-series-table .series-table-block_table-block-button-text {
    display: inline;
    vertical-align: middle;
}

.d-catalog-series-table .series-table-block_table-block-button-arrow {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.d-catalog-series-table .series-table-block_table-block-button.btn:hover,
.d-catalog-series-table .series-table-block_table-block-button.btn:focus,
.d-catalog-series-table .series-table-block_table-block-button.btn:focus-within {
    background: #1454c4 !important;
    border-color: #1454c4 !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .d-catalog-series-table {
        padding: 30px 0;
    }

    .d-catalog-series-table .series-table-block_title {
        margin-bottom: 20px;
        font-size: 22px;
        font-weight: 700;
        line-height: 26px;
    }

    .d-catalog-series-table .series-table-block_title-br,
    .d-catalog-series-table .series-table-block_table-title-br {
        display: block;
    }

    .d-catalog-series-table .series-table-block_description {
        margin-bottom: 20px;
        font-size: 13px;
        font-weight: 600;
        line-height: normal;
    }

    .d-catalog-series-table .series-table-block_table-blocks {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .d-catalog-series-table .series-table-block_table-block {
        gap: 15px;
    }

    .d-catalog-series-table .series-table-block_table-block {
        padding: 24px;
    }

    .d-catalog-series-table .series-table-block_table-block-head {
        gap: 15px;
    }

    .d-catalog-series-table .series-table-block_table-block-icon {
        width: 28px;
        height: 28px;
    }

    .d-catalog-series-table .series-table-block_table-block-title {
        font-size: 13px;
        font-weight: 700;
        line-height: normal;
    }

    .d-catalog-series-table .series-table-block_table-block-description {
        font-size: 10px;
        font-weight: 500;
        line-height: normal;
    }

    .d-catalog-series-table .series-table-block_table-block-button.btn {
        width: 100%;
        max-width: none;
        margin: 0;
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1;
        padding: 15px !important;
        min-height: 45px;
    }

    .d-catalog-series-table .series-table-block_table-block-button-inner {
        gap: 6px;
    }

    .d-catalog-series-table .series-table-block_table-block-button-arrow {
        width: 16px;
        height: 16px;
    }
}

/* Планшеты: 768–1199 (включая iPad Mini). Телефоны ≤767 и десктоп ≥1200 без изменений. */
@media (min-width: 768px) and (max-width: 1199px) {
    .catalog_block_template .d-catalog-grid.catalog_block.items.row,
    #main .catalog_block_template .d-catalog-grid.catalog_block.items.row,
    #main .right_block.wide_Y.catalog_page .section-content-wrapper.with-leftblock .catalog_block_template .d-catalog-grid.catalog_block.items.row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .d-catalog-benefits {
        order: 3;
    }

    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .d-catalog-price {
        order: 5;
    }

    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .d-catalog-choice {
        order: 7;
    }

    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block {
        order: 8;
    }

    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="1"],
    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="2"] {
        order: 1;
    }

    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="3"],
    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="4"] {
        order: 4;
    }

    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="5"],
    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="6"] {
        order: 6;
    }

    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="7"],
    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="8"],
    .catalog_block_template .d-catalog-grid.catalog_block.items.row > .item_block[data-catalog-index="9"] {
        order: 8;
    }

    .d-catalog-benefits__title {
        font-size: 22px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .d-catalog-benefits__row {
        --d-benefits-columns: 2;
        --d-benefits-gap: 24px;
        --d-benefits-pad-y: 12px;
    }

    .d-catalog-benefits__item:nth-child(4n)::after {
        display: block;
    }

    .d-catalog-benefits__item:nth-child(2n)::after,
    .d-catalog-benefits__item:last-child::after {
        display: none;
    }

    .d-catalog-benefits__item:nth-child(4n + 1):nth-last-child(-n + 4),
    .d-catalog-benefits__item:nth-child(4n + 1):nth-last-child(-n + 4) ~ .d-catalog-benefits__item {
        border-bottom: 1px solid #D9DEE7;
    }

    .d-catalog-benefits__item:nth-child(2n + 1):nth-last-child(-n + 2),
    .d-catalog-benefits__item:nth-child(2n + 1):nth-last-child(-n + 2) ~ .d-catalog-benefits__item {
        border-bottom: none;
    }

    .d-catalog-benefits__text {
        font-size: 12px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .d-catalog-choice {
        gap: 20px 24px;
        margin: 25px 0 30px;
        padding: 24px;
    }

    .d-catalog-choice__title {
        font-size: 20px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .d-catalog-choice__text {
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .d-catalog-card .d-card__title-row {
        min-height: calc(16px * 1.25 * 3);
    }

    .d-catalog-card .d-card__title-row .item-title,
    .d-catalog-card .d-card__title,
    .d-catalog-card .item-title a,
    body .compact-catalog .ajax_load .item .d-catalog-card .item-title a {
        font-size: 16px !important;
        line-height: 1.25 !important;
        height: calc(1.25em * 3);
        min-height: calc(1.25em * 3);
        max-height: calc(1.25em * 3);
        -webkit-line-clamp: 3 !important;
        line-clamp: 3;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .d-catalog-card .d-card__title-row .item-title {
        height: calc(1.25em * 3);
        min-height: calc(1.25em * 3);
        max-height: calc(1.25em * 3);
        font-size: 16px;
    }

    .d-catalog-card .d-card__variants-title {
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .d-catalog-card .d-card__sku-name,
    .d-catalog-card .d-card__sku-item.active .d-card__sku-name,
    .d-catalog-card .d-card__sku-item:hover .d-card__sku-name {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.2;
    }

    .catalog_block.owl-carousel:has(.d-card__features:not(:empty)) .d-card__features:empty,
    .series-block_catalog-wrap .catalog_block:has(.d-card__features:not(:empty)) .d-card__features:empty {
        min-height: calc(6px + 8px + 11px * 1.25 * 2);
    }

    .d-catalog-card .d-card__feature {
        padding: 6px 8px;
        align-items: flex-start;
    }

    .d-catalog-card .d-card__feature-text,
    .d-catalog-card .d-card__service-text {
        font-size: 11px;
        line-height: 1.25;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .d-catalog-card .d-card__price-label {
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .d-catalog-card .d-card__price .price,
    .d-catalog-card .d-card__price .price.font-bold,
    .d-catalog-card .d-card__price .price.font_mxs,
    .d-catalog-card .d-card__price .values_wrapper,
    body .compact-catalog .ajax_load .d-catalog-card .cost.prices .price {
        font-size: 18px !important;
    }

    .d-catalog-card .d-card__actions,
    .d-catalog-card .footer_button.d-card__actions,
    .d-catalog-card .footer_button .counter_wrapp,
    .d-catalog-card .footer_button .offer_buy_block {
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .d-catalog-card .d-card__actions .button_block,
    .d-catalog-card .footer_button .button_block,
    .d-catalog-card .footer_button .button_block.wide,
    .d-catalog-card .d-card__one-click,
    .d-catalog-card .footer_button .wrapp-one-click,
    .d-catalog-card .footer_button .offer_buy_block .counter_wrapp,
    .d-catalog-card .footer_button .offer_buy_block .button_block {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        align-self: stretch;
        min-width: 0;
        height: auto;
    }

    .d-catalog-card .footer_button .btn,
    .d-catalog-card .footer_button .btn.to-cart,
    .d-catalog-card .footer_button .btn.in-cart,
    .d-catalog-card .footer_button .btn.to-order,
    .d-catalog-card .footer_button .btn.btn-default,
    .d-catalog-card .d-card__one-click .btn,
    .d-catalog-card .footer_button .btn.one_click,
    .d-catalog-card .footer_button .wrapp-one-click .btn,
    body .ajax_load.block .d-catalog-card .footer_button .btn:not(.in-cart):not([style*="display: none"]):not([style*="display:none"]),
    body .compact-catalog .ajax_load.block .d-catalog-card .footer_button .btn:not(.in-cart):not([style*="display: none"]):not([style*="display:none"]),
    .d-catalog-card .footer_button .btn:not(.in-cart):not([style*="display: none"]):not([style*="display:none"]),
    .d-catalog-card .footer_button .btn.in-cart:not([style*="display: none"]):not([style*="display:none"]) {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: stretch;
        width: 100% !important;
        height: 38px !important;
        min-height: 38px !important;
        box-sizing: border-box !important;
        padding: 8px 4px !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        overflow: visible !important;
        overflow-wrap: anywhere;
        word-break: break-word;
        text-align: center;
    }

    .d-catalog-delivery__heading {
        font-size: 16px;
        overflow-wrap: anywhere;
    }

    .d-catalog-delivery__item,
    .d-catalog-works__name,
    .d-catalog-works__price {
        font-size: 13px;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .d-catalog-page-form .page-form_title {
        font-size: 24px;
        overflow-wrap: anywhere;
    }

    .d-catalog-page-form .page-form {
        padding: 20px;
    }

    .d-catalog-series-table .series-table-block_title {
        font-size: 24px;
        overflow-wrap: anywhere;
    }

    .d-catalog-series-table .series-table-block_table-blocks {
        gap: 20px;
    }

    .d-catalog-series-table .series-table-block_table-block {
        padding: 18px;
        min-width: 0;
    }

    .d-catalog-series-table .series-table-block_table-block-title,
    .d-catalog-series-table .series-table-block_table-block-description {
        overflow-wrap: anywhere;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .d-catalog-choice {
        grid-template-columns: minmax(0, 1fr);
        padding: 24px 20px;
    }

    .d-catalog-page-form .page-form_form form {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 16px;
    }

    .d-catalog-page-form .form_body {
        padding-right: 0;
        border-right: 0;
        border-bottom: 1px solid #c4c4c4;
        padding-bottom: 16px;
        height: auto;
    }

    .d-catalog-series-table .series-table-block_table-blocks {
        grid-template-columns: minmax(0, 1fr);
    }
}
