/* =====================================================
   ATLAS — минималистичная чёрно-белая тема (шрифты логотипа: Marcellus + Montserrat).
   Светлая (по умолчанию) и тёмная используют одни и те же
   правила — меняются только переменные ниже.
   ===================================================== */

/* Шрифты логотипа (Google Fonts, лицензия OFL), размещены на своём домене */
/* Forum — cyrillic */
@font-face {
  font-family: 'Forum';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/forum-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Forum — latin-ext */
@font-face {
  font-family: 'Forum';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/forum-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Forum — latin */
@font-face {
  font-family: 'Forum';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/forum-latin.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;
}
/* Marcellus — latin-ext */
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/marcellus-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Marcellus — latin */
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/marcellus-latin.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;
}
/* Montserrat — cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/montserrat-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Montserrat — latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/montserrat-latin.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;
}

:root, [data-theme="light"] {
  --bg: #f6f3ed;          /* молочно-белый */
  --card: #fffdf9;
  --card-2: #efebe4;
  --ink: #121212;         /* чёрный текст */
  --ink-2: #3d3b38;
  --muted: #8a857d;
  --line: rgba(18, 18, 18, .08);
  --line-2: rgba(18, 18, 18, .15);
  --accent: #b55e39;        /* терракота логотипа, чуть глубже — для читаемости белого текста */
  --on-accent: #ffffff;
  --accent-text: #a85633;   /* терракотовый текст на молочном фоне */
  --accent-soft: rgba(181, 94, 57, .1);
  --accent-line: rgba(181, 94, 57, .45);
  --sand: #dea872;          /* песочный из логотипа */
  --glass: rgba(246, 243, 237, .97);
  --shadow: 0 1px 2px rgba(18, 18, 18, .04), 0 8px 24px rgba(18, 18, 18, .05);
  --shadow-lg: 0 18px 50px rgba(18, 18, 18, .16);
  --ph-1: #ece7df; --ph-2: #e2dcd2;
  --sk-1: #ece8e1; --sk-2: #f6f3ee;
  --backdrop: rgba(18, 18, 18, .38);
  --stage: #e7e2d9;
  --ok: #3b7a50;
  --grain: .035;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0f0f0e;
  --card: #181817;
  --card-2: #222220;
  --ink: #f4f0e8;
  --ink-2: #cdc8bf;
  --muted: #8b877f;
  --line: rgba(244, 240, 232, .08);
  --line-2: rgba(244, 240, 232, .15);
  --accent: #d27d55;
  --on-accent: #140d09;
  --accent-text: #e0956d;
  --accent-soft: rgba(210, 125, 85, .14);
  --accent-line: rgba(210, 125, 85, .5);
  --sand: #dea872;
  --glass: rgba(15, 15, 14, .97);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .55);
  --ph-1: #1d1d1b; --ph-2: #252523;
  --sk-1: #1b1b1a; --sk-2: #262624;
  --backdrop: rgba(0, 0, 0, .6);
  --stage: #070707;
  --ok: #7fbf92;
  --grain: .05;
  color-scheme: dark;
}
:root {
  --radius: 20px;
  --app-w: 460px;
  --topbar-h: 60px;
  --font-display: "Marcellus", "Forum", Georgia, serif;  /* как ATLAS в логотипе; кириллица — Forum */
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;  /* как RESTAURANT & KITCHEN */
  --spring: cubic-bezier(.34, 1.36, .64, 1);   /* мягкий «пружинящий» отскок для мелких элементов */
  --ease: cubic-bezier(.22, 1, .36, 1);        /* easeOutQuint — плавное торможение */
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);  /* кривая шторок iOS */
  --ease-io: cubic-bezier(.65, 0, .35, 1);     /* для движения «туда-обратно» */
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--stage);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
body.locked { overflow: hidden; }

/* Плавная смена темы (если нет View Transitions) */
html.theme-fade, html.theme-fade * { transition: background-color .45s ease, border-color .45s ease, color .45s ease, fill .45s ease !important; }
html.vt-theme::view-transition-old(root), html.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.vt-theme::view-transition-new(root) { will-change: clip-path; }
::view-transition-old(root) { animation: vtOut .22s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .38s var(--ease) .04s both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; } }

