/* Собрано из assets/css/{main,layout,pages,shop,buttons,glass}.css (npm run build). Правьте исходные файлы, не этот. */
/* ── main.css ── */
/* ============================================================
   KERAMA MARAZZI ПМР — дизайн-система нового сайта
   Фирменная палитра взята с keramika.md:
     #00a6c7 — акцент (цены, стикеры), #019cbb — ховер
     #293132 — тёмный UI (шапка каталога, кнопки), #202526 — глубокий
     #ffb700 — золото рейтинга, #f0f0f0 / #ededed — светлые подложки
   ============================================================ */

/* ---------- 1. Токены ---------- */
:root {
  --bone:        #f2f4f5;
  --bone-2:      #e6eaec;
  --surface:     #ffffff;
  --surface-2:   #f6f8f9;
  --ink:         #293132;
  --ink-2:       #4f5a5c;
  --muted:       #808080;
  --line:        rgba(41, 49, 50, .13);
  --line-2:      rgba(41, 49, 50, .07);

  --accent:        #00a6c7;
  --accent-2:      #019cbb;
  --accent-soft:   rgba(0, 166, 199, .10);
  --accent-ink:    #007e99;
  --gold:        #ffb700;
  --gold-2:      #d09e00;
  --green:       #12a05e;
  --green-soft:  rgba(18, 160, 94, .12);
  --amber:       #c98a00;
  --amber-soft:  rgba(255, 183, 0, .16);
  --red:         #d64545;
  --red-soft:    rgba(214, 69, 69, .12);

  --bg:          var(--bone);
  --card:        var(--surface);
  --shadow-s:    0 1px 2px rgba(41,49,50,.05), 0 4px 12px rgba(41,49,50,.06);
  --shadow-m:    0 2px 6px rgba(41,49,50,.06), 0 18px 40px -12px rgba(41,49,50,.18);
  --shadow-l:    0 30px 80px -28px rgba(41,49,50,.34);
  --glass:       rgba(255, 255, 255, .84);

  --r-xs: 8px;  --r-s: 12px;  --r-m: 18px;  --r-l: 26px;  --r-xl: 34px;

  --shell: 1320px;
  --pad: clamp(16px, 4vw, 44px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --hdr-h: 72px;

  --f-display: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-text: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
/* подвал не виден, пока скрипты дорисовывают содержимое (корзина, избранное) — без сдвига макета */
main#main { min-height: 100vh; min-height: 100svh; }

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
/* names from 1C have words longer than a phone screen («пенополистирольная(125х80х3)зел»): wrap them (HITE-656) */
h1, h2, h3, h4 { overflow-wrap: break-word; }
::selection { background: var(--accent); color: #fff; }

/* цифры в ценах и таблицах — моноширинные, чтобы колонки не «плясали» */
.card__price, .pdp__price, .m2table, .sumbox__rows, .sumbox__total,
.crow__sum, .citem__p, .ftr__phone b, .instrow, .instalment__row, .qty input, .qty span {
  font-variant-numeric: tabular-nums;
}
[hidden] { display: none !important; }

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

.skip-link {
  position: fixed; left: -999px; top: 12px; z-index: 999;
  background: var(--ink); color: var(--bone); padding: 10px 16px; border-radius: var(--r-xs);
}
.skip-link:focus { left: 12px; }

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

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Типографика ---------- */
/* без ручных <br>: в узкой колонке строки выравниваются по длине сами */
.d1, .d2 { text-wrap: balance; }
.d1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.95rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.033em; }
.d2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 3.1vw, 2.55rem); line-height: 1.14; letter-spacing: -.028em; }
.d3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.15rem, 1.9vw, 1.55rem); line-height: 1.24; letter-spacing: -.02em; }
.lead { font-size: clamp(1rem, 1.35vw, 1.15rem); color: var(--ink-2); line-height: 1.65; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .55; }

/* ---------- 4. Кнопки, чипы, бейджи ---------- */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 26px; border-radius: 100px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  border: 1px solid transparent; position: relative; overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              background-color .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { --bh: 42px; padding: 0 20px; font-size: .88rem; }
.btn--full { width: 100%; }

.btn--primary { background: var(--ink); color: var(--bone); box-shadow: var(--shadow-s); }
.btn--primary:hover { background: var(--accent); color: #fff; box-shadow: 0 14px 34px -12px var(--accent); }

.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 26px -12px var(--accent); }
.btn--accent:hover { background: var(--accent-2); box-shadow: 0 18px 40px -14px var(--accent); }

.btn--ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bone); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: .86rem; font-weight: 500; color: var(--ink-2);
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.chip__n { font-size: .74rem; opacity: .5; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 100px;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1;
}
.badge--sale  { background: var(--accent); color: #fff; }
.badge--new   { background: var(--ink); color: var(--bone); }
.badge--super { background: var(--gold); color: #33280a; }
.badge--last  { background: var(--red-soft); color: var(--red); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 100px;
  font-size: .76rem; font-weight: 700; line-height: 1.1;
}
.pill svg { width: 13px; height: 13px; }
.pill--in   { background: var(--green-soft); color: var(--green); }
.pill--low  { background: var(--amber-soft); color: var(--amber); }
.pill--out  { background: var(--line-2); color: var(--muted); }

/* ---------- 5. Шапка ---------- */
.topline {
  background: #f0f0f0; color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  font-size: .78rem; position: relative; z-index: 60;
}
.topline__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 38px; }
.topline__msg { display: flex; align-items: center; gap: 9px; margin: 0; }
.topline__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(0,166,199,.6); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(0,166,199,.55); } 70% { box-shadow: 0 0 0 9px rgba(0,166,199,0); } 100% { box-shadow: 0 0 0 0 rgba(0,166,199,0); } }
.topline__links { display: flex; gap: 10px; align-items: center; }
.topline__links a { opacity: .85; transition: opacity .2s; }
.topline__links a:hover { opacity: 1; color: var(--accent); }
@media (max-width: 860px) { .topline__links { display: none; } .topline__msg { font-size: .72rem; } }

.hdr {
  position: sticky; top: 0; z-index: 70;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.hdr.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 34px -22px rgba(30,36,37,.45); }
.hdr__in { display: flex; align-items: center; gap: 12px; height: var(--hdr-h); }

.logo { display: flex; align-items: center; gap: 12px; flex: none; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  position: relative; padding: 9px 8px; border-radius: 100px;
  font-size: .92rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s, background-color .2s;
}
.nav__link svg { width: 9px; height: 6px; transition: transform .3s var(--ease); }
.nav__link:hover { color: var(--ink); background: var(--line-2); }
.nav__link.is-active { color: var(--ink); font-weight: 700; }
.nav__link.is-active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav__item--mega[aria-expanded='true'] svg, .nav__link[aria-expanded='true'] svg { transform: rotate(180deg); }
@media (max-width: 1240px) { .nav { display: none; } }
@media (max-width: 1400px) {
  .nav__link { padding-inline: 7px; }
  .vmenu__btn { padding-inline: 14px; gap: 9px; }
}

.hdr__tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
@media (min-width: 1241px) { .hdr__tools { margin-left: 18px; } }
.hdr__phone {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  border: 1px solid var(--line); border-radius: 100px; white-space: nowrap;
  font-weight: 700; font-size: .88rem; transition: all .25s var(--ease);
}
.hdr__phone svg { width: 16px; height: 16px; color: var(--accent); }
.hdr__phone:hover { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 1360px) { .hdr__phone span { display: none; } .hdr__phone { padding: 9px 11px; } }

.iconbtn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center; position: relative;
  color: var(--ink-2); transition: background-color .2s, color .2s, transform .2s;
}
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn:hover { background: var(--line-2); color: var(--ink); }
.iconbtn:active { transform: scale(.94); }
.iconbtn__count {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 100px; background: var(--accent); color: #fff;
  font-size: .66rem; font-weight: 800; display: grid; place-items: center;
}

.burger { width: 42px; height: 42px; border-radius: 50%; display: none; align-items: center; justify-content: center; gap: 4px; flex-direction: column; }
.burger span { width: 18px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.burger:hover span:nth-child(1) { transform: translateX(-2px); }
.burger:hover span:nth-child(3) { transform: translateX(2px); }
@media (max-width: 1240px) { .burger { display: flex; } }

/* ---------- 6. Шторки (меню, корзина) ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(20,25,26,.45); backdrop-filter: blur(3px); animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--surface); display: flex; flex-direction: column;
  box-shadow: var(--shadow-l); animation: slideIn .4s var(--ease-out);
}
.drawer--menu .drawer__panel { left: 0; right: auto; animation: slideInL .4s var(--ease-out); }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes slideInL { from { transform: translateX(-100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head b { font-size: 1.05rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 20px 28px; }
.drawer__foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--surface-2); }

.mlink { display: block; padding: 13px 0; font-size: 1.15rem; font-weight: 600; border-bottom: 1px solid var(--line-2); }
.mcats { padding: 10px 0 14px; display: grid; gap: 2px; }
.mcats a { display: flex; justify-content: space-between; padding: 8px 0; font-size: .92rem; color: var(--ink-2); }
.mcats a span { color: var(--muted); font-size: .78rem; }
.drawer__phones { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.drawer__phones a { display: flex; flex-direction: column; font-weight: 700; }
.drawer__phones i { font-style: normal; font-size: .76rem; font-weight: 500; color: var(--muted); }

.cart__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.cart__total b { font-size: 1.35rem; font-weight: 800; }
.cart__note { font-size: .78rem; color: var(--muted); margin: -2px 0 4px; }
.citem { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.citem img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-xs); background: var(--bone-2); }
.citem__n { font-size: .84rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.citem__m { font-size: .76rem; color: var(--muted); margin-top: 3px; }
.citem__p { font-weight: 800; white-space: nowrap; font-size: .92rem; }
.citem__x { color: var(--muted); font-size: .76rem; margin-top: 4px; }
.citem__x:hover { color: var(--red); }
.cart__empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.cart__empty svg { width: 54px; height: 54px; margin: 0 auto 14px; opacity: .3; }

/* ---------- 7. Поиск ---------- */
.search { position: fixed; inset: 0; z-index: 95; }
.search__scrim { position: absolute; inset: 0; background: rgba(20,25,26,.5); backdrop-filter: blur(4px); animation: fade .25s var(--ease); }
.search__panel {
  position: relative; max-width: 760px; margin: min(12vh, 110px) auto 0;
  background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-l);
  overflow: hidden; animation: pop .35s var(--ease-out);
  max-height: 78vh; display: flex; flex-direction: column;
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@media (max-width: 640px) { .search__panel { margin: 0; border-radius: 0; max-height: 100vh; height: 100%; } }
.search__form { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search__form > svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search__form input { flex: 1; border: 0; background: none; font-size: 1.1rem; outline: none; }
.search__hints { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 18px; font-size: .82rem; color: var(--muted); }
.search__hints button { padding: 6px 12px; border-radius: 100px; background: var(--bone-2); font-size: .8rem; transition: all .2s; }
.search__hints button:hover { background: var(--ink); color: var(--bone); }
.search__res { overflow-y: auto; padding: 0 10px 14px; }
.sres { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-s); transition: background-color .18s; }
.sres:hover { background: var(--bone-2); }
.sres img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--r-xs); background: var(--bone-2); }
.sres b { font-size: .88rem; font-weight: 600; display: block; line-height: 1.3; }
.sres span { font-size: .76rem; color: var(--muted); }
.sres i { font-style: normal; font-weight: 800; white-space: nowrap; }
.search__none { padding: 40px 20px; text-align: center; color: var(--muted); }

/* ---------- 8. Секции ---------- */
/* вертикальный ритм: соседние секции дают ~75 px между блоками на десктопе и ~48 px на телефоне */
.sec { padding-block: clamp(24px, 2.8vw, 40px); position: relative; }
.sec--tight { padding-block: clamp(18px, 2vw, 28px); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(16px, 2vw, 26px); flex-wrap: wrap; }
/* заголовок раздела идёт в одну строку, пока помещается; ширину ограничиваем только у подводки */
.sec__head-txt { display: grid; gap: 12px; }
.sec__head-txt > .lead { max-width: 56ch; }
.sec--alt { background: var(--surface-2); }
.sec--alt + .sec--joined { padding-top: 0; }

/* ---------- 10. УТП-лента ---------- */
.usp { background: var(--surface); border-bottom: 1px solid var(--line-2); }
.usp__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .usp__grid { grid-template-columns: repeat(2, 1fr); } }
.usp__it { display: flex; gap: 14px; align-items: flex-start; padding: clamp(20px, 3vw, 30px) clamp(14px, 2vw, 26px); border-right: 1px solid var(--line-2); }
.usp__grid > :last-child { border-right: 0; }
@media (max-width: 900px) { .usp__it:nth-child(2n) { border-right: 0; } .usp__it:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); } }
.usp__ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.usp__ic svg { width: 21px; height: 21px; }
.usp__it b { display: block; font-size: .94rem; }
.usp__it span { font-size: .82rem; color: var(--muted); }

/* ---------- 12. Карточка товара ---------- */
.grid {
  display: grid; gap: clamp(12px, 1.6vw, 22px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 244px), 1fr));
}
.card {
  background: var(--card); border-radius: var(--r-m); overflow: hidden;
  border: 1px solid var(--line-2); display: flex; flex-direction: column;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bone-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), opacity .4s; }
