.home-preview, .home-preview-quote {
    --home-ink: #263238;
    --home-muted: #4e5e59;
    --home-accent: #365d31;
    --home-pale: #eff4ed;
    --home-surface: #f3f5f6;
    --home-border: #dbe3dc;
    --home-detail: #46545c;
    --home-focus: #537e45;
    --home-feedback: 160ms;
}
.home-preview {
    color: var(--home-ink);
}
.home-preview-section {
    margin-block: clamp(36px, 4.8vw, 72px);
}
.home-preview-section[id],
#home-preview-quote {
    scroll-margin-top: 106px;
}
.home-preview-heading {
    font-size: clamp(26px, 3vw, 43px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.025em;
    text-wrap: balance;
}
.home-preview-intro {
    max-width: 70ch;
    margin-top: 12px;
    color: var(--home-muted);
    line-height: 1.55;
}
.home-preview .main { margin-bottom: clamp(24px, 4vw, 52px); }
.home-preview .main__subtitle {
    margin-bottom: 18px;
    line-height: 1.4 !important;
    text-wrap: pretty;
}

/* Match the outline of the original hero's transparent image. */
.home-preview .gbi-home-preview-hero-image {
    object-fit: cover;
    clip-path: polygon(51.25% 0, 100% 35.1%, 100% 61.1%, 51.25% 100%, 0 61.1%, 0 35.1%);
}
.gbi-home-preview-hero-price {
    margin-bottom: 28px;
    color: #fff;
    font-size: clamp(19px, 2vw, 28px);
    font-weight: 800;
    line-height: 1.2;
}
.gbi-home-preview-hero-actions, .home-preview-actions, .home-preview-installation__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}
.gbi-home-preview-hero-actions .main__consult {
    width: auto;
    max-width: 100%;
    min-height: 46px;
    padding: 10px 17px;
    font-size: 16px;
    line-height: 1.25;
    text-align: center;
}
.gbi-home-preview-hero-actions .gbi-home-preview-hero-secondary {
    color: #fff;
    border-color: #d9e6d8;
    background: rgba(0, 0, 0, .12);
}
.gbi-home-preview-hero-actions .gbi-home-preview-hero-secondary:hover {
    background: rgba(0, 0, 0, .32);
}
.gbi-home-preview-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}
.gbi-home-preview-hero-facts li {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 22px;
}
.gbi-home-preview-hero-facts svg {
    flex: 0 0 22px;
    color: #b8d4b2;
}
@media (min-width: 1200px) {
    .gbi-home-preview-hero-facts {
        width: 100%;
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 10px;
    }
    .gbi-home-preview-hero-facts li { min-width: 0; align-items: flex-start; }
}
@media (min-width: 1919px) {
    .gbi-home-preview-hero-facts { font-size: 13px; gap: 12px; }
}
.home-preview a:focus-visible,
.home-preview input:focus-visible,
.home-preview-quote :is(a, input, textarea, button):focus-visible {
    outline: 2px solid var(--home-focus);
    outline-offset: 3px;
}
.home-preview-installation__layout, .home-preview-calculator__layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    background: var(--home-pale);
    border-radius: 16px;
}
.home-preview-installation__layout { min-width: 0; overflow: hidden; }
.home-preview-installation__image { position: relative; min-height: 245px; }
.home-preview-installation__image img {
    height: 100%;
    width: 100%;
    min-height: 245px;
    object-fit: cover;
    display: block;
}
.home-preview-installation__body {
    align-self: center;
    padding: clamp(22px, 3vw, 44px);
}
.home-preview-installation__body p { margin-top: 12px; color: var(--home-muted); line-height: 1.55; }
.home-preview-installation__steps {
    margin: 16px 0 20px;
    padding-left: 1.2em;
    list-style: disc outside;
    line-height: 1.6;
}
.home-preview-installation__steps li::marker { color: #6b994e; }
.home-preview-installation__steps li + li { margin-top: 5px; }
.home-preview-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    max-width: 100%;
    border: 1px solid transparent;
    padding: 9px 16px;
    font: inherit;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--home-feedback) ease;
}
.home-preview-link { color: var(--home-accent); text-decoration: underline; text-underline-offset: .17em; font-weight: 750; }
.home-preview-calculator__layout {
    gap: clamp(16px, 3vw, 40px);
    margin-top: 22px;
    padding: clamp(15px, 3vw, 34px);
}
.home-preview-field { display: grid; min-width: 0; gap: 6px; font-weight: 800; line-height: 1.35; }
.home-preview-field :is(input,textarea) {
    width: 100%;
    min-height: 46px;
    min-width: 0;
    background: #fff;
    color: var(--home-ink);
    border: 1px solid #b3c0b4;
    border-radius: 5px;
    padding: 10px 12px;
    font: inherit;
    font-weight: 500;
}
.home-preview-field textarea { resize: vertical; }
.home-preview-calculator .home-preview-field input { min-height: 48px; }
.home-preview-calculator .home-preview-field input[aria-invalid="true"] { border-color: #a32822; }
.home-preview-error { margin-top: 6px; color: #a32822; font-size: 14px; line-height: 1.45; }
.home-preview-options, .home-preview-reserve { margin: 20px 0 0; border: 0; padding: 0; min-width: 0; }
.home-preview-options legend, .home-preview-reserve legend { margin-bottom: 8px; font-weight: 800; }
.home-preview-options label,
.home-preview-reserve label {
    align-items: center;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
}
.home-preview-options label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 46px;
    border: 1px solid transparent;
    border-bottom-color: var(--home-border);
}
.home-preview-options strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.home-preview-reserve__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.home-preview-reserve label {
    display: inline-flex;
    gap: 6px;
    min-height: 44px;
    border: 1px solid var(--home-border);
}
.home-preview-calculator :is(.home-preview-options, .home-preview-reserve) label:has(input:checked) {
    border-color: #b3c0b4;
    background: #fff;
}
.home-preview-calculator input[type="radio"], .home-preview-quote input[type="checkbox"] {
    appearance: auto;
    accent-color: var(--home-accent);
    width: 16px;
    height: 16px;
}
.home-preview-calculator__result {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 16px;
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    padding: clamp(16px, 2.5vw, 28px);
}
.home-preview-calculator__selection {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    width: 100%;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--home-border);
}
.home-preview-calculator__selection img {
    display: block;
    width: clamp(64px, 7vw, 88px);
    height: auto;
    aspect-ratio: 88 / 72;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: var(--home-surface);
    object-fit: contain;
}
.home-preview-calculator__selection span {
    display: block;
    margin-bottom: 4px;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.3;
}
.home-preview-calculator__selection strong { line-height: 1.3; }
.home-preview-calculator__numbers { width: 100%; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.home-preview-calculator__numbers p { margin: 0 0 4px; }
.home-preview-calculator__numbers .home-preview-calculator__quantity {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--home-border);
}
[data-home-total] { color: var(--home-accent); font-weight: 800; font-size: clamp(24px, 3vw, 40px); line-height: 1.18; }
.home-preview-muted { margin: 0; color: var(--home-muted); font-size: 14px; line-height: 1.5; }
.home-preview-quote__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    min-width: 0;
}
.home-preview-quote__wide { grid-column: 1 / -1; }
.home-preview-quote__policy { display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; font-size: 14px; }
.home-preview-quote__policy input { flex: none; margin-top: 3px; }
.home-preview-quote__policy a { text-decoration: underline; }
[data-home-quote-status] { color: inherit; }
[data-home-quote-live] [data-home-quote-button]:disabled {
    background: var(--home-surface);
    color: var(--home-muted);
    cursor: wait;
}
.home-preview [hidden], .home-preview-quote [hidden] { display: none !important; }
@media (max-width: 880px) {
    .home-preview-installation__layout, .home-preview-calculator__layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 540px) {
    .home-preview-section[id], #home-preview-quote { scroll-margin-top: 76px; }
    .home-preview-quote__fields { grid-template-columns: minmax(0,1fr); }
    .gbi-home-preview-catalog-head { gap: 10px; }
    .gbi-home-preview-hero-actions .main__consult,
    .home-preview-calculator__result .home-preview-button { width: 100%; }
    .gbi-home-preview-hero-price { margin-bottom: 20px; }
    .gbi-home-preview-hero-facts {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-top: 16px;
    }
    .home-preview-calculator__layout { font-size: 15px; }
    .home-preview-calculator .home-preview-field input,
    .home-preview-calculator__selection strong { font-size: 16px; }
    .home-preview-calculator .home-preview-options label { font-size: 14px; }
}

