/* Концепция E «KEF-стиль»: дизайн и стилистика витрины KEF Russia (шапка в два ряда, мега-меню, сетка карточек
   с тонкими линиями, сланцевая кнопка, жёлтые и синие метки, тонкие заголовки, фильтр справа, липкая шапка)
   с товарами Monitor Audio. Оттенки сдвинуты, шрифт Ubuntu Sans — новая версия гарнитуры KEF Russia.
   Общие стили всех страниц e-*.html. */
@import url('vendor/fonts/ubuntu-sans.css');

:root {
  --ink: #2b2d33;
  --text: #53565d;
  --muted: #686b72;
  --line: #ebebee;
  --line-2: #d9dade;
  --bg: #fff;
  --soft: #f6f6f8;
  --soft-2: #ececf0;
  --btn: #43465a;
  --btn-h: #323446;
  --yolk: #ffd43f;
  --yolk-soft: #fff3c4;
  --yolk-ink: #6b5200;
  --olive: #1f6fae;
  --green: #2f7d1a;
  --teal: #2178bd;
  --bronze: #8a6438;
  --terra: #c4471c;
  --taupe: #eeeef2;
  --charcoal: #2b2d33;
  --ok: #3b7d08;
  --err: #c62828;
  --r: 3px;
  --wrap: 1360px;
  --gut: 40px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --f-text: 'Ubuntu Sans', Ubuntu, system-ui, sans-serif;
  --f-disp: 'Ubuntu Sans', Ubuntu, system-ui, sans-serif;
  --hd-h: 137px;
}
@media (max-width: 1023px) { :root { --gut: 24px; --hd-h: 64px; } }
@media (max-width: 767px) { :root { --gut: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--f-disp); font-weight: 500; margin: 0; letter-spacing: -.01em; line-height: 1.15; }
h1 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 300; }
h2 { font-size: clamp(21px, 1.8vw, 26px); font-weight: 400; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--yolk-soft); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { top: 8px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); }

/* ===== Кнопки, метки, поля ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 26px; border-radius: var(--r); background: var(--btn); color: #fff; font: 500 11.5px/1 var(--f-text); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--btn); transition: background-color .2s, border-color .2s, color .2s, transform .16s var(--ease-out); }
.btn:hover { background: var(--btn-h); border-color: var(--btn-h); }
.btn:active { transform: scale(.97); }
.btn i { font-size: 18px; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--line:hover { background: transparent; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--soft); border-color: var(--soft); }
.btn--yolk { background: var(--yolk); border-color: var(--yolk); color: var(--ink); }
.btn--yolk:hover { background: #dfa646; border-color: #dfa646; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 11px; }
.btn--block { width: 100%; }
.btn.is-done { background: var(--olive); border-color: var(--olive); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn[hidden], .pc-more[hidden], .pc-cart[hidden] { display: none; }
.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: currentColor; }
.more { font: 600 11px/1 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .2s; white-space: nowrap; }
.more:hover { color: var(--ink); }
.ib { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--ink); font-size: 18px; transition: border-color .2s, background-color .2s, color .2s; }
.ib:hover { border-color: var(--ink); }
.ib[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.lbs { display: flex; flex-wrap: wrap; gap: 4px; }
.lb { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r); font: 600 11px/1 var(--f-text); letter-spacing: .02em; color: #fff; white-space: nowrap; }
.lb--sale { background: var(--yolk); color: var(--ink); }
.lb--hit { background: var(--teal); }
.lb--new { background: var(--green); }
.lb--award { background: var(--bronze); }
.lb--outlet { background: var(--terra); }
.lb--0024 { background: var(--ink); color: var(--yolk); }
.disc { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--r); background: var(--yolk); color: var(--ink); font: 600 11px/1 var(--f-text); }
.econ { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--r); background: var(--yolk-soft); color: var(--yolk-ink); font: 500 11px/1 var(--f-text); white-space: nowrap; }
.av { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); }
.av::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.av--few { color: #8a5a05; }
.av--order { color: var(--muted); }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--ink); font-weight: 500; }
.field > span b { color: var(--terra); font-weight: 500; }
.in, .sel, textarea.in { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
textarea.in { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; field-sizing: content; }
.in::placeholder { color: #8e928f; }
.in:hover, .sel:hover { border-color: #b9bcb8; }
.in:focus, .sel:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(29 31 30 / .08); }
.in[aria-invalid="true"] { border-color: var(--err); }
.err, .field > .err { color: var(--err); font-size: 13px; font-weight: 400; }
.sel { appearance: none; padding-right: 36px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231d1f1e' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.chk, .rad { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 1.45; color: var(--text); }
.chk input, .rad input { appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border: 1px solid #b4b7b3; border-radius: var(--r); background: var(--bg); display: grid; place-items: center; transition: border-color .15s, background-color .15s; cursor: pointer; }
.rad input { border-radius: 50%; }
.chk input:checked { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5'/%3E%3C/svg%3E") no-repeat center; border-color: var(--ink); }
.rad input:checked { border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--bg); background: var(--ink); }
.chk small, .rad small { color: var(--muted); }
/* Ошибка у галочки встаёт строкой под текстом, а не третьей колонкой */
.chk { flex-wrap: wrap; }
.chk > span:not(.err) { flex: 1; min-width: 0; }
.chk > .err { flex-basis: 100%; padding-left: 28px; }

