/* ==========================================================================
   Хозблок на даче — дизайн-система
   Тёплый оранжевый для действий, персиковые поверхности и графитовый текст.
   Один файл без сборщиков, чтобы сайт летал на обычном хостинге.
   ========================================================================== */

@import url('/fonts/manrope.css');

:root {
    /* Цвет */
    --honey: #f59a36;
    --accent-hover: #ed8720;
    --accent-soft: #fff0df;
    --accent-deep: #9a4908;
    --pollen: #fff5e9;
    --ink: #25221e;
    --paper: #ffffff;
    --mist: #f7f6f3;
    --charcoal: #3b3a37;
    --graphite: #6b6763;     /* приглушённый текст */
    --line: #e4e0d8;

    /* Типографика */
    --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --text-caption: 15px;
    --text-body: 17px;
    --text-subheading: 20px;
    --text-h-sm: 24px;
    --text-h: 32px;
    --text-h-lg: 40px;

    /* Шаг сетки 4px */
    --s-8: 8px;
    --s-12: 12px;
    --s-16: 16px;
    --s-20: 20px;
    --s-24: 24px;
    --s-32: 32px;
    --s-40: 40px;
    --s-48: 48px;

    --wrap: 1200px;
    --section-gap: 80px;
    --gap: clamp(20px, 4vw, 32px);

    /* Форма */
    --r-nav: 12px;
    --r-card: 20px;
    --r-btn: 12px;
    --r-sm: 9px;
    --r-pill: 1000px;

    --shadow: 0 4px 20px rgba(37, 34, 30, .06);

    --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    margin: 0 0 var(--s-16);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -.025em;
    text-wrap: balance;
}

h1 { font-size: clamp(34px, 2rem + 2.2vw, 60px); line-height: 1.05; }
h2 { font-size: clamp(26px, 1.5rem + 1.3vw, var(--text-h-lg)); line-height: 1.18; }
h3 { font-size: clamp(20px, 1.15rem + .4vw, var(--text-h-sm)); line-height: 1.25; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--honey); color: var(--ink); }

/* ---------- Каркас ---------- */

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gap);
}

.section { padding-block: clamp(48px, 6vw, var(--section-gap)); }
.section--tight { padding-block: clamp(36px, 4.5vw, 48px); }
.section--paper { background: var(--paper); }
.section--mist { background: var(--mist); }
.section--honey { background: var(--accent-soft); }
.section--pollen { background: var(--pollen); }

.section__head { max-width: 760px; margin-bottom: clamp(28px, 3.5vw, var(--s-48)); }
.section__lead { font-size: var(--text-subheading); line-height: 1.55; color: var(--charcoal); margin: 0; }

/* Пилюля-метка над заголовком */
.eyebrow {
    display: inline-block;
    padding: 8px var(--s-16);
    margin-bottom: var(--s-16);
    background: var(--accent-soft);
    border-radius: var(--r-pill);
    color: var(--ink);
    font-size: var(--text-caption);
    font-weight: 600;
    letter-spacing: .02em;
}
.section--honey .eyebrow,
.section--pollen .eyebrow { background: var(--paper); color: var(--accent-deep); }

/* ---------- Кнопки ---------- */
/* Основное действие — оранжевое, вторичное — с нейтральным контуром. */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 14px var(--s-24);
    background: var(--honey);
    color: var(--ink);
    border: 1px solid transparent;
    border-radius: var(--r-btn);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { background: var(--accent-hover); border-color: transparent; }
.btn:disabled { opacity: .65; cursor: wait; transform: none; }
.btn:active { transform: translateY(1px); }

.btn--outline { background: transparent; color: var(--ink); border-color: #c9c3b9; }
.btn--outline:hover { background: var(--accent-soft); border-color: var(--honey); color: var(--ink); }

.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper:hover { background: var(--mist); border-color: var(--mist); color: var(--ink); }

.btn--wide { width: 100%; }
.btn--sm { min-height: 46px; padding: 10px var(--s-20); font-size: 15px; }

/* ---------- Шапка ---------- */

.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.header.is-stuck { box-shadow: var(--shadow); }

.header__bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-block: 14px;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo__text { display: block; }
.logo img { width: 48px; height: 48px; border-radius: 50%; }
.logo__name {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.1;
}
/* Вторая половина названия — акцентом, чтобы «Хозблок на даче» читалось как знак, а не как строка текста */
.logo__accent {
    font-weight: 600;
    color: var(--accent-deep);
}
.logo__tag { display: block; font-size: 13px; font-weight: 500; color: var(--graphite); letter-spacing: .01em; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
    padding: 10px 12px;
    border-radius: var(--r-nav);
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .012em;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s var(--ease);
}
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; }

/* Телефон в выдвижном меню — на широких экранах он есть в шапке */
.nav__phone { display: none; }

/* Каталог с выпадающим списком категорий */
.nav__group { position: relative; }
.nav__toggle { display: inline-flex; align-items: center; gap: 6px; }
.nav__chevron { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav__group.is-open .nav__chevron { transform: rotate(180deg); }

.nav__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 70;
    min-width: 232px;
    padding: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: 0 12px 32px rgba(37, 34, 30, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s var(--ease);
}
.nav__group.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: block; padding: 11px 14px; border-radius: var(--r-nav); font-size: 15px; white-space: nowrap; }
.nav__menu-all { margin-top: 4px; padding-top: 13px !important; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-nav) var(--r-nav); font-weight: 600; }

