/* МегаСеть — интернет-магазин. Цвета и формы — как у megaset.ru / e-sim.megaset.ru:
   почти чёрный фон, тёмные карточки с крупным скруглением, салатовая кнопка
   покупки и розово-фиолетовый градиент логотипа. Сначала телефон, потом ПК. */

@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(fonts/unbounded-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(fonts/unbounded-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/manrope-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root[data-theme="light"] {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --card: #ffffff;
  --card-2: #f1f1f4;
  --card-3: #e4e4ea;
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .16);
  --text: #111114;
  --text-2: #3c3c46;
  --muted: #74747f;
  --tile: linear-gradient(180deg, #f8f8fa 0%, #eeeef2 100%);
  --header-bg: rgba(255, 255, 255, .82);
  --tabbar-bg: rgba(255, 255, 255, .92);
  --toolbar-bg: rgba(245, 245, 247, .9);
  --sheet-bg: #ffffff;
  --sticky-bg: rgba(255, 255, 255, .95);
  --on-text: #fff;
  --input-focus: #ffffff;
  --placeholder: #9a9aa4;
  --accent-text: #2f8a00;
  --accent-border: #6cc22a;
  --danger-text: #c62828;
  --ring: rgba(0, 0, 0, .16);
  --pic-shadow: rgba(0, 0, 0, .2);
  --hero-shadow: rgba(40, 20, 80, .28);
  --toast-bg: #1c1c1f; --toast-text: #fff; --toast-muted: #b5b5bd; --toast-btn: var(--lime); --toast-btn-text: #000;
  color-scheme: light;
}
:root[data-theme="light"] body { --shadow-card: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -12px rgba(0,0,0,.12); }

:root {
  --bg: #060606;
  --surface: #0f0f11;
  --card: #1a1a1a;
  --card-2: #232326;
  --card-3: #2d2d31;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #ffffff;
  --text-2: #c2c7d1;
  --muted: #8d9298;
  --lime: #9df143;
  --lime-2: #d1fe4b;
  --lime-grad: linear-gradient(135deg, #d1fe4b 0%, #9df143 100%);
  --pink: #ff49ba;
  --violet: #7d7aff;
  --brand-grad: linear-gradient(90deg, #ff49ba 0%, #7d7aff 100%);
  --danger: #ff4f4f;
  --ok: #4ee78d;
  --tile: linear-gradient(180deg, #f7f7f9 0%, #ebebef 100%);
  --r-xl: 30px; --r-lg: 24px; --r-md: 18px; --r-sm: 12px; --r-xs: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --head: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-bg: rgba(6, 6, 6, .72);
  --tabbar-bg: rgba(14, 14, 16, .86);
  --toolbar-bg: rgba(6, 6, 6, .85);
  --sheet-bg: #151517;
  --sticky-bg: rgba(21, 21, 23, .92);
  --on-text: #000;            /* текст на «перевёрнутом» фоне (активный чип) */
  --input-focus: #1d1d20;
  --placeholder: #5f6369;
  --accent-text: var(--lime); /* салатовый как цвет текста */
  --accent-border: var(--lime);
  --danger-text: #ff8a8a;
  --ring: rgba(255, 255, 255, .28);
  --pic-shadow: rgba(0, 0, 0, .55);
  --hero-shadow: rgba(0, 0, 0, .8);
  --toast-bg: #f5f5f7; --toast-text: #000; --toast-muted: #555; --toast-btn: #000; --toast-btn-text: #fff;
  --gutter: 16px;
  --header-h: 60px;
  --tabbar-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 500 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; margin: 0; overflow-wrap: break-word; }
h1 { font-size: clamp(24px, 6.4vw, 44px); }
h2 { font-size: clamp(19px, 4.8vw, 30px); }
h3 { font-size: 16px; }
/* Атрибут hidden должен скрывать всегда — иначе display:flex у блока его перебивает
   (так на карточке показывалось «наличными −0 ₽»). */
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.grad-text { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lime { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 8px; }

/* ── Шапка ─────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--header-bg); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { height: 100%; display: flex; align-items: center; gap: 12px; }
.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo img { height: 26px; width: auto; }
.logo b { font: 800 15px/1 var(--head); letter-spacing: .02em; }
.logo b span { color: #dc02ee; }
.logo small { font: 600 10px/1 var(--body); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-left: 2px; }
.header-search {
  flex: 1; display: none; align-items: center; gap: 10px; height: 42px; padding: 0 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 50px; color: var(--muted);
}
.header-search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); min-width: 0; }
.header-nav { display: none; gap: 4px; }
.header-nav a { padding: 8px 14px; border-radius: 50px; color: var(--text-2); font-weight: 600; transition: background .2s, color .2s; }
.header-nav a:hover { background: var(--card); color: var(--text); }
.header-actions { margin-left: auto; display: flex; gap: 6px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); transition: transform .15s var(--ease), background .2s;
}
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 20px; height: 20px; }
.badge-count {
  position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--lime); color: #000; font: 800 11px/19px var(--body); text-align: center;
  transform: scale(0); transition: transform .3s var(--spring);
}
.badge-count.on { transform: scale(1); }
.badge-count.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ── Нижняя панель, как в приложении ───────────────────── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--tabbar-bg); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-top: 1px solid var(--line);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 10.5px; font-weight: 600; position: relative; }
.tabbar a svg { width: 23px; height: 23px; transition: transform .2s var(--spring); }
.tabbar a.on { color: var(--text); }
.tabbar a.on svg { color: var(--accent-text); }
.tabbar a:active svg { transform: scale(.85); }
.tabbar .badge-count { top: 6px; right: calc(50% - 22px); }

/* ── Кнопки ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px;
  border-radius: 50px; font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform .15s var(--ease), filter .2s, background .2s, opacity .2s; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-buy { background: var(--lime-grad); color: #000; box-shadow: 0 8px 30px -10px rgba(157, 241, 67, .55); }
.btn-buy:hover { filter: brightness(1.05); }
.btn-brand { background: var(--brand-grad); color: #fff; }
.btn-dark { background: var(--card-2); color: var(--text); border: 1px solid var(--line); }
.btn-dark:hover { background: var(--card-3); }
.btn-ghost { color: var(--text-2); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .spinner { width: 18px; height: 18px; border: 2.5px solid rgba(0,0,0,.25); border-top-color: #000; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 50px;
  background: var(--card); border: 1px solid var(--line); color: var(--text-2); font-weight: 600; font-size: 14px;
  white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.chip:active { transform: scale(.96); }
.chip.on { background: var(--text); color: var(--on-text); border-color: var(--text); }
.chip .dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ring); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--gutter); margin: 0 calc(-1 * var(--gutter)); scroll-padding: 0 var(--gutter); }
.chips::-webkit-scrollbar { display: none; }

/* ── Заставка при первом входе ─────────────────────────── */
.intro { display: none; }
.show-intro .intro { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center; pointer-events: none;
  animation: intro-out .5s 1.15s var(--ease) forwards; }
.intro-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.intro img { width: 92px; height: auto; animation: intro-mark 1s var(--spring) both; filter: drop-shadow(0 0 40px rgba(255, 73, 186, .45)); }
.intro b { font: 800 22px/1 var(--head); letter-spacing: .04em; overflow: hidden; display: block; }
.intro b span { display: inline-block; animation: intro-word .7s .25s var(--ease) both; }
.intro b span + span { color: #dc02ee; animation-delay: .38s; }
.intro i { display: block; height: 3px; width: 140px; border-radius: 3px; background: var(--brand-grad); transform-origin: left; animation: intro-bar .9s .2s var(--ease) both; }
@keyframes intro-mark { from { opacity: 0; transform: scale(.6) rotate(-8deg); } }
@keyframes intro-word { from { transform: translateY(110%); } }
@keyframes intro-bar { from { transform: scaleX(0); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; transform: scale(1.04); } }

/* ── Главная ───────────────────────────────────────────── */
.hero { position: relative; padding: 22px 0 8px; overflow: hidden; }
.hero-card {
  position: relative; border-radius: var(--r-xl); padding: 26px 22px 0; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 100% 0%, rgba(125, 122, 255, .35) 0%, transparent 55%),
              radial-gradient(90% 80% at 0% 100%, rgba(255, 73, 186, .32) 0%, transparent 60%), var(--card);
  border: 1px solid var(--line); min-height: 420px; display: flex; flex-direction: column;
}
.hero-card::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E"); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; height: 30px; padding: 0 12px; border-radius: 50px;
  background: rgba(255,255,255,.08); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.hero-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(157,241,67,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(157,241,67,0); } }
/* Размер считаем от ширины экрана так, чтобы самое длинное слово («СМАРТФОНЫ» ≈ 8,9
   кегля) помещалось целиком даже при крупном шрифте в настройках телефона (+30%). */
.hero h1 { margin: 16px 0 12px; font-size: clamp(18px, calc((100vw - 76px) / 12.6), 54px); text-transform: uppercase; hyphens: manual; }
.hero p { margin: 0 0 20px; color: var(--text-2); font-size: 15.5px; max-width: 460px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stage { position: relative; margin-top: auto; height: 230px; display: flex; justify-content: center; align-items: flex-end; }
.hero-stage .ph { position: absolute; bottom: -30px; width: 46%; max-width: 230px; aspect-ratio: 1; border-radius: 26px; background: var(--tile);
  box-shadow: 0 30px 60px -20px var(--hero-shadow); overflow: hidden; animation: float 6s var(--ease) infinite; }
.hero-stage .ph img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 10%; }
.hero-stage .ph:nth-child(1) { transform: rotate(-9deg); left: 4%; bottom: -46px; animation-delay: -2s; z-index: 1; }
.hero-stage .ph:nth-child(2) { z-index: 2; width: 52%; bottom: -16px; }
.hero-stage .ph:nth-child(3) { transform: rotate(9deg); right: 4%; bottom: -46px; animation-delay: -4s; z-index: 1; }
@keyframes float { 50% { translate: 0 -10px; } }
.hero-stage .ph.empty { background: linear-gradient(160deg, #2a2a30, #151518); }
.hero-stage .ph.empty::before { content: ""; position: absolute; inset: 18% 30%; border-radius: 18px; border: 2px solid rgba(255,255,255,.12); }

.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.perk { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: flex; gap: 11px; align-items: flex-start; }
.perk svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--accent-text); }
.perk b { display: block; font-size: 14px; line-height: 1.25; }
.perk span { font-size: 12.5px; color: var(--muted); line-height: 1.3; display: block; margin-top: 2px; }

.section { margin-top: 36px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head a { color: var(--muted); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.section-head a:hover { color: var(--text); }

/* Плитки разделов: тёмная карточка с цветной подсветкой, товар без фона
   крупно «выходит» из угла — как витрины Apple/Samsung. */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat {
  --glow: #7d7aff;
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  min-height: 176px; padding: 14px; gap: 6px; border: 1px solid var(--line);
  background: radial-gradient(110% 90% at 85% 100%, color-mix(in srgb, var(--glow) 40%, transparent) 0%, transparent 65%), var(--card);
  transition: transform .25s var(--ease), border-color .2s;
}
.cat:hover { border-color: var(--line-2); }
.cat:active { transform: scale(.97); }
.cat > div { position: relative; z-index: 2; flex-shrink: 0; }
.cat b { display: block; font-size: 15px; line-height: 1.2; }
.cat .cnt { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
/* Картинка — в своей части плитки под текстом: целиком, без наложения. */
.cat-pic {
  flex: 1 1 0; min-height: 76px; width: 100%; object-fit: contain; object-position: right bottom;
  filter: drop-shadow(0 12px 18px var(--pic-shadow)); transition: transform .45s var(--ease); transform-origin: right bottom;
}
.cat:hover .cat-pic { transform: scale(1.06); }
.cat:first-child { grid-column: 1 / -1; min-height: 230px; padding: 18px 18px 14px; }
.cat:first-child b { font: 800 clamp(18px, 5.2vw, 24px)/1.15 var(--head); }
.cat:first-child .cat-pic { min-height: 150px; }
.cat b, .cat .cnt { overflow-wrap: break-word; }
@media (min-width: 640px) {
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cat { min-height: 190px; }
  .cat:first-child { grid-column: span 2; grid-row: span 2; }
  .cat:first-child .cat-pic { min-height: 160px; }
}
@media (min-width: 1000px) { .cats { grid-template-columns: repeat(6, minmax(0, 1fr)); } .cat { min-height: 200px; } }
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .cat { background: radial-gradient(120% 100% at 100% 100%, rgba(125,122,255,.3), transparent 62%), var(--card); }
}

/* Каталог по группам: строки с фото, на ПК — сетка */
.cat-group { margin-top: 22px; }
.cat-group h2 { font-size: 17px; margin-bottom: 10px; color: var(--text-2); }
.cat-list { display: grid; gap: 8px; }
.cat-row { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 14px 8px 8px; transition: border-color .2s, transform .15s; }
.cat-row:active { transform: scale(.98); }
.cat-row:hover { border-color: var(--line-2); }
.cat-row-img { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; display: block;
  background: radial-gradient(70% 70% at 50% 60%, rgba(125,122,255,.28), transparent 70%); }
.cat-row-img { overflow: hidden; }
.cat-row-img img { display: block; width: 100%; height: 100%; max-width: 56px; max-height: 56px; object-fit: contain; padding: 4px; filter: drop-shadow(0 3px 6px var(--pic-shadow)); }
.cat-row-txt { flex: 1; min-width: 0; }
.cat-row-txt b { display: block; font-size: 15px; }
.cat-row-txt span { font-size: 12.5px; color: var(--muted); }
.cat-row svg { color: var(--muted); flex-shrink: 0; }
@media (min-width: 640px) { .cat-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cat-list { grid-template-columns: repeat(3, 1fr); } }

/* Полка товаров с горизонтальной прокруткой */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 6px; margin: 0 calc(-1 * var(--gutter)); scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf > * { scroll-snap-align: start; }

/* ── Карточка товара в сетке ───────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 6px 6px 12px; transition: transform .25s var(--ease), border-color .2s; min-width: 0;
}
.card:hover { border-color: var(--line-2); }
.card:active { transform: scale(.985); }
.card-media { position: relative; aspect-ratio: 1; border-radius: 19px; background: var(--tile); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 9%; transition: transform .5s var(--ease), opacity .25s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .noimg { position: absolute; inset: 0; display: grid; place-items: center; }
.card-media .noimg svg { width: 42%; height: 42%; color: #c9c9d1; }
.card-badge { position: absolute; left: 8px; top: 8px; z-index: 1; height: 24px; padding: 0 9px; border-radius: 50px; font: 800 11px/24px var(--body);
  background: #000; color: #fff; }
.card-badge.lime { background: var(--lime); color: #000; }
.card-body { padding: 10px 6px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-colors { display: flex; gap: 5px; align-items: center; min-height: 14px; }
.card-colors i { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ring); }
.card-colors span { font-size: 11px; color: var(--muted); margin-left: 2px; }
.card-name { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.card-facts { font-size: 12px; color: var(--muted); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-mem { display: flex; flex-wrap: wrap; gap: 4px; }
.card-mem span { font-size: 11px; font-weight: 700; color: var(--text-2); background: var(--card-2); border-radius: 6px; padding: 2px 6px; }
.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; padding-top: 4px; flex-wrap: wrap; }
.card-foot .card-add { margin-left: auto; }
.card-price { min-width: 0; }
.card-price b { display: block; font: 800 17px/1.15 var(--body); letter-spacing: -.01em; }
.card-price small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.card-add { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--lime-grad); color: #000;
  transition: transform .2s var(--spring); }
.card-add:active { transform: scale(.85); }
.card-add svg { width: 20px; height: 20px; }
.card-add.go { background: var(--card-2); color: var(--text); }

/* ── Каталог ───────────────────────────────────────────── */
.back-link { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; margin-top: 12px; border-radius: 50px;
  background: var(--card); border: 1px solid var(--line); color: var(--text-2); font-weight: 600; font-size: 14px; transition: background .2s; }
.back-link svg { width: 18px; height: 18px; transform: rotate(180deg); }
.back-link:hover { background: var(--card-2); color: var(--text); }
.back-link + .crumbs { margin-top: 10px; }
.crumbs { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin: 14px 0 8px; }
.crumbs a:hover { color: var(--text); }
.crumbs span::before { content: "›"; margin-right: 6px; opacity: .6; }
.cat-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.cat-head .muted { font-size: 14px; }
.toolbar { position: sticky; top: var(--header-h); z-index: 30; background: var(--toolbar-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 10px 0; margin-bottom: 12px; }
.toolbar .chips { padding-bottom: 2px; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 14px; color: var(--card-3); }
.empty-state h2 { color: var(--text); font-size: 20px; margin-bottom: 8px; }

/* Нижняя шторка (фильтры, сортировка, выбор салона) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .3s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 91; max-height: 88vh; display: flex; flex-direction: column;
  background: var(--sheet-bg); border-radius: 26px 26px 0 0; border-top: 1px solid var(--line-2);
  transform: translateY(105%); transition: transform .42s var(--spring); padding-bottom: env(safe-area-inset-bottom); }
.sheet.open { transform: none; }
.sheet.open + .sheet-backdrop, .sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--card-3); margin: 10px auto 2px; flex-shrink: 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 12px; flex-shrink: 0; }
.sheet-head h3 { font-size: 18px; }
.sheet-body { overflow-y: auto; padding: 0 20px 16px; overscroll-behavior: contain; }
.sheet-foot { display: flex; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid var(--line); flex-shrink: 0; flex-wrap: wrap; }
.sheet-foot .btn { flex: 1 1 0; width: auto; min-width: 120px; white-space: normal; height: auto; min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
.sheet-foot .btn-buy { flex-grow: 1.6; }
.f-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.f-group:last-child { border-bottom: 0; }
.f-group h4 { margin: 0 0 12px; font-size: 14px; color: var(--text-2); }
.f-options { display: flex; flex-wrap: wrap; gap: 8px; }
.f-options input { position: absolute; opacity: 0; pointer-events: none; }
.f-options label { cursor: pointer; }
.f-options input:checked + .chip { background: var(--text); color: var(--on-text); border-color: var(--text); }
.f-price { display: flex; gap: 10px; }
.field { display: block; }
.field span { display: block; font-size: 12.5px; color: var(--muted); margin: 0 0 6px 4px; font-weight: 600; }
.input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-sm); background: var(--card-2); border: 1.5px solid transparent;
  color: var(--text); outline: 0; transition: border-color .2s, background .2s; font-size: 16px; font-weight: 600;
}
.input::placeholder { color: var(--placeholder); font-weight: 500; }
.input:focus { border-color: var(--accent-border); background: var(--input-focus); }
.input.err { border-color: var(--danger); }
textarea.input { height: 90px; padding: 14px 16px; resize: vertical; }
.radio-list { display: flex; flex-direction: column; gap: 4px; }
.radio-list label { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.radio-list input { accent-color: var(--lime); width: 20px; height: 20px; }

/* ── Страница товара ───────────────────────────────────── */
.pdp { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.pdp > * { min-width: 0; }
.pdp-details { display: grid; gap: 18px; margin-top: 18px; grid-template-columns: minmax(0, 1fr); }
.pdp-details > * { min-width: 0; }
.gallery { position: relative; margin: 0 calc(-1 * var(--gutter)); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; padding: 0 var(--gutter); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1; border-radius: var(--r-xl); background: var(--tile); overflow: hidden; position: relative; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8%; }
.gallery-slide .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #c4c4cc; }
.gallery-slide .noimg svg { width: 40%; height: 40%; }
/* Слайд-инфографика: главные цифры модели в фирменном стиле */
.info-slide { background: radial-gradient(120% 80% at 100% 0%, rgba(125,122,255,.45), transparent 55%),
  radial-gradient(90% 70% at 0% 100%, rgba(255,73,186,.4), transparent 60%), #141416 !important;
  display: flex; flex-direction: column; padding: 6% 6% 6%; gap: 4%; color: #fff; }
.info-head { display: flex; align-items: center; gap: 12px; }
.info-ph { width: 22%; aspect-ratio: 1; border-radius: 16px; background: var(--tile); overflow: hidden; flex-shrink: 0; }
.info-ph img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8% !important; }
.info-head small { display: block; font: 700 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: 6px; }
.info-head b { font: 800 clamp(15px, 4.6vw, 24px)/1.15 var(--head); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.info-tiles { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 3%; min-height: 0; }
.info-tile { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: clamp(10px, 3.4vw, 22px) clamp(12px, 3.6vw, 24px); display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; overflow: hidden; }
.info-tile svg { width: clamp(20px, 6vw, 30px); height: clamp(20px, 6vw, 30px); color: var(--lime); margin-bottom: auto; flex-shrink: 0; }
.info-tile b { font: 800 clamp(15px, 4.4vw, 26px)/1.25 var(--head); letter-spacing: -.02em; overflow-wrap: anywhere; padding-bottom: 1px; }
.info-tile span { font-size: clamp(10.5px, 2.9vw, 13px); color: rgba(255,255,255,.68); margin-top: 2px; line-height: 1.3; overflow-wrap: anywhere; }
.info-tiles.n3 .info-tile:first-child { grid-row: span 2; }
.info-tiles.n5 .info-tile:last-child { grid-column: span 2; }
/* На узких телефонах — 4 главные плитки, иначе в квадратном слайде тесно. */
@media (max-width: 479px) {
  .info-tiles .info-tile:nth-child(n+5) { display: none; }
  .info-tiles.n5 .info-tile:nth-child(4) { grid-column: auto; }
  .info-head { gap: 10px; }
  .info-ph { width: 18%; border-radius: 12px; }
  .info-tile { border-radius: 14px; padding: 10px 12px; }
}
.thumb-info { display: grid; place-items: center; background: linear-gradient(135deg, #2a1838, #1a1a3a) !important; color: var(--lime); }
.thumb-info svg { width: 26px; height: 26px; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.gallery-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--card-3); transition: width .3s var(--ease), background .3s; }
.gallery-dots i.on { width: 20px; background: var(--text); }
.gallery-thumbs { display: none; }
.pdp-title { font-size: clamp(22px, 5.6vw, 34px); }
.pdp-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.price-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.price-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-main b { font: 800 30px/1 var(--body); letter-spacing: -.02em; }
.price-cash { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.price-cash b { color: var(--accent-text); font-size: 16px; }
.price-cash i { font-style: normal; font-size: 11px; font-weight: 800; color: #000; background: var(--lime); border-radius: 6px; padding: 2px 6px; }
.stock-line { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 600; }
.stock-line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(78,231,141,.15); }
.stock-line.low::before { background: #ffb547; box-shadow: 0 0 0 4px rgba(255,181,71,.15); }
.price-box .btn-buy { margin-top: 16px; }
.axis { margin-bottom: 18px; }
.axis-title { font-size: 13.5px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.axis-title b { color: var(--text); }
.axis-values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  min-height: 46px; padding: 0 16px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line);
  font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: border-color .2s, background .2s, transform .15s;
}
.opt:active { transform: scale(.96); }
.opt.on { border-color: var(--accent-border); background: rgba(157,241,67,.08); }
.opt.na { opacity: .38; }
.opt small { font-weight: 600; color: var(--muted); font-size: 12px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; padding: 4px; border: 2px solid transparent; transition: border-color .2s, transform .2s var(--spring); }
.swatch i { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ring), inset 0 -6px 12px rgba(0,0,0,.18); }
.swatch.on { border-color: var(--accent-border); }
.swatch:active { transform: scale(.9); }
.swatch.na { opacity: .35; }
.pdp-info { display: grid; gap: 10px; }
.info-row { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.info-row svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--violet); }
.info-row b { display: block; font-size: 14.5px; }
.info-row span { color: var(--muted); font-size: 13px; }
.highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.highlights div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.highlights div::before { content: ""; display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--brand-grad); margin-bottom: 10px; }
/* «Чем хорош …»: смысловые блоки, как на сайтах производителей */
.features h2 { margin: 10px 0 14px; }
.feature-list { display: grid; gap: 10px; }
.feature { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 20px 22px; overflow: hidden; }
.feature-n { display: block; font: 800 12px/1 var(--head); letter-spacing: .12em; color: var(--accent-text); margin-bottom: 12px; }
.feature h3 { font-size: clamp(17px, 4.6vw, 22px); line-height: 1.2; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.feature-lead { background: radial-gradient(110% 120% at 100% 0%, rgba(125,122,255,.32), transparent 55%),
  radial-gradient(90% 90% at 0% 100%, rgba(255,73,186,.24), transparent 60%), var(--card); }
.feature-lead h3 { font-size: clamp(20px, 5.6vw, 28px); }
@media (min-width: 760px) {
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-lead { grid-column: 1 / -1; padding: 28px 30px 30px; }
  .feature-lead p { max-width: 640px; font-size: 16px; }
}
.specs { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 18px; }
.specs dl { margin: 0; display: grid; grid-template-columns: minmax(90px, 40%) minmax(0, 1fr); }
.specs dt, .specs dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.specs dt { color: var(--muted); padding-right: 12px; }
.specs dd { font-weight: 600; }
.specs dl > :nth-last-child(-n+2) { border-bottom: 0; }
.description { color: var(--text-2); font-size: 15px; line-height: 1.65; }
.description p { margin: 0 0 12px; }
.description h3 { color: var(--text); margin: 18px 0 8px; font-size: 16px; }
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 55;
  background: var(--sticky-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line);
  padding: 10px var(--gutter); display: flex; align-items: center; gap: 12px;
  transform: translateY(130%); transition: transform .35s var(--spring);
}
.sticky-buy.on { transform: none; }
.sticky-buy .p b { display: block; font: 800 19px/1.1 var(--body); }
.sticky-buy .p small { color: var(--muted); font-size: 12px; }
.sticky-buy .btn { flex: 1; height: 48px; }

/* ── Корзина и оформление ──────────────────────────────── */
.cart-list { display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px;
  transition: opacity .3s, transform .3s var(--ease); }
.cart-item.removing { opacity: 0; transform: translateX(-30px); }
.cart-item .img { aspect-ratio: 1; border-radius: 14px; background: var(--tile); overflow: hidden; }
.cart-item .img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8%; }
.cart-item .name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.cart-item .lbl { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.cart-item .row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; flex-wrap: wrap; }
.cart-item .row b { font-size: 16px; white-space: nowrap; }
.cart-item.na { opacity: .55; }
.qty { display: inline-flex; align-items: center; background: var(--card-2); border-radius: 50px; height: 36px; }
.qty button { width: 36px; height: 36px; display: grid; place-items: center; font-size: 18px; font-weight: 700; border-radius: 50%; }
.qty button:active { background: var(--card-3); }
.qty span { min-width: 22px; text-align: center; font-weight: 800; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 10px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--text-2); }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); }
.summary .total b { font: 800 24px/1 var(--body); }
.summary .note { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.step { min-width: 0; overflow-wrap: break-word; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.step h2 { font-size: 17px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step h2 i { width: 26px; height: 26px; border-radius: 50%; background: var(--card-3); font: 800 13px/26px var(--body); text-align: center; font-style: normal; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--card-2); padding: 4px; border-radius: 16px; gap: 4px; margin-bottom: 14px; }
.seg button { height: 44px; border-radius: 12px; font-weight: 700; color: var(--muted); transition: background .25s, color .25s; }
.seg button.on { background: var(--text); color: var(--on-text); }
.pay-opts { display: grid; gap: 8px; }
.pay-opt { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-md); background: var(--card-2); border: 1.5px solid transparent; cursor: pointer; transition: border-color .2s; }
.pay-opt.on { border-color: var(--accent-border); }
.pay-opt.off { opacity: .45; cursor: default; }
.pay-opt svg { width: 26px; height: 26px; flex-shrink: 0; }
.pay-opt b { display: block; font-size: 14.5px; }
.pay-opt span { font-size: 12.5px; color: var(--muted); }
.pay-opt > div:not(.amt) { min-width: 0; }
.pay-opt .amt { margin-left: auto; text-align: right; font-weight: 800; white-space: nowrap; }
.pay-opt .amt small { display: block; font-size: 11px; color: var(--accent-text); font-weight: 700; }
.salon-pick { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md); background: var(--card-2); cursor: pointer; border: 1.5px solid transparent; }
.salon-pick.on { border-color: var(--accent-border); }
.salon-pick svg { width: 24px; height: 24px; color: var(--accent-text); flex-shrink: 0; }
.salon-list { display: grid; gap: 8px; }
.salon { display: grid; gap: 4px; padding: 14px; border-radius: var(--r-md); background: var(--card); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s; text-align: left; width: 100%; }
.salon.on { border-color: var(--accent-border); }
.salon b { font-size: 15px; }
.salon .metro { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.salon .metro i { width: 10px; height: 10px; border-radius: 50%; }
.salon span { font-size: 13px; color: var(--muted); }
.map { height: 340px; border-radius: var(--r-lg); overflow: hidden; background: #e9e6df; border: 1px solid var(--line); position: relative; }
.map-load { position: absolute; inset: 0; display: grid; place-items: center; color: #6b6b6b; font-size: 14px; padding: 16px; text-align: center; }
.map-pin { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.map-marker { width: 40px; height: 40px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--brand-grad);
  box-shadow: 0 6px 20px rgba(255,73,186,.45); display: grid; place-items: center; transition: transform .2s var(--spring); border: 2px solid #fff; flex-shrink: 0; }
.map-marker img { width: 22px; transform: rotate(45deg); filter: brightness(0) invert(1); }
.map-pin.on .map-marker { transform: rotate(-45deg) scale(1.2); background: var(--lime-grad); }
.map-label { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 13px; background: #fff; color: #111;
  font: 700 12px/1 var(--body); box-shadow: 0 3px 10px rgba(0,0,0,.25); white-space: nowrap; margin-bottom: 24px; }
.map-label { max-width: 300px; }
.map-label > span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metro-pin { display: flex; align-items: center; gap: 5px; pointer-events: none; }
.metro-pin i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 13px/1 var(--body);
  font-style: normal; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.metro-pin span { background: rgba(255,255,255,.94); color: #111; font: 700 12px/1 var(--body); padding: 5px 8px; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); white-space: nowrap; }
.map-card-btns { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.map-card-btns .btn { height: 36px; padding: 0 14px; font-size: 13px; }
.map-card-btns .btn-dark { background: #f0f0f3; color: #111; border-color: #e3e3e8; }
.maplibregl-ctrl-attrib { font-size: 10px; }
.consent { font-size: 12px; color: var(--muted); line-height: 1.45; }
.consent a { text-decoration: underline; }
.form-error { background: rgba(255,79,79,.12); color: var(--danger-text); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; font-weight: 600; white-space: pre-line; }

/* Готовый заказ */
.done { text-align: center; padding: 26px 0 10px; }
.done .check { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--lime-grad); display: grid; place-items: center; color: #000;
  animation: pop .6s var(--spring) both; box-shadow: 0 0 0 12px rgba(157,241,67,.12), 0 20px 50px -10px rgba(157,241,67,.5); }
.done .check svg { width: 40px; height: 40px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .35s var(--ease) forwards; }
@keyframes pop { from { transform: scale(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.status-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 50px; background: rgba(157,241,67,.16); color: var(--accent-text); font-weight: 700; font-size: 13.5px; }
.status-pill.cancel { background: rgba(255,79,79,.12); color: var(--danger-text); }

/* ── Тосты ─────────────────────────────────────────────── */
.toasts { position: fixed; left: 0; right: 0; top: calc(var(--header-h) + 8px); z-index: 120; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: var(--toast-bg); color: var(--toast-text); border-radius: 18px; padding: 10px 10px 10px 12px; box-shadow: 0 20px 50px -10px rgba(0,0,0,.6);
  max-width: 420px; width: 100%; animation: toast-in .45s var(--spring) both; }
.toast.out { animation: toast-out .3s var(--ease) forwards; }
.toast .t-img { width: 44px; height: 44px; border-radius: 10px; background: #fff; flex-shrink: 0; overflow: hidden; }
.toast .t-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.toast b { display: block; font-size: 14px; }
.toast span { font-size: 12.5px; color: var(--toast-muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.toast a { margin-left: auto; background: var(--toast-btn); color: var(--toast-btn-text); border-radius: 50px; padding: 9px 14px; font-weight: 700; font-size: 13px; white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-20px) scale(.95); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-14px) scale(.97); } }
.fly { position: fixed; z-index: 130; width: 60px; height: 60px; border-radius: 14px; background: var(--tile) center/contain no-repeat; pointer-events: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .7s cubic-bezier(.5,-0.3,.7,.4), opacity .7s; }

/* Поиск-подсказки */
.search-page form { display: flex; gap: 8px; margin: 14px 0 18px; }
.search-page .input { border-radius: 50px; padding-left: 20px; }
.suggest { margin-top: 8px; display: grid; gap: 6px; }
.suggest a { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 14px; padding: 8px 12px 8px 8px; }
.suggest .s-img { width: 46px; height: 46px; border-radius: 10px; background: var(--tile); overflow: hidden; flex-shrink: 0; }
.suggest .s-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 6%; }
.suggest b { font-size: 14px; display: block; }
.suggest span { font-size: 12.5px; color: var(--muted); }

/* ── Подвал ────────────────────────────────────────────── */
.footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 28px 0 24px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; gap: 24px; }
.footer h4 { color: var(--text); font-size: 14px; margin: 0 0 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--text); }
.footer .phone { font: 700 20px/1.2 var(--head); color: var(--text); display: inline-block; margin-bottom: 6px; }
.eco { display: grid; gap: 8px; margin-top: 14px; max-width: 420px; }
.eco a { display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-2); color: var(--text-2); transition: border-color .2s; }
.eco a b { font-size: 14px; color: var(--text); }
.eco a span { font-size: 12.5px; color: var(--muted); }
.eco a:hover { border-color: var(--pink); }
.legal { margin-top: 22px; font-size: 12px; line-height: 1.5; }
.prose { color: var(--text-2); line-height: 1.7; font-size: 15px; max-width: 760px; }
.prose h2 { color: var(--text); font-size: 19px; margin: 26px 0 10px; }
.prose a { color: var(--accent-text); }
.preview-bar { background: var(--brand-grad); color: #fff; text-align: center; font-size: 12.5px; font-weight: 700; padding: 6px 12px; }

/* Скелетоны */
.skel { background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 50%, var(--card) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Плавное появление при прокрутке */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Планшет и ПК ──────────────────────────────────────── */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .shelf { grid-auto-columns: 30%; }
  .perks { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .highlights { grid-template-columns: repeat(3, 1fr); }
  .sheet { left: 50%; right: auto; width: 480px; transform: translate(-50%, 105%); bottom: 20px; border-radius: 26px; border: 1px solid var(--line-2); }
  .sheet.open { transform: translate(-50%, 0); }
}
@media (min-width: 1000px) {
  :root { --header-h: 72px; }
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .header-search { display: flex; max-width: 420px; }
  .header-nav { display: flex; }
  .search-btn { display: none !important; }
  .logo img { height: 30px; }
  .logo b { font-size: 17px; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .catalog-main .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shelf { grid-auto-columns: calc((100% - 48px) / 5); overflow: visible; margin: 0; padding: 0; }
  .shelf { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); }
  .shelf > :nth-child(n+11) { display: none; }
  .hero-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 32px; min-height: 460px; padding: 56px 0 0 48px; align-items: center; }
  .hero-card > div:first-child { padding-bottom: 56px; }
  .hero h1 { font-size: clamp(34px, 3.6vw, 54px); }
  .hero-stage { align-self: stretch; height: auto; min-height: 400px; margin: 0; }
  .hero-stage .ph { max-width: 280px; }
  .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .pdp-media { position: sticky; top: calc(var(--header-h) + 20px); }
  .gallery { margin: 0; }
  .gallery-track { padding: 0; }
  .gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; }
  .gallery-thumbs button { width: 72px; height: 72px; border-radius: 14px; background: var(--tile); overflow: hidden; border: 2px solid transparent; }
  .gallery-thumbs button.on { border-color: var(--accent-border); }
  .gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8%; }
  .gallery-dots { display: none; }
  .sticky-buy { display: none; }
  .pdp-details { margin-top: 36px; max-width: 1000px; }
  .checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
  .checkout-grid aside { position: sticky; top: calc(var(--header-h) + 20px); }
  .toasts { top: auto; bottom: 24px; align-items: flex-end; padding-right: 24px; }
  .catalog-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
  #sheet-filters { position: sticky; top: calc(var(--header-h) + 76px); left: auto; right: auto; bottom: auto; width: auto;
    transform: none; max-height: calc(100vh - var(--header-h) - 96px); border-radius: var(--r-lg); background: var(--card);
    border: 1px solid var(--line); z-index: 1; transition: none; }
  #sheet-filters .sheet-grip, #sheet-filters [data-close] { display: none; }
  #sheet-filters .sheet-head { padding-top: 16px; }
  #sheet-filters + .sheet-backdrop, [data-open="filters"] { display: none !important; }
  #sheet-filters .f-options .chip { height: 34px; padding: 0 12px; font-size: 13px; }
  /* На ПК фильтры применяются сразу — кнопка «Показать» не нужна. */
  #sheet-filters .sheet-foot .btn-buy { display: none; }
  #sheet-filters .sheet-foot .btn { flex: 1; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .intro { display: none; }
  .reveal { opacity: 1; transform: none; }
}
@media (min-width: 1280px) { .catalog-main .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Светлая тема: карточкам — лёгкая тень, а то белое на светло-сером теряется. */
:root[data-theme="light"] .card, :root[data-theme="light"] .cat, :root[data-theme="light"] .perk,
:root[data-theme="light"] .price-box, :root[data-theme="light"] .info-row, :root[data-theme="light"] .feature,
:root[data-theme="light"] .specs, :root[data-theme="light"] .summary, :root[data-theme="light"] .step,
:root[data-theme="light"] .cart-item, :root[data-theme="light"] .cat-row, :root[data-theme="light"] .salon,
:root[data-theme="light"] .hero-card { box-shadow: var(--shadow-card); }
:root[data-theme="light"] .hero-card {
  background: radial-gradient(120% 90% at 100% 0%, rgba(125, 122, 255, .22) 0%, transparent 55%),
              radial-gradient(90% 80% at 0% 100%, rgba(255, 73, 186, .18) 0%, transparent 60%), #ffffff; }
:root[data-theme="light"] .hero-card::after { opacity: .25; }
:root[data-theme="light"] .feature-lead { background: radial-gradient(110% 120% at 100% 0%, rgba(125,122,255,.18), transparent 55%),
  radial-gradient(90% 90% at 0% 100%, rgba(255,73,186,.14), transparent 60%), #fff; }
:root[data-theme="light"] .cat { background: radial-gradient(110% 90% at 85% 100%, color-mix(in srgb, var(--glow) 22%, transparent) 0%, transparent 65%), #fff; }
:root[data-theme="light"] .sheet-backdrop { background: rgba(20, 20, 30, .35); }
:root[data-theme="light"] .btn-buy { box-shadow: 0 8px 24px -12px rgba(80, 140, 0, .55); }
:root[data-theme="light"] .icon-btn { background: #fff; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }

/* Узкие телефоны: в шапке только поиск и корзина, переключатель темы — в подвале. */
.footer-theme { display: none; }
@media (max-width: 479px) {
  .header .theme-btn { display: none; }
  .footer-theme { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; height: 40px; padding: 0 16px;
    border-radius: 50px; border: 1px solid var(--line-2); color: var(--text-2); font-weight: 600; font-size: 14px; }
  .footer-theme svg { width: 18px; height: 18px; }
  .header .wrap { gap: 8px; }
  .logo b { font-size: 14px; }
}

/* Ленты чипов с прокруткой: край плавно затухает там, где есть ещё элементы,
   на ПК — стрелки (см. «Ленты чипов» в shop.js). */
.chips-wrap { position: relative; }
.chips.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.chips.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
.chips.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.chips-arrow { display: none; position: absolute; top: 50%; z-index: 2; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 4px 14px rgba(0,0,0,.15); color: var(--text); place-items: center; }
.chips-arrow svg { width: 18px; height: 18px; }
.chips-arrow.l { left: -6px; }
.chips-arrow.l svg { transform: scaleX(-1); }
.chips-arrow.r { right: -6px; }
@media (hover: hover) and (min-width: 768px) { .chips-arrow.on { display: grid; } }
.salon .metro em, .map-card .metro em { font-style: normal; font-weight: 500; color: var(--muted); }
.metro-line { display: flex !important; align-items: center; gap: 6px; }
.metro-line i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Заглушка карты в стиле сайта, пока грузится настоящая: светлые «кварталы»,
   «улицы» и мягкий блик. Карта проявляется поверх неё плавно. */
.map { background-color: #ece9e3; }
.map-load { color: transparent !important; overflow: hidden;
  background:
    linear-gradient(105deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%) 0 0 / 250% 100%,
    repeating-linear-gradient(28deg, transparent 0 46px, #fbe7b4 46px 52px, transparent 52px 120px),
    repeating-linear-gradient(-62deg, transparent 0 70px, #fff 70px 75px, transparent 75px 150px),
    radial-gradient(circle at 70% 30%, #d9ead2 0 60px, transparent 61px),
    radial-gradient(circle at 25% 75%, #cfe0f2 0 45px, transparent 46px), #ece9e3;
  animation: map-shimmer 1.6s linear infinite; }
@keyframes map-shimmer { to { background-position: -150% 0, 0 0, 0 0, 0 0, 0 0, 0 0; } }
.map .map-canvas, .map .map-canvas.maplibregl-map { position: absolute !important; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity .35s var(--ease); }
.map.map-ready .map-canvas, .map.map-ready .map-canvas.maplibregl-map { opacity: 1; }
:root[data-theme="dark"] .map-load { filter: brightness(.55); }

.map-msg { position: absolute; inset: 0; display: grid; place-items: center; color: #6b6b6b; font-size: 14px; padding: 16px; text-align: center; }
.seo-text { margin-top: 40px; padding: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.seo-text h2 { font-size: 17px; margin-bottom: 8px; }
.seo-text p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.65; }

/* Срок доставки, «Купить в 1 клик», быстрые контакты */
.promise { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--lime) 16%, transparent); }
.promise svg { width: 22px; height: 22px; color: var(--accent-text); flex-shrink: 0; margin-top: 1px; }
.promise b { display: block; font-size: 14.5px; }
.promise span { font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
.oneclick-btn { margin-top: 8px; }
.ask-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; font-size: 14px; }
.ask-row > span { color: var(--muted); }
.ask-row a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 700; }
.ask-row svg { width: 16px; height: 16px; }
/* ── Cookie: маленькая «таблетка» в углу, ничего не закрывает ── */
.cookie { position: fixed; z-index: 54; left: 12px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 10px);
  display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 14px; border-radius: 50px; max-width: calc(100% - 24px);
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 20px -8px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
.cookie[hidden] { display: none; }
.cookie.on { opacity: 1; transform: none; }
.cookie p { margin: 0; font-size: 12px; line-height: 1; color: var(--muted); white-space: nowrap; }
.cookie p a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.cookie-yes { flex-shrink: 0; height: 26px; padding: 0 12px; border-radius: 50px; border: 0; background: var(--card-2, var(--line));
  color: var(--text); font: 600 12px/1 var(--body); cursor: pointer; }
.cookie-yes:hover { background: var(--line-2); }
@media (min-width: 1000px) { .cookie { left: 20px; bottom: 20px; } }
@media (prefers-reduced-motion: reduce) { .cookie { transition: none; } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.foot-hours { margin-top: 6px; font-size: 13px; opacity: .75; }
.foot-contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.phone-btn { display: none; }
@media (max-width: 999px) { .phone-btn { display: grid; } }
@media (max-width: 359px) { .header .phone-btn { display: none; } }

/* ── Статьи ───────────────────────────────────────────────── */
.art-hero { background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--violet) 22%, transparent), transparent 60%),
  radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--pink) 14%, transparent), transparent 60%); border-bottom: 1px solid var(--line); }
.art-hero-in { display: grid; gap: 10px; padding-bottom: 22px; }
.art-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.art-tags span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--text-2); }
.art-hero h1 { font-size: clamp(24px, 6vw, 44px); line-height: 1.12; }
.art-lead { font-size: clamp(15.5px, 2.2vw, 18px); color: var(--text-2); line-height: 1.6; margin: 14px 0 0; max-width: 720px; }
.art-hero-pics { position: relative; height: 170px; }
.art-hero-pics img { position: absolute; bottom: 0; height: 88%; max-width: 46%; object-fit: contain; filter: drop-shadow(0 16px 22px var(--pic-shadow)); }
.art-hero-pics .p1 { left: 8%; z-index: 3; height: 100%; }
.art-hero-pics .p2 { left: 38%; z-index: 2; }
.art-hero-pics .p3 { left: 62%; z-index: 1; height: 76%; }
.art-hero-pics .p4 { left: 80%; height: 62%; }
.art-layout { display: grid; gap: 24px; margin-top: 22px; grid-template-columns: minmax(0, 1fr); }
.art-toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; font-size: 14px; }
.art-toc b { display: block; margin-bottom: 8px; font-family: var(--head); }
.art-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.art-toc a { color: var(--text-2); }
.art-toc a:hover { color: var(--text); }
.art-body { min-width: 0; max-width: 780px; font-size: 16.5px; line-height: 1.7; }
.art-body > h2 { font-size: clamp(21px, 4.4vw, 28px); margin: 38px 0 14px; scroll-margin-top: calc(var(--header-h) + 16px); }
.art-body > h2:first-child { margin-top: 0; }
.art-body > h3 { font-size: 18px; margin: 24px 0 10px; }
.art-body > p { margin: 0 0 16px; color: var(--text-2); }
.art-body b { color: var(--text); }
.art-list { margin: 0 0 18px; padding-left: 4px; list-style: none; display: grid; gap: 8px; color: var(--text-2); }
.art-list li { position: relative; padding-left: 22px; }
.art-list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-grad); }
.art-note { border-radius: var(--r-md); padding: 14px 16px 2px; margin: 0 0 20px; border: 1px solid var(--line); }
.art-note b { font-size: 14px; display: block; margin-bottom: 4px; }
.art-note p { margin: 0 0 12px; font-size: 15px; color: var(--text-2); }
.art-note.tip { background: color-mix(in srgb, var(--lime) 14%, transparent); }
.art-note.tip b { color: var(--accent-text); }
.art-note.warn { background: color-mix(in srgb, #ffb547 16%, transparent); }
.art-note.warn b { color: #b86e00; }
.art-verdict { display: grid; gap: 10px; margin: 0 0 22px; }
.vd { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 16px 12px 12px; transition: border-color .2s, transform .15s; }
.vd:hover { border-color: var(--line-2); }
.vd:active { transform: scale(.99); }
.vd-pic { width: 76px; height: 76px; flex-shrink: 0; display: grid; place-items: center; }
.vd-pic img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px var(--pic-shadow)); }
.vd-txt { display: grid; gap: 2px; min-width: 0; line-height: 1.4; }
.vd-txt small { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text); }
.vd-txt b { font-size: 16px; }
.vd-txt span { font-size: 14px; color: var(--text-2); }
.vd-txt em { font-style: normal; font-weight: 800; font-size: 15px; margin-top: 2px; }
.art-compare { margin: 0 0 24px; }
.art-compare figcaption { font: 700 15px/1.3 var(--head); margin-bottom: 10px; }
.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.art-compare table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; line-height: 1.4; }
.art-compare th, .art-compare td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.art-compare tbody th { color: var(--muted); font-weight: 600; width: 22%; position: sticky; left: 0; background: var(--card); }
.art-compare thead th { vertical-align: bottom; }
.art-compare thead a { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; }
.art-compare thead img { height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.art-compare tr:last-child th, .art-compare tr:last-child td { border-bottom: 0; }
.cmp-price td a { font-weight: 800; color: var(--accent-text); }
.art-pc { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); padding: 14px 16px; margin: 0 0 20px; }
.pc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pc-head img { width: 54px; height: 54px; object-fit: contain; }
.pc-head b { flex: 1; font-size: 16px; }
.pc-head em { font-style: normal; font-weight: 800; white-space: nowrap; }
.pc-cols { display: grid; gap: 12px; }
.pc b { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.pc.plus b { color: var(--accent-text); } .pc.minus b { color: var(--danger-text); }
.pc ul { margin: 6px 0 0; padding-left: 18px; font-size: 14.5px; color: var(--text-2); display: grid; gap: 4px; }
.art-products { margin: 4px 0 24px; }
.art-products h3 { font-size: 17px; margin-bottom: 12px; }
.art-products .shelf { grid-auto-columns: 46%; }
.art-faq { display: grid; gap: 8px; margin: 0 0 24px; }
.art-faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 16px; }
.art-faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; position: relative; padding-right: 24px; }
.art-faq summary::-webkit-details-marker { display: none; }
.art-faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 22px; color: var(--muted); transition: transform .2s; }
.art-faq details[open] summary::after { transform: rotate(45deg); }
.art-faq p { margin: 0 0 14px; color: var(--text-2); font-size: 15px; }
.art-cta { display: grid; gap: 14px; margin-top: 30px; padding: 20px; border-radius: var(--r-lg);
  background: radial-gradient(100% 120% at 100% 0%, color-mix(in srgb, var(--violet) 22%, transparent), transparent 60%), var(--card); border: 1px solid var(--line); }
.art-cta b { display: block; font: 700 18px/1.3 var(--head); }
.art-cta span { color: var(--text-2); font-size: 14.5px; }
.art-cta-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.art-grid { display: grid; gap: 12px; }
.art-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 12px; transition: border-color .2s, transform .15s; overflow: hidden; }
.art-card:hover { border-color: var(--line-2); }
.art-card-pics { position: relative; height: 96px; border-radius: 16px; background: radial-gradient(80% 80% at 50% 70%, color-mix(in srgb, var(--violet) 26%, transparent), transparent 70%); }
.art-card-pics img { position: absolute; bottom: 6px; height: 78%; max-width: 60%; object-fit: contain; filter: drop-shadow(0 6px 10px var(--pic-shadow)); }
.art-card-pics img:nth-child(1) { left: 4%; z-index: 3; height: 88%; } .art-card-pics img:nth-child(2) { left: 30%; z-index: 2; } .art-card-pics img:nth-child(3) { left: 52%; height: 64%; }
.art-card-txt { display: grid; gap: 4px; min-width: 0; }
.art-card-txt small { font-size: 12px; color: var(--muted); font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.art-card-txt b { font-size: 15.5px; line-height: 1.3; }
.art-card-txt span { font-size: 13px; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 640px) {
  .pc-cols { grid-template-columns: 1fr 1fr; }
  .art-products .shelf { grid-auto-columns: 30%; }
  .art-cta { grid-template-columns: 1fr auto; align-items: center; }
  .art-hero-pics { height: 220px; }
}
@media (min-width: 1000px) {
  .art-hero-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 30px; }
  .art-hero-pics { height: 300px; }
  .art-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
  .art-toc { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
  .art-products .shelf { grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 4); grid-template-columns: none; overflow-x: auto; }
  .art-products .shelf > :nth-child(n+11) { display: flex; }
  .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .art-card { grid-template-columns: 1fr; }
  .art-card-pics { height: 150px; }
}

@media (min-width: 1000px) { .art-layout.no-toc { grid-template-columns: minmax(0, 1fr); } }

.mem-links { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.mem-links a { color: var(--accent-text); font-weight: 700; }
.mem-links a[aria-current] { color: var(--text); }

/* Отзывы */
.card-rating { font-size: 12.5px; font-weight: 700; }
.card-rating span, .pdp-rating span { color: #ffb400; }
.card-rating em { font-style: normal; font-weight: 500; color: var(--muted); }
.pdp-rating { display: inline-flex; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--text); }
.reviews { display: grid; gap: 10px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.rv-head { display: flex; justify-content: space-between; gap: 10px; }
.stars { color: #ffb400; letter-spacing: 1px; } .stars i { font-style: normal; color: var(--card-3); }
.review p { margin: 8px 0; color: var(--text-2); font-size: 15px; line-height: 1.55; white-space: pre-line; }
.review small { color: var(--muted); font-size: 12px; }
.review-ask { margin-top: 22px; display: grid; gap: 12px; }
.review-ask h2 { font-size: 20px; }
.review-ask > p { margin: 0; }
.rv-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: grid; gap: 10px; }
.rv-item { display: flex; align-items: center; gap: 10px; }
.rv-item img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: var(--tile); }
.rv-stars { display: flex; gap: 4px; }
.rv-stars button { font-size: 32px; line-height: 1; color: var(--card-3); transition: transform .15s; }
.rv-stars button.on { color: #ffb400; }
.rv-stars button:active { transform: scale(.85); }
.rv-form .btn { justify-self: start; }
@media (min-width: 760px) { .reviews { grid-template-columns: 1fr 1fr; } }

.notify-link { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.notify-link:hover { color: var(--text); }

.pc-head { flex-wrap: wrap; }
.pc-head b { min-width: 0; overflow-wrap: anywhere; }
.pc-head em { white-space: normal; }
.art-hero-pics { overflow: hidden; }
.art-hero-pics img { max-width: 34%; }
.art-hero-pics .p1 { max-width: 40%; }
.art-hero-pics .p4 { left: auto; right: 0; }
.vd { min-width: 0; }
.vd-txt, .vd-txt b, .vd-txt span { overflow-wrap: anywhere; }
.crumbs { min-width: 0; }
.crumbs a, .crumbs span { overflow-wrap: anywhere; }

.art-hero-in > * { min-width: 0; }
.art-hero h1 { overflow-wrap: anywhere; }

/* Карточка салона на карте — панелью внизу (на широком экране — слева), не закрывает метку */
.map-sheet { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; display: grid; gap: 5px; background: #fff; color: #111;
  border-radius: 18px; padding: 14px 16px; box-shadow: 0 12px 34px rgba(0,0,0,.28); font-family: var(--body);
  transform: translateY(14px); opacity: 0; transition: transform .25s var(--ease), opacity .2s; max-height: calc(100% - 20px); overflow: auto; }
.map-sheet.on { transform: none; opacity: 1; }
.map-sheet > b, .map-sheet-head > b { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.map-sheet > span { font-size: 13px; color: #555; overflow-wrap: anywhere; }
.map-sheet .metro { display: inline-flex; align-items: center; gap: 6px; color: #111; font-weight: 700; flex-wrap: wrap; }
.map-sheet .metro i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.map-sheet .metro em { font-style: normal; font-weight: 500; color: #666; }
.map-sheet .btn-dark { background: #f0f0f3; color: #111; border-color: transparent; }
.map-sheet-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #f0f0f3; color: #555;
  font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.map-card-open .maplibregl-ctrl-bottom-right { opacity: 0; pointer-events: none; }
@media (min-width: 640px) { .map-sheet { right: auto; width: 320px; top: auto; } }

/* «Как нас найти» — фото пути по шагам */
.route { margin-top: 26px; }
.route-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; }
.route-head h2 { font-size: 22px; margin: 0; }
.route-head span { color: var(--muted); font-size: 13px; }
.route-steps { list-style: none; margin: 0 -16px; padding: 2px 16px 6px; display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px);
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.route-steps::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .route-steps { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); overflow: visible; margin: 0; padding: 0; } }
.route-step { scroll-snap-align: start; min-width: 0; }
.route-step p { margin: 8px 2px 0; font-size: 14px; line-height: 1.4; color: var(--text-2, var(--text)); overflow-wrap: anywhere; }
.route-pic { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden;
  background: var(--card-2); cursor: zoom-in; }
.route-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.route-pic svg, .rv-pic svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.route-pic svg path, .rv-pic svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ra-o { stroke: #fff; } .ra { stroke: #ff2fa8; }
.route-n { position: absolute; left: 10px; top: 10px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: var(--lime-grad);
  color: #000; font: 800 14px/28px var(--body); text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.route-view { position: fixed; inset: 0; z-index: 200; background: #0b0b0d; display: flex; flex-direction: column;
  padding: max(10px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom)); opacity: 0; pointer-events: none; transition: opacity .2s; }
.route-view.on { opacity: 1; pointer-events: auto; }
.rv-top { display: flex; align-items: center; justify-content: space-between; color: #fff; font: 700 15px/1 var(--body); padding: 4px 2px 10px; }
.rv-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; cursor: pointer; }
.rv-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.rv-pic { position: relative; max-width: 100%; max-height: 100%; height: auto; width: auto; border-radius: 14px; overflow: hidden; flex: 0 1 auto; }
.rv-pic img { display: block; max-width: 100%; max-height: calc(100dvh - 170px); width: auto; height: auto; margin: 0 auto; }
.rv-nav { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.rv-nav[hidden] { display: none; }
@media (max-width: 640px) { .rv-nav { position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); } .rv-nav[data-rv="-1"] { left: 16px; } .rv-nav[data-rv="1"] { right: 16px; }
  .rv-cap { padding: 0 56px; } }
.rv-cap { color: #fff; text-align: center; font-size: 15px; line-height: 1.45; margin: 12px auto 0; max-width: 640px; min-height: 44px; overflow-wrap: anywhere; }

/* Заказ с самовывозом — где забрать */
.pickup-card { margin-top: 18px; display: grid; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.pickup-card h2 { font-size: 18px; margin: 0 0 4px; }
.pickup-card > span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.pickup-card > .metro-line { color: var(--text); font-weight: 600; }
.pickup-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* Фото другого цвета, если своего пока нет */
.gallery { position: relative; }
.gallery-alt { position: absolute; left: 12px; top: 12px; z-index: 2; max-width: calc(100% - 24px); padding: 6px 11px; border-radius: 12px;
  background: rgba(17,17,20,.78); color: #fff; font-size: 12.5px; line-height: 1.3; backdrop-filter: blur(6px); overflow-wrap: anywhere; pointer-events: none; }
.gallery-alt b { font-weight: 700; }

/* Слайд «Главное» всегда тёмный — цвета свои, не из темы сайта
   (в светлой теме серые подписи терялись на тёмном фоне). */
.info-slide { color: #fff; --lime: #b6f04a; }
.info-tile b, .info-head b { color: #fff; }

/* Несколько салонов рядом — один кружок с числом */
.map-cluster { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; background: var(--brand-grad); color: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 0 0 7px rgba(255,73,186,.22), 0 6px 18px rgba(0,0,0,.3); padding: 0; transition: transform .15s; }
.map-cluster:hover { transform: scale(1.08); }
.map-cluster b { font: 800 17px/1 var(--head); }
.map-pin.nolabel .map-label, .metro-pin.nolabel span { visibility: hidden; }

.msg-links { display: flex; flex-wrap: wrap; gap: 8px; }
.prose .msg-links a.btn { text-decoration: none; color: var(--text); }

/* Фото салона в списках — видно, что это настоящая точка */
.salon.has-pic { grid-template-columns: 92px minmax(0, 1fr); align-items: start; gap: 12px; }
.salon-txt { display: grid; gap: 4px; min-width: 0; }
.salon-txt > span { overflow-wrap: anywhere; }
.salon-pic { width: 92px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--card-2); }
.salon-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.salon .salon-how { color: var(--accent-text); font-weight: 700; }
@media (min-width: 720px) { .salon.has-pic { grid-template-columns: 120px minmax(0, 1fr); } .salon-pic { width: 120px; } }
.map-sheet-head { display: flex; align-items: center; gap: 12px; padding-right: 30px; margin-bottom: 2px; min-width: 0; }
.map-sheet-head b { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; min-width: 0; }
.map-sheet-pic { width: 96px; aspect-ratio: 4 / 3; flex-shrink: 0; object-fit: cover; border-radius: 10px; background: #eee; }
.salons-lead { margin: -4px 0 12px; font-size: 14px; }
.salon-shelf { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: 14px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px;
  scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding: 0 var(--gutter); }
.salon-shelf::-webkit-scrollbar { display: none; }
.salon-shelf.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.salon-shelf.fade-l.fade-r, .salon-shelf.fade-l { -webkit-mask-image: none; mask-image: none; }
.salon-tile { scroll-snap-align: start; position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden;
  background: #1c1c20; color: #fff; text-decoration: none; box-shadow: 0 10px 28px -14px rgba(0,0,0,.45); isolation: isolate; }
.salon-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); z-index: -1; }
.salon-tile:hover img { transform: scale(1.05); }
.salon-tile::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(8,8,12,.82)); z-index: -1; }
.salon-tile-ph { position: absolute; left: 50%; top: 38%; width: 40px; height: 40px; margin-left: -20px; color: rgba(255,255,255,.5); }
.salon-tile-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; display: grid; gap: 5px; }
.salon-tile-txt b { font: 800 16px/1.2 var(--head); letter-spacing: -.01em; overflow-wrap: anywhere; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.salon-tile .metro { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.88); min-width: 0; flex-wrap: wrap; }
.salon-tile .metro i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
@media (min-width: 900px) { .salon-shelf { grid-auto-columns: calc((100% - 3 * 14px) / 3.4); } }
.salon-txt .metro { flex-wrap: wrap; row-gap: 2px; }

/* Выходы метро с номерами (как в Яндекс Картах) */
.metro-exit { display: flex; align-items: center; pointer-events: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,.3)); }
.metro-exit i { min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px; display: grid; place-items: center; color: #fff; font: 800 10px/1 var(--body);
  font-style: normal; border: 2px solid #fff; }
.metro-exit b { margin-left: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #fff; color: #111; font: 800 10px/16px var(--body); text-align: center; }
/* На крупном масштабе у станции остаётся только подпись — значок «М» дают выходы */
.metro-pin.compact i { display: none; }