.footer__form.home-preview-quote {
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    align-items: start;
    gap: clamp(18px, 3.5vw, 56px);
}
.home-preview-quote .footer__form-content { width: auto; max-width: none; }
.home-preview-quote .footer__form-name { margin-bottom: .35em; }
.home-preview-quote .footer__form-text { margin: 0; max-width: 53ch; }
.home-preview-quote .home-preview-quote__policy a { color: var(--home-accent); }
@media (max-width: 920px) {
    .footer__form.home-preview-quote { grid-template-columns: minmax(0, 1fr); }
}

/* Catalogue and use cases follow the original three-tile layout. */
.home-preview .home-preview-catalog,
.home-preview .gbi-home-preview-hits {
    margin-block: clamp(32px, 5vw, 76px);
}

.home-preview .gbi-home-preview-catalog-head,
.home-preview .gbi-home-preview-hits .categories__head {
    margin-bottom: clamp(18px, 2.3vw, 32px);
}

.home-preview .gbi-home-preview-catalog-head {
    align-items: center;
}

.home-preview .gbi-home-preview-catalog-head .categories__title {
    width: auto;
}

.home-preview .gbi-home-preview-catalog-head .categories__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid #dce2e3;
    border-radius: 4px;
    background: #fff;
    color: #263238;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
}