.qty { display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--line-2); border-radius: var(--r); }
.qty button { width: 36px; height: 100%; display: grid; place-items: center; font-size: 16px; color: var(--ink); }
.qty button:hover { background: var(--soft); }
.qty input { width: 40px; height: 100%; border: 0; text-align: center; font-variant-numeric: tabular-nums; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ===== Шапка: два ряда на десктопе ===== */
.hd { position: relative; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.hd-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; }
.hd-phone { display: flex; align-items: center; gap: 22px; }
.hd-phone a.tel { font: 600 15px/1 var(--f-text); color: var(--ink); letter-spacing: .01em; }
.hd-phone button { font: 600 10.5px/1 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.hd-phone button:hover { color: var(--ink); }
.logo { display: block; color: var(--ink); }
.logo svg { width: 200px; height: auto; }
.hd-acts { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.act { position: relative; display: grid; place-items: center; width: 42px; height: 42px; color: var(--ink); font-size: 22px; border-radius: var(--r); transition: background-color .2s; }
.act:hover { background: var(--soft); }
.act .cnt { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--ink); color: #fff; font: 600 10px/17px var(--f-text); text-align: center; }
.act .cnt[hidden] { display: none; }
.hd-nav { border-top: 1px solid var(--line); }
.nav { display: flex; justify-content: center; gap: clamp(18px, 2.6vw, 44px); margin: 0; padding: 0; list-style: none; }
.nav > li { position: static; }
.nav-a { display: flex; align-items: center; gap: 6px; height: 52px; font: 700 12.5px/1 var(--f-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); position: relative; white-space: nowrap; }
.nav-a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav > li:hover > .nav-a::after, .nav > li.is-open > .nav-a::after, .nav-a[aria-current="page"]::after { transform: scaleX(1); }
.nav-a i { font-size: 14px; color: var(--muted); }
.nav-a .ph-lightning { color: var(--yolk); }

/* Мега-меню и выпадающие списки */
.pan { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 28px 48px -28px rgb(29 31 30 / .32); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s var(--ease-out), transform .22s var(--ease-out), visibility 0s linear .22s; }
.nav > li.is-open > .pan { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.pan-in { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; padding-block: 32px 36px; max-height: calc(100dvh - 160px); overflow: auto; overscroll-behavior: contain; }
.mm-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 32px; align-content: start; }
.mm-g h4 { font: 600 15px/1.3 var(--f-disp); margin: 0 0 10px; }
.mm-g h4 a:hover { color: var(--olive); }
.mm-g ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mm-g li a { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 13.5px; color: var(--text); transition: color .15s; }
.mm-g li a small { color: var(--muted); font-variant-numeric: tabular-nums; }
.mm-g li a:hover, .mm-g li a.is-hot { color: var(--ink); }
.mm-prev { display: grid; align-content: start; gap: 6px; background: var(--soft); padding: 18px 20px 22px; border-radius: var(--r); }
.mm-prev figure { margin: 0 0 6px; aspect-ratio: 1; display: grid; place-items: center; }
.mm-prev img { width: 88%; aspect-ratio: 1; object-fit: contain; }
.mm-prev b { font: 600 16px/1.25 var(--f-disp); color: var(--ink); }
.mm-prev small { color: var(--muted); font-size: 13px; }
.mm-prev .more { margin-top: 8px; color: var(--ink); }
.pan-in--series { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding-block: 24px 28px; }
.ser-mi { display: grid; gap: 4px; padding: 14px 14px 16px; border-radius: var(--r); transition: background-color .2s; }
.ser-mi:hover { background: var(--soft); }
.ser-mi img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; margin-bottom: 6px; transition: transform .25s ease; }
@media (hover: hover) and (pointer: fine) { .ser-mi:hover img { transform: translateY(-3px); } }
.ser-mi b { font: 600 14px/1.25 var(--f-disp); color: var(--ink); }
.ser-mi small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.nav > li.has-dd { position: relative; }
.dd { position: absolute; left: 50%; top: 100%; min-width: 240px; translate: -50% 0; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 18px 40px -20px rgb(29 31 30 / .3); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s var(--ease-out), transform .2s var(--ease-out), visibility 0s linear .2s; }
.nav > li.is-open > .dd { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav > li.is-kb > .pan, .nav > li.is-kb > .dd { transition: none; }
.dd a { display: block; padding: 8px 20px; font-size: 14px; color: var(--text); transition: background-color .15s, color .15s; }
.dd a:hover { background: var(--soft); color: var(--ink); }

/* Липкая шапка при прокрутке: одна строка, как у KEF */
.hs { position: fixed; z-index: 45; top: 0; left: 0; right: 0; background: rgb(255 255 255 / .97); border-bottom: 1px solid var(--line); transform: translateY(-101%); transition: transform .3s var(--ease); }
.hs.is-on { transform: none; box-shadow: 0 10px 30px -22px rgb(29 31 30 / .4); }
.hs-row { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 22px; height: 64px; }
.hs .logo svg { width: 150px; }
.hs .nav { justify-content: flex-start; gap: clamp(14px, 1.7vw, 30px); }
@media (max-width: 1199px) { .hs .nav { gap: 14px; } .hs .nav-a { font-size: 10.5px; letter-spacing: .06em; } .hs .logo svg { width: 120px; } }
.hs .nav-a { height: 64px; font-size: 11.5px; }
.burger { display: grid; place-items: center; width: 42px; height: 42px; font-size: 24px; color: var(--ink); border-radius: var(--r); }
.burger:hover { background: var(--soft); }

/* Мобильная шапка */
.hm { display: none; }
@media (max-width: 1023px) {
  .hd { display: none; }
  .hs { display: none; }
  .hm { display: block; position: sticky; top: 0; z-index: 45; background: var(--bg); border-bottom: 1px solid var(--line); }
  .hm-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; height: 64px; }
  .hm .logo { justify-self: start; }
  .hm .logo svg { width: 138px; }
  .hm .hd-acts { gap: 0; }
  .hm .act { width: 40px; font-size: 21px; }
}
@media (max-width: 380px) { .hm .logo svg { width: 116px; } .hm .act { width: 36px; } }

/* Выезжающее меню с переходом по уровням (телефон и бургер липкой шапки) */
.dm { position: fixed; inset: 0; z-index: 60; visibility: hidden; transition: visibility 0s linear .35s; }
.dm.is-open { visibility: visible; transition-delay: 0s; }
.dm-back { position: absolute; inset: 0; background: rgb(18 20 19 / .4); opacity: 0; transition: opacity .3s; }
.dm.is-open .dm-back { opacity: 1; }
.dm-box { position: absolute; top: 0; bottom: 0; left: 0; width: min(420px, 100%); background: var(--bg); transform: translateX(-100%); transition: transform .35s var(--ease-drawer); display: flex; flex-direction: column; overflow: hidden; }
.dm.is-open .dm-box { transform: none; }
.dm-head { flex: none; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 var(--gut); border-bottom: 1px solid var(--line); }
.dm-head .logo svg { width: 128px; }
.dm-close { display: grid; place-items: center; width: 40px; height: 40px; font-size: 24px; color: var(--ink); }
.dm-stage { position: relative; flex: 1; overflow: hidden; }
.dm-lv { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); transform: translateX(100%); transition: transform .25s var(--ease-out), visibility 0s linear .25s; visibility: hidden; }
.dm-lv.is-cur { transform: none; visibility: visible; transition-delay: 0s; }
.dm-lv.is-past { transform: translateX(-28%); visibility: hidden; }
.dm:not(.is-open) .dm-lv { visibility: hidden; }
.dm-lv-t { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 var(--gut); border-bottom: 1px solid var(--line); font: 600 14px/1 var(--f-text); color: var(--ink); width: 100%; text-align: left; background: var(--soft); }
.dm-lv-t i { font-size: 18px; }
.dm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 0 var(--gut); border-bottom: 1px solid var(--line); font: 600 15px/1.3 var(--f-text); color: var(--ink); text-align: left; }
.dm-row i.ph-caret-right { font-size: 14px; color: var(--muted); }
.dm-row small { font: 400 13px/1 var(--f-text); color: var(--muted); font-variant-numeric: tabular-nums; }
.dm-row--sub { font-weight: 400; font-size: 15px; }
.dm-util { background: var(--soft); }
.dm-util .dm-row { justify-content: flex-start; font-weight: 600; }
.dm-util .dm-row > i { font-size: 21px; width: 26px; color: var(--text); }
.dm-util .cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #9da19e; color: #fff; font: 600 11px/1 var(--f-text); margin-left: 4px; }
.dm-util .cnt[hidden] { display: none; }
.dm-phone small { display: block; margin-top: 3px; }

