/* MEOW PUFF — витрина.
   Фон чёрный, бирюза — только кнопки и подсветка (активные элементы, фокус, значки). */

@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/inter-400.woff) format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/inter-600.woff) format('woff'); }
@font-face { font-family: 'Inter Display'; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/inter-display-700.woff) format('woff'); }
@font-face { font-family: 'Inter Display'; font-weight: 800; font-style: normal; font-display: swap; src: url(/fonts/inter-display-800.woff) format('woff'); }

:root {
  --accent: #2ee6cf;          /* кнопки */
  --accent-ink: #2ee6cf;      /* подсветка текста и линий */
  --on-accent: #031a17;       /* текст на бирюзовой кнопке */
  --accent-soft: rgba(46, 230, 207, .12);
  --danger: #ff5d5d;
  --ok: #5fe38d;
  --warn: #ffbd4a;
  --r: 18px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Inter Display', 'Inter', system-ui, sans-serif;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}
[data-theme='dark'] {
  --bg: #000;
  --s1: #0b0b0d;            /* карточки */
  --s2: #141417;            /* поля, подложки */
  --s3: #1d1d21;
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .16);
  --text: #f4f4f2;
  --mute: #8d8d93;
  --scrim: 0, 0, 0;
  --sheet: #0b0b0d;
  color-scheme: dark;
}
[data-theme='light'] {
  --bg: #f4f4f2;
  --s1: #fff;
  --s2: #ebebe8;
  --s3: #deded9;
  --line: rgba(0, 0, 0, .09);
  --line2: rgba(0, 0, 0, .18);
  --text: #0b0b0c;
  --mute: #6a6a70;
  --accent: #19d6bf;
  --accent-ink: #00806f;
  --on-accent: #02201c;
  --accent-soft: rgba(0, 160, 140, .12);
  --danger: #d7263d;
  --ok: #19994a;
  --warn: #b26b00;
  --scrim: 20, 20, 20;
  --sheet: #f9f9f7;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body {
  font: 400 15px/1.45 var(--font); color: var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow: hidden; overscroll-behavior: none; transition: background-color .35s, color .35s;
}
body.lock { overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mark { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* тема: круговой переход */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* ---------- экраны ---------- */
#app { position: fixed; inset: 0; }
.screen { position: absolute; inset: 0; background: var(--bg); }
.screen-in { animation: scrIn .6s var(--ease) both; }
.screen-out { animation: scrOut .4s ease both; pointer-events: none; }
@keyframes scrIn { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes scrOut { to { opacity: 0; transform: scale(1.02); } }

/* ---------- заставка ---------- */
.splash { display: grid; place-items: center; }
.sp-center { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 0 20px; max-width: 100%; }
.sp-center .mark { width: 76px; height: 76px; color: var(--accent-ink); }
.mark.draw path { stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.1s .1s var(--ease) forwards; }
.mark.draw path + path { stroke-dasharray: 20; stroke-dashoffset: 20; animation-delay: .75s; animation-duration: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sp-name { font: 800 clamp(32px, 11vw, 56px)/1 var(--display); letter-spacing: -.02em; display: flex; flex-wrap: wrap; justify-content: center; text-transform: uppercase; }
.sp-w { display: inline-block; overflow: hidden; padding: .06em 0; }
.sp-l { display: inline-block; white-space: pre; transform: translateY(110%); animation: rise .7s calc(.35s + var(--d) * 55ms) var(--ease) forwards; }
@keyframes rise { to { transform: none; } }
.sp-line { display: block; height: 2px; width: 0; background: var(--accent); border-radius: 2px; animation: grow 1s 1s var(--ease) forwards; }
@keyframes grow { to { width: 84px; } }
.sp-foot { position: absolute; bottom: calc(28px + var(--sab)); left: 0; right: 0; text-align: center; color: var(--mute); font-size: 13px; letter-spacing: .2em; }

/* ---------- 18+ ---------- */
.gate { display: grid; place-items: center; padding: 24px; overflow: auto; }
.gate-in { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.gate-in .mark { color: var(--accent-ink); }
.age18 { display: flex; align-items: flex-start; font: 800 96px/1 var(--display); letter-spacing: -.06em; margin-bottom: 4px; }
.age18 i { font-style: normal; font-size: 44px; line-height: 1.15; color: var(--accent-ink); letter-spacing: 0; margin-left: 2px; }
.age18.off i { color: var(--danger); }
.age18 span { animation: pop .7s var(--ease) both; }
.age18 i { animation: pop .7s .12s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.9); } to { opacity: 1; transform: none; } }
.gate h1 { font: 800 28px/1.1 var(--display); letter-spacing: -.02em; }
.gate p { color: var(--mute); max-width: 32ch; }
.gate-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 12px; }

/* ---------- кнопки ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 14px; background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 15px; letter-spacing: -.005em; transition: transform .18s var(--ease), opacity .2s, background-color .2s; text-decoration: none; user-select: none;
}
.btn:active:not(:disabled) { transform: scale(.975); }
.btn:disabled { opacity: .38; cursor: default; }
.btn.lg { min-height: 54px; border-radius: 16px; font-size: 16px; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.wide { width: 100%; justify-content: space-between; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); justify-content: center; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 50%, transparent); }
.rip { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; transform: scale(0); animation: rip .65s ease-out forwards; pointer-events: none; }
@keyframes rip { to { transform: scale(1); opacity: 0; } }
.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--text); transition: background-color .2s, transform .15s; }
.icon-btn:hover { background: var(--s2); }
.icon-btn:active { transform: scale(.9); }
.icon-btn.sm { width: 34px; height: 34px; background: var(--s2); }

/* ---------- шапка ---------- */
.page { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(10px + var(--sat)) 14px 10px 18px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); transition: box-shadow .25s; }
.top.scrolled { box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; font: 800 19px/1 var(--display); letter-spacing: -.01em; text-transform: uppercase; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand .mark { color: var(--accent-ink); }
.brand.tap .mark { animation: tapn .28s var(--ease); }
@keyframes tapn { 50% { transform: scale(.78) rotate(-8deg); } }
.top-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.badge-n { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: 700 11px/18px var(--font); text-align: center; transform: scale(0); transition: transform .3s var(--ease); }
.badge-n.on { transform: scale(1); }
.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }

.page-in { max-width: 1040px; margin: 0 auto; padding: 4px 14px calc(110px + var(--sab)); }
.welcome { color: var(--mute); padding: 4px 4px 14px; max-width: 48ch; }
.welcome:empty { display: none; }
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--s2); color: var(--mute); transition: box-shadow .2s; }
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent-ink); color: var(--accent-ink); }
.search-in { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
.search-in::placeholder { color: var(--mute); }
.search-in::-webkit-search-cancel-button { display: none; }

.chips-wrap { margin: 12px -14px 4px; }
.chips { position: relative; display: flex; gap: 4px; padding: 4px 14px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; z-index: 1; flex: none; height: 38px; padding: 0 16px; border-radius: 19px; font-weight: 600; font-size: 14px; color: var(--mute); transition: color .25s; white-space: nowrap; }
.chip.on { color: var(--on-accent); }
.ink { position: absolute; z-index: 0; left: 0; top: 4px; height: 38px; width: 0; border-radius: 19px; background: var(--accent); transition: transform .45s var(--ease), width .45s var(--ease); }

.closed { display: flex; align-items: center; gap: 10px; margin: 10px 0; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 14px; }

/* ---------- сетка товаров ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid.swap .card { animation-name: cardIn; }
.card { display: flex; flex-direction: column; background: var(--s1); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; cursor: pointer; opacity: 0; animation: cardIn .6s calc(var(--i, 0) * 45ms) var(--ease) forwards; transition: transform .2s var(--ease), box-shadow .2s; }
.card:active { transform: scale(.98); }
@media (hover: hover) { .card:hover { box-shadow: inset 0 0 0 1px var(--line2); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.card.off { opacity: .6; }
.ph { position: relative; aspect-ratio: 1 / 1; background: var(--s2); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s, transform .6s var(--ease); }
.ph img.ok { opacity: 1; }
@media (hover: hover) { .card:hover .ph img { transform: scale(1.04); } }
.ph.noimg { display: grid; place-items: center; color: var(--mute); }
.ph.noimg .mark { opacity: .5; }
.ph.big { aspect-ratio: 4 / 3; border-radius: 18px; }
.badges { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 16px); }
.bdg { height: 22px; padding: 0 8px; border-radius: 11px; background: rgba(0, 0, 0, .72); color: #fff; font: 600 11px/22px var(--font); letter-spacing: .02em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bdg.sale { background: var(--accent); color: var(--on-accent); }
.soldout { position: absolute; inset: auto 0 0 0; padding: 7px; text-align: center; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; font-weight: 600; }
.cb { display: flex; flex-direction: column; gap: 3px; padding: 11px 12px 12px; flex: 1; }
.cb h3 { font: 600 14.5px/1.25 var(--font); letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { color: var(--mute); font-size: 12.5px; min-height: 1.4em; }
.cp { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; }
.price { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.price b { font: 700 16px/1.15 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.price s { color: var(--mute); font-size: 12px; white-space: nowrap; }
.price.sm b { font-size: 14px; }
.add { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: var(--on-accent); transition: transform .18s var(--ease), opacity .2s; }
.add:active { transform: scale(.88); }
.add:disabled { opacity: .3; }

.empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 56px 20px; color: var(--mute); }
.empty .mark { margin-bottom: 8px; opacity: .5; }
.empty b { color: var(--text); font-size: 16px; }

.foot { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 34px; padding: 18px 4px 0; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; }
.foot > div { display: flex; flex-direction: column; gap: 2px; }
.foot > div b { color: var(--text); font-weight: 600; }
.legal { font-size: 12px; max-width: 56ch; }

/* ---------- панель корзины внизу ---------- */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; padding: 24px 14px calc(12px + var(--sab)); background: linear-gradient(to top, var(--bg) 55%, transparent); transform: translateY(130%); transition: transform .5s var(--ease); pointer-events: none; }
.cartbar.show { transform: none; }
.cartbar .btn { pointer-events: auto; max-width: 560px; margin: 0 auto; display: flex; }
.cb-l { display: flex; align-items: center; gap: 8px; }
.cb-l em { font-style: normal; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--on-accent); color: var(--accent); font-size: 12px; font-weight: 700; }
.cb-sum { font-family: var(--display); font-weight: 700; }