.header__contacts { display: flex; align-items: center; gap: 12px; }
.header__phone-link { font-size: 18px; font-weight: 700; letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.header__phone-link:hover { color: var(--accent-deep); }

.header__msgs { display: flex; gap: 8px; }
/* Иконки фирменные и уже круглые — своя подложка не нужна */
.header__msg {
    display: block;
    width: 38px; height: 38px;
    border-radius: var(--r-pill);
    transition: transform .2s var(--ease);
}
.header__msg svg { width: 100%; height: 100%; display: block; }
.header__msg:hover { transform: translateY(-2px); }

.burger {
    display: none;
    width: 48px; height: 48px;
    align-items: center; justify-content: center;
    background: transparent;
    border: 2px solid var(--ink);
    border-radius: var(--r-nav);
    cursor: pointer;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .2s var(--ease); }
.burger span::before, .burger span::after {
    content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Первый экран ---------- */
/* Фотография во всю ширину: она ведёт, интерфейс отступает.
   Затемняем ровно настолько, чтобы читался текст. */

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: clamp(400px, 56vh, 560px);
    min-height: clamp(400px, 56svh, 560px);
    padding-block: clamp(36px, 4.5vw, 56px);
    background: var(--ink);
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%; height: 100%;
    object-fit: cover;
    /* отдельный слой: фон не перерисовывается при прокрутке */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(96deg, rgba(18, 17, 15, .84) 0%, rgba(18, 17, 15, .62) 30%, rgba(18, 17, 15, .2) 54%, rgba(18, 17, 15, 0) 74%),
        linear-gradient(180deg, rgba(18, 17, 15, .42) 0%, transparent 24%);
}

.hero__inner { width: 100%; max-width: var(--wrap); }

.hero h1 {
    max-width: 24ch;
    margin-bottom: var(--s-20);
    color: var(--paper);
}
.hero__sub {
    max-width: 43ch;
    margin-bottom: var(--s-32);
    font-size: var(--text-subheading);
    line-height: 1.4;
    color: rgba(255, 255, 255, .92);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--s-24); }

/* Кнопка поверх фотографии — светлый контур вместо чернильной заливки */
.btn--onphoto {
    background: rgba(255, 255, 255, .12);
    color: var(--paper);
    border-color: rgba(255, 255, 255, .55);
    backdrop-filter: blur(6px);
}
.btn--onphoto:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- Полоса условий ---------- */

.terms { background: var(--paper); padding-block: clamp(32px, 4vw, var(--s-48)); border-bottom: 1px solid var(--line); }
.terms__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-24); }
.terms__item { display: flex; align-items: flex-start; gap: 12px; }
.terms__ico {
    flex-shrink: 0;
    display: grid; place-items: center;
    width: 44px; height: 44px;
    background: var(--honey);
    border-radius: 14px;
    color: var(--ink);
}
.terms__ico svg { width: 22px; height: 22px; }
.terms__txt { font-size: var(--text-caption); font-weight: 600; line-height: 1.4; }

/* ---------- Карточки ---------- */

.cards { display: grid; gap: var(--s-24); }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.card {
    padding: clamp(24px, 2.4vw, var(--s-32));
    background: var(--paper);
    border-radius: var(--r-card);
    box-shadow: var(--shadow);
}
.section--paper .card { background: var(--mist); box-shadow: none; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: var(--text-caption); color: var(--charcoal); }

.card__ico {
    display: grid; place-items: center;
    width: 52px; height: 52px;
    margin-bottom: var(--s-20);
    background: var(--honey);
    border-radius: var(--r-nav);
    color: var(--ink);
}
.card__ico svg { width: 26px; height: 26px; }

/* ---------- Оффер «оплата по факту» ---------- */

.payoff__grid { display: grid; grid-template-columns: minmax(300px, .88fr) minmax(0, 1.12fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.payoff__content > p { max-width: 58ch; }
.payoff__content > .btn { margin-bottom: var(--s-24); }
.payoff__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.payoff__list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: var(--s-16) var(--s-20);
    background: var(--paper);
    border-radius: var(--r-nav);
    font-size: 16px;
    font-weight: 500;
}
.payoff__list .check { flex-shrink: 0; font-weight: 800; }

/* ---------- Фотографии в смысловых блоках ---------- */

.meaning-photo, .work-photos figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-card); background: var(--mist); }
.meaning-photo picture, .work-photos picture { display: block; height: 100%; }
.meaning-photo img, .work-photos img { width: 100%; height: 100%; object-fit: cover; }
.meaning-photo figcaption, .work-photos figcaption {
    position: absolute;
    left: 16px; right: 16px; bottom: 16px;
    padding: 14px 16px;
    background: rgba(37, 34, 30, .82);
    color: var(--paper);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    backdrop-filter: blur(8px);
}
.meaning-photo figcaption strong, .meaning-photo figcaption span { display: block; }
.meaning-photo figcaption strong { font-size: 16px; }
.meaning-photo figcaption span { margin-top: 2px; color: rgba(255,255,255,.78); font-size: 13px; }
.meaning-photo--payoff { aspect-ratio: 4 / 5; box-shadow: 0 18px 44px rgba(92, 52, 15, .14); }

.work-photos {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr);
    grid-template-rows: minmax(160px, 1fr) auto;
    gap: 14px;
    margin-bottom: var(--s-32);
}
.work-photos__main { grid-row: 1 / 3; min-height: 430px; }
.work-photos__detail { min-height: 270px; }
.work-photos figcaption { font-size: 14px; font-weight: 600; }
.work-photos__note {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 145px;
    padding: 24px;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--r-card);
}
.work-photos__note span { margin-bottom: 8px; color: var(--honey); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.work-photos__note strong { font-size: clamp(17px, 2vw, 22px); line-height: 1.35; }
.work-photos__note .btn { align-self: start; margin-top: 16px; }
.proof-cards .card { background: var(--paper); }

/* ---------- Карточка товара в сетке ---------- */

.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: var(--s-24); }