.card:hover .card__media img { transform: scale(1.06); }
/* фото, растянутое на всю рамку без белых полей OpenCart (см. fillPicture в ui.js) */
.fillimg { position: absolute; inset: 0; display: block; overflow: hidden; }
.fillimg picture, .fillimg img { display: block; width: 100%; height: 100%; }
.fillimg img { object-fit: cover; transform-origin: var(--ox, 50%) var(--oy, 50%); transform: translate(var(--tx, 0%), var(--ty, 0%)) scale(var(--zoom, 1)); }
.card:hover .fillimg img, .cbig:hover .fillimg img { transform: translate(var(--tx, 0%), var(--ty, 0%)) scale(calc(var(--zoom, 1) * 1.06)); }
.card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; z-index: 2; }
.card__fav {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--ink); display: grid; place-items: center;
  opacity: 0; transform: translateY(-4px); transition: all .3s var(--ease); z-index: 2;
}
.card:hover .card__fav { opacity: 1; transform: none; }
.card__fav svg { width: 16px; height: 16px; }
.card__fav.is-on { background: var(--accent); color: #fff; opacity: 1; transform: none; }
.card__body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__meta { display: flex; gap: 8px; align-items: center; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.card__meta b { font-weight: 700; color: var(--ink-2); }
.card__name { font-size: .89rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__name::after { content: ''; position: absolute; inset: 0; }
.card__stock { margin-top: auto; }
.card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card__price b { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.card__price i { font-style: normal; font-size: .76rem; color: var(--muted); font-weight: 600; }
.card__price s { color: var(--muted); font-size: .8rem; }
.card__buy {
  position: relative; z-index: 3; margin-top: 4px;
  height: 40px; border-radius: 100px; border: 1px solid var(--line);
  font-size: .84rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all .28s var(--ease);
}
.card__buy svg { width: 15px; height: 15px; }
.card__buy:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.card__buy.is-done { background: var(--green); border-color: var(--green); color: #fff; }

/* горизонтальная прокрутка карточек */
/* горизонтальная лента: прокрутка обрезает всё за краем, поэтому сверху и снизу даём запас
   под подъём карточки и её тень и тут же компенсируем его отрицательным отступом */
.rail {
  --rail-gap: clamp(12px, 1.5vw, 20px);
  display: flex; gap: var(--rail-gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: -14px calc(var(--pad) * -1) -30px; padding: 14px var(--pad) 30px; scroll-padding-inline: var(--pad);
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 clamp(210px, 25vw, 268px); scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: all .25s; }
.rail-nav button:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.rail-nav button:disabled { opacity: .35; pointer-events: none; }
.rail-nav svg { width: 17px; height: 17px; }

/* табы */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  padding: 10px 18px; border-radius: 100px; font-size: .9rem; font-weight: 600; color: var(--muted);
  transition: all .25s var(--ease); border: 1px solid transparent;
}
.tab:hover { color: var(--ink); }
.tab.is-on { background: var(--ink); color: var(--bone); }

/* ---------- 15. Калькулятор ---------- */
.calc { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(16px, 2.4vw, 24px); }
.calc__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.calc__head svg { width: 20px; height: 20px; color: var(--accent); }
.calc__head b { font-size: 1rem; }
.calc__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .76rem; color: var(--muted); font-weight: 600; }
.field input, .field select {
  height: 46px; padding: 0 14px; border-radius: var(--r-s);
  border: 1px solid var(--line); background: var(--surface); outline: none;
  transition: border-color .2s, box-shadow .2s; width: 100%; font-weight: 600;
}
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.calc__out { margin-top: 16px; display: grid; gap: 10px; }
.calc__line { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; padding: 9px 0; border-top: 1px dashed var(--line); }
.calc__line span { color: var(--muted); }
.calc__line b { font-weight: 800; font-size: 1rem; }
.calc__line--total b { font-size: 1.3rem; color: var(--accent); }
.calc__hint { font-size: .76rem; color: var(--muted); }

/* ---------- 16. Каталог ---------- */
.cat-layout { display: grid; grid-template-columns: 272px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 1020px) { .cat-layout { grid-template-columns: 1fr; } }
.filters { position: sticky; top: calc(var(--hdr-h) + 16px); display: grid; gap: 8px; max-height: calc(100vh - var(--hdr-h) - 40px); overflow-y: auto; padding-right: 4px; }
.filters::-webkit-scrollbar { width: 4px; }
.filters::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
@media (max-width: 1020px) {
  .filters { position: fixed; inset: auto 0 0 0; top: 0; z-index: 92; background: var(--surface); max-height: none; padding: 18px var(--pad) 90px; overflow-y: auto; display: none; }
  .filters.is-open { display: grid; }
  .filters__close { position: sticky; top: 0; background: var(--surface); padding-block: 8px; display: flex !important; justify-content: space-between; align-items: center; z-index: 2; }
}
.filters__close { display: none; }
.fgroup { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); overflow: hidden; }
.fgroup > summary { padding: 13px 15px; font-weight: 700; font-size: .88rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary::after { content: ''; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .3s; }
.fgroup[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.fgroup__in { padding: 0 15px 14px; display: grid; gap: 7px; max-height: 260px; overflow-y: auto; }
.fcheck { display: flex; align-items: center; gap: 9px; font-size: .85rem; cursor: pointer; color: var(--ink-2); padding: 2px 0; }
.fcheck input { width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.fcheck span + span:last-child { margin-left: auto; font-size: .72rem; color: var(--muted); }
.fcheck:hover { color: var(--ink); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar__count { font-size: .86rem; color: var(--muted); margin-right: auto; }
.select {
  height: 42px; padding: 0 38px 0 15px; border-radius: 100px; border: 1px solid var(--line);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23808080' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 15px center/10px;
  appearance: none; font-size: .86rem; font-weight: 600; outline: none; cursor: pointer;
}
.fbtn { display: none; }
@media (max-width: 1020px) { .fbtn { display: inline-flex; } }

.actives { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.active-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 100px; background: var(--accent-soft); color: var(--accent); font-size: .8rem; font-weight: 600; }
.active-chip svg { width: 11px; height: 11px; }

.empty { text-align: center; padding: clamp(32px, 5vw, 60px) 20px; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.empty svg { width: 58px; height: 58px; opacity: .28; }

/* скелетоны */
.sk { background: linear-gradient(90deg, var(--line-2) 25%, var(--line) 37%, var(--line-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-s); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.sk-card { border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line-2); }
.sk-card > :first-child { aspect-ratio: 1; border-radius: 0; }
.sk-card > div + div { margin: 14px 15px 0; height: 12px; }
.sk-card > div:last-child { margin-bottom: 18px; width: 50%; }

/* ---------- 17. Страница товара ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); flex-wrap: wrap; padding-block: 18px; }
.crumbs a:hover { color: var(--accent); }
.crumbs svg { width: 10px; height: 10px; opacity: .5; }

.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
@media (max-width: 940px) { .pdp { grid-template-columns: minmax(0, 1fr); } }
.pdp__gal { position: sticky; top: calc(var(--hdr-h) + 20px); display: grid; gap: 12px; }
@media (max-width: 940px) { .pdp__gal { position: static; } }
.pdp__main { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--bone-2); aspect-ratio: 1; }
.pdp__main img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.pdp__main.is-zoom img { transform: scale(1.7); }
.pdp__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp__thumbs button { width: 70px; height: 70px; border-radius: var(--r-s); overflow: hidden; border: 2px solid transparent; background: var(--bone-2); transition: border-color .2s; }
.pdp__thumbs button.is-on { border-color: var(--accent); }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp__info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.pdp__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.35rem, 2.4vw, 1.95rem); line-height: 1.22; letter-spacing: -.025em; overflow-wrap: anywhere; }
.pdp__meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: .82rem; color: var(--muted); }
.pdp__price { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.pdp__price b { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.pdp__price i { font-style: normal; font-size: .9rem; color: var(--muted); font-weight: 600; }
.pdp__price s { color: var(--muted); font-size: 1.1rem; }
.pdp__buy { display: flex; gap: 10px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; height: 52px; overflow: hidden; }
.qty button { width: 46px; height: 100%; display: grid; place-items: center; color: var(--muted); transition: background-color .2s, color .2s; }
.qty button:hover { background: var(--line-2); color: var(--ink); }
.qty input { width: 64px; text-align: center; border: 0; background: none; outline: none; font-weight: 800; }

.spec { display: grid; gap: 0; }
.spec__row { display: grid; grid-template-columns: minmax(120px, .8fr) 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line-2); font-size: .88rem; }
.spec__row span { color: var(--muted); }
.spec__row b { font-weight: 600; }

.ptabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptab { padding: 13px 16px; font-weight: 600; font-size: .9rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; transition: all .25s; }
.ptab.is-on { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- 18. Новости ---------- */
/* Картинки новостей на источнике — баннеры 1170×562 с надписями,
   поэтому кадр держим ровно в их пропорции: текст на них не обрезается. */
:root { --news-ar: 1170 / 562; }

/* главная: четыре равные карточки → две → лента со свайпом */
.news { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
@media (max-width: 1100px) { .news { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .news {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--pad) * -1); padding: 6px var(--pad) 10px; scroll-padding-inline: var(--pad);
  }
  .news::-webkit-scrollbar { display: none; }
  .news > .post { flex: 0 0 min(84%, 340px); scroll-snap-align: start; }
}

/* страница новостей: свежая новость широкой карточкой, остальные сеткой */
.news--page { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .news--page { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .news.news--page { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; margin-inline: 0; padding: 0; }
}

.post {
  background: var(--card); border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line-2);
  display: flex; flex-direction: column; min-width: 0;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s;
}
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); border-color: transparent; }
.post__img { display: block; flex: none; aspect-ratio: var(--news-ar); overflow: hidden; background: var(--bone-2); }
.post__img picture, .post__img img { display: block; width: 100%; height: 100%; }
.post__img img { object-fit: cover; transition: transform .9s var(--ease-out); }
.post:hover .post__img img { transform: scale(1.04); }
.post__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.post__date { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.post__t { font-size: 1rem; font-weight: 700; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post__x { font-size: .86rem; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post__more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--accent); }
.post__more svg { width: 15px; height: 15px; transition: transform .35s var(--ease-out); }
.post:hover .post__more svg { transform: translateX(4px); }


.post--lead { grid-column: 1 / -1; }
@media (min-width: 1100px) {
  .post--lead { flex-direction: row; }
  .post--lead .post__img { flex: 0 0 58%; }
  .post--lead .post__body { justify-content: center; gap: 12px; padding: clamp(24px, 3.2vw, 44px); }
  .post--lead .post__t { font-size: clamp(1.25rem, 1.9vw, 1.65rem); line-height: 1.22; letter-spacing: -.01em; }
  .post--lead .post__x { font-size: .95rem; -webkit-line-clamp: 4; }
  .post--lead .post__more { margin-top: 6px; }
}

/* ---------- 19. Магазины ---------- */
.shops { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 248px), 1fr)); gap: clamp(14px, 2vw, 22px); }
.shop {
  --shop-pad: 24px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-m);
  padding: var(--shop-pad) var(--shop-pad) 0; display: flex; flex-direction: column; gap: 12px;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
  position: relative; overflow: hidden;
}
/* действия — строками во всю ширину у нижнего края, одинаково во всех карточках ряда */
.shop__acts { margin: auto calc(var(--shop-pad) * -1) 0; padding-top: 10px; display: grid; }
.shop__act {
  display: flex; align-items: center; gap: 10px;
  padding: 13px var(--shop-pad); border-top: 1px solid var(--line-2);
  font-size: .86rem; font-weight: 600; color: var(--ink);
  transition: background-color .25s, color .25s;
}
.shop__act span { flex: 1; white-space: nowrap; }
.shop__act svg { width: 17px; height: 17px; flex: none; }
.shop__act > svg:first-child { color: var(--accent); }
.shop__act > svg:last-child { width: 15px; height: 15px; color: var(--muted); transition: transform .3s var(--ease-out), color .25s; }
.shop__act:hover { background: var(--surface-2); color: var(--accent); }
.shop__act:hover > svg:last-child { transform: translateX(3px); color: var(--accent); }
.shop__lines { display: grid; gap: 2px; }
.shop__lines > span, .shop__lines > a { white-space: nowrap; }
.shop__lines small { font-size: .76rem; color: var(--muted); }
@media (max-width: 380px) { .shop { --shop-pad: 18px; } }
.shop::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease-out); }
.shop:hover::before { transform: scaleY(1); }
.shop:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.shop__type { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--accent); }
.shop__n { font-size: 1.1rem; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.shop__l { display: flex; gap: 9px; font-size: .88rem; color: var(--ink-2); align-items: flex-start; }
.shop__l svg { width: 16px; height: 16px; color: var(--muted); flex: none; margin-top: 3px; }
.shop__l a { font-weight: 700; }
.shop__l a:hover { color: var(--accent); }

/* ---------- 20. Бренды ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: clamp(28px, 5vw, 70px); width: max-content; animation: marq 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee__it { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(1rem, 1.7vw, 1.45rem); color: var(--muted); white-space: nowrap; opacity: .6; transition: opacity .3s, color .3s; }
.marquee__it:hover { opacity: 1; color: var(--accent); }


/* ---------- 21. Шаги / процесс ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(16px, 2vw, 28px); counter-reset: s; }
.step { display: grid; gap: 10px; align-content: start; position: relative; padding-top: 28px; }
.step::before {
  counter-increment: s; content: '0' counter(s);
  position: absolute; top: 0; left: 0;
  font-family: var(--f-display); font-weight: 800; font-size: .95rem; color: var(--accent);
}
.step::after { content: ''; position: absolute; top: 10px; left: 34px; right: -14px; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }
@media (max-width: 760px) { .step::after { display: none; } }
.step b { font-size: 1.02rem; }
.step p { font-size: .87rem; color: var(--muted); line-height: 1.6; }

/* ---------- 22. Инфо-страницы ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(14px, 2vw, 22px); }
.info-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-m); padding: 24px; display: grid; gap: 10px; align-content: start; }
.info-card b { font-size: 1.02rem; }
.info-card p { font-size: .88rem; color: var(--ink-2); line-height: 1.6; }
.plan { border: 1px solid var(--line); border-radius: var(--r-m); padding: 26px; background: var(--card); display: grid; gap: 14px; align-content: start; position: relative; }
.plan--accent { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.plan--accent .plan__d { color: var(--accent); }
.plan--accent li { color: rgba(238,242,242,.78); }
.plan__t { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; line-height: 1.1; letter-spacing: -.028em; }
.plan__d { font-weight: 800; color: var(--accent); font-size: .95rem; }
.plan ul { display: grid; gap: 8px; font-size: .88rem; color: var(--ink-2); }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: none; }

/* ---------- 23. Прочее ---------- */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--bone);
  display: grid; place-items: center; box-shadow: var(--shadow-m);
  opacity: 0; pointer-events: none; transform: translateY(12px) scale(.9);
  transition: all .4s var(--ease-out);
}
.totop.is-on { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { background: var(--accent); }
.totop svg { width: 20px; height: 20px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px); z-index: 120;
  background: var(--ink); color: var(--bone); padding: 12px 20px; border-radius: 14px;
  max-width: min(92vw, 420px); text-align: center; line-height: 1.4;
  font-size: .86rem; font-weight: 600; box-shadow: var(--shadow-l);
  opacity: 0; transition: all .35s var(--ease-out); pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Баннер cookie (HITE-718): внизу экрана; пока он открыт, страница, липкая панель покупки (glass.css)
   и кнопка «наверх» отодвигаются на его высоту (--ckb-h ставит cookies.js) — он ничего не закрывает. */
.ckb {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center; gap: 12px 22px; flex-wrap: wrap;
  padding: 12px clamp(14px, 4vw, 22px) calc(12px + env(safe-area-inset-bottom));
  background: var(--glass); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 28px -18px rgba(30, 36, 37, .5);
}
.ckb[hidden] { display: none; }
.ckb__t { margin: 0; max-width: 72ch; font-size: .8rem; line-height: 1.45; color: var(--ink-2); }
.ckb__t a { color: var(--accent); text-decoration: underline; }
.ckb__b { display: flex; gap: 8px; flex-wrap: wrap; }
.ckb .btn--sm { --bh: 38px; padding: 0 16px; font-size: .82rem; }
.has-ckb body { padding-bottom: var(--ckb-h, 0px); }
.has-ckb .totop { bottom: calc(20px + var(--ckb-h, 0px)); }
@media (max-width: 560px) {
  .ckb { padding-top: 10px; gap: 8px; }
  .ckb__t { font-size: .74rem; }
  .ckb__b { width: 100%; gap: 6px; }
  .ckb__b .btn { flex: 1 1 auto; padding: 0 12px; font-size: .78rem; }
}
.ftr__cookies { padding: 0; border: 0; background: none; font: inherit; color: var(--accent); cursor: pointer; }
.ftr__cookies:hover { text-decoration: underline; }

/* ---------- 24. Анимации появления ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal][data-reveal='left'] { transform: translateX(-30px); }
[data-reveal][data-reveal='scale'] { transform: scale(.95); }
[data-reveal].is-in { transition-delay: var(--d, 0ms); }

.split { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split > i { display: inline-block; font-style: inherit; transform: translateY(105%); }
.is-in .split > i, .split.is-in > i { transform: none; transition: transform .9s var(--ease-out) var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .split > i { transform: none !important; }
}

/* ---------- 25. Утилиты ---------- */
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.mt-l { margin-top: clamp(20px, 2.6vw, 32px); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .sec__head-txt, .center .sec__head-txt > .lead { margin-inline: auto; }
.muted { color: var(--muted); }
@media (max-width: 640px) { .hide-sm { display: none !important; } }


/* ── layout.css ── */
/* ============================================================
   Светлые блоки макета: вертикальное меню каталога, герой,
   категории, промо-полоса, таблица наличия, подвал.
   ============================================================ */

/* ---------- Вертикальное меню каталога ---------- */
.vmenu { position: relative; flex: none; }
@media (max-width: 1080px) { .hdr .vmenu { display: none; } }

.vmenu__btn {
  display: inline-flex; align-items: center; gap: 11px;
  height: 46px; padding: 0 18px; border-radius: var(--r-s);
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: .92rem; white-space: nowrap;
  transition: background-color .22s;
}
.vmenu__btn:hover { background: var(--accent-2); }
.vmenu__btn svg { width: 10px; height: 6px; margin-left: 2px; transition: transform .3s var(--ease); }
.vmenu__btn[aria-expanded='true'] svg { transform: rotate(180deg); }
.vmenu__burger { display: grid; gap: 3px; width: 15px; }
.vmenu__burger i { height: 2px; background: currentColor; border-radius: 2px; }

.vmenu__panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 75;
  width: 292px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-s);
  box-shadow: var(--shadow-m); padding: 6px;
  animation: vmenuIn .22s var(--ease-out);
}
@keyframes vmenuIn { from { opacity: 0; transform: translateY(-6px); } }
.vmenu__list { display: grid; }

