/* The app's own fonts on app.ruvo.ac (app/build.mjs → web/assets/fonts): no font comes from another server, so a tablet
   on the restaurant's Wi-Fi asks nothing of Google and the screens look the same offline. Variable fonts — every
   weight in one file — in the three alphabets of the app: Latin (English), Latin Extended (Serbian: č ć đ š ž) and
   Cyrillic (Russian, Serbian). From Fontsource (@fontsource-variable/onest 5.3.1, unbounded 5.3.0, jetbrains-mono
   5.3.0); SIL Open Font License 1.1 — LICENSE-onest, LICENSE-unbounded, LICENSE-jetbrains-mono. */
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/onest-cyrillic.68e5e01d62.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/onest-latin-ext.14e7d3079b.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,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: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/onest-latin.052df74533.woff2) format("woff2"); 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: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(fonts/unbounded-cyrillic.e30bf6a606.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(fonts/unbounded-latin-ext.845e1c9fe2.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,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: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(fonts/unbounded-latin.22f9b928aa.woff2) format("woff2"); 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; }

/* The page of orders in the back office's look (13 November, 17:44, the owner of three looks drawn: «Сайт для гостей — А»,
   the one «как бэкофис»; before it, 16:32: «Он не подходит под наш стиль бэка — надо переделывать»). The app's own
   palette and corners (app/src/styles/00-tokens.css): its greys from the blue's hue, white zones with a line between
   them, the header in the app's shade with a breath of the colour at its top, the keys and the choices pills, the
   pictures in soft frames, a sheet's top rounded as the iPhone's. One colour — RUVO's enamel blue (22:49: «Цвета я
   возвращал бы просто наши фирменные»; a page that asks for another — the demo bank — has look.js put it in: --plate as
   it is; --accent-*-day / -night: the fill that reads on the page, the ink on it, the same colour as words, its light
   shade) — for what is chosen and every action. The page follows the phone's light or dark look, as the back office and
   the kitchen. Onest for every word; Unbounded on an enamel plate (an order's number) and on the stories. */
:root {
  --paper: #FFFFFF; /* the page and its zones (the app's surface) */
  --ground: #EAEDF3; /* the app's shade: the bands, a zone at the side */
  --ground-2: #DEE1E9;
  --soft: #F5F7FA; /* a picture's frame, a quiet field */
  --chip: #E4E8EF; /* a chip, a quiet key, a stepper's track (the app's surface-3) */
  --ink: #131824;
  --ink-2: #49505E;
  --ink-3: #5D6370;
  --line: #D5D9E1;
  --line-2: #BFC4CF;
  --ok: #007440;
  --ok-soft: #CBEFD6;
  --bad: #BE2E31;
  --bad-soft: #FEDBD7;
  --warn: #805202;
  --warn-soft: #FAE0C1;
  --scrim: rgb(19 24 36 / 0.42);
  --lift: 0 1px 2px rgb(19 24 36 / 0.08); /* a white pill on the shade */
  --shadow-sheet: 0 -8px 40px rgb(19 24 36 / 0.18);
  --shadow-float: 0 8px 24px rgb(19 24 36 / 0.2), 0 2px 6px rgb(19 24 36 / 0.08); /* the basket over the menu */
  --pill: #FFFFFF; /* a key on the header's shade: lighter than the shade in both themes */
  --pill-press: #DCE0E8;
  --seg-track: rgb(118 118 128 / 0.12); /* the iPhone's segmented control */
  --seg-on: #FFFFFF;
  --on: var(--paper);

  --plate: #1E44B0;
  --plate-ink: #FFFFFF;
  --art: #F4F1EC; /* the paper the drawn dishes lie on — the same by day and by night (the drawings are made on it) */
  --accent: var(--accent-day, #1E44B0);
  --accent-ink: var(--accent-ink-day, #FFFFFF);
  --accent-text: var(--accent-text-day, #1E44B0);
  --accent-soft: var(--accent-soft-day, #D8E5FF); /* the app's accent-soft (the brand book, 15 November) */

  /* the header's shade, as the back office's: the colour's breath at its top */
  --head-a: #E6EAF2;
  --head-b: #F0F2F7;

  --font-ui: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-plate: "Unbounded", "Onest", system-ui, sans-serif;

  /* the app's corners: a small frame · a picture, a field · a card · a sheet · a pill */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;
  --key: 52px; /* a big key's height: the basket, «Dodaj», «Poruči» */
  --bar-h: 56px; /* the top bar: a phone's; on a wide screen 64, and the columns at the side stand under it */
  --gutter: 16px;
  color-scheme: light;
}
@supports (color: color-mix(in oklab, red, blue)) {
  :root {
    --head-a: color-mix(in oklab, var(--ground), var(--accent) 4%);
    --head-b: color-mix(in oklab, var(--ground), var(--paper) 35%);
  }
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 960px) { :root { --bar-h: 64px; } }
/* (the audit В4) the dark look: the phone's dark unless the guest chose «Svetla», and «Tamna» whatever the phone
   (theme.js: <html data-theme>) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161920;
    --ground: #0E1016;
    --ground-2: #080A0E;
    --soft: #1C1F27;
    --chip: #262A33;
    --ink: #ECEEF4;
    --ink-2: #B5BBC5;
    --ink-3: #969BA7;
    --line: #272B34;
    --line-2: #373C46;
    --ok: #5AC485;
    --ok-soft: #083A20;
    --bad: #F17074;
    --bad-soft: #4E201E;
    --warn: #EFB146;
    --warn-soft: #442A00;
    --scrim: rgb(0 0 0 / 0.62);
    --lift: 0 1px 2px rgb(0 0 0 / 0.45);
    --shadow-sheet: 0 -8px 40px rgb(0 0 0 / 0.6);
    --shadow-float: 0 10px 30px rgb(0 0 0 / 0.6);
    --pill: #262A33;
    --pill-press: #373C46;
    --seg-track: rgb(118 118 128 / 0.24);
    --seg-on: #383D47;
    --on: #2C313C;
    --head-a: #10131A;
    --head-b: #12151C;
    --accent: var(--accent-night, #81A8FF);
    --accent-ink: var(--accent-ink-night, #0E1016);
    --accent-text: var(--accent-text-night, #81A8FF);
    --accent-soft: var(--accent-soft-night, #1E2F54);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #161920;
  --ground: #0E1016;
  --ground-2: #080A0E;
  --soft: #1C1F27;
  --chip: #262A33;
  --ink: #ECEEF4;
  --ink-2: #B5BBC5;
  --ink-3: #969BA7;
  --line: #272B34;
  --line-2: #373C46;
  --ok: #5AC485;
  --ok-soft: #083A20;
  --bad: #F17074;
  --bad-soft: #4E201E;
  --warn: #EFB146;
  --warn-soft: #442A00;
  --scrim: rgb(0 0 0 / 0.62);
  --lift: 0 1px 2px rgb(0 0 0 / 0.45);
  --shadow-sheet: 0 -8px 40px rgb(0 0 0 / 0.6);
  --shadow-float: 0 10px 30px rgb(0 0 0 / 0.6);
  --pill: #262A33;
  --pill-press: #373C46;
  --seg-track: rgb(118 118 128 / 0.24);
  --seg-on: #383D47;
  --on: #2C313C;
  --head-a: #10131A;
  --head-b: #12151C;
  --accent: var(--accent-night, #81A8FF);
  --accent-ink: var(--accent-ink-night, #0E1016);
  --accent-text: var(--accent-text-night, #81A8FF);
  --accent-soft: var(--accent-soft-night, #1E2F54);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  @supports (color: color-mix(in oklab, red, blue)) {
    :root:not([data-theme="light"]) {
      --head-a: color-mix(in oklab, var(--ground), var(--accent) 4%);
      --head-b: color-mix(in oklab, var(--ground), var(--paper) 35%);
    }
  }
}
@supports (color: color-mix(in oklab, red, blue)) {
  :root[data-theme="dark"] {
    --head-a: color-mix(in oklab, var(--ground), var(--accent) 4%);
    --head-b: color-mix(in oklab, var(--ground), var(--paper) 35%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.45 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
body.locked { overflow: hidden; }
a { color: var(--accent-text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-appearance: none; appearance: none; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { flex: none; display: block; }

.page { min-height: 100vh; min-height: 100dvh; padding-bottom: 104px; }
.narrow { max-width: 560px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- the top of every page: the back office's header ----------
   the app's shade with the colour's breath at its top, a line under it; at its left the way back — a round white key
   (on a wide screen with its words) — and the restaurant's logo, else its name; at its right white pills: the address
   (a wide screen), the guest's account, the language */
.topbar { background: linear-gradient(180deg, var(--head-a), var(--head-b)); box-shadow: inset 0 -1px 0 0 var(--line-2); padding-top: env(safe-area-inset-top); }
.topbar-in { display: flex; align-items: center; gap: 8px; min-height: var(--bar-h); padding: 0 var(--gutter); }
@media (min-width: 960px) { .topbar-in { gap: 10px; } }
/* a key on the shade: a white pill, a breath of shadow under it */
.tool {
  position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding: 0 14px; border: 0; border-radius: var(--r-pill);
  background: var(--pill); color: var(--ink); box-shadow: var(--lift);
  font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.tool:hover { background: var(--pill-press); }
.tool:focus-within:has(select:focus-visible) { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.back { padding: 0; width: 44px; }
.back .back-text { display: none; }
@media (min-width: 960px) {
  .back { width: auto; padding: 0 16px 0 12px; }
  .back .back-text { display: inline; }
}
.brand { display: inline-flex; align-items: center; min-width: 0; min-height: 44px; margin-left: 4px; color: var(--ink); text-decoration: none; }
/* the restaurant's logo in the top bar — with the plate its tone asks for (ui/bits.jsx, Mark) */
.top-mark .mark-logo { max-width: 140px; max-height: 32px; }
.top-mark.mark-light, .top-mark.mark-dark { padding: 5px 9px; border-radius: 9px; }
.brand-name { overflow: hidden; font-size: 16px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; text-overflow: ellipsis; }
/* RUVO's own plate (the list of restaurants): the app's enamel wordmark */
.wordmark {
  position: relative; display: inline-block; flex: none; padding: 7px 11px 6px calc(11px + 0.08em); border-radius: 7px;
  background: #1E44B0; color: #FFFFFF; font-family: var(--font-plate); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: 0.08em;
}
.wordmark::after { content: ""; position: absolute; inset: 2px; border: 1.5px solid rgb(255 255 255 / 0.92); border-radius: 5px; pointer-events: none; }

/* ---------- keys ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--key); padding: 0 22px; border: 0; border-radius: var(--r-pill);
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer;
}
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-main { background: var(--accent); color: var(--accent-ink); }
.btn-main:not(:disabled):active { filter: brightness(0.92); }
.btn-quiet { background: var(--chip); color: var(--ink); }
.btn-quiet:not(:disabled):hover { background: var(--ground-2); }
.btn-quiet:not(:disabled):active { filter: brightness(0.95); }
.btn.wide { display: flex; width: 100%; }
.btn.big { min-height: 56px; font-size: 17px; }
.grow { flex: 1; }

/* ---------- fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; min-width: 0; }
.field-label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: var(--paper); color: var(--ink); font-size: 16px;
}
.field textarea { resize: vertical; min-height: 76px; line-height: 1.4; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:focus, .field textarea:focus { border-color: var(--accent-text); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field-hint { font-size: 13px; color: var(--ink-3); }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- a choice of two or three: the iPhone's segmented control ---------- */
.seg { display: flex; gap: 0; min-width: 0; padding: 3px; border-radius: var(--r-pill); background: var(--seg-track); }
.seg-b {
  display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 38px; padding: 0 12px;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.seg-b span { overflow: hidden; text-overflow: ellipsis; }
/* (the robot: 42 high on the menu's head) the finger's 44 — an invisible reach above and under */
.seg-b { position: relative; }
.seg-b::after { content: ''; position: absolute; inset: -3px 0; }
.seg-b:not(.on):hover { color: var(--ink); }
.seg-b.on { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 2px rgb(19 24 36 / 0.12), 0 1px 6px rgb(19 24 36 / 0.06); }
.seg-b:disabled { opacity: 0.45; cursor: default; }

/* ---------- more, fewer: a pill with its two round keys ---------- */
.stepper { display: inline-flex; flex: none; align-items: center; gap: 0; height: 44px; padding: 0; border-radius: var(--r-pill); background: var(--chip); }
.step { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--accent-text); cursor: pointer; }
.step:not(:disabled):hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.step:disabled { color: var(--ink-3); opacity: 0.5; cursor: default; }
.step-n { min-width: 26px; text-align: center; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- waiting, and what went wrong ---------- */
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 56px 0; color: var(--ink-2); }
.dot-pulse { width: 10px; height: 10px; border-radius: var(--r-pill); background: var(--accent); animation: pulse 0.9s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: 0.25; } to { opacity: 1; } }
.problem { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px var(--gutter); text-align: center; }
.problem .ic { color: var(--bad); }
.problem p { margin: 0; max-width: 36ch; }
.gone { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px 0; text-align: center; }
.gone p { margin: 0; max-width: 36ch; font-size: 17px; }
.gone .plate { width: 100%; text-align: left; }
.empty { color: var(--ink-2); }

.foot { max-width: 680px; margin: 48px auto 0; padding: 11px var(--gutter) 0; text-align: center; font-size: 13px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-3); text-decoration: none; } /* (the robot: the link 17 high — the finger's 44) */
.foot a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* The plate: Belgrade's enamel street sign, as RUVO's own wordmark draws it — a field of one colour with corners a little
   round, a line of the same white set in from its edge (its corners round by as much less as it is set in, so both share
   one centre), the name in large letters, the street under it. The restaurant's colour, as it is, by day and at night. */
.plate {
  position: relative; display: block; margin: 0;
  padding: 26px 26px 22px; border-radius: 14px;
  background: var(--plate); color: var(--plate-ink);
}
.plate::before {
  content: ""; position: absolute; inset: 6px; pointer-events: none;
  border: 2px solid currentColor; border-radius: 8px;
}
.plate-name {
  display: block; font-family: var(--font-plate); font-weight: 600;
  font-size: clamp(28px, 8.2vw, 46px); line-height: 1.06; letter-spacing: -0.015em;
  text-wrap: balance; overflow-wrap: anywhere;
}
.plate-line { display: block; margin-top: 10px; font-size: 15px; font-weight: 500; line-height: 1.3; opacity: 0.92; }

/* in the list of restaurants */
.plate-sm { padding: 18px 20px 16px; border-radius: 12px; }
.plate-sm::before { inset: 5px; border-width: 2px; border-radius: 7px; }
.plate-sm .plate-name { font-size: clamp(21px, 5.8vw, 27px); }
.plate-sm .plate-line { margin-top: 6px; font-size: 14px; }

/* an order's number: the house-number plate under the street's */
.plate-num { display: inline-flex; flex-direction: column; align-items: center; min-width: 156px; padding: 24px 30px 18px; text-align: center; }
.plate-num .plate-name { font-size: 68px; font-weight: 700; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.plate-num .plate-line { margin-top: 12px; font-size: 14px; }

/* ---------- the header's shade going on under the top bar (13 November, the back office's look) ----------
   On the list of restaurants (and on a restaurant's page on a phone) the top bar and the head under it are one block in
   the app's shade, the colour's breath at its top, one line under the whole: the bar keeps the shade's first tone, the
   head runs from it to the last. */
.page-home .topbar { background: var(--head-a); box-shadow: none; }

/* ---------- a restaurant's page as the kitchen's screen (13 November, 23:11: «Давай второй вариант»; 14 November,
   00:15: «Последний вариант good… все отступы между всеми блоками были одинаковыми, закругления были одинаковыми,
   фоновый цвет блоков был логичным») ----------
   The page's measures, one for each thing:
   · one gap between every two blocks, at the page's edges and between the columns — 12 on a phone, 16 on a computer;
   · one corner for every block (20); a picture or a card inside a block — the block's corner less its padding (12), so
     the corners go round together;
   · three grounds: the page's (the ground), a block on it (the paper), a card or a picture's plate inside a block (the
     soft; a key or a chip — the chip). The enamel blue and the ink only for what is new, a promotion and the actions.
   The top bar on the page's ground, no line: the way back, the language, the account — round keys; a computer keeps it
   at the top (a key and the gap over and under it), the basket's side under it. */
.page-shop { --gap: 12px; --bar: 76px; --r-block: 20px; --r-inner: 12px; background: var(--ground); }
@media (min-width: 960px) { .page-shop { --gap: 16px; } }
body:has(.page-shop) { background: var(--ground); }
.topbar.full { background: var(--ground); box-shadow: none; }
.topbar.full .back { width: 44px; padding: 0; }
.topbar.full .back .back-text { display: none; }
.open-state { display: inline-flex; align-items: center; gap: 8px; }
.open-mark { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.is-open .open-mark { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
@media (min-width: 960px) {
  .topbar.full { position: sticky; top: 0; z-index: 10; }
  .topbar.full .topbar-in { min-height: var(--bar); gap: 12px; padding: 0 var(--gap); }
  /* (02:48: «на уровне с кнопкой возврата… чем-то забить») the way back with its words; the menu's search in the middle */
  .topbar.full .back { width: auto; padding: 0 16px 0 12px; }
  .topbar.full .back .back-text { display: inline; }
}
.topbar-mid { display: none; }
/* (03:12: «Давай поиск сдвинем в левый край, чтобы он шел сразу после кнопки возврата») the search right after «‹ Svi
   restorani», one gap between them */
@media (min-width: 960px) { .topbar-mid { display: flex; flex: 1; justify-content: flex-start; min-width: 0; margin-left: calc(var(--gap) - 12px); } }
.menu-search { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; height: 44px; padding: 0 6px 0 16px; border-radius: var(--r-pill); background: var(--pill); box-shadow: var(--lift); color: var(--ink-3); cursor: text; }
.menu-search:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.menu-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; outline: none; }
.menu-search input::placeholder { color: var(--ink-3); }
.menu-search input::-webkit-search-cancel-button { display: none; }
.menu-search-x { display: grid; flex: none; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--chip); color: var(--ink); cursor: pointer; }
.found-none { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 4px 24px; color: var(--ink-2); font-size: 16px; }
.found-none p { margin: 0; }

/* ---------- the restaurant's logo as it is (14 November, 00:00: «Кольцо и круг не нравится»; 00:06: «надо без фона,
   чтобы логотип был в PNG формате») ----------
   a PNG keeping its transparency lies on its block; only where it would not read (a light one by day, a dark one at
   night: bits.jsx measures its tone) a plate of the other tone under it; a logo drawn on its own ground — its ground,
   the corners rounded. */
.mark { display: inline-flex; flex: none; align-items: center; }
.mark-logo { display: block; max-width: 132px; max-height: 40px; object-fit: contain; }
.mark-own .mark-logo { border-radius: 8px; }
.mark-light { padding: 6px 10px; border-radius: 10px; background: #131824; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mark-light { padding: 0; background: none; }
  :root:not([data-theme="light"]) .mark-dark { padding: 6px 10px; border-radius: 10px; background: #ECEEF4; }
}
:root[data-theme="dark"] .mark-light { padding: 0; background: none; }
:root[data-theme="dark"] .mark-dark { padding: 6px 10px; border-radius: 10px; background: #ECEEF4; }

/* ---------- the list of restaurants: blocks as the front's (9 November, the owner: «Рестораны на главной должны
   выводиться блоками, как у нас Фронт построен», «В блоке ресторана может быть картинка и поверх нее время работы и
   название») ----------
   The waiter's tables: blocks of one size that touch, one hairline between neighbours and round the whole — each block
   draws it inside at its left and top, outside at its right and bottom, so a short last row ends cleanly (no block is
   stretched to fill it: 2 November, «Не растягивай блоки»). From edge to edge. The name at the block's top, today's
   hours at its foot; a picture under them, darkened where the words lie. */
.home-head { padding: 4px var(--gutter) 20px; background: linear-gradient(180deg, var(--head-a), var(--head-b)); box-shadow: inset 0 -1px 0 0 var(--line-2); }
.home-title { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.01em; line-height: 34px; }
.home-lead { margin: 4px 0 0; max-width: 52ch; color: var(--ink-2); font-size: 16px; line-height: 22px; }
/* the address the delivery goes to: a white pill under the words (a wide screen has it in the top bar) */
.addr-strip { margin-top: 16px; }
.addr-strip .addr-btn { display: flex; width: 100%; justify-content: flex-start; padding: 0 16px; font-size: 15px; font-weight: 500; }
@media (min-width: 720px) { .addr-strip { display: none; } }
@media (min-width: 960px) { .home-head { padding: 28px var(--gutter) 28px; } .home-title { font-size: 32px; line-height: 38px; } }
.home { --gap: 12px; padding: var(--gap); }
@media (min-width: 960px) { .home { --gap: 16px; } }
body:has(.page-home) { background: var(--ground); }
.page-home { background: var(--ground); }
/* (14 November; the audit В2) the restaurants as the menu's cards: rounded on the page's shade, the gap between them —
   the hall's photo at the top (the logo on the restaurant's light ground when there is none, its name's letter when
   there is no logo either), «−10% na prvu» on the photo's corner; under it the name, its line, whether it is open and
   till when, the minutes to take away, the delivery and its least order */
.shops { --cols: 1; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .shops { --cols: 2; } }
@media (min-width: 1000px) { .shops { --cols: 3; } }
@media (min-width: 1440px) { .shops { --cols: 4; } }
.shop-tile { min-width: 0; }
.shop-link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--r-xl); background: var(--paper); color: var(--ink); text-decoration: none; }
.shop-link:hover .shop-cover > img.shop-pic { transform: scale(1.02); }
.shop-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.shop-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; margin: 8px 8px 0; overflow: hidden; border-radius: var(--r-md); background: var(--soft); }
.shop-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
@media (prefers-reduced-motion: reduce) { .shop-pic { transition: none; } }
.shop-logo { max-width: 62%; max-height: 46%; object-fit: contain; }
.shop-letter { display: grid; place-items: center; width: 72px; height: 72px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font: 700 30px/1 var(--font-plate); }
.shop-badge { position: absolute; z-index: 1; top: 10px; left: 10px; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.shop-body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.tile-name { margin: 0; font-size: 19px; font-weight: 600; line-height: 24px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.tile-note { overflow: hidden; color: var(--ink-2); font-size: 14px; line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
.shop-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: auto; padding-top: 8px; color: var(--ink-2); font-size: 14px; font-weight: 500; line-height: 20px; font-variant-numeric: tabular-nums; }
.shop-fact { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.shop-fact > .ic { color: var(--ink-3); }
.shop-hours { color: var(--ink); }
/* whether it is open now: the dot as the restaurant's page draws it — green with a ring, grey when closed */
.open-dot { flex: none; width: 8px; height: 8px; margin: 0 2px; border-radius: 50%; background: var(--ink-3); }
.open-dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }

/* ---------- a restaurant's page: the menu, and on a computer the restaurant's card and the basket at its right ----------
   (00:09, of three ways to place the logo and the facts: the third — «Последний вариант good») the gap round and between
   the columns; the right side stays under the top bar: the restaurant's card (the logo, the name, its line, whether it is
   open), the basket under it — a block rounded at its top and its foot (00:09), the screen's height less the bar and the
   gap; its top where the stories start (23:42). A phone — the restaurant's card first, the basket a pill at the foot. */
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.menu-col { min-width: 0; }
.side-col { display: none; }
@media (min-width: 960px) {
  .page-shop { padding-bottom: 0; }
  .shop-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--gap); padding: 0 var(--gap); }
  .side-col { display: block; }
  .page-shop .bar { display: none; }
  .side-in { position: sticky; top: var(--bar); display: flex; flex-direction: column; gap: var(--gap); height: calc(100vh - var(--bar) - var(--gap)); height: calc(100dvh - var(--bar) - var(--gap)); }
}
@media (min-width: 1200px) { .shop-grid { grid-template-columns: minmax(0, 1fr) 360px; } }
@media (min-width: 1600px) { .shop-grid { grid-template-columns: minmax(0, 1fr) 400px; } }

/* the restaurant's card: the logo, a hairline, the name and its line; whether it is open — a phone at the page's top
   (with the page's one heading), a computer at the top of the right side */
.shop-head, .rest-card { padding: 16px; border-radius: var(--r-block); background: var(--paper); }
.shop-head { margin: 6px var(--gutter) 0; }
.shop-head-row, .rest-card-row { display: flex; align-items: center; gap: 14px; }
.shop-head-row .mark + .shop-head-words, .rest-card-row .mark + .rest-card-words { padding-left: 14px; box-shadow: inset 1px 0 0 0 var(--line-2); }
.shop-head-words, .rest-card-words { min-width: 0; }
.shop-name { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; line-height: 29px; overflow-wrap: anywhere; }
.rest-card-name { font-size: 20px; font-weight: 700; line-height: 25px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.shop-note, .rest-card-note { margin: 2px 0 0; color: var(--ink-3); font-size: 14px; line-height: 19px; }
.shop-chips, .rest-card-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: var(--r-pill); background: var(--chip); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.rest-card { display: none; }
@media (min-width: 960px) {
  .shop-head { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rest-card { display: block; flex: none; padding: 20px; }
}

/* ---------- to take away or delivered: the iPhone's choice; under it how soon and from where (a round key calls), or the
   address it goes to and who brings it. A phone: blocks under the restaurant's card; a computer: the basket's top. ---------- */
.how { display: grid; gap: var(--gap); padding: var(--gap) var(--gutter) 0; }
.how .seg { min-height: 48px; }
.how .seg-b { min-height: 42px; font-size: 15px; }
.how-pill { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 56px; margin: 0; padding: 6px 6px 6px 16px; border-radius: var(--r-block); background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.25; }
.how-pill > .ic { flex: none; color: var(--ink-2); }
.how-pill-text { flex: 1; min-width: 0; }
.how-pill-sub { display: block; overflow: hidden; color: var(--ink-3); font-size: 13px; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
.how-call { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--chip); color: var(--ink); }
.how-pill.addr-btn { width: 100%; justify-content: flex-start; padding-right: 16px; border: 0; cursor: pointer; text-align: left; }
.how-pill.addr-btn .addr-btn-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.how-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 4px; color: var(--ink-2); font-size: 14px; line-height: 1.35; }
.how-note .ic { flex: none; color: var(--ink-3); }
@media (min-width: 960px) { .how-here { display: none; } }
/* (14 November, 03:14: «она должна быть вся выровнена, потому что внутри блоков чуть съезжает текст») the basket at the
   side: every box from the block's edge (20) to its other edge — the choice, the cards, the keys; every card one inside:
   14 to the icon (20), 12 to the text — the texts of all the cards on one line (66 from the block's edge) */
.panel-how .how { gap: 12px; padding: 16px 20px; box-shadow: inset 0 -1px 0 0 var(--line-2); }
.panel-how .how-pill, .fact {
  display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; min-height: 56px; margin: 0; padding: 10px 14px;
  border: 0; border-radius: var(--r-inner); background: var(--soft); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; line-height: 20px; text-align: left;
}
.panel-how .how-pill:has(.how-call) { padding-right: 6px; }
.panel-how .how-pill > .ic:first-child, .fact > .ic:first-child { flex: none; width: 20px; height: 20px; color: var(--ink-2); }
.panel-how .how-pill.addr-btn, button.fact { cursor: pointer; }
.panel-how .how-pill.addr-btn:hover, button.fact:hover { filter: brightness(1.04); }
.panel-how .how-pill .how-pill-sub, .fact-sub, .addr-btn-sub { display: block; overflow: hidden; margin-top: 1px; color: var(--ink-3); font-size: 13px; font-weight: 400; line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
.addr-btn-sub::first-letter { text-transform: uppercase; }
.addr-btn-two { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.addr-btn-two .addr-btn-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fact-text { flex: 1; min-width: 0; }
.fact .addr-btn-chev, .panel-how .addr-btn-chev { flex: none; margin-left: auto; color: var(--ink-3); }
.fact-note { background: var(--accent-soft); }
.fact-note > .ic:first-child { color: var(--accent-text); }
.fact-ok { background: var(--ok-soft); }
.fact-ok > .ic:first-child { color: var(--ok); }
.panel-how .how-note { min-height: 56px; padding: 10px 14px; gap: 12px; border-radius: var(--r-inner); background: var(--soft); color: var(--ink); font-size: 15px; line-height: 20px; }
.panel-how .how-note > .ic { width: 20px; height: 20px; color: var(--ink-2); }

/* ---------- the stories (23:05: as they were), then (23:11) the strip of the first order's discount ---------- */
.lead { padding-top: var(--gap); }
.cards-wrap { position: relative; container-type: inline-size; }
.cards { display: grid; grid-auto-flow: column; grid-auto-columns: 152px; gap: var(--gap); margin: 0; padding: 0 var(--gutter); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }
.card {
  position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: 3 / 4; margin: 0; padding: 0;
  border: 0; border-radius: var(--r-block); background: var(--card-bg); color: var(--card-ink); font: inherit; text-align: left; cursor: pointer; scroll-snap-align: start;
}
.card:focus-visible { outline-offset: 3px; }
.card-t { position: absolute; z-index: 2; left: 14px; right: 12px; top: 14px; display: block; font-family: var(--font-plate); font-size: 17px; font-weight: 800; line-height: 1.06; letter-spacing: -0.01em; text-transform: uppercase; overflow-wrap: anywhere; }
.card-big { font-size: 26px; letter-spacing: -0.03em; }
.card-mid { display: block; margin-top: 4px; font-size: 15px; letter-spacing: -0.01em; }
.card-s { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; margin-top: 6px; font-family: var(--font-ui); font-size: 12px; font-weight: 600; line-height: 15px; letter-spacing: 0; text-transform: none; opacity: 0.86; }
.card-cut, .card-plate { position: absolute; z-index: 1; display: block; }
.card-cut { height: auto; filter: drop-shadow(0 12px 14px rgb(0 0 0 / 0.3)); }
.card-plate { border-radius: 50%; object-fit: cover; box-shadow: 0 10px 20px rgb(0 0 0 / 0.25); }
.card-cut.k1 { width: 120px; right: -18px; bottom: -16px; transform: rotate(6deg); }
.card-cut.k2 { width: 92px; left: -8px; bottom: 10px; transform: rotate(-9deg); }
.card-cut.k3 { width: 76px; left: 46px; bottom: 44px; transform: rotate(-3deg); }
.card-plate.k1 { width: 104px; height: 104px; right: -14px; bottom: -14px; }
.card-plate.k2 { width: 72px; height: 72px; left: 10px; bottom: 16px; }
/* RUVO's colours (22:49): what is new on the enamel blue, a promotion on the ink (the light at night), the folders on
   the blocks' own ground with a breath of the chip under their dishes — the dishes give the rest */
.card-new { --card-bg: radial-gradient(90% 70% at 70% 85%, color-mix(in oklab, var(--plate), #FFFFFF 12%) 0%, var(--plate) 70%); --card-ink: var(--plate-ink); }
.card-promo { --card-bg: var(--ink); --card-ink: var(--paper); }
.card-folder { --card-bg: radial-gradient(90% 70% at 70% 85%, var(--chip) 0%, var(--paper) 70%); --card-ink: var(--ink); }
.card-folder .card-cut { filter: drop-shadow(0 12px 14px rgb(19 24 36 / 0.2)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card-folder .card-cut { filter: drop-shadow(0 12px 14px rgb(0 0 0 / 0.5)); } }
:root[data-theme="dark"] .card-folder .card-cut { filter: drop-shadow(0 12px 14px rgb(0 0 0 / 0.5)); }
.card-new .card-cut.k1 { width: 96px; right: -6px; bottom: -8px; transform: rotate(8deg); }
.card-new .card-cut.k2 { width: 82px; left: 4px; bottom: -14px; }
.card-promo .card-cut.k1 { width: 128px; right: -22px; bottom: -26px; transform: rotate(-6deg); }
.card-folder .card-cut.k1 { width: 136px; right: -24px; bottom: -20px; transform: none; }
.card-folder .card-cut.k2 { width: 96px; left: -10px; bottom: 12px; }
.cards-go {
  position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; padding: 0;
  border: 0; border-radius: var(--r-pill); background: var(--seg-on); color: var(--ink); box-shadow: 0 2px 10px rgb(19 24 36 / 0.2); cursor: pointer;
}
.cards-go:hover { filter: brightness(0.96); }
.cards-go.prev { left: 8px; }
.cards-go.next { right: 8px; }
@media (max-width: 959px) { .cards-go { display: none; } }
.banner {
  display: flex; align-items: center; gap: 14px; width: calc(100% - 2 * var(--gutter)); min-height: 72px; margin: var(--gap) var(--gutter) 0; padding: 0 18px 0 14px;
  border: 0; border-radius: var(--r-block); background: var(--paper); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.banner:hover { filter: brightness(0.98); }
.banner-badge { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: var(--r-inner); background: var(--accent); color: var(--accent-ink); font: 700 18px/1 var(--font-plate); }
.banner-text { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; line-height: 21px; }
.banner-text small { display: block; margin-top: 1px; color: var(--ink-2); font-size: 13px; font-weight: 500; line-height: 17px; }
.banner > .ic { flex: none; color: var(--ink-3); }
@media (min-width: 960px) {
  .lead { padding-top: 0; }
  /* one row: three to six in sight by the menu's width, the rest a key away */
  .cards { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); padding: 0; }
  @container (min-width: 720px) { .cards { grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); } }
  @container (min-width: 920px) { .cards { grid-auto-columns: calc((100% - 4 * var(--gap)) / 5); } }
  @container (min-width: 1180px) { .cards { grid-auto-columns: calc((100% - 5 * var(--gap)) / 6); } }
  .card-t { left: 18px; top: 18px; font-size: 20px; }
  .card-big { font-size: 32px; }
  .card-mid { font-size: 18px; }
  .card-s { font-size: 13px; line-height: 17px; }
  .card-cut.k1 { width: 156px; } .card-cut.k2 { width: 116px; } .card-cut.k3 { width: 92px; left: 58px; bottom: 54px; }
  .card-new .card-cut.k1 { width: 120px; } .card-new .card-cut.k2 { width: 100px; }
  .card-promo .card-cut.k1 { width: 168px; bottom: -30px; }
  .card-folder .card-cut.k1 { width: 176px; } .card-folder .card-cut.k2 { width: 116px; }
  .card-plate.k1 { width: 136px; height: 136px; } .card-plate.k2 { width: 92px; height: 92px; }
  .banner { width: 100%; min-height: 76px; margin: var(--gap) 0 0; }
}

/* an order placed from this browser, not finished: a block — its number on a small plate, where it is, the way to it */
.last-order {
  display: flex; align-items: center; gap: 14px; min-height: 68px; margin: var(--gap) var(--gutter) 0; padding: 10px 16px;
  border-radius: var(--r-block); background: var(--paper); color: var(--ink); text-decoration: none;
}
.last-num {
  position: relative; display: grid; place-items: center; flex: none; min-width: 52px; height: 42px; padding: 0 10px; border-radius: 9px;
  background: var(--plate); color: var(--plate-ink); font: 700 18px/1 var(--font-plate); font-variant-numeric: tabular-nums;
}
.last-num::before { content: ""; position: absolute; inset: 3px; border: 1.5px solid currentColor; border-radius: 6px; pointer-events: none; }
.last-text { display: flex; flex: 1; flex-direction: column; min-width: 0; color: var(--ink-2); font-size: 14px; line-height: 20px; }
.last-text strong { color: var(--ink); font-size: 16px; font-weight: 600; line-height: 22px; }
.last-go { display: inline-flex; align-items: center; gap: 2px; color: var(--accent-text); font-weight: 600; white-space: nowrap; }
@media (min-width: 960px) { .last-order { margin: var(--gap) 0 0; } }

/* ---------- the folders as the kitchen's stations: pills on one track (a block on the page's ground), the one in view
   light (dark by day); under the stories and the strip (23:42), staying at the top as the menu scrolls ---------- */
/* (14 November, 04:28: «пилюля меню пустая справа… или растянуть пункты, или сделать пилюлю меньше») the track as wide as
   its pills: no empty tail on a wide screen; more pills than the width — the whole width, scrolled */
.stations-in {
  position: relative; display: flex; gap: 4px; width: -webkit-fit-content; width: fit-content; max-width: 100%; padding: 4px; overflow-x: auto; overscroll-behavior-x: contain;
  border-radius: var(--r-pill); background: var(--paper); scrollbar-width: none;
}
.stations-in::-webkit-scrollbar { display: none; }
.stations-in.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.stations-in.more-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.stations-in.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.station {
  flex: none; height: 40px; padding: 0 18px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.station:not(.on):hover { background: var(--chip); color: var(--ink); }
.station.on { background: var(--ink); color: var(--ground); }
.station:focus-visible { outline-offset: -3px; }
.stations { position: sticky; top: 0; z-index: 6; padding: var(--gap) var(--gutter); background: var(--ground); }
@media (min-width: 960px) {
  /* (14 November, 02:45: «когда пролистываешь страницу, и меню закрепляется сверху. Оно должно останавливаться на одном
     уровне с корзиной») the gap over the track is outside it: staying at the top, the track's top is where the right
     side's top is — right under the top bar */
  .stations { top: var(--bar); margin-top: var(--gap); padding: 0 0 var(--gap); }
  /* no stories, no strip: the folders the menu's first block — its top where the restaurant's card starts */
  .how-here + .stations { margin-top: 0; }
}

/* ---------- a folder: its name and how many, the gap to its dishes; its dishes cards side by side, the gap between them;
   two gaps before the next folder's name ----------
   two on a phone; on a computer as many as the menu's width holds (each 200 and more) */
.menu { padding: 0 var(--gutter); }
.folder { scroll-margin-top: 64px; }
.folder-name { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 4px 4px var(--gap); font-size: 22px; font-weight: 600; letter-spacing: -0.005em; line-height: 28px; }
.folder + .folder .folder-name { padding-top: calc(2 * var(--gap)); }
.folder-n { color: var(--ink-3); font-size: 16px; font-weight: 400; font-variant-numeric: tabular-nums; }
.dishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .dishes { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
@media (min-width: 960px) { .menu { padding: 0; } .folder { scroll-margin-top: calc(var(--bar) + 72px); } }
.dish { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-block); background: var(--paper); }
.dish-open {
  position: relative; display: flex; flex: 1; flex-direction: column; align-items: stretch; min-width: 0; margin: 0; padding: 8px 8px 0;
  border: 0; border-radius: var(--r-block) var(--r-block) 0 0; background: transparent; color: inherit; text-align: left; cursor: pointer;
}
.dish-open:focus-visible { outline-offset: -3px; }
.dish-open:hover .dish-name { color: var(--accent-text); }
/* the photo on its plate (inside the card: the soft, its corner the card's less the card's 8 of padding): one without its
   background stands on it whole, a shadow under it; another fills it */
.dish-pic { position: relative; display: block; aspect-ratio: 4 / 3; margin-bottom: 10px; overflow: hidden; border-radius: var(--r-inner); background: radial-gradient(70% 70% at 50% 55%, var(--chip) 0%, var(--soft) 100%); }
.dish-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dish-pic.is-cut { padding: 8px 12px; }
.dish-pic.is-cut img { object-fit: contain; filter: drop-shadow(0 10px 12px rgb(19 24 36 / 0.18)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dish-pic.is-cut img { filter: drop-shadow(0 10px 14px rgb(0 0 0 / 0.45)); } }
:root[data-theme="dark"] .dish-pic.is-cut img { filter: drop-shadow(0 10px 14px rgb(0 0 0 / 0.45)); }
.dish-pic svg { display: block; width: 100%; height: 100%; }
.dish-cover { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ink-3); }
.dish-name { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding: 0 4px; font-size: 16px; font-weight: 600; line-height: 21px; overflow-wrap: anywhere; }
.dish-desc { display: block; overflow: hidden; margin-top: 2px; padding: 0 4px; color: var(--ink-3); font-size: 13px; line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
.dish-meta { display: block; margin-top: 2px; padding: 0 4px; color: var(--ink-3); font-size: 13px; line-height: 18px; }
/* a folder without pictures: cards of words — the name and what it is (two lines) */
.dishes.words .dish-open { padding-top: 14px; }
.dishes.words .dish-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
/* (13 November) «Novo»: a small pill in the enamel blue — on the plate's corner, or after the name on a card of words */
.dish-new { display: inline-flex; align-items: center; height: 20px; margin-left: 8px; padding: 0 8px; border-radius: var(--r-pill); background: var(--plate); color: var(--plate-ink); font-size: 12px; font-weight: 700; line-height: 1; vertical-align: 2px; }
.dish-new.on-pic { position: absolute; z-index: 1; top: 16px; left: 16px; height: 22px; margin: 0; }
/* the foot: the price, and at its right a round «+», − n + in the basket, or why there is no key */
.dish-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; min-height: 62px; padding: 8px 8px 10px 12px; }
.dish-price { font-size: 17px; font-weight: 600; line-height: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* (server 0.117; the audit В9) a promotion's price: the menu's struck and quiet, the one paid in the accent's words; its
   «−20%» a pill on the plate's other corner, as «Novo»; what the promotions and the first order take off — a row each */
.is-off .price-was { margin-right: 6px; color: var(--ink-3); font-weight: 400; text-decoration-thickness: 1px; }
.is-off .price-now { color: var(--accent-text); }
.dish-off { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish-off.on-pic { position: absolute; z-index: 1; top: 16px; right: 16px; }
.sheet-price .dish-off { align-self: center; font-size: 13px; }
.offs { margin: 0; padding: 0; list-style: none; }
.off-row > span:last-child { color: var(--accent-text); font-weight: 600; }
.dish-act { display: flex; flex: none; align-items: center; margin-left: auto; }
.dish-note { color: var(--ink-3); font-size: 13px; font-weight: 600; line-height: 18px; text-align: right; }
.pickup-tag { color: var(--warn); }
.dish.is-out .dish-name, .dish.is-out .dish-price { color: var(--ink-3); }
.dish.is-out .dish-pic > * { filter: grayscale(1); opacity: 0.55; }
.add {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-pill);
  background: var(--chip); color: var(--ink); cursor: pointer;
}
.add:hover { filter: brightness(0.94); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .add:hover { filter: brightness(1.2); } }
:root[data-theme="dark"] .add:hover { filter: brightness(1.2); }
.add.has { background: var(--accent); color: var(--accent-ink); }
.add-n { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty-row { display: inline-flex; align-items: center; height: 44px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); }
.qty-b { display: grid; place-items: center; width: 38px; height: 44px; padding: 0; border: 0; border-radius: var(--r-pill); background: transparent; color: inherit; cursor: pointer; }
.qty-b:not(:disabled):hover { background: color-mix(in srgb, var(--accent-ink) 14%, transparent); }
.qty-b:disabled { opacity: 0.4; cursor: default; }
.qty-n { min-width: 20px; text-align: center; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.add:active, .qty-b:active { filter: brightness(0.92); }
.add:focus-visible, .qty-b:focus-visible { outline-offset: 2px; }

/* ---------- the basket on a phone: a pill floating at the foot, the menu fading under it ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 18px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent 0%, var(--ground) 46%); pointer-events: none;
}
.bar-b {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 560px; min-height: 56px; margin: 0 auto; padding: 0 22px 0 13px;
  border: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-float);
  font-size: 17px; font-weight: 600; cursor: pointer; pointer-events: auto;
}
.bar-b:active { filter: brightness(0.94); }
.bar-n {
  display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--accent-ink) 22%, transparent); font-size: 15px; font-variant-numeric: tabular-nums;
}
.bar-label { flex: 1; text-align: left; }
.bar-sum { font-variant-numeric: tabular-nums; }

/* ---------- the basket at the side of a computer: a block rounded at its top and its foot (00:09), as Yandex Eda's
   (00:00): its title with how many and a key to empty it; the choice of how and how soon; the dishes a row each with
   their photo; «Dodajte uz porudžbinu»; «Dalje» with the sum on it ---------- */
.panel { display: flex; flex-direction: column; }
@media (min-width: 960px) { .side-col .panel { flex: 1; min-height: 0; overflow: hidden; border-radius: var(--r-block); background: var(--paper); } }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 0 20px; box-shadow: inset 0 -1px 0 0 var(--line-2); }
.panel-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.panel-n { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.panel-clear { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px 0 10px; border: 0; border-radius: var(--r-pill); background: var(--chip); color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.panel-clear:hover { color: var(--ink); filter: brightness(0.97); }
/* empty: the menu's dishes drawn in it, what to do, the way to what is new */
.panel-empty { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 28px 48px; color: var(--ink-3); text-align: center; }
.panel-empty p { margin: 0; max-width: 260px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.panel-empty strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 19px; font-weight: 700; line-height: 1.25; }
.panel-new { min-height: 44px; margin-top: 4px; padding: 0 18px; font-size: 15px; }
.empty-art { display: block; width: 200px; height: 140px; }
.plate-art { width: 168px; height: 126px; color: var(--ink-2); }
.dishes-art { position: relative; }
.dishes-art img { position: absolute; display: block; height: auto; filter: drop-shadow(0 12px 14px rgb(0 0 0 / 0.3)); }
.dishes-art .ea1 { width: 112px; left: 44px; top: 4px; z-index: 2; }
.dishes-art .ea2 { width: 92px; left: 0; bottom: 0; transform: rotate(-10deg); }
.dishes-art .ea3 { width: 92px; right: 0; bottom: 0; transform: rotate(9deg); }
.panel-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px; }
/* the lines: the photo (a plate inside the block), the name and what is chosen, the sum; the stepper at the right */
.lines.with-pics .line { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "pic text step" "pic sum step"; gap: 2px 12px; padding: 14px 0; }
.lines.with-pics .line .stepper { grid-area: step; align-self: center; justify-self: end; }
.lines.with-pics .stepper .step { width: 32px; height: 36px; }
.lines.with-pics .stepper .step-n { min-width: 22px; font-size: 15px; }
.lines.with-pics .line-name { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; line-height: 20px; }
.lines.with-pics .line-mods { font-size: 13px; }
.lines.with-pics .line-sum { grid-area: sum; justify-self: start; color: var(--ink); font-size: 15px; }
.line-pic { grid-area: pic; display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; align-self: center; border-radius: var(--r-inner); background: radial-gradient(70% 70% at 50% 55%, var(--chip) 0%, var(--soft) 100%); color: var(--ink-3); }
.line-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.line-pic.is-cut { padding: 5px; }
.line-pic.is-cut img { object-fit: contain; }
/* «Dodajte uz porudžbinu»: cards inside the block (the soft, the inner corner) in a row that scrolls */
.suggest { padding: 16px 0 20px; box-shadow: inset 0 1px 0 0 var(--line-2); }
.suggest-t { margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.suggest-row { display: grid; grid-auto-flow: column; grid-auto-columns: 128px; gap: 12px; margin: 0 -20px; padding: 0 20px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.suggest-row::-webkit-scrollbar { display: none; }
.sug { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 6px 6px 8px; border: 0; border-radius: var(--r-inner); background: var(--soft); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.sug:hover { filter: brightness(1.04); }
.sug-pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: radial-gradient(70% 70% at 50% 55%, var(--chip) 0%, var(--soft) 100%); }
.sug-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sug-pic.is-cut { padding: 4px 8px; }
.sug-pic.is-cut img { object-fit: contain; filter: drop-shadow(0 6px 8px rgb(0 0 0 / 0.25)); }
.sug-name { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 8px 2px 0; font-size: 13px; font-weight: 600; line-height: 17px; }
.sug-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: auto 2px 0; padding-top: 6px; }
.sug-price { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sug-plus { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--chip); color: var(--ink); }
/* the foot: «Dalje» with the sum on it, how and when under it */
.panel-foot { padding: 16px 20px 18px; box-shadow: inset 0 1px 0 0 var(--line-2); }
.panel-go { justify-content: space-between; min-height: 56px; padding: 0 22px; font-size: 17px; }
.panel-go-sum { font-variant-numeric: tabular-nums; }
.panel-title:focus:not(:focus-visible) { outline: none; }
.panel-x { display: grid; flex: none; place-items: center; width: 40px; height: 40px; margin-left: auto; border: 0; border-radius: var(--r-pill); background: var(--chip); color: var(--ink); cursor: pointer; }
.panel-clear + .panel-x { margin-left: 0; }
.panel-head:has(.panel-x) .panel-clear { margin-left: auto; }

/* (14 November, 03:31, the owner chose of three: «Корзина на телефоне С») a phone's basket: a sheet over the menu, its
   top rounded, a grip over its title; the basket of the computer's side in it — the dishes, how and when, «Oformi»;
   the order itself the sheet's whole height */
.bsheet-shade { align-items: flex-end; }
.bsheet {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 560px;
  max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: hidden;
  border-radius: 22px 22px 0 0; background: var(--paper); box-shadow: var(--shadow-sheet); outline: none;
  animation: rise 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bsheet:has(.panel-order) { height: calc(100vh - 40px); height: calc(100dvh - 40px); }
.bsheet-grab { display: block; flex: none; width: 40px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: var(--chip); }
.bsheet .panel { flex: 1 1 auto; min-height: 0; }
.bsheet .panel-head { min-height: 60px; box-shadow: none; }
.bsheet .panel-how .how { padding-top: 4px; }
.bsheet .panel-body { flex: 1 1 auto; min-height: 0; }
.bsheet .panel-foot, .bsheet .co-panel .send { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .bsheet-shade { display: none; } }
@media (prefers-reduced-motion: reduce) { .bsheet { animation: none; } }

/* (14 November, 02:52: «оставаться прямо в корзине и там все заполнять») the order in the basket's block itself: the
   way back to the dishes and the title at its top; how, when, who and how to pay — the iPhone's rows, as the phone's
   basket page — scrolling in it; the sums and «Plati» with the total at its foot, where «Dalje» was */
.panel-order .panel-head { justify-content: flex-start; }
.panel-back { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-pill); background: var(--chip); color: var(--ink); cursor: pointer; }
.panel-back:hover { filter: brightness(0.96); }
.checkout.co-panel { --gutter: 20px; display: flex; flex: 1; flex-direction: column; min-height: 0; }
.checkout.co-panel .co-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.checkout.co-panel .block:last-child { box-shadow: none; }
.checkout.co-panel .block-title { padding: 18px var(--gutter) 10px; font-size: 17px; font-weight: 700; }
.checkout.co-panel .co-how { display: grid; gap: 12px; padding: 16px var(--gutter); }
.checkout.co-panel .co-how .seg { margin: 0; min-height: 48px; }
.checkout.co-panel .co-how .seg-b { min-height: 42px; font-size: 15px; }
.checkout.co-panel .co-how .fact { align-items: center; gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 10px 14px; border: 0; border-radius: var(--r-inner); box-shadow: none; font-size: 15px; font-weight: 500; line-height: 20px; }
.checkout.co-panel .co-how .fact:not(.fact-note):not(.fact-ok) { background: var(--soft); }
.checkout.co-panel .co-how .fact-note { background: var(--accent-soft); }
.checkout.co-panel .co-how .fact-ok { background: var(--ok-soft); }
.checkout.co-panel .co-check { width: 100%; min-height: 48px; margin: 0; }
/* the times one row that scrolls sideways (a day's slots would fill the block) */
.checkout.co-panel .times { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.checkout.co-panel .times::-webkit-scrollbar { display: none; }
.checkout.co-panel .time { flex: none; }
.checkout.co-panel .block > .field:not(:has(> textarea)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
.checkout.co-panel .pay { min-height: 60px; }
.checkout.co-panel .co-foot { flex: none; box-shadow: inset 0 1px 0 0 var(--line-2); }
.checkout.co-panel .totals { padding: 12px var(--gutter) 0; }
.checkout.co-panel .sum-row { padding: 3px 0; font-size: 15px; }
.checkout.co-panel .send { position: static; margin: 0; padding: 14px var(--gutter) 18px; background: none; box-shadow: none; }
.checkout.co-panel .send-err { font-size: 14px; }
.checkout.co-panel .send-hint { margin: 0 0 12px; padding: 0 4px; font-size: 13px; }

.lines { margin: 0; padding: 0; list-style: none; }
.line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text text" "step sum";
  gap: 10px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2);
}
.panel .line:last-child { border-bottom: 0; }
.line-text { grid-area: text; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.line-name { font-weight: 600; }
.line-mods { display: block; color: var(--ink-2); font-size: 14px; }
.line-bad { color: var(--bad); font-size: 14px; font-weight: 600; }
.line.is-bad .line-name { color: var(--ink-3); }
.line .stepper { grid-area: step; justify-self: start; }
.line-sum { grid-area: sum; justify-self: end; font-weight: 600; font-variant-numeric: tabular-nums; }
/* (the audit В6) the line just added: its photo ringed in the accent a moment, its name in the accent fading back */
.line.is-just .line-pic { animation: just-ring 1.5s ease-out; }
.line.is-just .line-name { animation: just-name 1.5s ease-out; }
@keyframes just-ring { 0%, 35% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 3px transparent; } }
@keyframes just-name { 0%, 35% { color: var(--accent-text); } 100% { color: inherit; } }
@media (prefers-reduced-motion: reduce) { .line.is-just .line-pic, .line.is-just .line-name { animation: none; } }

/* ---------- the menu's end: «Porudžbine preko RUVO», centred in the menu's column (03:31); the restaurant's card that
   stood over it removed (04:00: «Это убираем») ---------- */
.sf-ruvo { margin: 48px 0 24px; text-align: center; font-size: 13px; }
.sf-ruvo a { color: var(--ink-3); text-decoration: none; }
.sf-ruvo a:hover { text-decoration: underline; }

/* ---------- (the audit В5: «Заготовки карточек при загрузке меню») the menu's shape while it loads: the same blocks, empty,
   a light passing over them (none when the device asks for less motion) ---------- */
.sk-b { display: block; border-radius: 10px; background: var(--soft); }
@media (prefers-reduced-motion: no-preference) {
  .sk-b { background: linear-gradient(100deg, var(--soft) 30%, var(--chip) 50%, var(--soft) 70%) 0 0 / 300% 100%; animation: sk-light 1.6s ease-in-out infinite; }
}
@keyframes sk-light { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sk .card.sk-b { cursor: default; }
.sk-logo { flex: none; width: 52px; height: 52px; border-radius: 14px; }
.sk-words { display: grid; flex: 1; gap: 10px; min-width: 0; }
.sk-line { height: 12px; }
.sk-line.sk-big { height: 18px; }
.sk-w30 { width: 30%; } .sk-w50 { width: 50%; } .sk-w60 { width: 60%; } .sk-w80 { width: 80%; }
.sk-pills { display: flex; gap: 8px; overflow: hidden; }
.sk-pill { flex: none; width: 96px; height: 40px; border-radius: var(--r-pill); }
.sk-dish { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 8px 8px 14px; border-radius: var(--r-block); background: var(--paper); }
.sk-pic { aspect-ratio: 4 / 3; margin-bottom: 4px; border-radius: var(--r-inner); }
.sk-dish .sk-line { margin-left: 4px; }
.sk-dish .sk-price { margin-top: 6px; }
.sk-basket { flex: 1; border-radius: var(--r-block); }
.sk .rest-card.sk-words { flex: none; }

/* (15 November, the brand book's robot: keys under 44 px on the iPhone) the reach of the small keys made 44 for the finger —
   an invisible ring round each; what the eye sees stays as it is */
.station, .panel-x, .panel-back, .panel-clear, .qty-b, .lines.with-pics .stepper .step, .sheet-x { position: relative; }
.station::before, .panel-x::before, .panel-back::before, .panel-clear::before, .qty-b::before, .lines.with-pics .stepper .step::before, .sheet-x::before { content: ''; position: absolute; }
.station::before { inset: -2px 0; }
.panel-x::before, .panel-back::before, .sheet-x::before { inset: -2px; }
.panel-clear::before { inset: -5px 0; }
.qty-b::before { inset: 0 -3px; }
.lines.with-pics .stepper .step::before { inset: -4px -6px; }

/* A sheet over the page, as the back office's: from the bottom of a phone with its top rounded (20), a card in the middle
   of a wide screen rounded all round; its name 22 semibold and a round «×» on top, a line under them; what it says; its
   keys at its foot — pills, a line over them. A photo: over the name on a phone, the sheet's left half on a wide screen. */
.shade {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  background: var(--scrim); animation: fade 0.18s ease-out;
}
.sheet {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 560px;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: hidden;
  background: var(--paper); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-sheet); outline: none;
  animation: rise 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet-aside { flex: none; overflow: hidden; background: var(--soft); }
.sheet-main { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; }
@media (min-width: 720px) {
  .shade { align-items: center; padding: 32px; }
  .sheet { max-height: min(760px, calc(100vh - 64px)); border-radius: var(--r-xl); }
  /* with a photo: the photo the left half; the words and the keys the right */
  .sheet.has-aside { flex-direction: row; max-width: 920px; }
  .sheet.has-aside .sheet-aside { width: 50%; align-self: stretch; }
  .sheet.has-aside .sheet-pic { height: 100%; min-height: 460px; aspect-ratio: auto; }
}
.sheet-head { display: flex; flex: none; align-items: center; gap: 12px; min-height: 64px; padding: 0 12px 0 24px; box-shadow: inset 0 -1px 0 0 var(--line-2); }
.sheet-title { flex: 1; min-width: 0; margin: 0; padding: 14px 0; font-size: 22px; font-weight: 600; line-height: 28px; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.sheet-x {
  display: grid; flex: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--r-pill);
  background: var(--chip); color: var(--ink); cursor: pointer;
}
.sheet-x:hover { background: var(--ground-2); }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 24px 20px; }
.sheet-foot { display: flex; flex: none; align-items: center; gap: 10px; padding: 12px 16px max(14px, env(safe-area-inset-bottom)); box-shadow: inset 0 1px 0 0 var(--line-2); }
@media (min-width: 720px) { .sheet-foot { padding: 14px 24px 18px; } }
/* (the stepper as tall as the key beside it) */
.sheet-foot .stepper { height: var(--key); }
.sheet-foot .stepper .step { width: 48px; height: var(--key); }
.sheet-foot .stepper .step-n { min-width: 30px; }
.sheet-foot .btn { white-space: nowrap; }
@media (max-width: 479px) {
  .sheet-foot .stepper .step { width: 44px; }
  .sheet-foot .stepper .step-n { min-width: 24px; }
  .sheet-foot .btn { padding: 0 16px; font-size: 16px; }
}
.sheet-note { flex: 1; margin: 0; padding: 14px 0; color: var(--ink-2); font-weight: 600; text-align: center; }

/* the dish's photo: on a phone over the name (4 : 3 of the square, cut evenly at its top and its foot) */
.sheet-pic { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.sheet-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sheet-pic svg { width: 100%; height: 100%; }
.dish-art-box { background: var(--art); }
.sheet-price { display: flex; align-items: baseline; gap: 12px; margin: 0; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sheet-price .muted { font-size: 15px; font-weight: 400; }
.muted { color: var(--ink-2); font-weight: 400; }
.sheet-desc { margin: 10px 0 0; color: var(--ink-2); line-height: 1.5; }
.allergens { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; }
.allergens span { color: var(--ink); font-weight: 600; }

/* a dish's choices: a group's name and its rule, then a row a choice — the iPhone's list: its name, its price, the tick
   at its right when chosen (one of a group or several: the group's line says which) */
.opts { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.opts legend { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; margin: 0; padding: 0 0 8px; }
.opts-name { font-weight: 600; }
.opts-rule { color: var(--ink-3); font-size: 14px; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 0 -24px; padding: 0 24px; cursor: pointer; box-shadow: inset 0 1px 0 0 var(--line-2); }
.opt:last-child { box-shadow: inset 0 1px 0 0 var(--line-2), inset 0 -1px 0 0 var(--line-2); }
.opt:hover { background: var(--soft); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-name { flex: 1; order: 1; }
.opt-price { order: 2; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.opt-mark { order: 3; flex: none; width: 22px; height: 22px; background: transparent; }
.opt.on .opt-mark {
  background: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.opt:has(input:focus-visible) { outline: 3px solid var(--accent-text); outline-offset: -3px; }

@keyframes rise { from { transform: translateY(28px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* the basket and the order */
.cart-title { margin: 6px 0 2px; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.cart-from { margin: 0 0 4px; color: var(--ink-2); }
.page-cart { padding-bottom: 24px; }
.block { padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.block-title { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.block-text { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.block-text .ic { margin-top: 2px; }
.block-text.bad { color: var(--bad); font-weight: 600; }
.addr .btn { margin-top: 18px; }
.quote { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md); background: var(--ok-soft); }
.quote .ic { margin-top: 2px; color: var(--ok); }
.quote strong { display: block; font-weight: 600; }
.quote-sub { display: block; margin-top: 2px; color: var(--ink-2); font-size: 14px; }

.times { display: flex; flex-wrap: wrap; gap: 8px; }
.time {
  min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
}
.time.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

.pays { display: flex; flex-direction: column; gap: 8px; }
.pay { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-md); cursor: pointer; }
.pay input { position: absolute; opacity: 0; pointer-events: none; }
.pay .ic { margin-top: 1px; color: var(--ink-2); }
.pay.on { border-color: var(--accent); box-shadow: inset 4px 0 0 0 var(--accent); }
.pay.on .ic { color: var(--accent-text); }
.pay:has(input:focus-visible) { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.pay-text { display: flex; flex-direction: column; gap: 2px; }
.pay-name { font-weight: 600; }

.totals { border-bottom: 0; padding-bottom: 8px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sum-total { padding-top: 10px; color: var(--ink); font-size: 19px; font-weight: 600; }

/* (0.91; the audit: what the band said lay over the form under it) a band of its own, a line over it */
.send { position: sticky; bottom: 0; z-index: 4; margin: 0 calc(var(--gutter) * -1); padding: 14px var(--gutter) max(16px, env(safe-area-inset-bottom)); background: var(--paper); box-shadow: 0 -1px 0 0 var(--line-2); }
.send-err { margin: 0 0 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bad-soft); color: var(--ink); font-weight: 500; }
.send-hint { margin: 0 0 10px; color: var(--ink-2); font-size: 14px; text-align: center; }
.send-small { margin: 10px 0 0; color: var(--ink-3); font-size: 13px; text-align: center; }
/* a field's own error (0.91) */
.field input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.field-err { color: var(--bad); font-size: 14px; font-weight: 600; }

/* the demo bank: plainly not the restaurant's page */
.page-bank { --bank: #1F2633; --bank-ink: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-bank { --bank: #E3E7EE; --bank-ink: #10141C; } }
:root[data-theme="dark"] .page-bank { --bank: #E3E7EE; --bank-ink: #10141C; }
.bank { margin-top: 20px; padding: 24px 20px; border-radius: var(--r-lg); background: var(--ground); }
.bank-head { display: flex; align-items: center; gap: 12px; }
.bank-head h1 { margin: 0; font-size: 22px; }
.bank-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-md); background: var(--bank); color: var(--bank-ink); }
.bank-text { margin: 14px 0 20px; color: var(--ink-2); line-height: 1.5; }
.bank-facts { display: grid; gap: 10px; margin: 0 0 22px; }
.bank-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bank-facts dt { color: var(--ink-2); }
.bank-facts dd { margin: 0; font-weight: 600; text-align: right; }
.bank-sum { font-size: 22px; font-variant-numeric: tabular-nums; }
.btn-bank { background: var(--bank); color: var(--bank-ink); }
.bank .btn + .btn { margin-top: 10px; }

/* (13 November) the example restaurant: said where the order would be sent */
.example-note { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.4; }
.example-note .ic { flex: none; margin-top: 1px; color: inherit; opacity: 0.8; }

/* ---------- (the audit В7) a state as a card: its sign on the card's paper, what it is, what to do, the key under it ---------- */
.state-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 4px 12px; margin: 0; padding: 14px; border-radius: var(--r-md); background: var(--soft); color: var(--ink); text-align: left; }
.state-card.st-bad { background: var(--bad-soft); }
.state-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--paper); color: var(--ink-2); }
.st-bad .state-ic { color: var(--bad); }
.state-words { display: grid; gap: 2px; min-width: 0; padding-top: 1px; }
.state-words b { font-size: 16px; font-weight: 700; line-height: 21px; }
.state-words span { color: var(--ink-2); font-size: 14px; line-height: 19px; }
.state-go { grid-column: 1 / -1; min-height: 44px; margin-top: 10px; font-size: 15px; }
.checkout .state-card { margin: 0 0 12px; }
.how .state-card { margin-top: var(--gap); }
.panel-body > .state-card { margin: 12px 0 4px; }

/* the order's page (14 November; the audit В1): cards on the page's shade, as the restaurant's page — where the order is
   (its number on a house-number plate, the steps), the IPS code, the dishes with their photos and the sum, where it
   goes, the restaurant with a round key to call. One gap and one corner; a computer: where it is at the left (staying
   in sight), the rest at the right */
.page-order { --gap: 12px; background: var(--ground); padding-bottom: 40px; }
body:has(.page-order) { background: var(--ground); }
.o-main { display: flex; flex-direction: column; gap: var(--gap); max-width: 1120px; margin: 0 auto; padding: var(--gap); }
.o-main > .example-note { margin: 0; }
.o-detail { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.o-card { min-width: 0; padding: 20px; border-radius: var(--r-xl); background: var(--paper); }
.o-title { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; font-size: 18px; font-weight: 600; line-height: 24px; }
.o-n { color: var(--ink-3); font-size: 15px; font-weight: 400; font-variant-numeric: tabular-nums; }
.o-text { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--ink-2); font-size: 15px; line-height: 22px; }
.o-text > .ic { flex: none; margin-top: 2px; color: var(--ink-3); }
/* (04:52, the owner: «Не забывай выравнивать высоту блоков») a computer: where the order is and the restaurant at the
   left, the code, the dishes and the address at the right — the two columns end on one line: the shorter side's last
   card takes what is left */
@media (min-width: 960px) {
  .page-order { --gap: 16px; }
  .o-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "status detail" "contact detail"; align-items: stretch; }
  .o-main:has(> .example-note) { grid-template-rows: auto auto 1fr; grid-template-areas: "note note" "status detail" "contact detail"; }
  .o-main > .example-note { grid-area: note; }
  .o-status { grid-area: status; }
  .o-detail { grid-area: detail; }
  .o-detail > .o-card:last-child { flex: 1; }
  .o-main > .contact { grid-area: contact; align-items: flex-start; }
}

/* where it is: the plate, the stage, when, the steps; the key to pay inside it */
.order-head { display: flex; flex-direction: column; align-items: center; padding: 4px 0 0; text-align: center; }
.order-stage { margin: 20px 0 0; font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
/* (the time inside a sentence in the face's own figures: the tabular «1» stood apart, «03:1 7») */
.order-when { margin: 8px 0 0; color: var(--ink-2); font-size: 17px; }
.order-reason { margin: 12px 0 0; padding: 12px 16px; border-radius: var(--r-md); background: var(--bad-soft); }
.order-small { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }
.st-cancelled .plate, .st-expired .plate { filter: grayscale(1); opacity: 0.55; }
.o-status > .btn { display: flex; width: 100%; min-height: 56px; margin: 20px 0 0; }

/* (server 0.123) RUVO's app for guests: the notifications of the order's steps — a key to turn them on under the
   steps, or a quiet line saying they come (or where they are switched on) */
.notify { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; padding: 12px 12px 12px 14px; border-radius: var(--r-lg); background: var(--accent-soft); }
/* (15 November, 03:02, the owner on RUVO Order's iPhone: «Кривовато» — the words in a column a word wide beside the key)
   the card's own width decides, not the screen's: narrower than the words and the key side by side need — the words
   beside the bell, the key under them across the card */
.o-status { container-type: inline-size; }
.notify-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-pill); background: var(--paper); color: var(--accent-text); }
.notify-text { flex: 1; min-width: 0; margin: 0; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 20px; }
.notify-key { flex: none; min-height: 44px; padding: 0 16px; }
@container (max-width: 460px) {
  .notify { flex-wrap: wrap; }
  .notify-text { flex-basis: calc(100% - 48px); }
  .notify-key { width: 100%; }
}
.notify-line { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 16px 0 0; text-align: center; color: var(--ink-2); font-size: 14px; line-height: 20px; }
.notify-line > .ic { flex: none; margin-top: 1px; color: var(--accent-text); }
.notify-line.is-off > .ic { color: var(--ink-3); }

.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 24px 0 4px; padding: 0; list-style: none; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; line-height: 1.25; text-align: center; }
.steps li::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--line-2); }
.steps li:first-child::before { display: none; }
.steps li.step-done::before, .steps li.step-now::before { background: var(--ok); }
.step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--line-2); border-radius: var(--r-pill); background: var(--paper); color: var(--paper); }
.step-done .step-dot { border-color: var(--ok); background: var(--ok); }
.step-now .step-dot { border-color: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.step-now .step-name { color: var(--ink); font-weight: 600; }
.step-done .step-name { color: var(--ink-2); }

/* the IPS code: the code on white, what it says as rows */
.ips .block-title { margin: 0 0 14px; font-size: 18px; text-align: center; }
.qr { width: min(256px, 72vw); margin: 0 auto 6px; padding: 8px; border-radius: var(--r-md); background: #FFFFFF; }
.qr svg { display: block; width: 100%; height: auto; }
.ips .block-text { margin: 12px 0 0; }
.ips-facts { display: grid; gap: 0; margin: 14px -20px -20px; box-shadow: inset 0 1px 0 0 var(--line-2); }
.ips-facts div { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 8px 20px; box-shadow: inset 0 -1px 0 0 var(--line-2); }
.ips-facts div:last-child { box-shadow: none; }
.ips-facts dt { color: var(--ink-2); }
.ips-facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.num { font-variant-numeric: tabular-nums; }
.link-b { padding: 6px 0 6px 10px; border: 0; background: none; color: var(--accent-text); font-weight: 600; cursor: pointer; }
.o-detail > .btn { display: flex; width: 100%; min-height: 56px; }

/* the dishes: a photo, how many and the name, the sum; a line between them; then the sums */
.o-lines { margin: 0; padding: 0; list-style: none; }
.o-lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 72px; padding: 8px 0; box-shadow: inset 0 -1px 0 0 var(--line-2); }
.o-pic { display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border-radius: var(--r-md); background: var(--soft); color: var(--ink-3); }
.o-pic img { width: 100%; height: 100%; object-fit: cover; }
.o-pic.is-cut img { width: 88%; height: 88%; object-fit: contain; }
.o-name { display: flex; flex-direction: column; min-width: 0; font-size: 16px; line-height: 22px; overflow-wrap: anywhere; }
.o-name > .line-mods { margin-top: 2px; }
.o-qty { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.o-sum { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.o-sums { padding-top: 8px; }
/* (a card stretched to its column's end: the dishes at its top, the sums and how it is paid at its foot) */
.o-dishes { display: flex; flex-direction: column; }
.o-dishes > .o-sums { margin-top: auto; }
.o-sums .sum-row { padding: 4px 0; }
.o-sums .sum-total { padding-top: 8px; color: var(--ink); font-size: 18px; font-weight: 600; }
.paid-line { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--ink-2); font-size: 15px; }

/* the restaurant: its name and street, a round key to call it */
.contact { display: flex; align-items: center; gap: 16px; }
.contact-words { flex: 1; min-width: 0; }
.contact .o-title { margin-bottom: 6px; }
.call-key { display: grid; flex: none; place-items: center; width: 52px; height: 52px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); text-decoration: none; }
.call-key:hover { filter: brightness(1.08); }
.call-key:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- (0.90) the address the delivery goes to, and the guest's own account ----------
   The owner, 9 November: «Нужен еще выбор адреса для человека, который заказывает и личный кабинет человека». The
   address is chosen once, for every restaurant: in the top bar (on a phone a row of its own under it), in a
   restaurant's «Dostava», in the order. Rows that touch, a line between them; on the header's shade a white pill. */

/* the address in a line: a pin, the address (or the ask for one), a caret */
.addr-btn {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 0 12px;
  border: 0; background: transparent; color: var(--ink); font-weight: 500; font-size: 15px; text-align: left; cursor: pointer;
}
.addr-btn .ic { flex: none; color: var(--accent-text); }
.addr-btn-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-btn.none .addr-btn-text { color: var(--accent-text); font-weight: 600; }
.addr-btn .addr-btn-chev { color: var(--ink-3); }
.addr-btn:hover .addr-btn-text { text-decoration: underline; }
.addr-btn:focus-visible { outline: 3px solid var(--accent-text); outline-offset: -3px; }
/* on the header's shade: a white pill (the top bar's on a wide screen, the list's under its title on a phone) */
.addr-btn.tool { gap: 8px; padding: 0 14px; background: var(--pill); box-shadow: var(--lift); font-size: 14px; font-weight: 600; }
.addr-btn.tool:hover { background: var(--pill-press); }
.addr-btn.tool:hover .addr-btn-text { text-decoration: none; }
.addr-btn.tool:focus-visible { outline-offset: 2px; }
.addr-wide { display: none; max-width: min(380px, 34vw); }
@media (min-width: 720px) { .addr-wide { display: inline-flex; } }
/* the account's key in the top bar: a round key — the person's figure, or the first letter of the name signed in */
.me-link { width: 44px; padding: 0; }
.me-link[aria-expanded="true"] { background: var(--pill-press); }
.me-ava { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 700; line-height: 1; }

/* (14 November, 03:25: «Выбор языка и настройки профиля сделай так же, как мы их сделали в бэк-офисе. Такое же
   окошко») the card under the key — the back office's (app/src/styles/95-menus.css .of-me-pop): who at its top, the
   language an iPhone's segmented control (a rounded track, the chosen part raised on it), the keys rows across the card
   with a hair between them — nothing square inside the rounded card */
.me-pop {
  position: fixed; z-index: 70; width: 288px; max-width: calc(100vw - 32px); overflow: hidden; border-radius: 14px;
  background: var(--paper); color: var(--ink); box-shadow: 0 16px 40px rgb(0 0 0 / 0.24), 0 0 0 1px var(--line);
  font-family: var(--font-ui); transform-origin: top right; animation: me-pop-in 0.14s ease-out;
}
@keyframes me-pop-in { from { opacity: 0; transform: scale(0.97) translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .me-pop { animation: none; } }
.me-pop-who { display: grid; gap: 2px; padding: 16px 16px 12px; }
.me-pop-who b { font-size: 16px; font-weight: 700; line-height: 21px; overflow-wrap: anywhere; }
.me-pop-who span { color: var(--ink-3); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.me-pop-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin: 0 16px 16px; padding: 2px; border-radius: 9px; background: var(--seg-track); }
.me-pop-l { min-width: 0; height: 32px; padding: 0 4px; border: 0; border-radius: 7px; background: none; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.me-pop-l.on { background: var(--seg-on); box-shadow: 0 1px 3px rgb(0 0 0 / 0.14), 0 0 0 0.5px rgb(0 0 0 / 0.05); }
.me-pop-l:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 1px; }
/* (the audit В4) the look under the language: its icon before its word; the two rows one above the other */
.me-pop-seg + .me-pop-seg { margin-top: -8px; }
.me-pop-theme .me-pop-l { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.me-pop-theme .me-pop-l .ic { flex: none; color: var(--ink-2); }
.me-pop-theme .me-pop-l.on .ic { color: var(--ink); }
.me-pop-theme .me-pop-l span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-pop-keys { box-shadow: inset 0 1px 0 0 var(--line-2); }
.me-pop-keys button { display: flex; align-items: center; gap: 12px; width: 100%; height: 48px; padding: 0 16px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.me-pop-keys button + button { box-shadow: inset 0 1px 0 0 var(--line-2); }
.me-pop-keys button:hover { background: var(--soft); }
.me-pop-keys button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }
.me-pop-keys .ic { flex: none; color: var(--ink-2); }
.me-pop-keys.none { display: none; }
/* (03:42) a guest signs in in the card: the e-mail, the code — the fields the address sheet's cards */
.me-pop:has(.me-pop-sign) { width: 320px; }
.me-pop-sign { padding: 0 16px 16px; }
.si { display: grid; gap: 12px; }
.si .af-box { padding-right: 14px; }
.si-go { min-height: 48px; font-size: 16px; }
.si-sent { margin: 0; padding: 10px 12px; border-radius: var(--r-inner, 12px); background: var(--ok-soft); color: var(--ink); font-size: 14px; line-height: 1.4; }
.si-err { margin: 0; font-size: 14px; }
.si-code { font-size: 20px !important; font-weight: 600; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.si-also { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.si-also .link-btn { min-height: 36px; font-size: 14px; text-decoration: none; }
/* the account's page signed out: the same, a card in the middle */
.si-card { display: grid; gap: 14px; max-width: 440px; margin: 24px auto 0; padding: 28px 24px; border-radius: 20px; background: var(--paper); }
.si-badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-text); }
.si-title { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.015em; line-height: 34px; }
.si-lead { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 22px; }
.si-card .si-go { min-height: 56px; font-size: 17px; }
@media (max-width: 719px) { .si-card { margin: 12px 12px 0; padding: 24px 20px; } }
.page-me:has(.si-card) { background: var(--ground); }

/* in a restaurant's «Dostava» and in the order: a band of its own */
.addr-how { display: flex; width: 100%; }
.addr-card { display: flex; width: 100%; min-height: 56px; padding: 0 16px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-2); font-size: 16px; }
.addr-card.none { box-shadow: inset 0 0 0 1.5px var(--accent-text); }
.addr-card .addr-btn-text { flex: 1; }
.addr-card-note { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }

/* the sheet's list: a row an address — its icon, its name or street, the rest under; the chosen one marked */
.addr-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line-2); }
.addr-row { display: flex; align-items: stretch; }
.addr-row + .addr-row { border-top: 1px solid var(--line-2); }
.addr-row.on { background: var(--accent-soft); box-shadow: inset 4px 0 0 0 var(--accent); }
.addr-pick { display: flex; flex: 1; align-items: center; gap: 14px; min-width: 0; min-height: 64px; padding: 10px 16px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.addr-pick > .ic { flex: none; color: var(--ink-2); }
.addr-row.on .addr-pick > .ic { color: var(--accent-text); }
.addr-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.addr-main { font-weight: 600; }
.addr-sub { color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.addr-check { flex: none; color: var(--accent-text); }
.addr-edit { display: grid; place-items: center; flex: none; width: 56px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; box-shadow: inset 1px 0 0 0 var(--line-2); }
.addr-edit:hover, .addr-pick:hover { background: var(--ground); }
.addr-pick:focus-visible, .addr-edit:focus-visible { outline: 3px solid var(--accent-text); outline-offset: -3px; }
.addr-empty, .addr-local { margin: 12px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }

/* a new address (14 November, 03:31, the owner chose of three: «Новый адрес 1» — the cards): one column, a gap of 12
   between its parts; «Pronađi me» a card; every field a card of the sheet (the soft ground, the inner corner, 52 high)
   with its name over it — never broken in two lines; the entrance, the floor and the flat three cards in a row; the
   street's suggestions rows of one card under it; the place's name chips; «Sačuvaj adresu» the one key, staying at the
   sheet's foot */
.af { display: grid; gap: 12px; }
.af > * { margin: 0; }
.af-here { min-height: 60px; }
.af-here > .ic:first-child { color: var(--accent-text); }
.af-here:disabled { opacity: 0.7; cursor: default; }
.af-go { flex: none; margin-left: auto; color: var(--ink-3); }
.addr-here-note { margin: -4px 0 0; padding: 0 4px; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.af-f { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.af-l { padding-left: 2px; overflow: hidden; color: var(--ink-3); font-size: 13px; font-weight: 500; line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
.af-box { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 6px 0 14px; border-radius: var(--r-inner, 12px); background: var(--soft); }
.af-box:focus-within { box-shadow: 0 0 0 2px var(--accent-text); }
.af-box.bad { box-shadow: 0 0 0 2px var(--bad); }
.af-box > .ic { flex: none; color: var(--ink-3); }
.af-box input { flex: 1; width: 100%; min-width: 0; height: 50px; padding: 0 8px 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.af-box input::placeholder { color: var(--ink-3); opacity: 1; }
.af-city { display: inline-flex; flex: none; align-items: center; gap: 4px; height: 32px; padding: 0 8px 0 10px; border: 0; border-radius: var(--r-pill); background: var(--chip); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.af-city span { max-width: 96px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.af-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.af-3 .af-box { padding-right: 14px; }
.af-3 .af-box input { padding: 0; }
.addr-need { margin: -4px 0 0; padding: 0 4px; color: var(--bad); font-size: 14px; font-weight: 600; }
.addr-sugs { margin: -4px 0 0; padding: 0; overflow: hidden; list-style: none; border-radius: var(--r-inner, 12px); background: var(--soft); }
.addr-sugs li + li { box-shadow: inset 0 1px 0 0 var(--line-2); }
.addr-sug { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 14px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.addr-sug .ic { flex: none; color: var(--ink-3); }
.addr-sug:hover, .addr-sug:focus-visible { background: var(--chip); outline: none; }
.addr-nosug { margin: -4px 0 0; padding: 0 4px; color: var(--ink-3); font-size: 14px; }
/* the place's name: chips — the chosen one the ink */
.af-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.addr-label { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: var(--chip); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.addr-label.on { background: var(--ink); color: var(--ground); }
.addr-label:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.af-del { display: inline-flex; align-items: center; justify-self: start; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--bad); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.af .send-err { margin: 0; }
/* «Sačuvaj adresu»: the sheet's foot — staying at its bottom as the form scrolls, a hair over it */
.af-keys { position: sticky; bottom: 0; z-index: 2; margin: 4px -24px -20px; padding: 12px 24px max(16px, env(safe-area-inset-bottom)); background: var(--paper); box-shadow: inset 0 1px 0 0 var(--line-2); }
.af-keys .btn { min-height: 56px; font-size: 17px; }
@media (max-width: 719px) {
  .sheet .sheet-body:has(> .af) { padding: 16px 16px 20px; }
  .af-keys { margin: 4px -16px -20px; padding: 12px 16px max(16px, env(safe-area-inset-bottom)); }
}

/* ---------- the account, /me ---------- */
.page-me { padding-bottom: 24px; }
.page-me .me { padding-top: 16px; }
.me .block-lead { margin: 0 0 4px; color: var(--ink-2); line-height: 1.5; }
.me-key { margin-top: 18px; }
.me-err { margin: 14px 0 0; }
.me-sent { margin: 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--ok-soft); color: var(--ink); }
.me-also { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; }
.link-btn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:disabled { opacity: 0.5; cursor: default; }
.field-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 479px) { .field-row.two { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.me .field-hint { display: block; margin-top: 8px; }
.me-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.me-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; }
.me-add { margin-top: 14px; }
.me-orders { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line-2); }
.me-order { padding: 16px; }
.me-order + .me-order { border-top: 1px solid var(--line-2); }
.me-order-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.me-order-where { font-weight: 600; font-size: 17px; }
.me-order-sum { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.me-order-sub { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.me-state.st-done { color: var(--ok); }
.me-state.st-cancelled, .me-state.st-failed, .me-state.st-expired, .me-state.st-unpaid { color: var(--bad); }
.me-order-dishes { margin: 8px 0 0; color: var(--ink); font-size: 15px; line-height: 1.45; }
.me-order-keys { display: flex; gap: 10px; margin-top: 12px; }
.me-order-keys .btn { flex: 1; min-height: 48px; }
.me-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 0; }
.me-delete { color: var(--bad); }
.me-ask { width: 100%; padding: 14px; background: var(--bad-soft); }
.me-ask p { margin: 0 0 12px; }
.me-ask-keys { display: flex; gap: 10px; }
.btn-danger { background: var(--bad); color: #FFFFFF; }

/* ---------- the account signed in (14 November; the audit В3, the mockup «кабинет после входа») ----------
   Cards on the page's shade, one gap and one corner, as the restaurant's page: the person (the name's letter, the name,
   the e-mail and the phone, «Izmeni ime i telefon»); the orders as cards — the restaurant's logo, when and how, how it
   stands, the dishes' photos, the sum and two keys; the addresses; the way out. A computer: the person, the addresses
   and the way out at the left, the orders at the right — the two columns end on one line (04:52: «Не забывай
   выравнивать высоту блоков»). */
.page-me:has(.me.acc) { background: var(--ground); }
body:has(.me.acc) { background: var(--ground); }
.page-me > main.me.acc { --gap: 12px; max-width: 1120px; margin: 0 auto; padding: var(--gap); }
@media (min-width: 960px) { .page-me > main.me.acc { --gap: 16px; } }
.acc-grid { display: flex; flex-direction: column; gap: var(--gap); }
.acc-orders-col { display: flex; min-width: 0; }
.acc-orders-col > .acc-orders { flex: 1; }
@media (min-width: 960px) {
  .acc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); grid-template-rows: auto auto 1fr; grid-template-areas: "prof orders" "addr orders" "end orders"; align-items: stretch; }
  .acc-prof { grid-area: prof; }
  .acc-orders-col { grid-area: orders; }
  .acc-addr { grid-area: addr; }
  .acc-grid > .me-end { grid-area: end; }
}
.acc-card { min-width: 0; padding: 20px; border-radius: var(--r-xl); background: var(--paper); }
.acc-who { display: flex; align-items: center; gap: 14px; }
.acc-ava { display: grid; flex: none; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 24px; font-weight: 700; line-height: 1; }
.acc-who-words { min-width: 0; }
.acc-name { margin: 0; font-size: 22px; font-weight: 600; line-height: 28px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.acc-contact { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.acc-pill { display: inline-flex; align-items: center; gap: 8px; height: 44px; margin-top: 16px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: var(--chip); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.acc-pill:hover { background: var(--pill-press); }
.acc-pill:focus-visible, .acc-head-key:focus-visible, .acc-out:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.acc-title { margin: 0 0 12px; font-size: 18px; font-weight: 600; line-height: 24px; }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.acc-head .acc-title { margin: 0; }
.acc-head-key { display: inline-flex; align-items: center; gap: 4px; height: 36px; margin-right: -8px; padding: 0 10px; border: 0; border-radius: var(--r-pill); background: none; color: var(--accent-text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.acc-head-key:hover { background: var(--accent-soft); }
.acc-lead { margin: 0; color: var(--ink-2); line-height: 1.5; }
/* the addresses: rows from the card's edge to edge, a line between them; the chosen one ticked */
.me.acc .acc-addr .addr-list { margin: 0 -20px -20px; border: 0; box-shadow: inset 0 1px 0 0 var(--line-2); }
.me.acc .acc-addr .addr-row { overflow: hidden; }
.me.acc .acc-addr .addr-row:last-child { border-radius: 0 0 var(--r-xl) var(--r-xl); }
.me.acc .acc-addr .addr-row.on { background: none; box-shadow: none; }
.me.acc .acc-addr .addr-pick { padding-inline: 20px 12px; }
.me.acc .acc-addr .addr-edit { box-shadow: none; }
.me.acc .acc-addr .addr-empty { margin: 0; padding: 0; }
/* the way out: «Odjavi se» at the left, «Obriši nalog» at the right */
.acc-end-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acc-out { display: inline-flex; align-items: center; gap: 10px; height: 44px; margin-left: -8px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: none; color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.acc-out:hover { background: var(--soft); }
.acc-out > .ic { color: var(--ink-2); }
.me.acc .me-end { display: block; }
.me.acc .me-ask { margin: 12px 0 0; border-radius: var(--r-md); }
/* the orders: cards in a card (two side by side when there is room), the soft ground under them */
.me.acc .me-orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; list-style: none; }
.me.acc .me-order { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 0; border-radius: var(--r-lg); background: var(--soft); }
.me.acc .me-order + .me-order { border-top: 0; }
.me-order-head { display: flex; align-items: center; gap: 12px; }
.me.acc .me-order-head { justify-content: flex-start; align-items: center; }
.me-order-mark { display: grid; flex: none; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: var(--r-md); background: var(--paper); color: var(--ink); font-weight: 700; }
.me-order-mark img { max-width: 84%; max-height: 84%; object-fit: contain; }
.me-order-words { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.me.acc .me-order-where { overflow: hidden; font-size: 16px; font-weight: 600; line-height: 22px; white-space: nowrap; text-overflow: ellipsis; }
.me.acc .me-order-sub { display: block; margin: 0; color: var(--ink-2); font-size: 13px; line-height: 18px; }
.me.acc .me-state { flex: none; padding: 4px 10px; border-radius: var(--r-pill); background: var(--chip); color: var(--ink-2); font-size: 12px; font-weight: 700; line-height: 16px; }
.me.acc .me-state.st-open { background: var(--accent-soft); color: var(--accent-text); }
.me.acc .me-state.st-done { background: var(--ok-soft); color: var(--ok); }
.me.acc .me-state:is(.st-cancelled, .st-failed, .st-expired, .st-unpaid) { background: var(--bad-soft); color: var(--bad); }
.me-order-pics { display: flex; gap: 8px; }
.me-order-pic { display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: var(--r-md); background: var(--paper); }
.me-order-pic img { width: 100%; height: 100%; object-fit: cover; }
.me-order-pic.is-cut img { width: 86%; height: 86%; object-fit: contain; }
.me.acc .me-order-dishes { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 20px; }
.me-order-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: auto; }
.me.acc .me-order-sum { margin-right: auto; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.me.acc .me-order-keys { display: flex; gap: 8px; margin: 0; }
.me.acc .me-order-keys .btn { flex: none; min-height: 40px; height: 40px; padding: 0 14px; border-radius: var(--r-pill); font-size: 14px; }
.me.acc .me-order-keys .btn-quiet { background: var(--paper); }

/* ---------- v2: the pages of an order as the waiter's iPhone and the front (9 November; 13 November the back office's
   look — «Сайт для гостей — А»: the choices pills, «Poruči» a pill at the foot, the times chips) ----------
   The owner, 20:13: «все, что для телефона, должно выглядеть как приложение официанта. А все, что для компьютера … как
   вот фронт. Блочность обязательно, линии вертикальные, горизонтальные, точно по сетке совпадают друг с другом … Никаких
   полей слева-справа. Максимально полезно используем пространство»; 20:41: «все управление процессами должно быть
   нативным, как в ios — простым и понятным». So the basket's page:
   · on a phone no margins at the sides: every block from edge to edge with a line under it, its words 16 from the
     edge; a line of the basket a row as the waiter's dish — «−», how many, «+» keys at its right, the row's whole height;
     the times a grid of equal cells, one pixel of line between them; a field the iPhone's row — its name at the left,
     the value at the right; a way to pay a row of a list, the chosen one with its tick at the right (as the iPhone's
     lists); «Plati» a band across the foot of the screen;
   · on a computer the front's order screen: the choices at the left, what is ordered, its sum and «Plati» at the right,
     staying on the screen while the left side scrolls. */

/* the page: from edge to edge */
.page-cart > main.narrow { max-width: none; padding: 0; }
.page-cart .cart-title { margin: 0; padding: 20px var(--gutter) 0; font-size: 28px; }
.page-cart .cart-from { margin: 0; padding: 2px var(--gutter) 16px; box-shadow: inset 0 -1px 0 0 var(--line-2); }
.page-cart .gone { padding: 32px var(--gutter); }

/* the blocks: a line under each, the title 16 from the edge */
.checkout .block { padding: 0; border-bottom: 0; box-shadow: inset 0 -1px 0 0 var(--line-2); }
.checkout .block-title { margin: 0; padding: 20px var(--gutter) 12px; font-size: 18px; }
.checkout .block-text { margin: 0; padding: 14px var(--gutter); }
.checkout .seg + .block-text, .checkout .seg + .addr { box-shadow: inset 0 1px 0 0 var(--line-2); }
.checkout .addr > .btn { border-radius: 0; }

/* the basket's lines: rows from edge to edge; «−», how many, «+» the row's whole height at its right */
.checkout .lines .line {
  grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text step" "sum step"; gap: 2px 0; align-items: center;
  min-height: 76px; padding: 0 0 0 var(--gutter); border-bottom: 0; box-shadow: inset 0 -1px 0 0 var(--line-2);
}
.checkout .lines .line:last-child { box-shadow: none; }
.checkout .line-text { align-self: end; padding-top: 12px; }
.checkout .line-sum { align-self: start; justify-self: start; padding-bottom: 12px; color: var(--ink-2); font-weight: 500; }
.checkout .line .stepper { grid-area: step; align-self: stretch; justify-self: end; background: none; box-shadow: none; }
.checkout .line .step { width: 56px; height: auto; color: var(--accent-text); }
.checkout .line .stepper .step-n { min-width: 28px; box-shadow: none; font-size: 17px; }

/* to take away or delivered: two keys across the block */
.checkout .seg { margin: 0 var(--gutter) 16px; min-height: 44px; }
.checkout .addr { padding: 0; }
.checkout .addr .addr-card { display: flex; width: 100%; min-height: 56px; padding: 0 var(--gutter); border: 0; box-shadow: none; }
.checkout .addr .addr-card-note { margin: 0; padding: 0 var(--gutter) 12px; color: var(--ink-2); font-size: 14px; }
.checkout .addr .quote { margin: 0; padding: 14px var(--gutter); box-shadow: inset 0 1px 0 0 var(--line-2); }
.checkout .addr > .btn { display: flex; width: 100%; min-height: 56px; margin: 0; background: transparent; color: var(--accent-text); box-shadow: inset 0 1px 0 0 var(--line-2); }
.checkout .addr > .btn:not(:disabled):hover { background: var(--soft); }

/* the times: chips that wrap, the chosen one in the colour */
.checkout .times { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 var(--gutter) 16px; }
.checkout .time {
  min-width: 76px; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: var(--chip); color: var(--ink); font-size: 16px;
}
.checkout .time:not(.on):hover { background: var(--ground-2); }
.checkout .time.on { background: var(--accent); color: var(--accent-ink); }

/* the fields: the iPhone's rows — the name at the left, the value at the right, a line under each */
.checkout .block > .field {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 2px 12px; min-height: 56px; margin: 0;
  padding: 6px var(--gutter); box-shadow: inset 0 1px 0 0 var(--line-2);
}
.checkout .block > .field > .field-label { grid-column: 1; font-size: 16px; font-weight: 400; }
.checkout .block > .field > :is(input, textarea) {
  grid-column: 2; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: right;
}
.checkout .block > .field > :is(input, textarea):focus { box-shadow: none; }
.checkout .block > .field:focus-within { box-shadow: inset 0 1px 0 0 var(--line-2), inset 0 -2px 0 0 var(--accent-text); }
.checkout .block > .field:has([aria-invalid="true"]) { box-shadow: inset 0 1px 0 0 var(--line-2), inset 0 -2px 0 0 var(--bad); }
.checkout .block > .field input[aria-invalid="true"] { box-shadow: none; }
.checkout .block > .field > :is(.field-hint, .field-err) { grid-column: 1 / -1; padding-bottom: 4px; }
/* a text that needs the width: under its name */
.checkout .block > .field:has(> textarea) { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
.checkout .block > .field:has(> textarea) > * { grid-column: 1; }
.checkout .block > .field:has(> textarea) > .field-label { color: var(--ink-2); font-size: 14px; }
.checkout .block > .field > textarea { min-height: 64px; padding: 4px 0 8px; text-align: left; }

/* how to pay: a list, the chosen one with its tick at the right */
.checkout .pays { gap: 0; box-shadow: inset 0 1px 0 0 var(--line-2); }
.checkout .pay { align-items: center; min-height: 64px; padding: 12px var(--gutter); border: 0; border-radius: 0; box-shadow: inset 0 -1px 0 0 var(--line-2); }
.checkout .pay:last-child { box-shadow: none; }
.checkout .pay.on { box-shadow: inset 0 -1px 0 0 var(--line-2); }
.checkout .pay:last-child.on { box-shadow: none; }
.checkout .pay-text { flex: 1; min-width: 0; }
.checkout .pay::after {
  content: ""; flex: none; width: 22px; height: 22px; background: transparent;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checkout .pay.on::after { background: var(--accent-text); }
.checkout .pays + .field { box-shadow: inset 0 1px 0 0 var(--line-2); }

/* the sum: rows */
.checkout .totals { padding: 10px var(--gutter) 12px; }
.checkout .sum-row { padding: 6px 0; }

/* «Poruči»: a pill at the foot of the screen, as the menu's basket */
.checkout .send { margin: 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); }
.checkout .send-err, .checkout .send-hint { margin: 0 0 12px; padding: 12px 14px; }
.checkout .send-err { border-radius: var(--r-md); }
.checkout .send-hint { padding: 0 4px; }
.checkout .send .btn.big { min-height: 56px; box-shadow: var(--shadow-float); }
.checkout .send-small { margin: 0; padding: 10px 4px 0; }

/* ---------- a computer: the front's order screen ---------- */
@media (min-width: 720px) {
  .page-cart { padding-bottom: 0; }
  .page-cart .cart-title { padding: 24px var(--gutter) 0; font-size: 30px; }
  .checkout:not(.co-panel) {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); grid-template-rows: auto 1fr; align-items: start;
    min-height: calc(100vh - var(--bar-h) - 96px);
  }
  .checkout > .block-lines { grid-column: 2; grid-row: 1; }
  .checkout > .co-main { grid-column: 1; grid-row: 1 / span 2; align-self: stretch; box-shadow: inset -1px 0 0 0 var(--line-2); }
  .checkout > .co-pay { grid-column: 2; grid-row: 2; position: sticky; top: var(--bar-h); }
  .checkout > .co-pay .send { position: static; padding: 16px var(--gutter) 20px; box-shadow: inset 0 1px 0 0 var(--line-2); }
  .checkout > .co-pay .send .btn.big { box-shadow: none; }
  .checkout > .co-pay .totals { box-shadow: none; }
  .checkout .seg { max-width: 520px; }
  /* «Vaši podaci»: three cells side by side, the name over the value — as the front's tiles */
  /* (15 November, the robot: the cells' ring a pixel beside the block's line under it and the column's line at the right —
     doubled) the cells end a pixel short of the block's right and bottom, so their lines lie on the block's own */
  .checkout:not(.co-panel) .block:has(> #h-you) { display: flex; flex-wrap: wrap; gap: 1px; padding: 0 1px 1px 0; }
  .checkout:not(.co-panel) .block:has(> #h-you) > .block-title { flex: 1 0 100%; }
  .checkout:not(.co-panel) .block:has(> #h-you) > .field { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; flex: 1 1 220px; gap: 2px; padding: 10px var(--gutter); box-shadow: 0 0 0 1px var(--line-2); }
  .checkout:not(.co-panel) .block:has(> #h-you) > .field > :is(input, textarea) { text-align: left; }
  .checkout:not(.co-panel) .block:has(> #h-you) > .field > .field-label { color: var(--ink-2); font-size: 14px; }
  .checkout:not(.co-panel) .block:has(> #h-you) > .field:focus-within { box-shadow: 0 0 0 1px var(--line-2), inset 0 -2px 0 0 var(--accent-text); }
  .checkout:not(.co-panel) .block:has(> #h-you) > .field:has([aria-invalid="true"]) { box-shadow: 0 0 0 1px var(--line-2), inset 0 -2px 0 0 var(--bad); }
  .checkout:not(.co-panel) .block:has(> #h-you) > .hp { flex: none; }
  .checkout .block > .field > :is(.field-hint, .field-err) { padding-bottom: 0; }
}
.checkout:not(.co-panel) .block:has(> #h-you) > .field > .field-label, .checkout:not(.co-panel) .block:has(> #h-you) > .field > :is(.field-hint, .field-err) { text-align: left; }

/* ---------- an order's page: cards (60-order.css, the audit В1) ---------- */
.page-bank > main.narrow, .page-me > main.narrow { max-width: none; padding: 0; }

/* the demo bank: a block from edge to edge, its keys bands. (15 November, 01:48, the owner: «Криво» — the keys kept the
   width of their words, a button's own, and the block's line ran under the last one: its margin went out of the block)
   the keys the block's width less its margins, one under the other; the line under them after the block's own space;
   on a computer the block in the middle, as wide as a phone's page */
.page-bank .bank { margin: 0; padding: 24px 0 20px; border-radius: 0; box-shadow: inset 0 -1px 0 0 var(--line-2); }
.page-bank .bank > :not(.btn) { padding-inline: var(--gutter); }
.page-bank .bank-facts { gap: 0; padding: 0 !important; box-shadow: inset 0 1px 0 0 var(--line-2); }
.page-bank .bank-facts > div { min-height: 52px; align-items: center; padding: 8px var(--gutter); box-shadow: inset 0 -1px 0 0 var(--line-2); }
.page-bank .bank .btn { display: flex; justify-content: center; width: calc(100% - 2 * var(--gutter)); min-height: 56px; margin: 16px var(--gutter) 0; }
.page-bank .bank .btn + .btn { margin: 10px var(--gutter) 0; }
@media (min-width: 700px) { .page-bank .bank { max-width: 520px; margin: 24px auto 0; } }

/* ---------- the account ---------- */
.page-me .me { padding-top: 0; }
.me .block { padding: 0; border-bottom: 0; box-shadow: inset 0 -1px 0 0 var(--line-2); }
.me .block-title { margin: 0; padding: 20px var(--gutter) 10px; font-size: 18px; }
.me .block-lead { margin: 0; padding: 0 var(--gutter) 14px; }
.me .block-lead + .block-lead { margin-top: -6px; }
/* its fields: the iPhone's rows */
.me .field { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 2px 12px; min-height: 56px; margin: 0; padding: 6px var(--gutter); box-shadow: inset 0 1px 0 0 var(--line-2); }
.me .field > .field-label { grid-column: 1; font-size: 16px; font-weight: 400; }
.me .field > input { grid-column: 2; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: right; }
.me .field > input:focus { box-shadow: none; }
.me .field:focus-within { box-shadow: inset 0 1px 0 0 var(--line-2), inset 0 -2px 0 0 var(--accent-text); }
.me .field-row.two { display: block; gap: 0; }
.me .field-row.two > .field + .field { box-shadow: inset 0 1px 0 0 var(--line-2); }
.me .field-hint { margin: 0; padding: 10px var(--gutter); box-shadow: inset 0 1px 0 0 var(--line-2); }
.me .me-sent { padding: 12px var(--gutter); }
.me .send-err { margin: 0; padding: 12px var(--gutter); border-radius: 0; }
.me .me-key { width: auto; margin: 4px var(--gutter) 16px; min-height: 56px; }
.me .me-also { gap: 0; margin: 0; padding: 4px var(--gutter) 8px; }
.me .me-also .link-btn { margin-right: 20px; }
.me .me-row { gap: 0; margin: 0; }
.me .me-row > .btn { flex: 1; min-height: 56px; border-radius: 0; background: transparent; color: var(--accent-text); box-shadow: inset 0 1px 0 0 var(--line-2); }
.me .me-row > .btn:not(:disabled):hover { background: var(--soft); }
.me .me-row > .me-ok { flex: 1; justify-content: center; }
/* (the signed-in account: cards — 70-account.css, the audit В3) */

@media (min-width: 720px) {
  .page-bank > main.narrow { max-width: 640px; margin: 0 auto; box-shadow: inset 1px 0 0 0 var(--line-2), inset -1px 0 0 0 var(--line-2); }
}


/* (14 November 2026, 14:56, the owner: «меню в приложении, как в приложении официанта внизу пилюлей») RUVO Order's
   menu: one big pill hanging over the screen's foot as the waiter's iPhone has it (app/src/styles/50-phone.css,
   .tabbar) — 16 from the screen's edges, above the home bar, 64 high, a soft shadow; the page goes on under it and its
   end scrolls clear of it. Inside, the three tabs (the icon and its word, 13); under the chosen one the lens of the
   accent, its icon and word white on it; going to another tab the lens flows — the edge on the side it goes runs ahead,
   the other follows a moment later. */
.app-tabs {
  position: fixed; left: 16px; right: 16px; bottom: max(12px, env(safe-area-inset-bottom, 0px)); z-index: 30;
  display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; max-width: 440px; height: 64px; margin: 0 auto; padding: 4px;
  border-radius: var(--r-pill); background: var(--paper); box-shadow: var(--shadow-float), 0 0 0 1px var(--line);
}
.app-tab {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 56px; border-radius: var(--r-pill); color: var(--ink-2); font-size: 13px; font-weight: 500; line-height: 16px; text-decoration: none;
  -webkit-tap-highlight-color: transparent; transition: color 0.15s;
}
.app-tab.on { color: var(--accent-ink); transition: color 0.18s 0.1s; }
.app-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.app-tabs-track { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.app-tabs-lens {
  position: absolute; top: 4px; bottom: 4px;
  left: calc(4px + var(--i, 0) * (100% - 8px) / var(--n, 3));
  right: calc(4px + (var(--n, 3) - 1 - var(--i, 0)) * (100% - 8px) / var(--n, 3));
  border-radius: var(--r-pill); background: var(--accent);
  transition: right 0.26s cubic-bezier(0.3, 1.25, 0.5, 1), left 0.34s cubic-bezier(0.5, 0, 0.2, 1) 0.06s;
}
.app-tabs[data-dir="l"] .app-tabs-lens { transition: left 0.26s cubic-bezier(0.3, 1.25, 0.5, 1), right 0.34s cubic-bezier(0.5, 0, 0.2, 1) 0.06s; }
@media (prefers-reduced-motion: reduce) { .app-tabs-lens, .app-tab { transition: none !important; } }
/* the room under the page's last thing: the pill, the home bar's room under it, a little air */
.has-tabs .page { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.has-tabs .foot { padding-bottom: 8px; }
/* the example restaurant in RUVO Order's list: its tag in the page's quiet tone, not the accent of a real offer */
.shop-badge-ex { background: var(--ink); color: var(--paper); }
.orders-sign { margin-top: 16px; text-align: center; }
/* (14 November, 15:19, the owner: «Верхние линии надо убрать везде») in RUVO Order the top bar has no line under it on
   any page; a page the pill goes to with nothing in its top bar keeps only the status bar's room */
.in-app .topbar { box-shadow: none; }
.in-app .topbar.bare .topbar-in { min-height: 8px; height: 8px; padding-block: 0; }
/* the language and the look on «Profil» (no account key at the top in the app): the account's card */
.acc-look .me-pop-seg { margin: 0 0 12px; }
.acc-look .me-pop-seg:last-child { margin-bottom: 0; }
.acc-look .me-pop-seg + .me-pop-seg { margin-top: 0; }
.in-app .home-head, .in-app .page-cart .cart-from { box-shadow: none; }
/* (the card under the sign-in card as wide as it, apart from it; under the signed-in grid with its gap) */
.acc-look { max-width: 440px; margin: var(--gap, 16px) auto 0; }
.me.acc .acc-look { max-width: none; }
@media (max-width: 719px) { .me:not(.acc) .acc-look { margin: 12px 12px 0; padding: 20px; } }
/* (15:33, the owner: «блок верхний по цветам, а ниже, когда начинаются рестораны, цвет фона другой — надо исправить»)
   in RUVO Order the top of every page is the page's own shade, one colour from the status bar down: no band of the
   header's gradient over the restaurants, the menu or the basket */
.in-app .topbar, .in-app .home-head { background: var(--ground); }

/* (15 November 2026, the App Store's pictures) in the app the page runs under the phone's status bar: a band of the page's
   own ground stands there — what scrolls goes under it, never under the time and the island — and the menu's folders
   stick right under it (in a browser the band is nothing: there the safe area is 0) */
.in-app body::before { content: ''; position: fixed; z-index: 25; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); background: var(--ground); pointer-events: none; }
.in-app .stations { top: env(safe-area-inset-top, 0px); }
