/* Ёлки — палитра и геометрия сняты с концепта (кадр 1440, см. STATUS.md) */
:root {
  --g-900: #0c3e14;   /* края поля */
  --g-800: #12491b;
  --g-700: #184f23;   /* купол за ёлкой */
  --g-600: #1b612c;   /* свечение по центру */
  --g-card: #276e4b;  /* карточка предложения */
  --btn: #1b612c;     /* кнопки и выбранные плашки — цвет Павлона 07.10 (как свечение фона) */
  --btn-h: #2f7c55;   /* наведение — как верх зелёных плашек */
  --red: #d03233;
  --red-h: #b82829;
  --ink: #0b120d;
  --ink-2: #5f6b62;
  --ink-3: #8b958d;
  --line: #e3e8e2;
  --tint: #f2f5f0;
  --white: #fff;
  --fill: #edf2f9; --fill-h: #e2e9f4; /* заливка пунктов фильтра вместо обводки (07.10) и она же на наведении — чуть темнее */
  --paper: #f8fafd; /* фон листа (07.10, Павлон): фото ёлок на белом отделяются от него без обводки */
  --on-g: #fff;
  --on-g-2: rgba(255, 255, 255, .72);

  --side: 40px;        /* поля страницы = отступ белого листа от края */
  --sheet-pad: 40px;   /* внутреннее поле листа */
  --r-sheet: 24px;
  --r-card: 16px;
  --r-ctrl: 12px;
  --hdr-h: 120px;
  --px: .6;           /* сила параллакса первого экрана: 1 — как было, 0 — выключен (Павлон: «чуть меньше, голова кружится») */
  --overlap: 150px;    /* на сколько белый лист заходит на первый экран: кнопка на кромке, под ней тень и начало заголовка */
  --word-fs: clamp(96px, 13.3vw, 280px);
  --word-fs-cq: clamp(96px, 13.3cqw, 280px); /* Nunito 900, шрифт логотипа: 179 на 1440 — слова во всю ширину, щель под крону ~230 */      /* шапка в покое: 36 сверху + 48 кнопка + 36 */

  --f-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-display: 'Inter Tight', 'Inter', system-ui, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--g-900); color: var(--ink); font: 400 16px/1.5 var(--f-text); }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* фон страницы: зелёное поле со свечением в центре сверху */
.page { min-height: 100vh; background: var(--g-900); }