.vmenu__it { position: relative; }
.vmenu__link {
  display: flex; align-items: center; gap: 10px;
  padding: 8.5px 12px; border-radius: var(--r-xs);
  font-size: .89rem; font-weight: 500; color: var(--ink-2);
  transition: background-color .18s, color .18s;
}
.vmenu__link:hover, .vmenu__it:hover > .vmenu__link, .vmenu__it:focus-within > .vmenu__link {
  background: var(--accent-soft); color: var(--accent-ink);
}
.vmenu__ic { width: 20px; height: 20px; flex: none; color: var(--muted); }
.vmenu__it:hover .vmenu__ic { color: var(--accent); }
.vmenu__n { margin-left: auto; font-size: .74rem; color: var(--muted); }
.vmenu__arr { width: 8px; height: 8px; flex: none; margin-left: 4px; color: var(--muted); }

/* выпадающая вторая колонка */
.vmenu__sub {
  position: absolute; top: -6px; left: calc(100% + 5px); z-index: 2;
  min-width: 236px; max-width: 300px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-s);
  box-shadow: var(--shadow-m); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateX(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.vmenu__it:hover > .vmenu__sub, .vmenu__it:focus-within > .vmenu__sub {
  opacity: 1; visibility: visible; transform: none;
}
.vmenu__sub a {
  display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: var(--r-xs);
  font-size: .86rem; color: var(--ink-2); white-space: nowrap;
  transition: background-color .18s, color .18s;
}
.vmenu__sub a:first-child { font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line-2); border-radius: var(--r-xs) var(--r-xs) 0 0; margin-bottom: 3px; padding-bottom: 11px; }
.vmenu__sub a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.vmenu__sub a span { margin-left: auto; font-size: .74rem; color: var(--muted); }

/* статичный вариант на главной */
.vmenu--static .vmenu__btn--static { width: 100%; justify-content: flex-start; cursor: default; border-radius: var(--r-s) var(--r-s) 0 0; }
.vmenu--static .vmenu__panel {
  position: static; width: auto; animation: none;
  border-radius: 0 0 var(--r-s) var(--r-s); border-top: 0; box-shadow: none;
}
.vmenu--static .vmenu__sub { left: calc(100% + 10px); }

/* ---------- Верх главной: колонка + слайдер и витрина ----------
   Повторяет раскладку источника: слева меню категорий и баннер,
   справа главный слайдер, под ним витрина с вкладками. */
.hero { padding-block: clamp(16px, 2vw, 26px) clamp(18px, 2.4vw, 30px); background: var(--surface); }
.hero__in {
  display: grid; grid-template-columns: 292px minmax(0, 1fr);
  gap: clamp(16px, 2vw, 26px); align-items: start;
}
.hero__side { position: relative; z-index: 30; display: grid; gap: 16px; }
.hero__main {
  min-width: 0; display: grid; gap: clamp(20px, 2.4vw, 30px);
  /* явный трек: иначе неявный auto раздувает лента витрины шириной ~3000px */
  grid-template-columns: minmax(0, 1fr);
}
.hero__main > * { min-width: 0; }

@media (max-width: 1080px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__side { order: 2; justify-items: center; }
  .hero__side .vmenu { display: none; }          /* на узких экранах меню — в шторке */
}

/* ---------- Слайдер ---------- */
.slider { position: relative; isolation: isolate; width: 100%; }
/* пропорции и обрезка — на дорожке, чтобы на телефоне управление можно было вынести под картинку */
.slider__track {
  position: relative; overflow: hidden; width: 100%;
  aspect-ratio: var(--ar, 1090 / 500);
  border-radius: var(--r-l); background: var(--bone-2);
  box-shadow: var(--shadow-s);
}
.slider__slide {
  position: absolute; inset: 0; display: block;
  opacity: 0; transition: opacity .8s var(--ease);
}
.slider__slide.is-active { opacity: 1; z-index: 1; }
.slider__slide picture, .slider__img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
/* лёгкий «наезд» камеры, пока баннер на экране */
.slider__slide .slider__img { transform: scale(1.045); transition: transform var(--interval, 5s) linear; }
.slider__slide.is-active .slider__img { transform: scale(1); }
.slider.is-paused .slider__slide.is-active .slider__img { transition-duration: .6s; }

