/* Витрина v3 — превью на /v3. Светлая страница, жёлтый Суши Темы — заливки кнопок и маркер
   в заголовке (жёлтый ТЕКСТ на белом не читается), тёмный футер. Шрифт один — Onest (кириллица):
   заголовки 800 с плотным трекингом, цены 700, текст 400–600. Hover — только для мыши; нажатие — scale .97, ease-out.
   Формы: все кнопки и чипы — pill, карточки и шторка — 22px, поля — 14px. Иконки — Phosphor.
   Сеты — фотогалерея, остальные категории (без фото) — «меню-доска» строками. Vanilla, mobile-first. */

:root {
  --bg: #ffffff; --ink-bg: #141412;
  --surface: #f4f4f1; --surface-2: #ebebe7; --surface-3: #e0e0db;
  --line: rgba(20, 20, 15, .09); --line-2: rgba(20, 20, 15, .16);
  --text: #141412; --text-2: #3d3c38; --muted: #6b6963;
  --accent: #FFD100; --accent-2: #ffdb33; --accent-ink: #141412; --accent-glow: rgba(255, 209, 0, .22);
  --green: #12924b; --red: #e0402f;
  --r-card: 22px; --r-pill: 999px; --r-field: 14px;
  --shadow: 0 22px 50px rgba(40, 36, 10, .18), 0 2px 6px rgba(40, 36, 10, .06);
  --display: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --maxw: 1240px; --pad: clamp(16px, 4vw, 36px);
  --hdr: 64px; --catbar: 56px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + var(--catbar) + 12px); }