.product {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border-radius: var(--r-card);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.product:hover { border-color: #d4b38d; box-shadow: 0 10px 28px rgba(37, 34, 30, .1); }

.product__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.product__media picture { display: block; height: 100%; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product:hover .product__media img { transform: scale(1.04); }
.product__media-link { display: block; height: 100%; }

/* Стрелки показываем при наведении, на сенсорных экранах — всегда */
.product__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    padding: 0;
    background: rgba(255, 255, 255, .92);
    border: 0;
    border-radius: var(--r-pill);
    color: var(--ink);
    cursor: pointer;
    opacity: 0;
    box-shadow: var(--shadow);
    transition: opacity .2s var(--ease), background-color .2s var(--ease);
}
.product__nav svg { width: 18px; height: 18px; }
.product__nav:hover { background: #fff; }
.product__nav--prev { left: 8px; }
.product__nav--next { right: 8px; }
.product:hover .product__nav,
.product__nav:focus-visible { opacity: 1; }

.product__dots {
    position: absolute;
    left: 0; right: 0; bottom: 10px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 5px;
    pointer-events: none;
}
.product__dot {
    width: 6px; height: 6px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 1px 3px rgba(31, 30, 28, .35);
    transition: width .2s var(--ease), background-color .2s var(--ease);
}
.product__dot.is-active { width: 16px; background: #fff; }

/* Кружок ожидания, пока грузится очередное фото */
.product__spinner {
    position: absolute;
    top: 50%; left: 50%;
    z-index: 4;
    width: 26px; height: 26px;
    margin: -13px 0 0 -13px;
    border: 3px solid rgba(255, 255, 255, .55);
    border-top-color: #fff;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s var(--ease);
}
.product__media.is-loading .product__spinner { opacity: 1; animation: cardSpin .7s linear infinite; }
.product__media.is-loading img { filter: brightness(.82); }

@keyframes cardSpin { to { transform: rotate(360deg); } }

/* На телефоне и планшете наведения нет — стрелки видно сразу */
@media (hover: none) {
    .product__nav { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .product__media.is-loading .product__spinner { animation: none; }
}


.product__sale {
    position: absolute;
    top: 12px; left: 12px;
    padding: 8px 14px;
    background: var(--honey);
    border-radius: var(--r-pill);
    font-size: var(--text-caption);
    font-weight: 700;
    color: var(--ink);
}
.product__size {
    position: absolute;
    bottom: 12px; left: 12px;
    padding: 8px 14px;
    background: var(--paper);
    border-radius: var(--r-pill);
    font-size: var(--text-caption);
    font-weight: 600;
}

.product__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-20); }
.product__name { font-size: var(--text-subheading); font-weight: 700; line-height: 1.4; letter-spacing: -.015em; text-decoration: none; margin-bottom: 12px; }
.product__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-16); }
.tag { padding: 6px 12px; background: var(--mist); border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--charcoal); }

.product__price { margin-top: auto; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-size: var(--text-h-sm); font-weight: 800; letter-spacing: .01em; }
.price--old { font-size: var(--text-caption); font-weight: 500; color: var(--graphite); text-decoration: line-through; }
.product__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: var(--s-16); }
.product__actions .btn { padding-inline: 10px; }
.product__model { margin: -4px 0 14px; font-size: 13px; color: var(--graphite); }
.product__assembly { margin: 4px 0 0; font-size: 13px; color: var(--graphite); }
.product-description { margin-bottom: 32px; }
.product-description p { font-size: 16px; line-height: 1.7; }
.price-guide { margin-bottom: 28px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--pollen); overflow: hidden; }
.price-guide summary { padding: 18px 24px; cursor: pointer; font-weight: 700; }
.price-guide summary span { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--graphite); }
.price-guide__body { padding: 0 24px 24px; font-size: 15px; }
.price-guide table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.price-guide caption { text-align: left; }
.price-guide th, .price-guide td { padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.price-guide td { white-space: nowrap; }
.price-guide .btn { padding: 10px 12px; font-size: 13px; }
@media (max-width: 380px) {
    .price-guide summary { padding: 16px; }
    .price-guide__body { padding: 0 12px 16px; }
    .price-guide .btn { padding-inline: 8px; }
}

/* ---------- Фильтры каталога ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-24); }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px var(--s-20);
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: var(--r-pill);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--accent-soft); border-color: var(--honey); color: var(--ink); font-weight: 700; }

/* ---------- Вкладки категорий с миниатюрами ---------- */

.cat-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: var(--s-24);
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}
.cat-tab {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding: 6px 18px 6px 6px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.cat-tab__pic {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--mist);
}
.cat-tab__pic picture { display: block; height: 100%; }
.cat-tab__pic img { width: 100%; height: 100%; object-fit: cover; }

.cat-tab:hover { border-color: #c9c3b9; }
.cat-tab.is-active {
    background: var(--accent-soft);
    border-color: var(--honey);
    color: var(--accent-deep);
}

/* ---------- Кнопка «Показать ещё» ---------- */

.catalog__count--home { margin: 0 0 var(--s-16); }
.load-more { margin-top: var(--s-32); text-align: center; }
.load-more + .row-center { margin-top: var(--s-24); }
.load-more__note { margin: 12px 0 0; font-size: var(--text-caption); color: var(--graphite); }
.grid-products[aria-busy="true"] { opacity: .5; transition: opacity .2s var(--ease); }

.catalog__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-16); margin-bottom: var(--s-24); }
.catalog__count { font-size: var(--text-caption); font-weight: 600; color: var(--graphite); }
.sorter { display: flex; align-items: center; gap: 10px; font-size: var(--text-caption); color: var(--graphite); }
.sorter select {
    min-height: 46px;
    padding: 10px var(--s-16);
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: var(--r-nav);
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
}

/* ---------- Страница товара ---------- */

.product-page { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); grid-template-areas: 'intro order' 'details order'; gap: 32px clamp(28px, 4vw, var(--s-48)); align-items: start; }
.product-page__intro { grid-area: intro; }
.product-page__sku { margin: -8px 0 var(--s-20); font-size: var(--text-caption); color: var(--graphite); }
.product-page__details { grid-area: details; min-width: 0; }

/* ---------- Подробности под катом ---------- */

.collapsible { position: relative; }

.collapsible__body {
    max-height: 340px;
    overflow: hidden;
    transition: max-height .5s var(--ease);
}
/* Раскрытием управляет класс, а не вычисленная в скрипте высота:
   так ничего не рассинхронизируется при повторных нажатиях. */
.collapsible.is-open .collapsible__body { max-height: 6000px; }

/* Мягкое затухание у обрыва текста — видно, что дальше есть продолжение */
.collapsible__fade {
    position: absolute;
    left: 0; right: 0;
    bottom: 62px;
    height: 110px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--paper) 82%);
    pointer-events: none;
    transition: opacity .3s var(--ease);
}
.collapsible.is-open .collapsible__fade { opacity: 0; }

.collapsible__btn {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: var(--s-20);
}
.collapsible__btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.collapsible.is-open .collapsible__btn svg { transform: rotate(180deg); }

/* Пока скрипт не отработал, текст показываем целиком — без него кат не раскрыть */
.collapsible:not([data-ready]) .collapsible__body { max-height: none; }
.collapsible:not([data-ready]) .collapsible__fade,
.collapsible:not([data-ready]) .collapsible__btn { display: none; }

@media (prefers-reduced-motion: reduce) {
    .collapsible__body { transition: none; }
}
.product-page h1 { font-size: clamp(28px, 3.5vw, 44px); line-height: 1.15; }
.product-page__media { border-radius: var(--r-card); overflow: hidden; background: var(--mist); }
.product-page__media img { width: 100%; }