/* ============ Сцена для показа на ноутбуке ============ */
@media (min-width: 620px) {
  .app { box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
}
.app {
  position: relative;
  max-width: var(--app-w);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  overflow-x: clip;
  padding-bottom: 120px;
}
.app > .topbar { position: fixed; z-index: 40; }
.hero, .featured, .menu, .footer { position: relative; }
.app > .tabs { position: sticky; z-index: 30; }
.fixed-col { left: 50%; width: min(100%, var(--app-w)); transform: translateX(-50%); }

/* ============ Заставка ============ */
.splash {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--bg); color: var(--ink);
  transition: opacity .8s var(--ease) .1s, visibility 0s linear .9s;
  will-change: opacity;
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { text-align: center; transition: transform .9s var(--ease), opacity .6s var(--ease); will-change: transform, opacity; }
.splash.hide .splash-inner { transform: translate3d(0, -14px, 0) scale(1.04); opacity: 0; }
.nfc { position: relative; width: 120px; height: 120px; margin: 0 auto 30px; display: grid; place-items: center; }
.ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--accent);
  animation: ripple 2.4s var(--ease) infinite;
  opacity: 0;
}
.ring.r2 { animation-delay: .5s; }
.ring.r3 { animation-delay: 1s; }
@keyframes ripple { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.2); opacity: 0; } }
.nfc-mark {
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); color: var(--ink); border: 1px solid var(--line-2);
  font-family: var(--font-display); font-size: 44px; font-weight: 400;
  animation: pop .9s var(--spring) both;
}
.nfc-mark img { width: 64px; height: auto; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.splash-name {
  font-family: var(--font-display); font-size: 42px; font-weight: 400;
  letter-spacing: .16em; margin-right: -.16em; text-transform: uppercase;
  animation: rise .9s var(--ease) .25s both;
}
.splash-sub { margin-top: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); animation: rise .9s var(--ease) .45s both; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============ Верхняя панель ============ */
.topbar {
  top: 0; height: var(--topbar-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  color: #fff;
  transition: color .35s ease;
}
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--glass);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .3s ease;
}
.topbar.solid { color: var(--ink); }
.topbar.solid::before { opacity: 1; }
.topbar-brand {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 20px; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s var(--ease);
  white-space: nowrap; overflow: hidden;
}
.topbar-brand img { width: 34px; height: auto; flex: none; }
.topbar.solid .topbar-brand { opacity: 1; transform: none; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .32); border: 1px solid rgba(255, 255, 255, .28);
  transition: transform .2s var(--spring), background .3s, border-color .3s;
}
.topbar.solid .icon-btn { background: transparent; border-color: var(--line-2); }
.icon-btn:active { transform: scale(.9); }
.icon-btn.small { width: 30px; height: 30px; border: 0 !important; background: transparent !important; }
.icon-btn.small .i { width: 16px; height: 16px; }
.theme-btn .i { transition: transform .6s var(--spring), opacity .3s; }
.theme-btn .sun, .theme-btn .moon { grid-area: 1 / 1; }
.theme-btn .moon { transform: rotate(-90deg) scale(.4); opacity: 0; }
[data-theme="dark"] .theme-btn .sun { transform: rotate(90deg) scale(.4); opacity: 0; }
[data-theme="dark"] .theme-btn .moon { transform: none; opacity: 1; }

.lang {
  position: relative; display: flex; height: 40px; padding: 3px; border-radius: 20px;
  background: rgba(0, 0, 0, .32); border: 1px solid rgba(255, 255, 255, .28);
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  transition: opacity .25s, background .3s, border-color .3s;
}
.topbar.solid .lang { background: transparent; border-color: var(--line-2); }
.lang button { position: relative; z-index: 1; width: 34px; display: grid; place-items: center; opacity: .75; transition: color .3s, opacity .3s; touch-action: manipulation; }
.lang i {
  position: absolute; top: 3px; left: 3px; width: 34px; height: 32px; border-radius: 16px;
  background: #fff;
  transition: transform .45s var(--spring), background .35s;
}
.topbar.solid .lang i { background: var(--accent); }
.lang[data-lang="uz"] i { transform: translateX(34px); }
.lang[data-lang="en"] i { transform: translateX(68px); }
.lang button[aria-pressed="true"] { color: #111; opacity: 1; }
.topbar.solid .lang button[aria-pressed="true"] { color: var(--on-accent); }
.topbar.searching .lang, .topbar.searching .theme-btn { opacity: 0; pointer-events: none; }

.search-wrap {
  position: absolute; left: 14px; right: 62px; top: 10px; height: 40px;
  display: flex; align-items: center; gap: 8px; padding: 0 6px 0 14px;
  border-radius: 20px; background: var(--card); border: 1px solid var(--line-2); color: var(--ink);
  opacity: 0; transform: scaleX(.6); transform-origin: right center; pointer-events: none;
  transition: opacity .25s ease, transform .45s var(--spring), border-color .2s;
}
.search-wrap:focus-within { border-color: var(--accent); }
.search-wrap .i { width: 18px; height: 18px; color: var(--accent-text); }
.search-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.search-wrap input::placeholder { color: var(--muted); }
.search-wrap input::-webkit-search-cancel-button { display: none; }
.topbar.searching .search-wrap { opacity: 1; transform: none; pointer-events: auto; }
.topbar.searching .topbar-brand { opacity: 0 !important; }

/* ============ Обложка ============ */
.cover { position: relative; height: 470px; overflow: hidden; background: #1a1a19; color: #fff; }
.cover-parallax { position: absolute; inset: -40px 0 0; will-change: transform; }
.cover-parallax .ph, .cover-parallax img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% 50%, rgba(0, 0, 0, .35), transparent 75%),
    linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .22) 30%, rgba(0, 0, 0, .3) 64%, var(--bg) 100%);
}
.cover-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: 20px; text-align: center; will-change: transform, opacity;
}
/* Логотип на обложке: знак + ATLAS (Marcellus) + RESTAURANT & KITCHEN (Montserrat) */
.cover-mark {
  width: 104px; height: auto;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .35));
  animation: pop 1s var(--spring) .2s both;
}
.brand {
  margin: 18px 0 0; font-family: var(--font-display); font-weight: 400;
  font-size: 64px; line-height: 1; letter-spacing: .06em; margin-right: -.06em; text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
  animation: rise 1s var(--ease) .3s both;
}
.brand-sub {
  margin-top: 12px;
  font-family: var(--font-body); font-size: 11.5px; font-weight: 500;
  letter-spacing: .2em; margin-right: -.2em; text-transform: uppercase;
}
.cover .brand-sub { text-shadow: 0 2px 16px rgba(0, 0, 0, .45); animation: rise 1s var(--ease) .45s both; }
.ph-label.cover-label { position: absolute; z-index: 3; left: 16px; right: auto; top: 74px; bottom: auto; }

