/* Витрина Pricen. Liquid glass как в админке, палитра: крем, графит, шалфей */
:root {
  --bg: #F8F6F2;
  --pill-bg: linear-gradient(135deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.30) 50%, rgba(255,255,255,0.50) 100%);
  --pill-border: rgba(255,255,255,0.65);
  --pill-inset: inset 0 1px 0 rgba(255,255,255,0.92), inset 0 -1px 0 rgba(255,255,255,0.4);
  --card-bg: linear-gradient(135deg, rgba(255,255,255,0.56) 0%, rgba(255,255,255,0.26) 50%, rgba(255,255,255,0.46) 100%);
  --card-border: rgba(255,255,255,0.6);
  --card-inset: inset 0 1px 0 rgba(255,255,255,0.88), inset 0 -1px 0 rgba(255,255,255,0.35);
  --solid-bg: linear-gradient(135deg, rgba(252,251,248,0.90) 0%, rgba(248,246,242,0.80) 100%);
  --shadow: 0 8px 32px rgba(44,44,44,0.09), 0 2px 8px rgba(44,44,44,0.05);
  --shadow-soft: 0 4px 18px rgba(44,44,44,0.06);
  --shadow-hover: 0 16px 36px rgba(44,44,44,0.12);
  --text: #2C2C2C;
  --muted: #5F5B54;
  --faint: #8E8980;
  --border: rgba(44,44,44,0.08);
  --border-strong: rgba(44,44,44,0.14);
  --field: rgba(255,255,255,0.62);
  --img-bg: rgba(44,44,44,0.04);
  --accent: #6B8E78;
  --accent-hover: #5C7F69;
  --accent-soft: rgba(107,142,120,0.13);
  --accent-soft-2: rgba(107,142,120,0.24);
  --accent-glow: rgba(107,142,120,0.34);
  --on-accent: #F8F6F2;
  --red: #B0544B;
  --red-soft: rgba(176,84,75,0.12);
  --grad-btn: linear-gradient(135deg, #7A9C86 0%, #6B8E78 55%, #5E8069 100%);
  --grad-title: linear-gradient(110deg, #2C2C2C 0%, #4B6455 45%, #6B8E78 100%);
  --grad-ava: linear-gradient(135deg, #6B8E78 0%, #2C2C2C 100%);
  --blob-a: radial-gradient(circle, rgba(107,142,120,0.55) 0%, rgba(107,142,120,0) 70%);
  --blob-b: radial-gradient(circle, rgba(160,186,168,0.55) 0%, rgba(160,186,168,0) 70%);
  --blob-c: radial-gradient(circle, rgba(44,44,44,0.10) 0%, rgba(44,44,44,0) 70%);
  --blob-op: 0.8;
  --map-land: rgba(44,44,44,0.05);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --head: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --hdr-h: 70px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #141413;
  --pill-bg: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.08) 100%);
  --pill-border: rgba(255,255,255,0.14);
  --pill-inset: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -1px 0 rgba(255,255,255,0.04);
  --card-bg: linear-gradient(135deg, rgba(255,255,255,0.075) 0%, rgba(255,255,255,0.025) 50%, rgba(255,255,255,0.055) 100%);
  --card-border: rgba(255,255,255,0.10);
  --card-inset: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -1px 0 rgba(255,255,255,0.03);
  --solid-bg: linear-gradient(135deg, rgba(38,38,36,0.92) 0%, rgba(26,26,25,0.86) 100%);
  --shadow: 0 8px 32px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.25);
  --shadow-soft: 0 4px 18px rgba(0,0,0,0.25);
  --shadow-hover: 0 16px 36px rgba(0,0,0,0.45);
  --text: #F8F6F2; --muted: #B5B0A6; --faint: #7E796F;
  --border: rgba(255,255,255,0.08); --border-strong: rgba(255,255,255,0.16);
  --field: rgba(255,255,255,0.04); --img-bg: rgba(255,255,255,0.04);
  --accent: #8DB39A; --accent-hover: #A0C3AC; --accent-soft: rgba(141,179,154,0.15); --accent-soft-2: rgba(141,179,154,0.28); --accent-glow: rgba(141,179,154,0.30);
  --on-accent: #141413;
  --red: #DC7F73; --red-soft: rgba(220,127,115,0.15);
  --grad-btn: linear-gradient(135deg, #9CC0A8 0%, #8DB39A 55%, #7DA48A 100%);
  --grad-title: linear-gradient(110deg, #F8F6F2 0%, #CFE0D4 45%, #8DB39A 100%);
  --grad-ava: linear-gradient(135deg, #8DB39A 0%, #3A3A38 100%);
  --blob-a: radial-gradient(circle, rgba(107,142,120,0.70) 0%, rgba(107,142,120,0) 70%);
  --blob-b: radial-gradient(circle, rgba(141,179,154,0.35) 0%, rgba(141,179,154,0) 70%);
  --blob-c: radial-gradient(circle, rgba(248,246,242,0.06) 0%, rgba(248,246,242,0) 70%);
  --blob-op: 0.7; --map-land: rgba(255,255,255,0.04);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #141413;
  --pill-bg: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.08) 100%);
  --pill-border: rgba(255,255,255,0.14);
  --pill-inset: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -1px 0 rgba(255,255,255,0.04);
  --card-bg: linear-gradient(135deg, rgba(255,255,255,0.075) 0%, rgba(255,255,255,0.025) 50%, rgba(255,255,255,0.055) 100%);
  --card-border: rgba(255,255,255,0.10);
  --card-inset: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -1px 0 rgba(255,255,255,0.03);
  --solid-bg: linear-gradient(135deg, rgba(38,38,36,0.92) 0%, rgba(26,26,25,0.86) 100%);
  --shadow: 0 8px 32px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.25);
  --shadow-soft: 0 4px 18px rgba(0,0,0,0.25);
  --shadow-hover: 0 16px 36px rgba(0,0,0,0.45);
  --text: #F8F6F2; --muted: #B5B0A6; --faint: #7E796F;
  --border: rgba(255,255,255,0.08); --border-strong: rgba(255,255,255,0.16);
  --field: rgba(255,255,255,0.04); --img-bg: rgba(255,255,255,0.04);
  --accent: #8DB39A; --accent-hover: #A0C3AC; --accent-soft: rgba(141,179,154,0.15); --accent-soft-2: rgba(141,179,154,0.28); --accent-glow: rgba(141,179,154,0.30);
  --on-accent: #141413;
  --red: #DC7F73; --red-soft: rgba(220,127,115,0.15);
  --grad-btn: linear-gradient(135deg, #9CC0A8 0%, #8DB39A 55%, #7DA48A 100%);
  --grad-title: linear-gradient(110deg, #F8F6F2 0%, #CFE0D4 45%, #8DB39A 100%);
  --grad-ava: linear-gradient(135deg, #8DB39A 0%, #3A3A38 100%);
  --blob-a: radial-gradient(circle, rgba(107,142,120,0.70) 0%, rgba(107,142,120,0) 70%);
  --blob-b: radial-gradient(circle, rgba(141,179,154,0.35) 0%, rgba(141,179,154,0) 70%);
  --blob-c: radial-gradient(circle, rgba(248,246,242,0.06) 0%, rgba(248,246,242,0) 70%);
  --blob-op: 0.7; --map-land: rgba(255,255,255,0.04);
  color-scheme: dark;
}

/* база */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft-2); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.root { min-height: 100vh; min-height: 100dvh; position: relative; overflow-x: clip; display: flex; flex-direction: column; }
.root::before, .root::after, .blob-c { content: ""; position: fixed; pointer-events: none; z-index: 0; border-radius: 50%; }
.root::before { width: 720px; height: 720px; left: -260px; top: -280px; background: var(--blob-a); filter: blur(120px); opacity: var(--blob-op); }
.root::after { width: 820px; height: 820px; right: -340px; bottom: -360px; background: var(--blob-b); filter: blur(120px); opacity: var(--blob-op); }
.blob-c { top: 45%; left: 55%; width: 600px; height: 600px; transform: translate(-50%, -50%); background: var(--blob-c); filter: blur(110px); }

.glass-pill { background: var(--pill-bg); border: 1px solid var(--pill-border);
  backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--shadow), var(--pill-inset); }