.fly { position: fixed; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); z-index: 200; pointer-events: none; will-change: transform; }

.toast { position: fixed; left: 50%; bottom: calc(92px + var(--sab)); z-index: 300; max-width: min(92vw, 420px); padding: 11px 16px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; text-align: center; transform: translate(-50%, 20px) scale(.96); opacity: 0; pointer-events: none; transition: transform .4s var(--ease), opacity .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.err { background: var(--danger); color: #fff; }

/* ---------- шторки ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.scrim { position: absolute; inset: 0; background: rgba(var(--scrim), calc(.66 * var(--dim, 1))); opacity: 0; transition: opacity .35s; }
.sheet-wrap.in .scrim { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 620px; max-height: 92dvh; display: flex; flex-direction: column; background: var(--sheet); border-radius: 26px 26px 0 0; box-shadow: 0 -1px 0 var(--line2); transform: translateY(104%); transition: transform .55s var(--ease); will-change: transform; }
.sheet-wrap.in .sheet { transform: none; }
.sheet.tall { height: 92dvh; }
.sheet-head { flex: none; padding: 8px 14px 0; touch-action: none; }
.grab { display: block; width: 38px; height: 4px; border-radius: 2px; background: var(--line2); margin: 0 auto 6px; }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.sheet-title { font: 800 21px/1.1 var(--display); letter-spacing: -.015em; padding-left: 6px; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 18px 18px; -webkit-overflow-scrolling: touch; }
.sheet-foot { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 12px 18px calc(14px + var(--sab)); border-top: 1px solid var(--line); }
.sheet-foot:empty { display: none; }

.dialog-wrap { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; }
.dialog { position: relative; width: 100%; max-width: 360px; padding: 22px; border-radius: 22px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line2); transform: scale(.92); opacity: 0; transition: transform .35s var(--ease), opacity .25s; }
.dialog-wrap.in .dialog { transform: none; opacity: 1; }
.dialog-wrap.in .scrim { opacity: 1; }
.dialog h3 { font: 800 20px/1.2 var(--display); margin-bottom: 8px; }
.dialog p { color: var(--mute); margin-bottom: 4px; }
.dialog-btns { display: flex; gap: 10px; margin-top: 18px; }
.dialog-btns .btn { flex: 1; }

/* ---------- карточка товара ---------- */
.p-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 16px 0 4px; }
.p-head h2 { font: 800 24px/1.1 var(--display); letter-spacing: -.02em; }
.p-head .price { align-items: flex-end; flex: none; }
.p-head .price b { font-size: 22px; }
.specs { display: flex; gap: 8px; margin: 14px 0 0; flex-wrap: wrap; }
.specs div { display: flex; flex-direction: column; gap: 1px; padding: 9px 14px; border-radius: 14px; background: var(--s2); min-width: 86px; }
.specs span { color: var(--mute); font-size: 12px; }
.specs b { font-weight: 600; }
.desc { margin-top: 14px; color: var(--mute); white-space: pre-line; }
.flavors { margin-top: 18px; }
.lbl { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0 0 8px 2px; }
.fl-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fl { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 12px; background: var(--s2); font-weight: 600; font-size: 14px; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s, background-color .2s, transform .15s; }
.fl:active { transform: scale(.95); }
.fl.on { box-shadow: inset 0 0 0 1.5px var(--accent-ink); background: var(--accent-soft); color: var(--accent-ink); }
.fl.out { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.fl i { font-style: normal; font-weight: 400; font-size: 11px; color: var(--warn); }
.buy { display: flex; gap: 10px; align-items: stretch; }
.buy .btn { flex: 1; }
.stepper { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 16px; background: var(--s2); }
.stepper b { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.step { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; transition: background-color .2s, transform .15s; }
.step:active { transform: scale(.88); background: var(--s3); }
.stepper.sm { padding: 2px; border-radius: 12px; }
.stepper.sm .step { width: 34px; height: 34px; border-radius: 10px; }

/* ---------- корзина ---------- */
.cart-form { display: flex; flex-direction: column; gap: 22px; }
.line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); transition: opacity .22s, transform .22s var(--ease); }
.line:last-child { border-bottom: 0; }
.line.gone { opacity: 0; transform: translateX(30px); }
.thumb { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--s2); overflow: hidden; display: grid; place-items: center; color: var(--mute); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.li { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.li b { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.li > span { color: var(--mute); font-size: 13px; }
.li .price { flex-direction: row; align-items: baseline; gap: 6px; }
.promo-row { display: flex; gap: 8px; }
.promo-row .inp { flex: 1; text-transform: uppercase; }
.promo-ok { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); }
.promo-ok span { color: var(--text); flex: 1; font-size: 14px; }
.promo-ok .x { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--mute); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--s2); }
.seg-b { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 12px; color: var(--mute); font-weight: 600; transition: background-color .25s, color .25s; }
.seg-b.on { background: var(--accent); color: var(--on-accent); }
.fld { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.fld > span { font-size: 13px; color: var(--mute); padding-left: 2px; }
.inp { width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--s2); color: var(--text); font-size: 16px; outline: 0; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s; resize: vertical; }
.inp::placeholder { color: var(--mute); opacity: .8; }
.inp:focus { box-shadow: inset 0 0 0 1.5px var(--accent-ink); }
.inp.bad { box-shadow: inset 0 0 0 1.5px var(--danger); }
.hint { color: var(--mute); font-size: 13px; margin-top: 6px; }
.hint.err { color: var(--danger); }
.hint.block { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--danger) 12%, transparent); margin: 0; }
.sum { display: flex; flex-direction: column; gap: 8px; }
.srow { display: flex; justify-content: space-between; gap: 12px; color: var(--mute); }
.srow b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.srow b.minus { color: var(--accent-ink); }
.srow.grand { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text); font-size: 17px; font-weight: 600; }
.srow.grand b { font: 800 22px/1.1 var(--display); letter-spacing: -.01em; }
.free { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--mute); }
.free i { display: block; height: 4px; border-radius: 2px; background: var(--s3); overflow: hidden; }
.free u { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width .6s var(--ease); }

