/* Burger BUU. Every value comes from the Paper file's tokens (page "Marka"); the
   names match the tokens one to one. Phone first at 390; desktop from 1024. */

@font-face {
  font-family: "Sofia Sans Condensed";
  src: url(../fonts/sofia-sans-condensed-800-latin.woff2) format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sofia Sans Condensed";
  src: url(../fonts/sofia-sans-condensed-800-latin-ext.woff2) format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-0130, U+0132-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sofia Sans";
  src: url(../fonts/sofia-sans-latin.woff2) format("woff2");
  font-weight: 1 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sofia Sans";
  src: url(../fonts/sofia-sans-latin-ext.woff2) format("woff2");
  font-weight: 1 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-0130, U+0132-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --color-paper: #ffffff;
  --color-ink: #1d1d1d;
  --color-bun: #ad2a30;
  --color-bun-deep: #8e2227;
  --color-flame: #fc8205;
  --color-muted: #5c5c5c;
  --color-fill: #f2f2f2;
  --color-line: rgb(29 29 29 / 12%);
  --color-line-on-ink: rgb(255 255 255 / 16%);
  --color-scrim: rgb(29 29 29 / 56%);

  --font-display: "Sofia Sans Condensed", "Arial Narrow", sans-serif;
  --font-sans: "Sofia Sans", system-ui, sans-serif;

  --text-label: 14px;   --leading-label: 18px;
  --text-meta: 15px;    --leading-meta: 22px;
  --text-body: 17px;    --leading-body: 26px;
  --text-lead: 18px;    --leading-lead: 24px;
  --text-title: 24px;   --leading-title: 26px;
  --text-section-phone: 36px; --leading-section-phone: 34px;
  --text-section: 56px; --leading-section: 52px;
  --text-hero-phone: 50px; --leading-hero-phone: 48px;
  --text-hero: 64px;    --leading-hero: 60px;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-display: 800;

  --tracking-none: 0em;
  --tracking-display: -0.005em;
  --tracking-label: 0.08em;

  --opacity-muted: 64%;
  --opacity-disabled: 40%;

  --container-content: 1200px;
  --container-prose: 560px;

  --spacing-1: 4px;
  --spacing-2: 8px;
  --spacing-3: 12px;
  --spacing-4: 16px;
  --spacing-5: 20px;
  --spacing-6: 24px;
  --spacing-8: 32px;
  --spacing-10: 40px;
  --spacing-12: 48px;
  --spacing-16: 64px;
  --spacing-24: 96px;
  --spacing-gutter: 20px;
  --spacing-tap: 48px;

  --radius-none: 0px;
  --radius-control: 2px;

  /* Motion (DESIGN.md, animation table) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Layout values that change at 1024 */
  --pad: var(--spacing-gutter);
  --row-photo: 112px;
  --add: 44px;
  --sheet-pad: var(--spacing-gutter);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 140px; }