/* ---------- Галерея фотографий товара ---------- */
/* Высота задана соотношением сторон ещё до загрузки скриптов,
   поэтому блок не «прыгает», пока грузятся фотографии и Swiper. */

.gallery { margin-bottom: var(--s-32); }

.gallery__main {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-card);
    overflow: hidden;
    background: var(--mist);
}
.gallery__main .swiper-wrapper { height: 100%; }
.gallery__main .swiper-slide { height: 100%; }

.gallery__link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: zoom-in;
}
.gallery__link picture { display: block; width: 100%; height: 100%; }
.gallery__link img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Подсказка «фото можно открыть крупно» */
.gallery__zoom {
    position: absolute;
    top: 12px; right: 12px;
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    background: var(--paper);
    border-radius: var(--r-pill);
    color: var(--ink);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: scale(.9);
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    pointer-events: none;
}
.gallery__zoom svg { width: 21px; height: 21px; }
.gallery__link:hover .gallery__zoom,
.gallery__link:focus-visible .gallery__zoom { opacity: 1; transform: none; }

.gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    background: var(--paper);
    border: 0;
    border-radius: var(--r-pill);
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.gallery__arrow svg { width: 22px; height: 22px; }
.gallery__arrow:hover { transform: translateY(-50%) scale(1.08); }
.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }
.gallery__arrow.swiper-button-disabled { opacity: 0; pointer-events: none; }

.gallery__counter {
    position: absolute;
    right: 12px; bottom: 12px;
    z-index: 5;
    padding: 8px 14px;
    background: var(--paper);
    border-radius: var(--r-pill);
    font-size: var(--text-caption);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Лента миниатюр */
.gallery__thumbs { margin-top: 10px; overflow: hidden; }
.gallery__thumbs .swiper-slide {
    width: 92px;
    height: auto;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    opacity: .55;
    box-shadow: inset 0 0 0 2px transparent;
    transition: opacity .2s var(--ease), box-shadow .2s var(--ease);
}
@media (hover: hover) {
    .gallery__thumbs .swiper-slide:hover { opacity: .85; }
}
.gallery__thumbs .swiper-slide-thumb-active { opacity: 1; box-shadow: inset 0 0 0 2px var(--ink); }
.gallery__thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* Просмотрщик фото */
.pswp { --pswp-bg: #12110f; }
.pswp__bg { background: var(--pswp-bg); }

.h-sub { font-size: var(--text-h-sm); margin-bottom: var(--s-16); }

.pp-box {
    grid-area: order;
    position: sticky;
    top: 96px;
    padding: clamp(24px, 2.4vw, var(--s-32));
    background: var(--pollen);
    border-radius: var(--r-card);
}
.pp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.pp-price .price { font-size: clamp(30px, 1.8rem + 1.4vw, 44px); }
.pp-save { font-size: var(--text-caption); font-weight: 600; color: var(--charcoal); margin-bottom: 4px; }

/* Наличие: то же, что уходит в микроразметку и в товарный фид */
.pp-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 var(--s-20);
    font-size: var(--text-caption);
    font-weight: 600;
    color: #1c7a3e;
}
.pp-stock__dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #24a35a;
    box-shadow: 0 0 0 3px rgba(36, 163, 90, .18);
}

.pp-list { list-style: none; padding: 0; margin: 0 0 var(--s-24); display: grid; gap: 10px; font-size: 16px; }
.pp-list li { display: flex; gap: 10px; align-items: flex-start; }
.pp-list b { font-weight: 700; }

.specs { width: 100%; border-collapse: collapse; margin-bottom: var(--s-32); }
.specs tr { border-bottom: 1px solid var(--line); }
.specs tr:last-child { border-bottom: 0; }
.specs th, .specs td { padding: 14px 0; text-align: left; vertical-align: top; font-size: 16px; }
.specs th { width: 42%; padding-right: var(--s-20); font-weight: 500; color: var(--graphite); }
.specs td { font-weight: 600; }

.opts { list-style: none; margin: 0 0 var(--s-32); padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.opts li { padding: 10px var(--s-16); background: var(--mist); border-radius: var(--r-pill); font-size: var(--text-caption); font-weight: 500; }

.notes { list-style: none; padding: 0; margin: 0 0 var(--s-32); display: grid; gap: 10px; font-size: 16px; }
.notes li { display: flex; gap: 10px; align-items: flex-start; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-block: var(--s-20); font-size: var(--text-caption); color: var(--graphite); }
.breadcrumbs a { color: var(--graphite); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Этапы ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-24); }
.step { padding: clamp(24px, 2.4vw, var(--s-32)); background: var(--paper); border-radius: var(--r-card); }
.step__n {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    margin-bottom: var(--s-20);
    background: var(--honey);
    border-radius: var(--r-pill);
    font-size: var(--text-subheading);
    font-weight: 800;
}
.step h3 { font-size: var(--text-subheading); margin-bottom: 8px; }
.step p { font-size: var(--text-caption); color: var(--charcoal); }
.process-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.meaning-photo--process { position: relative; top: auto; width: 100%; height: auto; min-height: 0; aspect-ratio: auto; }
.steps--vertical { grid-template-columns: 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)) auto; gap: 16px; }
.steps--vertical .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 18px; min-height: 0; padding: clamp(20px, 2.3vw, 28px); border: 1px solid var(--line); }
.steps--vertical .step__n { margin: 0; width: 44px; height: 44px; }
.steps--vertical .step h3 { margin-bottom: 5px; }
.steps--vertical .step p + p { margin-top: 10px; }
/* Кнопка под этапами не должна тянуться на всю высоту строки грида */
.process-more { align-self: start; justify-self: start; }

/* ---------- Отзывы ---------- */

.reviews {
    padding: clamp(28px, 3.5vw, var(--s-48));
    background: var(--mist);
    border-radius: var(--r-card);
}

.reviews__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s-24);
    margin-bottom: var(--s-32);
}
.reviews__head h2 { margin-bottom: var(--s-16); }
.reviews__lead { max-width: 60ch; margin: 0; color: var(--charcoal); }

