/* Инь-Янь — гостевое меню. Светлая кремовая витрина, композиция снята с референса:
   стеклянная шапка, герой с пилюлями, сетка блюд с круглым «плюсом». Акцент — красная точка логотипа. */
:root {
  --bg: #F5EFE5; --panel: #FFFFFF; --panel-2: #EBE2D4; --line: rgba(30,27,24,.10);
  --ink: #1E1B18; --muted: #6F6961; --muted-2: #9C958B;
  --cream: #F6F0E7; --dark: #171413;
  --dot: #C81810;
  --text: 'Golos Text', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Nunito', 'Golos Text', sans-serif;
  --script: 'Caveat', cursive;
  --r-card: 16px; --r-pill: 999px; --fw-d: 800; --cat-cols: 2; --cat-ratio: 3 / 2; --dish-cols: 2; --hero-h: 56vh; --tile-r: var(--r-card);
  --pad: 14px; --tab-h: 68px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --shadow: 0 8px 22px -12px rgba(30,27,24,.45);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #E7DDCC; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--cream); }
* { scrollbar-width: thin; scrollbar-color: rgba(30,27,24,.24) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: rgba(30,27,24,.2); border-radius: 999px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.ico svg { width: 22px; height: 22px; display: block; }
.views svg { width: 20px; height: 20px; }

/* shell */
.app { position: relative; max-width: 500px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--bg); box-shadow: 0 0 0 1px rgba(30,27,24,.05), 0 30px 90px -50px rgba(30,27,24,.6); overflow: clip; }
.views { min-height: 100vh; min-height: 100dvh; }
.view { display: none; min-height: 100vh; min-height: 100dvh; padding-bottom: calc(env(safe-area-inset-bottom) + 28px); }
.view.on { display: block; animation: viewIn .3s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
.view.notab { padding-bottom: 0; }

/* floating glass header */
.topfade { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 500px; z-index: 35; pointer-events: none;
  height: calc(86px + env(safe-area-inset-top));
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 62%, color-mix(in srgb, var(--bg) 86%, transparent) 80%, color-mix(in srgb, var(--bg) 0%, transparent) 100%); }
body.has-subpills .topfade { height: calc(146px + env(safe-area-inset-top)); background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 76%, color-mix(in srgb, var(--bg) 85%, transparent) 88%, color-mix(in srgb, var(--bg) 0%, transparent) 100%); }
body[data-view="home"] .topfade, body[data-view="item"] .topfade { display: none; }
body.searching[data-view="home"] .topfade { display: block; }

.topbar { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 40; width: min(100% - 2 * var(--pad), 472px); margin-top: calc(10px + env(safe-area-inset-top));
  display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 8px 0 10px; border-radius: 18px;
  background: rgba(255,252,247,.78); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 30px -14px rgba(30,27,24,.5), inset 0 0 0 1px rgba(30,27,24,.06); }
.topbar .mark { width: 44px; height: 44px; border-radius: 50%; background: var(--dark); display: grid; place-items: center; flex: none; overflow: hidden; }
.topbar .mark img { width: 40px; }
.topbar .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-family: var(--display); font-size: 17px; font-weight: var(--fw-d); letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .ig { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--text); font-size: 11.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.topbar .ig svg { width: 13px; height: 13px; }
.topbar .back { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(30,27,24,.07); flex: none; }
.topbar .back svg { width: 22px; height: 22px; }
.tb-right { display: flex; align-items: center; gap: 8px; flex: none; }
.cartbtn { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 11px; border-radius: var(--r-pill); background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 600; }
.cartbtn svg { width: 17px; height: 17px; }
.cartbtn b { font-family: var(--display); font-weight: var(--fw-d); }
.cartbtn span { font-family: var(--display); font-weight: var(--fw-d); letter-spacing: -0.02em; padding-left: 4px; margin-left: 2px; border-left: 1px solid rgba(246,240,231,.28); }
.topbar .lang { display: flex; align-items: center; gap: 2px; height: 38px; padding: 0 6px 0 12px; border-radius: var(--r-pill); background: rgba(30,27,24,.07); font-size: 13.5px; font-weight: 600; flex: none; }
.topbar .lang svg { width: 16px; height: 16px; opacity: .6; }
.langmenu { position: fixed; top: calc(78px + env(safe-area-inset-top)); left: 50%; transform: translateX(calc(-50% + 165px)) scale(.95); transform-origin: top right; z-index: 41; width: 118px; padding: 6px; border-radius: 16px; background: rgba(255,253,249,.98); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 18px 40px -18px rgba(30,27,24,.6), inset 0 0 0 1px rgba(30,27,24,.07); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s var(--ease); }
.langmenu.on { opacity: 1; pointer-events: auto; transform: translateX(calc(-50% + 165px)) scale(1); }
.langmenu button { display: flex; width: 100%; align-items: center; justify-content: space-between; height: 38px; padding: 0 12px; border-radius: 11px; font-size: 14px; font-weight: 500; color: var(--muted); }
.langmenu button.on { background: rgba(30,27,24,.06); color: var(--ink); }
.langmenu button i { width: 6px; height: 6px; border-radius: 50%; background: var(--dot); opacity: 0; }
.langmenu button.on i { opacity: 1; }