.glass { background: var(--card-bg); border: 1px solid var(--card-border);
  backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--shadow), var(--card-inset); }
.glass-soft { background: var(--card-bg); border: 1px solid var(--card-border);
  backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow: var(--shadow-soft), var(--card-inset); }
.glass-solid { background: var(--solid-bg); border: 1px solid var(--card-border);
  backdrop-filter: blur(32px) saturate(180%); -webkit-backdrop-filter: blur(32px) saturate(180%);
  box-shadow: var(--shadow), var(--card-inset); }

.wrap { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }
.main { position: relative; z-index: 1; flex: 1 0 auto; padding-top: 8px; padding-bottom: 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center-pad { display: grid; place-items: center; padding: 48px 0; color: var(--accent); }

/* шапка */
.hdr { position: sticky; top: 0; z-index: 50; padding: 10px var(--gutter) 6px; }
.hdr-pill { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 14px; border-radius: 999px; }
.brand { display: inline-flex; align-items: center; color: var(--text); flex-shrink: 0; border-radius: 10px; }
.logo { display: inline-flex; color: var(--text); }
.logo svg { height: 26px; width: auto; display: block; }
.search { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 12px; margin: 0;
  border-radius: 999px; background: var(--field); border: 1px solid var(--border); color: var(--faint); transition: border-color .18s, box-shadow .18s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--accent); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--text); }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }
