/* ============================================
   Home Page — bumlavka.ru design
   ============================================ */

.home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .9), transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .6), transparent 40%),
        #f6f2e6;
    padding-top: 140px;
}

/* ---- Hero Slider (Swiper) ---- */
.hero-slider {
    --hero-overlay-gap: clamp(80px, 10vw, 180px);
    width: 100%;
    max-width: 1920px;
    margin: calc(-1 * var(--hero-overlay-gap)) auto 0;
}
.hero-slider .swiper-slide {
    height: auto;
}
.hero-slider__pagination.swiper-pagination {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
}
.hero-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, .55);
    opacity: 1;
    margin: 0 5px;
    transition: background .2s ease, transform .2s ease;
}
.hero-slider .swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.2);
}

/* ---- Hero Banner ---- */
.hero-backdrop {
    --hero-radius: clamp(28px, 3vw, 50px);
    --hero-height: 940px;
    width: 100%;
    height: var(--hero-height);
    margin: 0 auto;
    border-radius: var(--hero-radius);
    background-image:
        linear-gradient(92deg, #e9e8e8e6, #e9e8e8b3 42%, #e9e8e84d 70%, #e9e8e814),
        url('/local/templates/bumlavka/assets/images/hero-main-v2.webp');
    background-repeat: no-repeat;
    background-position: center, right center;
    background-size: cover, cover;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 180px;
    padding-left: 70px;
    padding-right: 70px;
    box-sizing: border-box;
}

/* Карточка hero — единый блок с заголовком, eyebrow и CTA */
.hero-backdrop__card {
    width: min(720px, 100%);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: clamp(24px, 2vw, 32px);
    padding: clamp(28px, 3vw, 44px) clamp(28px, 3vw, 48px);
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2vw, 28px);
    color: var(--color-primary);
    font-family: var(--font-display);
    box-shadow: 0 4px 28px -10px rgba(60, 45, 20, 0.18);
    position: relative;
    z-index: 2;
}

.hero-backdrop__eyebrow {
    position: relative;
    margin: 0;
    padding-left: 32px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.6);
    font-family: var(--font-body, inherit);
}

.hero-backdrop__eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 22px;
    height: 1px;
    background: rgba(93, 74, 44, 0.6);
}

.hero-backdrop__title {
    margin: 0;
    font-size: clamp(2.2rem, 4.6vw, 4.4rem);
    line-height: 0.95;
    font-weight: 300;
    letter-spacing: -0.025em;
    text-transform: none;
    color: #1a1611;
}

.hero-backdrop__title span {
    display: block;
    font-size: inherit;
    line-height: inherit;
    margin-top: clamp(4px, 0.8vw, 8px);
    font-style: italic;
    font-weight: 400;
    color: var(--color-accent, #5d4a2c);
    letter-spacing: -0.03em;
}

.hero-backdrop__cta {
    display: flex;
    align-items: center;
}

/* Features под CTA — inline-строкой внутри карточки */
.hero-backdrop__features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(20px, 3vw, 36px);
    padding-top: clamp(16px, 1.6vw, 22px);
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--color-primary);
    font-family: var(--font-display);
}

.hero-feature__icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--color-primary);
}

.hero-feature__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-feature__label {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    color: rgba(17, 17, 17, 0.7);
}

.hero-feature__label span {
    display: inline;
}

.hero-feature__label span + span::before {
    content: ' ';
}

/* Шапка fixed на любом «мобильном» (≤991.98 по правилу проекта).
   Overlap clamp(80…180px) поднимал баннер под шапку и прятал eyebrow. */
@media (max-width: 991.98px) {
    .hero-slider { --hero-overlay-gap: 0; }
}