.info { position: relative; margin-top: -30px; padding: 0 16px; text-align: center; z-index: 3; }
.info-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 13px; border-radius: 17px; white-space: nowrap;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  animation: rise .8s var(--ease) both;
}
.pill:nth-child(2) { animation-delay: .08s; }
.pill:nth-child(3) { animation-delay: .16s; }
.pill b { color: var(--ink); font-weight: 700; }
.pill .i { width: 14px; height: 14px; }
.pill .star { fill: var(--accent); stroke: none; }
.pill.table { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.dot-live { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); color: var(--ok); }
.dot-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 75%, 100% { transform: scale(2.6); opacity: 0; } }
.dot-live.closed { background: var(--muted); }
.dot-live.closed::after { display: none; }
.pill.table .dot-live { background: var(--on-accent); color: var(--on-accent); }
.info-addr { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.info-addr .i { width: 14px; height: 14px; }

.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 22px; }
.action {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 4px 2px; font-size: 12px; font-weight: 600; color: var(--ink-2);
  transition: transform .25s var(--spring);
}
.action:active { transform: scale(.92); }
.action .ic {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line-2); color: var(--ink);
  transition: background .3s, color .3s, border-color .3s;
}
@media (hover: hover) { .action:hover .ic { border-color: var(--accent-line); color: var(--accent-text); } }
.action .ic .i { width: 21px; height: 21px; }
.action .ic { position: relative; }
.action.called .ic { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.action.called .ic::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--accent); animation: ringOut 1.8s ease-out infinite; }
@keyframes ringOut { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.45); opacity: 0; } }

