/* ЛЁД — витрина. Mobile-first. Палитра: бумага + чернила + кобальт + лайм. */
:root {
  --paper: #f1ece3;
  --paper-2: #e8e1d5;
  --card: #fbf8f3;
  --ink: #121317;
  --ink-2: #2b2d33;
  --muted: #6f6a62;
  --line: #ddd4c6;
  --cobalt: #2340ff;
  --cobalt-ink: #ffffff;
  --cobalt-soft: #e3e7ff;
  --lime: #d4ff3f;
  --lime-ink: #121317;
  --danger: #d93a3f;
  --ok: #17924f;
  --shadow: 0 10px 30px -12px rgba(18, 19, 23, .25);
  --radius: 18px;
  --radius-sm: 12px;
  --head-h: 60px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e0f13;
    --paper-2: #15171c;
    --card: #17191f;
    --ink: #f1ece3;
    --ink-2: #d8d2c7;
    --muted: #9a958c;
    --line: #2a2d35;
    --cobalt: #6c80ff;
    --cobalt-ink: #0e0f13;
    --cobalt-soft: #1d2346;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e0f13; --paper-2: #15171c; --card: #17191f; --ink: #f1ece3; --ink-2: #d8d2c7; --muted: #9a958c;
  --line: #2a2d35; --cobalt: #6c80ff; --cobalt-ink: #0e0f13; --cobalt-soft: #1d2346; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.lock { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 600; text-decoration: none; transition: transform .15s, background .15s, opacity .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--primary { background: var(--cobalt); color: var(--cobalt-ink); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--lime { background: var(--lime); color: var(--lime-ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper-2);
  display: grid; place-items: center; flex: none;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- шапка ---------- */
.announce { background: var(--lime); color: var(--lime-ink); text-align: center; font-weight: 600; font-size: 14px; padding: 8px 16px; }
.top {
  position: sticky; top: 0; z-index: 30; background: var(--paper);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top);
}
/* под прозрачной панелью Safari на iOS не должен просвечивать каталог */
.top::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 200px; background: var(--paper); }
.top__in { height: var(--head-h); display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo__word { font: 800 22px/1 var(--display); letter-spacing: -.02em; }
.logo__cube {
  width: 22px; height: 22px; border-radius: 6px; background: var(--cobalt); position: relative; transform: rotate(-8deg);
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .18);
}
.logo__cube::after { content: ""; position: absolute; left: 4px; top: 4px; width: 7px; height: 3px; border-radius: 2px; background: #fff; opacity: .75; }
.logo--big .logo__word { font-size: 36px; }
.logo--big .logo__cube { width: 34px; height: 34px; border-radius: 9px; }
.status {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500;
  padding: 5px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 46vw;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.status.is-open i { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.status.is-pre i { background: #e8a317; }
.status span { overflow: hidden; text-overflow: ellipsis; }
.top__phone { margin-left: auto; font-weight: 600; text-decoration: none; display: none; }
.top__cart {
  margin-left: auto; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--ink); color: var(--paper); display: grid; place-items: center;
}
.top__cart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.top__cart b {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--lime); color: var(--lime-ink); font-size: 12px; display: grid; place-items: center;
}
.top__cart.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.15); } }