@media (max-width: 768px) {
    .hero-backdrop__features {
        gap: 16px 24px;
    }
    .hero-feature__icon { width: 24px; height: 24px; }
    .hero-feature__label { font-size: 13px; }

    .hero-backdrop {
        padding-top: 28px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ---- Content Block ---- */
.content-block {
    --content-stack-gap: clamp(36px, 3.5vw, 56px);
    width: 100%;
    max-width: 1920px;
    margin: 100px auto 0;
    padding: 0 70px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: var(--content-stack-gap);
}

/* ---- Product Preview Section ---- */
.product-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.product-preview__eyebrow {
    margin: 0 0 12px;
    color: rgba(17, 17, 17, 0.5);
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.product-preview__title {
    margin: 0 0 14px;
    color: #333;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 75px);
    font-weight: 300;
    line-height: 1;
}

.product-preview__subtitle {
    margin: 0 auto 32px;
    max-width: 800px;
    color: rgba(17, 17, 17, 0.65);
    text-align: center;
    font-size: 17px;
    line-height: 1.45;
}

.product-preview__more {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: clamp(28px, 3vw, 44px);
}

/* Bento-сетка категорий: hero 2×2 + 7 обычных + «Все категории» = 12 ячеек на 4×3 */
.category-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(160px, auto);
    gap: 14px;
    margin-top: clamp(20px, 2vw, 32px);
}

/* На десктопе обёртка прозрачная — плитки идут прямо в grid */
.category-grid__slider {
    display: contents;
}

/* Hero — та же photo-led плитка, но больше (2×2) и с увеличенным title */
.category-card--hero {
    grid-column: span 2;
    grid-row: span 2;
    padding: 32px;
}

.category-card--hero .category-card__title {
    font-size: clamp(28px, 2.4vw, 42px);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.05;
}

/* Карточка «Все категории» — фирменный олив, акцент в палитре земли */
.category-card--all {
    background: #8c9d57;
    color: #fff;
}

.category-card--all .category-card__title {
    color: #fff;
}

.category-card--all .category-card__count {
    color: rgba(255, 255, 255, 0.7);
}

.category-card--all .category-card__arrow {
    background: #fff;
    width: 48px;
    height: 48px;
}

.category-card--all .category-card__arrow svg {
    color: #8c9d57;
}

.category-card--all:hover,
.category-card--all:focus-visible {
    background: #6d7c40;
}

@media (max-width: 1199.98px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .category-card--hero {
        grid-column: span 3;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-card--hero {
        grid-column: span 2;
        padding: 24px;
    }
    .category-card--hero::before {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.85) 100%);
    }
    .category-card__eyebrow {
        top: 20px;
        left: 24px;
    }
}

/* Photo-led full bleed: каждая плитка — фото в фон + dark gradient + белый title внизу */
.category-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 26px;
    background-color: #efe6d2;
    background-size: 130%; /* зум на 30% — обрезает остаточные белые поля у scene-фото */
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    border-radius: 24px;
    box-shadow: 0 1px 2px rgba(60, 45, 20, 0.04), 0 8px 24px -12px rgba(60, 45, 20, 0.10);
    text-decoration: none;
    min-height: 200px;
    box-sizing: border-box;
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Затемнение снизу для читаемости текста */
.category-card--has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 35%,
        rgba(0, 0, 0, 0.45) 70%,
        rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
    z-index: 1;
}

.category-card > * {
    position: relative;
    z-index: 2;
}

.category-card:hover,
.category-card:focus-visible {
    text-decoration: none;
    outline: none;
    box-shadow: 0 2px 4px rgba(60, 45, 20, 0.06), 0 18px 40px -16px rgba(60, 45, 20, 0.18);
}

/* «Все категории» — олив-плитка без фото, акцент в общей сетке фото-плиток */
.category-card.category-card--all {
    background: #8c9d57;
    color: #fff;
}

.category-card.category-card--all::before {
    display: none;
}

.category-card.category-card--all:hover,
.category-card.category-card--all:focus-visible {
    background: #6d7c40;
}