/* Поиск с подсказками */
.so { position: fixed; z-index: 70; inset: 0; visibility: hidden; transition: visibility 0s linear .25s; }
.so.is-open { visibility: visible; transition-delay: 0s; }
.so-back { position: absolute; inset: 0; background: rgb(18 20 19 / .35); opacity: 0; transition: opacity .2s var(--ease-out); }
.so.is-open .so-back { opacity: 1; }
.so-box { position: relative; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-100%); transition: transform .22s var(--ease-out); max-height: 100dvh; overflow-y: auto; }
.so.is-open .so-box { transform: none; }
.so-row { display: flex; align-items: center; gap: 14px; height: 88px; }
.so-row > i { font-size: 24px; color: var(--muted); }
.so-in { flex: 1; min-width: 0; height: 56px; border: 0; font: 400 22px/1 var(--f-disp); color: var(--ink); background: transparent; }
.so-in:focus { outline: none; }
.so-in::placeholder { color: #8e9198; }
.so-in::-webkit-search-cancel-button { display: none; }
.so-res { padding: 0 0 26px; }
.so-res:empty { display: none; }
.so-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 28px; list-style: none; margin: 0; padding: 0; }
.so-list a { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; padding: 8px 10px; border-radius: var(--r); }
.so-list a:hover, .so-list a.is-act { background: var(--soft); }
.so-list img { width: 56px; height: 56px; object-fit: contain; }
.so-list b { display: block; color: var(--ink); font-weight: 500; font-size: 14.5px; }
.so-list small { color: var(--muted); font-size: 12.5px; }
.so-list .num { font-weight: 600; color: var(--ink); font-size: 14px; }
.so-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.so-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.so-chips button { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); font-size: 13px; color: var(--text); }
.so-chips button:hover { border-color: var(--ink); color: var(--ink); }
.so-empty { color: var(--muted); padding: 6px 0 4px; }
@media (max-width: 767px) { .so-row { height: 64px; } .so-in { font-size: 18px; } .so-list { grid-template-columns: 1fr; } }