/* tab bar */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 38; width: 100%; max-width: 500px; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding: 6px 10px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(3, 1fr);
  background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 rgba(30,27,24,.08); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted-2); font-size: 11px; font-weight: 600; transition: color .2s; }
.tabbar a.on { color: var(--ink); }
.tabbar .ico svg { width: 24px; height: 24px; }
.tabbar .badge { position: absolute; top: 4px; left: calc(50% + 7px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--dot); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; }
body[data-view="splash"] .tabbar, body[data-view="splash"] .topbar, body[data-view="sent"] .tabbar, body[data-view="sent"] .topbar { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 58px; padding: 0 22px; border-radius: var(--r-card); background: var(--ink); color: var(--cream); font-family: var(--display); font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; transition: transform .14s var(--ease), opacity .2s; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .5; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(30,27,24,.2); }
.btn svg { width: 19px; height: 19px; }
.pill { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px 0 5px; border-radius: var(--r-pill); background: var(--panel); color: var(--ink); font-size: 13.5px; font-weight: 600; white-space: nowrap; flex: none; box-shadow: var(--shadow); transition: transform .14s var(--ease); }
.pill:active { transform: scale(.96); }
.pill i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(30,27,24,.07); }
.pill i svg { width: 18px; height: 18px; }
.pill.red i { background: var(--dot); color: #fff; }
.pill.ink { background: var(--ink); color: var(--cream); }
.pill.ink i { background: rgba(246,240,231,.14); }
.plus { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.95); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(30,27,24,.7); transition: transform .14s var(--ease); }
.plus svg { width: 21px; height: 21px; }
.plus:active { transform: scale(.9); }
.stepper { display: inline-flex; align-items: center; height: 46px; border-radius: var(--r-pill); background: rgba(255,255,255,.95); color: var(--ink); flex: none; box-shadow: 0 8px 20px -8px rgba(30,27,24,.7); }
.stepper button { width: 42px; height: 46px; display: grid; place-items: center; }
.stepper button svg { width: 17px; height: 17px; }
.stepper b { min-width: 16px; text-align: center; font-family: var(--display); font-size: 15px; font-weight: var(--fw-d); }
.stepper.flat { background: var(--panel-2); color: var(--ink); box-shadow: none; height: 40px; }
.stepper.flat button { width: 38px; height: 40px; }
.stepper.big { height: 54px; background: var(--panel-2); color: var(--ink); box-shadow: none; }
.stepper.big button { width: 54px; height: 54px; }
.stepper.big b { min-width: 26px; font-size: 17px; }

/* ---------- splash ---------- */
.view.on.splash, .view.on.sent { display: flex; }
.view.splash { padding-bottom: calc(clamp(70px, 14vh, 140px) + env(safe-area-inset-bottom)) !important; }
.splash { position: relative; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; overflow: hidden; background: var(--dark); color: #fff;
  padding: calc(26px + env(safe-area-inset-top)) var(--pad) calc(clamp(70px, 14vh, 140px) + env(safe-area-inset-bottom)); }