.category-card:hover,
.category-card:focus-visible {
    text-decoration: none;
    outline: none;
    box-shadow: 0 2px 4px rgba(60, 45, 20, 0.06), 0 18px 40px -16px rgba(60, 45, 20, 0.18);
}

.category-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 2;
}

.category-card__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(20px, 1.7vw, 26px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: inherit;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.category-card__count {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* На «Все» плитке нет фото — text-shadow не нужен */
.category-card.category-card--all .category-card__title,
.category-card.category-card--all .category-card__count {
    text-shadow: none;
}

.category-card.category-card--all .category-card__count {
    color: rgba(255, 255, 255, 0.7);
}

/* Стрелка остаётся только на hero и «Все категории» — на color-block плитках убираем */
.category-card:not(.category-card--hero):not(.category-card--all) .category-card__arrow {
    display: none;
}

.category-card__arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: background .2s ease;
}

.category-card__arrow svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    color: #1a1611;
}

/* Мобиль: hero баннер сверху, горизонтальный слайдер из color-block, «Все» лентой снизу */
@media (max-width: 991.98px) {
    .category-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .category-card--hero {
        width: 100%;
    }

    .category-grid__slider {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* отрицательный margin + padding делают «крайние» карточки не упирающимися в край экрана */
        margin: 0 -16px;
        padding: 4px 16px 12px;
        scroll-padding-left: 16px;
    }

    .category-grid__slider::-webkit-scrollbar {
        display: none;
    }

    .category-grid__slider .category-card {
        flex: 0 0 auto;
        width: 65%;
        max-width: 280px;
        scroll-snap-align: start;
        min-height: 200px;
        padding: 22px;
        border-radius: 22px;
    }

    .category-card--all {
        width: 100%;
        min-height: 100px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 22px 26px;
        gap: 16px;
    }

    .category-card--all .category-card__body {
        flex: 1 1 auto;
        text-align: left;
    }

    .category-card--all .category-card__arrow {
        align-self: center;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .category-card {
        padding: 18px 20px;
        border-radius: 18px;
    }
}

.product-preview__more .cta-button {
    inline-size: auto;
    max-inline-size: 100%;
    padding-inline: 32px 24px;
}

.product-preview__more .cta-button .cta-button__label {
    white-space: nowrap;
}

.product-preview__more .cta-button--ghost {
    background: transparent;
    color: var(--cta-button-accent, #5d4a2c);
}

.product-preview__more .cta-button--ghost:hover,
.product-preview__more .cta-button--ghost:focus-visible {
    background: var(--cta-button-accent, #5d4a2c);
    color: #fff;
}

.product-preview__controls {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
    min-height: 60px;
    max-width: 1780px;
    margin-left: auto;
    margin-right: auto;
}

.product-preview__filters {
    flex: 1 1 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-width: 0;
}

.product-preview__tags {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.product-preview__tags::-webkit-scrollbar {
    height: 6px;
}

.product-preview__tags::-webkit-scrollbar-thumb {
    background: rgba(100, 125, 25, 0.35);
    border-radius: 999px;
}

.product-preview__filter-wrapper {
    flex-shrink: 0;
}

/* Filter Button */
.filter-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 26px;
    block-size: 50px;
    border-radius: 35px;
    border: 1px solid var(--color-primary);
    background-color: transparent;
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}

.filter-button > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-button:hover,
.filter-button:focus-visible {
    background-color: rgba(100, 125, 25, 0.08);
    outline: none;
}

.filter-button--active {
    background-color: var(--color-primary);
    color: #fff;
}

/* Nav buttons */
.product-preview__nav {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    align-self: flex-end;
    gap: 12px;
}

.product-preview__nav-btn {
    inline-size: 50px;
    block-size: 50px;
    border-radius: 50px;
    border: 1px solid var(--color-primary);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.product-preview__nav-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.product-preview__nav-btn:not(:disabled):hover,
.product-preview__nav-btn:not(:disabled):focus-visible {
    background: rgba(100, 125, 25, 0.08);
    outline: none;
}


.product-preview__nav-btn--prev svg {
    transform: scaleX(-1);
}

.product-preview__grid {
    width: 100%;
    max-width: 1780px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
}

/* ---- Crafted Process Section ---- */
.crafted-process {
    display: flex;
    gap: 19px;
    width: 100%;
    max-width: 1780px;
    margin: 0 auto;
    position: relative;
}

.crafted-process__panel {
    flex: 1 1 50%;
    max-width: 50%;
    min-width: 0;
    border-radius: 48px;
    background: #fdfbf4;
    box-shadow: 0 40px 90px rgba(18, 22, 10, 0.08);
    position: relative;
    padding: clamp(28px, 3vw, 48px) clamp(28px, 3vw, 60px) clamp(28px, 3vw, 48px) clamp(40px, 8vw, 149px);
    display: flex;
    flex-direction: column;
    color: #222;
    font-family: var(--font-display);
}

.process-narrative {
    max-width: 620px;
    width: 100%;
}

.process-narrative__title {
    margin: 0;
    font-size: 60px;
    font-weight: 400;
    line-height: .95;
}

.process-narrative__divider {
    display: inline-block;
    width: 64px;
    height: 4px;
    margin-top: 38px;
    background: rgba(100, 125, 25, 0.4);
    border-radius: 999px;
}

.process-narrative__body {
    margin: 28px 0 24px;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.2;
}

.process-narrative__note {
    margin: 0 0 40px;
    color: #222;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.2;
    max-width: 500px;
}

.process-narrative__quote-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.process-narrative__quotes {
    display: block;
    width: 88px;
    height: auto;
    flex-shrink: 0;
}

.process-narrative__quote-text {
    margin: 0;
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.03em;
    text-transform: none;
    padding-top: 15px;
}

.process-narrative__quote-note {
    margin: 14px 0 0;
    color: #333;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.2;
    max-width: 520px;
}

.process-narrative__sticker {
    position: absolute;
    left: 20px;
    bottom: 20px;
    width: clamp(72px, 8vw, 103px);
    height: clamp(72px, 8vw, 103px);
}

.crafted-process__gallery {
    flex: 1 1 50%;
    max-width: 50%;
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.crafted-process__logo {
    position: absolute;
    bottom: -6%;
    left: 50%;
    transform: translate(-50%);
    width: 61px;
    height: 61px;
    background: rgba(115, 137, 47, 0.7);
    mask: url('/local/templates/bumlavka/assets/images/icons/logo-mini-lite.svg') center/contain no-repeat;
    -webkit-mask: url('/local/templates/bumlavka/assets/images/icons/logo-mini-lite.svg') center/contain no-repeat;
    pointer-events: none;
    opacity: .85;
}

/* Декоративная марка-разделитель между секциями (такой же как .crafted-process__logo).
   Отрицательные margin сжимают content-block gap до компактных отступов */
.section-mark {
    width: 61px;
    height: 61px;
    margin: calc(var(--content-stack-gap) * -0.9) auto;
    background: rgba(115, 137, 47, 0.7);
    mask: url('/local/templates/bumlavka/assets/images/icons/logo-mini-lite.svg') center/contain no-repeat;
    -webkit-mask: url('/local/templates/bumlavka/assets/images/icons/logo-mini-lite.svg') center/contain no-repeat;
    pointer-events: none;
    opacity: .85;
    flex-shrink: 0;
}

.crafted-process__grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.process-card {
    border-radius: 38px;
    overflow: hidden;
    background: transparent;
    min-height: 0;
}

.process-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Gallery Section ---- */
.gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery__title {
    margin: 0 0 60px;
    color: #333;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 75px);
    font-weight: 300;
    line-height: 1;
}

.gallery__grid-container {
    width: 100%;
    max-width: 1780px;
    padding: 0;
    box-sizing: border-box;
}

.gallery__grid {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    justify-content: center;
    position: relative;
    width: 100%;
}

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #f0f0f0;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform .28s ease, box-shadow .28s ease;
}

.gallery__item--small,
.gallery__item--tiny,
.gallery__item--more,
.gallery__item--subgrid {
    aspect-ratio: 1 / 1;
}

.gallery__item--subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    background: transparent;
    overflow: visible;
    border-radius: 0;
}

.gallery__item--more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    font-size: 32px;
    text-decoration: none;
}

.gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery__item--large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* ---- Recommended Products ---- */
.recommended-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.recommended-products__header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1780px;
    margin-bottom: 30px;
    position: relative;
}

.recommended-products__title {
    margin: 0;
    color: #333;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 75px);
    font-weight: 300;
    line-height: 1;
}

.recommended-products__nav {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.recommended-products__nav-btn {
    inline-size: 50px;
    block-size: 50px;
    border-radius: 50px;
    border: 1px solid var(--color-primary);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.recommended-products__nav-btn:not(:disabled):hover {
    background: rgba(100, 125, 25, 0.08);
}

.recommended-products__grid {
    width: 100%;
    max-width: 1780px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, calc((100% - 60px) / 4));
    gap: 20px;
    margin: 0 auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px;
    -webkit-overflow-scrolling: touch;
}

.recommended-products__grid::-webkit-scrollbar {
    display: none;
}

.recommended-products__grid > * {
    scroll-snap-align: start;
}

.recommended-products__nav-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* ---- FAQ Section ---- */
.faq-section {
    width: 100%;
    max-width: 1780px;
    padding: 0 20px;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-section__title {
    margin: 0 0 60px;
    color: #333;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 75px);
    font-weight: 300;
    line-height: 1;
}

.faq-section__grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 600px), 1fr));
    gap: 20px;
    align-items: stretch;
}