.reviews__ratings { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--s-20); }
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--paper);
    border-radius: var(--r-pill);
    text-decoration: none;
    box-shadow: var(--shadow);
}
.rating-badge__name { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.rating-badge__score { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 700; color: var(--ink); }
.rating-badge__score svg { width: 15px; height: 15px; color: #ffb400; }

.reviews__arrows { display: flex; gap: 8px; flex-shrink: 0; }
.reviews__arrow {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    color: var(--ink);
    cursor: pointer;
    transition: border-color .2s var(--ease), opacity .2s var(--ease);
}
.reviews__arrow svg { width: 20px; height: 20px; }
.reviews__arrow:hover { border-color: var(--honey); }
.reviews__arrow.swiper-button-disabled { opacity: .35; cursor: default; }

/* Лента отзывов */
/* При перетаскивании мышью не даём выделяться тексту и «отрываться» фото —
   иначе вместо листания получается выделение куска страницы. */
.reviews__slider,
.reviews__slider *,
.gallery__main,
.gallery__main * {
    user-select: none;
    -webkit-user-select: none;
}
.reviews__slider img,
.gallery__main img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.reviews__slider { overflow: hidden; }
.reviews__slider .swiper-wrapper { align-items: stretch; }

.review {
    display: flex;
    flex-direction: column;
    height: auto;
    background: var(--paper);
    border-radius: var(--r-card);
    overflow: hidden;
}
.review__photo { aspect-ratio: 8 / 5; background: var(--line); }
.review__photo picture { display: block; height: 100%; }
.review__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.review__body { display: flex; flex-direction: column; flex: 1; padding: clamp(18px, 2vw, 24px); }
.review__name { margin: 0 0 2px; font-size: 17px; font-weight: 700; }
.review__place { margin: 0 0 10px; font-size: 14px; color: var(--graphite); }
.review__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.review__stars { font-size: 16px; letter-spacing: 2px; color: #ffb400; white-space: nowrap; }
.review__date { font-size: 13px; color: var(--graphite); white-space: nowrap; }
.review__stars .is-dim { color: var(--line); }
.review__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--charcoal); }

.reviews__dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--s-24); }
.reviews__dot {
    width: 8px; height: 8px;
    padding: 0;
    background: #d8d3ca;
    border: 0;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: width .25s var(--ease), background-color .25s var(--ease);
}
.reviews__dot.is-active { width: 26px; background: var(--honey); }

@media (max-width: 900px) {
    .reviews__head { flex-direction: column; }
    .reviews__arrows { display: none; }
}

@media (max-width: 680px) {
    .reviews { padding: var(--s-20); }
    .review__text { font-size: 15px; }
}

/* ---------- Видеообзоры ---------- */
/* Ролики вертикальные (352×640), поэтому колонка узкая, а не во всю ширину. */

.videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: var(--s-24);
    max-width: 900px;
}

.video-card { margin: 0; }

.video-card__frame {
    position: relative;
    aspect-ratio: 11 / 20;
    border-radius: var(--r-card);
    overflow: hidden;
    background: var(--ink);
}
.video-card__frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--ink);
}
/* На весь экран вертикальный ролик должен вписаться целиком,
   иначе cover срезал бы его по бокам под горизонтальный монитор. */
.video-card__frame video:fullscreen { object-fit: contain; background: #000; }
.video-card__frame video:-webkit-full-screen { object-fit: contain; background: #000; }

/* Своя кнопка запуска поверх постера */
.video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 0;
    background: linear-gradient(to bottom, rgba(31, 30, 28, .1), rgba(31, 30, 28, .45));
    border: 0;
    color: #fff;
    cursor: pointer;
    transition: opacity .25s var(--ease);
}
.video-card__play-circle {
    display: grid;
    place-items: center;
    width: 64px; height: 64px;
    background: var(--honey);
    border-radius: var(--r-pill);
    color: var(--ink);
    box-shadow: 0 6px 22px rgba(31, 30, 28, .35);
    transition: transform .25s var(--ease), background-color .2s var(--ease);
}
.video-card__play-circle svg { width: 26px; height: 26px; margin-left: 3px; }
.video-card__play-text { font-size: 15px; font-weight: 700; text-shadow: 0 1px 6px rgba(31, 30, 28, .5); }
/* Только для мыши: на сенсорном экране iOS считает первый тап по элементу
   с :hover наведением, и кнопку пришлось бы нажимать дважды. */
@media (hover: hover) {
    .video-card__play:hover .video-card__play-circle { transform: scale(1.08); background: var(--accent-hover); }
}
.video-card__frame.is-playing .video-card__play { opacity: 0; pointer-events: none; }

/* Длительность в углу: панель управления появляется снизу, так что не мешает */
.video-card__time {
    position: absolute;
    right: 10px; top: 10px;
    padding: 5px 10px;
    background: rgba(31, 30, 28, .78);
    border-radius: var(--r-pill);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    transition: opacity .2s var(--ease);
}
.video-card__frame.is-playing .video-card__time { opacity: 0; }

.video-card__caption { padding: 14px 4px 0; }
.video-card__title { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.video-card__note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--graphite); }

@media (max-width: 680px) {
    .videos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--s-20); }
    .video-card__note { font-size: 13px; }
}

/* ---------- Подарок ---------- */

.gift {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(24px, 3vw, var(--s-48));
    align-items: center;
    padding: clamp(28px, 3.4vw, var(--s-48));
    background: var(--pollen);
    border-radius: var(--r-card);
}
.gift__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gift__items li {
    display: flex; align-items: center; gap: 12px;
    padding: 14px var(--s-20);
    background: var(--paper);
    border-radius: var(--r-nav);
    font-size: 16px; font-weight: 600;
}
.gift__items .ico { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; color: var(--ink); }
.gift__items .ico svg { width: 22px; height: 22px; }
.gift__items + .btn { margin-top: var(--s-16); }

/* ---------- Подарок: анимированная коробка ---------- */

.gift-art {
    width: clamp(112px, 13vw, 150px);
    margin-bottom: var(--s-20);
    color: var(--ink);
}
.gift-art svg { width: 100%; height: auto; overflow: visible; }

/* Коробка мягко покачивается, будто её только что поставили */
.gift-art__box { transform-origin: 70px 118px; animation: giftSway 4.2s var(--ease) infinite; }
.gift-art__lid { transform-origin: 70px 60px; animation: giftLid 4.2s var(--ease) infinite; }
.gift-art__bow { transform-origin: 70px 44px; animation: giftBow 4.2s var(--ease) infinite; }
.gift-art__shadow { transform-origin: 70px 123px; animation: giftShadow 4.2s var(--ease) infinite; }