/* ===== Заголовки разделов и хлебные крошки ===== */
main { display: block; min-height: 50vh; }
.sec { padding-block-start: 56px; }
.sec--line { border-top: 1px solid var(--line); margin-top: 56px; }
.sh { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.phd { padding-block: 34px 24px; }
.phd-t { display: flex; align-items: flex-start; gap: 12px; }
.phd-t h1 { flex: 0 1 auto; }
.phd-cnt { flex: none; margin-top: 6px; min-width: 26px; height: 22px; padding: 0 7px; border: 1px solid var(--line-2); border-radius: var(--r); font: 500 12px/20px var(--f-text); color: var(--muted); text-align: center; }
.phd-share { margin-left: auto; flex: none; }
.bc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 14px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.bc li:not(:last-child)::after { content: ''; display: inline-block; width: 18px; height: 1px; background: var(--line-2); vertical-align: middle; margin: 0 10px; }
.bc a { transition: color .15s; }
.bc a:hover { color: var(--ink); }
.bc [aria-current] { color: var(--text); }
@media (max-width: 767px) { .bc { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; } }

/* ===== Сетка и карточка товара ===== */
.pg { --cols: 5; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pg--4 { --cols: 4; }
.pg--3 { --cols: 3; }
@media (max-width: 1279px) { .pg { --cols: 4; } .pg--4 { --cols: 3; } }
@media (max-width: 1023px) { .pg, .pg--4 { --cols: 3; } }
@media (max-width: 767px) { .pg, .pg--4, .pg--3 { --cols: 2; } }
.pc { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 18px 20px 20px; background: var(--bg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (hover: hover) and (pointer: fine) { .pc:hover { z-index: 2; box-shadow: 0 22px 46px -18px rgb(29 31 30 / .24), 0 0 0 1px var(--line); } }
.pc-lbs { position: absolute; z-index: 2; top: 16px; left: 16px; right: 56px; }
.pc-tools { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; gap: 6px; }
.pc-tools .ib { width: 32px; height: 32px; font-size: 16px; border-color: transparent; background: rgb(255 255 255 / .9); }
.pc-tools .ib:hover { border-color: var(--line-2); }
.pc-tools .ib[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .pc-tools .ib[data-qv] { opacity: 0; transform: translateX(4px); transition: opacity .2s, transform .2s var(--ease), border-color .2s; } .pc:hover .pc-tools .ib[data-qv], .pc-tools .ib[data-qv]:focus-visible { opacity: 1; transform: none; } }
.pc-media { position: relative; display: block; margin: 8px -4px 0; aspect-ratio: 1; }
.pc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pc-media img.is-life { object-fit: cover; }
.pc-zones { position: absolute; inset: 0; z-index: 1; display: flex; }
.pc-zones span { flex: 1; }
.pc-dots { display: flex; gap: 4px; height: 2px; margin: 10px 0 14px; }
.pc-dots i { flex: 1; background: var(--line); transition: background-color .2s; }
.pc-dots i.is-on { background: var(--ink); }
.pc-dots--one i { visibility: hidden; }
.pc-t { display: block; color: var(--ink); font: 500 15px/1.35 var(--f-disp); }
.pc-t:hover { color: var(--olive); }
.pc-type { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.pc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.pc-buy { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.pc-price { display: grid; gap: 6px; min-width: 0; }
.price { font: 700 18px/1.1 var(--f-text); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-old { margin-left: 8px; font: 400 13px/1 var(--f-text); color: var(--muted); text-decoration: line-through; white-space: nowrap; }
.price-req { font: 600 15px/1.2 var(--f-text); color: var(--ink); }
.pc-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.pc-cart { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 20px; color: var(--ink); transition: background-color .2s, border-color .2s, color .2s; }
.pc-cart:hover { border-color: var(--ink); }
.pc-cart.is-in { background: var(--btn); border-color: var(--btn); color: #fff; }
.pc-sw { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.pc-sw-name { flex: 1 0 100%; }
.pc-sw-name b { font-weight: 500; color: var(--text); }
.sw { display: flex; flex-wrap: wrap; gap: 6px; }
.sw button { width: 26px; height: 26px; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); transition: border-color .15s; }
.sw button span { display: block; width: 100%; height: 100%; border-radius: 1px; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.sw button:hover { border-color: #9a9d9a; }
.sw button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sw--lg button { width: 54px; height: 54px; padding: 4px; }
.sw--lg button img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 767px) {
  .pc { padding: 12px 12px 14px; }
  .pc-lbs { top: 10px; left: 10px; right: 46px; }
  .pc-lbs .lb:nth-child(n+3) { display: none; }
  .pc-tools { top: 8px; right: 8px; }
  .pc-tools .ib { width: 30px; height: 30px; }
  .pc-tools .ib[data-cmp], .pc-tools .ib[data-qv] { display: none; }
  .pc-t { font-size: 14px; }
  .pc-meta .pc-sku { display: none; }
  .price { font-size: 16px; }
  .price-old { display: block; margin: 4px 0 0; }
  .econ { display: none; }
  .pc-cart { width: 38px; height: 38px; font-size: 18px; }
  .pc-sw { gap: 6px; }
  .pc-sw-name { display: none; }
  .sw button { width: 22px; height: 22px; padding: 2px; }
}
.pc-more { display: flex; justify-content: center; margin-top: 28px; }

/* ===== Главная ===== */
.hero { position: relative; margin-top: 24px; overflow: hidden; background: var(--charcoal); border-radius: var(--r); touch-action: pan-y; }
.hero-track { display: grid; }
/* Слайд — «сцена» с пропорциями фона; колонка стоит в процентах сцены, поэтому попадает на подиум при любой ширине */
.sl { grid-area: 1 / 1; position: relative; height: clamp(420px, 37vw, 540px); container-type: size; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.sl.is-on { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.sl-media { position: absolute; inset: 0; overflow: hidden; }
.sl-scene { position: absolute; left: 50%; top: 50%; width: max(100cqw, 100cqh * var(--ar)); aspect-ratio: var(--ar); translate: -50% -50%; }
.sl-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sl--photo .sl-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(14 15 15 / .74) 0%, rgb(14 15 15 / .38) 40%, transparent 68%); }
.sl-prod { position: absolute; left: var(--x); bottom: var(--y); width: var(--w); translate: -50% 0; }
.sl-prod img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 18px 22px rgb(0 0 0 / .3)); }
.sl-prod::after { content: ''; position: absolute; left: 4%; right: 4%; bottom: -2.2%; height: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / .6), transparent); filter: blur(3px); }
.sl.is-on .sl-prod img { animation: sl-in 1.1s var(--ease) both; }
@keyframes sl-in { from { transform: translateY(14px) scale(.985); opacity: .3; } to { transform: none; opacity: 1; } }
.sl-txt { position: relative; z-index: 2; display: grid; align-content: center; justify-items: start; gap: 14px; height: 100%; max-width: 520px; padding: 0 0 18px clamp(28px, 4.5vw, 84px); color: #fff; }
.sl-txt .tag { font: 600 11px/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; opacity: .78; }
.sl-txt h2 { color: inherit; font-size: clamp(30px, 3.2vw, 46px); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; }
.sl-txt p { margin: 0 0 8px; font-size: 16px; line-height: 1.5; opacity: .86; max-width: 40ch; }
.sl-txt .from { font: 600 15px/1 var(--f-text); opacity: 1; }
.sl--light .sl-txt { color: var(--ink); }
.sl--light .sl-txt p { opacity: .8; }
.sl.is-on .sl-txt > * { animation: sl-txt .8s var(--ease) both; }
.sl.is-on .sl-txt > :nth-child(2) { animation-delay: .06s; }
.sl.is-on .sl-txt > :nth-child(3) { animation-delay: .12s; }
.sl.is-on .sl-txt > :nth-child(4) { animation-delay: .18s; }
@keyframes sl-txt { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-ui { position: absolute; z-index: 3; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 4px; }
.hero-dot { width: 28px; height: 22px; display: grid; place-items: center; }
.hero-pause { width: 26px; height: 22px; display: grid; place-items: center; margin-left: 6px; color: #fff; font-size: 13px; opacity: .8; }
.hero-pause:hover { opacity: 1; }
.hero--light .hero-pause { color: var(--ink); }
@media (max-width: 767px) { .hero-pause { color: var(--ink); } }
.hero-dot span { width: 100%; height: 2px; background: rgb(255 255 255 / .38); overflow: hidden; border-radius: 1px; }
.hero-dot span::before { content: ''; display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dot.is-on span::before { animation: dot-fill var(--dur, 6s) linear forwards; }
.hero.is-paused .hero-dot.is-on span::before { animation-play-state: paused; }
.hero--light .hero-dot span { background: rgb(29 31 30 / .2); }
.hero--light .hero-dot span::before { background: var(--ink); }
@keyframes dot-fill { to { transform: scaleX(1); } }
.hero-arr { position: absolute; z-index: 3; top: 50%; translate: 0 -50%; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--ink); font-size: 18px; opacity: 0; transition: opacity .2s, background-color .2s; }
.hero-arr--p { left: 18px; }
.hero-arr--n { right: 18px; }
.hero:hover .hero-arr, .hero-arr:focus-visible { opacity: 1; }
.hero-arr:hover { background: #fff; }
/* Телефон: сверху кадр, сдвинутый так, чтобы колонка была по центру; текст под ним, как у KEF Russia */
@media (max-width: 767px) {
  .hero { margin: 12px calc(var(--gut) * -1) 0; border-radius: 0; background: var(--bg); }
  .sl { height: auto; container-type: normal; display: grid; }
  .sl-media { position: relative; inset: auto; height: 64vw; }
  .sl-scene { top: 0; height: 100%; width: auto; translate: none; left: clamp(calc(100% - 64vw * var(--ar)), calc(50% - var(--fx) * 64vw * var(--ar)), 0px); }
  .sl--photo .sl-media::after { display: none; }
  .sl-txt { color: var(--ink); justify-items: center; text-align: center; height: auto; max-width: none; padding: 22px var(--gut) 52px; gap: 10px; }
  .sl-txt p { font-size: 15px; }
  .hero-dot span { background: rgb(29 31 30 / .2); }
  .hero-dot span::before { background: var(--ink); }
  .hero-dot.is-on span { background: rgb(29 31 30 / .45); }
  .hero-arr { display: none; }
  .sl-txt .btn--light { background: var(--btn); border-color: var(--btn); color: #fff; }
}

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.tile { position: relative; display: block; height: 230px; overflow: hidden; border-radius: var(--r); background: var(--charcoal); color: #fff; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .25s ease; }
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(12 13 13 / .78) 0%, rgb(12 13 13 / .1) 62%); }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.03); } }
.tile-txt { position: absolute; left: 24px; right: 24px; bottom: 22px; display: grid; gap: 6px; }
.tile-txt small { font: 600 10.5px/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; opacity: .78; }
.tile-txt b { font: 500 18px/1.3 var(--f-disp); }
.tile-big { position: absolute; top: 18px; right: 24px; font: 700 clamp(46px, 4.4vw, 64px)/1 var(--f-disp); letter-spacing: -.03em; color: var(--yolk); text-shadow: 0 2px 22px rgb(0 0 0 / .45); }
@media (max-width: 767px) { .tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 18px calc(var(--gut) * -1) 0; padding: 0 var(--gut); gap: 12px; scrollbar-width: none; } .tile { flex: 0 0 82%; height: 200px; scroll-snap-align: center; } }

.tabs { display: flex; gap: 22px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; flex: none; height: 32px; font-size: 14px; color: var(--muted); transition: color .2s; }
.tabs button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .25s var(--ease); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.offers-h { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 22px; }
.offers-h h2 { margin-right: auto; }
@media (max-width: 767px) { .offers-h { gap: 12px; } .offers-h .tabs { order: 3; flex: 1 0 100%; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); } }
.pg.is-loading { opacity: .5; transition: opacity .15s; }

.series { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.st { position: relative; display: grid; grid-template-rows: 1fr auto; min-height: 280px; padding: 26px 28px; overflow: hidden; border-radius: var(--r); background: var(--soft); color: var(--ink); isolation: isolate; }
.st img { position: absolute; z-index: -1; right: -2%; bottom: -4%; width: 62%; aspect-ratio: 1; object-fit: contain; transition: transform .25s ease; }
@media (hover: hover) and (pointer: fine) { .st:hover img { transform: translateY(-6px) scale(1.02); } }
.st-txt { align-self: end; display: grid; gap: 6px; max-width: 54%; }
.st-txt small { font: 600 10.5px/1.4 var(--f-text); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.st-txt b { font: 500 24px/1.1 var(--f-disp); letter-spacing: -.01em; }
.st-txt span { font-size: 13.5px; opacity: .78; }
.st--big { grid-row: span 2; min-height: 578px; }
.st--big img { width: 92%; right: -10%; bottom: 2%; }
.st--big .st-txt b { font-size: 34px; }
.st--dark { background: var(--btn); color: #fff; }
.st--char { background: var(--charcoal); color: #fff; }
.st--taupe { background: var(--taupe); }
@media (max-width: 1023px) { .series { grid-template-columns: 1fr 1fr; } .st--big { grid-row: auto; grid-column: span 2; min-height: 380px; } .st--big img { width: 54%; } }
@media (max-width: 767px) { .series { grid-template-columns: 1fr; } .st--big { grid-column: auto; min-height: 320px; } .st { min-height: 220px; padding: 20px; } .st img { width: 54%; } .st--big img { width: 66%; } .st--big .st-txt b { font-size: 26px; } }

.promos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.promo { display: grid; gap: 12px; align-content: start; }
.promo-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); background: var(--soft); }
.promo-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
@media (hover: hover) and (pointer: fine) { .promo:hover .promo-img img { transform: scale(1.03); } }
.promo-img .lb { position: absolute; top: 12px; left: 12px; }
.promo-date { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.promo-date i { color: var(--yolk); }
.promo b { font: 500 16px/1.35 var(--f-disp); color: var(--ink); transition: color .2s; }
.promo:hover b { color: var(--olive); }
@media (max-width: 1023px) { .promos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .promos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); gap: 14px; scrollbar-width: none; } .promo { flex: 0 0 76%; scroll-snap-align: start; } }

.adv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.adv-i { display: grid; gap: 10px; align-content: start; }
.adv-i i { font-size: 34px; color: var(--ink); }
.adv-i b { font: 600 15px/1.3 var(--f-disp); color: var(--ink); }
.adv-i span { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 1023px) { .adv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .adv { grid-template-columns: 1fr; gap: 22px; padding: 32px 0; } .adv-i { grid-template-columns: 40px 1fr; column-gap: 14px; } .adv-i i { grid-row: span 2; } }

.blog { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
.post { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg); }
.post:hover { box-shadow: 0 18px 40px -22px rgb(29 31 30 / .3); }
.post-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
@media (hover: hover) and (pointer: fine) { .post:hover .post-img img { transform: scale(1.03); } }
.post-txt { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 18px 20px 20px; }
.post-txt small { font: 600 10.5px/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.post-txt b { font: 500 16px/1.4 var(--f-disp); color: var(--ink); }
.post-txt time { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.post--big { grid-template-columns: 1.15fr 1fr; grid-template-rows: none; }
.post--big .post-img { aspect-ratio: auto; height: 100%; min-height: 360px; }
.post--big .post-txt { padding: 26px 26px 24px; }
.post--big .post-txt b { font-size: 21px; }
@media (max-width: 1023px) { .blog { grid-template-columns: 1fr 1fr; } .post--big { grid-column: span 2; } }
@media (max-width: 767px) { .blog { grid-template-columns: 1fr; } .post--big { grid-column: auto; grid-template-columns: none; } .post--big .post-img { min-height: 0; aspect-ratio: 4 / 3; } }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.about-txt { max-width: 58ch; }
.about-txt h2 { margin-bottom: 18px; }
.about-txt p { color: var(--text); }
.about-img { position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--r); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 34px; margin: 26px 0 30px; }
.about-facts b { display: block; font: 500 30px/1 var(--f-disp); color: var(--ink); letter-spacing: -.02em; }
.about-facts span { font-size: 13px; color: var(--muted); }
@media (max-width: 767px) { .about { grid-template-columns: 1fr; } .about-img { order: -1; } .about-facts { gap: 22px; } .about-facts b { font-size: 24px; } }

.stores { display: grid; grid-template-columns: 340px 1fr; min-height: 420px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stores-list { list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--line); }
.stores-list li { padding: 20px 22px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.stores-list li.is-on { box-shadow: inset 3px 0 0 var(--ink); }
.stores-list b { color: var(--ink); font-weight: 500; font-size: 14.5px; line-height: 1.4; }
.stores-list span { font-size: 13px; color: var(--muted); }
.stores-list .link { font-size: 13px; margin-top: 6px; justify-self: start; }
.stores-map { position: relative; background: var(--soft); }
.stores-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.95); }
@media (max-width: 767px) { .stores { grid-template-columns: 1fr; } .stores-list { border-right: 0; } .stores-map { min-height: 300px; } }

/* ===== Подвал ===== */
.ft { margin-top: 72px; background: var(--soft); border-top: 1px solid var(--line); font-size: 14px; }
.ft-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1.35fr; gap: 32px; padding-block: 52px 40px; }
.ft-main { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; }
.ft-main a { font: 700 12px/1 var(--f-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.ft h4 { font: 700 12px/1 var(--f-text); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.ft ul.ft-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ft-l a { color: var(--text); transition: color .15s; }
.ft-l a:hover, .ft-main a:hover { color: var(--olive); }
.ft-ct { display: grid; gap: 12px; align-content: start; }
.ft-card { display: grid; gap: 3px; padding: 12px 16px; background: var(--bg); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 4px 4px 0 var(--btn); color: var(--ink); transition: transform .15s, box-shadow .15s; }
@media (hover: hover) and (pointer: fine) { .ft-card:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--btn); } }
.ft-card:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--btn); }
.ft-card small { font-size: 12px; color: var(--muted); }
.ft-card b { font: 600 17px/1.2 var(--f-text); }
.ft-row { display: flex; align-items: center; gap: 10px; color: var(--text); }
.ft-row i { font-size: 18px; color: var(--muted); }
.ft-soc { display: flex; gap: 8px; margin-top: 4px; }
.ft-soc a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 18px; color: var(--ink); background: var(--bg); transition: border-color .2s; }
.ft-soc a:hover { border-color: var(--ink); }
.ft-bot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-block: 22px 26px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
.ft-bot p { margin: 0; }
.ft-pay { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-pay span { height: 26px; padding: 0 9px; display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); font: 600 11px/1 var(--f-text); color: var(--text); }
.studio { color: var(--muted); white-space: nowrap; }
.studio b { font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.studio em { font-style: italic; }
.studio:hover { color: var(--ink); }
.foot-art { position: relative; line-height: 0; }
.foot-art img { width: 100%; height: auto; image-rendering: pixelated; }
.foot-note { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.foot-note text { font: italic 600 15px/1 var(--f-disp); fill: var(--ink); }
.foot-note path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.foot-note.is-armed path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.foot-note.is-armed.is-in path { stroke-dashoffset: 0; transition: stroke-dashoffset .8s ease-out .15s; }
@media (max-width: 1023px) { .ft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ft-ct { grid-column: span 3; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .ft-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-block-start: 40px; } .ft-main { grid-column: span 2; grid-template-columns: repeat(2, auto); justify-content: start; gap: 14px 32px; } .ft-ct { grid-column: span 2; grid-template-columns: 1fr; } .foot-note text { font-size: 24px; } }
@media (max-width: 380px) { .ft-grid { grid-template-columns: 1fr; } .ft-main, .ft-ct { grid-column: auto; } }

/* ===== Окна, тосты, мини-корзина, плавающие кнопки ===== */
dialog.md { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: var(--r); background: var(--bg); color: var(--text); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .45); overflow: hidden; }
dialog.md--lg { width: min(980px, calc(100% - 32px)); }
dialog.md[open] { display: flex; flex-direction: column; animation: md-in .28s var(--ease); }
dialog.md::backdrop { background: rgb(18 20 19 / .5); animation: md-fade .25s ease; }
@keyframes md-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes md-fade { from { opacity: 0; } }
.md-h { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 0; }
.md-h h3 { font-size: 21px; }
.md-x { flex: none; width: 38px; height: 38px; display: grid; place-items: center; font-size: 20px; color: var(--ink); border-radius: var(--r); margin-right: -8px; }
.md-x:hover { background: var(--soft); }
.md-b { padding: 16px 24px 24px; overflow-y: auto; overscroll-behavior: contain; }
.md-b form { display: grid; gap: 14px; }
.md-b .lead { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.md-ok { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 12px 0 6px; }
.md-ok i { font-size: 44px; color: var(--ok); }
.md-ok b { font: 500 19px/1.3 var(--f-disp); color: var(--ink); }
@media (max-width: 767px) {
  dialog.md, dialog.md--lg { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 10px 10px 0 0; }
  dialog.md[open] { animation: md-up .35s var(--ease-drawer); }
  @keyframes md-up { from { transform: translateY(100%); } }
}

.qv { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; }
.qv-main { aspect-ratio: 1; display: grid; place-items: center; background: var(--soft); border-radius: var(--r); }
.qv-main img { width: 88%; aspect-ratio: 1; object-fit: contain; }
.qv-th { display: flex; gap: 8px; margin-top: 10px; }
.qv-th button { width: 64px; height: 64px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.qv-th button[aria-pressed="true"] { border-color: var(--ink); }
.qv-th img { width: 100%; height: 100%; object-fit: cover; }
.qv-i { display: grid; align-content: start; gap: 12px; }
.qv-type { margin: 0; color: var(--muted); font-size: 14px; }
.qv-price .price { font-size: 26px; }
.qv-sw { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.qv-sw b { color: var(--text); font-weight: 500; }
.qv-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.qv .tbl { font-size: 13px; }
@media (max-width: 767px) { .qv { grid-template-columns: 1fr; gap: 18px; } .qv-th button { width: 52px; height: 52px; } .qv-acts .btn { flex: 1; } }
.dc { display: grid; gap: 16px; }
.dc-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; }
.dc-out p { margin: 0; font-size: 13px; }
.dc-list { list-style: none; margin: 12px 0; padding: 0; border-top: 1px solid var(--line); }
.dc-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dc-list li > i { font-size: 22px; color: var(--olive); }
.dc-list b { color: var(--ink); font-weight: 600; font-size: 14px; }
.dc-list small { display: block; color: var(--muted); font-size: 12.5px; }
.ft-ask { color: var(--text); font-size: 14px; text-align: left; transition: color .15s; }
.ft-ask:hover { color: var(--olive); }

.toast { position: fixed; z-index: 90; left: 50%; bottom: 28px; translate: -50% 0; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r); background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 16px 36px -12px rgb(0 0 0 / .4); opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .25s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: none; }

.mc { position: fixed; z-index: 80; top: 96px; right: max(var(--gut), calc((100vw - var(--wrap)) / 2 - 8px)); width: 360px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 30px 60px -24px rgb(29 31 30 / .38); padding: 18px 18px 18px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility 0s linear .25s; }
.mc.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mc.is-top { top: 76px; }
.mc-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 600 14px/1.3 var(--f-text); color: var(--ink); }
.mc-h i.ph-check-circle { color: var(--ok); font-size: 20px; margin-right: 6px; vertical-align: -4px; }
.mc-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; margin: 14px 0 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mc-item img { width: 72px; height: 72px; object-fit: contain; }
.mc-item b { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }
.mc-item small { color: var(--muted); font-size: 12.5px; }
.mc-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mc-acts .btn { padding: 0 10px; }
@media (max-width: 1023px) { .mc { top: auto; bottom: 0; right: 0; left: 0; width: auto; border-radius: 10px 10px 0 0; transform: translateY(100%); transition: opacity .2s, transform .3s var(--ease-drawer), visibility 0s linear .3s; padding-bottom: max(18px, env(safe-area-inset-bottom)); } .mc.is-top { top: auto; } }

.fab { position: fixed; z-index: 50; right: 22px; bottom: 22px; display: grid; gap: 10px; justify-items: end; }
.fab-btn { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--btn); color: #fff; font-size: 24px; box-shadow: 0 12px 28px -10px rgb(0 0 0 / .45); transition: transform .16s var(--ease-out), background-color .2s, opacity .2s; }
.fab-btn:hover { background: var(--btn-h); }
.fab-btn:active { transform: scale(.96); }
.fab-top { width: 44px; height: 44px; font-size: 18px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); opacity: 0; pointer-events: none; transform: translateY(8px); }
.fab-top:hover { background: var(--soft); }
.fab-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
.fab-menu { display: grid; gap: 2px; min-width: 230px; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 24px 50px -20px rgb(0 0 0 / .35); transform-origin: bottom right; }
.fab-menu[hidden] { display: none; }
.fab-menu:not([hidden]) { animation: fab-in .2s var(--ease); }
@keyframes fab-in { from { opacity: 0; transform: scale(.94) translateY(6px); } }
.fab-menu a, .fab-menu button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); font-size: 14px; color: var(--ink); text-align: left; }
.fab-menu a:hover, .fab-menu button:hover { background: var(--soft); }
.fab-menu i { font-size: 20px; color: var(--olive); }
@media (max-width: 767px) { .fab { right: 14px; bottom: 14px; } .fab-btn { width: 48px; height: 48px; } }