.slider__nav {
  position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow-s);
  opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease-out), background-color .2s;
}
.slider__nav svg { width: 18px; height: 18px; }
.slider__nav--prev { left: 14px; transform: translate(-6px, -50%); }
.slider__nav--next { right: 14px; transform: translate(6px, -50%); }
.slider:hover .slider__nav, .slider:focus-within .slider__nav { opacity: 1; transform: translate(0, -50%); }
.slider__nav:hover { background: #fff; }
.slider__nav:active { transform: translate(0, -50%) scale(.92); }
@media (hover: none) { .slider__nav { display: none; } }

.slider__bar {
  position: absolute; left: 50%; bottom: 14px; z-index: 3; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 12px; border-radius: 100px;
  background: rgba(30, 36, 37, .38); backdrop-filter: blur(8px);
}
.slider__dots { display: flex; gap: 6px; }
.slider__dot {
  width: 8px; height: 8px; border-radius: 100px; overflow: hidden;
  background: rgba(255, 255, 255, .55); transition: width .35s var(--ease-out), background-color .2s;
}
.slider__dot:hover { background: #fff; }
.slider__dot.is-active { width: 30px; background: rgba(255, 255, 255, .4); }
.slider__dot i { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; }
.slider__dot.is-active i { animation: sliderProgress var(--interval, 5s) linear forwards; }
.slider.is-paused .slider__dot.is-active i { animation-play-state: paused; }
@keyframes sliderProgress { to { width: 100%; } }
.slider__pause {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; transition: background-color .2s;
}
.slider__pause:hover { background: rgba(255, 255, 255, .18); }
.slider__pause svg { width: 13px; height: 13px; }
@media (max-width: 720px) {
  .slider__track { border-radius: var(--r-m); }
  /* на телефоне баннер маленький — управление уходит под него, текст баннера не перекрываем */
  .slider__bar {
    position: static; transform: none; width: fit-content; margin: 10px auto 0;
    background: transparent; backdrop-filter: none; padding: 0;
  }
  .slider__dot { width: 6px; height: 6px; background: var(--line); }
  .slider__dot:hover { background: var(--muted); }
  .slider__dot.is-active { width: 20px; background: var(--accent-soft); }
  .slider__dot i { background: var(--accent); }
  .slider__pause { color: var(--muted); }
  .slider__pause:hover { background: var(--line-2); }
}

/* ---------- Баннер под меню ---------- */
.side-banner { width: 100%; }
.side-banner .slider__track { border-radius: var(--r-s); box-shadow: none; border: 1px solid var(--line-2); }
.side-banner .slider__slide { transition-duration: .6s; }
.side-banner .slider__img { transform: none !important; }
.side-banner:hover .slider__img { transform: scale(1.03) !important; transition: transform .8s var(--ease-out); }
@media (max-width: 1080px) { .side-banner { max-width: 340px; } }

/* ---------- Витрина в правой колонке ---------- */
.showcase__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
/* витрина: три карточки на экран (на планшете — две), по бокам запас под тени */
.hero__showcase .rail { margin-inline: -14px; padding-inline: 14px; scroll-padding-inline: 14px; }
.hero__showcase .rail > * { flex-basis: calc((100% - 2 * var(--rail-gap)) / 3); }
@media (max-width: 1080px) {
  .hero__showcase .rail { margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
}
@media (max-width: 760px) { .hero__showcase .rail > * { flex-basis: calc((100% - var(--rail-gap)) / 2); } }
@media (max-width: 480px) { .hero__showcase .rail > * { flex-basis: 78%; } }

/* ---------- Промо-плитки (модуль .cmsbanner) ---------- */
.promo-tiles { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
@media (max-width: 720px) { .promo-tiles { grid-template-columns: 1fr; } }
.promo-tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--r-m);
  aspect-ratio: var(--ar, 2.2 / 1); background: var(--bone-2);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.promo-tile picture, .promo-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
a.promo-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
a.promo-tile:hover img { transform: scale(1.04); }

/* ---------- Категории ----------
   Четыре главные — большими фото со стеклянной подписью поверх снимка,
   остальные — компактными стеклянными карточками с миниатюрой. */
.cats { display: grid; gap: clamp(12px, 1.5vw, 18px); }
.cats__big { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 18px); }
@media (max-width: 1000px) { .cats__big { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cats__more { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1200px) { .cats__more { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cats__more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .cats__more { grid-template-columns: minmax(0, 1fr); } }

.cbig {
  position: relative; display: block; aspect-ratio: 4 / 5; isolation: isolate;
  border-radius: var(--r-l); overflow: hidden; background: var(--bone-2);
  box-shadow: 0 18px 40px -26px rgba(20, 40, 48, .5);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.cbig:hover { transform: translateY(-4px); box-shadow: 0 28px 54px -26px rgba(20, 40, 48, .6); }
.cbig__img { position: absolute; inset: 0; }
.cbig__img > picture, .cbig__img > picture img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.cbig:hover .cbig__img > picture img { transform: scale(1.05); }
.cbig::after {
  content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.cbig__cap {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 12px 12px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .64);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 24px -14px rgba(20, 40, 48, .45);
}
.cbig__t { display: grid; gap: 2px; min-width: 0; }
.cbig__t b { font-size: 1.02rem; font-weight: 700; line-height: 1.25; }
.cbig__t i { font-style: normal; font-size: .78rem; color: var(--ink-2); }
.cbig__go {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(41, 49, 50, .88); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 6px rgba(0, 0, 0, .2);
  transition: background-color .3s, transform .35s var(--ease-out);
}
.cbig:hover .cbig__go { background: rgba(0, 166, 199, .92); transform: translateX(2px); }
.cbig__go svg { width: 16px; height: 16px; }
/* на телефоне плитки узкие: вся плитка — ссылка, стрелку убираем, подпись компактнее */
@media (max-width: 600px) {
  .cbig__go { display: none; }
  .cbig__cap { left: 8px; right: 8px; bottom: 8px; padding: 9px 12px; border-radius: 14px; }
  .cbig__t b { font-size: .9rem; }
  .cbig__t i { font-size: .72rem; }
}

.csm {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 14px 10px 10px; border-radius: var(--r-m); min-width: 0;
}
.csm__img { position: relative; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #fff; }
.csm__img > picture, .csm__img > picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.csm__img.is-product img { object-fit: contain; padding: 4px; }
.csm__t { display: grid; gap: 1px; min-width: 0; }
.csm__t b { font-size: .9rem; font-weight: 700; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.csm__t i { font-style: normal; font-size: .76rem; color: var(--muted); }
.csm > svg { width: 16px; height: 16px; color: var(--muted); transition: transform .3s var(--ease-out), color .3s; }
.csm:hover > svg { transform: translateX(3px); color: var(--accent); }

/* ---------- Промо-полоса ---------- */
.promo-band {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--r-l); overflow: hidden;
}
@media (max-width: 860px) { .promo-band { grid-template-columns: 1fr; } }
.promo-band--solo { grid-template-columns: 1fr; }
.promo-band__txt { padding: clamp(26px, 4vw, 52px); display: grid; gap: 15px; align-content: center; justify-items: start; }
.promo-band__art { position: relative; overflow: hidden; min-height: 280px; }
.promo-band__art img, .promo-band__art picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
/* в узкой полосе на телефоне держим в кадре мебель, а не стену */
.promo-band__art img { object-position: 50% 72%; }
.promo-band__art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--surface-2) 0%, rgba(246, 248, 249, 0) 38%);
}
@media (max-width: 860px) {
  .promo-band__art { min-height: 200px; order: -1; }
  .promo-band__art::after { background: linear-gradient(180deg, rgba(246, 248, 249, 0) 55%, var(--surface-2) 100%); }
}

/* ---------- Универсальные две колонки ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(26px, 5vw, 64px); align-items: center; }
@media (max-width: 980px) { .two-col { grid-template-columns: 1fr; } }
.two-col__a { display: grid; gap: 15px; align-content: start; justify-items: start; }

/* ---------- Таблица наличия по точкам ---------- */
.m2table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.m2table th { text-align: left; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 0 0 10px; }
.m2table td { padding: 13px 0; border-top: 1px solid var(--line-2); vertical-align: middle; }
.m2table tr:hover td { background: var(--surface-2); }
.m2table td:first-child, .m2table th:first-child { padding-left: 16px; }
.m2table td:last-child, .m2table th:last-child { padding-right: 16px; text-align: right; }
.m2table .store { display: flex; flex-direction: column; }
.m2table .store b { font-weight: 600; font-size: .9rem; }
.m2table .store span { font-size: .75rem; color: var(--muted); }
.m2val { font-weight: 800; font-size: 1.02rem; white-space: nowrap; }
.m2val small { font-size: .72rem; font-weight: 600; color: var(--muted); }
.m2bar { display: block; height: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; min-width: 70px; }
.m2bar i { display: block; height: 100%; border-radius: 3px; background: var(--green); transform-origin: left; animation: growX .9s var(--ease-out) both; }
@keyframes growX { from { transform: scaleX(0); } }

/* ---------- Подвал (светлый) ---------- */
.ftr {
  background: var(--surface-2); border-top: 1px solid var(--line);
  padding-block: clamp(30px, 3.6vw, 48px) 22px; margin-top: clamp(16px, 2vw, 24px);
}
.ftr__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 70px); }
@media (max-width: 900px) { .ftr__top { grid-template-columns: 1fr; } }
.ftr__brand { display: grid; gap: 16px; justify-items: start; align-content: start; }
.ftr__lead { font-size: .9rem; line-height: 1.65; color: var(--ink-2); max-width: 46ch; }

.ftr__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 620px) { .ftr__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .ftr__cols { grid-template-columns: 1fr; } }
.ftr__col { display: grid; gap: 9px; align-content: start; }
.ftr__col h3 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); font-weight: 800; margin-bottom: 4px; }
.ftr__col a { font-size: .89rem; color: var(--ink-2); transition: color .2s, transform .2s; width: fit-content; }
.ftr__col a:hover { color: var(--accent); transform: translateX(3px); }

.ftr__phones {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden;
  margin-top: clamp(22px, 3vw, 36px);
}
@media (max-width: 760px) { .ftr__phones { grid-template-columns: repeat(2, 1fr); } }
.ftr__phone { background: var(--surface); padding: 17px 20px; display: grid; gap: 3px; transition: background-color .25s; }
.ftr__phone:hover { background: var(--accent-soft); }
.ftr__phone i { font-style: normal; font-size: .72rem; letter-spacing: .05em; color: var(--muted); }
.ftr__phone b { font-size: 1.1rem; font-weight: 800; }

.ftr__bottom {
  margin-top: clamp(18px, 2.6vw, 28px); padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .78rem; color: var(--muted);
}
.ftr__note { max-width: 62ch; }

/* ── pages.css ── */
/* ============================================================
   Стили внутренних страниц: каталог, товар, остатки, новости, контакты.
   ============================================================ */

/* ---------- Шапка каталога ---------- */
.cat-hero { padding-block: 6px clamp(18px, 3vw, 30px); }
/* под шапкой категории сразу идут фильтры и товары — без второго большого отступа секции */
.cat-hero + .sec { padding-top: clamp(4px, 1vw, 10px); }
.cat-hero__in { display: grid; gap: 20px; }
.cat-hero__txt { display: grid; gap: 10px; max-width: 760px; }
.cat-hero__quick { display: flex; gap: 8px; flex-wrap: wrap; }

.pager { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: clamp(26px, 4vw, 44px); flex-wrap: wrap; }
.pager__b { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 100px; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: .88rem; transition: all .25s; }
.pager__b:hover { border-color: var(--ink); }
.pager__b.is-on { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.pager__b:disabled, .pager__b[aria-disabled] { opacity: .35; pointer-events: none; }
.pager__b svg { width: 16px; height: 16px; }
.pager__d { color: var(--muted); padding: 0 4px; }

/* ---------- Карточка товара ---------- */
.chip--xs { height: 28px; padding: 0 11px; font-size: .76rem; font-weight: 700; }
.pdp__zoomhint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  background: rgba(30, 36, 37, .72); color: #fff; font-size: .72rem; padding: 6px 13px; border-radius: 100px;
  opacity: 0; transition: opacity .3s; pointer-events: none; backdrop-filter: blur(6px);
}
.pdp__main:hover .pdp__zoomhint { opacity: 1; }
@media (hover: none) { .pdp__zoomhint { display: none; } }
.pdp__stockline { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: .9rem; }
.pdp__stockline b { font-size: 1.05rem; }
.pdp__box { font-size: .86rem; margin-top: -8px; }
.pdp__box b { color: var(--ink); }
.pdp__unitnote { font-size: .78rem; margin-top: -8px; }
.pdp__perks { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
@media (max-width: 520px) { .pdp__perks { grid-auto-flow: row; } }
.pdp__perks > div { background: var(--surface); padding: 14px; display: grid; gap: 2px; }
.pdp__perks b { font-size: .86rem; }
.pdp__perks span { font-size: .76rem; color: var(--muted); }
.pdp__panes { min-height: 200px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 4vw, 56px); }
@media (max-width: 760px) { .spec-grid { grid-template-columns: 1fr; } }
.stock-card { border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: var(--surface); }
.stock-card .m2table { width: 100%; }
.stock-card thead th { padding: 14px 0 12px; background: var(--surface-2); }
.stock-card__foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px; border-top: 1px solid var(--line-2); background: var(--surface-2); font-size: .84rem; }
.prose { max-width: 70ch; display: grid; gap: 14px; }
.prose p { font-size: .96rem; line-height: 1.75; color: var(--ink-2); }

/* ---------- Статья ----------
   Текст новости — на стеклянном «листе»: заголовок, обложка, абзацы, фото из статьи;
   под листом — «Другие новости». */
.article { max-width: 920px; margin-inline: auto; display: grid; gap: clamp(28px, 4vw, 44px); }
.article__card { border-radius: var(--r-l); padding: clamp(20px, 4.4vw, 56px); display: grid; gap: 14px; min-width: 0; }
.article__back { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 600; color: var(--muted); justify-self: start; margin-bottom: 4px; }
.article__back:hover { color: var(--accent); }
.article__back svg { width: 15px; height: 15px; }
.article__t { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; margin-bottom: 4px; }
.article__img { position: relative; margin: 6px 0 10px; border-radius: var(--r-m); overflow: hidden; background: var(--bone-2); aspect-ratio: var(--news-ar); }
.article__img picture, .article__img img { display: block; width: 100%; height: 100%; }
.article__img img { object-fit: cover; }
.article__img::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .55); }
.article__card .prose { max-width: 68ch; gap: 12px; }
.article__card .prose p { font-size: 1rem; }
.article__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; margin-top: 8px; }
.article__gallery a { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-s); overflow: hidden; background: var(--bone-2); }
.article__gallery picture, .article__gallery img { display: block; width: 100%; height: 100%; }
.article__gallery img { object-fit: cover; transition: transform .6s var(--ease-out); }
.article__gallery a:hover img { transform: scale(1.05); }
.article__more { display: grid; gap: 16px; }
.news--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .news--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Контакты ---------- */
.contact-lay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(26px, 5vw, 60px); align-items: start; }
@media (max-width: 900px) { .contact-lay { grid-template-columns: 1fr; } }
.contact-lay__txt { display: grid; gap: 14px; align-content: start; }
.cform { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(20px, 3vw, 30px); display: grid; gap: 14px; box-shadow: var(--shadow-m); }
.cform textarea { border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); padding: 12px 14px; outline: none; resize: vertical; font-family: inherit; }
.cform textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.map-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(20px, 3vw, 34px); overflow: hidden; }
@media (max-width: 800px) { .map-card { grid-template-columns: 1fr; } }
.map-card__txt { display: grid; gap: 12px; align-content: start; justify-items: start; }
.map-card__map { position: relative; min-height: 340px; border-radius: var(--r-m); overflow: hidden; background: var(--bone-2); }
.map-card__map { z-index: 0; height: 340px; }
/* карта OpenStreetMap (Leaflet): метки в цветах сайта, подписи — шрифтом сайта */
.map-card .leaflet-container { font-family: var(--f-text); background: var(--bone-2); }
/* слой плиток — отдельный и по пиксельной сетке: блок карты стоит на дробной координате, иначе между рядами плиток светлые швы */
.map-card .leaflet-tile-pane { will-change: transform; }
.map-pin span { position: absolute; left: 3px; top: 1px; width: 22px; height: 22px; box-sizing: border-box; border-radius: 50% 50% 50% 0; background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transform: rotate(-45deg); }
.map-pin--warehouse span { background: var(--ink); }
.map-card .leaflet-popup-content { margin: 12px 16px; font-size: .85rem; line-height: 1.4; }
.map-pop { display: grid; gap: 3px; }
.map-pop span { color: var(--muted); }
.map-pop a { color: var(--accent-2); }
.map-card__list { display: grid; gap: 8px; width: 100%; }
.map-card__list a { display: grid; gap: 1px; padding: 10px 12px; border-radius: var(--r-s); background: rgba(255, 255, 255, .5); border: 1px solid var(--line-2); transition: border-color .25s, background-color .25s; }
.map-card__list a:hover { border-color: var(--accent); background: rgba(255, 255, 255, .85); }
.map-card__list b { font-size: .9rem; }
.map-card__list span { font-size: .8rem; color: var(--muted); }
/* поле-ловушка для ботов: людям не видно */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
/* предупреждения менеджера после оформления заказа */
.done__warn { display: grid; gap: 6px; margin: 4px 0 8px; padding: 12px 16px 12px 32px; border-radius: var(--r-s); background: var(--amber-soft); color: var(--ink-2); font-size: .88rem; text-align: left; }