.home-preview .gbi-home-preview-catalog-head .categories__link:hover {
    border-color: var(--home-button-green);
    background: #f5f7f9;
}

.home-preview .gbi-home-preview-categories,
.home-preview .home-preview-purpose__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.5vw, 22px);
}

.home-preview .gbi-home-preview-category,
.home-preview .home-preview-purpose__card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid;
    background: #f5f7f9;
    color: var(--home-ink);
    text-decoration: none;
}

.home-preview .gbi-home-preview-category {
    grid-template-rows: auto minmax(0, 1fr);
    border-color: #e0e6e8;
    border-radius: 14px;
}

.home-preview .home-preview-purpose__card {
    grid-template-rows: auto 1fr;
    border-color: #e5e9ec;
    border-radius: 10px;
}

.home-preview .gbi-home-preview-category:is(:hover, :active) {
    border-color: #a9bd9f;
    background: #edf1e9;
}

.home-preview .home-preview-purpose__card:is(:hover, :active) {
    border-color: #b5c6ac;
    background: #eef2ec;
}

.home-preview :is(.gbi-home-preview-category__body, .home-preview-purpose__body) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    min-width: 0;
}

.home-preview .home-preview-purpose__body {
    grid-template-rows: auto 1fr;
    gap: 6px 12px;
    padding: clamp(14px, 1.7vw, 24px);
}

.home-preview .gbi-home-preview-category__body {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 7px 12px;
    padding: clamp(16px, 1.85vw, 28px) clamp(14px, 1.35vw, 22px);
}

.home-preview .gbi-home-preview-category h3,
.home-preview .home-preview-purpose__body h3 {
    color: var(--home-ink);
    line-height: 1.23;
    font-weight: 800;
}

.home-preview .gbi-home-preview-category h3 {
    grid-area: 1 / 1;
    margin: 0;
    font-size: clamp(17px, 1.4vw, 23px);
}

.home-preview .home-preview-purpose__body h3 { font-size: clamp(17px, 1.5vw, 23px); }

.home-preview .home-preview-purpose__body p {
    margin: 0;
    color: var(--home-detail);
    font-size: clamp(14px, 1.12vw, 16px);
    line-height: 1.48;
}

