/* Мастерская — мини-приложение покупателя. Свои токены (не зависят от кабинета), тема — в app.js (applyTheme).
   Анимации — только transform и opacity. Характер движения: html.m-calm / m-lively / m-none. */

@font-face { font-family: 'Onest'; src: url('/shared/fonts/onest-cyrillic-wght-normal.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; src: url('/shared/fonts/onest-latin-wght-normal.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20B8, U+20BD, U+2122, U+2190-2199, U+2212, U+2215; }

:root {
  --accent: #0FA3A3; --on-accent: #fff; --accent-ink: #0b7c7c; --accent-soft: #e2f4f4; --accent-soft-2: #c6eaea;
  --bg: #f4f5f7; --surface: #ffffff; --surface-2: #eff1f4; --surface-3: #e4e7ec;
  --line: rgba(17, 20, 24, .08); --line-strong: rgba(17, 20, 24, .16);
  --ink: #121417; --ink-2: #353a42; --muted: #6a717c; --faint: #a1a7b0;
  --danger: #d4343b; --danger-soft: #fdebec; --ok: #1f9d63; --ok-soft: #e2f5ec; --warn: #c27803; --warn-soft: #fdf3dc; --info: #2b6fe0; --info-soft: #e5eefc;
  --sh-1: 0 1px 2px rgba(17, 20, 24, .05), 0 1px 3px rgba(17, 20, 24, .04);
  --sh-2: 0 6px 20px rgba(17, 20, 24, .08), 0 2px 6px rgba(17, 20, 24, .05);
  --sh-3: 0 -10px 40px rgba(17, 20, 24, .16);
  --r: 14px; --r-s: 10px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --dur: .42s; --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.2, .8, .2, 1); --dy: 16px;
  --top-h: 56px; --tabs-h: 62px; --safe-b: env(safe-area-inset-bottom, 0px);
  --col: 680px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1013; --surface: #1a1c21; --surface-2: #23262d; --surface-3: #2d3139;
  --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .16);
  --ink: #f1f2f4; --ink-2: #d0d3d9; --muted: #9aa1ac; --faint: #646b76;
  --danger: #ff6b70; --danger-soft: #3a1c1e; --ok: #4fcf91; --ok-soft: #15301f; --warn: #f2b13c; --warn-soft: #33270f; --info: #7aa7ff; --info-soft: #182742;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .4); --sh-2: 0 8px 24px rgba(0, 0, 0, .35); --sh-3: 0 -10px 40px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
html.m-lively { --dur: .64s; --spring: cubic-bezier(.34, 1.56, .64, 1); --ease: cubic-bezier(.22, 1, .36, 1); --dy: 30px; }
html.m-none { --dur: 0s; --dy: 0px; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden; min-height: 100vh; }
html.locked body { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
s { color: var(--faint); font-weight: 500; font-size: .86em; }
.ic { display: inline-flex; flex: none; line-height: 0; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.ta-c { text-align: center; }
.pad { padding: 10px 16px; }
.pad-x { padding-left: 16px; padding-right: 16px; }
.sect { padding: 10px 0; }
.sect-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sect-head .more { color: var(--muted); font-size: 13px; }
.h2 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin: 6px 0 12px; line-height: 1.2; }
.h3 { font-size: 17px; font-weight: 650; margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.para { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin-bottom: 10px; }
.text-blk .para:last-child { margin-bottom: 0; }
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1); }
.empty { color: var(--muted); text-align: center; padding: 22px 12px; font-size: 14px; }
.empty.soft { display: grid; justify-items: center; gap: 8px; padding: 26px 12px; }
.empty.big { display: grid; justify-items: center; gap: 8px; padding: 48px 16px; }
.empty.big b { color: var(--ink); font-size: 18px; }
.empty-ic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 6px; }
.link { color: var(--accent-ink); font-weight: 600; font-size: 14px; padding: 6px 4px; }
.link.danger { color: var(--danger); display: block; margin: 10px auto 4px; font-weight: 500; }
.alert { display: flex; gap: 8px; align-items: center; background: var(--danger-soft); color: var(--danger); border-radius: var(--r-s); padding: 10px 12px; margin: 10px 0; font-size: 14px; font-weight: 500; }
.alert .link { margin-left: auto; }