/* ---------- Заглушка вместо отсутствующего фото ---------- */
.noimg {
  container-type: inline-size;
  display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%;
  background: linear-gradient(160deg, var(--surface-2), var(--bone-2));
  color: var(--muted);
}
.noimg__in { display: grid; justify-items: center; gap: clamp(4px, 3cqi, 10px); padding: 8px; text-align: center; }
.noimg svg { width: clamp(20px, 22cqi, 56px); height: auto; opacity: .6; }
.noimg__t { font-size: clamp(.7rem, 5.5cqi, .88rem); font-weight: 600; letter-spacing: .01em; color: var(--muted); line-height: 1.2; }
/* на миниатюрах в корзине — только иконка */
@container (max-width: 120px) { .noimg__t { display: none; } }

/* ---------- Мобильная шапка ---------- */
@media (max-width: 620px) {
  .hdr__in { gap: 6px; }
  .hdr__phone { display: none; }
  .iconbtn { width: 38px; height: 38px; }
  .iconbtn svg { width: 19px; height: 19px; }
  :root { --hdr-h: 62px; }
}
.mlink--btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; }
.mlink--btn svg { width: 20px; height: 20px; margin-left: auto; color: var(--muted); }

/* горизонтальная лента быстрых категорий на узких экранах */
@media (max-width: 720px) {
  .cat-hero__quick {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); padding-bottom: 4px;
  }
  .cat-hero__quick::-webkit-scrollbar { display: none; }
  .cat-hero__quick .chip { flex: none; }
}

@media (max-width: 430px) {
  .calc__row { grid-template-columns: 1fr; }
  .pdp__buy { display: grid; grid-template-columns: auto 1fr; }
  .pdp__buy .btn--ghost { grid-column: 1 / -1; }
}

/* ---------- Юридический текст ---------- */
.legal { max-width: 78ch; margin-inline: auto; display: grid; gap: 14px; }
.legal__body { display: grid; gap: 12px; margin-top: 10px; }
.legal__body h2 {
  font-size: 1.02rem; font-weight: 800; margin-top: 18px;
  letter-spacing: -.01em; color: var(--ink);
}
.legal__body p { font-size: .92rem; line-height: 1.72; color: var(--ink-2); }
.legal__body .legal__title { font-size: 1rem; font-weight: 600; line-height: 1.5; color: var(--ink); }
.legal__src { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .84rem; }
.legal__src a { color: var(--accent); font-weight: 600; }

/* «Подробные условия» на /delivery, /rassrochka, /corporates — текст страницы из админки */
.info-more { max-width: 78ch; margin-top: clamp(22px, 3vw, 34px); border-top: 1px solid var(--line); }
.info-more > summary {
  display: flex; align-items: center; gap: 10px; padding: 16px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: .95rem; color: var(--ink);
}
.info-more > summary::-webkit-details-marker { display: none; }
.info-more > summary::after {
  content: ''; width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .3s;
}
.info-more[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.info-more > summary:hover { color: var(--accent); }
.info-more .legal__body { margin: 0 0 8px; }
.info-more h3 { font-size: .98rem; font-weight: 800; margin-top: 10px; color: var(--ink); }
.info-more ul { display: grid; gap: 6px; padding-left: 1.2em; list-style: disc; font-size: .92rem; line-height: 1.6; color: var(--ink-2); }

/* ---------- Бренды ---------- */
/* буквенный указатель, как на keramika.md/manufacturers */
.abc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: clamp(18px, 2.4vw, 28px); }
.abc a {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface);
  font-size: .86rem; font-weight: 700; color: var(--ink-2);
  transition: background-color .25s, border-color .25s, color .25s;
}
.abc a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.brandgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: clamp(12px, 1.6vw, 18px); }
@media (max-width: 560px) { .brandgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .brandcard__logo { padding: 10px 12px; } .brandcard__b { padding: 10px 12px 12px; } }
.brandcard {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-m);
  overflow: hidden; display: flex; flex-direction: column; min-width: 0;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .25s;
}
a.brandcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: transparent; }
/* логотипы на источнике квадратные 248×248 и разные по фону — вписываем целиком, без обрезки */
.brandcard__logo { aspect-ratio: 4 / 3; padding: 14px 18px; display: grid; place-items: center; background: #fff; border-bottom: 1px solid var(--line-2); }
.brandcard__logo picture, .brandcard__logo img { display: block; width: 100%; height: 100%; }
.brandcard__logo img { object-fit: contain; transition: transform .6s var(--ease-out); }
a.brandcard:hover .brandcard__logo img { transform: scale(1.05); }
.brandcard__b { flex: 1; padding: 12px 16px 14px; display: grid; gap: 3px; align-content: start; }
.brandcard__b b { font-size: .92rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.brandcard__b span { font-size: .78rem; color: var(--muted); }
.brandcard.is-empty .brandcard__logo img { opacity: .55; filter: grayscale(1); }
.brandcard.is-empty .brandcard__b span { color: var(--muted-2, var(--muted)); font-style: italic; }

.brands-more { margin-top: clamp(24px, 3vw, 40px); padding-top: clamp(20px, 2.4vw, 28px); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.brands-more__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ftr__bottom a { color: var(--accent); }
.ftr__bottom a:hover { text-decoration: underline; }

/* ── shop.css ── */
/* ============================================================
   Магазинные компоненты: логотип, действия на карточке, быстрый
   просмотр, корзина, оформление, избранное, отзывы.
   ============================================================ */

/* ---------- Логотип оригинала ---------- */
.logo { display: flex; align-items: center; flex: none; }
.logo__img { height: 24px; width: auto; transition: opacity .25s; }
.logo:hover .logo__img { opacity: .78; }
.logo__img--lg { height: 30px; }
@media (max-width: 620px) { .logo__img { height: 19px; } }
/* the smallest phones (320 px): the logo and four header buttons must fit without a sideways scroll (HITE-656) */
@media (max-width: 374px) {
  .logo__img { height: 15px; }
  .hdr__in { gap: 8px; }
  .hdr__tools { gap: 0; }
  .hdr__tools .iconbtn, .hdr__tools .burger { width: 38px; height: 38px; }
}

/* ---------- Действия на карточке товара ---------- */
.card__acts {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: grid; gap: 6px;
}
.card__act {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--shadow-s);
  opacity: 0; transform: translateX(8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), background-color .2s, color .2s;
}
.card__act svg { width: 16px; height: 16px; }
.card:hover .card__act { opacity: 1; transform: none; }
.card__act:nth-child(2) { transition-delay: .04s; }
.card__act:nth-child(3) { transition-delay: .08s; }
.card__act:hover { background: var(--ink); color: #fff; }
.card__act.is-on { opacity: 1; transform: none; background: var(--accent); color: #fff; }
@media (hover: none) { .card__act { opacity: 1; transform: none; } }

.card__box { font-size: .74rem; color: var(--muted); margin-top: -3px; }
.card__desc { font-size: .84rem; line-height: 1.5; }

/* список вместо сетки */
.grid--list { grid-template-columns: 1fr; }
.card--list { flex-direction: row; }
.card--list .card__media { width: clamp(150px, 26%, 230px); aspect-ratio: 1; flex: none; }
.card--list .card__body { padding: 18px 20px; }
.card--list .card__name { font-size: 1.02rem; }
.card--list .card__buy { max-width: 260px; }
@media (max-width: 560px) {
  .card--list { flex-direction: column; }
  .card--list .card__media { width: 100%; }
}

/* звёзды */
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars svg { width: 13px; height: 13px; color: var(--line); }
.stars svg.is-on { color: var(--gold); }
.stars__n { font-size: .74rem; color: var(--muted); margin-left: 5px; }

/* ---------- Быстрый просмотр ---------- */
.qvbox { position: fixed; inset: 0; z-index: 96; }
.qvbox__scrim { position: absolute; inset: 0; background: rgba(20, 25, 26, .55); backdrop-filter: blur(4px); animation: fade .25s var(--ease); }
.qvbox__panel {
  position: relative; max-width: 940px; margin: min(9vh, 90px) auto 0;
  background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-l);
  animation: pop .35s var(--ease-out); max-height: 84vh; overflow: auto;
}
@media (max-width: 720px) { .qvbox__panel { margin: 0; border-radius: 0; max-height: 100vh; height: 100%; } }
.qvbox__x { position: absolute; top: 12px; right: 12px; z-index: 3; background: var(--surface); }
.qv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; }
@media (max-width: 720px) { .qv { grid-template-columns: 1fr; } }
.qv__img { background: var(--bone-2); aspect-ratio: 1; }
.qv__img img, .qv__img picture { width: 100%; height: 100%; object-fit: cover; }
.qv__info { padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; align-content: start; }
.qv__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qv__t { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.1rem, 1.9vw, 1.4rem); line-height: 1.26; letter-spacing: -.024em; }
.qv__box { font-size: .84rem; }
.qv__specs { display: grid; gap: 0; margin: 0; }
.qv__specs > div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: .86rem; }
.qv__specs dt { color: var(--muted); margin: 0; }
.qv__specs dd { margin: 0; font-weight: 600; }
.qv__stores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
@media (max-width: 520px) { .qv__stores { grid-template-columns: repeat(2, 1fr); } }
.qv__store { background: var(--surface); padding: 10px; display: grid; gap: 2px; text-align: center; }
.qv__store i { font-style: normal; font-size: .68rem; color: var(--muted); }
.qv__store b { font-size: .86rem; color: var(--green); }
.qv__store.is-low b { color: var(--amber); }
.qv__store.is-out b { color: var(--muted); font-weight: 500; }
.qv__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.qv__load { padding: 40px; }

