:root {
  --bg: #f6efe4;
  --surface: #fffaf2;
  --surface-2: #efe4d3;
  --ink: #1f1a16;
  --ink-2: #4a4038;
  --muted: #7a6d60;
  --line: #e2d5c2;
  --wood: #c48a4f;
  --wood-dark: #8a5a2b;
  --fire: #d9481c;
  --fire-hover: #bf3b12;
  --charcoal: #1b1613;
  --charcoal-2: #2a221d;
  --ok: #2f8f4e;
  --closed: #b23a2a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(40, 25, 10, .06), 0 8px 24px rgba(40, 25, 10, .08);
  --shadow-lg: 0 24px 60px rgba(20, 10, 0, .28);
  /* Unbounded — заголовки й ціни (широкі округлі форми, як у логотипі GRUPKA);
     Arsenal — текст і кнопки (український гуманістичний гротеск, А. Шевченко);
     Caveat — рукописні акценти, як на крейдяній дошці з меню */
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --sans: 'Arsenal', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --hand: 'Caveat', 'Segoe Print', 'Comic Sans MS', cursive;
  --topbar: 64px;
  --cats: 56px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + var(--cats) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
/* іконки; карти (Leaflet) малюють свої SVG із власними розмірами — їх не чіпаємо */
svg:not(.leaflet-container *) { width: 1em; height: 1em; fill: currentColor; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--fire); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .1s, box-shadow .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--fire { background: var(--fire); color: #fff; box-shadow: 0 6px 18px rgba(217, 72, 28, .35); }
.btn--fire:hover { background: var(--fire-hover); }
.btn--fire:disabled { background: #c9b9a8; box-shadow: none; cursor: not-allowed; }
.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .22); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--line { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--ink-2); }

.iconbtn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2);
  display: grid; place-items: center; font-size: 22px; color: var(--ink);
}
.iconbtn:hover { background: var(--line); }