.home-preview .gbi-home-preview-category strong {
    display: block;
    grid-area: 2 / 1;
    align-self: end;
    margin: 0;
    padding: 0;
    color: var(--home-accent);
    font-size: clamp(15px, 1.08vw, 18px);
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

.home-preview .gbi-home-preview-category__media,
.home-preview .home-preview-purpose__image {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 0;
    background: #eceff1;
}

.home-preview .gbi-home-preview-category__media {
    display: grid;
    align-items: end;
    aspect-ratio: 2.2 / 1;
}

.home-preview .home-preview-purpose__image { aspect-ratio: 16 / 8; }

.home-preview .gbi-home-preview-category__media img,
.home-preview .home-preview-purpose__image img {
    position: absolute;
    display: block;
    max-height: none;
    aspect-ratio: auto;
    scale: none;
}

.home-preview .home-preview-purpose__image img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-preview .gbi-home-preview-category__media img {
    inset: 50% auto auto 50%;
    width: 92%;
    height: 146%;
    max-width: none;
    object-fit: contain;
    object-position: center;
    transform: translate(-50%, -50%);
    mix-blend-mode: multiply;
}

.home-preview .gbi-home-preview-category--photo .gbi-home-preview-category__media img {
    width: auto;
    height: 84%;
    max-width: 84%;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    object-fit: cover;
    mix-blend-mode: normal;
}

/* One studio sheet, six independently framed views. */
.home-preview .gbi-home-preview-category__media--studio {
    aspect-ratio: 608 / 344;
    background: #e1e3e3;
}

.home-preview .gbi-home-preview-category__media--studio .gbi-home-preview-category__studio-image {
    inset: var(--catalog-studio-top) auto auto var(--catalog-studio-left);
    width: 357.236842%;
    height: 210.465116%;
    border-radius: 0;
    object-fit: fill;
    transform: none;
}

.home-preview :is(.gbi-home-preview-category__arrow, .home-preview-purpose__arrow, .home-preview-production__link, .home-preview-delivery__link) {
    border: 1px solid #d6dfd1;
    border-radius: 4px;
    background: #fff;
    color: var(--home-accent);
}

.home-preview :is(.gbi-home-preview-category__arrow, .home-preview-purpose__arrow) {
    display: grid;
    width: clamp(32px, 2.3vw, 38px);
    aspect-ratio: 1;
    grid-area: 1 / 2 / span 2;
    align-self: center;
    place-items: center;
    pointer-events: none;
}

.home-preview :is(.gbi-home-preview-category, .home-preview-purpose__card):is(:hover, :focus-visible, :active)
:is(.gbi-home-preview-category__arrow, .home-preview-purpose__arrow),
.home-preview :is(.home-preview-production__link, .home-preview-delivery__link):hover {
    border-color: #a9bd9f;
    background: #e5eee1;
}

body:has(.home-preview) {
    --home-button-green: #6a994e;
    --home-button-hover: #78ad57;
    --home-button-active: #598545;
    --home-arrow-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6'/%3E%3C/svg%3E");
}

.home-preview :is(.gbi-home-preview-category__arrow, .home-preview-purpose__arrow, .home-preview-production__link, .home-preview-delivery__link, .gbi-home-preview-catalog-head .categories__link, .gbi-home-preview-hits :is(.owl-prev, .owl-next))::after,
body:has(.home-preview) button.footer__arorw::after {
    content: "";
    display: block;
    inline-size: var(--home-arrow-size, 20px);
    block-size: var(--home-arrow-size, 20px);
    flex-shrink: 0;
    background: currentColor;
    mask: var(--home-arrow-mask) center / contain no-repeat;
    transform: rotate(var(--home-arrow-angle, 0deg));
    pointer-events: none;
}

.home-preview .gbi-home-preview-hits {
    --home-hit-action-height: 46px;
    margin-block-end: clamp(38px, 5vw, 60px);
}

.home-preview .gbi-home-preview-hits .owl-nav:not(.disabled) {
    position: absolute;
    inset: auto 0 calc(100% + clamp(18px, 2.3vw, 32px)) auto;
    display: flex;
    gap: 8px;
}

.home-preview .gbi-home-preview-hits :is(.owl-prev, .owl-next) {
    --home-arrow-size: 23px;
    position: static;
    width: clamp(44px, 3vw, 56px);
    height: clamp(44px, 3vw, 56px);
    color: var(--home-accent);
}

.home-preview .gbi-home-preview-hits :is(.owl-prev, .owl-next) svg { display: none; }
.home-preview .gbi-home-preview-hits .owl-prev { --home-arrow-angle: 180deg; }

.home-preview .gbi-home-preview-hits .owl-dots:not(.disabled) {
    position: static;
    justify-content: center;
    margin-top: clamp(14px, 1.6vw, 22px);
    transform: none;
}

body:has(.home-preview) button.footer__arorw {
    --home-arrow-size: 24px;
    --home-arrow-angle: -90deg;
    padding: 0;
    border: 0;
}

.home-preview .gbi-home-preview-hits :is(.owl-prev, .owl-next):focus-visible,
body:has(.home-preview) button.footer__arorw:focus-visible {
    outline: 2px solid var(--home-button-green);
    outline-offset: 3px;
}

.home-preview .home-preview-purpose {
    margin-block-start: clamp(38px, 5vw, 60px);
    padding-block: 0;
    background: transparent;
}

.home-preview .home-preview-purpose__grid {
    margin-top: clamp(16px, 2.4vw, 30px);
}

@media (max-width: 767px) {
    .home-preview .gbi-home-preview-hits .hits__blocks.owl-loaded {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 14px 8px;
    }

    .home-preview .gbi-home-preview-hits .owl-stage-outer {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .home-preview .gbi-home-preview-hits .owl-nav:not(.disabled) {
        position: static;
        grid-area: 2 / 2;
    }

    .home-preview .gbi-home-preview-hits .owl-dots:not(.disabled) {
        grid-area: 2 / 1;
        justify-content: flex-start;
        margin: 0;
    }
}

.home-preview .gbi-home-preview-hits .hits__block {
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid #e5e9ec;
    border-radius: 9px;
    background: #fff;
}

.home-preview .gbi-home-preview-hits .hits__img {
    flex: none;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    margin: 0;
    border-radius: 0;
    background: #f5f7f9;
}

.home-preview .gbi-home-preview-hits .hits__img img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.home-preview .gbi-home-preview-hits .hits__content {
    padding: clamp(11px, 1.25vw, 19px);
}

.home-preview .gbi-home-preview-hits :is(.hits__content, .hits__info) {
    flex: 1 1 auto;
    min-width: 0;
}

.home-preview .gbi-home-preview-hits .hits__info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 12px;
}

.home-preview .gbi-home-preview-hits .hits__head { margin: 0; }

.home-preview .gbi-home-preview-hits .hits__name {
    color: var(--home-ink);
    font-size: clamp(15px, 1.26vw, 20px);
    line-height: 1.27;
    font-weight: 800;
}

.home-preview .gbi-home-preview-hits :is(.hits__size, .hits__attrs, .hits__price span) {
    color: var(--home-detail);
    font-size: 13px;
}

.home-preview .gbi-home-preview-hits :is(.hits__size, .hits__attrs) {
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.home-preview .gbi-home-preview-hits .hits__size {
    display: block;
    margin-top: 4px;
}

.home-preview .gbi-home-preview-hits .hits__attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 8px;
    margin-top: 6px;
}

.home-preview .gbi-home-preview-hits .hits__price {
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 6px;
    margin-block: auto 0;
    color: var(--home-ink);
    font-size: clamp(19px, 1.7vw, 27px);
    line-height: 1.2;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.home-preview .gbi-home-preview-hits .hits__price span {
    top: auto;
    line-height: inherit;
}

.home-preview .gbi-home-preview-hits .hits__bottom-bag {
    padding: 7px 8px;
    font-size: clamp(13px, 1.15vw, 16px);
    line-height: 1.25;
    font-weight: 800;
}

.home-preview .gbi-home-preview-hits .hits__bottom-bag:is(:disabled, .disabled, [aria-disabled="true"]) {
    background-color: #eceff1;
    color: #48584f;
}
.home-preview .gbi-home-preview-hits .hits__bottom-bag:is(:disabled, .disabled, [aria-disabled="true"]) svg path { fill: currentColor; }
.home-preview .gbi-home-preview-hits .hits__info-product { min-width: 0; }
.home-preview .gbi-home-preview-hits .hits__info-product-content { flex: 1; width: auto; min-width: 0; padding-inline: 4px; }

.home-preview .gbi-home-preview-hits .hits__info-product-btn {
    flex: 0 0 auto;
    align-self: stretch;
    width: clamp(28px, 3.2vw, 42px);
    height: auto;
    min-height: 40px;
    padding: 4px;
}

.home-preview .gbi-home-preview-hits .hits__info-product-wr { flex-wrap: wrap; justify-content: center; gap: 0 4px; }

.home-preview .gbi-home-preview-hits .hits__info-product-price {
    max-width: 100%;
    font-size: clamp(12px, 1.15vw, 16px);
    overflow-wrap: anywhere;
}

.home-preview .gbi-home-preview-hits .owl-dot span { border-radius: 3px; background: #dce5d8; }
.home-preview .gbi-home-preview-hits .owl-dot.active span { background: var(--home-button-green); }

@media (max-width: 900px) {
    .home-preview .gbi-home-preview-categories,
    .home-preview .home-preview-purpose__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
    .home-preview .home-preview-purpose__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-preview .gbi-home-preview-catalog-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-preview .gbi-home-preview-hits .hits__content { padding-inline: 9px; }
}

@media (max-width: 520px) {
    .home-preview .gbi-home-preview-categories { grid-template-columns: minmax(0, 1fr); }
}

/* Use the theme's dark gray as an even backdrop for the four cards. */
.home-preview .home-preview-advantages { background-image: none; }
.home-preview .home-preview-advantages .container {
    min-height: 0;
    padding-top: clamp(25px, 4vw, 56px);
    padding-bottom: clamp(25px, 4vw, 56px);
    gap: clamp(20px, 3vw, 36px);
}
.home-preview .home-preview-advantages .advantages__title {
    width: 100%;
    color: #fff;
    font-size: clamp(26px, 3vw, 44px);
    line-height: 1.14;
    text-wrap: balance;
}
.home-preview .home-preview-advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.5vw, 20px);
    width: 100%;
}
.home-preview .home-preview-advantages .advantages__block {
    width: auto;
    min-width: 0;
    padding: clamp(18px, 2vw, 30px);
    border-radius: 12px;
}
.home-preview .home-preview-advantages .advantages__icon {
    margin-bottom: 12px;
    width: 30px;
    height: 30px;
}
.home-preview .home-preview-advantages .advantages__name {
    width: auto;
    margin: 0 0 8px;
    font-size: clamp(18px, 1.55vw, 23px);
    line-height: 1.25;
}
.home-preview .home-preview-advantages .advantages__text {
    margin: 0;
    color: #455a64;
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.5;
}

/* The factory description and figures share the existing light surface. */
.home-preview .home-preview-production {
    padding-block: clamp(36px, 5vw, 76px);
}

.home-preview-production__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 48px) clamp(32px, 6vw, 104px);
}