.faq-item {
    width: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 36px 40px;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color .2s ease;
    outline: none;
    border: none;
    text-align: left;
}

.faq-item:not(.faq-item--special):hover,
.faq-item:not(.faq-item--special):focus-visible {
    background-color: #f9f9f9;
}

.faq-item--special {
    background-color: #8c9d57;
    color: #fff;
    cursor: pointer;
}

.faq-item--special .faq-item__question {
    color: #fff;
}

.faq-item__header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.faq-item__question {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    color: #333;
    flex: 1;
    margin: 0;
}

.faq-item__answer {
    display: none;
    margin-top: 18px;
    font-family: var(--font-display);
    font-size: 20px;
    line-height: 1.4;
    color: #444;
}

.faq-item.is-open .faq-item__answer {
    display: block;
}

.faq-item__answer p {
    margin: 0 0 16px;
}

.faq-item__answer p:last-child,
.faq-item__answer ul:last-child,
.faq-item__answer ol:last-child {
    margin-bottom: 0;
}

.faq-item__answer ul,
.faq-item__answer ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.faq-item__answer li {
    margin-bottom: 6px;
}

.faq-item__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease;
}

.faq-item__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.faq-item.is-open .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item--special .faq-item__icon {
    width: 40px;
    height: 40px;
    transform: none;
}