/* ============ Плейсхолдеры и фото ============ */
.ph {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--ph-1), var(--ph-2));
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, color-mix(in srgb, var(--card) 45%, transparent) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: sheen 5s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.ph-ic { position: relative; z-index: 1; width: 34%; max-width: 84px; height: auto; aspect-ratio: 1; color: var(--muted); opacity: .8; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.ph-label {
  position: absolute; z-index: 2; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--glass); color: var(--ink-2); border: 1px solid var(--line);
  font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.ph-label .i { width: 12px; height: 12px; }
.ph-cover { background: linear-gradient(160deg, #2b2a28, #121212); }
.is-demo .ph-cover { background: radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--accent) 62%, #1c1a18), #121212 78%); }

img.real { opacity: 0; transition: opacity .7s var(--ease), transform 1s var(--ease); }
img.real.loaded { opacity: 1; }
.dish-media, .fcard .media, .d-media { background: var(--sk-1); }
.d-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(14px); transform: scale(1.12); }
.d-media img.real { transform: scale(1.04); }
.d-media img.real.loaded { transform: none; }

/* ============ Заголовки секций ============ */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 20px; }
.section-num { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .26em; color: var(--accent-text); margin-bottom: 6px; text-transform: uppercase; }
.section-title { margin: 0; font-family: var(--font-display); font-size: 31px; font-weight: 400; line-height: 1.05; }
.section-title em { font-style: normal; color: var(--muted); }
.section-sub { margin-top: 6px; font-size: 13px; color: var(--muted); }
.section-note {
  margin-bottom: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text); border: 1px solid var(--accent-line); padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.section-rule { height: 1px; margin: 16px 20px 0; background: linear-gradient(90deg, var(--accent-line), var(--line-2) 28%); }

/* ============ Шеф рекомендует ============ */
.featured { padding: 46px 0 4px; }
.featured .section-head { display: block; }
.carousel {
  display: flex; gap: 12px; overflow-x: auto; padding: 18px 20px 20px;
  scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.fcard {
  position: relative; flex: none; width: 74%; scroll-snap-align: start;
  border-radius: 24px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left;
  transition: transform .3s var(--spring);
}
.fcard:active { transform: scale(.97); }
.fcard .media { position: relative; height: 240px; overflow: hidden; }
.fcard .media .ph, .fcard .media img { width: 100%; height: 100%; object-fit: cover; }
.fcard .media img.real.loaded { transform: scale(1.001); }
@media (hover: hover) { .fcard:hover .media img.real.loaded { transform: scale(1.05); } }
.fcard .media .ph-label { left: auto; right: 10px; top: 12px; bottom: auto; }
.fcard-body { padding: 16px 18px 18px; }
.fcard-name { font-family: var(--font-display); font-size: 22px; font-weight: 400; line-height: 1.15; }
.fcard-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; }
.fcard-chef {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px; border-radius: 999px;
  background: var(--card); color: var(--ink);
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.fcard-chef .i { width: 13px; height: 13px; stroke-width: 2; }

/* ============ Табы и фильтры ============ */
.tabs {
  top: var(--topbar-h);
  margin-top: 26px;
  background: var(--glass);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.tabs.stuck { border-color: var(--line); }
.tabs-scroll { position: relative; display: flex; gap: 2px; overflow-x: auto; padding: 10px 16px 8px; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tab {
  position: relative; z-index: 1; flex: none;
  height: 36px; padding: 0 15px; border-radius: 18px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: color .3s;
}
.tab.active { color: var(--on-accent); }
.tab-ind {
  position: absolute; z-index: 0; top: 10px; left: 0; height: 36px; border-radius: 18px;
  background: var(--accent);
  transform-origin: 0 50%;
  will-change: transform;
  transition: opacity .3s var(--ease);
}
.tab-ind.off { opacity: 0; }
.filters { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 12px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center;
  height: 30px; padding: 0 13px; border-radius: 15px;
  border: 1px solid var(--line-2); background: transparent;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--spring);
}
.chip i { display: none; }
.chip:active { transform: scale(.94); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ============ Меню ============ */
/* Высота списка не меньше экрана: при поиске/фильтре страница не «схлопывается» и экран не уезжает вниз */
.menu { min-height: calc(100vh - 150px); min-height: calc(100svh - 150px); }
[hidden] { display: none !important; }
.results-head { padding: 26px 20px 0; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); animation: fadeText .3s var(--ease); }
.results-head b { color: var(--accent-text); font-size: 14px; letter-spacing: 0; }
/* Карточки, появившиеся после поиска/фильтра, проявляются волной */
.dish.enter { animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes cardIn { from { opacity: 0; transform: translate3d(0, 12px, 0) scale(.985); } }
.tab.dim { opacity: .35; pointer-events: none; }
.tab { transition: color .3s var(--ease), opacity .3s var(--ease), transform .45s var(--spring); }
#menuEmpty { animation: fadeText .35s var(--ease); }
#menuEmpty span { display: block; }
.cat { padding-top: 34px; }
.list { padding: 16px 14px 0; display: grid; gap: 10px; }
.dish {
  position: relative; display: flex; gap: 14px; align-items: stretch;
  padding: 12px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  text-align: left; width: 100%;
  contain: layout paint style;
  transition: transform .3s var(--spring), border-color .3s;
}
@media (hover: hover) { .dish:hover { border-color: var(--accent-line); } }
.dish:active { transform: scale(.985); }
.dish-info { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 2px 0 2px 4px; }
.dish-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 7px; }
.dish-tags:empty { display: none; }
.dish-name { font-size: 15.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; }
.dish-desc {
  margin-top: 5px; font-size: 12.5px; line-height: 1.5; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dish-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 16px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.weight { font-size: 12px; color: var(--muted); font-weight: 500; }
.dish-media { position: relative; flex: none; width: 112px; height: 112px; border-radius: 15px; }
.dish-media .ph, .dish-media img { width: 100%; height: 100%; border-radius: 15px; object-fit: cover; }
.add-btn {
  position: absolute; right: -5px; bottom: -5px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  border: 3px solid var(--card);
  font-size: 14px; font-weight: 800;
  transition: transform .3s var(--spring);
}
.add-btn .i { width: 17px; height: 17px; stroke-width: 2.2; }
.add-btn:active { transform: scale(.85); }
.bump { animation: bump .45s var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }

.tag {
  display: inline-flex; align-items: center;
  height: 19px; padding: 0 7px; border-radius: 10px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); border: 1px solid var(--line-2);
}
.tag.hit { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tag.chef { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-soft); }

/* Появление при скролле */
.reveal { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .55s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.empty { padding: 70px 30px; text-align: center; color: var(--muted); font-size: 14px; }
.empty .empty-ic { width: 60px; height: 60px; margin: 0 auto 16px; color: var(--ink); opacity: .7; }
.empty .empty-ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.1; }
.empty b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 24px; font-weight: 400; margin-bottom: 6px; }
mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); border-radius: 3px; padding: 0 1px; }