body[data-view="splash"] .app { background: var(--dark); }
.splash .blur { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(34px) saturate(120%) brightness(.5); opacity: 0; animation: fadeIn 1.4s var(--ease) .05s forwards; }
.splash .bg { position: absolute; top: 0; left: 0; width: 100%; height: auto; opacity: 0; animation: fadeIn 1.2s var(--ease) .15s forwards; }
.splash .veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,8,7,.66) 0%, rgba(10,8,7,.14) 18%, rgba(10,8,7,.04) 38%, rgba(10,8,7,.42) 62%, rgba(10,8,7,.82) 80%, rgba(10,8,7,.94) 100%); }
@keyframes fadeIn { to { opacity: 1; } }
.splash .logo { position: relative; width: min(54vw, 208px); margin-top: 0; opacity: 0; animation: riseIn .9s var(--ease) .25s forwards; filter: drop-shadow(0 14px 34px rgba(0,0,0,.7)); }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.splash .bottom { position: relative; width: min(100%, 380px); display: flex; flex-direction: column; align-items: center; gap: 16px; opacity: 0; animation: riseIn .8s var(--ease) .55s forwards; }
.splash .welcome { font-family: var(--display); font-size: 30px; font-weight: var(--fw-d); letter-spacing: -0.02em; line-height: 1.1; text-shadow: 0 2px 20px rgba(0,0,0,.75); margin: 0; }
.splash .cta { display: inline-flex; align-items: center; gap: 16px; height: 62px; padding: 0 9px 0 28px; border-radius: 999px; background: var(--cream); color: var(--ink); transition: transform .14s var(--ease); }
.splash .cta:active { transform: scale(.985); }
.splash .cta b { font-family: var(--display); font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.splash .cta .knob { width: 46px; height: 46px; border-radius: 50%; background: var(--dark); display: grid; place-items: center; flex: none; }
.splash .cta .knob img { width: 30px; height: 30px; animation: turn 9s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.splash .links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 18px; }
.splash .links a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 2px; color: rgba(255,255,255,.9); font-size: 14px; font-weight: 500; letter-spacing: .01em; text-shadow: 0 1px 10px rgba(0,0,0,.6); transition: color .2s; }
.splash .links a:active { color: #fff; }
.splash .links a + a::before { content: ''; position: absolute; }
.splash .links svg { width: 17px; height: 17px; opacity: .8; }
.splash .links svg { width: 19px; height: 19px; flex: none; }
.splash .links span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- hero (home) ---------- */
.hero { padding: 0 var(--pad); }
.home { padding-top: calc(84px + env(safe-area-inset-top)); }
.home > .block { padding-top: 0; }
.hero-card { position: relative; border-radius: 22px; overflow: hidden; background: var(--dark); height: min(var(--hero-h), 500px); box-shadow: 0 18px 40px -22px rgba(30,27,24,.6); }
.hero-card > img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,13,12,.34) 0%, rgba(15,13,12,0) 22%, rgba(15,13,12,0) 52%, rgba(15,13,12,.28) 70%, rgba(15,13,12,.82) 100%); }
.hero .meta { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; color: #fff; }
.hero .chips { display: flex; gap: 8px; align-items: center; }
.hero .chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: var(--r-pill); background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; min-width: 0; box-shadow: 0 6px 18px -10px rgba(0,0,0,.7); }
.hero .chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero .chip svg { width: 16px; height: 16px; flex: none; }
.hero .chip.hours { flex: none; background: var(--dot); color: #fff; font-family: var(--display); font-weight: var(--fw-d); font-size: 13px; }
.hero .chip.hours.closed { background: rgba(23,20,19,.72); color: #fff; }
.searchwrap { padding: 12px var(--pad) 0; }
.searchfield.live { cursor: text; }
.searchfield.live:active { transform: none; }
.searchfield.live input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; padding: 0; font-family: inherit; font-size: 16px; font-weight: 500; color: var(--ink); caret-color: var(--dot); }
.searchfield.live input:focus { outline: none; }
.searchfield.live input::placeholder { color: var(--muted); font-weight: 500; }
.searchfield.live input::-webkit-search-cancel-button, .searchfield.live input::-webkit-search-decoration { -webkit-appearance: none; }
.searchfield .clr { width: 30px; height: 30px; margin-right: -6px; border-radius: 50%; background: rgba(30,27,24,.08); color: var(--muted); display: grid; place-items: center; flex: none; }
.searchfield .clr svg { width: 15px; height: 15px; }
.hitsrow { padding: 18px var(--pad) 0; animation: viewIn .22s var(--ease) both; }
body.searching .home > *:not(.searchwrap):not(.hitsrow) { display: none; }
body.searching .searchwrap { position: sticky; top: calc(76px + env(safe-area-inset-top)); z-index: 20; padding-top: 8px; padding-bottom: 8px; background: var(--bg); }
body.searching .home { padding-top: calc(78px + env(safe-area-inset-top)); }
/* ---------- home ---------- */
.searchfield { display: flex; align-items: center; gap: 11px; width: 100%; height: 52px; padding: 0 18px; border-radius: var(--r-pill); background: rgba(255,255,255,.96); color: var(--muted); font-size: 15px; font-weight: 500; text-align: left; box-shadow: 0 10px 26px -12px rgba(0,0,0,.75); transition: transform .14s var(--ease); }
.searchfield:active { transform: scale(.99); }
.searchfield svg { width: 20px; height: 20px; color: var(--muted-2); flex: none; }
.sec { padding: 20px var(--pad) 0; }
.sec h2 { font-family: var(--display); font-size: 22px; font-weight: var(--fw-d); letter-spacing: -0.02em; margin-bottom: 14px; }
.catgrid { display: grid; grid-template-columns: repeat(var(--cat-cols), 1fr); gap: 10px; }
.catcard { position: relative; border-radius: var(--tile-r); overflow: hidden; background: var(--dark); aspect-ratio: var(--cat-ratio); box-shadow: var(--shadow); transition: transform .16s var(--ease); }
.catcard.w2 { grid-column: span 2; aspect-ratio: 16 / 7; }
.catcard:active { transform: scale(.975); }
.catcard img { width: 100%; height: 100%; object-fit: cover; }
.catcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,15,13,.86) 2%, rgba(18,15,13,.3) 44%, rgba(18,15,13,0) 74%); }
.catcard b { position: absolute; left: 13px; right: 12px; bottom: 11px; z-index: 1; color: #fff; font-family: var(--display); font-size: 15px; font-weight: var(--fw-d); line-height: 1.18; letter-spacing: -0.01em; text-shadow: 0 2px 12px rgba(0,0,0,.65); }

/* dish grid */
.grid { display: grid; grid-template-columns: repeat(var(--dish-cols), 1fr); gap: 18px 10px; }
.dish { position: relative; text-align: left; opacity: 0; animation: riseIn .5s var(--ease) both; }
.dish .ph { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-card); overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.dish .ph img { width: 100%; height: 100%; object-fit: cover; }
.dish .ph .noimg { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--display); font-size: 28px; font-weight: var(--fw-d); color: var(--muted-2); }
.dish .mark { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 5px; height: 29px; padding: 0 11px; border-radius: var(--r-pill); background: rgba(255,255,255,.92); color: var(--ink); font-family: var(--display); font-size: 11.5px; font-weight: var(--fw-d); }
.dish .mark.hit { background: var(--dot); color: #fff; }
.dish .mark svg { width: 13px; height: 13px; }
.dish .act { position: absolute; right: 8px; bottom: 8px; }
.dish .n { font-size: 14.5px; font-weight: 600; line-height: 1.25; margin-top: 11px; }
.dish .w { font-size: 12px; color: var(--muted-2); margin-top: 3px; }
.dish .p { font-family: var(--display); font-size: 15.5px; font-weight: var(--fw-d); letter-spacing: -0.01em; margin-top: 5px; }
.dish .p .old { color: var(--muted-2); font-weight: 600; text-decoration: line-through; margin-right: 6px; font-size: 12.5px; }
.dish.stopped .ph img { filter: grayscale(1) brightness(1.05); opacity: .65; }
.dish.stopped .n, .dish.stopped .p { color: var(--muted-2); }
.dish .soldout { position: absolute; left: 8px; bottom: 8px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: rgba(30,27,24,.78); color: #fff; font-size: 11.5px; font-weight: 600; line-height: 28px; }
.spicy { display: inline-flex; gap: 1px; color: var(--dot); vertical-align: -1px; margin-left: 4px; }
.spicy svg { width: 12px; height: 12px; }

/* ---------- category page ---------- */
.cat { padding-top: calc(78px + env(safe-area-inset-top)); }
.cat h1 { font-family: var(--display); font-size: 26px; font-weight: var(--fw-d); letter-spacing: -0.02em; padding: 10px var(--pad) 14px; }
.grp { padding: 22px var(--pad) 0; scroll-margin-top: calc(138px + env(safe-area-inset-top)); }
.grp h2 { font-family: var(--display); font-size: 19px; font-weight: var(--fw-d); letter-spacing: -0.02em; margin-bottom: 12px; }
.subpills { position: fixed; left: 50%; transform: translateX(-50%); top: calc(80px + env(safe-area-inset-top)); z-index: 36; width: 100%; max-width: 500px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--pad) 6px; }
.subpills::-webkit-scrollbar { display: none; }
.subpills button { flex: none; height: 42px; padding: 0 17px; border-radius: var(--r-pill); background: var(--panel); color: var(--muted); font-size: 13.5px; font-weight: 600; box-shadow: 0 6px 16px -10px rgba(30,27,24,.7); }
.subpills button.on { background: var(--ink); color: var(--cream); }
body.has-subpills .cat { padding-top: calc(132px + env(safe-area-inset-top)); }
body.has-subpills .view { padding-bottom: calc(env(safe-area-inset-bottom) + 28px); }

/* ---------- item ---------- */
.item { padding-bottom: 0; }
/* фото во всю ширину начинается под шапкой (шапка верх кадра не закрывает), низ растворяется в фон,
   название блюда лежит на растушёвке (вариант B, 29.09) */
.item .photo { position: relative; aspect-ratio: 4 / 3; margin-top: calc(80px + env(safe-area-inset-top)); background: var(--panel); }
.item .photo:empty { aspect-ratio: auto; height: 0; }
.item .photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.item .photo:not(:empty)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 38%; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, var(--bg) 18%, color-mix(in srgb, var(--bg) 55%, transparent) 55%, color-mix(in srgb, var(--bg) 0%, transparent) 100%); }
.item .panel { position: relative; z-index: 1; padding: 18px var(--pad) calc(28px + env(safe-area-inset-bottom)); }
.item .photo:not(:empty) + .panel { margin-top: -58px; padding-top: 0; }
.item h1 { font-family: var(--display); font-size: 25px; font-weight: var(--fw-d); line-height: 1.16; letter-spacing: -0.02em; }
.item .d { font-size: 15px; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.sizes { display: flex; gap: 8px; margin-top: 18px; }
.sizes button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 60px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1.5px transparent, var(--shadow); transition: box-shadow .18s, background-color .18s; }
.sizes button b { font-family: var(--display); font-size: 15px; font-weight: var(--fw-d); }
.sizes button span { font-size: 12.5px; color: var(--muted-2); }
.sizes button.on { background: var(--ink); box-shadow: none; }
.sizes button.on b { color: var(--cream); }
.sizes button.on span { color: rgba(246,240,231,.7); }
/* добавки к блюду (соусы, сиропы, к чаю): карточка набора в тех же токенах, что плитки размеров */
.extras { display: grid; gap: 12px; margin-top: 18px; }
.exset { background: var(--panel); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.exh { display: flex; align-items: baseline; gap: 8px; padding: 13px 16px 9px; }
.exh b { font-family: var(--display); font-size: 15px; font-weight: var(--fw-d); letter-spacing: -0.01em; }
.exh span { font-size: 12.5px; color: var(--muted-2); }
.exrow { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 10px 0 16px; border-top: 1px solid var(--line); cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.exrow .an { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 500; }
.exrow .ap { font-size: 13px; color: var(--muted); white-space: nowrap; }
.exrow .exbox { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--panel-2); color: var(--ink); transition: background-color .15s, color .15s; }
.exrow .exbox svg { width: 15px; height: 15px; }
.exrow.on .exbox { background: var(--ink); color: var(--cream); }
.exrow.on .ap { color: var(--ink); }
.exrow.full { opacity: .45; }
.exrow .exstep { display: inline-flex; align-items: center; height: 32px; border-radius: var(--r-pill); background: var(--ink); color: var(--cream); flex: none; }
.exrow .exstep button { width: 30px; height: 32px; display: grid; place-items: center; color: inherit; }
.exrow .exstep svg { width: 14px; height: 14px; }
.exrow .exstep b { min-width: 14px; text-align: center; font-size: 13.5px; font-weight: 700; }
.cart .line .ex { font-size: 12.5px; line-height: 1.35; color: var(--muted); margin-top: 3px; }
.plus .cnt { font-family: var(--display); font-size: 16px; font-weight: var(--fw-d); }
.item .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.item .fact { height: 34px; padding: 0 13px; border-radius: var(--r-pill); background: var(--panel-2); font-size: 12.5px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.item .fact b { color: var(--ink); font-weight: 700; }
.item .tagrow { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.item .tg { height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: var(--panel-2); color: var(--muted); font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; }
.item .tg.on { background: var(--dot); color: #fff; font-family: var(--display); font-weight: var(--fw-d); font-size: 12px; }
.item .allerg { margin-top: 12px; font-size: 13px; color: var(--muted-2); line-height: 1.45; }
.item .allerg b { font-weight: 600; color: var(--muted); }
.item .buyrow { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.item .buyrow .price { font-family: var(--display); font-size: 24px; font-weight: var(--fw-d); letter-spacing: -0.02em; margin-right: auto; }
.item .buyrow .price .old { font-size: 15px; font-weight: 600; color: var(--muted-2); text-decoration: line-through; margin-right: 7px; }
.item .btn { margin-top: 14px; }
.item .stop { display: inline-block; margin-top: 16px; padding: 9px 14px; border-radius: 12px; background: var(--panel-2); color: var(--muted); font-size: 13.5px; font-weight: 500; }
.item h2 { font-family: var(--display); font-size: 17px; font-weight: var(--fw-d); letter-spacing: -0.015em; margin-top: 34px; margin-bottom: 12px; }
.also { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 6px; }
.also::-webkit-scrollbar { display: none; }
.also .dish { flex: none; width: 132px; }

/* ---------- cart ---------- */
.cart { padding-top: calc(78px + env(safe-area-inset-top)); }
.cart .hd { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--pad) 8px; }
.cart h1 { font-family: var(--display); font-size: 26px; font-weight: var(--fw-d); letter-spacing: -0.02em; }
.cart .clear { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); }
.cart .clear svg { width: 19px; height: 19px; }
.cart .lines { padding: 6px var(--pad) 0; }
.cart .line { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.cart .line:first-child { border-top: 0; }
.cart .line img { width: 70px; height: 70px; border-radius: 13px; object-fit: cover; box-shadow: var(--shadow); }
.cart .line .n { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.cart .line .p { font-family: var(--display); font-size: 14.5px; font-weight: var(--fw-d); color: var(--muted); margin-top: 4px; }
.cart .sum { display: flex; align-items: baseline; justify-content: space-between; margin: 18px var(--pad) 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.cart .sum b { font-family: var(--display); font-size: 25px; font-weight: var(--fw-d); letter-spacing: -0.02em; color: var(--ink); }
.fields { display: flex; flex-direction: column; gap: 10px; padding: 18px var(--pad) 0; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--muted-2); }
.field input, .field textarea { height: 52px; padding: 0 16px; border-radius: 14px; background: var(--panel); border: 1.5px solid transparent; color: var(--ink); font-size: 16px; caret-color: var(--dot); box-shadow: inset 0 0 0 1px rgba(30,27,24,.05); }
.field textarea { height: auto; min-height: 76px; padding: 14px 16px; resize: none; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.cart .go { padding: 18px var(--pad) 0; }
.cart .note { text-align: center; font-size: 12.5px; color: var(--muted-2); margin-top: 12px; padding: 0 var(--pad); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 70px var(--pad) 0; color: var(--muted); }
.empty svg { width: 66px; height: 66px; color: var(--muted-2); }
.empty .btn { width: auto; padding: 0 28px; }

/* ---------- sent ---------- */
.sent { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px var(--pad); }
.sent .cl { width: 96px; height: 96px; }
.sent h1 { font-family: var(--display); font-size: 26px; font-weight: var(--fw-d); line-height: 1.18; letter-spacing: -0.02em; margin-top: 20px; }
.sent p { font-size: 15.5px; color: var(--muted); margin-top: 12px; max-width: 30ch; line-height: 1.5; }
.sent .btn { width: auto; min-width: 250px; margin-top: 28px; }
.sent .thanks { font-family: var(--script); font-size: 31px; font-weight: 500; line-height: 1; margin-top: 54px; transform: rotate(-4deg); }
.sent .thanks svg { width: .7em; height: .7em; vertical-align: -0.05em; margin-left: 6px; }

/* ---------- profile ---------- */
.me { padding-top: calc(78px + env(safe-area-inset-top)); }
.me h1 { font-family: var(--display); font-size: 26px; font-weight: var(--fw-d); letter-spacing: -0.02em; padding: 14px var(--pad) 14px; }
.me .card { margin: 0 var(--pad) 12px; padding: 4px 16px; border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); }
.me .kv { display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.me .kv:last-child { border-bottom: 0; }
.me .kv .ico { color: var(--muted-2); }
.me .kv .k { font-size: 12px; color: var(--muted-2); }
.me .kv .v { font-size: 14.5px; font-weight: 500; margin-top: 2px; }
.me .kv .v a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted-2); }
.me .kv input { width: 76px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--panel-2); border: 1.5px solid transparent; color: var(--ink); text-align: center; font-family: var(--display); font-weight: var(--fw-d); font-size: 16px; }
.me .kv input:focus { outline: none; border-color: var(--ink); }
.me .seg { display: inline-flex; gap: 3px; background: var(--panel-2); border-radius: var(--r-pill); padding: 3px; }
.me .seg button { height: 32px; padding: 0 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.me .seg button.on { background: var(--ink); color: var(--cream); }
.me .seg .skinlink { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.me .go { padding: 4px var(--pad) 0; }
.me .credits { text-align: center; font-size: 12.5px; color: var(--muted-2); margin-top: 20px; padding: 0 var(--pad); }
.me .credits a { text-decoration: underline; text-underline-offset: 3px; }
.credits-list { list-style: none; padding: 0; margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: left; }
.credits-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }

.note-empty { padding: 60px 20px; text-align: center; color: var(--muted-2); font-size: 15px; }

.homefoot { margin: 30px var(--pad) 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.homefoot .fr { display: flex; align-items: center; gap: 11px; padding: 11px 0; color: var(--ink); font-size: 14.5px; }
.homefoot .fr svg { width: 19px; height: 19px; color: var(--muted-2); flex: none; }
.homefoot a.fr span { text-decoration: none; }
.homefoot .credits { margin-top: 14px; font-size: 12.5px; color: var(--muted-2); text-decoration: underline; text-underline-offset: 3px; }
.homefoot .credits-list { list-style: none; padding: 0; margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.homefoot .credits-list li { padding: 5px 0; border-bottom: 1px solid var(--line); }

.cart-hint { text-align: center; font-size: 13.5px; color: var(--muted); margin: 20px var(--pad) 0; line-height: 1.5; }

/* ---------- home blocks ---------- */
.block { margin-top: 20px; }
.block:first-child { margin-top: 0; }
.block.searchwrap { margin-top: 12px; padding-top: 0; }
.block.sec { padding-top: 0; }
.block h2 { font-family: var(--display); font-size: 22px; font-weight: var(--fw-d); letter-spacing: -0.02em; margin-bottom: 14px; }
.promo { padding: 0 0 0 var(--pad); }
.promo h2 { padding-right: var(--pad); }
.promo .rail { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding-right: var(--pad); padding-bottom: 6px; }
.promo .rail::-webkit-scrollbar { display: none; }
.promo .banner { position: relative; flex: none; width: 86%; aspect-ratio: 16 / 9; border-radius: var(--tile-r); overflow: hidden; background: var(--dark); scroll-snap-align: start; box-shadow: var(--shadow); color: #fff; }
.promo .rail.one .banner { width: 100%; }
.promo .banner img { width: 100%; height: 100%; object-fit: cover; }
.promo .banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,15,13,.82) 0%, rgba(18,15,13,.25) 45%, rgba(18,15,13,0) 72%); }
.promo .banner .cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.promo .banner b { display: block; font-family: var(--display); font-size: 19px; font-weight: var(--fw-d); line-height: 1.15; letter-spacing: -0.015em; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.promo .banner span { display: block; margin-top: 4px; font-size: 13px; opacity: .88; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.promo .banner .tag { position: absolute; top: 10px; left: 10px; z-index: 1; height: 28px; padding: 0 11px; border-radius: var(--r-pill); background: var(--dot); color: #fff; font-family: var(--display); font-size: 11.5px; font-weight: var(--fw-d); line-height: 28px; }
.promo .banner.noimg { background: var(--ink); }
.hits { padding: 0 var(--pad); }
.hits .rail { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 6px; }
.hits .rail::-webkit-scrollbar { display: none; }
.hits .rail .dish { flex: none; width: 150px; }
.textblock { padding: 0 var(--pad); }
.textblock .card { padding: 18px 18px 20px; border-radius: var(--r-card); background: var(--panel); box-shadow: var(--shadow); }
.textblock h2 { font-size: 19px; margin-bottom: 8px; }
.textblock p { font-size: 14.5px; color: var(--muted); line-height: 1.5; white-space: pre-line; }
.textblock.plain .card { background: transparent; box-shadow: none; padding: 0; }
.homefoot.block { margin: 30px var(--pad) 0; }
.splash .welcome { display: block; }
.splash .cta.wide { width: 100%; justify-content: space-between; }
/* своя эмблема (вырезанный PNG): без круга и без обрезки, по высоте шапки */
.topbar .mark.plain { width: auto; height: 48px; border-radius: 0; background: transparent; overflow: visible; }
.topbar .mark.plain img { width: auto; height: 48px; max-width: 64px; object-fit: contain; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 18px); transform: translate(-50%, 16px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--cream); font-family: var(--display); font-size: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); z-index: 60; white-space: nowrap; box-shadow: 0 16px 34px -16px rgba(30,27,24,.9); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 560px) {
  .splash .bg { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center 34%; box-shadow: none; }
  .splash .blur { display: none; }
}
@media (min-width: 560px) { .app { box-shadow: 0 0 0 1px rgba(30,27,24,.07), 0 40px 100px -46px rgba(30,27,24,.55); } }
body.no-motion .view.on, body.no-motion .dish, body.no-motion .splash .logo, body.no-motion .splash .bottom, body.no-motion .splash .bg, body.no-motion .splash .blur, body.no-motion .catcard { animation: none !important; opacity: 1; }
body.no-motion .splash .cta .knob img { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .view.on, .dish, .splash .logo, .splash .bottom, .splash .bg, .splash .blur { animation: none; opacity: 1; }
  .splash .cta .knob img { animation: none; }
  .toast, .langmenu { transition: none; }
}

/* ---------- 29.09: правки по аудиту ---------- */
/* штуки плашкой на фото, напротив «плюса» (центр плашки на одной линии с центром кнопки 46px) */
.dish .pcs { position: absolute; left: 8px; bottom: 17px; display: inline-flex; align-items: baseline; gap: 0; height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.94); color: var(--muted); font-size: 12px; font-weight: 500; line-height: 28px; box-shadow: 0 6px 16px -10px rgba(30,27,24,.8); pointer-events: none; }
.dish .pcs b { font-family: var(--display); font-size: 13.5px; font-weight: var(--fw-d); color: var(--ink); }
/* перерисовка на месте без анимации появления */
.view.on.still, .view.still .dish { animation: none; opacity: 1; }
/* нижняя панель «Добавить» на странице блюда */
.buybar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 39; width: 100%; max-width: 500px; display: flex; align-items: center; gap: 10px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 var(--line); }
.buybar .stepper.big { height: 54px; }
.buybar .btn { flex: 1; min-width: 0; margin: 0; height: 54px; justify-content: space-between; gap: 12px; padding: 0 20px; }
.buybar .btn #addLabel { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn .bp { font-family: var(--display); font-weight: var(--fw-d); letter-spacing: -0.01em; opacity: .78; white-space: nowrap; }
.buybar .btn .bp .old { font-weight: 600; font-size: 12.5px; text-decoration: line-through; margin-right: 6px; opacity: .7; }
.item .panel { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body[data-view="item"] .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
.exrow .ap.free { color: var(--ink); font-weight: 600; }
/* корзина: блюдо без фото */
.cart .line .noimg { width: 70px; height: 70px; border-radius: 13px; display: grid; place-items: center; background: var(--panel); box-shadow: var(--shadow); font-family: var(--display); font-size: 26px; font-weight: var(--fw-d); color: var(--muted-2); }
.cart .go { padding: 20px var(--pad) 0; }
.cart .go + .cart-hint { margin-top: 12px; }
/* экран для официанта */
.waiter { position: fixed; inset: 0; z-index: 100; overflow-y: auto; background: #fff; color: var(--ink); padding: calc(22px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom)); animation: viewIn .2s var(--ease) both; }
.waiter > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.waiter .wh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.waiter .wh b { font-family: var(--display); font-size: 15px; font-weight: var(--fw-d); color: var(--muted); }
.waiter .wh span { font-size: 13.5px; color: var(--muted-2); }
.waiter h1 { font-family: var(--display); font-size: 30px; font-weight: var(--fw-d); letter-spacing: -0.02em; margin: 10px auto 14px; }
.waiter .wr { display: grid; grid-template-columns: 50px 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--panel-2); }
.waiter .wr > b { font-family: var(--display); font-size: 24px; font-weight: var(--fw-d); line-height: 1.15; }
.waiter .wn { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.25; }
.waiter .wx { font-size: 16px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.waiter .wt { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 14px; }
.waiter .wt span { font-size: 18px; }
.waiter .wt b { font-family: var(--display); font-size: 32px; font-weight: var(--fw-d); letter-spacing: -0.02em; }
.waiter .btn { display: flex; margin-top: 22px; }
body.waiter-on { overflow: hidden; }
/* поиск: как поняли запрос с опечаткой */
.didyou { grid-column: 1 / -1; font-size: 14px; color: var(--muted); margin-bottom: 2px; }