.search-x { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--accent-soft); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn { min-width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: color .18s, background .18s, border-color .18s; flex-shrink: 0; position: relative; padding: 0; }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--accent-soft); }
.icon-btn.on { color: var(--accent); border-color: var(--accent-soft-2); background: var(--accent-soft); }
.icon-btn .lbl { display: none; font-family: var(--head); font-weight: 600; font-size: 14px; }
.icon-btn.sm { min-width: 36px; height: 36px; }
.badge { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font: 700 11px/19px var(--head); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.hide-xs { display: none; }
@media (min-width: 480px) { .hide-xs { display: inline-flex; } .show-xs { display: none !important; } }
@media (min-width: 720px) {
  :root { --hdr-h: 84px; }
  .hdr { padding-top: 14px; }
  .hdr-pill { gap: 14px; padding: 8px 8px 8px 22px; }
  .logo svg { height: 30px; }
  .search { max-width: 560px; margin: 0 auto; height: 42px; }
  .icon-btn { min-width: 42px; height: 42px; }
  .icon-btn .lbl { display: inline; }
  a.icon-btn:has(.lbl) { padding: 0 16px 0 12px; }
}

/* подвал */
.ftr { position: relative; z-index: 1; margin-top: 48px; padding: 0 var(--gutter) 28px; }
.ftr-in { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 22px; border-top: 1px solid var(--border-strong); color: var(--muted); font-size: 13.5px; }
.ftr-in .logo svg { height: 22px; }
.ftr-in p { flex: 1 1 200px; }
.ftr-r { display: flex; align-items: center; gap: 16px; color: var(--faint); }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-btn:disabled { color: var(--faint); cursor: default; text-decoration: none; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 14px;
  font: 600 15px/1 var(--head); letter-spacing: -0.005em; border: 1px solid transparent; white-space: nowrap; user-select: none;
  transition: transform .15s, box-shadow .18s, background .18s, border-color .18s, color .18s, opacity .18s; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--grad-btn); color: var(--on-accent); box-shadow: 0 6px 18px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 26px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-ghost { background: var(--field); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-quiet { background: transparent; color: var(--muted); }
.btn-quiet:hover:not(:disabled) { color: var(--text); background: var(--accent-soft); }
.btn-danger { background: var(--red); color: #F8F6F2; }
.btn-sm { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn.grow { flex: 1 1 auto; min-width: 0; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* поля */
.fld { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; min-width: 0; }
.fld-l { font-size: 13px; font-weight: 500; color: var(--muted); }
.opt { color: var(--faint); font-weight: 400; margin-left: 4px; }
.inp { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--field);
  font-size: 16px; color: var(--text); outline: none; transition: border-color .18s, box-shadow .18s; }
textarea.inp { padding: 12px 14px; resize: vertical; min-height: 76px; line-height: 1.45; }
.inp::placeholder, .phone input::placeholder { color: var(--faint); }
.inp:focus, .phone:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.inp.bad, .phone.bad { border-color: var(--red); }
.inp.ro { display: flex; align-items: center; color: var(--muted); background: transparent; border-style: dashed; }
.phone { display: flex; align-items: center; height: 52px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--field); transition: border-color .18s, box-shadow .18s; }
.phone-cc { padding: 0 6px 0 16px; font: 600 17px var(--head); color: var(--muted); }
.phone input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font: 600 17px var(--head); letter-spacing: .02em; padding-right: 14px; }
.inp.code { height: 56px; text-align: center; font: 700 24px var(--head); letter-spacing: .5em; padding-left: calc(14px + .5em); }
.form-err { margin-top: 10px; color: var(--red); font-size: 13.5px; }

/* скелеты */
.bone { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--border) 0%, var(--border-strong) 50%, var(--border) 100%); background-size: 200% 100%; animation: shim 1.4s ease-in-out infinite; }
.bone.lg { height: 16px; } .bone.xl { height: 26px; }
.bone.sq { height: auto; aspect-ratio: 1; border-radius: 0; }
.pcard-body .bone + .bone { margin-top: 7px; }
@keyframes shim { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* пустые состояния */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 44px 22px; border-radius: 28px; }
.empty-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.empty-ic.bad { background: var(--red-soft); color: var(--red); }
.empty h2 { font: 700 19px/1.25 var(--head); letter-spacing: -0.01em; }
.empty p { color: var(--muted); max-width: 340px; }
.empty-act { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* секции */
.sec { margin-top: 20px; }
.sec.narrow { max-width: 480px; margin-inline: auto; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-h h2, .sec-h2 { font: 700 21px/1.2 var(--head); letter-spacing: -0.02em; }
.sec-h2 { margin-bottom: 12px; font-size: 18px; }
.sec-link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font: 600 14px var(--head); border-radius: 8px; }
.page-h { font: 800 clamp(24px, 6vw, 32px)/1.15 var(--head); letter-spacing: -0.025em; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-h.sm { font-size: clamp(22px, 5vw, 28px); margin-bottom: 2px; }
.page-h .q { color: var(--accent); overflow-wrap: anywhere; }
.page-h .cnt { font: 700 13px/1 var(--head); padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.sub { color: var(--muted); font-size: 14px; }
.crumbs { margin-bottom: 10px; }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font: 600 14px var(--head); padding: 4px 0; border-radius: 8px; }
.crumbs a:hover { color: var(--accent); }

/* главная */
.hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: 26px 20px 24px; display: grid; gap: 12px; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -140px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft-2) 0%, transparent 70%); }
.eyebrow { display: inline-flex; align-self: start; justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 600 12.5px var(--head); letter-spacing: .01em; }
.hero h1 { margin-top: 14px; font: 800 clamp(30px, 8.4vw, 54px)/1.04 var(--head); letter-spacing: -0.035em; text-wrap: balance; }
.hero h1 span { display: block; background: var(--grad-title); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-txt > p { margin-top: 12px; color: var(--muted); font-size: 16px; max-width: 460px; }
.hero-pts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-pts li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: var(--field); border: 1px solid var(--border); font-size: 13.5px; font-weight: 500; }
.hero-pts svg { color: var(--accent); }
.hero-btns { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-art { display: none; color: var(--text); width: 100%; max-width: 380px; height: auto; justify-self: end; align-self: center; }
.hero-art-t { font: 600 13px var(--head); fill: var(--muted); }
.hero-art-glow { opacity: .2; }
@media (min-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); padding: 44px 44px 40px; gap: 24px; }
  .hero-art { display: block; }
}