/* ───────── шапка ───────── */
.hdr {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 36px var(--side) 0; height: var(--hdr-h); align-content: start;
  color: var(--on-g);
}
.logo { font: 900 34px/1 'Nunito', var(--f-text); letter-spacing: -.02em; text-decoration: none; justify-self: start; white-space: nowrap; }
/* шапка на первой букве: Nunito 900 — верх строчной на 0,32 em, высота строчных 0,51 em */
.logo__e { position: relative; display: inline-block; }
.logo__hat { position: absolute; width: .66em; left: -.04em; top: -.02em; transform: rotate(-8deg); transform-origin: 50% 80%; } /* своя шапка, по центру «е», крупнее, чуть ниже (07.10, вариант 1) */
.hdr__nav { display: flex; gap: 48px; margin-left: 56px; } /* сразу за логотипом с отступом (07.10) */
.hdr__nav a { font-size: 17px; color: var(--on-g-2); text-decoration: none; transition: color .2s; }
.hdr__right { justify-self: end; display: flex; align-items: center; gap: 28px; }
.hdr__phone { font-size: 17px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.hdr__cart {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 10px 0 20px;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; background: transparent; color: var(--on-g);
  font-size: 17px; transition: background .2s, color .2s;
}
/* телефон кружком — только на телефоне, вместо номера текстом (Павлон 07.10): белый круг, красная трубка в цвет счётчика корзины */
.hdr__call { display: none; flex: none; width: 48px; height: 48px; border-radius: 50%; background: #fff; place-items: center; }
.hdr__call svg { width: 22px; height: 22px; fill: var(--red); }
.hdr__cart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hdr__count {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--red); color: #fff;
  display: inline-grid; place-items: center; font-size: 14px; font-weight: 600;
}
@media (hover: hover) {
  .hdr__nav a:hover { color: var(--on-g); }
  .hdr__cart:hover { background: #fff; color: var(--g-900); }
}

/* ───────── первый экран: на всю высоту окна, слои параллакса ───────── */
.hero {
  container-type: inline-size; /* надпись считает кегль от ширины экрана без полосы прокрутки (cqw) */
  position: relative; z-index: 1;
  height: 100vh; height: 100svh; min-height: 620px;
  margin-top: calc(-1 * var(--hdr-h));
  overflow: clip; background: var(--g-900);
}
/* слой отстаёт от прокрутки на долю --k (дальний сильнее); --s — прокрутка в px, ставит скрипт */
.layer { transform: translate3d(calc(var(--mx, 0) * var(--d, 0) * var(--px) * -1px), calc((var(--s, 0) * var(--k, 0) - var(--my, 0) * var(--d, 0)) * var(--px) * 1px), 0); will-change: transform; }
.hero__bg { position: absolute; inset: -24px; z-index: 0;
  background: radial-gradient(60% 62% at 50% 34%, var(--g-600) 0%, rgba(27, 97, 44, 0) 100%), var(--g-900); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* низ сцены уходит в цвет страницы — по бокам белого листа нет шва */
.hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(12, 62, 20, 0), var(--g-900)); }
.hero__dome { position: absolute; z-index: 2; left: 50%; bottom: calc(var(--overlap) - 340px); width: 680px; height: 680px; margin-left: -340px; border-radius: 50%; background: var(--g-700); }
/* надпись — снежные буквы картинками (генерация Павлона 07.10).
   --wh — высота самих букв; у «ЁЛКИ» над буквами ещё точки «Ё»: буквы 77 % картинки, поэтому она выше в 1/0,771 раза.
   Слова прижаты по низу — буквы стоят на одной линии, точки поднимаются над строкой. */
.hero { --wh: clamp(68px, 9.9vw, 200px); }
@supports (width: 1cqw) { .hero { --wh: clamp(68px, 9.9cqw, 200px); } } /* от ширины экрана без полосы прокрутки */
.hero__word {
  position: absolute; z-index: 4; left: var(--side); right: var(--side); top: calc(var(--hdr-h) + 40px - var(--wh) * .297);
  display: flex; justify-content: space-between; align-items: flex-end; margin: 0;
}
.hero__word img { display: block; width: auto; max-width: none; height: var(--wh); }
.hero__word img.hero__yolki { height: calc(var(--wh) / .771); }
/* блёстка на снегу (scene.js): ядро + четыре тонких луча, как звёздочки в самой генерации букв */
.hero__glint {
  position: absolute; width: var(--gs); height: var(--gs); margin: calc(var(--gs) / -2) 0 0 calc(var(--gs) / -2); pointer-events: none;
  background: radial-gradient(circle, #fff 0 6%, rgba(255, 255, 255, .9) 11%, rgba(225, 240, 255, .4) 24%, transparent 44%);
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, .9));
  mix-blend-mode: screen; transform: scale(0); animation: glint var(--gd, 1s) ease-in-out forwards;
}
.hero__glint::before, .hero__glint::after { content: ""; position: absolute; border-radius: 2px; }
.hero__glint::before { left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: linear-gradient(90deg, transparent, #fff 35% 65%, transparent); }
.hero__glint::after { top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: linear-gradient(transparent, #fff 35% 65%, transparent); }
@keyframes glint {
  0% { transform: scale(0) rotate(-35deg); opacity: 0; }
  45% { transform: scale(1) rotate(0); opacity: 1; }
  100% { transform: scale(0) rotate(25deg); opacity: 0; }
}
/* «Новогоднее настроение» — музыка по нажатию (07.10). Слой и глубина те же, что у надписи: стоит под «ЛИТЫЕ» и движется с ней.
   Низ букв = верх надписи + высота букв: hdr + 40 − wh×.297 + wh/.771 ≈ hdr + 40 + wh */
.mood { position: absolute; z-index: 6; left: var(--side); top: calc(var(--hdr-h) + 40px + var(--wh) + 28px); display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: max-content; } /* треки — под плашкой, той же ширины (Павлон) */
.mood__main, .mood__ctl {
  display: inline-flex; align-items: center; height: 48px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font: 500 16px/1 var(--f-text);
}
.mood__main { gap: 12px; padding: 0 6px 0 18px; cursor: pointer; transition: background .2s; }
@media (hover: hover) { .mood__main:hover { background: rgba(255, 255, 255, .2); } }
.mood button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* треки: появляется, когда музыка включена */
/* ширину задаёт верхняя плашка: у треков width 0 + min-width 100% — длинное название не раздвигает блок, а режется многоточием */
.mood__ctl { width: 0; min-width: 100%; display: none; justify-content: space-between; gap: 2px; padding: 0 4px; font-size: 15px; }
.mood.is-on .mood__ctl { display: inline-flex; animation: mood-in .3s ease-out; }
@keyframes mood-in { from { opacity: 0; transform: translateY(-6px); } }
.mood__title { flex: 1; min-width: 0; line-height: 1.5; /* при 1 хвосты g, y срезались обрезкой многоточия */ padding: 0 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; }
.mood__nav { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; transition: background .15s; }
.mood__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .mood__nav:hover { background: rgba(255, 255, 255, .15); } }
/* эквалайзер: 4 столбика 3 px со скруглёнными концами; анимируется высота, а не scaleY — иначе скругления сплющиваются.
   Выключено — стоят ступенькой; включено — у каждого свой ритм и сдвиг, общего «пилы» нет */
.mood__eq { display: flex; align-items: flex-end; gap: 2.5px; width: 19.5px; height: 16px; }
.mood__eq i { flex: none; width: 3px; height: 40%; border-radius: 3px; background: currentColor; transition: height .3s; }
.mood__eq i:nth-child(2) { height: 75%; }
.mood__eq i:nth-child(3) { height: 55%; }
.mood__eq i:nth-child(4) { height: 30%; }
.mood.is-on .mood__eq i { animation: mood-eq 1.1s ease-in-out infinite; }
.mood.is-on .mood__eq i:nth-child(2) { animation-duration: .85s; animation-delay: -.4s; }
.mood.is-on .mood__eq i:nth-child(3) { animation-duration: 1.3s; animation-delay: -.9s; }
.mood.is-on .mood__eq i:nth-child(4) { animation-duration: .95s; animation-delay: -.2s; }
@keyframes mood-eq { 0%, 100% { height: 25%; } 20% { height: 90%; } 40% { height: 45%; } 60% { height: 100%; } 80% { height: 35%; } }
@media (prefers-reduced-motion: reduce) { .mood.is-on .mood__eq i { animation: none; } }
/* переключатель: трек 44×28, шарик 22; включено — красный, как снежинка в кнопке «Выбрать ёлку» */
.mood__sw { position: relative; flex: none; width: 44px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, .25); transition: background .25s; }
.mood__sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.3, .7, .2, 1); }
.mood.is-on .mood__sw { background: var(--red); }
.mood.is-on .mood__sw::after { transform: translateX(16px); }
.hero__tree { position: absolute; z-index: 5; left: 0; right: 0; top: calc(var(--hdr-h) - 4px); bottom: calc(var(--overlap) - 26px); /* ствол уходит под лист */ display: flex; justify-content: center; pointer-events: none; }
.hero__tree img { height: 100%; width: auto; max-width: none; object-fit: contain;
  transform: perspective(1100px) rotateY(calc(var(--mx, 0) * var(--px) * 6deg)) rotateX(calc(var(--my, 0) * var(--px) * -4deg)); } /* ёлка чуть поворачивается за мышкой — объём */