/* ---------- Мини-корзина ---------- */
.citem { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.citem__img { width: 62px; height: 62px; border-radius: var(--r-xs); overflow: hidden; background: var(--bone-2); }
.citem__img img { width: 100%; height: 100%; object-fit: cover; }
.citem__mid { display: grid; gap: 6px; min-width: 0; }
.citem__n { font-size: .85rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.citem__n:hover { color: var(--accent); }
.citem__m { font-size: .74rem; color: var(--muted); }
.citem__right { display: grid; gap: 6px; justify-items: end; }
.citem__p { font-weight: 800; white-space: nowrap; font-size: .92rem; }
.citem__x { width: 26px; height: 26px; border-radius: 50%; color: var(--muted); font-size: 1.1rem; line-height: 1; display: grid; place-items: center; }
.citem__x:hover { background: var(--red-soft); color: var(--red); }
.cart__clear { font-size: .8rem; color: var(--muted); justify-self: center; padding: 4px; }
.cart__clear:hover { color: var(--red); }
.cart__empty { text-align: center; padding: 50px 10px; color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.cart__empty svg { width: 52px; height: 52px; opacity: .3; }

.qty--sm { height: 34px; }
.qty--sm button { width: 32px; font-size: .95rem; }
.qty--sm span { min-width: 74px; text-align: center; font-weight: 700; font-size: .8rem; }

/* ---------- Страница корзины ---------- */
.cartpage { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 1000px) { .cartpage { grid-template-columns: 1fr; } }
.cartpage__list { display: grid; gap: 12px; }
.cartpage__side { position: sticky; top: calc(var(--hdr-h) + 16px); }
@media (max-width: 1000px) { .cartpage__side { position: static; } }

.crow {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: clamp(12px, 2vw, 22px);
  align-items: center; padding: 16px; background: var(--card);
  border: 1px solid var(--line-2); border-radius: var(--r-m);
  transition: border-color .25s, box-shadow .25s;
}
.crow:hover { border-color: var(--line); box-shadow: var(--shadow-s); }
.crow__img { width: 96px; height: 96px; border-radius: var(--r-s); overflow: hidden; background: var(--bone-2); }
.crow__img img { width: 100%; height: 100%; object-fit: cover; }
.crow__info { display: grid; gap: 5px; min-width: 0; }
.crow__n { font-weight: 600; font-size: .96rem; line-height: 1.35; }
.crow__n:hover { color: var(--accent); }
.crow__m { font-size: .8rem; color: var(--muted); }
.crow__x { font-size: .78rem; color: var(--muted); text-align: left; width: fit-content; margin-right: 12px; display: inline-block; }
.crow__x:hover { color: var(--accent); }
.crow__warn { font-size: .8rem; color: var(--red); margin: 2px 0 4px; }   /* not enough in stock (HITE-724) */
.crow__qty { display: grid; gap: 6px; justify-items: center; }
.crow__unit { font-size: .72rem; color: var(--muted); }
.crow__sum b { font-size: 1.1rem; font-weight: 800; white-space: nowrap; }
@media (max-width: 720px) {
  .crow { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .crow__img { width: 76px; height: 76px; }
  .crow__qty { grid-column: 1 / -1; justify-items: start; }
  .crow__sum { grid-column: 1 / -1; }
}

/* ---------- Блок итогов ---------- */
.sumbox {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: clamp(18px, 2.5vw, 24px); display: grid; gap: 14px; box-shadow: var(--shadow-s);
}
.sumbox__t { font-size: 1.1rem; font-weight: 800; }
.sumbox__deliv { display: grid; gap: 8px; }
.delivopt {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-s); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.delivopt:hover { border-color: var(--accent); }
.delivopt.is-on { border-color: var(--accent); background: var(--accent-soft); }
.delivopt input { accent-color: var(--accent); width: 16px; height: 16px; }
.delivopt__b { display: grid; gap: 1px; min-width: 0; }
.delivopt__b b { font-size: .86rem; }
.delivopt__b i { font-style: normal; font-size: .72rem; color: var(--muted); }
.delivopt__p { font-size: .82rem; font-weight: 700; white-space: nowrap; }
.sumbox__hint { font-size: .78rem; color: var(--muted); }
.sumbox__hint b { color: var(--ink); }
.sumbox__hint--warn { color: var(--red); }

.promo { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.promo input {
  height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--surface); outline: none; font-size: .88rem; min-width: 0;
}
.promo input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.promo.is-on input { background: var(--accent-soft); border-color: var(--accent); font-weight: 700; }
.promo__ok { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--green); font-weight: 600; margin-top: -6px; }
.promo__ok svg { width: 14px; height: 14px; }
.promo__err { font-size: .78rem; color: var(--red); margin-top: -6px; }

.sumbox__rows { display: grid; gap: 0; margin: 0; }
.sumbox__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: .88rem; }
.sumbox__rows dt { color: var(--muted); margin: 0; }
.sumbox__rows dd { margin: 0; font-weight: 600; }
.sumbox__rows .is-minus dd { color: var(--green); }
.sumbox__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 2px solid var(--ink); }
.sumbox__total span { font-size: .92rem; }
.sumbox__total b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.sumbox__inst { background: var(--surface-2); border-radius: var(--r-s); padding: 13px 15px; display: grid; gap: 7px; }
.sumbox__inst > b { font-size: .84rem; }
.instrow { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.instrow b { color: var(--ink); }
.sumbox__note { font-size: .74rem; color: var(--muted); }
.sumbox__items { display: grid; gap: 10px; max-height: 280px; overflow-y: auto; }
.sumitem { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; }
.sumitem img, .sumitem > .noimg { width: 44px; height: 44px; border-radius: var(--r-xs); object-fit: cover; background: var(--bone-2); }
.sumitem b { font-size: .8rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.28; }
.sumitem span { font-size: .72rem; color: var(--muted); }
.sumitem i { font-style: normal; font-weight: 700; font-size: .82rem; white-space: nowrap; }

/* ---------- Оформление ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 1040px) { .checkout { grid-template-columns: 1fr; } }
.checkout__main { display: grid; gap: 14px; }
.checkout__side { position: sticky; top: calc(var(--hdr-h) + 16px); }
@media (max-width: 1040px) { .checkout__side { position: static; } }
.cblock { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-m); padding: clamp(18px, 2.5vw, 26px); display: grid; gap: 12px; }
.cblock__t { display: flex; align-items: center; gap: 11px; font-size: 1.05rem; font-weight: 800; }
.cblock__t i {
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bone);
  display: grid; place-items: center; font-style: normal; font-size: .8rem; flex: none;
}
.cblock__hint { font-size: .8rem; color: var(--muted); }

.radiogrid { display: grid; gap: 8px; }
.radiogrid--stores { margin-top: 6px; }
.radiocard {
  display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-s); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.radiocard:hover { border-color: var(--accent); }
.radiocard.is-on { border-color: var(--accent); background: var(--accent-soft); }
.radiocard input { accent-color: var(--accent); width: 17px; height: 17px; }
.radiocard__b { display: grid; gap: 2px; min-width: 0; }
.radiocard__b b { font-size: .9rem; }
.radiocard__b i { font-style: normal; font-size: .76rem; color: var(--muted); }
.radiocard__p { font-size: .85rem; font-weight: 700; white-space: nowrap; }

.instalment { background: var(--surface-2); border-radius: var(--r-s); padding: 14px 16px; display: grid; gap: 8px; }
.instalment__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .86rem; color: var(--muted); }
.instalment__row b { color: var(--ink); font-weight: 700; }
.instalment__row--big b { font-size: 1.25rem; color: var(--accent); }

.done { max-width: 620px; margin-inline: auto; text-align: center; display: grid; gap: 16px; padding-block: clamp(20px, 5vw, 50px); }
.done__ic { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-inline: auto; }
.done__ic svg { width: 30px; height: 30px; }
.done__rows { display: grid; gap: 0; margin: 0; text-align: left; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.done__rows > div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line-2); font-size: .88rem; }
.done__rows > div:first-child { border-top: 0; }
.done__rows dt { color: var(--muted); margin: 0; }
.done__rows dd { margin: 0; }
@media (max-width: 520px) { .done__rows > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Переключатель вида ---------- */
.viewsw { display: inline-flex; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; height: 42px; }
.viewsw button { width: 40px; display: grid; place-items: center; color: var(--muted); transition: background-color .2s, color .2s; }
.viewsw button svg { width: 17px; height: 17px; fill: currentColor; }
.viewsw button.is-on { background: var(--ink); color: var(--bone); }
@media (max-width: 560px) { .viewsw { display: none; } }

/* ---------- Отзывы ---------- */
.rev { display: grid; gap: 22px; max-width: 760px; }
.rev__sum { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rev__score { font-family: var(--f-display); font-weight: 800; font-size: 2.2rem; line-height: 1; letter-spacing: -.03em; }
.rev__list { display: grid; gap: 14px; }
.rev__it { border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 16px 18px; display: grid; gap: 8px; }
.rev__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .88rem; }
.rev__it p { font-size: .9rem; line-height: 1.6; color: var(--ink-2); }
.rev__form { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(16px, 2.4vw, 24px); background: var(--surface-2); }
.rev__form > b { font-size: 1rem; }
.rev__form textarea { border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); padding: 11px 14px; outline: none; resize: vertical; font-family: inherit; }
.rev__form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Самовывоз и уведомление в карточке ---------- */
.pdp__pickup, .pdp__notify { border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; display: grid; gap: 10px; }
.pdp__notify { background: var(--amber-soft); border-color: transparent; }
.pdp__notify p { font-size: .84rem; }
.pdp__notify-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.pdp__notify-form input { height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); outline: none; min-width: 0; }
.pdp__pickup > b { font-size: .92rem; }
.pdp__pickup-list { display: grid; gap: 7px; }
.pickopt { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: var(--r-s); cursor: pointer; transition: border-color .2s, background-color .2s; }
.pickopt:hover { border-color: var(--accent); }
.pickopt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pickopt input { accent-color: var(--accent); }
.pickopt__n { display: grid; gap: 1px; font-size: .86rem; font-weight: 600; }
.pickopt__n i { font-style: normal; font-size: .72rem; color: var(--muted); font-weight: 400; }
.pickopt__q { font-size: .84rem; font-weight: 800; color: var(--green); white-space: nowrap; }
.pickopt__q.is-low { color: var(--amber); }

/* ---------- Липкая панель покупки ---------- */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 58;
  display: none; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px clamp(14px, 4vw, 22px) calc(10px + env(safe-area-inset-bottom));
  background: var(--glass); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 28px -18px rgba(30, 36, 37, .5);
  transform: translateY(110%); transition: transform .4s var(--ease-out);
}
.buybar.is-on { transform: none; }
@media (max-width: 940px) { .buybar { display: flex; } }
.buybar__l { display: grid; gap: 3px; }
.buybar__l b { font-size: 1.1rem; font-weight: 800; }
.buybar__l b small { font-size: .7rem; font-weight: 600; color: var(--muted); }

/* ---------- Кнопки-иконки ---------- */
.btn--icon { width: 52px; padding: 0; }
.btn--icon svg { width: 19px; height: 19px; }
.btn--icon.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 26px -14px var(--accent); }
.btn--accent:hover { background: var(--accent-2); box-shadow: 0 18px 40px -16px var(--accent); }

.sres--all { justify-content: center; font-weight: 700; color: var(--accent); grid-template-columns: 1fr; text-align: center; }

.done__num {
  display: inline-block; margin-inline: auto;
  background: var(--accent-soft); color: var(--accent-ink);
  border-radius: var(--r-s); padding: 10px 16px;
  font-size: .86rem; font-weight: 600; line-height: 1.5;
}

.fcheck a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ── buttons.css ── */
/* ============================================================
   Анимация кнопок: блик при наведении, волна от точки нажатия,
   упругий отклик и подтяжка иконки.
   Работает для .btn всех видов, «В корзину» на карточке и
   кнопки «Категории магазина».
   ============================================================ */

.btn,
.card__buy,
.vmenu__btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;               /* чтобы z-index:-1 у псевдоэлементов не убегал наружу */
  -webkit-tap-highlight-color: transparent;
}

/* ---------- 1. Волна от точки нажатия ---------- */
.btn::before,
.card__buy::before,
.vmenu__btn::before {
  content: '';
  position: absolute;
  inset: -40%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transform: scale(.25);
  transform-origin: var(--rx, 50%) var(--ry, 50%);
  background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%),
              currentColor 0%, currentColor 34%, transparent 62%);
}
.btn.is-rippling::before,
.card__buy.is-rippling::before,
.vmenu__btn.is-rippling::before {
  animation: btnRipple .62s cubic-bezier(.22, .61, .36, 1);
}
@keyframes btnRipple {
  0%   { opacity: .26; transform: scale(.25); }
  70%  { opacity: .12; }
  100% { opacity: 0;   transform: scale(1.25); }
}

/* ---------- 2. Блик, пробегающий по кнопке ---------- */
.btn::after,
.card__buy::after,
.vmenu__btn::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 55%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(100deg,
              transparent 0%, rgba(255, 255, 255, .5) 50%, transparent 100%);
  transform: translateX(-180%) skewX(-14deg);
  transition: transform .85s var(--ease-out);
}
.btn:hover::after,
.card__buy:hover::after,
.vmenu__btn:hover::after,
.btn:focus-visible::after,
.card__buy:focus-visible::after {
  transform: translateX(320%) skewX(-14deg);
}
/* на светлых кнопках белый блик не виден — делаем его тёмным */
.btn--ghost::after,
.card__buy::after {
  background: linear-gradient(100deg,
              transparent 0%, rgba(41, 49, 50, .12) 50%, transparent 100%);
}
.btn--ghost:hover::after,
.card__buy:hover::after {
  background: linear-gradient(100deg,
              transparent 0%, rgba(255, 255, 255, .34) 50%, transparent 100%);
}

/* ---------- 3. Отклик на наведение и нажатие ---------- */
.btn {
  transition: transform .32s var(--ease-out), box-shadow .32s var(--ease-out),
              background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.975); transition-duration: .09s; }

.card__buy:hover { transform: translateY(-1px); }
.card__buy:active { transform: scale(.975); transition-duration: .09s; }

.vmenu__btn:active { transform: scale(.985); transition-duration: .09s; }

/* акцентная кнопка: тень «дышит» вместе с подъёмом */
.btn--accent { box-shadow: 0 8px 20px -12px var(--accent); }
.btn--accent:hover { box-shadow: 0 20px 38px -14px var(--accent); }
.btn--accent:active { box-shadow: 0 6px 16px -12px var(--accent); }

.btn--primary { box-shadow: 0 6px 16px -12px rgba(41, 49, 50, .8); }
.btn--primary:hover { box-shadow: 0 18px 34px -14px rgba(41, 49, 50, .55); }

/* ---------- 4. Иконка внутри кнопки ---------- */
.btn svg,
.card__buy svg {
  transition: transform .4s var(--ease-out);
}
.btn:hover svg,
.card__buy:hover svg { transform: translateX(2px) scale(1.06); }
/* у кнопок со стрелкой «назад» сдвиг в другую сторону */
.btn--back:hover svg { transform: translateX(-2px) scale(1.06); }