/* ===== Общие блоки внутренних страниц ===== */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; cursor: pointer; list-style: none; font: 500 16px/1.35 var(--f-disp); color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s var(--ease); }
.acc details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.acc .acc-b { padding: 0 0 18px; color: var(--text); max-width: 72ch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 11px 0; text-align: left; vertical-align: top; }
.tbl th { width: 46%; font-weight: 400; color: var(--muted); padding-right: 20px; }
.tbl td { color: var(--ink); white-space: pre-line; }
.tbl tr + tr th, .tbl tr + tr td { border-top: 1px solid var(--line); }
.box { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; background: var(--bg); }
.box--soft { background: var(--soft); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); font-size: 13.5px; color: var(--text); background: var(--bg); transition: border-color .15s, color .15s, background-color .15s; white-space: nowrap; }
.chip small { color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] small, .chip[aria-current="true"] small { color: rgb(255 255 255 / .7); }
.empty { display: grid; justify-items: center; gap: 12px; padding: 64px 16px; text-align: center; }
.empty i { font-size: 52px; color: var(--line-2); }
.empty b { font: 500 21px/1.3 var(--f-disp); color: var(--ink); }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 0 8px; }
.skel { background: linear-gradient(90deg, var(--soft) 25%, var(--soft-2) 50%, var(--soft) 75%); background-size: 200% 100%; animation: skel 1.2s linear infinite; border-radius: var(--r); }
@keyframes skel { to { background-position: -200% 0; } }

/* Появление при прокрутке — только если пользователь не просил уменьшить движение */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
  .rv.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* Мягче, а не ноль: движение убираем, прозрачность и цвет остаются короткими */
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-property: opacity, color, background-color, border-color, visibility !important; transition-duration: .15s !important; }
}