/* ============ Футер ============ */
.footer { margin: 56px 14px 0; padding: 34px 22px 28px; border-radius: 28px; background: var(--ink); color: var(--bg); text-align: center; }
.footer-brand { font-family: var(--font-display); font-size: 30px; letter-spacing: .1em; margin-right: -.1em; text-transform: uppercase; }
.footer-mark { display: block; width: 84px; height: auto; margin: 0 auto 16px; }
.footer .brand-sub { margin: 10px 0 24px; opacity: .7; }
.footer p { margin: 0 auto; max-width: 290px; font-size: 12.5px; line-height: 1.65; opacity: .65; }
.nfc-inline { display: block; margin: 0 auto 8px; width: 22px; }
.nfc-inline .i { width: 22px; height: 22px; }
.footer-info { display: grid; gap: 10px; margin: 24px 0 22px; padding: 20px 0; border-top: 1px solid color-mix(in srgb, var(--bg) 15%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--bg) 15%, transparent); font-size: 13.5px; }
.footer-info span { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.footer-info a { text-decoration: none; }
.footer-info .i { width: 15px; height: 15px; opacity: .6; }
.powered { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .5; }
.powered b { font-weight: 800; }

/* ============ Кнопка заказа ============ */
.cartbar {
  position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45;
  left: 50%; width: min(calc(100% - 28px), calc(var(--app-w) - 28px));
  height: 62px; padding: 0 22px 0 10px; border-radius: 31px;
  display: flex; align-items: center; gap: 12px;
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 35%, transparent), var(--shadow-lg);
  transform: translate(-50%, 150%); opacity: 0;
  transition: transform .6s var(--spring), opacity .3s;
}
.cartbar.show { transform: translate(-50%, 0); opacity: 1; }
.cartbar:active { transform: translate(-50%, 0) scale(.97); }
.cartbar.bump { animation: cartbump .5s var(--spring); }
@keyframes cartbump { 0% { transform: translate(-50%, 0) scale(1); } 35% { transform: translate(-50%, 0) scale(1.05); } 100% { transform: translate(-50%, 0) scale(1); } }
.cartbar-count {
  min-width: 42px; height: 42px; padding: 0 8px; border-radius: 21px;
  display: grid; place-items: center;
  background: var(--on-accent); color: var(--accent); font-weight: 800; font-size: 15px;
}
.cartbar-label { flex: 1; text-align: left; font-weight: 800; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
.cartbar-total { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }

.flyer {
  position: fixed; z-index: 90; pointer-events: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 50%, transparent);
}