.home-preview-production__content .home-preview-heading {
    max-inline-size: 28ch;
    color: var(--home-ink);
    text-wrap: balance;
}

.home-preview-production__text {
    display: grid;
    gap: 12px;
    max-inline-size: 66ch;
    margin-block: 20px 24px;
    color: var(--home-muted);
    font-size: clamp(15px, 1.12vw, 18px);
    line-height: 1.58;
}

.home-preview-production__text p { margin: 0; text-wrap: pretty; }

.home-preview :is(.home-preview-production__link, .home-preview-delivery__link) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-block-size: 44px;
    padding: 8px 14px;
    font-size: 15px;
    line-height: 1.35;
    text-decoration: none;
}

.home-preview-production__photo {
    width: 100%;
    max-width: 680px;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--home-surface);
}

.home-preview-production__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 54%;
}

.home-preview-production__stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid #cfd8dc;
    list-style: none;
}

.home-preview-production__stats li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-block: clamp(14px, 1.6vw, 24px);
    padding-right: clamp(14px, 2vw, 30px);
    color: var(--home-ink);
    font-size: clamp(15px, 1.12vw, 18px);
    line-height: 1.4;
}

.home-preview-production__stats li + li {
    border-left: 1px solid #cfd8dc;
    padding-left: clamp(14px, 2vw, 30px);
}