.gift-art__spark { opacity: 0; transform-origin: center; animation: giftSpark 4.2s var(--ease) infinite; }
.gift-art__spark--1 { animation-delay: .2s; }
.gift-art__spark--2 { animation-delay: .9s; }
.gift-art__spark--3 { animation-delay: 1.5s; }

@keyframes giftSway {
    0%, 62%, 100% { transform: rotate(0deg) translateY(0); }
    68% { transform: rotate(-2.5deg) translateY(-3px); }
    76% { transform: rotate(2deg) translateY(-1px); }
    84% { transform: rotate(-1deg) translateY(0); }
}
@keyframes giftLid {
    0%, 60%, 100% { transform: translateY(0) rotate(0deg); }
    68% { transform: translateY(-7px) rotate(-3deg); }
    78% { transform: translateY(-2px) rotate(1.5deg); }
}
@keyframes giftBow {
    0%, 60%, 100% { transform: scale(1); }
    70% { transform: scale(1.12); }
    82% { transform: scale(.98); }
}
@keyframes giftShadow {
    0%, 62%, 100% { transform: scaleX(1); opacity: .16; }
    70% { transform: scaleX(.86); opacity: .1; }
}
@keyframes giftSpark {
    0%, 55% { opacity: 0; transform: scale(.5); }
    66% { opacity: 1; transform: scale(1.1); }
    80% { opacity: .85; transform: scale(1); }
    92%, 100% { opacity: 0; transform: scale(.6); }
}

/* Если человек просил не анимировать — показываем спокойную картинку */
@media (prefers-reduced-motion: reduce) {
    .gift-art__box, .gift-art__lid, .gift-art__bow, .gift-art__shadow { animation: none; }
    .gift-art__spark { animation: none; opacity: .9; }
}

/* ---------- Форма ---------- */

.lead-card { padding: clamp(24px, 2.6vw, var(--s-40)); background: var(--paper); border-radius: var(--r-card); box-shadow: var(--shadow); }
.section--paper .lead-card { background: var(--mist); box-shadow: none; }
.lead-card h2 { font-size: var(--text-h-sm); margin-bottom: 6px; }
.lead-card__note { font-size: var(--text-caption); color: var(--graphite); margin-bottom: var(--s-24); }

.field { margin-bottom: var(--s-16); }
.field label { display: block; margin-bottom: 6px; font-size: var(--text-caption); font-weight: 600; }
.field input, .field textarea {
    width: 100%;
    min-height: 54px;
    padding: 15px var(--s-16);
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: var(--r-btn);
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    transition: border-color .2s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--accent-soft); outline-offset: 1px; border-color: var(--accent-deep); }
.field input[aria-invalid="true"] { border-color: #b42318; background: #fff8f6; }
.field input::placeholder, .field textarea::placeholder { color: var(--graphite); }
.field__error { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; color: #b42318; }
.field__error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { margin: var(--s-16) 0 0; font-size: 13px; line-height: 1.45; color: var(--graphite); }
.consent a { color: var(--graphite); }

/* Согласие на обработку данных — обязательная отметка */
.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--graphite);
    cursor: pointer;
}
.consent-check input {
    flex-shrink: 0;
    width: 22px; height: 22px;
    margin: 0;
    accent-color: var(--honey);
    cursor: pointer;
}
.consent-check a { color: var(--graphite); }
.consent-check input[aria-invalid="true"] { outline: 2px solid var(--honey); outline-offset: 2px; border-radius: 4px; }
.consent-check + .field__error:empty { display: none; }
.consent-check + .field__error { margin: -8px 0 12px; }

/* Мессенджеры под формой */
.form-msgs { margin-top: var(--s-20); padding-top: var(--s-20); border-top: 1px solid var(--line); }
.form-msgs__label { display: block; margin-bottom: 10px; font-size: 14px; color: var(--graphite); text-align: center; }
.form-msgs__links { display: flex; gap: 10px; }
.form-msg {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-btn);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.form-msg svg { width: 22px; height: 22px; flex-shrink: 0; }
.form-msg:hover { background: var(--mist); border-color: #c9c3b9; }

.form-ok {
    padding: var(--s-32) var(--s-24);
    background: var(--honey);
    border-radius: var(--r-card);
    font-size: var(--text-subheading);
    font-weight: 600;
    text-align: center;
}

/* Крупный телефон в блоке контактов */
.phone-lg { display: inline-block; max-width: 100%; font-size: clamp(22px, 3vw, 38px); font-weight: 800; letter-spacing: -.03em; text-decoration: none; margin-bottom: 4px; }
.muted { color: var(--graphite); font-size: var(--text-caption); }

/* Ряд кнопок по центру под секцией */
.row-center { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: var(--s-32); }

/* Блок «свяжитесь с нами» */
.cta__grid { align-items: start; }
.cta__text { margin-bottom: var(--s-32); }
.cta__label { margin-bottom: 8px; font-size: 16px; }
.cta__msgs { margin-top: var(--s-20); }

/* Страница «спасибо» и 404 */
.centered { max-width: 680px; margin-inline: auto; text-align: center; }
.centered .msgs, .centered .row-center { justify-content: center; }
.big-mark {
    display: grid; place-items: center;
    width: 88px; height: 88px;
    margin: 0 auto var(--s-24);
    background: var(--honey);
    border-radius: var(--r-pill);
}
.big-mark svg { width: 40px; height: 40px; }
.code-404 { font-size: clamp(64px, 4rem + 6vw, 120px); font-weight: 800; line-height: 1; letter-spacing: .01em; margin-bottom: var(--s-16); }

.callout--gap { margin-bottom: var(--s-24); }
.contacts__mail { margin-top: var(--s-20); }
.footer__hours { margin-bottom: var(--s-16); }
.pp-contact { margin-top: var(--s-24); padding-top: var(--s-24); border-top: 1px solid rgba(31, 30, 28, .12); }
.pp-contact__label { margin-bottom: 10px; }
.pp-sku { margin-top: 14px; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border-radius: var(--r-card); overflow: hidden; }
.section--paper .faq details { background: var(--mist); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-16);
    padding: var(--s-24);
    font-size: var(--text-subheading);
    font-weight: 600;
    letter-spacing: .015em;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    flex-shrink: 0;
    width: 11px; height: 11px;
    border-right: 2.5px solid var(--ink);
    border-bottom: 2.5px solid var(--ink);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq__body { padding: 0 var(--s-24) var(--s-24); font-size: 16px; color: var(--charcoal); }

/* ---------- Мессенджеры ---------- */

.msgs { display: flex; flex-wrap: wrap; gap: 8px; }
.msg {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 48px;
    padding: 12px var(--s-20);
    background: var(--paper);
    border: 1px solid #c9c3b9;
    border-radius: var(--r-pill);
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.msg:hover { background: var(--accent-soft); border-color: var(--honey); color: var(--ink); }
.msg svg { width: 20px; height: 20px; }

/* ---------- Подвал ---------- */

.footer { background: var(--ink); color: var(--paper); padding-block: clamp(40px, 5vw, var(--section-gap)) var(--s-24); }
.footer a { color: rgba(255, 255, 255, .74); text-decoration: none; }
.footer a:hover { color: var(--paper); }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(24px, 3vw, var(--s-40)); }
.footer h4 { color: var(--paper); font-size: var(--text-caption); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--s-16); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 16px; }
.footer p { color: rgba(255, 255, 255, .74); font-size: var(--text-caption); }
.footer__phone { display: block; color: var(--paper) !important; font-size: var(--text-h-sm); font-weight: 800; margin-bottom: 4px; }
.footer__logo { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s-16); }
.footer__logo img { width: 48px; height: 48px; border-radius: 50%; }
.footer__logo b { font-size: var(--text-subheading); font-weight: 800; }
.footer .msg { background: transparent; border-color: rgba(255, 255, 255, .3); color: var(--paper); }
.footer .msg:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.footer__bottom {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
    margin-top: var(--s-40); padding-top: var(--s-24);
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: 14px;
    color: rgba(255, 255, 255, .55);
}