/* ---------- hero ---------- */
.hero { padding: 20px 0 4px; overflow: hidden; }
@media (max-width: 639px) {
  .hero__art { display: none; }
  .lead { font-size: 15.5px; margin-top: 12px; }
  .hero__cta { margin-top: 16px; }
  .hero__cta .btn { flex: 1; }
  .facts { margin-top: 16px; gap: 6px; }
  .facts li { padding: 10px; }
  .facts span { font-size: 11px; line-height: 1.3; display: block; }
  .catalog { margin-top: 18px; }
  .card__body { padding: 9px 10px 10px; }
  .card__name { font-size: 14px; }
  .card__meta { font-size: 12px; }
  .price b { font-size: 16px; }
  .add { width: 40px; height: 40px; }
  .cat-title { margin: 20px 0 10px; }
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.facts li { min-width: 0; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font: 800 clamp(40px, 11vw, 92px)/.95 var(--display); letter-spacing: -.035em; }
h1 .hl { color: var(--cobalt); }
.lead { margin: 16px 0 0; font-size: 17px; color: var(--ink-2); max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.facts b { display: block; font: 700 15px/1.1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
@media (min-width: 640px) { .facts b { font-size: 18px; } }
.facts span { font-size: 12px; color: var(--muted); }
.hero__art { position: relative; height: 260px; }
.hero__disc {
  position: absolute; inset: 10px 8% 0; border-radius: 28px; background: var(--cobalt);
  background-image: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .25), transparent 40%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 14px);
}
.hero__bottles { position: absolute; inset: 0 8% 0; }
.hero__photo {
  position: absolute; margin: 0; width: 46%; aspect-ratio: 1 / 1.18; background: var(--card); border-radius: 18px; padding: 8px 8px 0;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .45); display: flex; flex-direction: column;
}
.hero__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; display: block; }
.hero__photo figcaption { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; font-size: 12px; font-weight: 600; padding: 7px 4px; white-space: nowrap; overflow: hidden; }
.hero__photo figcaption b { font: 700 13px var(--display); flex: none; }
.hero__photo figcaption span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 639px) { .hero__photo--1 figcaption b, .hero__photo--2 figcaption b { display: none; } .hero__photo figcaption { font-size: 11px; } }
.hero__photo--0 { left: 27%; top: 6%; z-index: 2; transform: rotate(-2deg); }
.hero__photo--1 { left: 0; top: 24%; transform: rotate(-9deg); width: 40%; }
.hero__photo--2 { right: 0; top: 26%; transform: rotate(8deg); width: 40%; }
.hero__bottles .art-svg { height: 82%; width: auto; margin: 0 -10px; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .25)); }
.hero__bottles .art-svg:nth-child(2), .hero__bottles .art-svg:nth-child(4) { height: 72%; }
.hero__bottles .art-svg:nth-child(1), .hero__bottles .art-svg:nth-child(5) { height: 62%; }
.hero__ticket {
  position: absolute; left: 0; bottom: 10px; z-index: 3; background: var(--card); color: var(--ink); border-radius: 14px; padding: 10px 14px;
  box-shadow: var(--shadow); display: grid; gap: 2px; transform: rotate(-3deg); font-size: 13px; border: 1px solid var(--line);
}
.hero__ticket span { color: var(--muted); font-size: 12px; }
.hero__ticket small { color: var(--muted); }