.home-preview-production__stats strong {
    color: var(--home-accent);
    font-size: clamp(24px, 2.55vw, 42px);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .home-preview-production__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}

@media (max-width: 650px) {
    .home-preview-production__stats { grid-template-columns: minmax(0, 1fr); }
    .home-preview-production__stats li {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding-inline: 0;
    }
    .home-preview-production__stats li + li {
        border-top: 1px solid #cfd8dc;
        border-left: 0;
        padding-left: 0;
    }
}

.home-preview .home-preview-faq {
    padding-block: clamp(24px, 4vw, 52px);
}

.home-preview .home-preview-delivery {
    padding-block: clamp(12px, 2vw, 28px);
}

.home-preview-delivery .home-preview-heading { max-inline-size: 36ch; }

.home-preview-delivery__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(16px, 4vw, 56px);
    margin-top: clamp(14px, 2vw, 22px);
    color: var(--home-muted);
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.55;
}

.home-preview-delivery__intro p { margin: 0; }
.home-preview-delivery__intro > p { max-inline-size: 70ch; }
.home-preview-delivery__terms { max-inline-size: 43ch; }
.home-preview-delivery__link { margin-top: 12px; }

.home-preview-delivery__directions {
    margin: clamp(22px, 3vw, 36px) 0 0;
    padding: 0;
    border-top: 1px solid var(--home-border);
    list-style: none;
}

.home-preview-delivery__direction {
    display: grid;
    grid-template-columns: minmax(168px, 26%) minmax(0, 1fr);
    align-items: center;
    gap: 8px clamp(14px, 2.5vw, 32px);
    padding-block: 8px;
    border-bottom: 1px solid var(--home-border);
}

.home-preview-delivery__zone {
    color: var(--home-ink);
    font-size: clamp(14px, 1.1vw, 17px);
    font-weight: 750;
    line-height: 1.35;
}

.home-preview-delivery__direction--moscow {
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 12px;
}
.home-preview-delivery__area { color: var(--home-muted); font-size: 14px; line-height: 1.35; }
.home-preview .home-preview-delivery .delivery-seo__city-link { min-height: 40px; }
.home-preview .home-preview-delivery .delivery-seo__city-link:hover {
    background: #e5eade;
    text-decoration: underline;
    text-underline-offset: .14em;
}