/* With items in the cart the fixed order bar covers the bottom: a focused row scrolls clear of it. */
html:has(> body.has-bar) { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font: var(--font-weight-regular) var(--text-body) / var(--leading-body) var(--font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body.has-bar { padding-bottom: 88px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
p, li { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.on-ink :focus-visible { outline-color: var(--color-paper); }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.nw { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.icon { width: 24px; height: 24px; flex-shrink: 0; }
.icon-20 { width: 20px; height: 20px; }
.icon-22 { width: 22px; height: 22px; }
.icon-18 { width: 18px; height: 18px; }

.wrap { width: min(var(--container-content), 100% - 2 * var(--pad)); margin-inline: auto; }

/* Type */
.display { font-family: var(--font-display); font-weight: var(--font-weight-display); letter-spacing: var(--tracking-display); }
/* 50/48 from 360 up; below that the size follows the width so “PEYNİRLİ BURGER” stays on one line */
.h-hero { font-size: min(var(--text-hero-phone), (100vw - 2 * var(--pad)) * 0.156); line-height: 0.96em; }
.h-section { font-size: var(--text-section-phone); line-height: var(--leading-section-phone); }
.t-label { font-size: var(--text-label); line-height: var(--leading-label); font-weight: var(--font-weight-semibold); letter-spacing: var(--tracking-label); }
.t-meta { font-size: var(--text-meta); line-height: var(--leading-meta); }
.t-body { font-size: var(--text-body); line-height: var(--leading-body); }
.t-lead { font-size: var(--text-lead); line-height: var(--leading-lead); }
.t-title { font-size: var(--text-title); line-height: var(--leading-title); }
.muted { color: var(--color-muted); }
.w-medium { font-weight: var(--font-weight-medium); }
.w-semi { font-weight: var(--font-weight-semibold); }
.w-bold { font-weight: var(--font-weight-bold); }

/* Controls */
.btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-3);
  height: 52px; padding-inline: var(--spacing-5);
  background: var(--color-bun); color: var(--color-paper);
  border-radius: var(--radius-control);
  font-size: var(--text-lead); line-height: var(--leading-lead); font-weight: var(--font-weight-bold);
  width: 100%;
}
.btn .lead-in { display: flex; align-items: center; gap: var(--spacing-3); }
.btn .icon-wa { width: 24px; height: 24px; }
.link {
  display: inline-flex; align-items: center; gap: var(--spacing-2);
  min-height: var(--spacing-tap);
  font-size: var(--text-body); line-height: var(--leading-body); font-weight: var(--font-weight-medium);
}
.link .icon { width: 20px; height: 20px; }
.tel { display: inline-flex; align-items: center; gap: var(--spacing-2); min-height: var(--spacing-tap); font-variant-numeric: tabular-nums; }
.square {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: var(--spacing-tap); height: var(--spacing-tap);
  border: 1px solid var(--color-ink); border-radius: var(--radius-control);
}
.square .icon { width: 20px; height: 20px; }
/* The minus at quantity 1: shown, but plainly off */
.square[aria-disabled="true"] { opacity: var(--opacity-disabled); cursor: default; }

/* Header */
.site-head { display: flex; align-items: flex-start; justify-content: space-between; padding-block: var(--spacing-4); }
.site-head .logo { width: 94px; height: 128px; }
.site-head nav { display: flex; align-items: center; gap: var(--spacing-8); }
.call-short { font-size: 16px; line-height: 20px; font-weight: var(--font-weight-semibold); }
.nav-wide { display: none; }
.head-cart { display: none; }

/* Hero */
.hero-photo { width: 100%; height: 292px; object-fit: cover; object-position: 50% 50%; background: var(--color-fill); }
.hero-row { display: flex; flex-direction: column; gap: var(--spacing-4); padding-top: var(--spacing-5); padding-bottom: var(--spacing-6); }
.hero-side { display: flex; flex-direction: column; gap: var(--spacing-4); }
.hero-side .btn { order: 0; }
.hero-line { order: 1; color: var(--color-muted); }
.hero-link { order: 2; align-self: flex-start; }
.br-phone { display: inline; }

/* Visit */
.visit { padding-block: var(--spacing-12); }
.visit-panel { background: var(--color-fill); padding: var(--spacing-5); display: flex; flex-direction: column; gap: var(--spacing-5); }
.visit-photo { display: none; }
.addr { display: flex; flex-direction: column; gap: var(--spacing-1); }
.addr-line { font-size: var(--text-lead); line-height: 28px; font-weight: var(--font-weight-medium); }
.addr .tel { font-size: var(--text-lead); line-height: 28px; font-weight: var(--font-weight-medium); align-self: flex-start; }
.addr .tel .icon { width: 20px; height: 20px; }
.facts { margin: 0; border-top: 1px solid var(--color-line); }
.facts div { display: flex; justify-content: space-between; gap: var(--spacing-4); padding-block: var(--spacing-3); border-bottom: 1px solid var(--color-line); font-size: var(--text-meta); line-height: var(--leading-meta); }
.facts dt, .facts dd { margin: 0; }
.facts dd { flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* Menu */
.menu { padding-top: var(--spacing-8); }
.menu-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--spacing-4); padding-bottom: var(--spacing-5); }
.menu-note-wide { display: none; }
.menu-bar { position: sticky; top: 0; z-index: 5; padding-top: var(--spacing-4); background: var(--color-paper); border-bottom: 1px solid var(--color-line); }
.tabs { display: flex; gap: var(--spacing-2); overflow-x: auto; padding-block: var(--spacing-3); padding-inline: var(--pad); scrollbar-width: none; scroll-padding-inline: var(--pad); }
.tabs::-webkit-scrollbar { display: none; }
.tabs:empty { display: none; }
.tab {
  display: flex; align-items: center; flex-shrink: 0; height: 44px; padding-inline: var(--spacing-4);
  border: 1px solid var(--color-line); border-radius: var(--radius-control);
  font-size: var(--text-meta); line-height: var(--leading-meta); font-weight: var(--font-weight-semibold); white-space: nowrap;
}
.tab[aria-selected="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.cat-note { padding: var(--spacing-3) var(--pad) 0; font-size: var(--text-meta); line-height: var(--leading-meta); color: var(--color-muted); }
.cat-pics { display: grid; grid-template-columns: 1fr; }
.cat-pics.two { grid-template-columns: 1fr 1fr; }
/* height: auto, so the ratio wins over the width and height attributes, which only reserve the space */
.cat-pics img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--color-fill); }
.cat-pics.two img { aspect-ratio: 1; }
.rows { list-style: none; margin: 0; padding: 0; }
/* A line in place of the menu: loading, no script, or the data did not come */
.menu-msg { display: flex; flex-direction: column; align-items: flex-start; padding: var(--spacing-6) var(--pad); }
.menu-msg .tel { font-size: var(--text-lead); line-height: 28px; font-weight: var(--font-weight-medium); }
.menu-msg .tel .icon { width: 20px; height: 20px; }
/* Until the menu lands it holds about a screen, so the place section below does not jump */
.menu-loading { min-height: 100svh; }

.row {
  display: flex; gap: var(--spacing-4); width: 100%;
  padding: var(--spacing-4) var(--pad);
  border-bottom: 1px solid var(--color-line);
}
.row-text { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; }
.row-name { font-size: var(--text-lead); line-height: var(--leading-lead); font-weight: var(--font-weight-bold); }
.row-desc { margin-top: var(--spacing-1); color: var(--color-muted); }
.row-price { margin-top: var(--spacing-2); font-size: var(--text-lead); line-height: var(--leading-lead); font-weight: var(--font-weight-bold); font-variant-numeric: tabular-nums; }
.row-pic { position: relative; flex-shrink: 0; width: var(--row-photo); height: var(--row-photo); }
.row-pic img { width: 100%; height: 100%; object-fit: cover; background: var(--color-fill); }
.add {
  position: absolute; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  width: var(--add); height: var(--add);
  background: var(--color-paper);
  border-left: 1.5px solid var(--color-ink); border-top: 1.5px solid var(--color-ink);
}
.add .icon { width: 22px; height: 22px; }
.add .count { display: none; }
.in-cart .add { background: var(--color-ink); color: var(--color-paper); }
.in-cart .add .icon { display: none; }
.in-cart .add .count { display: block; font-size: var(--text-lead); line-height: var(--leading-lead); font-weight: var(--font-weight-bold); font-variant-numeric: tabular-nums; }

.trow { align-items: center; min-height: 68px; padding-block: var(--spacing-3); }
.trow .row-name { font-size: var(--text-body); line-height: var(--leading-body); font-weight: var(--font-weight-semibold); }
.trow .row-desc { margin-top: 0; font-size: var(--text-meta); line-height: var(--leading-meta); }
.trow .row-price { margin-top: 0; font-size: var(--text-body); line-height: var(--leading-body); font-weight: var(--font-weight-semibold); flex-shrink: 0; }
.trow .add { position: static; flex-shrink: 0; border: 1px solid var(--color-ink); border-radius: var(--radius-control); }
.trow.in-cart .add { border-color: var(--color-ink); }

/* Place */
.place { padding-top: var(--spacing-12); }
.place-photo { width: 100%; height: 488px; object-fit: cover; background: var(--color-fill); }
.place-text { display: flex; flex-direction: column; gap: var(--spacing-4); padding-top: var(--spacing-6); padding-bottom: var(--spacing-10); }
.place-text .link .icon-ig { width: 20px; height: 20px; }

/* Not found (404.html): the hero photograph, the line and one way back */
.lost-in { display: flex; flex-direction: column; gap: var(--spacing-4); padding-top: var(--spacing-6); padding-bottom: var(--spacing-12); }
.lost-in .t-body { max-width: var(--container-prose); }
.lost-in .btn { width: min(100%, 360px); margin-top: var(--spacing-2); }

/* Close */
.close { background: var(--color-ink); color: var(--color-paper); }
.close-in { display: flex; flex-direction: column; gap: var(--spacing-8); padding-top: var(--spacing-12); padding-bottom: var(--spacing-8); }
.close .logo { width: 200px; height: 273px; }
.close-col { display: flex; flex-direction: column; gap: var(--spacing-8); }
.close-group { display: flex; flex-direction: column; gap: var(--spacing-3); }
.close-addr { font-size: var(--text-lead); line-height: var(--leading-lead); font-weight: var(--font-weight-bold); }
.close .tel { font-size: var(--text-lead); line-height: var(--leading-lead); font-weight: var(--font-weight-bold); align-self: flex-start; }
.close .tel .icon { width: 20px; height: 20px; }
.close-foot { border-top: 1px solid var(--color-line-on-ink); padding-top: var(--spacing-4); font-size: 14px; line-height: var(--leading-label); font-weight: var(--font-weight-semibold); }
.apps { display: flex; gap: var(--spacing-3); }

/* Order bar */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: var(--color-paper); border-top: 1px solid var(--color-line);
  padding-top: var(--spacing-3); padding-bottom: max(var(--spacing-6), env(safe-area-inset-bottom));
}
.bar[hidden] { display: none; }
.bar .btn .icon { width: 22px; height: 22px; }