/* «Добавлено» — короткий кивок вместо блика */
.card__buy.is-done { animation: btnPop .4s var(--ease-out); }
.card__buy.is-done::after { display: none; }
@keyframes btnPop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.045); }
  100% { transform: scale(1); }
}

/* ---------- 5. Круглые иконки в шапке и каруселях ---------- */
.iconbtn, .rail-nav button, .pager__b, .card__act {
  -webkit-tap-highlight-color: transparent;
}
.iconbtn:active, .card__act:active { transform: scale(.9); }
.rail-nav button:active, .pager__b:active { transform: scale(.93); }
.rail-nav button, .pager__b { transition: background-color .25s, border-color .25s, color .25s, transform .12s var(--ease-out); }

/* ---------- 6. Живой блик без наведения ----------
   Бежит по заливным кнопкам сам, циклом. Слой лежит в background-image
   самой кнопки, поэтому не мешает блику по наведению (::after) и волне (::before). */
.btn--accent,
.btn--primary,
.vmenu__btn {
  background-image: linear-gradient(100deg,
    transparent 34%,
    rgba(255, 255, 255, .10) 42%,
    rgba(255, 255, 255, .45) 48%,
    rgba(255, 255, 255, .10) 54%,
    transparent 62%);
  background-size: 260% 100%;
  background-repeat: no-repeat;
  background-position: 215% 0;
  animation: btnSheen 3.6s cubic-bezier(.45, 0, .2, 1) infinite;
}

@keyframes btnSheen {
  0%, 62%   { background-position: 215% 0; }
  92%, 100% { background-position: -115% 0; }
}

/* на наведении бегущий блик уступает место разовому проблеску */
.btn--accent:hover,
.btn--primary:hover,
.vmenu__btn:hover,
.btn--accent:active,
.btn--primary:active { animation: none; }

/* разводим кнопки по фазе, чтобы не вспыхивали синхронно */
.btn--accent:nth-of-type(2n) { animation-delay: -1.2s; }
.btn--accent:nth-of-type(3n) { animation-delay: -2.4s; }
.btn--primary { animation-delay: -1.8s; }
.vmenu__btn   { animation-delay: -2.9s; }

/* ---------- 7. Уважаем системную настройку ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn::after, .card__buy::after, .vmenu__btn::after,
  .btn::before, .card__buy::before, .vmenu__btn::before { display: none; }
  .btn:hover, .card__buy:hover, .btn:active, .card__buy:active { transform: none; }
  .btn--accent, .btn--primary, .vmenu__btn { animation: none; background-image: none; }
}

/* only what is in stock can be ordered (HITE-724): the buy button of an unavailable product */
.card__buy:disabled, .btn:disabled { opacity: .45; pointer-events: none; box-shadow: none; }

/* ── glass.css ── */
/* ============================================================
   Liquid Glass — слой оформления поверх базовой вёрстки.
   Подключается последним и меняет только «материал»: фон,
   прозрачность, кромки, блики и тени. Палитра — с keramika.md.

   Как устроено:
   • под страницей лежит мягкий фон из размытых пятен фирменных
     цветов — стеклу нужно, что «преломлять»;
   • карточки — полупрозрачное стекло с бликом по кромке, без
     backdrop-filter (под ними плавный фон, размытие было бы
     незаметно, а прокрутку тормозило бы);
   • настоящее размытие — только у того, что лежит поверх
     контента: шапка, меню, шторки, поиск, кнопки на фото;
   • заливные кнопки — тонированное стекло с глянцем.
   ============================================================ */

@property --glow { syntax: '<number>'; inherits: false; initial-value: 0; }

:root {
  --amb-base:   #ecf2f4;

  --g-bg:       rgba(255, 255, 255, .56);   /* карточки */
  --g-bg-hi:    rgba(255, 255, 255, .72);   /* панели поверх контента */
  --g-bg-lo:    rgba(255, 255, 255, .34);   /* полосы секций */
  --g-edge:     rgba(255, 255, 255, .82);   /* светлая кромка */
  --g-hair:     rgba(41, 49, 50, .08);      /* разделители внутри стекла */
  --g-blur:     saturate(185%) blur(22px);
  --g-blur-hi:  saturate(190%) blur(34px);

  /* глянец: свет падает слева сверху */
  --g-sheen: linear-gradient(135deg,
    rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .14) 38%,
    rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, .2) 100%);

  --g-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 1px 0 0 rgba(255, 255, 255, .45),
    inset 0 -1px 0 rgba(255, 255, 255, .22),
    0 1px 2px rgba(22, 44, 52, .05),
    0 12px 32px -16px rgba(22, 44, 52, .24);
  --g-shadow-hover:
    inset 0 1px 0 #fff,
    inset 1px 0 0 rgba(255, 255, 255, .6),
    inset 0 -1px 0 rgba(255, 255, 255, .3),
    0 2px 6px rgba(22, 44, 52, .06),
    0 26px 54px -22px rgba(22, 44, 52, .34);
  --g-shadow-float:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .3),
    0 2px 8px rgba(20, 40, 48, .07),
    0 22px 56px -20px rgba(20, 40, 48, .36);
  --g-shadow-pill:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .3),
    0 1px 2px rgba(22, 44, 52, .06),
    0 6px 16px -10px rgba(22, 44, 52, .28);

  /* тонированное стекло: глянец сверху, глубина снизу */
  --g-tint:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 0 0 1px rgba(255, 255, 255, .14),
    inset 0 -3px 8px rgba(0, 0, 0, .14);

  /* капсула шапки шире колонки контента на --cap с каждой стороны — это её внутренние поля,
     поэтому место для пунктов меню не уменьшается */
  /* светлая стеклянная линза для прозрачных кнопок */
  --g-lens-bg: rgba(255, 255, 255, .3);
  --g-lens: linear-gradient(180deg,
    rgba(255, 255, 255, .74) 0%, rgba(255, 255, 255, .22) 52%, rgba(255, 255, 255, .36) 100%);
  --g-lens-edge: rgba(41, 49, 50, .13);
  --g-lens-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .55),
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    0 1px 1px rgba(22, 44, 52, .06),
    0 4px 10px -5px rgba(22, 44, 52, .18);

  --g-gloss: linear-gradient(180deg, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, 0) 55%);   /* глянец тонированного стекла */

  --cap: clamp(12px, calc(var(--pad) - 14px), 28px);
  --hdr-h: 84px;                                       /* 12 px отступ сверху + капсула 72 px */

  --bg: var(--amb-base);
  --card: var(--g-bg);
}

/* ---------- 1. Фон под стеклом ---------- */
body { background: var(--amb-base); }
body::before {
  content: ''; position: fixed; inset: -18vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 34vmax at 14% 10%, rgba(0, 166, 199, .22), transparent 62%),
    radial-gradient(34vmax 30vmax at 90% 16%, rgba(0, 166, 199, .13), transparent 64%),
    radial-gradient(30vmax 28vmax at 80% 84%, rgba(255, 183, 0, .12), transparent 62%),
    radial-gradient(42vmax 36vmax at 18% 90%, rgba(0, 126, 153, .10), transparent 64%),
    radial-gradient(26vmax 22vmax at 52% 48%, rgba(255, 255, 255, .7), transparent 70%),
    linear-gradient(180deg, #eff5f7 0%, #e8eff2 100%);
  animation: ambDrift 46s ease-in-out infinite alternate;
}
@keyframes ambDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5vmax, -1.5vmax, 0) scale(1.04); }
  100% { transform: translate3d(-2vmax, 1.5vmax, 0) scale(1.02); }
}

/* секции больше не закрашивают фон сплошным цветом */
.hero, .usp, .topline { background: transparent; }
.topline { border-bottom: 0; }
.usp { border-bottom: 0; }
.sec--alt { background: var(--g-bg-lo); }   /* без белых линий по краям — полоса просто светлее фона */

/* ---------- 2. Стеклянные карточки ---------- */
:is(.card, .post, .shop, .csm, .brandcard, .info-card, .plan, .crow, .sumbox, .cblock,
    .fgroup, .calc, .stock-card, .cform, .map-card, .promo-band, .rev__form, .step,
    .usp__grid, .article__card) {
  background-color: var(--g-bg);
  background-image:
    radial-gradient(360px circle at var(--mx, 50%) var(--my, -40%),
      rgba(255, 255, 255, calc(.55 * var(--glow))), transparent 60%),
    var(--g-sheen);
  border: 1px solid var(--g-edge);
  box-shadow: var(--g-shadow);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out),
              border-color .3s, --glow .5s var(--ease);
}
:is(.card, .post, .shop, .csm, a.brandcard, .info-card, .crow, .promo-band, .step):hover {
  --glow: 1;
  border-color: #fff;
  box-shadow: var(--g-shadow-hover);
}
/* тёмная карточка «6 месяцев» — дымчатое стекло */
.plan--accent {
  background-color: rgba(41, 49, 50, .88);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 45%);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: var(--g-tint), 0 22px 50px -24px rgba(20, 30, 32, .6);
}

/* разделители и подложки внутри стекла */
.card__media, .post__img, .crow__img, .citem__img { background: rgba(230, 236, 239, .55); }
.brandcard__logo { border-bottom-color: var(--g-hair); }
.usp__it { border-color: var(--g-hair) !important; }
.usp__grid { border-radius: var(--r-l); overflow: hidden; }
.usp__ic { background: rgba(255, 255, 255, .7); box-shadow: var(--g-shadow-pill); }
.shop__act { border-top-color: var(--g-hair); }
.shop__act:hover { background: rgba(255, 255, 255, .55); }
.promo-band__art::after { background: linear-gradient(90deg, rgba(246, 250, 251, .9) 0%, rgba(246, 250, 251, 0) 40%); }
@media (max-width: 860px) {
  .promo-band__art::after { background: linear-gradient(180deg, rgba(246, 250, 251, 0) 55%, rgba(246, 250, 251, .9) 100%); }
}
/* панели из ячеек: внешняя граница того же тона, что и разделители, — без белой обводки */
:is(.pdp__perks, .qv__stores, .ftr__phones) { background: var(--g-hair); border-color: var(--g-hair); }
:is(.pdp__perks > div, .qv__store) { background: rgba(255, 255, 255, .64); }
.stock-card thead th, .stock-card__foot { background: rgba(255, 255, 255, .38); }
.m2table tr:hover td { background: rgba(255, 255, 255, .5); }
:is(.instalment, .sumbox__inst) { background: rgba(255, 255, 255, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
:is(.delivopt, .radiocard, .pickopt) { background-color: rgba(255, 255, 255, .4); }

/* шаги «Как это работает» — отдельные стеклянные плитки */
.step { padding: 52px 22px 22px; border-radius: var(--r-m); }
.step::before { top: 20px; left: 22px; }
.step::after { display: none; }

/* баннеры: тонкая стеклянная рамка поверх картинки */
.slider__track::after, .promo-tile::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.slider__track { box-shadow: 0 18px 44px -22px rgba(20, 40, 48, .4); }
.side-banner .slider__track { border-color: transparent; }

/* ---------- 3. Шапка — парящая стеклянная капсула ---------- */
.hdr, .hdr.is-stuck {
  background: transparent; border: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  padding-top: 12px;
}
.hdr__in.shell {
  position: relative; isolation: isolate;
  width: calc(100% - 2 * var(--pad) + 2 * var(--cap));
  max-width: calc(var(--shell) - 2 * var(--pad) + 2 * var(--cap));
  padding-inline: var(--cap);
  height: calc(var(--hdr-h) - 12px);
  border-radius: 26px;
}
@media (min-width: 621px) { .hdr__in.shell { gap: clamp(14px, 1.4vw, 20px); } }
.hdr__tools { gap: 8px; }
@media (min-width: 1241px) { .hdr__tools { margin-left: 8px; } }
@media (max-width: 620px) {
  :root { --hdr-h: 72px; }                             /* капсула 60 px */
  .hdr { padding-top: 10px; }
  .hdr__in.shell { height: calc(var(--hdr-h) - 10px); }
  .hdr__tools { gap: 4px; }
}
/* стекло — на отдельном слое: иначе выпадающее меню внутри шапки
   размывало бы только саму шапку, а не страницу под ним */
.hdr__in::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background-color: rgba(255, 255, 255, .6);
  background-image: var(--g-sheen);
  backdrop-filter: var(--g-blur); -webkit-backdrop-filter: var(--g-blur);
  border: 1px solid var(--g-edge);
  box-shadow: var(--g-shadow);
  transition: box-shadow .4s var(--ease), background-color .4s var(--ease);
}
.hdr.is-stuck .hdr__in::before { background-color: rgba(255, 255, 255, .68); box-shadow: var(--g-shadow-float); }
@media (max-width: 620px) { .hdr__in.shell { border-radius: 20px; } }

/* пункты меню: без «таблетки» — текст становится бирюзовым, под ним из центра вырастает
   тонкая линия, та же, что отмечает текущую страницу */
.nav__link { transition: color .25s var(--ease); }
.nav__link:hover { background: transparent; box-shadow: none; color: var(--accent-ink); }
.nav__link::after {
  content: ''; position: absolute; left: 8px; right: 8px; bottom: 3px; height: 2px;
  border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: center; transition: transform .35s var(--ease-out);
}
.nav__link:hover::after, .nav__link:focus-visible::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active::after { left: 8px; right: 8px; }
.nav__link.is-active:hover { color: var(--ink); }
.iconbtn:hover { background: rgba(255, 255, 255, .75); box-shadow: var(--g-shadow-pill); }
.iconbtn__count { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 6px -2px rgba(0, 166, 199, .7); }

/* ---------- 4. Панели поверх контента ---------- */
:is(.vmenu__sub, .drawer__panel, .search__panel, .qvbox__panel) {
  background-color: var(--g-bg-hi);
  background-image: var(--g-sheen);
  backdrop-filter: var(--g-blur-hi); -webkit-backdrop-filter: var(--g-blur-hi);
  border: 1px solid var(--g-edge);
  box-shadow: var(--g-shadow-float);
}
/* выпадающее меню каталога из шапки: стекло на отдельном слое, чтобы его подменю тоже размывало страницу */
.hdr .vmenu__panel {
  top: calc(100% + 24px);
  background: transparent; border-color: transparent; box-shadow: none;
  border-radius: 18px; isolation: isolate;
}
.hdr .vmenu__panel::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background-color: var(--g-bg-hi); background-image: var(--g-sheen);
  backdrop-filter: var(--g-blur-hi); -webkit-backdrop-filter: var(--g-blur-hi);
  border: 1px solid var(--g-edge); box-shadow: var(--g-shadow-float);
}
.vmenu__sub { border-radius: 16px; }
/* раскрытое меню на главной лежит прямо на фоне — обычное стекло карточки */
.vmenu--static .vmenu__panel {
  background-color: var(--g-bg); background-image: var(--g-sheen);
  border: 1px solid var(--g-edge); border-top: 0; box-shadow: var(--g-shadow);
}
.vmenu__link:hover, .vmenu__it:hover > .vmenu__link, .vmenu__it:focus-within > .vmenu__link,
.vmenu__sub a:hover { background: rgba(255, 255, 255, .75); box-shadow: var(--g-shadow-pill); }
.vmenu__sub a:first-child { border-bottom-color: var(--g-hair); }