/* ---------- Панель на телефоне ---------- */

.mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    display: none;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
}
.mobile-bar__msg {
    flex-shrink: 0;
    display: block;
    width: 50px; height: 50px;
    border-radius: var(--r-pill);
}
.mobile-bar__msg svg { width: 100%; height: 100%; display: block; }
.mobile-bar__call { flex: 1; min-height: 50px; padding-inline: 12px; font-size: 15px; }
.mobile-bar__call svg { width: 18px; height: 18px; }

/* ---------- Модальное окно ---------- */

.modal {
    position: fixed; inset: 0; z-index: 100;
    display: grid; place-items: center;
    padding: var(--s-20);
    background: rgba(31, 30, 28, .55);
    opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal:focus { outline: none; }
.modal__box {
    position: relative;
    width: 100%; max-width: 460px;
    max-height: calc(100dvh - 40px); overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(24px, 4vw, var(--s-40));
    background: var(--paper);
    border-radius: var(--r-card);
    transform: translateY(16px);
    transition: transform .3s var(--ease);
}
.modal.is-open .modal__box { transform: none; }
.modal__box h2 { font-size: var(--text-h-sm); margin-bottom: 12px; padding-right: 38px; }
.modal__product { font-weight: 600; margin-bottom: 6px; }
.modal__close {
    position: absolute; top: 14px; right: 14px;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: var(--mist);
    border: 0; border-radius: var(--r-pill);
    font-size: 22px; line-height: 1; color: var(--ink);
    cursor: pointer;
    transition: background-color .2s var(--ease);
}
.modal__close:hover { background: var(--line); }

/* ---------- Появление при прокрутке ---------- */

.reveal { opacity: 1; }
.reveal.is-pending { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
    .reveal.is-pending { opacity: 1; transform: none; }
}

/* ---------- Текстовые страницы ---------- */

/* Колонка прозы держит комфортную длину строки, но прижата к левому
   краю контейнера — как и заголовки остальных секций. */
.wrap.prose { max-width: var(--wrap); }
.prose > * { max-width: 720px; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.3em; font-size: var(--text-subheading); }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 10px; margin-bottom: 1.4em; }
.prose strong { font-weight: 700; }

.callout {
    padding: var(--s-24);
    background: var(--accent-soft);
    border-radius: var(--r-card);
    font-size: 16px;
    font-weight: 500;
}

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
    .product-page { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'intro' 'order' 'details'; }
    .pp-box { position: static; }
    .payoff__grid, .process-layout { grid-template-columns: 1fr; }
    .meaning-photo--payoff { aspect-ratio: 16 / 10; }
    .meaning-photo--process { height: auto; aspect-ratio: 16 / 10; }
}

/* Широкой шапке нужно около 1045 px: логотип, меню, телефон и мессенджеры.
   Ниже этого прячем меню под бургер — иначе содержимое не помещается
   и у страницы появляется горизонтальная прокрутка. */