/* снег — ближний слой, уходит быстрее прокрутки */
.hero__snow { position: absolute; z-index: 6; left: 0; right: 0; top: 0; height: 130%; pointer-events: none;
  background:
    radial-gradient(circle at 12% 30%, rgba(255,255,255,.22) 0 3px, transparent 7px),
    radial-gradient(circle at 21% 56%, rgba(255,255,255,.16) 0 4px, transparent 9px),
    radial-gradient(circle at 8% 68%, rgba(255,255,255,.12) 0 5px, transparent 12px),
    radial-gradient(circle at 30% 14%, rgba(255,255,255,.14) 0 2px, transparent 6px),
    radial-gradient(circle at 37% 45%, rgba(255,255,255,.12) 0 6px, transparent 14px),
    radial-gradient(circle at 64% 17%, rgba(255,255,255,.18) 0 3px, transparent 8px),
    radial-gradient(circle at 74% 49%, rgba(255,255,255,.14) 0 5px, transparent 11px),
    radial-gradient(circle at 86% 23%, rgba(255,255,255,.2) 0 3px, transparent 7px),
    radial-gradient(circle at 93% 60%, rgba(255,255,255,.12) 0 6px, transparent 14px),
    radial-gradient(circle at 80% 71%, rgba(255,255,255,.16) 0 3px, transparent 8px),
    radial-gradient(circle at 47% 88%, rgba(255,255,255,.14) 0 4px, transparent 9px),
    radial-gradient(circle at 16% 92%, rgba(255,255,255,.18) 0 3px, transparent 7px);
}
/* кнопка как «Xmas Mode» в концепте: замер 262×76, поле 34, трек 67×35 в 18 от текста и 22 от края */
/* живой снег: дальний за надписью, ближний перед ёлкой; холст шире сцены — сдвиг за мышкой не открывает края */
.hero__snowc { position: absolute; inset: -80px; width: calc(100% + 160px); height: calc(100% + 160px); pointer-events: none; }
.hero__snowc--back { z-index: 3; }
.hero__snowc--front { z-index: 6;
  /* под шапкой хлопья не летят: белое на белом меню не читается — выплывают из-под неё */
  -webkit-mask-image: linear-gradient(to bottom, transparent calc(80px + var(--hdr-h) * .6), #000 calc(80px + var(--hdr-h) + 40px));
  mask-image: linear-gradient(to bottom, transparent calc(80px + var(--hdr-h) * .6), #000 calc(80px + var(--hdr-h) + 40px)); }
.hero.is-snow .hero__snow { display: none; } /* статичные точки — только пока не запустился живой снег */

.cta { position: absolute; z-index: 6; left: 50%; top: -38px; transform: translateX(-50%); /* центр кнопки на кромке листа */ display: block; color: #fff; text-decoration: none; }
/* тень — по просьбе Павлона 07.10 (обычно тени не ставим). Уже кнопки: 61 % ширины, уходит на ~50 px вниз,
   затемнение под кнопкой 25 %, сине-серая — снято с концепта по зелёному каналу */
.cta__shadow { position: absolute; left: 19.5%; right: 19.5%; top: 22px; bottom: -20px; border-radius: 40px; background: rgba(31, 23, 55, .32); filter: blur(12px); }
.cta__body {
  position: relative; display: flex; align-items: center; gap: 18px; height: 76px; padding: 0 22px 0 34px;
  border-radius: 999px; background: var(--red); font-size: 23px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; transition: background .2s;
}
.cta__flake-dots { fill: var(--red); stroke: none; }
.cta__toggle { flex: none; display: flex; align-items: center; width: 67px; height: 35px; padding-left: 4px; border-radius: 999px; background: #fff; }
.cta { --flake-x: 32px; } /* ход снежинки по треку: 67 − 2×4 поля − 27 */
.cta:focus-visible .cta__flake { transform: translateX(var(--flake-x)) rotate(360deg); }
@media (prefers-reduced-motion: reduce) {
  .cta:hover .cta__flake, .cta:focus-visible .cta__flake { transform: translateX(var(--flake-x)); } /* без вращения */
}
.cta__flake { width: 27px; height: 27px; fill: none; stroke: var(--red); stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; transition: transform .7s cubic-bezier(.3, .7, .2, 1); }
@media (hover: hover) {
  .cta:hover .cta__flake { transform: translateX(var(--flake-x)) rotate(360deg); } /* цвет кнопки не меняется (Павлон) — снежинка катится вправо */
}
@media (prefers-reduced-motion: reduce) { .layer { transform: none; } }


/* ───────── белый лист ───────── */
.sheet {
  position: relative; z-index: 2;
  margin: calc(-1 * var(--overlap)) var(--side) 0; background: var(--paper); border-radius: var(--r-sheet);
  padding: 0 var(--sheet-pad) 96px;
}
.sheet > section, .sheet > .crumbs { max-width: 1600px; margin-left: auto; margin-right: auto; } /* крошки по той же сетке, что и содержимое, — на широких экранах не отрываются влево */
.intro { display: grid; justify-items: center; gap: 40px; padding-top: 88px; padding-bottom: 72px; }
.intro__text { max-width: 720px; text-align: center; }
.intro__title { font: 500 44px/1.06 var(--f-text); letter-spacing: -.025em; text-wrap: balance; }
.intro__sub { margin-top: 20px; font-size: 18px; line-height: 1.5; color: var(--ink-2); text-wrap: balance; }

.offer { width: 315px; padding: 36px 32px 32px; border-radius: 20px;
  background: linear-gradient(180deg, #2f7c55 0%, var(--g-card) 100%); color: #fff; text-align: center; }
.offer--hero { position: absolute; z-index: 6; right: var(--sheet-pad); top: -89px; } /* выступает над кромкой на 89, как в концепте */
.offer--sheet { display: none; }
.offer--hero.offer--left { right: auto; left: var(--sheet-pad); } /* зеркально «−15%» */
.offer__num.offer__num--word { font-size: 56px; line-height: 1; } /* две строки по 56 = 112, как «−15%»; сдвоенный класс — иначе .offer__num ниже перебивает размер */
.offer--hero .offer__num:not(.offer__num--word) { font-size: 112px; line-height: 1; } /* «−15%» высотой с две строки «Как живые»: 112 */
.offer--hero { min-height: 356px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; } /* обе плашки одной высоты */
.offer__pick {
  height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16);
  color: #fff; font-size: 14px; font-weight: 600; transition: background .15s;
}
@media (hover: hover) { .offer__pick:hover { background: rgba(255, 255, 255, .28); } }
.promos { display: none; }
.offer__num { display: block; font: 500 72px/1 var(--f-display); letter-spacing: -.04em; }
.offer__text { margin-top: 14px; font-size: 18px; line-height: 1.35; color: rgba(255, 255, 255, .86); }
/* ступени прямо в карточке — вместо ссылки, которая уводила в середину страницы */
.offer__steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.offer__steps span { padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 14px; line-height: 1.2; white-space: nowrap; }
.offer__steps b { font-weight: 600; }

/* ───────── подгрузка каталога ───────── */
/* до запуска скрипта видно только первые 16 — без прыжка, когда он спрячет остальные */
.js:not(.is-ready) .grid > .card:nth-child(n+29) { display: none; }
.card.is-new { animation: card-in .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * 45ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { .card.is-new { animation: none; } }
.more { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 56px; overflow-anchor: none; } /* иначе браузер держит строку в окне и подгрузка идёт по кругу */
.more[hidden] { display: none; }
.more__text { font-size: 15px; color: var(--ink-3); }
/* на всю ширину сетки, красная (Павлон 07.10); красный — тот же, что у снежинки в «Выбрать ёлку» */
.more__btn { align-self: stretch; height: 56px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font-size: 17px; font-weight: 500; transition: background .15s; }
@media (hover: hover) { .more__btn:hover { background: #b8292a; } }
.more__btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ───────── каталог ───────── */
.h2 { font: 500 44px/1.06 var(--f-text); letter-spacing: -.025em; }
.cat { padding-top: 24px; border-top: 1px solid var(--line); }
.cat__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-top: 56px; }

.filters { margin-top: 36px; display: grid; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.filters__lines, .filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters__row { gap: 8px 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 16px; color: var(--ink);
  transition: background .15s, border-color .15s, color .15s;
}
.pill [data-n] { color: var(--ink-3); font-size: 14px; }
.pill[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }
.pill[aria-pressed="true"] [data-n] { color: rgba(255, 255, 255, .6); }
.pill[hidden] { display: none; }
@media (hover: hover) { .pill:hover:not([aria-pressed="true"]) { border-color: var(--ink-3); } }

.field { position: relative; display: inline-flex; align-items: center; height: 48px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.field__label { padding-left: 20px; font-size: 16px; color: var(--ink-3); }
/* старая стрелка поля — теперь у кнопки */
.field--select.no-btn::after {
  content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: rotate(45deg); pointer-events: none;
}
.field:focus-within { border-color: var(--g-900); }
/* фильтры каталога: заливка без обводки (обводка прозрачная — размеры не прыгают); поиск при вводе просто белеет */
.filters .pill:not([aria-pressed="true"]), .filters .field, .filters .filters__more { background: var(--fill); border-color: transparent; }
@media (hover: hover) { .filters .pill:hover:not([aria-pressed="true"]), .filters .field:hover, .filters .filters__more:hover { background: var(--fill-h); border-color: transparent; } }
.filters .field:focus-within { background: #fff; border-color: transparent; }
/* вторая строка с поиском 320 px требует 1168 px ширины — уже ~1345 px поиск падал один на третью строку справа; там он во всю ширину */
@media (min-width: 768px) and (max-width: 1359px) {
  .filters .field--search { flex: 1 1 100%; max-width: none; margin-left: 0; }
  /* пилюли растягиваются по строке — все три строки кончаются на одном правом крае (Павлон 07.10) */
  .filters__lines > .pill, .filters__extra > * { flex: 1 1 auto; }
  .filters__lines > .pill, .filters__extra > .pill { justify-content: center; }
}
.field--search { flex: 1 1 220px; max-width: 320px; padding-left: 18px; margin-left: auto; }
.field--search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; }
.field--search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 18px 0 10px; font-size: 16px; outline: none; }
.field--search input::placeholder { color: var(--ink-3); }
/* родной крестик поиска в чужом цвете — гасим (свод: никаких значков не из палитры) */
.field--search input::-webkit-search-cancel-button, .field--search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.field--select .sel__btn { position: relative; inset: auto; height: 100%; padding: 0 44px 0 20px; border-radius: 999px; font-size: 16px; justify-content: flex-start; }
.field--select .sel__btn::after { right: 18px; }
.field--select .field__label { padding-left: 0; }
.field--line { display: none; } /* «Категория» — только на телефоне, на широком линейки пилюлями */
.filters__extra { display: contents; }
.filters__more { display: none; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 24px; margin-top: 36px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card[hidden] { display: none; }
.card__photo {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-card); overflow: hidden; background: #fff;
}
.card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; mix-blend-mode: multiply; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .card:hover .card__photo img { transform: scale(1.07); } } /* зум фото при наведении на карточку (07.10) */
.card__nophoto { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line); background: var(--tint); }
.card__nophoto svg { width: 38%; }
.card__tags { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.card__tags span { padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .92); font-size: 13px; line-height: 1.2; font-weight: 500; }
.card__tags span:nth-child(n+2) { background: var(--g-900); color: #fff; }
.card__info { margin-top: 18px; }
.card__name { font: 500 20px/1.25 var(--f-text); letter-spacing: -.01em; }
.card__opts { margin-top: 4px; font-size: 15px; color: var(--ink-3); }
.card__buy { margin-top: auto; padding-top: 18px; display: grid; gap: 14px; }
/* выбор высоты: подпись слева, значение справа, нажимается всё поле */
.sel { position: relative; display: flex; align-items: center; height: 44px; margin: 0; border: 1px solid var(--line); border-radius: var(--r-ctrl); background: #fff; font-size: 15px; transition: border-color .15s; }
.sel__label { color: var(--ink-3); }
.sel--static { justify-content: space-between; padding: 0 14px; background: var(--tint); border-color: var(--tint); }
/* своя кнопка вместо родного списка: родной рисует синюю подсветку и системный шрифт */
.sel__btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 0 40px 0 14px; border: 0; border-radius: var(--r-ctrl); background: transparent;
  font-size: 15px; color: var(--ink); text-align: left;
}
.sel__btn::after, .field--select .sel__btn::after {
  content: ""; position: absolute; right: 17px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s, margin-top .2s;
}
.sel__btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -1px; }
.sel__btn:focus-visible { outline: none; }
.sel:has(.sel__btn:focus-visible), .field:has(.sel__btn:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.sel:has([aria-expanded="true"]), .field:has([aria-expanded="true"]) { border-color: var(--g-900); }
@media (hover: hover) { .sel:has(.sel__btn):hover, .field--select:hover { border-color: var(--ink-3); } }
.card__priceline { margin-top: 8px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.card__price { font: 500 26px/1.1 var(--f-text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.card__old { font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.card__old[hidden], .card__off[hidden] { display: none; }
.card__off { font-size: 14px; font-weight: 600; color: var(--red); }
.card__hint { margin-top: -8px; font-size: 14px; color: var(--ink-2); }
.card__actions { display: flex; gap: 8px; }
.card .qty { flex: none; height: 48px; border-radius: var(--r-ctrl); }
.card .qty button { width: 40px; height: 46px; color: var(--ink); }
.card__add {
  flex: 1; min-width: 0; height: 48px; border: 0; border-radius: var(--r-ctrl); background: var(--btn); color: #fff;
  font-size: 16px; font-weight: 500; transition: background .2s;
}
.card__add.is-added { background: var(--g-card); }
@media (hover: hover) { .card__add:hover { background: var(--btn-h); } .card .qty button:hover { color: var(--g-600); } }

.cat__empty { margin-top: 48px; font-size: 18px; color: var(--ink-2); }
.link { border: 0; background: none; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ───────── выпадающий список (один на страницу) ───────── */
.dd {
  position: absolute; z-index: 40; margin: 0; padding: 6px; list-style: none; background: #fff;
  border: 1px solid #cfd6cd; border-radius: 12px; max-height: min(424px, 70vh); overflow: auto; overscroll-behavior: contain; font-size: 15px;
}
.dd[hidden] { display: none; }
.dd:focus-visible { outline: none; } /* фокус показывает подсвеченный пункт */
.dd__opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding: 0 12px; border-radius: 8px; text-align: left; cursor: pointer; user-select: none; }
.dd__opt[aria-selected="true"] { background: var(--tint); color: var(--g-900); font-weight: 600; }
.dd__opt.is-active { background: #e7ece5; }
.dd__opt[aria-disabled="true"] { color: var(--ink-3); cursor: default; opacity: .55; }
.dd__aside { color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ───────── опт ───────── */
.opt { margin-top: 120px; }
.opt__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.opt__note { max-width: 420px; font-size: 16px; color: var(--ink-2); text-align: right; }
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; counter-reset: s; }
.ladder__step { display: flex; flex-direction: column; gap: 8px; padding: 28px 28px 32px; border-radius: var(--r-card); background: var(--tint); }
.ladder__step:last-child { background: var(--g-900); color: #fff; }
.ladder__qty { font-size: 16px; color: var(--ink-2); }
.ladder__step:last-child .ladder__qty { color: rgba(255, 255, 255, .72); }
.ladder__off { margin-top: 24px; font: 500 48px/1 var(--f-display); letter-spacing: -.035em; }
.ladder__ex { font-size: 18px; font-variant-numeric: tabular-nums; }

/* ───────── подвал ───────── */
.ftr { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding: 56px var(--side) 64px; color: var(--on-g-2); font-size: 16px; }
.ftr__col { display: grid; gap: 8px; align-content: start; }
.ftr__contacts { text-align: right; }
/* нижняя строка: копирайт сайта и студии (07.10) */
.ftr__base { flex-basis: 100%; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.ftr .ftr__base a { font-size: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
@media (hover: hover) { .ftr .ftr__base a:hover { text-decoration-color: #fff; } }
.ftr a { color: #fff; text-decoration: none; font-size: 18px; }
.logo--ftr { color: #fff; }

/* ───────── корзина ───────── */
/* ───────── страницы категорий (/litye-elki/ и т. п.) ───────── */
.lp { padding-top: 24px; }
.lp__title { margin: 0; font: 500 52px/1.05 var(--f-text); letter-spacing: -.03em; }
.lp__lead { max-width: 760px; margin: 18px 0 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.lp__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.lp__link { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--fill); color: var(--ink); font-size: 15px; text-decoration: none; transition: background .15s; }
@media (hover: hover) { .lp__link:hover { background: var(--fill-h); } }
.lp + .cat, .opt--lp + .cat { margin-top: 48px; }
.opt--lp { margin-top: 64px; }
.lp-text { max-width: 820px; margin-top: 96px; }
.lp-text__h { margin: 40px 0 0; font: 500 28px/1.2 var(--f-text); letter-spacing: -.02em; }
.lp-text__h:first-child { margin-top: 0; }
.lp-text p { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.lp-faq { margin-top: 12px; border-radius: var(--r-ctrl); background: #fff; }
.lp-faq summary { position: relative; padding: 18px 56px 18px 20px; font-size: 17px; font-weight: 500; cursor: pointer; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 1.8px solid var(--ink); border-bottom: 1.8px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
.lp-faq[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.lp-faq p { margin: 0; padding: 0 20px 18px; }
@media (max-width: 767px) {
  .lp { padding-top: 8px; }
  .lp__title { font-size: 34px; }
  .lp__lead { font-size: 16px; margin-top: 12px; }
  .lp__links { flex-wrap: nowrap; overflow-x: auto; margin: 20px calc(-1 * var(--sheet-pad)) 0; padding: 0 var(--sheet-pad); scrollbar-width: none; }
  .lp__links::-webkit-scrollbar { display: none; }
  .lp__link { flex: none; height: 38px; font-size: 14px; }
  .lp-text { margin-top: 64px; }
  .lp-text__h { font-size: 22px; margin-top: 32px; }
  .lp-text p { font-size: 16px; }
}
/* подвал: ссылки на категории — для людей и для поиска (внутренняя перелинковка) */
.ftr__cats { flex: 1 1 420px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; align-content: start; max-width: 640px; }
.ftr .ftr__cats a { font-size: 15px; color: var(--on-g-2); }
@media (hover: hover) { .ftr .ftr__cats a:hover { color: #fff; } }
@media (max-width: 767px) { .ftr__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); flex-basis: auto; } }
/* «Статьи» над подвалом: карточки текстовые (у статей нет картинок); стрелка в кружке — как «Направления» у клиник */
.blog { margin-top: 120px; }
.pp-similar + .blog, .pp-about + .blog { margin-top: 96px; }
.blog__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog__card {
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 300px; padding: 28px 28px 96px;
  border-radius: var(--r-card); background: #fff; color: var(--ink); text-decoration: none;
}
.blog__sec { align-self: flex-start; padding: 7px 12px; border-radius: 999px; background: var(--fill); font-size: 13px; line-height: 1; color: var(--ink-2); }
.blog__title { margin-top: 20px; font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -.01em; transition: color .15s; }
.blog__desc { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.blog__go { position: absolute; left: 28px; bottom: 28px; width: 44px; height: 44px; border-radius: 50%; background: var(--btn); display: grid; place-items: center; transition: background .15s; }
.blog__go svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .blog__card:hover .blog__title { color: var(--red); } /* как заголовки в индексе блога */
  .blog__card:hover .blog__go { background: var(--red); }
}
.blog__card:focus-visible { outline: 2px solid var(--btn); outline-offset: 3px; }
.blog__all { display: none; }
@media (max-width: 767px) {
  .blog, .pp-similar + .blog, .pp-about + .blog { margin-top: 72px; }
  .blog__all-top { display: none; }
  /* листалка пальцем: карточка 84 %, край следующей виден — понятно, что листается */
  .blog__list {
    display: flex; gap: 12px; margin: 24px calc(-1 * var(--sheet-pad)) 0; padding: 0 var(--sheet-pad);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--sheet-pad); scrollbar-width: none;
  }
  .blog__list::-webkit-scrollbar { display: none; }
  .blog__list > li { flex: 0 0 84%; scroll-snap-align: start; }
  .blog__card { min-height: 280px; padding: 24px 24px 88px; }
  .blog__title { font-size: 20px; }
  .blog__go { left: 24px; bottom: 24px; }
  .blog__all { display: flex; align-items: center; justify-content: center; height: 52px; margin-top: 20px; border-radius: var(--r-ctrl); background: var(--fill); color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; }
}
/* «Перейти в корзину» внизу экрана — только телефон; геометрия как у «Записаться на приём» на сайтах клиник: 16 от краёв и низа */
/* нижний «причал»: кнопка корзины и значок музыки (music.js кладёт его сюда) в одном контейнере —
   значок стоит над кнопкой по её собственной рамке, а не по расчёту от низа экрана (на iPhone расчёт расходился и они наезжали) */
.dock { position: fixed; z-index: 40; left: 24px; bottom: 24px; width: 52px; height: 52px; pointer-events: none; }
.dock > * { pointer-events: auto; }
.cartbar { display: none; }
@media (max-width: 767px) {
  .dock { left: 16px; right: 16px; width: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .cartbar {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: var(--r-ctrl);
    background: var(--btn); color: #fff; font: 500 16px/1 var(--f-text); box-shadow: 0 8px 24px rgba(12, 62, 20, .3);
    transform: translateY(calc(100% + 40px)); visibility: hidden; transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility 0s .35s;
  }
  .cartbar.is-on { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
  .cartbar__n { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 13px; font-weight: 600; display: inline-grid; place-items: center; }
  body.has-cartbar { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } /* низ подвала не прячется под кнопкой */
}
.cart { position: fixed; inset: 0; z-index: 50; }
.order__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* ловушка для ботов: человек не видит */
.cart[hidden] { display: none; }
.cart__shade { position: absolute; inset: 0; background: rgba(6, 30, 10, .55); }
.cart__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: #fff;
  display: flex; flex-direction: column;
}
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 28px 32px 20px; border-bottom: 1px solid var(--line); }
.cart__title { font: 500 28px/1.1 var(--f-text); letter-spacing: -.02em; }
.cart__close { width: 48px; height: 48px; margin-right: -12px; border: 0; background: none; display: grid; place-items: center; }
.cart__close svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.cart__body { flex: 1; overflow: auto; padding: 8px 32px 32px; }
.cart__empty { padding: 48px 0; color: var(--ink-2); font-size: 17px; }
.ci { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ci img, .ci__ph { width: 64px; height: 84px; object-fit: cover; object-position: 50% 100%; border-radius: 8px; border: 1px solid var(--line); mix-blend-mode: multiply; background: var(--tint); }
.ci__name { font-size: 16px; font-weight: 500; line-height: 1.3; }
.ci__meta { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.ci__price { font-size: 15px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.ci__price s { color: var(--ink-3); margin-left: 6px; }
.ci__right { display: grid; justify-items: end; gap: 10px; }
.qty { display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; line-height: 1; }
.qty input { width: 40px; border: 0; background: transparent; color: inherit; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ci__sum { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tierbar { margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: var(--tint); }
.tierbar__line { display: flex; justify-content: space-between; font-size: 15px; }
.tierbar__line b { color: var(--g-card); }
.tierbar__track { position: relative; height: 6px; margin-top: 12px; border-radius: 3px; background: #dfe5dd; }
.tierbar__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--g-card); }
.tierbar__marks { display: flex; justify-content: space-between; gap: 4px; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.tierbar__marks .on { color: var(--ink); font-weight: 600; }
.totals { margin-top: 20px; display: grid; gap: 6px; }
.totals__row { display: flex; justify-content: space-between; font-size: 16px; color: var(--ink-2); }
.totals__row--main { font-size: 22px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.order { margin-top: 24px; display: grid; gap: 12px; }
.order__f { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.order__f input, .order__f textarea {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-ctrl); font-size: 16px; color: var(--ink); background: #fff;
}
.order__f textarea { height: 88px; padding: 12px 16px; resize: vertical; font: inherit; }
.order__f input:focus, .order__f textarea:focus { outline: none; border-color: var(--g-900); }
.order__f input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--ink); }
.order__btn { height: 60px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font-size: 18px; font-weight: 600; margin-top: 6px; }
@media (hover: hover) { .order__btn:hover { background: var(--red-h); } }
.order__err { color: var(--red); font-size: 14px; }
.order__done { padding: 32px 0; font-size: 18px; }
.order__done b { display: block; font-size: 24px; font-weight: 600; margin-bottom: 8px; }

/* ───────── ссылки в карточке ───────── */
a.card__photo { display: block; }
.card__name a { color: inherit; text-decoration: none; }
@media (hover: hover) { .card__name a:hover { color: var(--btn); } }

/* ───────── внутренние страницы ───────── */
.sheet--inner { margin-top: 0; padding-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
@media (hover: hover) { .crumbs a:hover { color: var(--btn); } }
.crumbs [aria-current] { color: var(--ink); }
.stub { padding: 72px 0 40px; text-align: center; }
.stub p { margin-top: 16px; color: var(--ink-2); }

/* ───────── страница товара ───────── */
/* фото целиком в первом окне: высота от экрана (шапка + крошки ≈ 230 px), ширина — из пропорции 3:4 (Павлон 07.10: «не влезает на экран») */
.pp { --ph: clamp(420px, calc(100svh - 230px), 820px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; margin-top: 28px; align-items: start; }
.pp__gallery { position: sticky; top: 24px; } /* фото стоит, пока листаются характеристики */
.pp__info { max-width: 760px; }
.pp__gallery--thumbs { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
.pp__thumbs { display: flex; flex-direction: column; gap: 12px; }
.pp__thumb { width: 96px; aspect-ratio: 3 / 4; padding: 0; border: 2px solid transparent; border-radius: 12px; background: #fff; overflow: hidden; }
.pp__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; mix-blend-mode: multiply; }
.pp__thumb[aria-current="true"] { border: 2px solid var(--btn); }
.pp__main { position: relative; height: var(--ph); aspect-ratio: 3 / 4; border-radius: 20px; background: #fff; overflow: hidden; }
.pp__main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; mix-blend-mode: multiply; }
.pp__main--empty { display: grid; place-items: center; }
.pp__arrow { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .92); }
.pp__arrow::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -5px 0 0 -6px; border-top: 1.6px solid var(--ink); border-right: 1.6px solid var(--ink); transform: rotate(45deg); }
.pp__arrow--prev { left: 16px; } .pp__arrow--prev::before { margin-left: -3px; transform: rotate(-135deg); }
.pp__arrow--next { right: 16px; }
.pp__info { padding-top: 4px; }
.pp__tag { display: inline-block; padding: 5px 10px; border-radius: 8px; background: var(--tint); font-size: 13px; font-weight: 500; }
.pp__title { margin-top: 14px; font: 500 40px/1.1 var(--f-text); letter-spacing: -.02em; text-wrap: balance; }
.pp__opts { margin-top: 10px; font-size: 15px; color: var(--ink-3); }
.pp__priceline { margin-top: 26px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.pp__price { font: 500 38px/1.1 var(--f-text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pp__old { font-size: 18px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pp__off { font-size: 16px; font-weight: 600; color: var(--red); }
.pp__old[hidden], .pp__off[hidden] { display: none; }
.pp__hint { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.pp__label { margin-top: 28px; font-size: 15px; color: var(--ink-3); }
.pp__label b { color: var(--ink); font-weight: 500; }
.pp__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pp__chip { min-width: 56px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 26px / 22px; corner-shape: superellipse(1.45); /* пилюля с плавным сгибом вместо «полукруг + прямая» (Павлон 07.10, вариант Б); без поддержки — обычная пилюля */ background: #fff; font-size: 16px; font-variant-numeric: tabular-nums; transition: background .15s, border-color .15s, color .15s; }
.pp__chip[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }
@media (hover: hover) { .pp__chip:hover:not([aria-pressed="true"]) { border-color: var(--ink-3); } }
.pp__actions { display: flex; gap: 12px; margin-top: 24px; }
.pp__qty { flex: none; height: 56px; border-radius: var(--r-ctrl); }
.pp__qty button { width: 48px; height: 54px; }
.pp__qty input { width: 44px; }
.pp__add { flex: 1; height: 56px; border: 0; border-radius: var(--r-ctrl); background: var(--btn); color: #fff; font-size: 17px; font-weight: 500; transition: background .2s; }
.pp__add.is-added { background: var(--g-card); }
@media (hover: hover) { .pp__add:hover { background: var(--btn-h); } }
.pp__opt { margin-top: 24px; padding: 18px 20px; border-radius: 16px; background: var(--tint); }
.pp__opt-title { font-size: 14px; color: var(--ink-3); }
.pp__ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.pp__ladder li { display: grid; gap: 2px; }
.pp__ladder span { font-size: 13px; color: var(--ink-3); }
.pp__ladder b { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pp__ladder li.on b { color: var(--btn); }
.pp__h { margin-top: 40px; font: 500 22px/1.2 var(--f-text); }
.pp__specs { margin: 12px 0 0; }
.pp__spec { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pp__spec dt { color: var(--ink-3); }
.pp__spec dd { margin: 0; text-align: right; font-weight: 500; }
/* «О модели»: заголовок слева, текст во всю правую колонку (не узкой полосой в широком блоке) */
.pp-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; margin-top: 96px; padding-top: 56px; border-top: 1px solid var(--line); }
.pp-about__text p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.pp-about__text p + p { margin-top: 12px; }
.pp-similar { margin-top: 96px; }
.pp-similar .cat__head { padding-top: 0; }
.pp-similar__all { font-size: 16px; color: var(--ink); text-underline-offset: 4px; }

/* ───────── ширины ───────── */
@media (max-width: 1279px) {
  :root { --side: 24px; --sheet-pad: 32px; }
  .hdr__nav { gap: 32px; margin-left: 40px; }
  .offer--hero { width: 280px; padding: 28px 24px; }
  .offer--hero .offer__num:not(.offer__num--word) { font-size: 100px; }
  .offer--hero .offer__num.offer__num--word { font-size: 50px; }
}
@media (max-width: 1199px) {
  .offer--hero { display: none; }
  .promos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; width: 100%; }
  .offer--sheet { display: block; flex: 1 1 300px; max-width: 460px; padding: 28px 24px; } /* в листе — та же вертикальная раскладка, что в первом экране */
}
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .hdr { grid-template-columns: auto 1fr; }
  .hdr__nav { display: none; }
  .hdr__right { gap: 20px; }
  .ladder { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  :root { --side: 12px; --sheet-pad: 16px; --hdr-h: 84px; --word-fs: 25.5vw; --word-fs-cq: 25.5cqw; --overlap: 110px; }
  .hdr { padding: 18px 16px 0; gap: 12px; }
  .logo { font-size: 26px; }
  .hdr__phone { font-size: 15px; }
  .hdr__cart { height: 48px; padding: 0 8px 0 14px; gap: 8px; }
  .hdr__cart-text { display: none; }
  .hero { min-height: 560px; }
  .hero { --wh: 20vw; }
  @supports (width: 1cqw) { .hero { --wh: 20cqw; } } /* «ЛИТЫЕ» на 91 % ширины экрана */
  /* слова столбиком: «ЛИТЫЕ» wh + зазор .12wh + «ЁЛКИ» wh/.771 = 2,417 wh; переключатель по центру под ними */
  .mood { left: 0; right: 0; margin: 0 auto; top: calc(var(--hdr-h) + 20px + var(--wh) * 2.417 + 16px); }
  .mood__main, .mood__ctl { height: 44px; font-size: 15px; }
  .hero__word { flex-direction: column; align-items: center; gap: calc(var(--wh) * .12); top: calc(var(--hdr-h) + 20px); left: 16px; right: 16px; }
  .hero__dome { width: 440px; height: 440px; margin-left: -220px; bottom: calc(var(--overlap) - 220px); }
  .hero__tree { top: calc(var(--hdr-h) + 200px); bottom: calc(var(--overlap) - 20px); }
  .cta { top: -32px; }
  .cta__body { height: 64px; gap: 14px; padding: 0 17px 0 28px; font-size: 19px; }
  .cta__toggle { width: 56px; height: 30px; }
  .cta__flake { width: 22px; height: 22px; }
  .cta { --flake-x: 26px; } /* 56 − 2×4 − 22 */
  .intro { gap: 28px; padding-top: 64px; padding-bottom: 48px; }
  .intro__title { font-size: 30px; }
  .intro__sub { font-size: 16px; margin-top: 14px; }
  .offer--sheet { padding: 24px 20px; flex-basis: 100%; }
  .offer--sheet .offer__num { font-size: 44px; }
  .offer--sheet .offer__num--word { font-size: 38px; }
  .offer--sheet .offer__text { font-size: 15px; }
  .offer--sheet .offer__steps span { font-size: 13px; padding: 5px 8px; }
  .h2 { font-size: 32px; }
  .cat__head, .opt__head { flex-direction: column; align-items: start; gap: 10px; padding-top: 40px; }
  .cat__head { padding-top: 19px; } /* от линии до верха букв «Каталог» 48 — как от плашек до линии (24 + 19 + 4,5 внутри строки) */
  .opt__note { text-align: left; font-size: 15px; }
  .filters { margin-top: 24px; gap: 10px; }
  /* линейки одним полем «Категория» во всю ширину вместо ряда пилюль за край (Павлон 07.10) */
  .filters .field--line { display: flex; width: 100%; }
  .filters .filters__lines { display: none; }
  .filters__lines { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--sheet-pad)); padding: 0 var(--sheet-pad); scrollbar-width: none; }
  .filters__lines::-webkit-scrollbar { display: none; }
  .pill { flex: none; padding: 0 16px; font-size: 15px; }
  .filters__row { gap: 8px; }
  .field--search { flex: 1 1 0; min-width: 0; max-width: none; margin-left: 0; order: 1; }
  .filters__more {
    order: 2; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px;
    border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px;
  }
  .filters__more svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
  .filters__more[aria-expanded="true"] { background: var(--g-900); border-color: var(--g-900); color: #fff; }
  .filters__more[aria-expanded="true"] svg { stroke: #fff; }
  .filters__badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
  .filters__badge[hidden] { display: none; }
  .filters__extra { order: 3; display: none; flex-basis: 100%; grid-template-columns: 1fr 1fr; gap: 8px; }
  .filters.is-open .filters__extra { display: grid; }
  .pill--toggle { justify-content: center; padding: 0 10px; font-size: 14px; }
  .field--select { grid-column: 1 / -1; }
  .field--select .sel__btn { flex: 1; min-width: 0; font-size: 15px; }
  .dd { font-size: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 12px; margin-top: 24px; }
  .card__photo { border-radius: 12px; }
  .card__tags { left: 8px; top: 8px; gap: 4px; }
  .card__tags span { font-size: 11px; padding: 4px 7px; }
  .card__info { margin-top: 12px; }
  .card__name { font-size: 16px; }
  .card__opts { font-size: 13px; }
  .card__buy { padding-top: 12px; gap: 10px; }
  .sel { height: 40px; font-size: 14px; }
  .sel__label { display: none; }
  .sel__btn { padding: 0 32px 0 12px; font-size: 14px; }
  .sel__btn::after { right: 14px; }
  .sel--static { padding-left: 12px; }
  .card__price { font-size: 19px; }
  .card__old { font-size: 13px; }
  .card__off { font-size: 12px; }
  .card__hint { margin-top: -6px; font-size: 12px; line-height: 1.35; }
  .card__actions { flex-direction: column; gap: 6px; }
  .card .qty { width: 100%; height: 40px; justify-content: space-between; }
  .card .qty button { height: 38px; }
  .card .qty input { flex: 1; }
  .card__add { flex: none; height: 44px; font-size: 15px; }
  .opt { margin-top: 72px; }
  .ladder { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
  .ladder__step { padding: 18px 16px 20px; }
  .ladder__off { font-size: 34px; margin-top: 12px; }
  .ladder__ex { font-size: 15px; }
  .ftr { flex-direction: column; padding: 40px 16px 48px; }
  .ftr__contacts { text-align: left; }
  .cart__head { padding: 18px 16px 14px; }
  .cart__body { padding: 4px 16px 24px; }
}
@media (max-width: 900px) {
  .pp { grid-template-columns: 1fr; gap: 32px; }
  .pp__gallery { position: static; }
  .pp__main { height: auto; width: min(100%, 520px); }
  .pp__gallery--thumbs { justify-content: start; }
  .pp__info { max-width: none; }
  .pp-about { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 767px) {
  .sheet--inner { padding-top: 18px; }
  .pp { margin-top: 18px; gap: 24px; }
  .pp__gallery--thumbs { grid-template-columns: 1fr; }
  .pp__thumbs { order: 2; flex-direction: row; overflow-x: auto; }
  .pp__thumb { width: 64px; flex: none; }
  .pp__main { border-radius: 14px; width: 100%; }
  .pp__arrow { width: 40px; height: 40px; margin-top: -20px; }
  .pp__title { font-size: 28px; }
  .pp__price { font-size: 30px; }
  .pp__ladder { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pp__qty { height: 52px; } .pp__qty button { height: 50px; }
  .pp__add { height: 52px; }
  .pp-about, .pp-similar { margin-top: 56px; }
  .pp-about { padding-top: 40px; }
  .pp-about__text p { font-size: 16px; }
}
@media (max-width: 767px) {
  .hdr__phone { display: none; }
  .hdr__call { display: grid; }
  .hdr__right { gap: 8px; }
}