@media (max-width: 820px) {
    .home-preview-delivery__intro { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 650px) {
    .home-preview-delivery__direction { padding-block: 10px; }
    .home-preview-delivery__direction:not(.home-preview-delivery__direction--moscow) { grid-template-columns: minmax(0, 1fr); }
    .home-preview .home-preview-delivery .delivery-seo__city-link { min-height: 44px; }
}

/* Documents share the factory section and open their original scans. */
.home-preview-certificates {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(16px, 3vw, 44px);
    padding-top: clamp(20px, 3vw, 34px);
    border-top: 1px solid #cfd8dc;
    scroll-margin-top: clamp(76px, 9vw, 106px);
}

.home-preview-certificates h3 {
    margin: 0;
    color: var(--home-ink);
    font-size: clamp(21px, 2vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    text-wrap: balance;
}

.home-preview-certificates__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
    gap: 12px;
}

.home-preview-certificates__document {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(10px, 1.5vw, 18px);
    min-width: 0;
    padding: clamp(10px, 1.2vw, 16px);
    border: 1px solid #dce2e3;
    border-radius: 10px;
    background: #fff;
    color: var(--home-ink);
    font-size: clamp(15px, 1.15vw, 18px);
    font-weight: 750;
    line-height: 1.32;
    text-decoration: none;
}

.home-preview-certificates__document img {
    display: block;
    width: clamp(56px, 6vw, 76px);
    height: auto;
    aspect-ratio: 212 / 300;
    border: 1px solid var(--home-border);
    border-radius: 3px;
    object-fit: contain;
}

.home-preview-certificates__document svg { color: var(--home-accent); }

.home-preview-certificates__document:hover {
    border-color: #a9bd9f;
    background: #eff4ed;
}

@media (max-width: 820px) {
    .home-preview-certificates { grid-template-columns: minmax(0, 1fr); }
}

/* FAQ rows keep their native details behavior and visible open state. */
.home-preview .home-preview-faq .advantages__title {
    width: auto;
    color: #263238;
    line-height: 1.16;
    text-wrap: balance;
}
.home-preview .home-preview-faq .faq-seo__list {
    gap: 7px;
    margin-top: clamp(14px, 2vw, 24px);
}
.home-preview .home-preview-faq .faq-seo__item {
    padding: 0;
    border: 1px solid #eceff1;
    border-radius: 4px;
}
.home-preview .home-preview-faq .faq-seo__item[open] {
    border-color: #acbea3;
}
.home-preview .home-preview-faq .faq-seo__question {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 17px;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    margin: 0;
    padding: 11px 15px;
    color: var(--home-ink);
    cursor: pointer;
    list-style: none;
    line-height: 1.38;
}
.home-preview .home-preview-faq .faq-seo__question::-webkit-details-marker {
    display: none;
}
.home-preview .home-preview-faq .faq-seo__question::after {
    width: 16px;
    height: 16px;
    content: "";
    background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
    color: #426632;
}
.home-preview .home-preview-faq .faq-seo__item[open] summary::after {
    background-size: 14px 2px, 0 0;
}
.home-preview .home-preview-faq .faq-seo__question:focus-visible {
    outline: 2px solid #426632;
    outline-offset: -2px;
}
.home-preview .home-preview-faq .faq-seo__answer {
    max-width: 72ch;
    padding: 0 40px 14px 15px;
}

.home-preview :is(
    .gbi-home-preview-catalog-head .categories__link,
    .gbi-home-preview-category, .home-preview-purpose__card,
    .gbi-home-preview-category__arrow, .home-preview-purpose__arrow,
    .home-preview-production__link, .home-preview-delivery__link, .home-preview-certificates__document,
    .delivery-seo__city-link, .home-preview-options label, .home-preview-reserve label
) {
    transition: background-color var(--home-feedback) ease, border-color var(--home-feedback) ease;
}

@media (prefers-reduced-motion: no-preference) {
    .home-preview :is(.gbi-home-preview-category, .home-preview-purpose__card,
        .gbi-home-preview-catalog-head .categories__link, .home-preview-production__link, .home-preview-delivery__link) {
        &:focus-visible { --home-arrow-travel: 3px; }

        @media (hover: hover) {
            &:hover { --home-arrow-travel: 3px; }
        }
    }

    .home-preview :is(.gbi-home-preview-category__arrow, .home-preview-purpose__arrow,
        .gbi-home-preview-catalog-head .categories__link, .home-preview-production__link, .home-preview-delivery__link)::after {
        translate: var(--home-arrow-travel, 0px) 0;
        transition: translate var(--home-feedback) cubic-bezier(.16, 1, .3, 1);
    }

    .home-preview .home-preview-certificates__document {
        & svg { transition: scale var(--home-feedback) ease-out; }
        &:focus-visible svg { scale: 1.12; }

        @media (hover: hover) {
            &:hover svg { scale: 1.12; }
        }
    }

    .home-preview .home-preview-faq .faq-seo__question::after {
        transition: background-size var(--home-feedback) ease;
    }

    .home-preview .home-preview-faq .faq-seo__item[open] .faq-seo__answer {
        animation: home-faq-answer-in var(--home-feedback) ease-out;
    }
}

@keyframes home-faq-answer-in {
    from { opacity: .78; }
    to { opacity: 1; }
}

/* Wholesale keeps the existing gray band and AGAT green action. */
.home-preview .home-preview-wholesale {
    padding-block: clamp(25px, 4vw, 52px);
}
.home-preview .home-preview-wholesale .partners__head {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 4vw, 56px);
    margin: 0;
}
.home-preview .home-preview-wholesale .categories__title,
.home-preview .home-preview-wholesale .partners__head-info {
    width: auto;
}
.home-preview .home-preview-wholesale .categories__title {
    margin: 0;
    line-height: 1.15;
    text-wrap: balance;
}
.home-preview .home-preview-wholesale .partners__head-text {
    margin: 0;
    font-size: clamp(15px, 1.2vw, 19px);
    line-height: 1.52;
}
.home-preview .home-preview-wholesale .home-preview-actions {
    margin-top: 16px;
}