.drawer__panel { border-width: 0 0 0 1px; border-radius: 26px 0 0 26px; }
.drawer--menu .drawer__panel { border-width: 0 1px 0 0; border-radius: 0 26px 26px 0; }
.drawer__head, .search__form { border-bottom-color: var(--g-hair); }
.drawer__foot { background: rgba(255, 255, 255, .4); border-top-color: var(--g-hair); }
.search__panel, .qvbox__panel { border-radius: 28px; }
@media (max-width: 640px) { .search__panel { border-radius: 0; } }
@media (max-width: 720px) { .qvbox__panel { border-radius: 0; } }
.sres:hover { background: rgba(255, 255, 255, .8); box-shadow: var(--g-shadow-pill); }
:is(.drawer__scrim, .search__scrim, .qvbox__scrim) {
  background: rgba(24, 38, 42, .26);
  backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
}

@media (max-width: 1020px) {
  .filters {
    background: var(--g-bg-hi); background-image: var(--g-sheen);
    backdrop-filter: var(--g-blur-hi); -webkit-backdrop-filter: var(--g-blur-hi);
  }
  .filters__close {
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-radius: 16px; padding-inline: 12px;
  }
}

/* липкая панель покупки на телефоне — парящая капсула */
.buybar {
  left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  padding: 10px 10px 10px 18px; border-radius: 22px;
  background: var(--g-bg-hi); background-image: var(--g-sheen);
  backdrop-filter: var(--g-blur-hi); -webkit-backdrop-filter: var(--g-blur-hi);
  border: 1px solid var(--g-edge); box-shadow: var(--g-shadow-float);
  transform: translateY(calc(100% + 20px));
}
.buybar.is-on { transform: none; }
/* пока панель покупки на экране, «наверх» поднимается над ней */
.totop { transition: all .4s var(--ease-out), bottom .4s var(--ease-out); }
body:has(.buybar.is-on) .totop { bottom: calc(var(--buybar-h, 82px) + 22px + env(safe-area-inset-bottom)); }
/* открыт баннер cookie — панель покупки и «наверх» стоят над ним */
/* (only the shown bar moves, and only by transform: the hidden one stays below the screen — no layout shift) */
.has-ckb .buybar.is-on { transform: translateY(calc(-1 * var(--ckb-h, 0px))); }
.has-ckb body:has(.buybar.is-on) .totop { bottom: calc(var(--buybar-h, 82px) + 32px + var(--ckb-h, 0px)); }

/* дымчатое стекло: уведомления и «наверх» */
.toast {
  background: rgba(32, 40, 42, .74);
  backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
  box-shadow: var(--g-tint), 0 20px 46px -18px rgba(10, 20, 24, .5);
  border-radius: 18px;
}
.totop {
  background: rgba(41, 49, 50, .7);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: var(--g-tint), 0 14px 32px -14px rgba(10, 20, 24, .55);
}
.totop:hover { background: rgba(0, 166, 199, .86); }

/* ---------- 5. Кнопки ---------- */
/* заливные — тонированное стекло; бегущий блик из buttons.css сохраняется (он в background-image) */
.btn--icon.is-on { background-image: var(--g-gloss); color: #fff; }
.btn--accent, .vmenu__btn, .btn--icon.is-on {
  background-color: rgba(0, 166, 199, .9);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: var(--g-tint), 0 10px 24px -12px rgba(0, 166, 199, .85);
}
.btn--accent:hover, .vmenu__btn:hover {
  background-color: rgba(1, 156, 187, .94);
  box-shadow: var(--g-tint), 0 20px 40px -16px rgba(0, 166, 199, .9);
}
.btn--primary {
  background-color: rgba(41, 49, 50, .88);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: var(--g-tint), 0 10px 24px -14px rgba(20, 30, 32, .7);
}
.btn--primary:hover {
  background-color: rgba(0, 166, 199, .9);
  box-shadow: var(--g-tint), 0 20px 40px -16px rgba(0, 166, 199, .85);
}

/* прозрачные — светлая стеклянная линза: фон просвечивает, кромка чёткая,
   блик сверху и отражённый свет снизу, тень короткая */
:is(.btn--ghost, .card__buy, .rail-nav button, .pager__b, .chip, .abc a,
    .search__hints button, .hdr__phone) {
  background-color: var(--g-lens-bg);
  background-image: var(--g-lens);
  border: 1px solid var(--g-lens-edge);
  box-shadow: var(--g-lens-shadow);
  color: var(--ink);
}
/* поля-переключатели: у .select в фоне стрелка, поэтому без градиента */
:is(.select, .viewsw, .qty) {
  background-color: rgba(255, 255, 255, .5);
  border: 1px solid var(--g-lens-edge);
  box-shadow: var(--g-lens-shadow);
}
:is(.btn--ghost, .rail-nav button, .pager__b, .chip, .search__hints button, .hdr__phone):hover {
  background-color: rgba(255, 255, 255, .66);
  border-color: rgba(0, 166, 199, .5);
  color: var(--accent-ink);
  box-shadow:
    inset 0 1px 0 #fff, inset 0 -1px 0 rgba(255, 255, 255, .6),
    0 0 0 3px rgba(0, 166, 199, .1), 0 8px 18px -10px rgba(0, 166, 199, .55);
}
:is(.btn--ghost, .rail-nav button, .pager__b, .chip, .search__hints button):active {
  background-color: rgba(255, 255, 255, .45);
  box-shadow: inset 0 2px 5px rgba(22, 44, 52, .12), inset 0 -1px 0 rgba(255, 255, 255, .6);
}
.card__buy:hover {
  background-image: var(--g-gloss);
  background-color: rgba(0, 166, 199, .9); border-color: rgba(255, 255, 255, .3); color: #fff;
  box-shadow: var(--g-tint), 0 10px 22px -12px rgba(0, 166, 199, .85);
}
/* на узкой карточке «— упаковка» не помещается — оставляем «В корзину» в одну строку */
.card { container-type: inline-size; }
.card__buy { white-space: nowrap; }
@container (max-width: 230px) { .card__buy-x { display: none; } }
.card__buy.is-done { background-image: var(--g-gloss); background-color: rgba(18, 160, 94, .9); border-color: rgba(255, 255, 255, .3); box-shadow: var(--g-tint); }
.abc a:hover {
  background-image: var(--g-gloss); color: #fff;
  background-color: rgba(0, 166, 199, .9); border-color: rgba(255, 255, 255, .3);
  box-shadow: var(--g-tint), 0 8px 18px -10px rgba(0, 166, 199, .8);
}
/* выбранное — дымчатое стекло */
:is(.chip.is-on, .pager__b.is-on, .viewsw button.is-on) {
  background-image: var(--g-gloss);
  background-color: rgba(41, 49, 50, .86); border-color: rgba(255, 255, 255, .16); color: #fff;
  box-shadow: var(--g-tint);
}
.chip.is-on:hover { color: #fff; background-color: rgba(41, 49, 50, .92); }
.viewsw { overflow: hidden; }

/* кнопки поверх фотографий — с настоящим размытием */
:is(.card__act, .slider__nav, .qvbox__x) {
  background: rgba(255, 255, 255, .55);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--g-shadow-pill);
  border: 1px solid rgba(255, 255, 255, .7);
}
:is(.card__act, .slider__nav):hover { background: rgba(255, 255, 255, .85); color: var(--ink); }
.card__act.is-on {
  background: rgba(0, 166, 199, .88); color: #fff; border-color: rgba(255, 255, 255, .3); box-shadow: var(--g-tint);
}
.badge {
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 10px -6px rgba(10, 20, 24, .45);
}
.badge--last { background: rgba(255, 255, 255, .72); }
.slider__bar {
  background: rgba(24, 32, 34, .3);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
@media (max-width: 720px) { .slider__bar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; } }
.pdp__zoomhint { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(30, 36, 37, .5); }

/* ---------- 6. Вкладки с «каплей» ----------
   Подложка активной вкладки перетекает между пунктами (см. app.js). */
.tabs.has-glider {
  position: relative; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  padding: 4px; gap: 2px; border-radius: 100px; max-width: 100%;
  background: rgba(255, 255, 255, .42); border: 1px solid var(--g-edge);
  box-shadow: inset 0 1px 2px rgba(22, 44, 52, .06), 0 1px 0 rgba(255, 255, 255, .8);
}
.tabs.has-glider::-webkit-scrollbar { display: none; }
.tabs.has-glider .tab { position: relative; z-index: 1; flex: none; padding: 8px 16px; transition: color .35s var(--ease); }
.tabs.has-glider .tab.is-on { background: transparent; color: #fff; }
.tabs__glider {
  position: absolute; top: 0; left: 0; z-index: 0; border-radius: 100px; pointer-events: none;
  background-color: rgba(41, 49, 50, .88);
  box-shadow: var(--g-tint), 0 6px 14px -8px rgba(20, 30, 32, .6);
  transition: transform .55s cubic-bezier(.34, 1.4, .5, 1), width .55s cubic-bezier(.34, 1.4, .5, 1), opacity .2s;
}

/* ---------- 7. Поля ввода ---------- */
:is(.field input, .field select, .cform textarea, .rev__form textarea, .promo input, .pdp__notify-form input) {
  background-color: rgba(255, 255, 255, .66);
  border-color: rgba(41, 49, 50, .1);
  box-shadow: inset 0 1px 2px rgba(22, 44, 52, .06), 0 1px 0 rgba(255, 255, 255, .85);
}
:is(.field input, .field select, .cform textarea, .rev__form textarea, .promo input, .pdp__notify-form input):focus {
  background-color: rgba(255, 255, 255, .9);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 1px 0 rgba(255, 255, 255, .85);
}
.search__form input { background: transparent; }

/* ---------- 8. Подвал ---------- */
.ftr {
  background: rgba(255, 255, 255, .4);
  border-top: 1px solid var(--g-hair);
}
/* если страница заканчивается светлой полосой — подвал примыкает к ней без тёмного зазора */
main:has(> .sec--alt:last-child) + .ftr { margin-top: 0; }
.ftr__phones { border-radius: var(--r-m); box-shadow: 0 1px 2px rgba(22, 44, 52, .04), 0 12px 28px -20px rgba(22, 44, 52, .28); }
.ftr__phone { background: rgba(255, 255, 255, .62); grid-template-rows: 1fr auto; }   /* номера в одну линию, даже если подпись в две строки */
.ftr__phone:hover { background: rgba(255, 255, 255, .9); }
.ftr__bottom { border-top-color: var(--g-hair); }

/* ---------- 9. Доступность и запасной вариант ---------- */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .tabs__glider { transition: none; }
}
/* «Уменьшить прозрачность» в системе — сплошные светлые поверхности */
@media (prefers-reduced-transparency: reduce) {
  :root { --g-bg: #fff; --g-bg-hi: #fff; --g-bg-lo: #f6f8f9; }
  body::before { display: none; }
  .hdr__in::before, .hdr .vmenu__panel::before { background-color: #fff; }
  *, *::before { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
/* браузер без backdrop-filter — панели плотнее, чтобы текст под ними не мешал */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --g-bg-hi: rgba(255, 255, 255, .96); }
  .hdr__in::before { background-color: rgba(255, 255, 255, .94); }
}