/* ============ Шторка ============ */
.backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: var(--backdrop);
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
.backdrop.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; bottom: 0; z-index: 70;
  left: 50%; width: min(100%, var(--app-w));
  max-height: 92vh; max-height: 92dvh;
  display: flex; flex-direction: column;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-bottom: 0;
  border-radius: 30px 30px 0 0;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 105%);
  transition: transform .5s var(--ease-sheet);
  will-change: transform;
  backface-visibility: hidden;
}
.sheet.show { transform: translate(-50%, 0); }
.sheet.dragging { transition: none; }
.sheet-handle { position: absolute; top: 0; left: 0; right: 0; z-index: 5; height: 26px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet-handle span { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); }
.sheet.has-media .sheet-handle span { background: rgba(255, 255, 255, .85); }
.sheet-content { overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; min-height: 0; flex: 1; border-radius: 30px 30px 0 0; }
.sheet-content.swap-in { animation: swap .4s var(--ease); }
.sheet-close {
  position: absolute; top: 14px; right: 14px; z-index: 6;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.sheet-close .i { width: 16px; height: 16px; }
.sheet-pad { padding: 32px 22px calc(24px + env(safe-area-inset-bottom)); }
.sheet-pad h2, .d-name { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.12; }
.sheet-pad .lead { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.eyebrow { display: block; margin-bottom: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-text); }

/* Детали блюда */
.d-media { position: relative; flex: none; height: 330px; overflow: hidden; touch-action: none; }
.d-media .ph, .d-media img.real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-media::after { content: ""; position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(180deg, transparent, var(--card)); pointer-events: none; }
.d-media .ph-ic { width: 96px; animation: pop .8s var(--spring) .1s both; }
.d-media .ph-label { bottom: 34px; left: 22px; }
.d-body { position: relative; z-index: 2; padding: 4px 22px 8px; }
.d-body .dish-tags { margin-bottom: 12px; }
.d-meta { display: flex; gap: 10px; align-items: center; margin-top: 10px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.d-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.d-meta .price { font-size: 18px; margin-right: 4px; }
.d-desc { margin: 16px 0 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.block-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.block-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.nutri { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nutri div { padding: 13px 6px 11px; border-radius: 16px; background: var(--card-2); text-align: center; }
.nutri b { display: block; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nutri span { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.allergens { display: flex; flex-wrap: wrap; gap: 6px; }
.allergens span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-2);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: border-color .2s, background .2s, color .2s, transform .25s var(--spring);
}
.opt small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.opt.on small { color: var(--accent-text); opacity: .75; }
.opt:active { transform: scale(.95); }

.pairs { display: grid; gap: 8px; }
.pair {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 8px; border-radius: 18px; background: var(--card-2);
  transition: transform .25s var(--spring);
}
.pair:active { transform: scale(.98); }
.pair .ph, .pair img { width: 52px; height: 52px; border-radius: 12px; flex: none; object-fit: cover; }
.pair .ph::after { display: none; }
.pair .ph-ic { width: 26px; }
.pair-info { flex: 1; min-width: 0; }
.pair-name { font-size: 14px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pair-price { margin-top: 3px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pair-add { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); margin-right: 4px; transition: transform .25s var(--spring), background .25s, color .25s; }
.pair-add .i { width: 16px; height: 16px; stroke-width: 2.2; }
.pair-add.done { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.d-cta {
  position: sticky; bottom: 0; z-index: 4;
  display: flex; gap: 10px; align-items: center;
  padding: 18px 18px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--card) 35%);
  margin-top: auto;
}
.stepper { display: flex; align-items: center; height: 54px; border-radius: 27px; background: var(--card-2); padding: 0 4px; flex: none; }
.stepper button { width: 44px; height: 46px; display: grid; place-items: center; border-radius: 23px; color: var(--ink); transition: transform .2s var(--spring), background .2s; }
.stepper button:active { transform: scale(.85); background: var(--line); }
.stepper .i { width: 18px; height: 18px; stroke-width: 2; }
.stepper output { min-width: 26px; text-align: center; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.stepper.sm { height: 38px; border-radius: 19px; }
.stepper.sm button { width: 32px; height: 34px; }
.stepper.sm .i { width: 15px; height: 15px; }
.stepper.sm output { min-width: 20px; font-size: 14px; }
.btn {
  flex: 1; height: 54px; border-radius: 27px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  transition: transform .25s var(--spring), opacity .3s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .3; pointer-events: none; }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn.ok { background: var(--ok); color: #fff; }
.btn .i { width: 18px; height: 18px; stroke-width: 2; }
.btn .sep { opacity: .45; }
.roll { display: inline-block; animation: roll .35s var(--ease); }
@keyframes roll { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Заказ */
.order-list { display: grid; margin-top: 18px; }
.oline { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); animation: rise .45s var(--ease) both; }
.oline .ph, .oline img { width: 54px; height: 54px; border-radius: 14px; flex: none; object-fit: cover; }
.oline .ph::after { display: none; }
.oline .ph-ic { width: 26px; }
.oline-info { flex: 1; min-width: 0; }
.oline-name { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.oline-opt { font-size: 12px; color: var(--muted); margin-top: 2px; }
.oline-price { font-weight: 700; font-size: 14px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; }
.order-total span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.order-total b { font-family: var(--font-display); font-size: 32px; font-weight: 400; font-variant-numeric: tabular-nums; }
.note-box { display: flex; gap: 10px; margin-top: 16px; padding: 14px; border-radius: 18px; background: var(--card-2); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.note-box .i { margin-top: 1px; width: 18px; height: 18px; }
.btn-row { display: flex; gap: 10px; margin-top: 20px; }
.btn-row .btn.ghost { flex: 0 0 auto; padding: 0 16px; }
.btn-row .btn { letter-spacing: .04em; font-size: 11.5px; white-space: nowrap; min-width: 0; }

/* Wi-Fi */
.wifi-card { margin-top: 20px; padding: 20px; border-radius: 22px; background: var(--ink); color: var(--bg); display: grid; gap: 16px; }
.wifi-card .row { display: flex; justify-content: space-between; align-items: center; }
.wifi-card small { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .55; margin-bottom: 4px; }
.wifi-card b { font-size: 18px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .03em; font-weight: 600; }
.wifi-waves { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); }

/* Счёт */
.pay-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.pay-opt {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 18px 6px; border-radius: 18px; border: 1px solid var(--line-2);
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  transition: border-color .2s, background .2s, color .2s, transform .25s var(--spring);
}
.pay-opt .i { width: 24px; height: 24px; }
.pay-opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.pay-opt:active { transform: scale(.95); }
.tips { display: flex; gap: 8px; }
.tips .opt { flex: 1; text-align: center; padding: 11px 4px; }
.bill-sum { display: flex; justify-content: space-between; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.bill-sum b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Отзыв */
.stars { display: flex; justify-content: center; gap: 6px; margin: 24px 0 8px; }
.stars button { width: 50px; height: 50px; display: grid; place-items: center; }
.stars svg { width: 36px; height: 36px; fill: var(--card-2); stroke: var(--line-2); stroke-width: .8; transition: fill .25s; }
.stars button.on svg { fill: var(--accent); stroke: var(--accent); }
.stars button.on { animation: starpop .45s var(--spring) both; animation-delay: var(--d, 0ms); }
@keyframes starpop { 0% { transform: scale(1); } 45% { transform: scale(1.3) rotate(-10deg); } 100% { transform: scale(1); } }
.rate-label { text-align: center; min-height: 26px; font-family: var(--font-display); font-size: 20px; color: var(--accent-text); }
textarea.field {
  width: 100%; margin-top: 14px; min-height: 96px; resize: none;
  padding: 14px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--card-2);
  outline: none; font-size: 16px; transition: border-color .2s;
}
textarea.field::placeholder { color: var(--muted); }
textarea.field:focus { border-color: var(--accent); }

/* Успех */
.success { padding: 48px 26px calc(30px + env(safe-area-inset-bottom)); text-align: center; }
.check {
  width: 92px; height: 92px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent);
  position: relative;
  animation: pop .6s var(--spring) both;
}
.check::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ringOut 1.8s ease-out .5s infinite; opacity: 0; }
.check.outline::after { display: none; }
.check svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.check svg.draw { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s ease .35s forwards; }
.check.outline { background: transparent; border: 1px solid var(--line-2); color: var(--ink); animation: pop .6s var(--spring) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h2 { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 400; }
.success p { margin: 10px auto 0; max-width: 290px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.bell { transform-origin: 50% 12%; animation: ringbell 1.2s ease-in-out .4s 2; }
@keyframes ringbell { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(18deg); } 30% { transform: rotate(-16deg); } 45% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 75% { transform: rotate(4deg); } }

/* ============ Тост ============ */
.toast {
  position: fixed; z-index: 95; top: calc(14px + env(safe-area-inset-top)); left: 50%;
  max-width: min(92vw, 420px);
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 700;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, -160%); opacity: 0;
  transition: transform .5s var(--spring), opacity .3s;
  white-space: nowrap;
}
.toast .i { width: 16px; height: 16px; stroke-width: 2.2; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============ Мелкие детали ============ */
/* Валюта: мельче и светлее числа — акцент на цене. ISO-код UZS чуть разрежен */
.cur { font-size: .74em; font-weight: 600; opacity: .62; letter-spacing: .02em; }
html[lang="en"] .cur { letter-spacing: .06em; }
.btn .cur { opacity: .8; }
.cartbar-total .cur { opacity: .75; }
button, [role="button"], .dish, .fcard, .pair { touch-action: manipulation; user-select: none; -webkit-user-select: none; }


/* Прогресс прокрутки меню — тонкая терракотовая линия под шапкой */
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
  opacity: 0; transition: opacity .3s;
}
.topbar.solid .progress { opacity: 1; }

/* Узкие телефоны (≤ 389px): длинные подписи кнопок (узбекский) без иконки, чтобы не обрезались */
@media (max-width: 389px) {
  .btn-row .btn .i { display: none; }
  .btn-row .btn { letter-spacing: .02em; }
  .btn-row .btn.ghost { padding: 0 14px; }
}

/* Тап по логотипу в шапке — наверх */
.topbar-brand { cursor: pointer; }

/* Точки карусели «Шеф рекомендует» */
.dots { display: flex; justify-content: center; gap: 9px; margin-top: -2px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); transition: transform .5s var(--spring), background-color .3s; }
.dots i.on { transform: scale(1.5); background: var(--accent); }

/* Счётчик блюд у названия категории */
.cat-count { margin-left: 8px; font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--muted); vertical-align: middle; letter-spacing: 0; }

/* Нажатие на «+» — небольшой всплеск */
.add-btn::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0; pointer-events: none;
}
.add-btn.bump::after { animation: ringOut .6s ease-out; }

/* Конфетти (5 звёзд в отзыве) — только transform/opacity */
.confetti { position: fixed; z-index: 96; pointer-events: none; width: 8px; height: 8px; border-radius: 2px; top: 0; left: 0; will-change: transform, opacity; }

/* Приветствие на заставке */
.splash-greet { margin-top: 18px; font-family: var(--font-display); font-size: 20px; color: var(--accent-text); animation: rise .9s var(--ease) .55s both; }

/* Переключение языка — мягкая смена текста */
.lang-swap .section-title, .lang-swap .dish-name, .lang-swap .dish-desc, .lang-swap .tab { animation: fadeText .35s ease; }
@keyframes fadeText { from { opacity: 0; } to { opacity: 1; } }

/* ============ Плавность ============ */
/* Нажатие: сжатие мгновенно, отпускание — мягкая пружина */
.dish:active, .fcard:active, .action:active, .btn:active, .chip:active, .opt:active, .pay-opt:active,
.add-btn:active, .icon-btn:active, .stepper button:active, .pair:active, .cartbar:active, .pair-add:active, .tab:active {
  transition-duration: .12s;
  transition-timing-function: ease-out;
}
.tab:active { transform: scale(.94); }
.pair-add { transition: transform .45s var(--spring), background-color .25s, color .25s; }
.pair-add:active { transform: scale(.86); }

/* Обложка: фото мягко «наезжает» при открытии */
.cover-parallax img.real { transform: scale(1.08); }
body.ready .cover-parallax img.real.loaded { transform: none; transition: opacity .9s var(--ease), transform 2.2s var(--ease); }

/* Эффекты прокрутки на видеочипе (Chrome / Android, Safari 26+): синхронно с пальцем, без JavaScript.
   В остальных браузерах их делает запасной JS. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .cover-parallax { animation: parallaxY linear both; animation-timeline: scroll(root block); animation-range: 0px 530px; }
    @keyframes parallaxY { to { transform: translate3d(0, 212px, 0); } }
    .cover-content { animation: coverOut linear both; animation-timeline: scroll(root block); animation-range: 0px 290px; }
    @keyframes coverOut { to { transform: translate3d(0, 52px, 0); opacity: 0; } }
  }
  @supports (timeline-scope: --a) {
    .app { timeline-scope: --menu; }
    .menu { view-timeline: --menu block; }
    .progress { animation: progressX linear both; animation-timeline: --menu; animation-range: contain 0% contain 100%; }
    @keyframes progressX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* ============ Узкие экраны: ничего не должно выходить за край ============ */
.pairs { grid-template-columns: minmax(0, 1fr); }
.pair, .oline, .pick, .split-row, .d-cta, .btn-row { min-width: 0; }
.d-cta .btn, .btn-row .btn { min-width: 0; }
.pair-info, .oline-info { min-width: 0; }
@media (max-width: 359px) {
  .d-cta { gap: 8px; padding-left: 14px; padding-right: 14px; }
  .d-cta .btn { letter-spacing: .02em; padding: 0 10px; font-size: 11.5px; }
  .d-cta .btn > span:first-child, .d-cta .btn .sep { display: none; }
  .stepper button { width: 38px; }
  .sheet-pad { padding-left: 16px; padding-right: 16px; }
  .hero-name, .brand { font-size: clamp(38px, 15vw, 52px); }
  .topbar-brand span { display: none; }
}
/* ============ Сервис, разделение счёта, бонусы, время суток ============ */
a.btn { text-decoration: none; }
.tag.dod { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tag.happy { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
s.old { color: var(--muted); font-weight: 500; font-size: .8em; margin-right: 4px; text-decoration-thickness: 1px; }
.pill.happy { background: color-mix(in srgb, var(--ok) 14%, var(--card)); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); font-weight: 700; }

.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.req { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; min-height: 86px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--card-2); text-align: left; font-size: 13.5px; font-weight: 700; line-height: 1.25; transition: transform .3s var(--spring), background-color .3s, border-color .3s, color .3s; }
.req .i { width: 22px; height: 22px; color: var(--accent-text); }
.req:active { transform: scale(.96); }
.req:last-child { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; }
.req.sent { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }

.split-tabs { margin-top: 0; }
.split-pane { display: grid; gap: 8px; margin-top: 12px; }
.split-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; }
.split-out { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-radius: 16px; background: var(--accent-soft); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.split-out b { font-size: 18px; letter-spacing: 0; color: var(--ink); }
.hint-s { font-size: 12.5px; color: var(--muted); }
.pick { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); text-align: left; font-size: 13.5px; font-weight: 600; transition: border-color .25s, background-color .25s; }
.pick span { flex: 1; min-width: 0; }
.pick b { font-weight: 700; font-size: 13px; }
.pick i { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); flex: none; position: relative; transition: background-color .25s, border-color .25s; }
.pick.on { border-color: var(--accent); background: var(--accent-soft); }
.pick.on i { background: var(--accent); border-color: var(--accent); }
.pick.on i::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 10px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.loy { margin-top: 18px; padding: 16px; border-radius: 20px; background: var(--card-2); text-align: left; display: grid; gap: 8px; }
.loy b { font-size: 14px; }
.loy p { margin: 0 0 4px; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: none; }
.loy-in { height: 46px; border-radius: 23px; border: 1px solid var(--line-2); background: var(--card); padding: 0 16px; font: 500 16px var(--font-body); color: var(--ink); outline: none; transition: border-color .2s; }
.loy-in:focus { border-color: var(--accent); }
.loy-in.bad { border-color: var(--accent); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.loy .btn { margin-top: 2px; height: 48px; }
.loy-ok { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ok); }
.success .loy { margin-bottom: 4px; }