.spin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.loading { display: grid; place-items: center; padding: 48px; color: var(--accent-ink); }
.loading .spin { width: 28px; height: 28px; }
@keyframes spin { to { transform: rotate(360deg); } }

.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 30px 6px 10px; }
.done h2 { font: 800 26px/1.1 var(--display); letter-spacing: -.02em; margin-top: 10px; }
.done p { color: var(--mute); max-width: 34ch; }
.ok-ring { fill: none; stroke: var(--accent-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ok-ring circle { stroke-dasharray: 214; stroke-dashoffset: 214; animation: draw .8s var(--ease) forwards; }
.ok-ring path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s .55s var(--ease) forwards; }

/* ---------- мои заказы ---------- */
.ord { padding: 14px; margin-bottom: 10px; border-radius: 18px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.ord-h { display: flex; align-items: center; gap: 10px; }
.ord-h b { font: 800 17px/1 var(--display); }
.ord-h time { margin-left: auto; color: var(--mute); font-size: 12.5px; }
.ord ul { margin: 10px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.ord-t { display: flex; justify-content: space-between; color: var(--mute); font-size: 13.5px; }
.ord-t b { color: var(--text); }
.st { height: 22px; padding: 0 9px; border-radius: 11px; font: 600 11.5px/22px var(--font); background: var(--s3); color: var(--text); }
.st-new { background: var(--accent-soft); color: var(--accent-ink); }
.st-accepted { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.st-done { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.st-cancelled { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

/* ---------- узкие экраны и уменьшенное движение ---------- */
@media (max-width: 349px) {
  .page-in { padding-inline: 10px; }
  .chips-wrap { margin-inline: -10px; }
  .grid { gap: 8px; }
  .cb { padding: 9px 9px 10px; }
  .brand { font-size: 17px; }
  .price b { font-size: 15px; }
  .age18 { font-size: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .card { opacity: 1; }
  .sp-l { transform: none; }
}