/* Sheet: steps, choice, cart, confirmation. Full screen on the phone, 480 drawer on desktop. */
.sheet {
  position: fixed; inset: 0; margin: 0; padding: 0; border: 0;
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  background: var(--color-paper); color: var(--color-ink);
  overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: var(--color-scrim); }
.sheet-view { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.sheet-top { flex-shrink: 0; display: flex; flex-direction: column; gap: var(--spacing-2); padding: var(--spacing-2) var(--sheet-pad) var(--spacing-3); border-bottom: 1px solid var(--color-line); }
.sheet-bar { display: flex; align-items: center; height: var(--spacing-tap); }
.sheet-top.slim { padding-block: 0; gap: 0; }
.sheet-bar .t-label { flex: 1 1 auto; }
.icon-btn { display: flex; align-items: center; flex-shrink: 0; height: var(--spacing-tap); width: var(--spacing-tap); }
.icon-btn.back { width: 44px; }
.icon-btn.x { justify-content: flex-end; margin-left: auto; }
.progress { display: flex; gap: var(--spacing-1); }
.progress span { flex: 1 1 0; height: 4px; background: var(--color-line); }
.progress span.on { background: var(--color-ink); }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.sheet-foot { flex-shrink: 0; display: flex; flex-direction: column; gap: var(--spacing-3); padding: var(--spacing-3) var(--sheet-pad) max(var(--spacing-4), env(safe-area-inset-bottom)); border-top: 1px solid var(--color-line); background: var(--color-paper); }
.sheet-foot .link { align-self: center; }
.sheet-foot .link.start { align-self: flex-start; }
.sheet-pic { width: 100%; height: 248px; object-fit: cover; background: var(--color-fill); }
.sheet-intro { display: flex; flex-direction: column; gap: var(--spacing-2); padding: var(--spacing-5) var(--sheet-pad) 0; }
.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--spacing-3); }
.title-row .price { flex-shrink: 0; }
.sheet-block { display: flex; flex-direction: column; gap: var(--spacing-4); padding: var(--spacing-5) var(--sheet-pad); }
.step-title { padding: var(--spacing-5) var(--sheet-pad) var(--spacing-3); }