body { margin: 0; -webkit-tap-highlight-color: transparent; font: 400 16px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
h1, h2, h3, h4, p { margin: 0; }
.hidden, [hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.ph { line-height: 1; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: var(--r-pill); border: 0; font-weight: 600; font-size: 16px; white-space: nowrap; transition: transform .14s var(--ease), background-color .2s, box-shadow .2s; }
.btn .ph { font-size: 20px; }
.btn:active { transform: scale(.97); }
.btn-y { background: var(--accent); color: var(--accent-ink); }
.btn-y .ph-arrow-right { transition: transform .2s var(--ease); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-2); }
@media (hover: hover) and (pointer: fine) {
  .btn-y:hover { background: var(--accent-2); }
  .btn-y:hover .ph-arrow-right { transform: translateX(3px); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
}

/* ---------- шапка ---------- */
.hd { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hd.scrolled { border-bottom-color: var(--line); }
.hd-in { max-width: var(--maxw); margin: 0 auto; height: var(--hdr); display: flex; align-items: center; gap: 14px; padding: 0 var(--pad); }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo img { width: 40px; height: 40px; border-radius: 50%; flex: none; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.logo-t { display: flex; flex-direction: column; line-height: 1.1; }
.logo-t b { font: 800 17px var(--display); letter-spacing: -.03em; white-space: nowrap; }
.logo-t small { font-size: 12.5px; color: var(--muted); }
.hd-info { display: none; align-items: center; gap: 10px; margin-left: 14px; padding-left: 18px; border-left: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.25; }
.hd-info .ph { font-size: 22px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.hd-info b { display: block; color: var(--text); font-weight: 600; font-size: 14px; }
@media (min-width: 900px) { .hd-info { display: flex; } }
.hd-sp { flex: 1; }
.hd-phone { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 600; font-size: 14.5px; transition: box-shadow .2s, transform .14s var(--ease); }
.hd-phone:active { transform: scale(.97); }
.hd-phone .ph { font-size: 20px; }
.hd-phone span { display: none; }

@media (min-width: 760px) { .hd-phone { display: inline-flex; gap: 8px; width: auto; padding: 0 16px; } .hd-phone span { display: inline; } }
.hd-cart { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px; transition: background-color .2s, transform .14s var(--ease); }
.hd-cart .ph { font-size: 20px; }
@media (hover: hover) and (pointer: fine) { .hd-phone:hover { box-shadow: inset 0 0 0 1.5px var(--text); } .hd-cart:hover { background: var(--accent-2); } }
.hd-cart:active { transform: scale(.97); }
.hd-cart .n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--text); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
@media (max-width: 420px) { .hd-cart .t { display: none; } .hd-cart { padding: 0 14px; } }

/* ---------- hero: текст слева, «веер» из хитов справа ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; max-width: 900px; aspect-ratio: 1; background: radial-gradient(closest-side, var(--accent-glow), transparent 70%); pointer-events: none; }
.hero-in { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 28px var(--pad) 8px; display: grid; gap: 28px; }
@media (min-width: 960px) { .hero-in { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 24px; } }
.hero h1 { font: 800 clamp(34px, 5.2vw, 64px)/1.02 var(--display); letter-spacing: -.045em; max-width: 16ch; text-wrap: balance; }
.hero h1 .nw { white-space: nowrap; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em; }
.hero-copy p { margin-top: 16px; font-size: clamp(16px, 1.6vw, 18px); color: var(--text-2); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
@media (max-width: 520px) { .hero-cta .btn { flex: 1 1 100%; } }

.hero-art { position: relative; height: clamp(300px, 78vw, 460px); }
.fan { position: absolute; top: 50%; left: 50%; width: min(var(--fan-w, 62%), var(--fan-max, 300px)); aspect-ratio: var(--ph-ratio, 4 / 5); border-radius: var(--r-card); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); border: 0; padding: 0; transform-origin: 50% 110%; transition: transform .5s var(--ease); }
.fan img { width: 100%; height: 100%; object-fit: cover; }
.fan.f0 { z-index: 3; transform: translate(-50%, -50%) rotate(0deg); }
.fan.f1 { z-index: 2; transform: translate(-50%, -50%) translateX(-34%) rotate(-9deg) scale(.9); }
.fan.f2 { z-index: 1; transform: translate(-50%, -50%) translateX(34%) rotate(9deg) scale(.9); }
@media (hover: hover) and (pointer: fine) {
  .hero-art:hover .fan.f1 { transform: translate(-50%, -50%) translateX(-42%) rotate(-12deg) scale(.9); }
  .hero-art:hover .fan.f2 { transform: translate(-50%, -50%) translateX(42%) rotate(12deg) scale(.9); }
}
.fan-tag { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 18px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); text-align: left; color: var(--text); box-shadow: 0 6px 20px rgba(20, 20, 15, .12); }
.fan-tag b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fan-tag small { font: 700 14px var(--display); color: var(--text); }
.fan-tag .plus { flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .fan { animation: deal .9s var(--ease) both; }
  .fan.f1 { animation-delay: .12s; } .fan.f2 { animation-delay: .2s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes deal { from { opacity: 0; translate: 0 40px; } }

.facts { max-width: var(--maxw); margin: 8px auto 0; padding: 0 var(--pad) 24px; list-style: none; display: grid; grid-template-columns: 1fr; gap: 0; }
.facts li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); line-height: 1.3; }
.facts b { display: block; color: var(--text); font-weight: 600; font-size: 15px; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 24px; } .facts li { padding: 16px 0 0; } }

/* ---------- категории (sticky) ---------- */
.cats { position: sticky; top: var(--hdr); z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.cats-in { max-width: var(--maxw); margin: 0 auto; height: var(--catbar); display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--pad); }
.cats-in::-webkit-scrollbar { display: none; }
.cat { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px; border-radius: var(--r-pill); font-weight: 500; font-size: 14.5px; color: var(--text-2); white-space: nowrap; transition: background-color .2s, color .2s; }
@media (hover: hover) and (pointer: fine) { .cat:hover { background: var(--surface); color: var(--text); } }
.cat.on { background: var(--text); color: #fff; font-weight: 600; }

/* ---------- каталог ---------- */
.catalog { max-width: var(--maxw); margin: 0 auto; padding: 8px var(--pad) 40px; }
.sec { padding-top: 40px; }
.sec-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.sec-h h2 { font: 800 clamp(26px, 3.2vw, 38px)/1.05 var(--display); letter-spacing: -.04em; }
.sec-h small { font-size: 15px; color: var(--muted); font-weight: 500; }

/* круглая кнопка «+» */
.plus { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 22px; transition: transform .14s var(--ease), background-color .2s; }
.plus:active { transform: scale(.9); }
.plus.done { animation: pop .5s var(--ease); }
.plus.ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) { .plus:hover { background: var(--accent-2); } .plus.ghost:hover { background: var(--accent); box-shadow: none; } }
@keyframes pop { 0% { transform: scale(.8); } 50% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* хиты — горизонтальная лента */
.rail { scroll-padding-inline: var(--pad); display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 280px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 6px; }
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 1080px) { .rail { margin: 0; padding: 2px 0 6px; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; } }
.rail .card { scroll-snap-align: start; }

/* фото-карточки (сеты) */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 18px; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* свёрнутая длинная сетка: первые 12 + кнопка */
.sec:not(.open) .grid > .card:nth-child(n + 13) { display: none; }
.more { display: flex; width: 100%; max-width: 360px; margin: 28px auto 0; }
.more .ph { font-size: 18px; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; cursor: pointer; }
.card-ph { position: relative; aspect-ratio: var(--ph-ratio, 4 / 5); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.card-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) { .card:hover .card-ph img { transform: scale(1.04); } }
.card-ph.noimg { display: grid; place-items: center; background: radial-gradient(110% 80% at 30% 15%, var(--tile-a, #fff3b0), var(--accent) 75%); }
.card-ph.noimg .ph { font-size: 64px; color: var(--accent-ink); opacity: .8; }
.badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.bdg { height: 24px; padding: 0 10px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; background: var(--accent); color: var(--accent-ink); }
.bdg { box-shadow: 0 2px 8px rgba(20, 20, 15, .12); }
.bdg.new { background: var(--green); color: #fff; }
.bdg.spicy { background: var(--red); color: #fff; }
.card-b { display: flex; flex-direction: column; flex: 1; padding: 12px 2px 0; }
.card-n { font-weight: 600; font-size: 16px; line-height: 1.25; letter-spacing: -.01em; }
.card-d { margin-top: 5px; font-size: 13.5px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.price { font: 700 17px var(--display); letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price s { margin-left: 6px; font: 500 13px var(--font); color: var(--muted); }
@media (max-width: 400px) { .price { font-size: 15px; } .card-n { font-size: 15px; } }

/* меню-доска: категории без фото */
.board { display: grid; grid-template-columns: 1fr; gap: 0 48px; }
@media (min-width: 900px) { .board { grid-template-columns: 1fr 1fr; } }
.row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; }
.row-b { flex: 1; min-width: 0; }
.row-t { display: flex; align-items: baseline; gap: 10px; }
.row-n { font-weight: 600; font-size: 16px; line-height: 1.3; }
.row-t .lead { flex: 1; min-width: 16px; border-bottom: 1.5px dotted var(--line-2); transform: translateY(-4px); }
.row-t .price { font-size: 16px; }
.row-d { margin-top: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-tags { display: inline-flex; gap: 6px; margin-left: 2px; vertical-align: 2px; }
.row-tags .bdg { height: 20px; padding: 0 8px; font-size: 11px; }
@media (hover: hover) and (pointer: fine) { .row:hover .row-n { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; } }
.row:active { background: var(--surface); }

/* появление при прокрутке */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
  .rv.in { opacity: 1; transform: none; }
}

/* скелетон */
.sk { border-radius: var(--r-card); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%) 0 0 / 200% 100%; animation: sh 1.4s linear infinite; }
.sk.ph4 { aspect-ratio: var(--ph-ratio, 4 / 5); } .sk.ln { height: 14px; margin-top: 12px; border-radius: 8px; }
@keyframes sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }
.empty button { margin-top: 14px; }

/* ---------- футер ---------- */
.ft { background: var(--ink-bg); color: #f1f0eb; margin-top: 32px; }
.ft-in { max-width: var(--maxw); margin: 0 auto; padding: 44px var(--pad) 28px; display: grid; gap: 32px; }
@media (min-width: 760px) { .ft-in { grid-template-columns: 1.4fr 1fr 1fr; } }
.ft .logo-t small { color: #a9a69e; }
.ft-brand p { margin-top: 14px; color: #a9a69e; font-size: 14px; max-width: 32ch; }
.ft-col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: #d6d4cd; }
.ft-col h4 { font: 600 13px var(--font); color: #a9a69e; margin-bottom: 2px; }
.ft-col a { display: inline-flex; align-items: center; gap: 8px; width: fit-content; }
@media (hover: hover) and (pointer: fine) { .ft-col a:hover { color: var(--accent); } }
.ft-col .ph { font-size: 18px; }
.ft-phone { font: 700 19px var(--display); color: #fff; letter-spacing: -.01em; }
.ft-bot { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--pad) 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: #a9a69e; }

/* ---------- плавающая корзина ---------- */
.cart-fab { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); height: 60px; padding: 0 10px 0 12px; border-radius: var(--r-pill); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 16px; box-shadow: 0 14px 34px rgba(60, 48, 0, .28); transform: translateY(140%); transition: transform .4s var(--ease); }
.cart-fab:active { transform: scale(.98); }
.cart-fab.show { transform: none; }
.cart-fab.bump { animation: bump .45s var(--ease); }
.cf-l { display: flex; align-items: center; gap: 10px; }
.cart-count { min-width: 36px; height: 36px; padding: 0 8px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--text); color: #fff; font-weight: 700; }
.cf-r { display: flex; align-items: center; gap: 10px; font: 700 17px var(--display); font-variant-numeric: tabular-nums; }
.cf-r .ph { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 19, 15, .1); font-size: 20px; }
@media (min-width: 760px) { .cart-fab { left: auto; right: 28px; bottom: 28px; width: 340px; } body { padding-bottom: 0; } }
@keyframes bump { 40% { transform: scale(1.04); } }

.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r-pill); background: var(--ink-bg); color: #fff; font-weight: 600; font-size: 14.5px; transition: opacity .25s, transform .3s var(--ease); box-shadow: 0 10px 30px rgba(20, 20, 15, .25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 760px) { .toast { bottom: 104px; left: auto; right: 28px; transform: translateY(12px); } .toast.show { transform: none; } }

/* ---------- карточка товара: шторка снизу на телефоне, окно по центру на компьютере ---------- */
.md { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; visibility: hidden; }
.md.open { visibility: visible; }
.md-bd { position: absolute; inset: 0; background: rgba(20, 20, 15, .5); opacity: 0; transition: opacity .3s; }
.md.open .md-bd { opacity: 1; }
.md:not(.open) .md-c { transition-duration: .28s; }
.md-c { position: relative; width: 100%; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); border-radius: var(--r-card) var(--r-card) 0 0; transform: translateY(100%); transition: transform .45s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
.md.open .md-c { transform: none; }
.md-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); color: var(--text); font-size: 20px; box-shadow: 0 2px 10px rgba(20, 20, 15, .15); }
.md-ph { position: relative; aspect-ratio: var(--ph-ratio, 4 / 5); max-height: 52dvh; width: 100%; overflow: hidden; background: var(--surface); }
.md-ph img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.md-ph .md-blur { position: absolute; inset: 0; object-fit: cover; filter: blur(30px) saturate(1.2) opacity(.55); transform: scale(1.2); }
.md-ic { display: none; height: 160px; place-items: center; background: radial-gradient(110% 90% at 30% 10%, var(--tile-a, #fff3b0), var(--accent) 75%); font-size: 64px; color: var(--accent-ink); }
.md-c.noph .md-ph { display: none; }
.md-c.noph .md-ic { display: grid; }
.md-b { padding: 22px 20px 20px; }
.md-b h3 { font: 800 27px/1.1 var(--display); letter-spacing: -.04em; padding-right: 36px; }
.md-c.noph .md-b h3 { padding-right: 44px; }
.md-w { margin-top: 6px; font-size: 14px; color: var(--muted); }
.md-d { margin-top: 12px; font-size: 15px; color: var(--text-2); }
.md-lbl { margin: 18px 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 12px; border-radius: var(--r-pill); background: var(--surface); font-size: 13.5px; color: var(--text-2); }
.sz { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.sz button { height: 56px; border-radius: var(--r-field); border: 0; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 600; font-size: 14.5px; }
.sz button small { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.sz button.on { box-shadow: inset 0 0 0 2px var(--text); background: var(--bg); }
.md-f { position: sticky; bottom: 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); margin: 0 -20px -20px; background: linear-gradient(rgba(255, 255, 255, 0), var(--bg) 30%); }
.md-add { width: 100%; height: 56px; border: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16.5px; transition: background-color .2s, transform .14s var(--ease); }
@media (hover: hover) and (pointer: fine) { .md-add:hover { background: var(--accent-2); } }
.md-add:active { transform: scale(.98); }
@media (min-width: 860px) {
  .md { align-items: center; }
  .md-c { width: min(920px, 92vw); max-height: 86vh; border-radius: var(--r-card); display: grid; grid-template-columns: 1fr 1fr; transform: translateY(24px) scale(.98); opacity: 0; transition: transform .35s var(--ease), opacity .25s; overflow: hidden; padding: 0; }
  .md.open .md-c { opacity: 1; }
  .md-ph { max-height: none; height: 100%; aspect-ratio: auto; min-height: 520px; }
  .md-b { overflow-y: auto; max-height: 86vh; display: flex; flex-direction: column; padding: 32px 28px 0; }
  .md-f { margin: auto -28px 0; padding: 18px 28px 24px; }
  .md-c.noph { grid-template-columns: 1fr; width: min(520px, 92vw); }
  .md-c.noph .md-ic { height: 180px; }
}
@media (prefers-reduced-motion: reduce) { .md-c, .md-bd, .cart-fab, .fan, .card-ph img { transition: none !important; animation: none !important; } }

/* ================= страницы: корзина, оформление, заказ принят ================= */
body.pg { padding-bottom: 0; background: var(--bg); }
.page { max-width: 1080px; margin: 0 auto; padding: 18px var(--pad) 120px; }
.page h1 { font: 800 clamp(30px, 4.4vw, 46px)/1.05 var(--display); letter-spacing: -.045em; margin: 6px 0 22px; }
.back { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 10px; margin-left: -10px; border-radius: var(--r-pill); color: var(--text-2); font-weight: 500; font-size: 14.5px; transition: background-color .2s; }
.back .ph { font-size: 18px; }
@media (hover: hover) and (pointer: fine) { .back:hover { background: var(--surface); color: var(--text); } }
.page-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .page-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; } .side { position: sticky; top: calc(var(--hdr) + 20px); } }
.btn-wide { width: 100%; }

/* сводка + кнопка: на телефоне кнопка прилипает к низу экрана */
.sum { border-radius: var(--r-card); background: var(--surface); padding: 18px 20px; }
.sum-r { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; color: var(--text-2); }
.sum-r b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.sum-r.tot { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 17px; color: var(--text); font-weight: 600; }
.sum-r.tot b { font: 800 24px var(--display); letter-spacing: -.02em; }
.sum-note { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.bar { margin-top: 14px; }
@media (max-width: 899px) {
  .bar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .bar .btn { height: 56px; }
}
.btn:disabled { opacity: .55; cursor: default; transform: none; }

/* позиции корзины */
.cart-list { display: flex; flex-direction: column; }
.ci { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ci:first-child { padding-top: 0; }
.ci-ph { flex: none; width: 84px; height: 84px; border-radius: 16px; object-fit: cover; background: var(--surface); }
.ci-ph.noimg { display: grid; place-items: center; background: radial-gradient(110% 80% at 30% 15%, var(--tile-a, #fff3b0), var(--accent) 75%); color: var(--accent-ink); font-size: 32px; }
.ci-b { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.ci-t { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ci-n { font-weight: 600; font-size: 16px; line-height: 1.3; }
.ci-n small { display: block; margin-top: 2px; font-weight: 500; font-size: 13.5px; color: var(--muted); }
.ci-x { flex: none; width: 36px; height: 36px; margin: -6px -8px 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; font-size: 18px; transition: background-color .2s, color .2s; }
.ci-x:active { background: var(--surface); }
@media (hover: hover) and (pointer: fine) { .ci-x:hover { background: var(--surface); color: var(--text); } }
.ci-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qty { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--surface); }
.qty button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 16px; box-shadow: 0 1px 3px rgba(20, 20, 15, .1); transition: transform .14s var(--ease), background-color .2s; }
.qty button:active { transform: scale(.9); }
@media (hover: hover) and (pointer: fine) { .qty button:hover { background: var(--accent); } }
.qty span { min-width: 30px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* пустая корзина */
.blank { grid-column: 1 / -1; text-align: center; padding: 36px 0 20px; display: flex; flex-direction: column; align-items: center; }
.blank-ic { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 40px; margin-bottom: 18px; }
.blank h2 { font: 800 24px var(--display); letter-spacing: -.03em; }
.blank p { margin: 8px 0 22px; color: var(--muted); max-width: 32ch; }

/* оформление */
.form { display: flex; flex-direction: column; gap: 26px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface); }
.seg-btn { height: 48px; border: 0; border-radius: var(--r-pill); background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15.5px; color: var(--text-2); transition: background-color .2s, color .2s, box-shadow .2s; }
.seg-btn .ph { font-size: 20px; }
.seg-btn.active { background: var(--bg); color: var(--text); box-shadow: 0 2px 8px rgba(20, 20, 15, .1); }
.note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-card); background: var(--surface); font-size: 15px; line-height: 1.45; }
.note[hidden] { display: none; }
.note > .ph { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 20px; }
.note b { display: block; }
.note a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fset { display: flex; flex-direction: column; gap: 14px; }
.fset[hidden] { display: none; }
.fset h2 { font: 800 20px var(--display); letter-spacing: -.03em; }
.fld { display: flex; flex-direction: column; gap: 7px; }
.fld > span { font-size: 14px; font-weight: 600; color: var(--text-2); }
.fld > span em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 6px; }
.fld input, .fld select { height: 54px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-field); background: var(--bg); color: var(--text); font: 400 16px var(--font); transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
.fld select { background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.fld input::placeholder { color: #8d8a83; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px var(--accent-glow); }
.pay-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-opt { height: 46px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 500; font-size: 15px; transition: box-shadow .2s, background-color .2s, transform .14s var(--ease); }
.pay-opt:active { transform: scale(.97); }
.pay-opt.active { background: var(--accent); color: var(--accent-ink); box-shadow: none; font-weight: 600; }
.err-box { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-field); background: #fdeceb; color: #a12b1f; font-weight: 500; font-size: 14.5px; }
.err-box[hidden] { display: none; }

/* заказ принят */
.done-pg { max-width: 560px; text-align: center; padding-top: clamp(40px, 10vw, 90px); display: flex; flex-direction: column; align-items: center; }
.done-ic { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 46px; margin-bottom: 22px; }
@media (prefers-reduced-motion: no-preference) { .done-ic { animation: pop .7s var(--ease) both; } }
.done-pg h1 { margin-bottom: 10px; }
.done-n { font: 700 19px var(--display); }
.done-s { margin-top: 8px; color: var(--muted); }
.done-s a { color: var(--text); font-weight: 600; }
.done-pg .btn { margin-top: 26px; }

/* Кредит студии */
.mk1967 { display: inline-flex; align-items: baseline; gap: 5px; font-size: 14px; color: inherit; text-decoration: none; transition: color .2s; }
.mk1967 b { font-weight: 600; color: #e9e6df; transition: color .2s; }
.mk1967 i { font-style: normal; font-size: 12px; transition: transform .2s; }
.mk1967:hover, .mk1967:hover b { color: var(--accent); }
.mk1967:hover i { transform: translate(2px, -2px); }
/* Знак 1967 Media вместо текста: буквы прозрачные, знак маской цветом текста. */
:root { --mk1967: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='17 -718 4865 726'%3E%3Cpath d='M157 0V-543H17V-634Q58 -636 90 -643Q122 -649 148 -666Q173 -683 193 -715H282V0Z M631 8Q574 8 523 -11Q473 -31 438 -71Q403 -111 392 -171H517Q531 -139 566 -122Q600 -106 638 -106Q684 -106 714 -124Q745 -143 763 -174Q782 -206 790 -244Q798 -283 798 -323Q798 -328 798 -333Q798 -338 798 -342Q777 -307 746 -287Q715 -268 680 -259Q645 -251 612 -251Q549 -251 498 -277Q447 -303 417 -353Q387 -404 387 -475Q387 -551 421 -605Q455 -659 514 -687Q572 -716 644 -716Q722 -716 774 -684Q826 -652 857 -599Q888 -545 901 -480Q914 -415 914 -348Q914 -274 898 -209Q883 -145 850 -96Q816 -47 762 -20Q708 8 631 8ZM638 -358Q677 -358 706 -375Q736 -391 752 -418Q768 -446 767 -478Q767 -516 751 -543Q734 -571 705 -587Q676 -603 640 -603Q601 -603 572 -586Q544 -569 528 -541Q512 -513 512 -481Q512 -426 545 -392Q578 -358 638 -358Z M1249 8Q1175 8 1122 -20Q1069 -48 1036 -96Q1003 -144 987 -206Q972 -268 972 -336Q972 -413 988 -482Q1005 -550 1040 -603Q1075 -655 1130 -686Q1186 -716 1262 -716Q1319 -716 1368 -696Q1416 -676 1449 -636Q1482 -596 1494 -536H1374Q1360 -568 1328 -585Q1297 -603 1259 -603Q1220 -603 1191 -588Q1163 -574 1143 -550Q1123 -527 1111 -496Q1099 -465 1093 -432Q1087 -399 1087 -367Q1111 -402 1142 -421Q1173 -441 1207 -450Q1241 -458 1271 -458Q1342 -458 1393 -430Q1443 -402 1471 -352Q1499 -301 1499 -233Q1499 -160 1467 -106Q1435 -52 1379 -22Q1322 8 1249 8ZM1248 -105Q1287 -106 1315 -122Q1343 -138 1359 -166Q1374 -193 1374 -226Q1374 -261 1359 -288Q1344 -316 1317 -333Q1289 -349 1251 -349Q1215 -349 1185 -333Q1155 -318 1137 -290Q1119 -263 1119 -227Q1119 -194 1136 -167Q1152 -139 1181 -122Q1210 -105 1248 -105Z M1583 0 1859 -592H1509V-707H1999V-613L1722 0Z'/%3E%3Cpath fill-opacity='.72' d='M2387 0V-707H2519L2731 -318L2940 -707H3069V0H2982V-615L2749 -185H2709L2474 -615V0Z M3411 6Q3327 6 3272 -28Q3217 -63 3190 -124Q3163 -185 3163 -263Q3163 -342 3191 -402Q3220 -463 3275 -498Q3330 -533 3410 -533Q3472 -533 3516 -510Q3561 -486 3590 -447Q3619 -408 3632 -362Q3645 -315 3643 -268Q3642 -259 3641 -250Q3641 -241 3640 -232H3249Q3253 -186 3272 -149Q3291 -112 3326 -90Q3361 -69 3413 -69Q3439 -69 3465 -76Q3492 -82 3513 -98Q3535 -114 3544 -141H3631Q3619 -90 3586 -58Q3553 -25 3507 -10Q3461 6 3411 6ZM3556 -306Q3555 -351 3536 -385Q3517 -419 3484 -438Q3452 -457 3407 -457Q3358 -457 3324 -436Q3291 -415 3273 -381Q3255 -347 3251 -306Z M3927 6Q3848 6 3797 -30Q3746 -65 3721 -126Q3696 -186 3696 -262Q3696 -338 3721 -400Q3746 -461 3798 -497Q3850 -533 3931 -533Q3962 -533 3993 -526Q4025 -518 4053 -502Q4081 -487 4101 -461V-707H4186V0H4105L4101 -79Q4083 -49 4055 -30Q4028 -12 3995 -3Q3962 6 3927 6ZM3939 -69Q3992 -69 4028 -96Q4064 -123 4083 -168Q4102 -213 4102 -266Q4102 -321 4083 -364Q4065 -407 4029 -432Q3993 -457 3938 -457Q3881 -457 3846 -431Q3812 -405 3796 -360Q3781 -316 3781 -261Q3781 -221 3789 -186Q3798 -152 3816 -126Q3835 -99 3865 -84Q3895 -69 3939 -69Z M4280 0V-527H4365V0ZM4322 -605Q4296 -605 4280 -621Q4265 -637 4265 -662Q4265 -687 4281 -702Q4297 -718 4322 -718Q4345 -718 4362 -702Q4380 -686 4380 -662Q4380 -637 4363 -621Q4346 -605 4322 -605Z M4628 6Q4592 6 4558 -4Q4525 -13 4498 -32Q4472 -52 4456 -82Q4441 -111 4441 -150Q4441 -195 4457 -226Q4474 -257 4502 -275Q4530 -293 4567 -301Q4604 -309 4644 -309H4799Q4799 -354 4786 -387Q4774 -420 4746 -438Q4718 -457 4672 -457Q4644 -457 4620 -451Q4596 -445 4579 -432Q4562 -419 4554 -397H4463Q4470 -433 4490 -458Q4511 -484 4540 -500Q4570 -517 4604 -525Q4638 -533 4672 -533Q4748 -533 4794 -502Q4840 -472 4861 -416Q4882 -361 4882 -285V0H4811L4806 -67Q4784 -37 4753 -21Q4722 -5 4689 0Q4657 6 4628 6ZM4636 -69Q4686 -69 4722 -86Q4759 -102 4779 -134Q4799 -166 4799 -212V-238H4652Q4634 -238 4612 -236Q4590 -234 4570 -226Q4551 -219 4538 -202Q4526 -186 4526 -156Q4526 -126 4541 -107Q4557 -88 4582 -78Q4608 -69 4636 -69Z'/%3E%3C/svg%3E"); }
.mk1967 b { display: inline-block; flex: none; width: 6.23em; height: 0.93em; overflow: hidden; white-space: nowrap; vertical-align: baseline; -webkit-text-fill-color: transparent; background-color: currentColor; -webkit-mask: var(--mk1967) 0 0 / 100% 100% no-repeat; mask: var(--mk1967) 0 0 / 100% 100% no-repeat; }