/* сетка товаров */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.pcard { position: relative; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform .2s, box-shadow .2s; }
@media (hover: hover) { .pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover), var(--card-inset); } .pcard:hover .pcard-img img { transform: scale(1.035); } }
.pcard-link { display: flex; flex-direction: column; flex: 1; border-radius: 20px; }
.pcard-link:focus-visible { outline-offset: -2px; }
.pcard-img { aspect-ratio: 1; }
.pcard-img img { transition: transform .4s ease; }
.pcard-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 14px; flex: 1; }
.pcard-title { font-size: 13.5px; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; overflow-wrap: anywhere; }
.pcard-price { margin-top: auto; font: 800 16px/1.2 var(--head); color: var(--accent); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.pcard-add { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--pill-border); display: grid; place-items: center;
  background: var(--pill-bg); color: var(--text); backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%);
  box-shadow: var(--shadow-soft), var(--pill-inset); transition: background .18s, color .18s, transform .15s; }
.pcard-add:hover { background: var(--accent); color: var(--on-accent); }
.pcard-add:active { transform: scale(.92); }
.pcard-add.in { background: var(--accent); color: var(--on-accent); border-color: transparent; }
@media (min-width: 600px) { .pcard-body { padding: 12px 14px 16px; } .pcard-title { font-size: 14px; } .pcard-price { font-size: 17px; } }
.more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 24px; }
.more-n { color: var(--faint); font-size: 12.5px; }