/* ---- Consultation Bridge Section ---- */
.consultation-bridge {
    display: flex;
    width: 100%;
    gap: 0;
}

.consultation-bridge__visual {
    flex: 1 1 50%;
    min-height: 520px;
    background: rgba(100, 125, 25, 0.9);
    border-radius: 0 70px 70px;
    display: flex;
}

.consultation-bridge__visual-blank {
    flex: 1;
    border-radius: inherit;
    padding: 57px 47px 64px 64px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.consultation-bridge__visual-text {
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: 57px;
    font-weight: 400;
    line-height: .9;
}

.consultation-bridge__visual-subtext {
    margin: 29px 0 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.05;
}

.consultation-bridge__visual-arrow {
    margin-top: auto;
    margin-left: 0;
    align-self: flex-start;
    transform: translateY(-48px);
}

.consultation-bridge__form {
    flex: 1 1 50%;
    display: flex;
}

.consultation-bridge__form-surface {
    border-radius: 70px 0 70px 70px;
    background: rgba(202, 196, 194, 0.4);
    --autofill-bg: #e4dfd7;
    padding: 63px 49px 80px 64px;
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 48px;
}

.consultation-bridge__title {
    margin: 0;
    color: #333;
    font-family: var(--font-display);
    font-size: 50px;
    font-weight: 500;
    line-height: .9;
}

.consultation-bridge__form-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 620px;
}