@media (max-width: 1099px) {
    .nav {
        position: absolute;
        inset: 100% 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px var(--gap) var(--s-20);
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        max-height: calc(100dvh - 160px);
        overflow-y: auto;
        transition: opacity .2s var(--ease), visibility .2s var(--ease);
    }
    .nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
    .nav a { padding: 14px var(--s-16); font-size: var(--text-subheading); border-radius: var(--r-nav); }
    /* В выдвижном меню список категорий раскрыт сразу — лишний тап не нужен */
    .nav__group { position: static; }
    .nav__toggle { justify-content: space-between; }
    .nav__chevron { display: none; }
    .nav__menu {
        position: static;
        min-width: 0;
        margin: 0 0 4px var(--s-16);
        padding: 0 0 0 12px;
        background: none;
        border: 0;
        border-left: 2px solid var(--line);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .nav__menu a { padding: 11px var(--s-16); font-size: 17px; }
    .nav__menu-all { border-top: 0; padding-top: 11px !important; }
    .burger { display: flex; flex-shrink: 0; order: 3; }
    .header__contacts { order: 2; margin-left: auto; }
    .header__phone-link { font-size: 17px; }
}

@media (max-width: 680px) {
    body { font-size: 16px; padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
    html { scroll-padding-top: 84px; }

    h1 { font-size: clamp(28px, 1.5rem + 3vw, 36px); }
    h2 { font-size: 24px; }
    h3 { font-size: 19px; }

    .section { padding-block: 44px; }
    .section--tight { padding-block: 32px; }
    .section__head { margin-bottom: var(--s-24); }
    .section__lead { font-size: 17px; }

    .logo img { width: 42px; height: 42px; }
    .logo__name { font-size: 17px; }
    /* дескриптор возвращён: в шапке хватает места */
    .header__bar { gap: 12px; padding-block: 10px; }
    /* На телефоне контакты живут в выдвижном меню и в нижней панели,
       поэтому из шапки убираем и номер, и значки мессенджеров. */
    .header__phone-link { display: none; }
    .header__msgs { display: none; }

    .nav__phone {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 8px;
        padding: 14px var(--s-16);
        background: var(--accent-soft);
        border-radius: var(--r-nav);
        text-decoration: none;
    }
    .nav__phone svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent-deep); }
    .nav__phone b { display: block; font-size: 19px; font-weight: 700; }
    .nav__phone small { display: block; font-size: 13px; color: var(--graphite); }
    .header__msg { width: 36px; height: 36px; }
    .burger { margin-left: auto; }

    .hero {
        align-items: flex-start;
        min-height: 0;
        padding-block: clamp(20px, 4vw, 30px) clamp(120px, 42vw, 200px);
    }
    .hero__bg { height: 118%; object-position: center top; }
    .hero::after {
        background: linear-gradient(180deg,
            rgba(18, 17, 15, .8) 0%,
            rgba(18, 17, 15, .62) 32%,
            rgba(18, 17, 15, .22) 56%,
            rgba(18, 17, 15, .02) 78%,
            rgba(18, 17, 15, 0) 100%);
    }
    .hero h1 { max-width: none; }
    .hero__sub { max-width: none; font-size: 17px; margin-bottom: var(--s-24); }
    .hero__actions { width: 100%; }
    .hero__actions .btn { width: 100%; }

    .btn { min-height: 52px; font-size: 16px; }
    .mobile-bar { display: flex; }

    .card, .step, .lead-card { padding: var(--s-24); }
    .product__name { font-size: 17px; }
    .price { font-size: 21px; }
    .faq summary { padding: var(--s-20); font-size: 17px; }
    .faq__body { padding: 0 var(--s-20) var(--s-20); }
    .specs th, .specs td { display: block; width: 100%; }
    .specs th { padding: 12px 0 1px; }
    .specs td { padding: 0 0 12px; }
    .h-sub { font-size: 21px; }
    .collapsible__body { max-height: 260px; }
    .gallery__thumbs .swiper-slide { width: 74px; }
    .gallery__arrow { width: 42px; height: 42px; }
    .gallery__arrow--prev { left: 8px; }
    .gallery__arrow--next { right: 8px; }
    /* на телефоне подсказку показываем сразу — наведения там нет */
    .gallery__zoom { opacity: 1; transform: none; width: 38px; height: 38px; }
    .product__actions { grid-template-columns: 1fr 1fr; }
    .chip { min-height: 44px; padding: 8px var(--s-16); font-size: 15px; }
    .filters { gap: 6px; margin-bottom: var(--s-20); }
    .footer__bottom { margin-top: var(--s-24); }
    .work-photos { grid-template-columns: 1fr; grid-template-rows: auto; }
    .work-photos__main { grid-row: auto; min-height: 320px; }
    .work-photos__detail { min-height: 260px; }
    .meaning-photo figcaption, .work-photos figcaption { left: 10px; right: 10px; bottom: 10px; }
    .meaning-photo--payoff, .meaning-photo--process { aspect-ratio: 4 / 3; }
    .steps--vertical { grid-template-rows: none; gap: 12px; }
    .steps--vertical .step { grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 14px; padding: 18px; }
    .sorter { width: 100%; flex-wrap: wrap; }
    .sorter select { flex: 1; min-width: 0; max-width: 100%; }
    .gift { padding: 24px; }
    .modal { padding: 12px; }
    .modal__box { padding: 24px; max-height: calc(100dvh - 24px); }
}

/* Общие детали и доступность */
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 120; padding: 12px 20px; background: var(--ink); color: var(--paper); border-radius: 10px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.cards > *, .terms__grid > *, .footer__grid > *, .payoff__grid > * { min-width: 0; }
.card, .step { border: 1px solid var(--line); }
.terms__item { align-items: center; }
.terms__ico, .card__ico, .step__n { background: var(--accent-soft); color: var(--accent-deep); }
.hero .eyebrow { background: var(--accent-soft); }
.hero :focus-visible, .footer :focus-visible { outline-color: var(--honey); }
.price, .price--old { white-space: nowrap; font-variant-numeric: tabular-nums; }
.contacts__mail { overflow-wrap: anywhere; }
.filter-label { margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--graphite); }
.catalog__reset { font-size: 14px; font-weight: 600; color: var(--accent-deep); }
/* ---------- Вкладки категорий с миниатюрами ---------- */

.cat-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: var(--s-24);
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}
.cat-tab {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding: 6px 18px 6px 6px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.cat-tab__pic {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--mist);
}
.cat-tab__pic picture { display: block; height: 100%; }
.cat-tab__pic img { width: 100%; height: 100%; object-fit: cover; }

.cat-tab:hover { border-color: #c9c3b9; }
.cat-tab.is-active {
    background: var(--accent-soft);
    border-color: var(--honey);
    color: var(--accent-deep);
}

/* ---------- Кнопка «Показать ещё» ---------- */

.catalog__count--home { margin: 0 0 var(--s-16); }
.load-more { margin-top: var(--s-32); text-align: center; }
.load-more + .row-center { margin-top: var(--s-24); }
.load-more__note { margin: 12px 0 0; font-size: var(--text-caption); color: var(--graphite); }
.grid-products[aria-busy="true"] { opacity: .5; transition: opacity .2s var(--ease); }

.catalog__top { padding-block: 18px; border-block: 1px solid var(--line); }
.filters--tags .chip { font-size: 14px; border-width: 1px; }
.pp-box { border: 1px solid #ead7c0; }
.pp-label { margin-bottom: 8px; font-size: 14px; color: var(--graphite); }
.form-note { margin-bottom: 12px; font-size: 13px; color: var(--graphite); }
@media (hover: none) { .product:hover .product__media img { transform: none; } }
@media (max-width: 380px) {
    :root { --gap: 16px; }
    .product__actions .btn { font-size: 14px; }
    .mobile-bar .btn { font-size: 13px; padding-inline: 8px; }
}