/* картинки */
.img { display: block; position: relative; overflow: hidden; background: var(--img-bg); width: 100%; }
.img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.img-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); }

/* каталог */
.cat-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cat-h .page-h { margin-bottom: 2px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 0 16px; height: 36px; border-radius: 999px; font: 600 14px var(--head); color: var(--muted); transition: background .18s, color .18s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 12px var(--accent-glow); }

/* товар */
.prod { display: grid; gap: 16px; }
@media (min-width: 880px) { .prod { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; } .prod .gal { position: sticky; top: calc(var(--hdr-h) + 8px); } }
.gal { min-width: 0; }
.gal-main { position: relative; border-radius: 24px; overflow: hidden; }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; aspect-ratio: 1; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track:focus-visible { outline-offset: -3px; }
.gal-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.gal-slide .img { height: 100%; }
.gal-arr { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--pill-border);
  background: var(--pill-bg); color: var(--text); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-soft), var(--pill-inset); transition: opacity .18s; }
.gal-arr.l { left: 10px; } .gal-arr.r { right: 10px; }
.gal-arr:disabled { opacity: 0; pointer-events: none; }
.gal-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--pill-bg); border: 1px solid var(--pill-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font: 600 12px var(--head); color: var(--text); }
.gal-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 4px; scrollbar-width: none; }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-th { flex: 0 0 64px; height: 64px; padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: none; opacity: .7; transition: opacity .18s, border-color .18s; }
.gal-th .img { height: 100%; }
.gal-th.on { border-color: var(--accent); opacity: 1; }
.gal-th:hover { opacity: 1; }
.prod-info { border-radius: 24px; padding: 20px; min-width: 0; }
.prod-title { font: 700 clamp(19px, 4.6vw, 26px)/1.25 var(--head); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.prod-price { margin-top: 12px; font: 800 clamp(26px, 6.4vw, 32px)/1.1 var(--head); color: var(--accent); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.prod-buy { display: flex; gap: 10px; margin-top: 20px; margin-bottom: 10px; }
.prod-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--text); font-size: 13.5px; line-height: 1.45; }
.prod-note svg { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.prod-desc { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-strong); }
.prod-desc h2 { font: 700 16px var(--head); margin-bottom: 8px; }
.prod-desc p { white-space: pre-line; color: var(--muted); font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
@media (min-width: 880px) { .prod-info { padding: 28px; } }

/* количество */
.qty { display: inline-flex; align-items: center; height: 48px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--field); flex-shrink: 0; }
.qty button { width: 42px; height: 100%; border: 0; background: none; display: grid; place-items: center; color: var(--text); border-radius: 13px; }
.qty button:hover:not(:disabled) { color: var(--accent); }
.qty button:disabled { color: var(--faint); opacity: .5; cursor: default; }
.qty .qv { min-width: 28px; text-align: center; font: 700 16px var(--head); font-variant-numeric: tabular-nums; }
.qty.sm { height: 36px; border-radius: 12px; }
.qty.sm button { width: 34px; border-radius: 11px; }
.qty.sm .qv { min-width: 22px; font-size: 14px; }