/* ── Topbar ─────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar);
  background: rgba(27, 22, 19, .92); color: #fff;
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; font-family: var(--display); font-weight: 700; letter-spacing: .06em; font-size: 16px; line-height: 1.15; }
.brand__text small { font-family: var(--hand); font-weight: 500; letter-spacing: 0; font-size: 16px; line-height: 1; opacity: .8; }
.topnav { display: none; gap: 4px; }
.topnav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; opacity: .85; }
.topnav a:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.topbar__phone { display: none; align-items: center; gap: 8px; border: 1.5px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; }
.topbar__phone:hover { background: rgba(255, 255, 255, .08); }
.topbar__phone svg { color: var(--wood); font-size: 18px; }
.cartbtn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--fire); color: #fff; display: grid; place-items: center; font-size: 22px;
}
.cartbtn:hover { background: var(--fire-hover); }
.cartbtn__count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: #fff; color: var(--fire); font-size: 12px; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--charcoal);
}
.cartbtn.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }
@media (min-width: 900px) {
  .topnav { display: flex; }
  .topbar__phone { display: inline-flex; }
}

/* ── Hero ─────────────────────────────── */
.hero {
  position: relative; isolation: isolate; color: #fff; background: var(--charcoal);
  min-height: min(88svh, 760px); display: flex; align-items: flex-end;
  padding: 72px 0 36px;
}
.hero picture, .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture { z-index: -2; }
.hero__content { position: relative; }
.hero__bg { object-fit: cover; object-position: 60% 50%; z-index: -2; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 14, 10, .35) 0%, rgba(20, 14, 10, .15) 35%, rgba(20, 14, 10, .85) 78%, var(--charcoal) 100%),
    linear-gradient(90deg, rgba(20, 14, 10, .55) 0%, rgba(20, 14, 10, 0) 60%);
}
.hero__eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #f3c89a; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 7.2vw, 60px); letter-spacing: -.02em; line-height: 1.08; max-width: 15ch; }
.hero h1 em { font-family: var(--hand); font-style: normal; font-weight: 700; color: #f6b27a; font-size: .95em; letter-spacing: 0; line-height: 1; display: inline-block; margin-top: 8px; transform: rotate(-2deg); transform-origin: left; }
.hero__lead { max-width: 52ch; font-size: clamp(16px, 2.2vw, 18px); color: rgba(255, 255, 255, .86); margin: 18px 0 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__spots { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__spots li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); font-size: 14px;
  backdrop-filter: blur(6px);
}
.hero__spots .status { color: rgba(255, 255, 255, .75); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #9a8f85; }
.dot.is-open { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }
.dot.is-closed { background: #f87171; }

/* ── Perks ─────────────────────────────── */
.perks { background: var(--charcoal); color: #fff; padding: 8px 0 40px; }
.perks__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.perk { padding: 16px; border-radius: var(--radius-sm); background: var(--charcoal-2); border: 1px solid rgba(255, 255, 255, .06); }
.perk b { display: block; font-size: 15px; margin-bottom: 4px; color: #f3c89a; }
.perk span { font-size: 13.5px; color: rgba(255, 255, 255, .7); line-height: 1.45; }
@media (min-width: 900px) { .perks__grid { grid-template-columns: repeat(4, 1fr); } .perk { padding: 20px; } }

/* ── Sections ─────────────────────────────── */
.section-head { padding: 56px 0 8px; max-width: 640px; }
.section-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4.2vw, 40px); letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin: 10px 0 0; font-size: 17px; }
.section-head--light p { color: rgba(255, 255, 255, .72); }

/* ── Category tabs ─────────────────────────────── */
.cats {
  position: sticky; top: var(--topbar); z-index: 30; height: var(--cats);
  background: rgba(246, 239, 228, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); margin-top: 20px;
}
.cats__inner { height: 100%; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cats__inner::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; text-decoration: none; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 15px;
  color: var(--ink-2); transition: background .15s, color .15s;
}
.cats a:hover { background: var(--surface-2); }
.cats a[aria-current="true"] { background: var(--ink); color: #fff; }

.cat { padding-top: 40px; }
.cat__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.cat__head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3.4vw, 30px); letter-spacing: -.02em; }
.cat__head p { margin: 0; font-family: var(--hand); font-size: 22px; line-height: 1.15; color: var(--wood-dark); }

/* ── Pizza cards ─────────────────────────────── */
.pgrid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 620px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .pgrid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.pcard {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(40, 25, 10, .06), 0 16px 36px rgba(40, 25, 10, .14); }
.pcard.is-hidden { display: none; }
.pcard__img { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 250, 242, .94); color: var(--ink); }
.tag--hot { background: #fde3d6; color: #a3330f; }
.tag--veg { background: #e2f1df; color: #2a6a33; }
.tag--lent { background: #e7ecf6; color: #2f4677; }
.tag--special { background: var(--fire); color: #fff; }
.pcard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pcard h3 { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.pcard__body > p { margin: 6px 0 16px; color: var(--muted); font-size: 15.5px; line-height: 1.45; flex: 1; }
.pcard__foot { display: flex; flex-direction: column; gap: 12px; }
.pcard__buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-family: var(--display); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.sizes { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 999px; align-self: flex-start; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sizes label span { display: block; padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); transition: background .15s, color .15s; }
.sizes input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.sizes input:focus-visible + span { outline: 3px solid var(--fire); outline-offset: 1px; }
.sizes--single span { padding: 6px 16px; font-size: 14px; font-weight: 700; color: var(--muted); }

/* ── Add button ─────────────────────────────── */
.add {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
  transition: background .15s, transform .1s;
}
.add:hover { background: #000; }
.add:active { transform: scale(.97); }
.add__plus { font-size: 20px; line-height: 1; margin-top: -2px; }
.add__qty { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--fire); color: #fff; font-size: 12px; display: grid; place-items: center; }
.add.in-cart { background: var(--wood-dark); }

/* ── Frozen banner ─────────────────────────────── */
.frozen {
  margin-top: 20px; padding: 18px 20px; border-radius: var(--radius); border: 1.5px dashed var(--wood);
  display: flex; flex-direction: column; gap: 4px; background: rgba(196, 138, 79, .07);
}
.frozen b { font-family: var(--hand); font-weight: 700; font-size: 28px; line-height: 1.1; }
.frozen span { color: var(--ink-2); font-size: 15px; }

/* ── Combos ─────────────────────────────── */
.combo-wrap { display: grid; gap: 16px; }
@media (min-width: 980px) { .combo-wrap { grid-template-columns: 360px 1fr; gap: 22px; align-items: start; } .combo-wrap .catpic { position: sticky; top: calc(var(--topbar) + var(--cats) + 16px); } }
.combos { display: grid; gap: 14px; }
@media (min-width: 620px) { .combos { grid-template-columns: repeat(2, 1fr); } }
.combo { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.combo__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.combo h3 { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.combo ul { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.combo li { font-size: 14.5px; padding: 4px 10px; border-radius: 999px; background: rgba(196, 138, 79, .13); color: var(--ink-2); }
.combo .add { align-self: flex-start; }

/* ── Pictures ─────────────────────────────── */
.catpic { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.catpic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.catpic--tall img { aspect-ratio: 4 / 3; }
@media (min-width: 980px) { .catpic--tall img { aspect-ratio: 3 / 4; } }

/* ── Rows (simple items) ─────────────────────────────── */
.rows-wrap { display: grid; gap: 18px; }
@media (min-width: 900px) { .rows-wrap { grid-template-columns: 1fr 380px; gap: 28px; align-items: start; } }
.pics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
@media (min-width: 900px) { .pics { grid-template-columns: 1fr; } }
.rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.rows--narrow { max-width: 760px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row__main b { font-weight: 700; }
.row__main small { color: var(--muted); font-size: 14.5px; }
.row__price { font-family: var(--display); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .add { padding: 0 14px; min-height: 40px; font-size: 14px; }
.row .add__label { display: none; }
@media (min-width: 520px) { .row .add__label { display: inline; } }
.rows__group { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--wood-dark); margin: 22px 0 10px; }
.rows__group:first-child { margin-top: 0; }
.rows__note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

/* ── How it works ─────────────────────────────── */
.how { background: var(--charcoal); color: #fff; margin-top: 72px; padding-bottom: 56px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: var(--charcoal-2); border-radius: var(--radius); padding: 22px; border: 1px solid rgba(255, 255, 255, .06); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fire); font-weight: 800; margin-bottom: 14px; }
.steps b { display: block; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -.01em; margin-bottom: 6px; }
.steps span { color: rgba(255, 255, 255, .72); font-size: 15px; }
.how__note { margin: 22px 0 0; color: rgba(255, 255, 255, .72); }
.how__note a { color: #f3c89a; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ── Contacts ─────────────────────────────── */
.contacts { padding-bottom: 56px; }
.spots { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 760px) { .spots { grid-template-columns: repeat(2, 1fr); } }
.spot { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.spot h3 { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.spot p { margin: 8px 0 0; color: var(--ink-2); }
.spot__hours .status { margin-left: 6px; }
.spot__phone { font-family: var(--display); font-size: 18px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.spot__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.status { font-size: 13px; font-weight: 700; white-space: nowrap; }
.status.is-open { color: var(--ok); }
.status.is-closed { color: var(--closed); }
.hero__spots .status.is-open { color: #86efac; }
.hero__spots .status.is-closed { color: #fca5a5; }
.insta {
  margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius);
  background: linear-gradient(120deg, #f6d6b8, #f2c6a8 40%, #e9b7c4); text-decoration: none; color: var(--ink);
}
.insta svg { font-size: 28px; }

/* ── Footer ─────────────────────────────── */
.footer { background: var(--charcoal); color: rgba(255, 255, 255, .7); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer p { margin: 0; }
.brand--footer { color: #fff; margin: 0; }
.brand--footer img { width: 40px; height: 40px; }
.footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .footer { padding-bottom: 28px; } }

/* ── Drawer ─────────────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(15, 10, 6, .55); animation: fade .2s ease; }
.drawer__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92svh; display: flex; flex-direction: column;
  background: var(--bg); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg); outline: none;
  animation: up .28s cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 760px) {
  .drawer__panel { left: auto; top: 0; width: 460px; max-height: none; border-radius: 0; animation: slide .28s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
@keyframes slide { from { transform: translateX(100%); } }
.drawer__head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { flex: 1; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.drawer__foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.totals { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.totals div { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; }
.totals b { font-family: var(--display); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.totals small { color: var(--muted); font-size: 13px; }

.empty { text-align: center; padding: 32px 8px; color: var(--muted); }
.empty img { margin: 0 auto 16px; opacity: .9; border-radius: 50%; }
.empty b { color: var(--ink); font-size: 18px; }

.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border-radius: 14px; padding: 10px; }
.line__img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.line__ph { width: 56px; height: 56px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: 24px; }
.line__name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.line__meta { color: var(--muted); font-size: 13px; }
.line__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line__sum { font-weight: 800; font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; background: var(--surface-2); border-radius: 999px; }
.stepper button { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 50%; font-size: 18px; font-weight: 700; }
.stepper button:hover { background: var(--line); }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.upsell { margin-top: 20px; }
.upsell p { margin: 0 0 8px; font-weight: 700; font-size: 14px; color: var(--muted); }
.upsell__row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.upsell__row button {
  flex: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 12px;
  text-align: left; font-size: 13.5px; line-height: 1.3;
}
.upsell__row button:hover { border-color: var(--wood); }
.upsell__row b { display: block; }

/* ── Checkout form ─────────────────────────────── */
.checkout { display: flex; flex-direction: column; gap: 14px; }
.field { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span small { font-weight: 500; color: var(--muted); }
.field > span, .field legend { font-weight: 700; font-size: 14px; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); font-size: 16px; transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wood); box-shadow: 0 0 0 3px rgba(196, 138, 79, .2); }
.field input[aria-invalid="true"] { border-color: var(--closed); }
.field select { margin-top: 8px; }
.grid2 { display: grid; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
@media (min-width: 420px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.hint { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.hint.is-warn { color: var(--closed); font-weight: 600; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--surface-2); border-radius: 14px; }
.seg--3 { grid-template-columns: repeat(3, 1fr); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 42px; border-radius: 10px; font-weight: 700; font-size: 14.5px; color: var(--muted); transition: background .15s, color .15s; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg input:focus-visible + span { outline: 3px solid var(--fire); }

.spotpick { display: grid; gap: 8px; }
.spotpick label { position: relative; }
.spotpick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.spotpick input + span { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); }
.spotpick small { color: var(--muted); font-size: 13px; text-align: right; }
.spotpick .status { display: block; margin-top: 2px; }
.spotpick input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.spotpick input:focus-visible + span { outline: 3px solid var(--fire); }

.check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; accent-color: var(--fire); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formerror { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: #fde8e4; color: #8f2414; font-weight: 600; font-size: 14px; }

/* ── Done ─────────────────────────────── */
.done { text-align: center; padding: 32px 16px; }
.done__icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 40px; animation: pop .4s ease; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } }
.done h3 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.done p { color: var(--ink-2); margin: 12px auto 0; max-width: 34ch; }
.done__id { font-weight: 800; font-size: 18px; color: var(--ink) !important; }
.done__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

/* ── Toast ─────────────────────────────── */
.toast {
  position: fixed; left: 50%; top: calc(var(--topbar) + 12px); z-index: 70;
  transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body.lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ── Demo preview of operator message ─────────────────────────────── */
.preview { margin: 20px auto 0; max-width: 380px; text-align: left; background: var(--surface); border-radius: 14px; border: 1px solid var(--line); }
.preview summary { cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: 14px; }
.preview pre { margin: 0; padding: 0 14px 14px; white-space: pre-wrap; font: 13px/1.5 var(--sans); color: var(--ink-2); }

/* ── Mobile: compact horizontal pizza cards ─────────────────────────────── */
@media (max-width: 619px) {
  .hero__cta .btn { flex: 1 1 140px; }
  .pgrid { gap: 12px; }
  .pcard { flex-direction: row; border-radius: 16px; }
  .pcard:hover { transform: none; }
  .pcard__img { width: 116px; flex: none; aspect-ratio: auto; }
  .pcard__img img { position: absolute; inset: 0; }
  .tags { top: 6px; left: 6px; right: 6px; gap: 4px; }
  .tag { font-size: 10.5px; padding: 3px 7px; }
  .pcard__body { padding: 12px 12px 12px 14px; min-width: 0; }
  .pcard h3 { font-size: 16px; }
  .pcard__body > p { font-size: 14px; margin: 4px 0 10px; line-height: 1.35; }
  .pcard__foot { gap: 8px; }
  .sizes label span, .sizes--single span { padding: 5px 12px; font-size: 13px; }
  .pcard__buy { gap: 8px; }
  .pcard .price { font-size: 17px; }
  .pcard .add { min-height: 40px; padding: 0 14px; font-size: 14px; }
}
@media (max-width: 359px) {
  .pcard .add__label { display: none; }
}

/* ── Demo banner (SITE.demo = true) ─────────────────────────────── */
.demo-banner { background: #fff3c4; color: #5c4400; text-align: center; font-size: 13.5px; font-weight: 600; padding: 8px 16px; }
.demo-banner a { color: inherit; white-space: nowrap; }

/* ── Нижня панель: «Подзвонити» + кошик ─────────────────────────────── */
.mbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 35;
  display: flex; gap: 8px; pointer-events: none;
}
.mbar > * { pointer-events: auto; }
.mbar button {
  min-height: 56px; border: 0; border-radius: 999px; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg);
}
.mbar__call { flex: 1; justify-content: center; background: var(--ink); color: #fff; padding: 0 18px; }
.mbar__call svg { font-size: 20px; color: #f3c89a; }
.mbar__cart { flex: 1.6; background: var(--fire); color: #fff; padding: 0 16px 0 8px; animation: rise .3s ease; }
.mbar__count { min-width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .18); display: grid; place-items: center; }
.mbar__sum { font-variant-numeric: tabular-nums; }
.mbar__go { margin-left: auto; }
@keyframes rise { from { transform: translateY(120%); } }
/* коли в кошику щось є — дзвінок стискається до круглої кнопки */
.mbar:has(.mbar__cart:not([hidden])) .mbar__call { flex: 0 0 56px; padding: 0; }
.mbar:has(.mbar__cart:not([hidden])) .mbar__call span { display: none; }
@media (min-width: 900px) {
  .mbar { left: auto; right: 24px; bottom: 24px; width: 380px; }
  .mbar__call { display: none !important; }
}
body.lock .mbar { display: none; }

/* ── Вікно «Куди подзвонити?» ─────────────────────────────── */
.callsheet {
  border: 0; padding: 0; background: transparent; max-width: 420px; width: calc(100% - 24px);
  margin: auto auto calc(12px + env(safe-area-inset-bottom));
}
@media (min-width: 600px) { .callsheet { margin: auto; } }
.callsheet::backdrop { background: rgba(15, 10, 6, .55); }
.callsheet__inner { background: var(--bg); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-lg); animation: up .25s ease; }
.callsheet h2 { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; margin-bottom: 14px; }
.callsheet__list { display: grid; gap: 10px; margin-bottom: 12px; }
.callsheet__item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px;
  border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); text-decoration: none;
}
.callsheet__item:hover { border-color: var(--ink-2); }
.callsheet__item b { display: block; font-size: 16px; }
.callsheet__item small { color: var(--muted); font-size: 13px; }
.callsheet__item .status { display: block; }
.callsheet__num { font-family: var(--display); font-weight: 600; flex: none; background: var(--fire); color: #fff; font-weight: 800; padding: 10px 14px; border-radius: 999px; font-variant-numeric: tabular-nums; }

/* ── Хіт сезону ─────────────────────────────── */
.tag--hit { background: linear-gradient(135deg, #f0702e, var(--fire)); color: #fff; box-shadow: 0 2px 8px rgba(217, 72, 28, .35); }
.row .tag--hit { font-size: 11px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; box-shadow: none; }

.pcard.is-hit, .combo.is-hit { box-shadow: 0 0 0 2px var(--fire), 0 12px 32px rgba(217, 72, 28, .18); }
.combo.is-hit { position: relative; padding-top: 30px; }
.combo.is-hit > .tag--hit { position: absolute; top: -13px; left: 16px; font-size: 13px; padding: 5px 12px; }
.row.is-hit { background: linear-gradient(90deg, rgba(217, 72, 28, .08), transparent 60%); box-shadow: inset 3px 0 0 var(--fire); }

/* стрічка «Хіти сезону» на початку меню */
.hits {
  margin-top: 28px; padding: 18px; border-radius: var(--radius);
  background: radial-gradient(120% 140% at 0% 0%, #3a2418 0%, var(--charcoal) 60%); color: #fff;
}
.hits h2 { font-family: var(--hand); font-weight: 700; font-size: 32px; line-height: 1; margin-bottom: 12px; }
.hits__row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px 2px; scroll-snap-type: x mandatory; }
.hits__row::-webkit-scrollbar { display: none; }
.hit {
  flex: 0 0 min(280px, 78%); scroll-snap-align: start; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px; border-radius: 16px; text-decoration: none;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); transition: background .15s;
}
.hit:hover { background: rgba(255, 255, 255, .13); }
.hit img, .hit__icon { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.hit__icon { display: grid; place-items: center; font-size: 30px; background: rgba(255, 255, 255, .08); }
.hit__text { display: flex; flex-direction: column; min-width: 0; }
.hit__text b { font-family: var(--display); font-weight: 600; font-size: 14px; line-height: 1.25; }
.hit__text span { color: #f6b27a; font-weight: 700; font-size: 14px; margin-top: 2px; }
.hit__go { margin-left: auto; color: #f6b27a; font-weight: 800; }

/* підсвітка позиції після переходу зі стрічки хітів */
.pcard:target, .combo:target, .row:target { animation: flash 1.8s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px #f6b27a, 0 12px 32px rgba(217, 72, 28, .3); } }

/* фото комбо (якщо завантажене в адмінці) — на всю ширину зверху картки */
.combo__img { display: block; width: calc(100% + 36px); height: auto; max-width: none; margin: -18px -18px 0; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-2); }
.combo.is-hit.has-img { padding-top: 18px; }
.combo.is-hit.has-img > .tag--hit { z-index: 1; }
/* мініатюра в рядку (фритюр, салати) */
.row__img { width: 56px; height: 56px; flex: none; border-radius: 12px; object-fit: cover; background: var(--surface-2); margin-left: -6px; }

/* рукописний підзаголовок під H1 */
.hero__tagline {
  margin: 6px 0 0; font-family: var(--hand); font-weight: 700; color: #f6b27a;
  font-size: clamp(30px, 6.6vw, 56px); line-height: 1; transform: rotate(-2deg); transform-origin: left;
}

/* ── Часті питання ─────────────────────────────── */
.faq { padding-bottom: 8px; }
.faq__list { display: grid; gap: 10px; margin-top: 20px; max-width: 860px; }
.faq__item { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -.01em; line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center;
  font-family: var(--sans); font-weight: 700; font-size: 18px; transition: transform .2s;
}
.faq__item[open] summary::after { content: '−'; }
.faq__item p { margin: 0; padding: 0 18px 18px; color: var(--ink-2); line-height: 1.55; }
.faq__item a { color: var(--wood-dark); font-weight: 700; }

/* кошик у режимі «замовлення телефоном» */
.phonenote { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: #fff3c4; color: #5c4400; font-size: 15px; line-height: 1.4; }

/* ── Карта точки ─────────────────────────────── */
/* адреси в героєві — клікабельні: відкривають карту */
.hero__spots li { padding: 0; }
.hero__spots li button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; background: none;
  color: inherit; font: inherit; border-radius: inherit; cursor: pointer;
}
.hero__spots li:hover { background: rgba(255, 255, 255, .18); }
.hero__spots li svg { font-size: 15px; color: #f3c89a; margin-left: -2px; }

/* прев'ю карти в картці точки (iframe лише для показу, клік відкриває велике вікно) */
.spot__map { position: relative; margin-top: 14px; height: 170px; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.spot__map iframe { width: 100%; height: calc(100% + 60px); margin-top: -30px; border: 0; pointer-events: none; display: block; }
.spot__map button {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 12px; cursor: pointer;
  display: flex; align-items: flex-end; background: linear-gradient(180deg, transparent 50%, rgba(27, 22, 19, .45));
}
.spot__map-cta {
  display: inline-flex; align-items: center; gap: 6px; background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
  transition: transform .15s;
}
.spot__map-cta svg { color: var(--fire); font-size: 17px; }
.spot__map button:hover .spot__map-cta { transform: translateY(-2px); }

/* «на карті» у виборі точки для самовивозу */
.spotpick__name { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.spotpick__map {
  display: inline-flex; align-items: center; gap: 3px; border: 0; background: none; padding: 2px 0; cursor: pointer;
  color: var(--wood-dark); font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px;
}
.spotpick__map svg { font-size: 14px; }

/* велике вікно з картою */
.mapsheet { border: 0; padding: 0; background: transparent; width: calc(100% - 24px); max-width: 760px; margin: auto auto calc(12px + env(safe-area-inset-bottom)); }
@media (min-width: 600px) { .mapsheet { margin: auto; } }
.mapsheet::backdrop { background: rgba(15, 10, 6, .6); }
.mapsheet__inner { background: var(--bg); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); animation: up .25s ease; }
.mapsheet__head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 12px; }
.mapsheet__head > div { flex: 1; min-width: 0; }
.mapsheet__head h2 { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.mapsheet__head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.mapsheet__frame { height: min(58svh, 480px); background: var(--surface-2); }
.mapsheet__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.mapsheet__actions { display: flex; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
.mapsheet__actions .btn { flex: 1 1 180px; }

/* ── Телефон: шухляда над клавіатурою, компактна під час набору ── */
@media (max-width: 759px) {
  .drawer__panel {
    bottom: var(--vv-bottom, 0px);
    max-height: min(92svh, calc(var(--vv-h, 100svh) - 8px));
    transition: bottom .15s ease;
  }
  /* поки відкрита клавіатура — уся видима висота під форму */
  .drawer.is-typing .drawer__panel { height: calc(var(--vv-h, 100svh) - 8px); max-height: none; border-radius: 16px 16px 0 0; }
  .drawer.is-typing .drawer__head { padding: 8px 12px 6px; }
  .drawer.is-typing .drawer__head h2 { font-size: 16px; }
  .drawer.is-typing .iconbtn { width: 34px; height: 34px; font-size: 18px; }
  .drawer.is-typing .drawer__body { padding-top: 10px; padding-bottom: 24px; }
  .drawer.is-typing .totals { display: none; }
  .drawer.is-typing .drawer__foot { padding: 6px 12px; }
  .drawer.is-typing .drawer__foot .btn { min-height: 46px; }
}

.pcard__img.is-placeholder img { object-fit: contain; padding: 18%; opacity: .55; }

/* ── Точка доставки на карті ─────────────────────────────── */
.field > label:first-child { font-weight: 700; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.field > label:first-child small, .field > span small { font-weight: 500; color: var(--muted); }
.geo { margin-top: 8px; }
.geo__open {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px;
  border: 1.5px dashed var(--wood); background: rgba(196, 138, 79, .08); color: var(--wood-dark); font-weight: 700; font-size: 15px;
}
.geo__open svg { color: var(--fire); font-size: 18px; }
.geo__open:hover { background: rgba(196, 138, 79, .16); }
.geo__picked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; border-radius: 12px; background: #e6f4ea; color: #1f5e33; font-weight: 600; font-size: 14.5px; }
.geo__picked[data-zone="outside"] { background: #fff3c4; color: #5c4400; }
.geo__actions { display: inline-flex; gap: 10px; margin-left: auto; }
.geo__actions button { border: 0; background: none; padding: 0; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.field .check { margin-top: 10px; }

.geosheet .mapsheet__head p { font-size: 14.5px; }
.geosheet__map { height: min(52svh, 460px); background: var(--surface-2); }
.geosheet__status { margin: 0; padding: 12px 16px 0; font-weight: 700; font-size: 15px; color: var(--muted); }
.geosheet__status.is-city { color: var(--ok); }
.geosheet__status.is-outside { color: #8a5a00; }
.geopin { background: none; border: 0; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.geosheet .leaflet-container { font: inherit; }

/* центральний пін: карта рухається під ним */
.geosheet__map { position: relative; }
.cpin-wrap { position: absolute; inset: 0; z-index: 450; pointer-events: none; }
.cpin { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -100%); }
.cpin__icon { position: relative; z-index: 1; display: block; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); transition: transform .18s ease; }
.cpin__shadow {
  position: absolute; left: 50%; bottom: -3px; width: 14px; height: 6px; border-radius: 50%;
  background: rgba(0, 0, 0, .35); transform: translateX(-50%); transition: transform .18s ease, opacity .18s ease;
}
.geosheet__map.is-moving .cpin__icon { transform: translateY(-10px); }
.geosheet__map.is-moving .cpin__shadow { transform: translateX(-50%) scale(1.5); opacity: .55; }
.cpin__hint {
  position: absolute; left: 50%; top: calc(50% + 14px); transform: translateX(-50%); max-width: 82%;
  padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 700;
  text-align: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); animation: hintPulse 2.4s ease-in-out infinite;
}
@keyframes hintPulse { 50% { transform: translateX(-50%) translateY(3px); } }
.geosheet__map .leaflet-grab { cursor: grab; }
.geosheet__map .leaflet-dragging .leaflet-grab { cursor: grabbing; }
.geo { display: flex; flex-wrap: wrap; gap: 8px; }
.geo__picked { flex-basis: 100%; }
.geo__last { border-style: solid; background: var(--surface); }

/* адреса в картці піцерії — відкриває карту */
.spot__addr {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; margin: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: left; text-decoration: underline; text-decoration-color: rgba(196, 138, 79, .45);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.spot__addr svg { color: var(--fire); font-size: 20px; flex: none; }
.spot__addr:hover { text-decoration-color: var(--fire); }

/* «на карті» у вікні «Куди подзвонити?» */
.callsheet__map {
  display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; border: 0; background: none; padding: 2px 0; cursor: pointer;
  color: var(--wood-dark); font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px;
}
.callsheet__map svg { font-size: 14px; color: var(--fire); }
.callsheet__num { text-decoration: none; }