/* ============ Заказ: оформление, статусы, стоп-лист ============ */
.link-btn { display: block; margin: 14px auto 0; padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.sheet .btn-row .btn.ghost { flex: 1; }
.place-row .btn { height: 58px; font-size: 13px; }
.place-row .btn:disabled { opacity: .85; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spinr .7s linear infinite; }
@keyframes spinr { to { transform: rotate(360deg); } }
.note-field { min-height: 64px; margin-top: 14px; }
.cartbar.track { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); }
.cartbar.track .cartbar-count { background: var(--accent); color: var(--on-accent); }
.cartbar.track .cartbar-label { letter-spacing: .06em; font-size: 12px; }

.ocard { margin-top: 10px; padding: 14px; border-radius: 20px; background: var(--card-2); border: 1px solid var(--line); }
.ocard.done { opacity: .7; }
.ohead { display: flex; align-items: center; gap: 8px; }
.ohead b { font-size: 14px; font-weight: 800; }
.otime { font-size: 12px; color: var(--muted); }
.stchip { margin-left: auto; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; }
.ocard.done .stchip { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 12px 0 4px; }
.steps i { height: 4px; border-radius: 2px; background: var(--line-2); transition: background-color .5s var(--ease); }
.steps.s0 i:nth-child(-n+1), .steps.s1 i:nth-child(-n+2), .steps.s2 i { background: var(--accent); }
.ocard.done .steps i { background: var(--ok); }
.oitems { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 13.5px; }
.oitems li { display: flex; gap: 8px; }
.oitems b { flex: none; min-width: 26px; color: var(--accent-text); font-size: 12.5px; }
.oitems em { font-style: normal; color: var(--muted); }
.onote { display: flex; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.onote .i { width: 15px; height: 15px; margin-top: 1px; color: var(--accent-text); }
.osum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.osum b { font-size: 15px; letter-spacing: 0; color: var(--ink); }

.soldout .dish-media img, .soldout .media img, .soldout .dish-media .ph { filter: grayscale(1); opacity: .55 !important; }
.soldout .dish-name, .soldout .fcard-name { opacity: .6; }
.soldout .add-btn { background: var(--card-2); color: var(--muted); border-color: var(--card); pointer-events: none; }
.sold-badge { position: absolute; left: 6px; bottom: 6px; z-index: 3; padding: 4px 8px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fcard .sold-badge { left: 10px; bottom: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Персональные демо: логотип из соцсетей — круглый, примечание о примерных данных */
.is-demo .brand img, .is-demo #splashMark img, .is-demo .footer-mark { border-radius: 50%; object-fit: cover; }
.demo-note { margin: 14px auto 0; max-width: 300px; padding: 10px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); font-size: 12.5px; line-height: 1.45; text-align: center; }