@media (max-width: 1000px) {
    .home-preview .home-preview-advantages__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 650px) {
    .home-preview .home-preview-wholesale .partners__head {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 560px) {
    .home-preview .home-preview-advantages__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Anchors with a non-section offset for the fixed header. */
.home-preview :is(#home-preview-catalog, #home-preview-hits) {
    scroll-margin-top: 105px;
}

/* Keep this preview's Owl cards level while the basket switches to quantity controls. */
.home-preview .gbi-home-preview-hits .owl-stage {
    display: flex;
    align-items: stretch;
}

.home-preview .gbi-home-preview-hits .owl-item {
    display: flex;
    flex-shrink: 0;
    min-width: 0;
}

.home-preview .gbi-home-preview-hits .owl-item > .hits__block {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
}

.home-preview .gbi-home-preview-hits :is(.hits__bottom, .hits__bottom-bag, .hits__info-product) {
    min-height: var(--home-hit-action-height);
}

@media (max-width: 560px) {
    .home-preview .gbi-home-preview-hits {
        --home-hit-action-height: 54px;
    }

    .home-preview .gbi-home-preview-hits .hits__info-product-wr {
        gap: 0 3px;
    }
}

/* Use the theme's primary button palette for every filled preview action. */
body:has(.home-preview) :is(
    .home-preview-button,
    .gbi-home-preview-hits :is(.hits__bottom-bag, .hits__info-product-btn-plus),
    :is(header.active, .header__white) .header__catalog-btn,
    button.footer__arorw,
    .application-modal__link,
    .rev-modal__btn
):not(:disabled, .disabled, [aria-disabled="true"]),
body:has(.home-preview) #cookie-accept:not(:disabled) {
    background-color: var(--home-button-green);
    border-radius: 4px;
    color: #fff;

    &:hover { background-color: var(--home-button-hover); }
    &:active { background-color: var(--home-button-active); }
    & :is(span, p, svg) { color: inherit; }
    & svg path[fill]:not([fill="none"]) { fill: currentColor; }
}

/* One studio sheet; the image frame shows only the matching product. */
.home-preview .gbi-home-preview-hits .hits__img.gbi-home-preview-hit-frame {
    display: block;
    aspect-ratio: 704 / 344;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #e1e3e3;
}

.home-preview .gbi-home-preview-hits .hits__img.gbi-home-preview-hit-frame .gbi-home-preview-hit-studio {
    inset: var(--hit-studio-top) auto auto var(--hit-studio-left);
    width: 308.522727%;
    height: 210.465116%;
    max-width: none;
    max-height: none;
    padding: 0;
    margin: 0;
    object-fit: fill;
    object-position: initial;
    transform: none;
    scale: none;
}