/* ---------- каталог ---------- */
.catalog { margin-top: 24px; }
.catbar { position: sticky; top: var(--head-h); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.catbar__in { display: grid; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.catbar__row { display: flex; align-items: center; gap: 6px; margin-right: -16px; min-width: 0; }
.catbar__row .chips { flex: 1; min-width: 0; margin: 0; padding: 0 16px 0 0; scroll-padding-inline: 0; }
.chip.chip--icon { width: 38px; padding: 0; display: grid; place-items: center; flex: none; }
.chip.chip--icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.search__close { border: 0; background: var(--paper-2); width: 28px; height: 28px; border-radius: 50%; flex: none; font-size: 13px; color: var(--muted); }
@media (max-width: 899px) {
  .catbar .search { display: none; }
  .catbar.is-search .search { display: flex; }
  .catbar.is-search .catbar__row { display: none; }
}
.chips {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px;
  scroll-snap-type: x proximity; scroll-padding-inline: 16px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-weight: 500; font-size: 14px; white-space: nowrap; scroll-snap-align: start;
  transition: background .15s, color .15s;
}
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip small { opacity: .55; margin-left: 4px; }
.search {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
}
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; font-size: 16px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 8px; }
.toolbar__count { margin: 0; color: var(--muted); font-size: 14px; }
.toolbar select {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px; height: 36px; padding: 0 12px; font-size: 14px;
}

.cat-title { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 12px; }
.cat-title h3 { margin: 0; font: 700 22px/1.1 var(--display); letter-spacing: -.02em; }
.cat-title span { color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card.is-out { opacity: .55; }
.card__art {
  position: relative; display: block; aspect-ratio: 1 / 1.05; border: 0; padding: 0; width: 100%; overflow: hidden;
  background: color-mix(in srgb, var(--c, #888) 16%, var(--card));
}
.card__art .art-svg { position: absolute; left: 50%; bottom: 4%; height: 86%; width: auto; transform: translateX(-50%); transition: transform .25s; }
.card:hover .card__art .art-svg { transform: translateX(-50%) rotate(-3deg) scale(1.03); }
.card__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card.has-photo .card__art { aspect-ratio: 1 / 1; background: var(--paper-2); }
.card.has-photo:hover .card__art img { transform: scale(1.04); }
.card.has-photo .badges { top: 10px; left: 10px; }
.card.has-photo .badge { box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.badges { position: absolute; left: 8px; top: 8px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 1; }
.badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 7px; border-radius: 6px;
  background: var(--lime); color: var(--lime-ink);
}
.badge--sale { background: var(--ink); color: var(--paper); }
.badge--low { background: #ffe1c2; color: #8a3b00; }
.card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__name { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { font-size: 12.5px; color: var(--muted); }
.card__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 6px; margin-top: auto; padding-top: 8px; }
.card .ctl:has(.stepper) { flex: 1 1 100%; }
.card .ctl .stepper { width: 100%; justify-content: space-between; }
.price { display: flex; flex-direction: column; line-height: 1.1; }
.price b { font: 700 17px/1.1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.price s { font-size: 12.5px; color: var(--muted); }
.add {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--cobalt); color: var(--cobalt-ink);
  display: grid; place-items: center; flex: none;
}
.add svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.add:active { transform: scale(.92); }
.stepper {
  display: inline-flex; align-items: center; background: var(--ink); color: var(--paper); border-radius: 999px; height: 42px; flex: none;
}
.stepper button { width: 36px; height: 42px; border: 0; background: none; color: inherit; font-size: 20px; line-height: 1; }
.stepper span { min-width: 18px; text-align: center; font-weight: 700; font-size: 15px; }
.stepper--sm { height: 34px; }
.stepper--sm button { width: 32px; height: 34px; font-size: 18px; }
.out-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.skeleton-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.skeleton-grid div { height: 280px; border-radius: var(--radius); background: linear-gradient(90deg, var(--paper-2), var(--card), var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- секции ---------- */
.h2 { margin: 0 0 16px; font: 800 clamp(26px, 6vw, 40px)/1.05 var(--display); letter-spacing: -.03em; }
.how, .delivery, .faq { margin-top: 64px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 4px; }
.steps span { font: 800 13px var(--display); color: var(--cobalt); }
.steps b { font-size: 18px; }
.steps p { margin: 0; color: var(--muted); }
.delivery__head p { margin: -6px 0 16px; }
.zones { display: grid; gap: 8px; }
.zone {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
}
.zone b { font-weight: 600; }
.zone .fee { font: 700 17px var(--display); text-align: right; }
.zone small { color: var(--muted); font-size: 13px; }
.zone small:last-child { text-align: right; }
.pickup { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--ink); color: var(--paper); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 500 24px var(--display); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--ink-2); }

.foot { margin-top: 72px; padding: 32px 0 120px; background: var(--ink); color: var(--paper); }
.foot .muted { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.foot__in { display: grid; gap: 20px; }
.foot__links { display: grid; gap: 8px; }
.foot__links a { text-decoration: none; opacity: .8; }
.foot__links a:hover { opacity: 1; text-decoration: underline; }
.warn { margin: 0; font-size: 13px; opacity: .7; }
.warn b { display: inline-block; border: 1.5px solid currentColor; border-radius: 6px; padding: 0 5px; margin-right: 6px; }
.foot { --ink: #0a0b0e; --paper: #f1ece3; }

/* ---------- нижняя плашка корзины ---------- */
.cartbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25;
  display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 18px 0 8px; border: 0; border-radius: 999px;
  background: var(--cobalt); color: var(--cobalt-ink); box-shadow: 0 14px 30px -10px rgba(35, 64, 255, .6);
  animation: rise .3s ease-out;
}
@keyframes rise { from { transform: translateY(120%); } }
.cartbar__n { width: 42px; height: 42px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; font-weight: 800; }
.cartbar__t { font-weight: 600; }
.cartbar b { margin-left: auto; font: 700 17px var(--display); }

/* ---------- drawer / sheet ---------- */
.drawer, .sheet { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.drawer__veil { position: absolute; inset: 0; background: rgba(10, 11, 14, .5); opacity: 0; transition: opacity .25s; }
.drawer.is-open, .sheet.is-open { pointer-events: auto; }
.drawer.is-open .drawer__veil, .sheet.is-open .drawer__veil { opacity: 1; }
.drawer__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 94dvh; height: 94dvh; background: var(--paper);
  border-radius: 24px 24px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { position: relative; display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font: 700 20px var(--display); letter-spacing: -.02em; flex: 1; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 16px 16px; overscroll-behavior: contain; }
.drawer__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.drawer__foot:empty { display: none; }

.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line__art { width: 56px; height: 64px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, #888) 16%, var(--card)); overflow: hidden; }
.line__art .art-svg { height: 56px; width: auto; }
.line__art img { width: 100%; height: 100%; object-fit: cover; }
.line__name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.line__meta { font-size: 13px; color: var(--muted); }
.line__right { display: grid; justify-items: end; gap: 6px; }
.line__sum { font-weight: 700; white-space: nowrap; }

.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper-2); border-radius: 999px; padding: 4px; margin: 16px 0 12px; }
.seg button { border: 0; height: 40px; border-radius: 999px; background: none; font-weight: 600; }
.seg button.is-on { background: var(--card); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; height: 48px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--card);
  padding: 0 14px; font-size: 16px; outline: none; transition: border-color .15s;
}
.field textarea { height: 80px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cobalt); }
.field.is-bad input, .field.is-bad select { border-color: var(--danger); }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pays { display: grid; gap: 8px; margin-bottom: 12px; }
.pay { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-weight: 500; }
.pay input { accent-color: var(--cobalt); width: 18px; height: 18px; }
.pay:has(input:checked) { border-color: var(--cobalt); background: var(--cobalt-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 10px 0; cursor: pointer; }
.check input { accent-color: var(--cobalt); width: 20px; height: 20px; flex: none; margin: 1px 0 0; }
.check a { color: var(--cobalt); }
.sumrow { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 3px 0; }
.sumrow--total { font: 700 20px var(--display); padding-top: 8px; }
.progress { margin: 14px 0 4px; }
.progress__bar { height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.progress__bar i { display: block; height: 100%; background: var(--cobalt); border-radius: 3px; transition: width .3s; }
.progress p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.note { padding: 10px 14px; border-radius: var(--radius-sm); background: #fff3d6; color: #6b4a00; font-size: 14px; margin: 10px 0; }
.note--err { background: #ffe3e3; color: #8c1d20; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .note { background: #3a2e12; color: #ffd98a; } :root:not([data-theme="light"]) .note--err { background: #3d1517; color: #ffb3b5; } }
.done { text-align: center; padding: 28px 8px; }
.done__num { font: 800 44px/1 var(--display); letter-spacing: -.03em; margin: 14px 0 6px; }
.done__icon { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto; background: var(--lime); display: grid; place-items: center; transform: rotate(-6deg); }
.done__icon svg { width: 38px; height: 38px; stroke: var(--lime-ink); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.done .btn { margin-top: 10px; }

.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; background: var(--paper);
  border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.is-open .sheet__panel { transform: none; }
.grab { position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: rgba(0, 0, 0, .25); z-index: 2; }
.drawer__panel .grab { background: var(--line); }
.drawer__panel.dragging, .sheet__panel.dragging { transition: none; }
@media (min-width: 900px) { .grab { display: none; } }
.pd__art { position: relative; overflow: hidden; height: 300px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, #888) 18%, var(--paper)); }
.pd__art .art-svg { height: 260px; width: auto; }
.pd__art.has-photo { height: auto; aspect-ratio: 1 / 1; background: var(--paper-2); }
.pd__art img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.pd__credit { margin: 14px 0 0; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.pd__credit a { color: inherit; }
.pd__close { position: absolute; right: 12px; top: 12px; }
.pd__body { padding: 18px 16px 20px; }
.pd__body h3 { margin: 0; font: 700 24px/1.15 var(--display); letter-spacing: -.02em; }
.pd__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.pd__meta span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.pd__desc { color: var(--ink-2); margin: 10px 0 0; }
.pd__buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.pd__buy .price b { font-size: 26px; }

/* ---------- 18+ ---------- */
.gate { position: fixed; inset: 0; z-index: 90; background: var(--paper); display: grid; place-items: center; padding: 16px; }
.gate__card { max-width: 420px; text-align: center; }
.gate__card .logo { justify-content: center; }
.gate__q { font: 800 30px/1.1 var(--display); letter-spacing: -.03em; margin: 28px 0 10px; }
.gate__btns { display: grid; gap: 10px; margin-top: 24px; }
.gate__no { margin-top: 16px; color: var(--danger); font-weight: 600; }

.toast {
  position: fixed; left: 50%; top: 14px; z-index: 100; transform: translate(-50%, -150%); background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: transform .25s; max-width: calc(100% - 32px);
  box-shadow: var(--shadow); text-align: center; visibility: hidden;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Telegram Mini App ---------- */
.in-tg .hero__art, .in-tg .top__phone, .in-tg #heroTg { display: none !important; }
.in-tg .hero { padding-top: 16px; }
.in-tg h1 { font-size: 40px; }

/* ---------- планшет и десктоп ---------- */
@media (min-width: 640px) {
  .grid, .skeleton-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .zones { grid-template-columns: repeat(2, 1fr); }
  .hero__art { height: 340px; }
  .status { max-width: none; }
}
@media (min-width: 900px) {
  :root { --head-h: 72px; }
  .top__phone { display: block; }
  .top__cart { margin-left: 0; }
  .hero { padding: 48px 0 16px; }
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 40px; }
  .hero__art { height: 460px; }
  .catbar__in { grid-template-columns: 1fr 320px; align-items: center; }
  .chips { margin: 0; padding: 0; }
  .catbar__row { margin-right: 0; }
  .catbar__row .chips { padding: 0; }
  #searchOpen, .search__close { display: none; }
  .grid, .skeleton-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .card__name { font-size: 16px; }
  .zones { grid-template-columns: repeat(4, 1fr); }
  .zone { grid-template-columns: 1fr; }
  .zone .fee, .zone small:last-child { text-align: left; }
  .foot__in { grid-template-columns: 1.2fr 1fr; }
  .warn { grid-column: 1 / -1; }
  .cartbar { display: none; }
  .foot { padding-bottom: 40px; }
  .drawer__panel { left: auto; top: 0; width: 460px; height: 100dvh; max-height: none; border-radius: 0; transform: translateX(100%); }
  .sheet__panel { left: 50%; top: 50%; bottom: auto; width: 820px; max-width: calc(100% - 48px); max-height: calc(100dvh - 48px); border-radius: 24px; transform: translate(-50%, -45%); opacity: 0; transition: transform .25s, opacity .25s; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
  .sheet.is-open .sheet__panel { transform: translate(-50%, -50%); opacity: 1; }
  .pd__art, .pd__art.has-photo { height: auto; min-height: 440px; aspect-ratio: auto; }
  .pd__body { overflow-y: auto; }
  .pd__art .art-svg { height: 360px; }
  .pd__body { padding: 32px 28px; display: flex; flex-direction: column; }
  .pd__buy { margin-top: auto; padding-top: 24px; }
}
@media (min-width: 1200px) {
  .grid, .skeleton-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