.consultation-bridge__field {
    display: block;
    width: 100%;
    border-bottom: 2px solid rgba(153, 153, 153, 0.7);
    padding-bottom: 8px;
}

.consultation-bridge__field--spaced {
    margin-top: 49px;
}

.consultation-bridge__field input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.05;
    color: #333;
    padding: 0;
    caret-color: var(--color-primary);
    transition: color .18s ease;
}

.consultation-bridge__field input::placeholder {
    color: rgba(51, 51, 51, 0.55);
}

.consultation-bridge__field input:focus-visible {
    outline: none;
}

.consultation-bridge__consent {
    margin-top: 57px;
}

.consultation-bridge__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(51, 51, 51, 0.5);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.consultation-bridge__checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.consultation-bridge__checkbox-mark {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 2px solid rgba(51, 51, 51, 0.4);
    box-sizing: border-box;
    position: relative;
    flex-shrink: 0;
    transition: background-color .15s ease, border-color .15s ease;
}

.consultation-bridge__checkbox:hover .consultation-bridge__checkbox-mark {
    border-color: var(--color-primary);
}

.consultation-bridge__checkbox input:checked + .consultation-bridge__checkbox-mark {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.consultation-bridge__checkbox input:checked + .consultation-bridge__checkbox-mark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consultation-bridge__checkbox input:focus-visible + .consultation-bridge__checkbox-mark {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.consultation-bridge__cta {
    margin-top: 72px;
    width: 476px;
    max-width: 100%;
    display: inline-flex;
}

/* ---- Gallery Lightbox ---- */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(20, 24, 14, 0.92);
    padding: 40px;
    box-sizing: border-box;
}

.gallery-lightbox[data-open="true"] {
    display: flex;
}

.gallery-lightbox__figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox__image {
    max-width: 100%;
    max-height: calc(100vh - 80px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    transition: background-color .15s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gallery-lightbox__close {
    top: 24px;
    right: 24px;
    font-size: 32px;
}

.gallery-lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.gallery-lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
    .gallery-lightbox { padding: 16px; }
    .gallery-lightbox__close,
    .gallery-lightbox__nav { width: 44px; height: 44px; font-size: 22px; }
    .gallery-lightbox__close { top: 12px; right: 12px; }
    .gallery-lightbox__nav--prev { left: 8px; }
    .gallery-lightbox__nav--next { right: 8px; }
}

/* ---- Medium desktop (1000-1399px) ---- */
@media (max-width: 1399px) {
    .product-preview__grid,
    .recommended-products__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .company-facts__grid {
        grid-template-columns: 1fr 1fr;
    }

    .company-fact {
        padding: 28px;
    }

    .company-fact__number {
        font-size: 48px;
    }
}

/* ---- Mobile Responsive ---- */
@media (max-width: 991.98px) {
    .home {
        padding-top: 0;
    }

    .hero-backdrop {
        --hero-radius: 24px;
        height: auto;
        min-height: 560px;
        flex-direction: column;
        padding: 105px 16px 40px;
        margin-top: 0;
        overflow: visible;
        background-position: center, center;
        background-size: cover, cover;
    }

    .hero-backdrop__title {
        font-size: 30px;
        line-height: 1.05;
        font-weight: 400;
        color: var(--color-primary);
    }

    .hero-backdrop__cta {
        width: 215px;
        max-width: 100%;
        display: flex;
        justify-content: flex-start;
    }

    .hero-backdrop__cta .cta-button {
        inline-size: 100%;
        block-size: 44px;
        padding-inline: 12px 8px;
        gap: 12px;
        font-size: 16px;
        line-height: 1.2;
        color: var(--color-primary);
    }

    .hero-backdrop__cta .cta-button__label {
        white-space: nowrap;
    }

    .hero-backdrop__cta .cta-button__icon {
        inline-size: 26px;
        block-size: 26px;
    }

    .hero-backdrop__cta .cta-button__arrow {
        inline-size: 10px;
        block-size: 10px;
    }

    .hero-backdrop__features {
        display: none;
    }

    .content-block {
        padding: 0 16px;
        margin-top: 60px;
    }


    .product-preview__controls {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        margin-bottom: 16px;
    }

    .product-preview__filters {
        gap: 8px;
    }

    .product-preview__tags {
        padding: 0 0 12px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        touch-action: pan-x;
    }

    .product-preview__tags::-webkit-scrollbar {
        display: none;
    }

    .product-preview__nav {
        display: none;
    }

    .product-preview__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .filter-button {
        padding: 0 16px;
        block-size: 40px;
        font-size: 14px;
        max-inline-size: 240px;
    }

    /* Crafted Process mobile */
    .crafted-process {
        flex-direction: column;
        gap: 0;
    }

    .crafted-process__panel {
        width: 100%;
        max-width: none;
        flex: auto;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .process-narrative {
        max-width: 100%;
    }

    .process-narrative__title {
        font-size: 35px;
    }

    .process-narrative__quote-text {
        font-size: 25px;
        padding-top: 5px;
    }

    .process-narrative__quotes {
        width: 44px;
    }

    .process-narrative__sticker {
        position: static;
        margin: 20px auto 0;
    }

    .crafted-process__gallery {
        width: 100%;
        max-width: none;
        flex: auto;
        padding: 0;
        margin-top: 32px;
        box-sizing: border-box;
    }

    .crafted-process__grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .process-card {
        border-radius: 20px;
    }

    .crafted-process__logo {
        display: none;
    }

    /* Gallery mobile */
    .gallery {
        padding: 0;
    }

    .gallery__title {
        margin-bottom: 24px;
    }

    .gallery__grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 11px;
        padding: 0 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .gallery__item--subgrid {
        display: contents;
    }

    .gallery__item {
        grid-column: auto !important;
        grid-row: auto !important;
        border-radius: 20px;
        aspect-ratio: 1.1;
        min-width: 0;
        width: 100%;
        box-shadow: none;
    }

    .gallery__item--large,
    .gallery__item--small,
    .gallery__item--tiny {
        grid-column: auto !important;
        grid-row: auto !important;
        border-radius: 20px;
        aspect-ratio: 1.1;
    }

    .gallery__item--more {
        display: none !important;
    }

    /* Recommended Products mobile */
    .recommended-products {
        padding: 60px 0;
    }


    .recommended-products__nav {
        display: none;
    }

    /* Горизонтальный scroll-snap: одна карточка ~60vw + край следующей
       как тизер. Намного читабельнее чем 2-в-ряд на узкой ширине. */
    .recommended-products__grid {
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(220px, 60vw);
        gap: 12px;
        padding: 0 12px 4px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
    .recommended-products__grid > * {
        scroll-snap-align: start;
    }

    /* FAQ mobile */
    .faq-section {
        padding: 0 12px;
    }

    .faq-section__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .faq-section__title {
        margin-bottom: 40px;
    }

    .faq-section__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .faq-item {
        padding: 24px 20px;
    }

    .faq-item__question {
        font-size: 20px;
    }

    .faq-item__answer {
        font-size: 16px;
    }

    /* Consultation mobile */
    .consultation-bridge {
        flex-direction: column;
        /* margin-top убран — .content-block уже даёт единый gap между секциями;
           лишние 60px создавали разрыв 96px (gap+mt) против обычных 36px. */
    }

    .consultation-bridge__visual {
        border-radius: 30px 30px 0 0;
        min-height: auto;
    }

    .consultation-bridge__visual-blank {
        padding: 32px 20px 48px;
    }

    .consultation-bridge__visual-text {
        font-size: 30px;
    }

    .consultation-bridge__visual-subtext {
        font-size: 16px;
    }

    .consultation-bridge__visual-arrow {
        display: none;
    }

    .consultation-bridge__form-surface {
        border-radius: 0 0 30px 30px;
        padding: 32px 20px 48px;
    }

    .consultation-bridge__title {
        font-size: 30px;
    }

    .consultation-bridge__field input {
        font-size: 23px;
    }

    .consultation-bridge__cta {
        width: 100%;
        margin-top: 40px;
    }

    .consultation-bridge__field--spaced {
        margin-top: 32px;
    }

    .consultation-bridge__consent {
        margin-top: 40px;
    }
}

/* ---- Tablet (769-991.98px): уплотняем десктопные сетки в 3 колонки ---- */
@media (min-width: 769px) and (max-width: 991.98px) {
    .product-preview__grid,
    .recommended-products__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery__item--large {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
        aspect-ratio: 1 / 1;
    }

    .reviews-section__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-block {
        padding: 0 24px;
    }
}

/* ---- Reviews Section ---- */
.reviews-section {
    width: 100%;
}

.reviews-section__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 75px);
    font-weight: 300;
    line-height: 1.05;
    color: #333;
    text-align: center;
    margin: 0 0 48px;
}

.reviews-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card__stars {
    display: flex;
    gap: 4px;
}

.review-card__text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    flex: 1;
}

.review-card__author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-card__name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.review-card__company {
    font-size: 14px;
    color: #999;
}

@media (max-width: 991.98px) {
    .reviews-section__title {
        margin-bottom: 32px;
    }

    .reviews-section__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .reviews-section {
        margin-top: 0;
    }

    .review-card {
        padding: 24px;
    }
}

/* ---- Company Facts ---- */
.company-facts {
    width: 100%;
}

.company-facts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1780px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.company-fact {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

.company-fact__number {
    display: block;
    font-family: var(--font-display);
    font-size: 60px;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1;
}

.company-fact__label {
    display: block;
    font-family: var(--font-display);
    font-size: 18px;
    color: #555;
    margin-top: 12px;
}

@media (max-width: 991.98px) {
    .company-facts__grid {
        grid-template-columns: 1fr 1fr;
    }

    .company-fact__number {
        font-size: 40px;
    }
}

@media (max-width: 600px) {
    .company-facts {
        padding: 40px 0;
    }

    .company-facts__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .company-fact {
        padding: 24px;
    }

    .company-fact__number {
        font-size: 32px;
    }
}

/* ---- Mobile spacing overrides (последним, чтобы перебить другие @media) ---- */
@media (max-width: 768px) {
    .content-block {
        --content-stack-gap: 40px;
        margin-top: 32px;
        padding: 0 12px;
    }
    .section-mark {
        margin: -10px auto !important;
    }
}

/* ---- Mobile section padding cleanup (после всех media) ----
   .company-facts и .recommended-products имели padding 40-60px,
   который суммировался с .content-block gap (40px) — давало
   неравномерные визуальные разрывы 80-100px против 30-40 у других.
   Убираем — gap parent'а уже расставляет ритм. */
@media (max-width: 768px) {
    .company-facts { padding: 0 !important; }
    .recommended-products { padding: 0 !important; }
}