/* нижняя панель на телефоне */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
.bar-pill { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 22px; color: var(--text); }
.bar-ic { position: relative; display: inline-flex; color: var(--accent); }
.bar-ic .badge { top: -9px; right: -11px; }
.bar-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; padding-left: 6px; }
.bar-l { font-size: 12px; color: var(--muted); }
.bar-v { font: 800 16px var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.root.has-bar { padding-bottom: 84px; }
@media (min-width: 760px) { .bottom-bar { display: none; } .root.has-bar { padding-bottom: 0; } }

/* тост */
.toast-wrap { position: fixed; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; justify-content: center; pointer-events: none; padding: 0 16px; }
.has-bar .toast-wrap { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 760px) { .has-bar .toast-wrap { bottom: 28px; } }
.toast { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; font: 600 14px var(--head); }
.toast svg { color: var(--accent); }
.toast.bad svg { color: var(--red); }

/* корзина и двухколоночные экраны */
.two { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) {
  .two { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
  .two > .sum, .two > .prof { position: sticky; top: calc(var(--hdr-h) + 8px); }
}
@media (max-width: 899px) { .two.rev > .prof { order: -1; } .hide-sm { display: none !important; } }
@media (min-width: 900px) { .show-sm { display: none !important; } }
.lines { border-radius: 24px; padding: 4px 6px; min-width: 0; }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 8px; }
.line + .line { border-top: 1px solid var(--border); }
.line-img { display: block; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; }
.line-img .img { height: 100%; }
.line-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.line-t { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; border-radius: 4px; }
.line-t:hover { color: var(--accent); }
.line-p { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.line-ctl { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.line-sum { font: 700 15px var(--head); white-space: nowrap; font-variant-numeric: tabular-nums; }
.line > .line-sum { align-self: center; }
.line-rm { color: var(--faint); }
.line-rm:hover { color: var(--red); background: var(--red-soft); border-color: transparent; }
.sum { border-radius: 24px; padding: 20px; min-width: 0; }
.sum-h { font: 700 17px var(--head); margin-bottom: 8px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--muted); font-size: 14px; }
.sum-row span:last-child { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-row .muted { color: var(--muted) !important; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 10px 0 16px; padding-top: 14px; border-top: 1px solid var(--border-strong); font: 800 20px var(--head); letter-spacing: -0.01em; }
.sum-total span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum-total.first { margin-top: 0; padding-top: 0; border-top: 0; margin-bottom: 8px; }
.sum-note { margin-top: 10px; text-align: center; color: var(--faint); font-size: 12.5px; }
.sum-edit { display: block; margin-top: 12px; text-align: center; color: var(--accent); font: 600 13.5px var(--head); }
.mini { display: flex; flex-direction: column; gap: 10px; }
.mini li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "i t p" "i q p"; column-gap: 10px; align-items: center; }
.mini-img { grid-area: i; width: 44px; height: 44px; border-radius: 10px; }
.mini-t { grid-area: t; font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-q { grid-area: q; font-size: 12px; color: var(--faint); }
.mini-p { grid-area: p; font: 700 13.5px var(--head); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* оформление и вход */
.card-pad { border-radius: 24px; padding: 20px; min-width: 0; }
.card-h { display: flex; align-items: center; gap: 8px; font: 700 17px var(--head); letter-spacing: -0.01em; }
.card-h svg { color: var(--accent); }
.co-main { min-width: 0; }
.co-form { display: flex; flex-direction: column; gap: 16px; }
.co-form > .form-err { margin-top: 0; }
fieldset.pay { margin: 0; min-width: 0; }
fieldset.pay legend { float: left; width: 100%; padding: 0; }
.pay-opts { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 14px; }
.pay-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--border-strong); background: var(--field); cursor: pointer; transition: border-color .18s, background .18s; }
.pay-opt:hover { border-color: var(--accent); }
.pay-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.pay-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pay-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pay-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; display: grid; place-items: center; transition: border-color .18s; }
.pay-opt.on .pay-dot { border-color: var(--accent); }
.pay-opt.on .pay-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.pay-n { font: 800 17px var(--head); letter-spacing: -0.01em; }

.auth-card { border-radius: 28px; padding: 20px; }
@media (min-width: 480px) { .auth-card { padding: 28px; } }
.tabs { display: flex; padding: 4px; border-radius: 999px; background: var(--accent-soft); gap: 2px; }
.tabs button { flex: 1; min-width: 0; height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 13.5px var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }
.tabs button.on { background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.auth-h { margin-top: 22px; font: 800 23px/1.2 var(--head); letter-spacing: -0.02em; }
.auth.compact .auth-h { margin-top: 0; font-size: 19px; }
.auth-sub { margin-top: 6px; color: var(--muted); font-size: 14px; }
.auth .btn.wide { margin-top: 18px; }
.auth-resend { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* кабинет */
.orders { min-width: 0; }
.olist { border-radius: 24px; padding: 6px; }
.olist li + li { border-top: 1px solid var(--border); }
.orow { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-radius: 18px; transition: background .18s; }
a.orow:hover { background: var(--accent-soft); }
.orow-a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.orow-t { font: 700 16px var(--head); letter-spacing: -0.01em; }
.orow-m { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.orow .chip { margin-top: 5px; }
.orow-go { color: var(--faint); display: inline-flex; }
.thumbs { display: none; align-items: center; }
@media (min-width: 420px) { .thumbs { display: inline-flex; } }
.thumbs .th { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 2px var(--bg); flex-shrink: 0; }
.thumbs .th + .th { margin-left: -12px; }
.thumbs .th.more { display: grid; place-items: center; background: var(--accent-soft-2); color: var(--accent); font: 700 13px var(--head); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 12.5px/1.3 var(--head); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chip .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.chip.go { background: var(--accent-soft); color: var(--accent); }
.chip.ok { background: var(--accent); color: var(--on-accent); }
.chip.wait { background: var(--border); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.chip.off { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--border-strong); }
.prof { border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.prof-top { display: flex; align-items: center; gap: 14px; }
.ava { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-ava); color: #F8F6F2; font: 800 20px var(--head); flex-shrink: 0; box-shadow: 0 6px 16px var(--accent-glow); }
.prof-id { display: flex; flex-direction: column; min-width: 0; }
.prof-n { font: 700 17px var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-p { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.prof-form .fld { margin-top: 0; }
.prof-form .btn { margin-top: 10px; }

/* заказ */
.ord { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ord-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ord-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.note { color: var(--muted); font-size: 14px; }
.confirm { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.steps { display: flex; margin-top: 22px; }
.step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; padding: 0 1px; }
.step::before { content: ""; position: absolute; top: 11px; right: 50%; left: -50%; height: 2px; background: var(--border-strong); z-index: 0; }
.step:first-child::before { display: none; }
.step.done::before, .step.cur::before { background: var(--accent); }
.step-dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-strong); background: var(--bg); color: var(--on-accent); }
.step.done .step-dot { background: var(--accent); border-color: var(--accent); }
.step.cur .step-dot { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.step.cur .step-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.step-l { margin-top: 8px; font-size: 10.5px; line-height: 1.25; color: var(--faint); hyphens: auto; }
.step.done .step-l { color: var(--muted); }
.step.cur .step-l { color: var(--text); font-weight: 600; }
@media (min-width: 600px) { .step-l { font-size: 12.5px; } }
.map-card { border-radius: 24px; padding: 18px; min-width: 0; }
.kv > div { padding: 10px 0; border-top: 1px solid var(--border); }
.kv dt { font-size: 12.5px; color: var(--faint); }
.kv dd { font-size: 14.5px; margin-top: 2px; overflow-wrap: anywhere; }
.kv .pre { white-space: pre-line; }

/* карта. Leaflet: у .mk не должно быть position: relative */
.map-box { position: relative; z-index: 0; isolation: isolate; flex-shrink: 0; height: 300px; margin-top: 12px; border-radius: 18px; overflow: hidden; border: 1px solid var(--card-border); background: var(--map-land); }
@media (min-width: 760px) { .map-box { height: 380px; } }
.leaflet-container { font-family: var(--font); background: var(--map-land); }
.leaflet-control-attribution { background: var(--pill-bg) !important; color: var(--faint) !important; font-size: 10px; border-radius: 8px 0 0 0; backdrop-filter: blur(8px); }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-tooltip { background: var(--solid-bg); color: var(--text); border: 1px solid var(--card-border); border-radius: 10px; box-shadow: var(--shadow); font-size: 12px; padding: 5px 9px; backdrop-filter: blur(16px); }
.leaflet-tooltip-top::before { border-top-color: var(--card-border); }
.leaflet-bar { border: 1px solid var(--card-border) !important; border-radius: 12px !important; overflow: hidden; box-shadow: var(--shadow) !important; }
.leaflet-bar a { background: var(--solid-bg); color: var(--text); border-color: var(--border); }
.leaflet-bar a:hover { background: var(--accent-soft); color: var(--text); }
.mk { cursor: default; }
.mk-dot { position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg); }
.mk-pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: mkp 1.8s ease-out infinite; }
@keyframes mkp { from { transform: scale(.6); opacity: .5; } to { transform: scale(2.4); opacity: 0; } }
.map-box .leaflet-tile-pane { filter: grayscale(1) sepia(.12) brightness(1.03) contrast(.88); }
:root[data-theme="dark"] .map-box .leaflet-tile-pane { filter: invert(1) grayscale(1) brightness(.78) contrast(.88); }

/* посылки клиента */
.parcels { margin-top: 28px; }
.orow-img, .parcel-img { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: var(--border, rgba(44,44,44,.08)); }
.orow-img img, .parcel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.parcels .orow-t { font-size: 14.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.parcel-top { align-items: flex-start; gap: 14px; }
.parcel-img { width: 64px; height: 64px; border-radius: 16px; }
.parcel-t { font-size: 18px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Telegram в профиле */
.tg-box { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 4px; border-top: 1px solid var(--border, rgba(44,44,44,.08)); }
.tg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tg-name { font-weight: 600; color: var(--accent); }
.auth-resend .link-btn + span + .link-btn { margin-left: 0; }
.or { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--faint, #8E8980); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border, rgba(44,44,44,.1)); }
.alt-auth { display: flex; flex-direction: column; gap: 8px; }
.tg-btn { gap: 8px; }
.cred-form { display: flex; flex-direction: column; gap: 8px; }
.mail-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; margin: 0 0 18px; color: var(--text); font-size: 14px; flex-wrap: wrap; }
.mail-banner > svg { color: var(--accent); flex-shrink: 0; }
.mail-banner > span { flex: 1; min-width: 200px; }