.field { display: flex; flex-direction: column; gap: var(--spacing-2); }
.input {
  display: flex; align-items: center; gap: var(--spacing-3);
  min-height: 52px; padding-inline: var(--spacing-4);
  border: 1px solid var(--color-ink); border-radius: var(--radius-control);
  background: var(--color-paper);
}
.input input, .input textarea { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0; font-size: var(--text-body); line-height: var(--leading-body); }
.input:focus-within { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.input ::placeholder { color: var(--color-muted); opacity: 1; }
.input.area { align-items: flex-start; height: 104px; padding-block: var(--spacing-3); }
.input.area textarea { height: 100%; resize: none; }
.input .icon { width: 20px; height: 20px; }
.field.bad .input { border: 2px solid var(--color-bun-deep); padding-inline: calc(var(--spacing-4) - 1px); }
.err { color: var(--color-bun-deep); font-size: var(--text-meta); line-height: var(--leading-meta); font-weight: var(--font-weight-semibold); }
.err:empty { display: none; }

.qty { display: flex; align-items: center; justify-content: space-between; }
.stepper { display: flex; align-items: center; }
.stepper .n { width: 48px; text-align: center; font-size: var(--text-lead); line-height: var(--leading-lead); font-weight: var(--font-weight-bold); font-variant-numeric: tabular-nums; }
.stepper.small .n { width: 36px; }

.opt { display: flex; align-items: center; gap: var(--spacing-4); min-height: 56px; padding-inline: var(--sheet-pad); border-bottom: 1px solid var(--color-line); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.opt .box { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; border: 2px solid var(--color-ink); border-radius: var(--radius-control); color: var(--color-paper); }
.opt .box .icon { width: 18px; height: 18px; visibility: hidden; }
.opt input:checked + .box { background: var(--color-ink); }
.opt input:checked + .box .icon { visibility: visible; }
.opt input:focus-visible + .box { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.opt .name { flex: 1 1 0; }
.opt input:checked ~ .name { font-weight: var(--font-weight-semibold); }
.opt .price { font-weight: var(--font-weight-semibold); font-variant-numeric: tabular-nums; }

.ticket-mini { display: flex; flex-direction: column; gap: var(--spacing-1); padding-bottom: var(--spacing-2); border-bottom: 1px dashed var(--color-ink); }
.ticket-mini div, .tline { display: flex; justify-content: space-between; gap: var(--spacing-3); }
.ticket-mini div span:last-child, .tline span:last-child { flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* Cart */
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: var(--spacing-4) var(--sheet-pad) var(--spacing-3); flex-shrink: 0; border-bottom: 1px solid var(--color-line); }
.cart-box { display: flex; flex-direction: column; margin: var(--spacing-4) var(--sheet-pad) 0; padding: var(--spacing-2) var(--spacing-4) var(--spacing-4); border: 1px solid var(--color-ink); }
.cline { display: flex; flex-direction: column; gap: var(--spacing-2); padding-block: var(--spacing-3); border-bottom: 1px solid var(--color-line); }
.cline-top, .cline-bottom { display: flex; justify-content: space-between; gap: var(--spacing-3); }
.cline-bottom { align-items: center; }
.cline-top span:last-child { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; margin-top: var(--spacing-1); padding-top: var(--spacing-3); border-top: 1px dashed var(--color-ink); font-size: var(--text-title); line-height: var(--leading-title); font-weight: var(--font-weight-bold); font-variant-numeric: tabular-nums; }
.form { display: flex; flex-direction: column; gap: var(--spacing-5); padding: var(--spacing-6) var(--sheet-pad) 0; }
.seg { display: flex; border: 1px solid var(--color-ink); border-radius: var(--radius-control); overflow: clip; }
.seg label { position: relative; flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: var(--spacing-2); height: 52px; cursor: pointer; font-weight: var(--font-weight-semibold); -webkit-tap-highlight-color: transparent; }
.seg label .icon { width: 20px; height: 20px; }
.cover { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--color-ink); color: var(--color-paper); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--color-ink); outline-offset: -4px; outline-color: var(--color-paper); }
.pickup-panel { background: var(--color-fill); padding: var(--spacing-4); display: flex; flex-direction: column; gap: var(--spacing-1); }
.send { display: flex; flex-direction: column; gap: var(--spacing-3); padding: var(--spacing-8) var(--sheet-pad) var(--spacing-10); }
.empty { display: flex; flex-direction: column; gap: var(--spacing-3); padding: var(--spacing-8) var(--sheet-pad); }

/* Confirmation */
.confirm-head { display: flex; align-items: center; justify-content: space-between; padding: var(--spacing-4) var(--sheet-pad); flex-shrink: 0; border-bottom: 1px solid var(--color-line); }
.confirm-head img { width: 47px; height: 64px; }
.confirm { display: flex; flex-direction: column; gap: var(--spacing-5); padding: var(--spacing-4) var(--sheet-pad) var(--spacing-6); }
.ticket { display: flex; flex-direction: column; gap: var(--spacing-2); padding: var(--spacing-4); border: 1px solid var(--color-ink); }
.ticket-code { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: var(--spacing-2); border-bottom: 1px dashed var(--color-ink); }
.ticket-code .code { font-size: var(--text-title); line-height: var(--leading-title); font-variant-numeric: tabular-nums; }
.ticket .note { margin-top: -4px; }
.ticket .total { margin-top: 0; padding-top: var(--spacing-2); }

.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Desktop */
@media (min-width: 1024px) {
  :root {
    --pad: 40px;
    --row-photo: 136px;
    --add: 48px;
    --sheet-pad: var(--spacing-8);
  }
  html { scroll-padding-top: 96px; }
  .h-hero { font-size: var(--text-hero); line-height: var(--leading-hero); }
  .h-section { font-size: var(--text-section); line-height: var(--leading-section); }

  .site-head { padding-top: var(--spacing-6); padding-bottom: var(--spacing-4); }
  .site-head nav { height: var(--spacing-tap); }
  .nav-wide { display: inline-flex; }
  .call-short { display: none; }
  .site-head .nav-wide { font-size: var(--text-body); line-height: var(--leading-body); font-weight: var(--font-weight-medium); min-height: var(--spacing-tap); align-items: center; }
  .site-head .tel.nav-wide { font-weight: var(--font-weight-semibold); }
  .site-head .tel .icon { width: 20px; height: 20px; }
  .head-cart:not([hidden]) { display: inline-flex; align-items: center; gap: var(--spacing-2); height: var(--spacing-tap); padding-inline: var(--spacing-4); border: 1px solid var(--color-ink); border-radius: var(--radius-control); font-weight: var(--font-weight-semibold); }
  .head-cart .icon { width: 20px; height: 20px; }

  .hero-photo { height: 480px; }
  .hero-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--spacing-6); padding-top: var(--spacing-10); padding-bottom: var(--spacing-2); }
  .hero-side { display: grid; grid-template-columns: 360px auto; grid-template-areas: "line line" "btn link"; column-gap: var(--spacing-8); row-gap: var(--spacing-6); align-content: start; align-items: center; padding-top: var(--spacing-1); }
  .hero-line { grid-area: line; font-size: var(--text-lead); line-height: 26px; }
  .hero-side .btn { grid-area: btn; }
  .hero-link { grid-area: link; margin-top: 0; }
  .br-phone { display: none; }

  /* The board's gaps, moved into the section whose ground ends: hero 8 + 88 = 96 above the panel, 48 + 72 = 120 above MENÜ */
  .visit { padding-top: 88px; padding-bottom: var(--spacing-12); }
  .visit-in { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-6); }
  .visit-panel { padding: var(--spacing-10); }
  .visit-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
  .addr-line { font-size: var(--text-title); line-height: 32px; font-weight: var(--font-weight-bold); }
  .addr .landmark { font-size: var(--text-body); line-height: var(--leading-body); }
  .addr .tel { font-size: var(--text-title); line-height: 32px; font-weight: var(--font-weight-bold); }
  .addr .tel .icon { width: 24px; height: 24px; }
  .facts div { font-size: var(--text-body); line-height: var(--leading-body); }
  .facts dd { font-weight: var(--font-weight-semibold); }

  .menu { padding-top: 72px; }
  .menu-bar { display: contents; }
  .menu-head { padding-bottom: var(--spacing-5); }
  .menu-note-phone { display: none; }
  .menu-note-wide { display: block; }
  .menu-bar { position: static; border-bottom: 0; }
  .tabs { padding: 0 0 var(--spacing-3); border-bottom: 1px solid var(--color-ink); overflow: visible; flex-wrap: wrap; }
  .tab { font-size: var(--text-body); line-height: var(--leading-body); }
  .cat-note { display: none; }
  .menu-msg { padding-inline: 0; }
  .cat { padding-top: 0; }
  .rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--spacing-6); }
  .row { padding: var(--spacing-5) 0; gap: var(--spacing-5); }
  .row .row-desc { min-height: 52px; }
  .trow .row-desc { min-height: 0; }
  .trow { padding-block: var(--spacing-3); gap: var(--spacing-4); }
  .cat.has-pics { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--spacing-6); align-items: start; padding-top: var(--spacing-6); }
  .cat.has-pics .cat-pics { position: sticky; top: var(--spacing-6); gap: var(--spacing-6); grid-template-columns: 1fr; }
  .cat.has-pics .cat-pics.two img { aspect-ratio: 3 / 2; }
  .cat.has-pics .rows { grid-template-columns: 1fr; }
  .cat.has-pics .trow:first-child { padding-top: 0; }

  .place { padding-top: 120px; padding-bottom: 120px; }
  .place-in { display: grid; grid-template-columns: 476px 1fr; gap: var(--spacing-6); align-items: end; }
  .place-in .place-text { order: 0; padding-block: 0; }
  .place-in .place-photo { order: 1; height: 560px; }
  .place-text p { font-size: var(--text-lead); line-height: 26px; }
  .br-wide { display: inline; }

  .close-in { flex-direction: row; justify-content: space-between; align-items: flex-end; padding-top: var(--spacing-24); padding-bottom: var(--spacing-12); }
  .close .logo { width: 264px; height: 360px; }
  .close-col { width: calc(50% - var(--spacing-3)); gap: var(--spacing-6); }
  .close-group { gap: var(--spacing-2); }
  .close-addr, .close .tel { font-size: var(--text-title); line-height: 32px; }

  .bar .wrap { display: flex; justify-content: flex-end; }
  .bar .btn { width: 360px; }

  .sheet { left: auto; right: 0; width: 480px; }
  .sheet-foot { padding-top: var(--spacing-4); padding-bottom: var(--spacing-6); }
  .send { padding-bottom: var(--spacing-6); }
}
@media (max-width: 1023.98px) {
  .wrap-tabs, .menu-wrap, .place-in { width: 100%; }
  .hero { min-height: calc(100svh - 160px); }
  .place-in { display: flex; flex-direction: column; }
  .place-text { padding-inline: var(--pad); }
  .br-wide { display: none; }
}

