html body > header:has(.hdr-main),html.flm-ready body > header.flm-header {
    position: relative !important;
    top: auto !important;
}
.iforest-sale-promo {
    --sale-height: clamp(110px, 13vw, 170px);
    --sale-accent: #65f383;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: var(--sale-height);
    margin-bottom: 20px;
    padding: 8px clamp(15px, 3vw, 44px);
    overflow: hidden;
    border-radius: 12px;
    scroll-margin-top: 55px;
    color: #fff;
    background: #102a20;
    font-family: Stolzl, Arial, sans-serif;
}
.iforest-sale-promo::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 0 42%;
    background: linear-gradient(90deg, #102a20 0%, transparent 60%), url("../images/sale-20261204-materials.webp") center 48% / cover;
}
.iforest-sale-promo__title {display:block;font-size:clamp(11px,1.3vw,17px);line-height:1.2}
.iforest-sale-promo__discount {display:block;margin:4px 0;font-size:clamp(27px,4vw,63px);font-weight:500;line-height:1;letter-spacing:-.04em}
.iforest-sale-promo__discount span {color:var(--sale-accent);white-space:nowrap}
.iforest-sale-promo__info {display:block;max-width:41ch;font-size:clamp(11px,1.2vw,16px);line-height:1.3}
.iforest-sale-promo[data-variant="2"] {background:#271710;--sale-accent:#ffcf80}
.iforest-sale-promo[data-variant="2"]::before {background:linear-gradient(90deg,#271710,transparent 58%),url("../images/sale-20261204-materials.webp") center 72% / cover}
.iforest-sale-promo[data-variant="3"] {background:#69f486;color:#10271a;--sale-accent:#124829}
.iforest-sale-promo[data-variant="3"]::before {background:linear-gradient(90deg,#69f486,transparent 58%),url("../images/sale-20261204-materials.webp") 70% 26% / cover}
@media(max-width:767px) {
    .iforest-sale-promo {--sale-height:clamp(95px,28vw,140px)}
    .iforest-sale-promo::before {inset-inline-start:61%}
    .iforest-sale-promo__info {max-width:26ch}
}

@media (min-width:768px) {
    body > .extended-container-pages:has(.iforest-product-page) {
        margin-top: 0;
        padding-top: 20px;
    }
}
@media (max-width:767px) {
    .iforest-product-layout > .iforest-product-mobile-title {
        grid-row: 1;
    }
    .iforest-product-layout > .iforest-product-gallery {
        grid-row: 2;
    }
}

/* Purchase, delivery and payment remain distinct cards on both layouts. */
#content.iforest-product-page .iforest-product-buy {
    gap: 16px !important;
}
@media (max-width:767px) {
    #content.iforest-product-page .iforest-product-mobile-promos {
        gap: 12px !important;
    }
}
#content.iforest-product-page #product .iforest-product-purchase > .price > .price-tax {
    padding-top: 9px;
    border-top: 1px solid #e8ebe7;
}
#content.iforest-product-page #product .iforest-product-purchase .iforest-product-purchase__pack-value {
    font-weight: 500 !important;
}
@media (max-width:767px) {
    #content.iforest-product-page .iforest-product-buy > .iforest-product-service-card {
        margin-top: 12px !important;
    }
}

/* Отступы остаются в потоке при переносе заголовка и текста акции. */
.catalog-promo-slot {
    clear: both;
    box-sizing: border-box;
    width: 100%;
    padding-block: clamp(14px, 1.5vw, 22px) clamp(18px, 1.8vw, 26px);
}
.catalog-promo-slot > .iforest-sale-promo {
    height: auto;
    min-height: var(--sale-height);
    margin: 0;
}
@layer previewPurchase {
:is(#content, .container1440) > h1.h1:has(+ .catalog-promo-slot) {
    white-space: normal !important;
    overflow-wrap: anywhere;
    height: auto !important;
    margin-bottom: 0 !important;
}
}