/* ---------- кнопки ---------- */
.press { transition: transform .18s var(--spring), opacity .18s, background-color .2s, color .2s, box-shadow .2s; }
.press:active { transform: scale(.955); }
.press-soft { transition: transform .22s var(--spring); }
.press-soft:active { transform: scale(.98); }
html.m-none .press:active, html.m-none .press-soft:active { transform: none; opacity: .75; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: var(--r-s);
  font-weight: 650; font-size: 15px; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-lg { min-height: 52px; font-size: 16px; border-radius: var(--r); padding: 0 22px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; gap: 6px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn-outline { border: 1.5px solid var(--accent); color: var(--accent-ink); background: transparent; }
.btn-ghost { background: var(--surface-2); color: var(--ink-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn.loading { pointer-events: none; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); position: relative; }
.icon-btn:active { background: var(--surface-2); }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- каркас ---------- */
.app { max-width: var(--col); margin: 0 auto; min-height: 100vh; position: relative; }
.page { animation: page-in var(--dur) var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(calc(var(--dy) * .5)); } }
html.m-none .page { animation: none; }
.foot-space { height: 96px; }
.app.has-tabs .foot-space { height: calc(var(--tabs-h) + 96px + var(--safe-b)); }

.top { position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 8px 0 14px; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  transition: background-color .3s, box-shadow .3s; }
.top.scrolled { box-shadow: 0 1px 0 var(--line); }
.top.over { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }
.top.over .icon-btn { color: #fff; background: rgba(0, 0, 0, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); margin-left: 6px; width: 40px; height: 40px; }
.top.over .top-name { text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.starts-hero .page { margin-top: calc(var(--top-h) * -1); }
.top-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { width: 34px; height: 34px; flex: none; border-radius: 11px; overflow: hidden; display: grid; place-items: center; background: var(--accent); color: var(--on-accent);
  font-weight: 750; font-size: 13px; box-shadow: var(--sh-1); }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.top-name { font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-act { display: flex; align-items: center; }
.cart-badge { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--on-accent);
  font-size: 11px; font-weight: 750; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }

/* вкладки */
.tabs { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: var(--col); display: grid; grid-template-columns: repeat(var(--n), 1fr);
  height: calc(var(--tabs-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 -1px 0 var(--line); }
.tab { display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--muted); font-size: 11.5px; font-weight: 600; position: relative; z-index: 1; }
.tab.on { color: var(--accent-ink); }
.tab .ic { transition: transform .35s var(--spring); }
.tab.on .ic { transform: translateY(-1px) scale(1.06); }
.tab span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.tab-ind { position: absolute; left: 0; top: 7px; width: calc(100% / var(--n)); height: 32px; transform: translateX(calc(var(--i) * 100%)); transition: transform .45s var(--spring); }
.tab-ind::before { content: ''; position: absolute; left: 50%; width: 58px; margin-left: -29px; height: 100%; border-radius: 16px; background: var(--accent-soft); }

/* плавающая главная кнопка (вне Telegram) */
.float-main { position: fixed; z-index: 25; left: 0; right: 0; margin: 0 auto; max-width: var(--col); bottom: calc(12px + var(--safe-b)); padding: 0 14px; display: flex; gap: 10px;
  align-items: center; pointer-events: none; animation: rise-in .45s var(--spring) both; }
.float-main > * { pointer-events: auto; }
.float-main:empty { display: none; }
.app.has-tabs .float-main { bottom: calc(var(--tabs-h) + 10px + var(--safe-b)); }
.float-main .main-wrap { flex: 1; }
.float-main .main-btn { box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent), 0 2px 6px rgba(0, 0, 0, .12); }
.float-count { display: none; }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.main-btn { justify-content: center; }
.main-btn .main-sum { margin-left: auto; padding-left: 12px; opacity: .95; font-variant-numeric: tabular-nums; }
.main-btn span:first-of-type:not(.main-sum) { flex: none; }
.main-hint { font-size: 13px; color: var(--warn); background: var(--warn-soft); padding: 8px 12px; border-radius: var(--r-s); margin-bottom: 8px; text-align: center; font-weight: 500; }

/* ---------- появление блоков ---------- */
.blk { position: relative; }
.blk:not(.in) { opacity: 0; }
.blk.a-up:not(.in) { transform: translate3d(0, var(--dy), 0); }
.blk.a-zoom:not(.in) { transform: scale(.94); }
.blk.a-slide:not(.in) { transform: translate3d(calc(var(--dy) * 1.6), 0, 0); }
.blk.a-none { opacity: 1; transform: none; }
.blk.in { transition: opacity var(--dur) ease-out, transform var(--dur) var(--ease); }
.blk.in.no-anim { transition: none; }
html.m-none .blk { opacity: 1 !important; transform: none !important; }
/* «лесенка» карточек внутри показанного блока */
.blk.in:not(.no-anim) :is(.pc, .pc-row, .svc, .staff-c, .gal-cell, .slot) { animation: rise var(--dur) var(--ease) both; animation-delay: calc(min(var(--i, 0), 10) * 45ms); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, calc(var(--dy) * .7), 0); } }
html.m-none * { animation: none !important; }

/* просмотр в конструкторе: выбор блока */
.blk.pv { cursor: pointer; }
.blk.pv::after { content: ''; position: absolute; inset: 3px; border-radius: 12px; pointer-events: none; border: 2px dashed transparent; transition: border-color .2s, opacity .2s; z-index: 5; }
@media (hover: hover) { .blk.pv:hover::after { border-color: color-mix(in srgb, var(--accent) 45%, transparent); } }
.blk.pv.sel::after { border: 2px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.pv-note { font-size: 13px; color: var(--info); background: var(--info-soft); padding: 10px 12px; border-radius: var(--r-s); margin: 4px 0; }

/* ---------- обложка ---------- */
.hero { position: relative; min-height: 330px; display: flex; align-items: flex-end; overflow: hidden; border-radius: 0 0 calc(var(--r) + 12px) calc(var(--r) + 12px); color: #fff; isolation: isolate; }
html.m-lively .hero { min-height: 360px; }
.hero-bg { position: absolute; inset: -2px; background-size: cover; background-position: center; z-index: -2; will-change: transform; }
.hero-ov { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .3) 40%, rgba(0, 0, 0, .88) 100%); }
.hero-plain { min-height: 230px; background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #000)); color: var(--on-accent); margin: 0 12px; border-radius: calc(var(--r) + 8px); }
.hero-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, .35), transparent 45%), radial-gradient(circle at 0% 100%, rgba(255, 255, 255, .18), transparent 50%); }
.hero-in { padding: 88px 20px 26px; width: 100%; }
.hero-plain .hero-in { padding: 28px 20px 22px; }
.hero.al-center .hero-in { text-align: center; display: grid; justify-items: center; }
.hero-t { font-size: 31px; line-height: 1.1; font-weight: 780; letter-spacing: -.025em; text-wrap: balance; }
.hero-s { margin-top: 10px; font-size: 16px; opacity: .92; line-height: 1.45; max-width: 520px; text-wrap: balance; }
.hero-btn { margin-top: 18px; }
.hero:not(.hero-plain) .hero-btn { background: #fff; color: #111; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.hero-plain .hero-btn { background: var(--on-accent); color: var(--accent-ink); box-shadow: none; }
.blk.in:not(.no-anim) .hero-in > * { animation: rise calc(var(--dur) + .2s) var(--ease) both; }
.blk.in:not(.no-anim) .hero-in > :nth-child(2) { animation-delay: .08s; }
.blk.in:not(.no-anim) .hero-in > :nth-child(3) { animation-delay: .16s; }

/* ---------- картинка и галерея ---------- */
.fig { margin: 0; }
.fig-img { border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.fig-img img { width: 100%; }
.cap { color: var(--muted); font-size: 13.5px; margin-top: 8px; text-align: center; }
.img-empty { height: 160px; border-radius: var(--r); background: var(--surface-2); display: grid; place-items: center; color: var(--faint); }
.gal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gal-grid.three { grid-template-columns: repeat(3, 1fr); }
.gal-grid.one { grid-template-columns: 1fr; }
.gal-cell { aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; background: var(--surface-2); }
.gal-grid:not(.three):not(.one) .gal-cell:first-child:nth-last-child(odd) { grid-column: span 2; aspect-ratio: 2; }
.gal-cell img, .gal-slide img { width: 100%; height: 100%; object-fit: cover; }
.hscroll { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.hscroll::-webkit-scrollbar { display: none; }
.snap { scroll-snap-type: x mandatory; scroll-padding: 0 16px; }
.snap > * { scroll-snap-align: start; flex: none; }
.gal-car { gap: 10px; padding: 0 16px; }
.gal-slide { width: 82%; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-strong); transition: transform .3s var(--spring), background-color .3s; }
.dots i.on { background: var(--accent); transform: scaleX(2.2); }
.dots.on-img { position: absolute; bottom: 14px; left: 0; right: 0; margin: 0; }
.dots.on-img i { background: rgba(255, 255, 255, .55); }
.dots.on-img i.on { background: #fff; }

/* ---------- кнопки-блок ---------- */
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-grid.one { grid-template-columns: 1fr; }
.btn-grid.odd > :first-child { grid-column: span 2; }
.btn-grid .btn { min-height: 52px; border-radius: var(--r); }
.list-card { overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; width: 100%; font-weight: 600; }
.row + .row { box-shadow: inset 0 1px 0 var(--line); }
.row-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.row-t { flex: 1; }
.divider { display: flex; align-items: center; padding: 0 16px; }
.divider hr { flex: 1; border: 0; height: 1px; background: var(--line-strong); margin: 0; }

/* ---------- товары ---------- */
.chips { gap: 8px; padding-top: 2px; padding-bottom: 12px; }
.chip { flex: none; height: 38px; padding: 0 15px; border-radius: 19px; background: var(--surface); box-shadow: var(--sh-1); display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.chip.on { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 80%, transparent); }
.pc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .pc-grid { grid-template-columns: repeat(3, 1fr); } }
.pc { background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); display: flex; flex-direction: column; cursor: pointer; }
.pc-img { position: relative; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pc:active .pc-img img { transform: scale(1.04); }
.pc-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; gap: 2px; }
.pc-t { font-weight: 620; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.unit { color: var(--muted); font-size: 12.5px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; min-height: 44px; }
.price { font-weight: 720; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc .price s { display: block; line-height: 1.1; }
.pc .pc-foot { align-items: flex-end; }
.pc.out, .pc-row.out { opacity: .6; }
.sold { font-size: 12px; color: var(--muted); font-weight: 600; }
.badge { position: absolute; top: 8px; left: 8px; background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px; letter-spacing: .01em; }
.badge.sale { background: #ff4d5e; color: #fff; }
.badge.big { top: 14px; left: 14px; font-size: 13px; padding: 5px 10px; }
.badge.inline { position: static; display: inline-block; vertical-align: 2px; font-size: 10.5px; padding: 2px 6px; }
.add-btn { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center;
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--accent) 90%, transparent); }
.add-btn.has { background: var(--accent-soft-2); color: var(--accent-ink); }
.add-btn b { font-size: 15px; }
.pc-car { gap: 12px; padding: 0 16px 6px; }
.pc-car .pc { width: 44%; min-width: 150px; max-width: 220px; }
.pc-list { display: grid; gap: 10px; }
.pc-row { display: flex; gap: 12px; background: var(--surface); border-radius: var(--r); padding: 12px; box-shadow: var(--sh-1); cursor: pointer; align-items: stretch; }
.pc-row-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pc-row .pc-d { color: var(--muted); font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-row .pc-foot { min-height: 0; justify-content: flex-start; gap: 8px; align-items: baseline; }
.pc-row-img { position: relative; width: 104px; flex: none; }
.pc-row-img .pc-img { border-radius: calc(var(--r) - 4px); }
.pc-row-add { position: absolute; right: -4px; bottom: -6px; }
.pc-row-add .stepper { box-shadow: var(--sh-2); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: hsl(var(--h) 45% 42%);
  background: radial-gradient(circle at 30% 25%, hsl(var(--h) 85% 95%), hsl(calc(var(--h) + 30) 70% 86%)); }
:root[data-theme="dark"] .ph { color: hsl(var(--h) 55% 72%); background: radial-gradient(circle at 30% 25%, hsl(var(--h) 30% 26%), hsl(calc(var(--h) + 30) 30% 18%)); }

/* счётчик */
.stepper { display: inline-flex; align-items: center; background: var(--accent-soft); color: var(--accent-ink); border-radius: 22px; height: 44px; flex: none; }
.stepper button { width: 42px; height: 44px; display: grid; place-items: center; border-radius: 22px; }
.st-v { min-width: 22px; text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; overflow: hidden; }
.st-v span { display: inline-block; }
.stepper.st-s { height: 36px; border-radius: 18px; background: var(--accent); color: var(--on-accent); }
.stepper.st-s button { width: 34px; height: 36px; }
.stepper.st-s .st-v { min-width: 16px; font-size: 14px; }

/* меню */
.menu-nav.sticky { position: sticky; top: var(--top-h); z-index: 15; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  margin: 0 0 4px; padding-top: 8px; }
.menu-sec { scroll-margin-top: 120px; }
.menu-sec .h3 { margin-top: 20px; }

/* ---------- шторки и экраны ---------- */
.layer { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.backdrop { position: absolute; inset: 0; background: rgba(8, 10, 14, .46); animation: fade-in .28s ease-out both; }
.backdrop.dark { background: rgba(0, 0, 0, .94); }
.panel { position: relative; width: 100%; max-width: var(--col); background: var(--bg); display: flex; flex-direction: column; will-change: transform; }
.sheet .panel { max-height: 92vh; max-height: 92dvh; border-radius: 26px 26px 0 0; box-shadow: var(--sh-3); animation: sheet-in .42s var(--ease) both; transition: transform .3s var(--ease); }
html.m-lively .sheet .panel { animation: sheet-in .55s cubic-bezier(.22, 1.25, .36, 1) both; }
.screen .panel { height: 100%; animation: screen-in .38s var(--ease) both; }
.layer.closing .backdrop { animation: fade-out .26s ease-in both; }
.sheet.closing .panel { animation: sheet-out .26s cubic-bezier(.4, 0, 1, 1) both; }
.screen.closing .panel { animation: screen-out .26s cubic-bezier(.4, 0, 1, 1) both; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes sheet-in { from { transform: translate3d(0, 100%, 0); } }
@keyframes sheet-out { to { transform: translate3d(0, 100%, 0); } }
@keyframes screen-in { from { transform: translate3d(36%, 0, 0); opacity: 0; } }
@keyframes screen-out { to { transform: translate3d(30%, 0, 0); opacity: 0; } }
.sheet-grab { position: absolute; top: 0; left: 0; right: 0; height: 22px; display: grid; place-items: center; z-index: 4; touch-action: none; cursor: grab; }
.sheet-grab i { width: 38px; height: 5px; border-radius: 3px; background: var(--line-strong); }
.hero-x { position: absolute; top: 14px; right: 14px; z-index: 6; width: 38px; height: 38px; color: #fff; background: rgba(0, 0, 0, .34); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet-head { display: flex; align-items: center; gap: 6px; padding: 18px 8px 6px 18px; min-height: 62px; touch-action: none; flex: none; }
.screen .sheet-head { padding: 8px 12px 8px 6px; min-height: 56px; }
.in-tg .screen .sheet-head { padding-left: 18px; }
.sheet-title { flex: 1; font-weight: 720; font-size: 19px; letter-spacing: -.01em; min-width: 0; }
.sheet-x { background: var(--surface-2); width: 36px; height: 36px; }
.sheet-body { position: relative; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 18px; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet-body.nopad { padding: 0; }
.sheet-foot { padding: 10px 16px calc(12px + var(--safe-b)); background: var(--bg); box-shadow: 0 -1px 0 var(--line); flex: none; }
.sheet-foot:empty { display: none; }
.in-tg .sheet-foot:has(.item-foot) { box-shadow: none; }

/* карточка товара */
.item-hero { position: relative; margin: -4px -16px 4px; }
.sheet .panel { overflow: hidden; }
.item-ph { width: 100%; aspect-ratio: 1 / .82; background: var(--surface-2); }
.item-ph img { width: 100%; height: 100%; object-fit: cover; }
.item-info { padding: 12px 0 6px; }
.item-t { font-size: 23px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.item-pr { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 10px; }
.item-pr .price { font-size: 20px; }
.item-foot { display: flex; gap: 10px; align-items: center; }
.opt { margin-top: 14px; border-radius: var(--r); transition: box-shadow .3s; }
.opt-err { box-shadow: 0 0 0 2px var(--danger); animation: shake .4s; padding: 0 6px 6px; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.opt-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding-top: 4px; font-size: 16px; }
.opt-tag { font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 3px 8px; border-radius: 8px; font-weight: 600; }
.opt-tag.req { color: var(--accent-ink); background: var(--accent-soft); }
.opt-list { background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); }
.opt-c { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; font-weight: 520; }
.opt-c + .opt-c { box-shadow: inset 0 1px 0 var(--line); }
.rdo, .cbx { width: 22px; height: 22px; flex: none; border: 2px solid var(--line-strong); display: grid; place-items: center; color: var(--on-accent); transition: background-color .2s, border-color .2s; }
.rdo { border-radius: 50%; }
.cbx { border-radius: 7px; }
.rdo.on, .cbx.on { background: var(--accent); border-color: var(--accent); }
.rdo.on .ic, .cbx.on .ic { animation: pop .3s var(--spring); }
@keyframes pop { from { transform: scale(0); } }

/* корзина */
.cart-list { display: grid; gap: 10px; }
.cl { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--r); padding: 10px; box-shadow: var(--sh-1); animation: rise .35s var(--ease) both; }
.cl-img { width: 62px; height: 62px; border-radius: var(--r-s); overflow: hidden; flex: none; background: var(--surface-2); }
.cl-img img { width: 100%; height: 100%; object-fit: cover; }
.cl-t { font-weight: 620; font-size: 14.5px; line-height: 1.3; }
.cl-ch { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.cl-p { font-weight: 720; margin-top: 4px; font-variant-numeric: tabular-nums; }
.free-bar { margin-top: 14px; background: var(--surface); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--sh-1); }
.free-t { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.free-t b { color: var(--accent-ink); }
.free-line { height: 6px; border-radius: 3px; background: var(--surface-2); margin-top: 10px; overflow: hidden; }
.free-line i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transform-origin: left; transition: transform .6s var(--spring); }
.totals { padding: 16px 4px 2px; display: grid; gap: 4px; }
.totals > div { display: flex; justify-content: space-between; font-size: 18px; }
.totals b { font-weight: 760; }

/* оформление */
.ck-sec { margin-top: 14px; }
.ck-h { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 4px 10px; }
.seg { display: flex; gap: 8px; margin-bottom: 4px; }
.seg-b { flex: 1; display: grid; justify-items: center; gap: 3px; padding: 12px 6px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1.5px transparent;
  font-weight: 620; font-size: 14px; color: var(--ink-2); }
.seg-b small { font-size: 12px; color: var(--muted); font-weight: 500; }
.seg-b.on { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.ck-sum { padding: 6px 14px; }
.ck-l { display: flex; gap: 8px; align-items: baseline; padding: 8px 0; font-size: 14.5px; }
.ck-l b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ck-l.sep { box-shadow: inset 0 1px 0 var(--line); margin-top: 4px; padding-top: 12px; }
.ck-l.total { font-size: 17px; box-shadow: inset 0 1px 0 var(--line); padding-top: 12px; }
.ck-l.total .ic { vertical-align: -3px; }
.pick-addr { display: flex; gap: 10px; background: var(--surface); padding: 12px 14px; border-radius: var(--r); margin-bottom: 12px; box-shadow: var(--sh-1); color: var(--accent-ink); }
.pick-addr b { color: var(--ink); display: block; font-weight: 600; }
.pick-addr small { color: var(--muted); }

/* поля */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.f-label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding-left: 2px; }
.req { color: var(--danger); margin-left: 3px; }
.inp { width: 100%; min-height: 50px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); padding: 12px 14px;
  font: inherit; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; resize: none; -webkit-appearance: none; appearance: none; }
textarea.inp { min-height: 0; line-height: 1.45; }
.inp::placeholder { color: var(--faint); }
.inp:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.has-err .inp { border-color: var(--danger); }
.f-err { display: flex; align-items: center; gap: 5px; color: var(--danger); font-size: 13px; font-weight: 500; animation: shake .35s; }
.f-hint { color: var(--muted); font-size: 12.5px; padding-left: 2px; }
.sel-wrap { position: relative; }
.sel-wrap .ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-b { padding: 10px 15px; border-radius: 22px; background: var(--surface-2); font-weight: 560; font-size: 14.5px; box-shadow: inset 0 0 0 1.5px transparent; }
.pill-b.on { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
.checks { display: grid; gap: 4px; }
.chk { display: flex; gap: 10px; align-items: center; padding: 8px 2px; font-size: 15px; text-align: left; }
.stars-in { display: flex; gap: 4px; color: var(--line-strong); }
.stars-in button { padding: 2px; }
.stars-in button.on { color: #ffb400; }
.stars-in button.on svg { fill: currentColor; }
.stars-in button.on .ic { animation: pop .35s var(--spring); }

/* анкета */
.form-card { padding: 18px 16px 16px; }
.form-card .h2 { margin-top: 0; }
.form-card > .para { margin-bottom: 16px; }
.form-card.done { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 26px 16px; }

/* ---------- запись ---------- */
.svc-group + .svc-group { margin-top: 4px; }
.svc { display: flex; align-items: center; gap: 12px; padding: 14px; width: 100%; }
.svc + .svc { box-shadow: inset 0 1px 0 var(--line); }
.svc.sel { background: var(--accent-soft); }
.svc-t { font-weight: 640; font-size: 15.5px; }
.svc-d { color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.4; }
.svc-m { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.svc-m .price { font-size: 15px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); background: var(--surface-2); padding: 3px 8px; border-radius: 8px; font-weight: 550; }
.svc-go { font-size: 13px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 8px 12px; border-radius: 18px; flex: none; }
.svc-staff { display: flex; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.svc-staff .ava { margin-right: -6px; box-shadow: 0 0 0 2px var(--surface); }
.svc-staff span:last-child { margin-left: 12px; }
.ava { border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; background: var(--accent-soft-2); color: var(--accent-ink); font-weight: 700; flex: none; }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava.sm { width: 40px; height: 40px; font-size: 14px; }
.ava.any { width: 48px; height: 48px; background: var(--accent); color: var(--on-accent); }
.staff-car { gap: 12px; padding: 0 16px 6px; }
.staff-c { width: 148px; background: var(--surface); border-radius: var(--r); padding: 14px 12px; box-shadow: var(--sh-1); display: grid; justify-items: center; text-align: center; gap: 2px; }
.staff-ph { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; margin-bottom: 8px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent-soft-2); }
.staff-ph img { width: 100%; height: 100%; object-fit: cover; }
.staff-n { font-weight: 680; font-size: 15px; }
.staff-r { color: var(--muted); font-size: 12.5px; line-height: 1.3; min-height: 32px; }
.staff-go { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-ink); font-size: 13px; font-weight: 650; margin-top: 6px; }
.bk-title { display: grid; gap: 8px; }
.steps { display: flex; gap: 5px; }
.steps i { height: 4px; flex: 0 0 22px; border-radius: 2px; background: var(--line-strong); transition: background-color .3s; transform-origin: left; }
.steps i.on { background: var(--accent); }
.steps i.cur { animation: grow-x .4s var(--ease); }
@keyframes grow-x { from { transform: scaleX(.2); } }
.bk-svc { display: flex; align-items: center; gap: 8px; background: var(--surface); padding: 10px 12px; border-radius: var(--r-s); margin-bottom: 12px; font-size: 14px; box-shadow: var(--sh-1); color: var(--accent-ink); }
.bk-svc span, .bk-svc b { color: var(--ink); }
.bk-svc .link { padding: 0 2px; }
.step-anim { animation: step-in .35s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translate3d(24px, 0, 0); } }
.staff-pick { display: grid; gap: 10px; }
.sp { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); width: 100%; }
.sp b { display: block; font-weight: 650; }
.sp small { color: var(--muted); font-size: 13px; }
.sp.on { box-shadow: inset 0 0 0 2px var(--accent); }
.days { gap: 8px; padding: 2px 0 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.day { flex: none; width: 58px; height: 78px; border-radius: 18px; background: var(--surface); box-shadow: var(--sh-1); display: grid; place-items: center; align-content: center; gap: 0; }
.day b { font-size: 21px; font-weight: 720; line-height: 1.2; }
.day small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.day.on { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--accent) 90%, transparent); }
.day.on small { color: inherit; opacity: .85; }
.day.off { opacity: .4; box-shadow: none; background: var(--surface-2); }
.day.off b { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.day.sk { box-shadow: none; }
.day-cap { margin: 10px 2px 10px; font-size: 14px; font-weight: 550; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.slot { height: 46px; border-radius: 12px; background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1.5px var(--line); font-weight: 640; font-variant-numeric: tabular-nums; text-align: center; }
.slot.on { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--accent) 90%, transparent); }
.slot.sk { box-shadow: none; }
.step-anim .slot { animation: rise .3s var(--ease) both; animation-delay: calc(min(var(--i, 0), 16) * 18ms); }
.sum-card { padding: 4px 14px; margin-bottom: 16px; width: 100%; }
.sum-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--accent-ink); font-size: 14.5px; }
.sum-row + .sum-row { box-shadow: inset 0 1px 0 var(--line); }
.sum-row .grow { color: var(--ink); }
.sum-row small { display: block; color: var(--muted); font-size: 12.5px; }
.sum-row > b { color: var(--ink); }

/* готово */
.done { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 18px 0 6px; }
.done h2 { font-size: 26px; font-weight: 780; letter-spacing: -.02em; }
.done h3 { font-size: 19px; font-weight: 720; }
.done .sum-card.left { text-align: left; margin: 8px 0 4px; }
.done-n { font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 6px 14px; border-radius: 16px; font-variant-numeric: tabular-nums; animation: rise .5s .35s var(--ease) both; }
.done-ic { width: 86px; height: 86px; }
.done.small .done-ic, .form-card .done-ic { width: 64px; height: 64px; }
.done-ic svg { width: 100%; height: 100%; }
.done-ic circle { fill: var(--accent); transform-origin: center; animation: pop-c .5s var(--spring) both; }
.done-ic path { fill: none; stroke: var(--on-accent); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .28s ease-out forwards; }
html.m-none .done-ic path { stroke-dashoffset: 0; }
@keyframes pop-c { from { transform: scale(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* мои */
.my-list { display: grid; gap: 10px; margin-top: 14px; }
.rq { padding: 14px; animation: rise .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.req-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.req-b { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.req-b > div:not(.ck-l) { display: flex; gap: 8px; align-items: center; }
.req-b .ck-l { padding: 2px 0; }
.req-b .ck-l.total { padding-top: 8px; margin-top: 4px; font-size: 15px; }
.rq .btn { margin-top: 12px; width: 100%; }
.st { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 8px; }
.st-new { background: var(--info-soft); color: var(--info); }
.st-work { background: var(--warn-soft); color: var(--warn); }
.st-done { background: var(--ok-soft); color: var(--ok); }
.st-cancel { background: var(--surface-2); color: var(--muted); }
.my-stamps { display: flex; gap: 12px; align-items: center; padding: 14px; margin-top: 14px; color: var(--accent-ink); }
.my-stamps b { color: var(--ink); display: block; }
.my-stamps small { color: var(--muted); }
.sk-req { height: 120px; border-radius: var(--r); }

/* ---------- акция ---------- */
.promo { position: relative; border-radius: calc(var(--r) + 6px); overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 45%, #fff 20%) 0, transparent 46%),
    linear-gradient(150deg, color-mix(in srgb, var(--accent) 88%, #000), color-mix(in srgb, var(--accent) 50%, #0a0a1a));
  box-shadow: 0 18px 40px -20px color-mix(in srgb, var(--accent) 80%, #000); }
.promo::before, .promo::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); z-index: -1; }
.promo::before { width: 220px; height: 220px; right: -70px; top: -90px; }
.promo::after { width: 140px; height: 140px; left: -50px; bottom: -60px; }
.promo.over { filter: grayscale(.8); opacity: .8; }
.promo-img { aspect-ratio: 2.2; overflow: hidden; }
.promo-img img { width: 100%; height: 100%; object-fit: cover; }
.promo-in { padding: 18px 18px 18px; display: grid; gap: 10px; }
.promo-tag { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, .18); padding: 5px 10px; border-radius: 12px; letter-spacing: .02em; }
.promo-t { font-size: 24px; line-height: 1.15; font-weight: 780; letter-spacing: -.02em; }
.promo-x { opacity: .9; font-size: 15px; line-height: 1.45; }
.cd { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cd-l { font-size: 13px; opacity: .85; font-weight: 600; }
.cd-row { display: flex; gap: 6px; }
.cd-t { width: 56px; height: 60px; border-radius: 12px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; align-content: center; overflow: hidden; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cd-t b { font-size: 22px; font-weight: 760; font-variant-numeric: tabular-nums; line-height: 1.1; display: block; }
.cd-t small { font-size: 10.5px; opacity: .8; font-weight: 600; }
.code { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 2px dashed rgba(255, 255, 255, .55); border-radius: var(--r-s); padding: 10px 12px 10px 16px; background: rgba(0, 0, 0, .12); }
.code-v { font-family: ui-monospace, Consolas, monospace; font-size: 19px; font-weight: 700; letter-spacing: .12em; }
.code-a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; background: #fff; color: #111; padding: 7px 11px; border-radius: 10px; }
.code.ok .code-a { background: #2fd17c; color: #062; }
.btn-on-promo { background: #fff; color: #111; min-height: 50px; border-radius: var(--r); }

/* ---------- лояльность ---------- */
.loyal { border-radius: calc(var(--r) + 6px); padding: 18px; color: #fff; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #fff 0%), color-mix(in srgb, var(--accent) 55%, #101030));
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--accent) 80%, #000); }
.loyal::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .045) 0 12px, transparent 12px 24px); }
.loyal-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.loyal-k { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .8; font-weight: 700; }
.loyal-r { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 720; margin-top: 4px; line-height: 1.25; }
.loyal-c { font-size: 15px; font-weight: 600; opacity: .9; white-space: nowrap; }
.loyal-c b { font-size: 28px; font-weight: 780; font-variant-numeric: tabular-nums; }
.stamps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 16px 0 12px; }
.stamps.many { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 360px) { .stamps { gap: 6px; } }
.stamp { width: 100%; max-width: 62px; justify-self: center; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 2px dashed rgba(255, 255, 255, .45); color: rgba(255, 255, 255, .55); }
.stamp.on { background: #fff; color: var(--accent-ink); border: 0; animation: stamp-on .5s var(--spring) both; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4); }
.stamp.gift:not(.on) { border-style: solid; border-color: rgba(255, 255, 255, .8); color: #fff; background: rgba(255, 255, 255, .12); }
@keyframes stamp-on { 0% { transform: scale(1.8) rotate(-25deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
.loyal-rule { font-size: 14px; opacity: .92; }
.loyal-note { display: flex; gap: 6px; align-items: center; font-size: 12.5px; opacity: .8; margin-top: 8px; }

/* ---------- контакты ---------- */
.contacts { overflow: hidden; }
.map { position: relative; height: 176px; background: var(--surface-2); }
/* пока карта грузится (или если OpenStreetMap недоступен) — «бумажная» подложка с булавкой */
.map::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -80%); color: var(--accent); }
.map iframe { position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; pointer-events: none; display: block; }
:root[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95); }
.map-shield { position: absolute; inset: 0; cursor: pointer; }
.ct-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%; text-align: left; }
.ct-row + .ct-row, .map + .ct-row { box-shadow: inset 0 1px 0 var(--line); }
.ct-row b { display: block; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.ct-row small { color: var(--muted); font-size: 12.5px; }
.k-telegram { background: #e3f2fd; color: #2aa3df; }
.k-whatsapp { background: #e4f8ec; color: #1fae55; }
.k-vk { background: #e7effb; color: #2a6fdb; }
.k-instagram { background: #fde9f2; color: #d6337a; }
:root[data-theme="dark"] :is(.k-telegram, .k-whatsapp, .k-vk, .k-instagram) { background: var(--surface-2); }

/* ---------- вопросы ---------- */
.faq { overflow: hidden; }
.faq-i + .faq-i { box-shadow: inset 0 1px 0 var(--line); }
.faq-q { display: flex; gap: 12px; align-items: center; width: 100%; padding: 15px 14px; font-weight: 620; font-size: 15px; text-align: left; }
.faq-pm { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; transition: transform .35s var(--spring), background-color .2s; flex: none; color: var(--muted); }
.faq-i.open .faq-pm { transform: rotate(45deg); background: var(--accent-soft); color: var(--accent-ink); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 14px 15px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .35s var(--ease); }
.faq-i.open .faq-a { grid-template-rows: 1fr; }
.faq-i.open .faq-a p { opacity: 1; transform: none; }

/* ---------- отзывы ---------- */
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #e9a100; }
.rating svg { fill: currentColor; }
.rev-car { gap: 12px; padding: 0 16px 6px; }
.rev { width: 84%; max-width: 400px; padding: 16px; display: grid; gap: 10px; align-content: start; }
.rev-h { display: flex; gap: 10px; align-items: center; }
.rev-h b { font-weight: 650; }
.rev-st { display: flex; gap: 1px; color: var(--line-strong); margin-top: 2px; }
.rev-st .on { color: #ffb400; }
.rev-st .on svg { fill: currentColor; }
.rev p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* ---------- просмотр картинок ---------- */
.viewer-l .panel { height: 100%; background: transparent; animation: fade-in .25s both; max-width: none; }
.viewer-l.closing .panel { animation: fade-out .22s both; }
.viewer { height: 100%; position: relative; }
.viewer-sc { height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer-sc::-webkit-scrollbar { display: none; }
.viewer-sl { flex: none; width: 100%; height: 100%; display: grid; place-items: center; scroll-snap-align: center; padding: 12px; }
.viewer-sl img { max-height: 100%; object-fit: contain; border-radius: 8px; animation: zoom-in .35s var(--ease) both; }
@keyframes zoom-in { from { transform: scale(.9); opacity: 0; } }
.viewer-n { position: absolute; bottom: calc(24px + var(--safe-b)); left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; font-size: 14px; }
.viewer-x { position: absolute; top: 12px; right: 12px; color: #fff; background: rgba(255, 255, 255, .14); }

/* ---------- полёт в корзину, конфетти, сообщение ---------- */
.fly-ghost { position: fixed !important; z-index: 120; pointer-events: none; border-radius: 16px; overflow: hidden; margin: 0; will-change: transform, opacity; box-shadow: var(--sh-2); }
.fly-ghost img { width: 100%; height: 100%; object-fit: cover; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.confetti i { position: absolute; will-change: transform, opacity; }
.toast { position: fixed; z-index: 150; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center;
  background: color-mix(in srgb, var(--ink) 92%, transparent); color: var(--bg); padding: 11px 16px; border-radius: 22px; font-size: 14px; font-weight: 600; box-shadow: var(--sh-2);
  max-width: calc(100% - 32px); animation: toast-in .4s var(--spring) both; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.toast span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -16px) scale(.94); } }

/* ---------- скелетоны и ошибки ---------- */
.sk { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r-s); }
.sk::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-page { max-width: var(--col); margin: 0 auto; }
.sk-hero { height: 300px; border-radius: 0 0 26px 26px; }
.sk-line { height: 14px; margin: 10px 0; }
.w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; }
.sk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sk-card { aspect-ratio: 1; border-radius: var(--r); }
.problem { min-height: 100vh; min-height: 100dvh; display: grid; align-content: center; justify-items: center; text-align: center; gap: 14px; padding: 32px 28px; max-width: 460px; margin: 0 auto; }
.problem h1 { font-size: 23px; font-weight: 760; letter-spacing: -.02em; line-height: 1.2; }
.problem p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.problem .btn { margin-top: 8px; }
.problem-art { width: 132px; height: 132px; border-radius: 40px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 8px; animation: float 4s ease-in-out infinite; }
.problem-art svg { width: 104px; height: 104px; }
.pa-1 { fill: var(--surface); stroke: var(--accent); stroke-width: 3; }
.pa-2 { fill: var(--accent-soft-2); }
.pa-3 { fill: var(--accent); }
.pa-4 { fill: none; stroke: var(--on-accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes float { 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