/* Motion: transform and opacity only. Four items survived the gate; the table is in DESIGN.md. */
/* 1. Press feedback */
.btn, .tab, .square, .add, .icon-btn, .seg label { transition: transform 160ms var(--ease-out); }
.btn:active, .square:active, .icon-btn:active, .tab:active, .seg label:active, .row:active .add { transform: scale(0.97); }
.square[aria-disabled="true"]:active { transform: none; }
/* 2. The sheet enters from its edge (bottom on the phone, right on desktop) and leaves the same way */
.sheet[open] { animation: sheet-in 280ms var(--ease-drawer); }
.sheet.closing { animation: sheet-out 220ms var(--ease-drawer) forwards; }
.sheet[open]::backdrop { animation: fade-in 280ms var(--ease-drawer); }
.sheet.closing::backdrop { animation: fade-out 220ms var(--ease-drawer) forwards; }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@media (min-width: 1024px) {
  .sheet[open] { animation-name: drawer-in; }
  .sheet.closing { animation-name: drawer-out; }
}
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
/* 3. The order bar rises from the bottom edge when the first item lands */
.bar:not([hidden]).enter { animation: sheet-in 240ms var(--ease-drawer); }
/* 4. The count and total settle in place; tabular figures keep the width still */
.tick { display: inline-block; animation: tick 160ms var(--ease-out); }
@keyframes tick { from { opacity: 0; transform: translateY(4px); } }
/* 5. The hero's text enters once on load; the photograph (the largest paint) does not move */
html.m-enter [data-enter] .hero-row h1, html.m-enter [data-enter] .hero-side { animation: hero-in 360ms var(--ease-out) both; }
html.m-enter [data-enter] .hero-side { animation-delay: 60ms; }
@keyframes hero-in { from { opacity: 0; transform: translateY(12px); } }
@media (hover: hover) and (pointer: fine) {
  .tab:not([aria-selected="true"]):hover { border-color: var(--color-ink); }
  .btn:hover { background: var(--color-bun-deep); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .tab, .square, .add, .icon-btn, .seg label { transition: none; }
  .btn:active, .square:active, .icon-btn:active, .tab:active, .seg label:active, .row:active .add { transform: none; }
  .sheet[open] { animation: fade-in 160ms linear; }
  .sheet.closing { animation: fade-out 120ms linear forwards; }
  .bar:not([hidden]).enter { animation: fade-in 160ms linear; }
  .tick { animation-name: tick-fade; }
  html.m-enter [data-enter] .hero-row h1, html.m-enter [data-enter] .hero-side { animation: fade-in 200ms linear both; }
  @keyframes tick-fade { from { opacity: 0; } }
}

/* Sheet extras */
.h-sheet { font-size: var(--text-section-phone); line-height: var(--leading-section-phone); }
fieldset.bare { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.bare.field { display: block; }
fieldset.bare.field legend { padding: 0; margin-bottom: var(--spacing-2); }
.opt-ask { padding: var(--spacing-3) var(--sheet-pad) var(--spacing-4); border-bottom: 1px solid var(--color-line); }
.opt-ask[hidden] { display: none; }
.empty .btn { margin-top: var(--spacing-2); }
@media (min-width: 1024px) {
  .send { position: sticky; bottom: 0; background: var(--color-paper); border-top: 1px solid var(--color-line); padding: var(--spacing-4) var(--sheet-pad) var(--spacing-6); margin-top: var(--spacing-8); }
}

/* Apple and Yandex directions, under the Google link. */
.maps-alt { margin-top: calc(-1 * var(--spacing-3)); }
.maps-alt a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* Footer links: suggestions and complaints, personal data. */
.close-links { display: flex; flex-wrap: wrap; gap: var(--spacing-2) var(--spacing-5); font-size: 14px; }
.close-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
