@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/fonts/Inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600 700; font-style: normal; font-display: swap; src: url("/static/fonts/Inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("/static/fonts/InterDisplay-ExtraBold.woff") format("woff"); }

/* Сайт «Вкус» в стиле приложения доставки: светлая и тёмная тема (по настройке телефона), оранжевый #fe6028 из логотипа.
   Главная: большие карточки акций, категории чипами (вторая лента с подкатегориями), крупные фото блюд с ценой-кнопкой.
   Блюдо и корзина открываются на весь экран телефона, на компьютере окном и боковой панелью. */
:root {
  --bg: #ffffff; --card: #f2f1ef; --card-2: #e6e3df; --chip-on: #17130f; --on-chip-on: #ffffff;
  --nori: #2b221d; --nori-2: #43372f; --salmon: #fe6028; --salmon-soft: #fff0e6; --salmon-ink: #c2410c; --on-salmon: #ffffff;
  --wasabi-soft: #e9f5dc; --wasabi-ink: #3f6212; --err: #d93a2b; --err-ink: #b42318; --closed: #e5484d;
  --paper: #ffffff; --mist: #f2f1ef; --mist-2: #e6e3df; --line: #ebe7e2; --ink: #17130f; --muted: #7c746d;
  --logo: #43372f; --on-nori: #ffffff; --ft-bg: #231b16; --field-line: #dcd6cf; --sel-bg: #faf7f3; --ring: rgba(23, 19, 15, .14);
  --salmon-hover: #ec5518; --btn-off: #e6e3df; --btn-off-ink: #9a928b; --step-off: #d9d3cc;
  --pic-0: #f2f1ef; --pic-1: #f2f1ef; --pic-2: #f2f1ef; --pic-3: #f2f1ef; --scrim: rgba(15, 12, 10, .5);
  --page: #ffffff; --shell: #ffffff; --chip: #f2f1ef; --chip-hover: #e6e3df; --map-bg: #e9efe4;
  --prod-bg: linear-gradient(180deg, #f8f1e8 0%, #efe2d1 100%); --prod-end: #efe2d1; --seg-bg: rgba(43, 34, 29, .08);
  --fav-bg: rgba(255, 255, 255, .9);
  color-scheme: light dark;
  --gut: 16px; --hd: 0px; --r: 22px;
  --display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* Тёмная тема включается сама, когда в системе или телефоне выбрана тёмная (как в макете) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0c0b; --card: #1c1b1a; --card-2: #2c2a28; --chip-on: #ffffff; --on-chip-on: #0d0c0b;
    --nori: #f3ebe3; --nori-2: #ffffff; --on-nori: #17130f; --ft-bg: #151210; --logo: #f3ebe3;
    --salmon-soft: #3a2218; --salmon-ink: #ff9a6c; --wasabi-soft: #1d2d14; --wasabi-ink: #b9e27f; --err: #f0605c; --err-ink: #ff9a95; --closed: #ff5b4f;
    --paper: #121110; --mist: #1c1b1a; --mist-2: #2c2a28; --line: #262422; --ink: #ffffff; --muted: #9d9893;
    --field-line: #3a3633; --sel-bg: #1c1b1a; --ring: rgba(255, 255, 255, .2);
    --salmon-hover: #ff7440; --btn-off: #2c2a28; --btn-off-ink: #7d7671; --step-off: #3a3633;
    --pic-0: #1c1b1a; --pic-1: #1c1b1a; --pic-2: #1c1b1a; --pic-3: #1c1b1a; --scrim: rgba(0, 0, 0, .7);
    --page: #0d0c0b; --shell: #0d0c0b; --chip: #1c1b1a; --chip-hover: #2c2a28; --map-bg: #1f2a22;
    --prod-bg: linear-gradient(180deg, #2a2620 0%, #4a4034 100%); --prod-end: #4a4034; --seg-bg: rgba(0, 0, 0, .25);
    --fav-bg: rgba(0, 0, 0, .45);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
body { margin: 0; font: 400 16px/1.4 var(--text); color: var(--ink); background: var(--bg); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
body.lock { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.12; }
h1 { font-size: clamp(30px, 5vw, 46px); }
h2 { font-size: clamp(22px, 3.2vw, 30px); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .grow { flex: 1; }
:focus-visible { outline: 3px solid rgba(254, 96, 40, .6); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.logo { display: block; flex: none; color: var(--logo); }
.ico { flex: none; }
@view-transition { navigation: auto; }

/* каркас: на всю ширину телефона, на компьютере по центру */
.page { min-height: 100vh; }
.shell { max-width: 1240px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
@media (min-width: 720px) { :root { --gut: 24px; } }
@media (min-width: 1100px) { :root { --gut: 32px; --hd: 76px; } }

/* ---------- шапка ---------- */
.hd { background: var(--bg); z-index: 30; padding-top: env(safe-area-inset-top); }
.hd-in { display: flex; align-items: center; gap: 10px; padding: 12px var(--gut) 10px; min-height: 66px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo-mark { display: none; }
.city-btn { display: none; align-items: center; gap: 7px; border: 0; background: var(--card); height: 44px; padding: 0 16px; border-radius: 99px; font-weight: 600; font-size: 15px; }
.loc { display: none; align-items: center; gap: 10px; }
.seg2 { display: inline-flex; background: var(--card); border-radius: 99px; padding: 4px; }
.seg2 button { border: 0; background: none; height: 36px; padding: 0 16px; border-radius: 99px; font-weight: 600; font-size: 15px; color: var(--muted); }
.seg2 button.on { background: var(--bg); color: var(--ink); box-shadow: 0 1px 5px rgba(0, 0, 0, .16); }
.seg2.wide { display: grid; grid-template-columns: 1fr 1fr; } .seg2.wide button { height: 44px; }
.eta { font-size: 14px; color: var(--muted); white-space: nowrap; }
.addr { flex: 1 1 auto; min-width: 0; border: 0; background: none; padding: 2px 4px; display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.addr-main { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font-weight: 700; font-size: 16px; }
.addr-main > .ico:first-child { display: none; }
.addr-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-sub { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.addr-sub.closed { color: var(--closed); }
.addr.unset .addr-sub { color: var(--salmon); }
.addr.unset .addr-sub.closed { color: var(--closed); }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); display: grid; place-items: center; font: 800 18px/1 var(--display); }
.avatar.in { background: linear-gradient(135deg, #ffb38a, #fe6028); color: #fff; }
.cart-btn { display: none; border: 0; background: var(--salmon); color: var(--on-salmon); height: 44px; padding: 0 20px; border-radius: 99px; font-weight: 700; font-size: 16px; align-items: center; gap: 8px; }
.cart-btn .cart-sum { padding-left: 10px; border-left: 1.5px solid color-mix(in srgb, currentColor 35%, transparent); font-variant-numeric: tabular-nums; }
.cart-btn:hover { background: var(--salmon-hover); }
.hd .rate { font-size: 14px; }
@media (max-width: 719px) {
  .hd-in:has(.addr) .brand { width: 44px; height: 44px; border-radius: 50%; background: var(--card); justify-content: center; }
  .hd-in:has(.addr) .logo-word { display: none; }
  .hd-in:has(.addr) .logo-mark { display: block; height: 22px; width: auto; }
  .hd-in:not(:has(.addr)) .logo-word { height: 24px; width: auto; }
}
@media (min-width: 720px) {
  .hd { position: sticky; top: 0; }
  .hd-in { min-height: 76px; gap: 12px; }
  .brand { margin-right: 6px; }
  .addr { flex: 0 1 380px; flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; background: var(--card); border-radius: 99px; height: 48px; padding: 0 18px; text-align: left; }
  .addr-main > .ico:first-child { display: block; }
  .addr-main > .ico:last-child { display: none; }
  .addr-main { font-size: 15px; font-weight: 600; min-width: 0; }
  .addr-sub { font-size: 13px; }
  .addr:hover { background: var(--card-2); }
  .cart-btn { display: inline-flex; }
}
@media (max-width: 1099px) { .hd { position: static; } }
@media (min-width: 1100px) { .city-btn, .loc { display: inline-flex; } .addr-sub:not(.closed) { display: none; } }

/* ---------- карточки акций ---------- */
.promos { padding: 2px 0 8px; }
.promos-in { display: flex; gap: 10px; overflow-x: auto; padding: 0 var(--gut) 4px; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gut); scrollbar-width: none; }
.promos-in::-webkit-scrollbar { display: none; }
.promo { all: unset; box-sizing: border-box; cursor: pointer; position: relative; flex: none; width: min(62vw, 300px); height: 270px; border-radius: 24px; overflow: hidden; padding: 16px 18px; display: flex; align-items: flex-end; color: #fff; scroll-snap-align: start; isolation: isolate; }
.promo:focus-visible { outline: 3px solid rgba(254, 96, 40, .6); outline-offset: 2px; }
.promo-t { position: relative; z-index: 2; display: grid; gap: 4px; max-width: 100%; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.promo-t b { font: 800 24px/1.08 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.promo-t small { font-size: 14.5px; line-height: 1.3; opacity: .92; }
.promo .story-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.promo.has-img::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .62)); }
.promo-dish { position: absolute; z-index: 1; right: -18px; top: -18px; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.promo-ico { position: absolute; top: 14px; right: 18px; font-style: normal; font-size: 64px; line-height: 1; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .25)); }
.promo.offer .promo-t b { font-size: 21px; }
@media (hover: hover) { .promo { transition: transform .18s ease; } .promo:hover { transform: translateY(-3px); } }
.promo:active { transform: scale(.98); }
.c-orange { background: linear-gradient(160deg, #ff8a3d, #e2490f); }
.c-coral { background: linear-gradient(160deg, #ff8f8f, #d63d3f); }
.c-green { background: linear-gradient(160deg, #46b06a, #1f6e3f); }
.c-blue { background: linear-gradient(160deg, #3f8cff, #2459d8); }
.c-plum { background: linear-gradient(160deg, #b86ad3, #6b2f86); }
.c-dark { background: linear-gradient(160deg, #5a4a40, #231b16); }
.c-offer { background: linear-gradient(160deg, #c2410c, #7c2d12); }

.banner { margin: 4px var(--gut) 8px; padding: 10px 14px; background: var(--salmon-soft); color: var(--salmon-ink); border-radius: 16px; font-size: 14px; }
.banner.closed { background: var(--card); color: var(--ink); }
.track-banner { background: var(--wasabi-soft); color: var(--wasabi-ink); margin: 0 var(--gut) 8px; border-radius: 16px; }
.track-banner a { display: block; padding: 12px 16px; font-weight: 600; text-decoration: none; }
.track-banner .ng { padding: 12px 16px; display: grid; gap: 2px; }
.track-banner .ng span { font-size: 14px; }
.track-banner .ng small { font-size: 13px; opacity: .75; }
.track-banner a + .ng, .track-banner .ng + a { border-top: 1px solid rgba(127, 127, 127, .2); }

/* помощник: одна компактная строка */
.ai { display: flex; align-items: center; gap: 8px; margin: 2px var(--gut) 4px; padding: 6px 6px 6px 8px; border-radius: 99px; background: var(--card); }
.ai-ico { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--salmon); color: var(--on-salmon); display: grid; place-items: center; }
.ai-form { flex: 1; min-width: 0; display: flex; gap: 8px; }
.ai-form input { flex: 1; min-width: 0; height: 40px; border: 1.5px solid transparent; border-radius: 99px; background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; padding: 0 16px; text-overflow: ellipsis; }
.ai-form input:focus { outline: none; border-color: var(--salmon); }
.ai-form button { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--chip-on); color: var(--on-chip-on); display: grid; place-items: center; }
.ai-sugg { display: none; }
.ai-s { flex: none; border: 0; background: var(--bg); border-radius: 99px; padding: 9px 16px; font-size: 14.5px; font-weight: 600; }

/* ---------- категории, подкатегории, поиск ---------- */
.cats { position: sticky; top: var(--hd); z-index: 20; background: var(--bg); padding: 8px 0 8px; }
.cats-in { display: flex; gap: 6px; align-items: center; padding: 0 var(--gut); }
.search-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--card); display: grid; place-items: center; }
.chips { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; align-items: center; }
.chips::-webkit-scrollbar, .subs::-webkit-scrollbar { display: none; }
.chips .chip { flex: none; text-decoration: none; padding: 10px 16px; border-radius: 99px; font: 700 16px/1.2 var(--text); color: var(--ink); }
.chips .chip.on { background: var(--chip-on); color: var(--on-chip-on); }
@media (hover: hover) { .chips .chip:not(.on):hover { background: var(--card); } }
.subs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px var(--gut) 0; }
.sub { flex: none; text-decoration: none; padding: 8px 14px; border-radius: 18px; background: var(--card); font-weight: 600; font-size: 14.5px; color: var(--ink); }
.sub.on { box-shadow: inset 0 0 0 1.5px var(--ink); }
.search { display: flex; gap: 8px; padding: 8px var(--gut) 0; }
.search input { flex: 1; height: 46px; border: 1.5px solid var(--field-line); border-radius: 99px; background: var(--bg); color: var(--ink); font: inherit; padding: 0 20px; min-width: 0; }
.search input:focus { outline: none; border-color: var(--salmon); box-shadow: 0 0 0 3px var(--ring); }
.search-x { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--card); display: grid; place-items: center; }

/* ---------- меню ---------- */
.menu { padding: 0 var(--gut) 120px; flex: 1; }
.cat, .fav-sec { padding-top: 16px; scroll-margin-top: calc(var(--hd) + 112px); }
.cat h2, .fav-sec h2 { font-size: 22px; margin: 4px 2px 12px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; } }
@media (min-width: 1020px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { position: relative; display: flex; flex-direction: column; min-width: 0; animation: tile-in .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tile-in { from { opacity: 0; transform: translateY(12px); } }
.tile-open { all: unset; box-sizing: border-box; display: block; cursor: pointer; border-radius: 22px; }
.tile-open:focus-visible { outline: 3px solid rgba(254, 96, 40, .6); outline-offset: 3px; }
.pic { position: relative; aspect-ratio: 1 / .95; border-radius: 22px; background: var(--card); display: grid; place-items: center; overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.art { width: 84%; height: 84%; transition: transform .25s ease; }
@media (hover: hover) { .pic img { transition: transform .25s ease; } .tile-open:hover .art, .tile-open:hover img { transform: scale(1.04); } }
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: #ff4f8b; color: #fff; font: 800 12px/1 var(--text); padding: 5px 9px; border-radius: 10px; transform: rotate(-6deg); text-transform: lowercase; }
.tile h3 { font: 700 16px/1.25 var(--text); letter-spacing: -.01em; margin: 9px 2px 7px; }
.tile h3 .rate { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.tile-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 0 2px; flex-wrap: wrap; }
/* под названием: вес и короткий состав (у сета его роллы), не больше двух строк с многоточием, чтобы плитки оставались ровными */
.tile-about { display: block; margin: -3px 2px 10px; font-size: 13px; line-height: 1.35; color: var(--muted); text-align: left; }
.tile-w { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-comp { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tile-w + .tile-comp { margin-top: 1px; }
@media (min-width: 720px) { .tile-about { font-size: 13.5px; } }
.add-slot { display: inline-flex; }
.add { position: relative; border: 0; background: var(--card); color: var(--ink); font: 700 15px/1 var(--text); padding: 11px 15px; border-radius: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; transition: background .15s, transform .1s; }
.add:hover { background: var(--card-2); } .add:active { transform: scale(.95); }
.add .cnt { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--salmon); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; box-sizing: border-box; border: 2px solid var(--bg); }
.step { display: inline-flex; align-items: center; background: var(--salmon); color: var(--on-salmon); border-radius: 16px; height: 38px; font-weight: 700; }
.step button { border: 0; background: none; color: inherit; width: 36px; height: 100%; font-size: 21px; line-height: 1; font-weight: 600; }
.step button:disabled { opacity: .35; cursor: default; }
.step b { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.price { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.stop-price { color: var(--muted); font-size: 15px; font-weight: 700; }
.stop-note { color: var(--muted); font-size: 13.5px; }
.is-stop .pic { filter: grayscale(.9); opacity: .55; } .is-stop h3 { color: var(--muted); }
.fav { position: absolute; top: 8px; right: 8px; z-index: 3; width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--fav-bg); color: var(--ink); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .15s; }
.fav svg { fill: none; width: 18px; height: 18px; }
.fav.on { color: var(--salmon); } .fav.on svg { fill: currentColor; }
.fav:active { transform: scale(.88); }
/* блюдо на цветной подложке (поле «фон» в меню) */
.tile.bg-brown { --tb1: #8a3414; --tb2: #5a1d0b; } .tile.bg-navy { --tb1: #2f4a86; --tb2: #14234a; } .tile.bg-blue { --tb1: #2f63c4; --tb2: #1a3f8f; }
.tile.bg-green { --tb1: #2f8a5b; --tb2: #17503a; } .tile.bg-red { --tb1: #d23a3a; --tb2: #8f1f26; } .tile.bg-purple { --tb1: #7a4bd6; --tb2: #45248f; } .tile.bg-orange { --tb1: #fe6028; --tb2: #c4400f; }
.tile.has-bg .pic { background: linear-gradient(180deg, var(--tb1, #7a2a12), var(--tb2, #5a1d0b)); }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
/* баллы над меню: сколько вернётся с заказа (по настройкам программы), нажатие открывает «Мои баллы» */
.loy { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; margin: 12px 0 0; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--salmon-soft); color: var(--salmon-ink); font-size: 14.5px; line-height: 1.3; }
.loy .coin.big { width: 30px; height: 30px; }
.loy-t { flex: 1; min-width: 0; }
.loy-t b { font-weight: 700; }
.loy-go { transform: rotate(-90deg); opacity: .7; }
.loy:focus-visible { outline: 3px solid rgba(254, 96, 40, .6); outline-offset: 2px; }
@media (hover: hover) { .loy { transition: transform .18s ease; } .loy:hover { transform: translateY(-2px); } }
@media (min-width: 720px) { .loy { width: auto; display: inline-flex; padding-right: 18px; } }
/* блюда за баллы в меню: видны вошедшему гостю, когда баллов хватает */
.rw-sec { padding-top: 16px; }
.rw-sec h2 { font-size: 22px; margin: 4px 2px 4px; }
.rw-sec .rw-sub { margin: 0 2px 12px; color: var(--muted); font-size: 14px; }
.rw-sec .up-card { width: 148px; }
.rw-sec .up-card.picked { box-shadow: inset 0 0 0 2px var(--salmon); }
.rw-sec .up-add.on { background: var(--salmon); color: var(--on-salmon); }

/* ---------- кнопка корзины на телефоне ---------- */
.cart-bar { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 25; border: 0; background: var(--salmon); color: var(--on-salmon); height: 58px; border-radius: 30px; font: 800 18px/1 var(--text); display: none; align-items: center; gap: 10px; padding: 0 24px 0 20px; box-shadow: 0 10px 28px rgba(254, 96, 40, .45); font-variant-numeric: tabular-nums; }
.cart-bar .cart-n { position: absolute; top: -6px; left: -4px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: var(--chip-on); color: var(--on-chip-on); font-size: 13px; display: grid; place-items: center; }
@media (max-width: 719px) { .cart-bar:not([hidden]) { display: flex; } }
.cart-nudge { position: fixed; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 24; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; max-width: calc(100vw - 32px); }
@media (min-width: 720px) { .cart-nudge { display: none; } }
.site-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); background: var(--chip-on); color: var(--on-chip-on); padding: 11px 20px; border-radius: 99px; font-weight: 600; font-size: 15px; z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center; }
.site-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* допродажа: бесплатная доставка и подарок */
.perks { display: grid; gap: 8px; }
.perks::-webkit-scrollbar { display: none; }
.perk { position: relative; overflow: hidden; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 18px; background: var(--card); color: var(--ink); font-size: 14px; }
.perk i { font-style: normal; font-size: 22px; line-height: 1; }
.perk .pt { display: grid; gap: 1px; min-width: 0; }
.perk .pt b { font: 700 14.5px/1.25 var(--text); }
.perk .pt small { font-size: 12.5px; color: var(--muted); line-height: 1.2; }
.perk:not(.done)::before { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--salmon) 16%, transparent); }
.perk-act { border: 0; width: 100%; text-align: left; font: inherit; cursor: pointer; }
.perk-act::after { content: '›'; margin-left: auto; font-size: 22px; color: var(--muted); }
.cart-nudge .perk-act { pointer-events: auto; width: auto; }
.perk .bar { position: absolute; left: 14px; bottom: 0; height: 4px; background: var(--salmon); border-radius: 3px; max-width: calc(100% - 28px); transition: width .3s ease; }
.cart-nudge .perk { flex: none; background: var(--paper); box-shadow: 0 6px 20px rgba(0, 0, 0, .22); border-radius: 99px; padding: 8px 16px; animation: rise .25s ease; }

/* ---------- окна ---------- */
.ov { position: fixed; inset: 0; z-index: 50; background: var(--scrim); display: flex; justify-content: flex-end; align-items: flex-end; animation: fade .2s ease; }
.ov.center { justify-content: center; align-items: center; padding: 20px; }
.panel { background: var(--paper); color: var(--ink); width: 100%; max-height: 94vh; max-height: 94dvh; overflow: auto; border-radius: 26px 26px 0 0; animation: rise .26s cubic-bezier(.2, .8, .2, 1); position: relative; overscroll-behavior: contain; }
.close { position: absolute; top: 14px; left: 14px; z-index: 6; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--card); color: var(--ink); font-size: 26px; line-height: 1; display: grid; place-items: center; }
.panel.locm .close { left: auto; right: 14px; }
@keyframes fade { from { opacity: 0; } } @keyframes rise { from { transform: translateY(40px); opacity: .4; } } @keyframes slide { from { transform: translateX(40px); opacity: .4; } }
@media (max-width: 719px) {
  .ov.center:has(.panel.prod, .panel.prof, .panel.city-ask), .ov:has(.panel.cart) { padding: 0; align-items: stretch; }
  .panel.prod, .panel.cart, .panel.prof { height: 100dvh; max-height: none; border-radius: 0; animation-name: rise; }
  .panel.city-ask { align-self: flex-end; border-radius: 26px 26px 0 0; }
}
.btn { border: 0; background: var(--salmon); color: var(--on-salmon); font-weight: 700; font-size: 17px; padding: 15px 24px; border-radius: 99px; flex: 1; transition: background .15s; }
.btn:hover { background: var(--salmon-hover); } .btn:disabled { background: var(--btn-off); color: var(--btn-off-ink); cursor: not-allowed; }
.btn.big { width: 100%; font: 800 19px/1.2 var(--text); padding: 18px 20px; border-radius: 30px; }
.btn.ghost { background: var(--card); color: var(--ink); } .btn.ghost:hover { background: var(--card-2); }
.btn.sm { flex: none; height: 40px; padding: 0 18px; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn.sm.ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.link-btn { border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: 14px; padding: 8px 0; text-align: left; }
.link-btn:hover { color: var(--ink); }

/* ---------- карточка блюда ---------- */
.panel.prod { background: var(--prod-bg); display: flex; flex-direction: column; }
.panel.prod .close { background: rgba(0, 0, 0, .3); color: #fff; }
.prod-pic { position: relative; display: grid; place-items: center; padding: 68px 24px 6px; }
.prod-ph { width: min(100%, 460px); border-radius: 22px; overflow: hidden; display: grid; place-items: center; background: rgba(0, 0, 0, .08); box-shadow: 0 22px 44px rgba(0, 0, 0, .25); }
.prod-ph:has(.art) { aspect-ratio: 1; width: min(80vw, 340px); }
.prod-ph img { width: 100%; height: auto; max-height: 56vh; object-fit: contain; display: block; cursor: zoom-in; } .prod-ph .art { width: 86%; height: 86%; }
/* фото блюда на весь экран: нажали на фото, нажали ещё раз или крестик — закрыли; щипок увеличивает */
.photo-view { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .92); display: grid; place-items: center; touch-action: pinch-zoom; }
.photo-view img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.photo-view .pv-x { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 26px; }
.fav-modal { top: 18px; right: 14px; width: 44px; height: 44px; }
.prod-body { padding: 20px 24px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.prod-body h2 { font-size: 27px; }
.prod-lead { margin: 0; font-size: 15.5px; line-height: 1.4; color: color-mix(in srgb, var(--ink) 82%, transparent); max-width: 44ch; }
.prod-meta { margin: 0; font-size: 14px; color: var(--muted); }
/* «Блюда в составе» у сета: ряд карточек с фото, листается вбок */
.set-parts { margin-top: 6px; min-width: 0; align-self: stretch; text-align: left; }
.set-parts h3 { margin: 0 0 8px; font-size: 17px; }
.set-row { display: flex; flex-direction: column; gap: 8px; }
.set-it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 12px 0 0; border: 0; border-radius: 16px; background: color-mix(in srgb, currentColor 8%, transparent); color: inherit; font: inherit; text-align: left; overflow: hidden; }
.set-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 8px 0; }
.set-cp { font-size: 13px; line-height: 1.35; opacity: .7; }
button.set-it { cursor: pointer; }
.set-ph { flex: none; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, currentColor 10%, transparent); }
.set-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.set-nm { font-size: 15px; font-weight: 600; line-height: 1.3; min-width: 0; }
.prod-body .desc, .prod-body .comp { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); text-align: left; align-self: stretch; }
.prod-body .comp b { color: var(--ink); font-weight: 600; }
.og { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 10px 0 2px; align-self: stretch; }
.og:empty { display: none; }
.og-group { display: flex; flex-direction: column; align-items: center; width: 100%; }
.og-t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; align-self: stretch; text-align: left; }
.og-t b { font-size: 16px; }
.og-seg { display: inline-flex; background: var(--seg-bg); border-radius: 26px; padding: 4px; gap: 2px; max-width: 100%; }
.og-seg .og-b { border: 0; background: none; border-radius: 22px; padding: 11px 18px; font-weight: 700; font-size: 15px; color: inherit; white-space: nowrap; }
.og-seg .og-b.on { background: #fff; color: #17130f; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.og-b small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.og-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; width: 100%; }
.og-grid .og-b { position: relative; border: 0; background: var(--seg-bg); border-radius: 16px; padding: 10px 12px; text-align: left; font-weight: 600; font-size: 15px; min-height: 52px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.og-grid .og-b.on { background: var(--salmon-soft); box-shadow: inset 0 0 0 2px var(--salmon); }
.og-grid .og-b.on::after { content: "✓"; position: absolute; top: 8px; right: 10px; color: var(--salmon); font-weight: 800; }
.nutri { display: grid; gap: 6px; margin-top: 6px; align-self: stretch; text-align: left; }
.nutri-row { display: grid; grid-template-columns: 1fr repeat(4, auto); gap: 6px 14px; align-items: end; font-size: 13px; }
.nutri-t { color: var(--muted); align-self: center; }
.nutri-c { display: grid; text-align: center; min-width: 52px; }
.nutri-c b { font-size: 16px; font-variant-numeric: tabular-nums; }
.nutri-c small { color: var(--muted); font-size: 11px; }
@media (max-width: 480px) { .nutri-row { grid-template-columns: repeat(4, 1fr); } .nutri-t { grid-column: 1 / -1; } }
.prod-actions { position: sticky; bottom: 0; z-index: 4; margin-top: auto; padding: 22px 24px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; align-items: stretch; background: linear-gradient(180deg, transparent, var(--prod-end) 38%); }
.prod-in { text-align: center; font-size: 14px; color: var(--muted); }
.prod-actions .stop-note { text-align: center; font-size: 16px; padding: 14px; }
@media (min-width: 720px) {
  .panel.prod { width: min(980px, 100%); max-height: 90vh; border-radius: 32px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; animation-name: fade; }
  .prod-pic { grid-row: 1 / span 2; padding: 40px; position: sticky; top: 0; align-self: center; }
  .prod-ph { width: min(100%, 400px); }
  .prod-body { grid-column: 2; padding: 40px 32px 8px 8px; align-items: flex-start; text-align: left; }
  .og, .og-group { align-items: flex-start; }
  .prod-actions { grid-column: 2; padding: 14px 32px 28px 8px; }
  .fav-modal { left: 18px; right: auto; top: 18px; }
  .panel.prod .close { left: auto; right: 16px; }
}

/* ---------- корзина ---------- */
.panel.cart { display: flex; flex-direction: column; }
@media (min-width: 720px) {
  .ov:has(.panel.cart) { align-items: stretch; }
  .panel.cart { width: 440px; max-height: none; height: 100%; border-radius: 0; animation-name: slide; }
}
.cart-top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) var(--gut) 10px; background: var(--paper); min-height: 60px; }
@media (min-width: 720px) { .cart-top { padding-left: 20px; padding-right: 20px; } }
.cart-x, .cart-back { border: 0; background: none; color: var(--salmon); font-size: 17px; font-weight: 500; padding: 8px 0; display: inline-flex; align-items: center; gap: 4px; }
.cart-trash { border: 0; background: none; color: var(--salmon); width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; }
.cart-title { font-size: 17px; } .cart-sp { width: 80px; }
.cart-pad { padding: 2px var(--gut) 20px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 720px) { .cart-pad { padding-left: 20px; padding-right: 20px; } }
.cart-h { font: 800 24px/1.1 var(--display); margin: 6px 0 12px; }
.lines { display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .mini { width: 84px; height: 84px; border-radius: 50%; background: var(--card); display: grid; place-items: center; overflow: hidden; }
.line .mini img { width: 100%; height: 100%; object-fit: cover; } .line .mini .art { width: 90%; height: 90%; }
.line-mid { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.line .nm { font-weight: 700; line-height: 1.25; }
.line .opt-text { color: var(--muted); font-size: 14px; line-height: 1.3; }
.line .step { margin-top: 8px; height: 34px; background: var(--card); color: var(--ink); border-radius: 14px; }
.line .step button { width: 34px; }
.line-sum { font-weight: 700; white-space: nowrap; align-self: center; }
.upsell { display: flex; flex-direction: column; }
.upsell .cart-h { margin-top: 10px; }
.upsell-row { display: flex; gap: 10px; overflow-x: auto; margin: 0 calc(-1 * var(--gut)); padding: 2px var(--gut) 6px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 var(--gut); }
@media (min-width: 720px) { .panel .upsell-row { margin: 0 -20px; padding: 2px 20px 6px; } }
.upsell-row::-webkit-scrollbar { display: none; }
.up-card { flex: none; width: 124px; background: var(--card); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 3px; scroll-snap-align: start; }
.up-pic { aspect-ratio: 1; border: 0; padding: 0; border-radius: 14px; background: var(--card-2); display: grid; place-items: center; overflow: hidden; margin-bottom: 4px; }
.up-pic img { width: 100%; height: 100%; object-fit: cover; } .up-pic .art { width: 84%; height: 84%; }
.up-nm { font-size: 14px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.up-w { color: var(--muted); font-size: 13px; }
.up-add { margin-top: auto; border: 0; background: var(--card-2); color: var(--ink); border-radius: 14px; padding: 8px 6px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.up-card .up-nm + .up-add { margin-top: 8px; }
.up-add:hover { background: var(--salmon); color: var(--on-salmon); }
.promo-btn { align-self: center; width: min(300px, 100%); border: 0; background: var(--card); color: var(--ink); border-radius: 24px; padding: 15px; font-weight: 700; font-size: 16px; margin-top: 6px; }
.promo-box { display: flex; flex-direction: column; gap: 8px; }
.coin { display: inline-block; flex: none; width: .78em; height: .78em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffb27a, #fe6028 60%, #d9450f); vertical-align: -.04em; margin-left: 5px; }
.coin.big { width: 40px; height: 40px; margin: 0; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.coin-in { display: flex; align-items: center; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; border: 0; background: var(--card); border-radius: 16px; padding: 13px 16px; font-weight: 600; font-size: 15px; color: var(--ink); text-align: left; }
.coinopt { border-color: color-mix(in srgb, var(--salmon) 40%, transparent); }
.details .cart-h { margin-top: 10px; }
.det { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 16px; }
.det span:first-child { color: color-mix(in srgb, var(--ink) 85%, transparent); }
.det.acc span:last-child { color: var(--salmon); }
.earn { font-weight: 700; }
.cart-go { position: sticky; bottom: 0; z-index: 5; margin-top: auto; padding: 18px var(--gut) calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, var(--paper) 32%); }
@media (min-width: 720px) { .cart-go { padding-left: 20px; padding-right: 20px; } }
.empty-cart { text-align: center; padding: 56px 10px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.empty-cart p { margin: 0; color: var(--muted); }
.empty-cart .btn { flex: none; min-width: 200px; }
.empty-ico { width: 96px; height: 96px; border-radius: 50%; background: var(--card); color: var(--salmon); display: grid; place-items: center; }
/* оформление */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border-radius: 99px; padding: 4px; }
.seg button { border: 0; background: none; padding: 11px; border-radius: 99px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .16); }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld label, .group-title { font-size: 14px; font-weight: 600; color: var(--muted); }
.fld input, .fld select, .fld textarea { font: inherit; width: 100%; height: 50px; padding: 0 16px; border: 1.5px solid transparent; border-radius: 16px; background: var(--card); color: var(--ink); }
.fld textarea { height: 76px; padding: 12px 16px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--salmon); }
.fld.bad input, .fld.bad select, .fld.bad textarea { border-color: var(--err); }
.fld .err { color: var(--err-ink); font-size: 13px; }
.addr-det { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.addr-det .fld label { font-size: 12.5px; }
.addr-det .fld input { padding: 0 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .two { grid-template-columns: 1fr; } }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid transparent; background: var(--card); border-radius: 16px; cursor: pointer; }
.opt input { width: 18px; height: 18px; accent-color: var(--salmon); margin: 0; flex: none; }
.opt.on { border-color: var(--salmon); }
.opt.consent { font-size: 13px; line-height: 1.4; padding: 10px 12px; background: none; border: 0; }
.opt.consent.on { border: 0; }
.time-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.time-chips .chip { flex: none; border: 1.5px solid transparent; background: var(--card); color: var(--ink); border-radius: 99px; padding: 10px 16px; font-weight: 600; font-size: 15px; }
.time-chips .chip.on { border-color: var(--salmon); color: var(--salmon); }
.time-chips .chip:disabled { opacity: .5; }
.sums { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.sums div { display: flex; justify-content: space-between; }
.sums .tot { font: 800 22px/1.2 var(--display); padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.sums .sum-sub { font-size: 13px; color: var(--muted); display: block; margin-top: -4px; }
.note { padding: 10px 14px; border-radius: 14px; font-size: 14px; background: var(--card); }
.note.warn { background: var(--salmon-soft); color: var(--salmon-ink); } .note.good { background: var(--wasabi-soft); color: var(--wasabi-ink); }
.legal { font-size: 13px; color: var(--muted); margin: 0; }
.dest { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--salmon); }
.dest > div { display: grid; gap: 2px; } .dest b { font-size: 17px; }

/* ---------- профиль, баллы, заказы, адреса ---------- */
@media (min-width: 720px) {
  .ov.center:has(.panel.prof) { align-items: center; }
  .panel.prof { width: 500px; max-height: 90vh; border-radius: 30px; animation-name: fade; }
}
.panel.prof .cart-pad { padding-top: calc(12px + env(safe-area-inset-top)); gap: 18px; }
.p-top { display: flex; align-items: center; gap: 10px; }
.p-top .close, .p-ico { position: static; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); display: grid; place-items: center; font-size: 26px; }
.p-title { flex: 1; text-align: center; font-size: 17px; }
.p-sp { flex: 0 0 44px; }
.me .p-top .p-sp { flex: 1; }
.p-pill { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 22px; background: var(--card); font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ink); }
.p-av { width: 44px; height: 44px; cursor: default; }
.hello h2 { font-size: 30px; }
.hello p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.join { background: var(--card); border-radius: 24px; padding: 18px; display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.join-pic { position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--salmon-soft); display: grid; place-items: center; font-size: 38px; }
.join-pic .coin { position: absolute; right: -2px; bottom: 2px; width: 26px; height: 26px; margin: 0; border: 3px solid var(--card); }
.join-t h2 { font-size: 22px; } .join-t p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.35; }
.join .btn { grid-column: 1 / -1; }
.login-card { background: var(--card); border-radius: 24px; padding: 6px 16px 14px; }
.login-card .lg-phone, .login-card .lg-box { background: var(--paper); }
.ptiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ptile { border: 0; background: var(--card); color: var(--ink); border-radius: 22px; padding: 14px 12px 12px; min-height: 164px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; }
.ptile b { margin-top: auto; font: 800 18px/1.12 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.ptile.coins { background: transparent; border: 2px dashed var(--card-2); }
.ptile.coins b { color: var(--salmon); }
.pemo { font-size: 34px; line-height: 1; }
.pbadge { background: var(--card-2); font: 800 10.5px/1.2 var(--text); letter-spacing: .03em; padding: 5px 8px; border-radius: 10px; text-transform: uppercase; }
.ptile.coins .pbadge { background: var(--card); }
.psec h2 { font-size: 24px; margin: 4px 0 12px; }
.rep, .prow { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: 22px; padding: 14px; margin: 0 0 10px; width: 100%; border: 0; color: var(--ink); text-align: left; font: inherit; }
.prow.on { box-shadow: inset 0 0 0 2px var(--salmon); }
.rep-pic { flex: none; width: 54px; height: 54px; border-radius: 16px; overflow: hidden; background: var(--card-2); display: grid; place-items: center; }
.rep-pic img { width: 100%; height: 100%; object-fit: cover; } .rep-pic .art { width: 90%; height: 90%; }
.rep-t { display: grid; gap: 3px; flex: 1; min-width: 0; }
.rep-t b { font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.rep-t small { color: var(--muted); font-size: 13.5px; }
.rep-go { flex: none; border: 0; background: none; color: var(--ink); font-weight: 600; font-size: 15px; padding: 8px 2px; text-decoration: none; }
.rep-go:hover { color: var(--salmon); }
.pdet summary { font: 800 20px/1.2 var(--display); cursor: pointer; padding: 6px 0; }
.p-foot { display: grid; justify-items: start; }
.addr-list { display: grid; }
/* баллы */
.bcard { height: 280px; border-radius: 26px; background: repeating-radial-gradient(circle at 30% 30%, #ff7a2a 0 18px, #e85c10 19px 22px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; text-align: center; padding: 16px; }
.bburn { background: rgba(20, 18, 16, .86); color: #fff; border-radius: 18px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
.bsum { font: 900 70px/1 var(--display); letter-spacing: -.03em; background: rgba(255, 122, 42, .82); border: 2px solid #ffb08a; border-radius: 40px; padding: 8px 28px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.bunit { font-size: 16px; font-weight: 700; }
.bnote { margin: 0; text-align: center; color: var(--salmon); font-size: 15px; font-weight: 600; }
.bfacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bfacts > div { background: var(--card); border-radius: 18px; padding: 14px; display: grid; gap: 4px; }
.bfacts b { font: 800 22px/1.1 var(--display); } .bfacts span { color: var(--muted); font-size: 13.5px; line-height: 1.3; }
.bhist { display: grid; }
.brow { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.brow small { display: block; color: var(--muted); font-size: 12.5px; }
.brow .plus { color: var(--wasabi-ink); } .brow .minus { color: var(--salmon-ink); }
/* мои заказы и чек */
.hist { background: var(--card); border-radius: 20px; padding: 14px 16px; margin: 0 0 10px; }
.hist-h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.hist-i { margin: 6px 0 10px; color: var(--muted); font-size: 14px; }
.hist-f { display: flex; align-items: center; gap: 12px; }
.hist-f b { margin-right: auto; }
.hist-a { color: var(--muted); font-size: 14px; }
button.hist-a { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.bsep { display: grid; gap: 0; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.receipt { max-width: 420px; }
.receipt .rtab { width: 100%; border-collapse: collapse; font-size: 15px; }
.receipt .rtab td { padding: 6px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.receipt .rtab .num { text-align: right; white-space: nowrap; padding-left: 12px; }
.receipt .rtab .rtot td { font-weight: 800; border-bottom: 0; font-size: 17px; padding-top: 10px; }
.receipt .fisc { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--card); }
.cart-pad.receipt .close { position: static; }
@media print { .receipt .close, .receipt .btn, .receipt .fisc a { display: none !important; } }
.pdata { margin: 10px 0 4px; display: grid; gap: 10px; }
.pdata .group-title { display: none; }
.pdata .pf { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.pdata .pf input { font: inherit; color: var(--ink); padding: 10px 14px; border: 1.5px solid transparent; border-radius: 14px; background: var(--card); min-height: 46px; }
.pdata .pf input:focus { outline: none; border-color: var(--salmon); }
.pdata .pf-check { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.pdata .pf-check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--salmon); }
.pdata .btn { justify-self: start; }
.pdata .pf-note { margin: -4px 0 0; line-height: 1.4; }
.city-ask .cart-pad h2 { padding-right: 0; }
.city-ask .city-card { display: grid; gap: 4px; width: 100%; text-align: left; margin-top: 10px; font: inherit; cursor: pointer; border: 0; color: var(--ink); min-height: 0; padding: 18px 20px; }
.city-ask .city-card.on { outline: 2px solid var(--salmon); }
/* вход по телефону и коду */
.lg { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.lg-ttl { font-size: 19px; font-weight: 800; line-height: 1.25; text-align: center; margin: 8px 0 2px; }
.lg-sub { margin: -4px 0 4px; text-align: center; color: var(--muted); }
.lg-phone { width: 100%; font: inherit; font-size: 24px; font-weight: 800; text-align: center; padding: 16px 14px; border: 0; border-radius: 16px; background: var(--card); color: inherit; outline: none; }
.lg-phone:focus, .lg-box:focus { box-shadow: 0 0 0 2px var(--salmon); }
.lg-codes { display: flex; justify-content: center; gap: 10px; margin: 8px 0 4px; }
.lg-box { width: 58px; height: 72px; font: inherit; font-size: 28px; font-weight: 800; text-align: center; border: 0; border-radius: 16px; background: var(--card); color: inherit; outline: none; padding: 0; }
.lg-hint { margin: 0; text-align: center; color: var(--muted); font-size: 14px; }
.lg-alt { background: none; border: 0; padding: 10px; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-align: center; }
.lg-msg { margin: 0; min-height: 1em; text-align: center; color: var(--err-ink); font-size: 14px; }
.lg .btn:disabled { opacity: .45; }

/* на телефоне шторка закрывается свайпом вниз: полоска сверху подсказывает это */
@media (max-width: 719px) {
  button, .tile, .chip, .sub, .promo, [role=button], .cart-bar { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  button:active, .tile:active, .chip:active, .cart-bar:active { transform: scale(.97); transition: transform .08s ease; }
  .panel.city-ask::before, .panel.quick::before { content: ""; position: sticky; top: 0; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto -13px; z-index: 4; }
}
.splash { background: var(--salmon) !important; }
.install { bottom: calc(92px + env(safe-area-inset-bottom)) !important; background: var(--chip-on) !important; color: var(--on-chip-on) !important; }
@media (max-width: 719px) and (display-mode: standalone) { .ft { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; }
}

/* ---------- страницы города и заказа, табло, карта, сторис, помощник, телевизор: как раньше ---------- */

/* город */
.city-pick { padding: 44px 0 64px; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.city-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 26px; border-radius: 28px; background: var(--mist); text-decoration: none; transition: background .15s, transform .15s; min-height: 170px; }
.city-card:hover { background: var(--mist-2); transform: translateY(-2px); }
.city-name { font: 800 30px/1.1 var(--display); letter-spacing: -.02em; } .city-addr { color: var(--muted); flex: 1; }

/* отслеживание заказа */
.track { padding: 28px 16px 64px; max-width: 760px; }
.track-card { background: var(--mist); border-radius: 28px; padding: 28px 22px; display: flex; flex-direction: column; gap: 22px; }
.track-card h1 { font-size: clamp(26px, 5vw, 38px); }
.eta-big { font: 800 22px/1.2 var(--display); }
.courier-box { background: var(--paper); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.courier-box .muted { margin: 0; font-size: 14px; }
.courier-box .btn { flex: none; text-decoration: none; padding: 12px 20px; font-size: 15px; }
.steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; counter-reset: s; }
.steps li { position: relative; text-align: center; overflow-wrap: normal; hyphens: none; line-height: 1.25; font-size: 12.5px; color: var(--muted); padding: 34px 2px 0; }
.steps li::before { content: ""; position: absolute; top: 8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--step-off); z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 16px; left: -50%; width: 100%; height: 3px; background: var(--step-off); }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--ink); } .steps li.done::before, .steps li.done::after { background: var(--nori); }
.steps li.now { color: var(--ink); font-weight: 700; } .steps li.now::before { background: var(--salmon); box-shadow: 0 0 0 0 rgba(254, 96, 40, .55); animation: pulse 1.8s infinite; }
.steps li.now::after { background: var(--nori); }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(254, 96, 40, 0); } 100% { box-shadow: 0 0 0 0 rgba(254, 96, 40, 0); } }
.sheet { background: var(--paper); border-radius: 20px; padding: 6px 18px; }
.sheet .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sheet .row:last-child { border: 0; } .sheet .row.tot { font-weight: 800; font-size: 18px; }
.track-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* баллы за заказ на странице заказа */
.pts-box { display: flex; gap: 12px; align-items: flex-start; background: var(--salmon-soft); color: var(--salmon-ink); border-radius: 16px; padding: 12px 14px; }
.pts-box .coin.big { width: 30px; height: 30px; margin-top: 1px; }
.pts-box p { margin: 0; }
.pts-box .pts-h { font-weight: 700; font-size: 16px; }
.pts-box .pts-s { font-size: 14px; margin-top: 3px; opacity: .9; }
.pts-box a { font-weight: 700; }
.track-actions .btn.again { flex-basis: 100%; }
.sheet .row-opt { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.track-actions a { text-decoration: none; text-align: center; }
.track-card .btn.ghost { background: var(--paper); } .track-card .btn.ghost:hover { background: var(--sel-bg); }
.cancelled h1 { color: var(--salmon-ink); }

/* подвал и текст */
.ft { background: var(--ft-bg); color: #cfd8d2; margin-top: 24px; padding: 36px 0 calc(36px + 70px); }
.ft-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: grid; gap: 22px 40px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .ft-in { grid-template-columns: auto 1fr 1fr; } .ft { padding-bottom: 36px; } }
.ft-brand { display: flex; align-items: center; }
.ft .logo { color: #f7ede3; }
.ft p { margin: 0 0 6px; } .ft a { color: #fff; }
.prose { padding: 40px 16px 24px; max-width: 760px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; margin: 0 0 14px; border-radius: 999px; background: #f2f2f2; color: inherit; font-weight: 600; text-decoration: none; } .prose h1 { margin-bottom: 18px; } .prose p { margin: 0 0 14px; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; }
}

/* Табло готовых заказов для экрана в зале: всегда тёмное, читается с расстояния */
body.board-page { background: #231b16; color: #f3ebe3; min-height: 100vh; overflow: hidden; --logo: #f3ebe3; }
.board { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-rows: auto 1fr; gap: 0 clamp(18px, 3vw, 56px); padding: clamp(18px, 3vw, 44px); }
.board-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; padding-bottom: clamp(14px, 2vw, 28px); }
.board-head .logo { color: #f3ebe3; }
.board-point { flex: 1; font-size: clamp(16px, 1.8vw, 28px); color: #b9a99b; }
.board-clock { font: 800 clamp(24px, 3vw, 48px)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.board-col { border-radius: 28px; background: #2d241f; padding: clamp(18px, 2.4vw, 40px); min-width: 0; }
.board-col.is-ready { background: #43372f; }
.board-col h1 { margin: 0 0 clamp(14px, 2vw, 30px); font: 800 clamp(22px, 2.6vw, 44px)/1.1 var(--display); letter-spacing: -.02em; color: #b9a99b; }
.board-col.is-ready h1 { color: #fe6028; }
.board-nums { display: flex; flex-wrap: wrap; gap: clamp(10px, 1.4vw, 22px); align-content: flex-start; }
.board-nums span { font: 800 clamp(34px, 5vw, 84px)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: #d9cdc0; padding: .12em .32em; border-radius: .3em; background: rgba(243, 235, 227, .07); }
.board-col.is-ready .board-nums span { font-size: clamp(44px, 7vw, 120px); color: #231b16; background: #fe6028; }
.board-nums span.new { animation: board-pop 1.2s ease-out 1; }
@keyframes board-pop { 0% { transform: scale(.6); opacity: 0; } 35% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .board-nums span.new { animation: none; } }
.board-empty { font-size: clamp(18px, 2vw, 32px); color: #8d7f73; }
.board-state { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 8px 16px; border-radius: 99px; background: #5a4a40; color: #f3ebe3; font-size: 15px; }
@media (max-width: 720px) { .board { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 14px; } body.board-page { overflow: auto; } }

/* ---------- Окно выбора способа получения и адреса ---------- */
.panel.locm { padding: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); width: min(1040px, 100%); height: min(640px, 92dvh); border-radius: 32px; animation-name: fade; }
.loc-map { min-height: 0; height: 100%; }
.loc-side { padding: 30px 30px 24px; display: flex; flex-direction: column; gap: 16px; overflow: auto; min-height: 0; }
.loc-side .seg2 { align-self: stretch; margin-right: 48px; }
.loc-head h2 { font-size: 26px; }
.loc-head p { margin: 6px 0 0; font-size: 15px; }
.loc-ok { flex: none; margin-top: auto; position: sticky; bottom: 0; box-shadow: 0 0 0 10px var(--paper); }   /* если панель всё же прокручивается, текст не просвечивает под кнопкой */
.loc-ok:disabled { background: var(--btn-off); color: var(--btn-off-ink); }
.pu-list { display: flex; flex-direction: column; gap: 10px; }
.pu { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--field-line); border-radius: 18px; cursor: pointer; transition: border-color .15s, background .15s; }
.pu input { accent-color: var(--salmon); margin: 3px 0 0; width: 18px; height: 18px; flex: none; }
.pu b { display: block; font-weight: 600; line-height: 1.3; }
.pu small { color: var(--muted); font-size: 13.5px; }
.pu.on { border-color: var(--salmon); background: var(--salmon-soft); }
@media (max-width: 719px) {
  /* карта на весь экран, переключатель поверх карты, снизу панель со скруглением */
  .ov.center:has(.panel.locm) { padding: 0; align-items: stretch; }
  .panel.locm { grid-template-columns: 1fr; grid-template-rows: 26dvh minmax(0, 1fr); width: 100%; height: 100dvh; max-height: none; border-radius: 0; animation-name: rise; transition: grid-template-rows .25s; }
  .panel.locm.map-big { grid-template-rows: 62dvh minmax(0, 1fr); }
  .panel.locm.map-big .map-fold { display: block; }
  .panel.locm .loc-side { max-height: none; }
  /* панель по высоте содержимого, карта занимает остаток: строка «Доставка … в пути около …» больше не уходит под кнопку */
  .loc-side { max-height: 70dvh; padding: 22px 18px max(18px, env(safe-area-inset-bottom)); margin-top: -26px; position: relative; z-index: 3; background: var(--paper); border-radius: 26px 26px 0 0; box-shadow: 0 -6px 24px rgba(0, 0, 0, .12); }
  .loc-side .seg2.wide { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 70px; right: 14px; margin: 0; z-index: 6; background: var(--paper); box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
  .loc-side .seg2.wide button.on { background: var(--salmon); color: var(--on-salmon); box-shadow: none; }
  .loc-head h2 { font-size: 23px; }
  .panel.locm .close { top: max(14px, env(safe-area-inset-top)); left: 14px; right: auto; background: var(--paper); box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
  .loc-map .map-me { bottom: 44px; }
  .loc-map .map-zoom { bottom: 108px; right: 20px; }
  .loc-map .map-note { top: calc(max(14px, env(safe-area-inset-top)) + 62px); }
  .loc-map .map-attr { bottom: 30px; }
}

/* ---------- Карта ---------- */
.mapbox { position: relative; overflow: hidden; background: var(--map-bg); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.mapbox.grab { cursor: grabbing; }
.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-roads { fill: none; stroke: color-mix(in srgb, var(--shell) 85%, transparent); stroke-width: 9; stroke-linecap: round; }
.map-park { fill: color-mix(in srgb, var(--wasabi-soft) 85%, var(--map-bg)); }
.map-river { fill: none; stroke: color-mix(in srgb, #8fc1e3 55%, var(--map-bg)); stroke-width: 28; stroke-linecap: round; }
.map-tiles, .map-pins { position: absolute; inset: 0; }
.map-pins { pointer-events: none; }
.map-aim { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: var(--salmon); pointer-events: none; z-index: 3; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.map-tile { position: absolute; width: 256px; height: 256px; max-width: none; opacity: 0; transition: opacity .25s; }
.map-tile.in { opacity: 1; }
@media (prefers-color-scheme: dark) { .map-tile { filter: invert(.92) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.8); } }
.pin { position: absolute; pointer-events: auto; transform: translate(-50%, -100%); border: 0; background: none; padding: 0; color: var(--nori-2); filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .3)); cursor: pointer; transition: color .15s; }
.pin svg { display: block; }
.pin.on { color: var(--salmon); z-index: 2; }
.pin-lab { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 2px; background: var(--shell); padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.map-zoom { position: absolute; right: 12px; bottom: 34px; display: flex; flex-direction: column; background: var(--shell); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .22); }
.map-zoom button { width: 40px; height: 40px; border: 0; background: none; font-size: 22px; line-height: 1; font-weight: 500; }
.map-zoom button + button { border-top: 1px solid var(--line); }
.map-zoom button:hover { background: var(--chip); }
.map-attr { position: absolute; right: 6px; bottom: 5px; font-size: 11px; background: rgba(255, 255, 255, .82); color: #43372f; padding: 1px 7px; border-radius: 6px; text-decoration: none; }
.map-note { position: absolute; left: 12px; top: 12px; right: 64px; background: rgba(255, 255, 255, .92); color: #43372f; padding: 6px 12px; border-radius: 12px; font-size: 13px; }

/* ---------- Просмотр сторис ---------- */
body.lock .site-toast { z-index: 90; }
.sv { position: fixed; inset: 0; z-index: 70; background: rgba(20, 12, 8, .8); display: grid; place-items: center; padding: 16px; animation: fade .2s ease; }
.sv-card { position: relative; width: min(380px, 100%, calc((100dvh - 32px) * .58)); height: min(680px, calc(100dvh - 32px)); border-radius: 30px; overflow: hidden; color: #fff; display: flex; align-items: flex-end; isolation: isolate; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.sv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.sv-card.has-img::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, .72)); }
.sv-bars { position: absolute; top: 12px; left: 14px; right: 14px; z-index: 4; display: flex; gap: 4px; }
.sv-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.sv-bar i { display: block; height: 100%; width: 0; background: #fff; }
.sv-bar.done i { width: 100%; }
.sv-bar.now i { animation: svbar 6s linear forwards; }
@keyframes svbar { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .sv-bar.now i { width: 100%; } }
.sv-x { position: absolute; top: 24px; right: 12px; z-index: 5; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .3); color: #fff; font-size: 24px; line-height: 1; }
.sv-zone { position: absolute; top: 64px; bottom: 0; border: 0; background: none; z-index: 3; padding: 0; }
.sv-zone.prev { left: 0; width: 35%; } .sv-zone.next { right: 0; width: 65%; }
.sv-body { position: relative; z-index: 4; padding: 24px 24px 28px; width: 100%; pointer-events: none; }
.sv-body h2 { font-size: 30px; text-shadow: 0 1px 14px rgba(0, 0, 0, .3); overflow-wrap: anywhere; }
.sv-body p { margin: 12px 0 0; font-size: 17px; line-height: 1.4; text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }
.sv-cta { pointer-events: auto; margin-top: 20px; border: 0; background: #fff; color: #2b221d; font-weight: 700; font-size: 17px; padding: 14px 28px; border-radius: 99px; }
.sv-cta:hover { background: #fff0e6; }

/* ---------- Чат с помощником ---------- */
.ai-ico.sm { width: 36px; height: 36px; }
.ai-sheet { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: flex-end; align-items: flex-end; background: var(--scrim); animation: fade .2s ease; }
.ai-panel { position: relative; background: var(--paper); width: 100%; height: min(88dvh, 760px); display: flex; flex-direction: column; border-radius: 26px 26px 0 0; animation: rise .26s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
@media (min-width: 720px) { .ai-sheet { align-items: stretch; } .ai-panel { width: 460px; height: 100%; border-radius: 0; animation-name: slide; } }
.ai-head { display: flex; align-items: center; gap: 10px; padding: 16px 64px 12px 18px; border-bottom: 1px solid var(--line); }
.ai-head h2 { font-size: 20px; }
.ai-head .close { top: 12px; }
.ai-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; line-height: 1.4; font-size: 15.5px; overflow-wrap: anywhere; }
.ai-msg.bot { align-self: flex-start; background: var(--chip); border-bottom-left-radius: 6px; }
.ai-msg.me { align-self: flex-end; background: var(--salmon); color: var(--on-salmon); border-bottom-right-radius: 6px; }
.ai-typing { display: flex; gap: 5px; padding: 14px 16px; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; animation: dot 1.1s infinite ease-in-out; }
.ai-typing span:nth-child(2) { animation-delay: .15s; } .ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 40% { opacity: 1; transform: translateY(-3px); } }
.ai-offer { background: var(--card); border-radius: 22px; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.ai-line { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; }
.ai-thumb { width: 46px; height: 46px; border-radius: 12px; background: var(--pic-1); display: grid; place-items: center; overflow: hidden; }
.ai-thumb .art { width: 86%; height: 86%; } .ai-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ai-nm { font-weight: 600; line-height: 1.25; }
.ai-sum { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px solid var(--line); font-size: 17px; }
.ai-sum b { font: 800 22px/1.1 var(--display); }
.ai-offer .btn { flex: none; }
.ai-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ai-list > .ai-quick { margin-top: 0; }
.ai-quick .ai-s { background: var(--chip); }
.ai-quick .ai-s:hover { background: var(--chip-hover); }
.ai-note { margin: 0; padding: 4px 18px 8px; font-size: 12.5px; color: var(--muted); }
.ai-send { display: flex; gap: 8px; padding: 6px 14px calc(14px + env(safe-area-inset-bottom)); }
.ai-field { flex: 1; min-width: 0; height: 50px; border: 1.5px solid var(--field-line); border-radius: 99px; background: var(--paper); color: var(--ink); font: inherit; padding: 0 20px; }
.ai-field:focus { outline: none; border-color: var(--salmon); box-shadow: 0 0 0 3px rgba(254, 96, 40, .2); }
.ai-go { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--salmon); color: var(--on-salmon); display: grid; place-items: center; }
.ai-go:disabled { background: var(--btn-off); color: var(--btn-off-ink); }
.ai-msg .ai-quick .ai-s { background: var(--shell); }

/* ---------- Оценка гостей: рейтинг точки и оценка заказа ---------- */
.rate { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.rate svg { fill: var(--salmon); stroke: var(--salmon); }
.rv { background: var(--paper); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.rv h2 { font: 800 20px/1.2 var(--display); margin: 0; }
.stars { display: flex; gap: 4px; margin-left: -4px; }
.star { border: 0; background: none; padding: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--step-off); }
.star svg { width: 36px; height: 36px; fill: currentColor; }
.star.on { color: var(--salmon); }
button.star:hover { background: var(--sel-bg); }
span.star { width: 40px; height: 40px; } span.star svg { width: 30px; height: 30px; }
.rv textarea { font: inherit; width: 100%; min-height: 84px; padding: 12px 16px; border: 1.5px solid var(--field-line); border-radius: 16px; background: var(--paper); color: var(--ink); resize: vertical; }
.rv textarea:focus { outline: none; border-color: var(--nori); box-shadow: 0 0 0 3px var(--ring); }
.rv-bonus { margin: 0; font-weight: 700; color: var(--salmon-ink); }
.rv input[type=tel] { font: inherit; width: 100%; padding: 12px 16px; border: 1.5px solid var(--field-line); border-radius: 16px; background: var(--paper); color: var(--ink); }
.rv-text { margin: 0; overflow-wrap: anywhere; } .rv-note { margin: 0; font-size: 14px; }
.rv-err { margin: 0; color: var(--err-ink); font-size: 14px; }
.rv .link-btn { align-self: flex-start; padding-left: 0; }
@media (max-width: 719px) { .loc .rate { display: none; } }

/* отмена заказа гостем */
.cancel-box { display: flex; flex-direction: column; gap: 10px; }
.cancel-q { margin: 0; font-weight: 600; }
.cancel-link { align-self: flex-start; color: var(--err-ink, #a42220); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 4px 0; font-size: 15px; }
.btn.cancel-yes { background: var(--err, #cc2f2c); color: #fff; }
.btn.cancel-yes:hover { background: var(--err, #cc2f2c); filter: brightness(.92); }

/* ---- меню на телевизоре: /tv/<точка>. Размеры в em от высоты экрана, поэтому одинаково читается на любом телевизоре */
body.tv-page { --tv-bg: #231b16; --tv-fg: #f3ebe3; --tv-muted: #b9a99b; --tv-line: rgba(243, 235, 227, .18); --tv-card: #2d241f; --tv-accent: #fe6028; --logo: #f3ebe3;
  background: var(--tv-bg); color: var(--tv-fg); height: 100vh; overflow: hidden; cursor: none; }
body.tv-page[data-theme="light"] { --tv-bg: #faf5ee; --tv-fg: #231b16; --tv-muted: #7a685a; --tv-line: rgba(35, 27, 22, .18); --tv-card: #fff; --tv-accent: #e8470d; --logo: #231b16; }
.tv { height: 100vh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 2.4vmin; padding: 3.2vmin 4vmin; font-size: clamp(14px, 2.1vmin, 44px); }
.tv-head { display: flex; align-items: center; gap: 1.6em; }
.tv-head .logo { color: var(--tv-fg); height: 2.2em; width: auto; }
.tv-title { flex: 1; margin: 0; font: 800 2.3em/1 var(--display); letter-spacing: -.02em; }
.tv-clock { font: 800 1.9em/1 var(--display); font-variant-numeric: tabular-nums; color: var(--tv-muted); }
.tv-stage { min-height: 0; overflow: hidden; }
.tv-slide { height: 100%; display: grid; gap: 1.4em 3em; align-content: start; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tv-slide.single { grid-template-columns: minmax(0, 1fr); }
.tv-in { animation: tv-in .7s ease-out 1; }
@keyframes tv-in { from { opacity: 0; transform: translateY(1.2vmin); } to { opacity: 1; transform: none; } }
.tv-group { min-width: 0; }
.tv-cat { font: 800 1.35em/1.1 var(--display); color: var(--tv-accent); margin: 0 0 .5em; letter-spacing: -.01em; }
.tv-list { list-style: none; margin: 0; padding: 0; }
.tv-slide.single.layout-list .tv-list { columns: 2; column-gap: 3em; }
.tv-row { display: flex; align-items: baseline; gap: .7em; padding: .55em 0; border-bottom: 1px solid var(--tv-line); break-inside: avoid; }
.tv-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .6em; min-width: 0; flex: 1; }
.tv-name b { font-weight: 700; font-size: 1.5em; line-height: 1.15; }
.tv-weight { color: var(--tv-muted); font-size: 1em; }
.tv-text { flex-basis: 100%; color: var(--tv-muted); font-size: .95em; line-height: 1.25; }
.tv-badge { font-style: normal; font-weight: 700; font-size: .75em; padding: .15em .6em; border-radius: 99px; background: var(--tv-accent); color: #231b16; align-self: center; }
.tv-price { font: 800 1.8em/1 var(--display); color: var(--tv-fg); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tv-out { font-size: 1em; color: var(--tv-muted); white-space: nowrap; }
.is-stopped { opacity: .45; }
.tv-slide.layout-cards { display: flex; flex-direction: column; gap: 1em; }
.tv-slide.layout-cards .tv-group { min-height: 0; }
.tv-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 17em; gap: 1.4em; }
.tv-card { background: var(--tv-card); border-radius: 1.2em; overflow: hidden; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.tv-photo { position: relative; flex: 1; min-height: 0; background: rgba(127, 127, 127, .15); }
.tv-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-photo .tv-badge { position: absolute; left: .8em; top: .8em; }
.tv-card-body { padding: .8em 1em 1em; display: grid; gap: .25em; align-content: start; }
.tv-card .tv-name { font-size: 1.25em; line-height: 1.15; }
.tv-card-head { display: flex; gap: .6em; align-items: baseline; flex-wrap: wrap; }
.tv-card .tv-price { font-size: 1.7em; color: var(--tv-accent); }
.tv-card.nophoto .tv-card-body { flex: 1; align-content: center; padding: 1em 1.2em; }
.tv-card.nophoto .tv-name { font-size: 1.6em; }
.tv-card.nophoto .tv-price { font-size: 2em; }
.tv-foot { display: flex; align-items: center; gap: 2em; min-height: 1.4em; }
.tv-note { flex: 1; font-size: 1.1em; color: var(--tv-muted); }
.tv-dots { display: flex; gap: .6em; }
.tv-dots span { width: .7em; height: .7em; border-radius: 50%; background: var(--tv-line); }
.tv-dots span.on { background: var(--tv-accent); }
.tv-empty { font: 800 2.4em/1.2 var(--display); color: var(--tv-muted); padding-top: 12vh; text-align: center; }
.tv-state { position: fixed; right: 2vmin; bottom: 2vmin; padding: .5em 1em; border-radius: 99px; background: #5a4a40; color: #f3ebe3; font-size: .9em; }
@media (orientation: portrait) {
  .tv-slide, .tv-slide.single { grid-template-columns: minmax(0, 1fr); }
  .tv-slide.single.layout-list .tv-list { columns: 1; }
  .tv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 22em; }
}
@media (prefers-reduced-motion: reduce) { .tv-in { animation: none; } }

/* уведомление о готовности заказа */
.notify-box { display: grid; gap: 6px; }
.notify-box .btn { justify-self: start; }
.notify-ok { margin: 0; font-weight: 700; }
.notify-note { margin: 0; font-size: 14px; line-height: 1.4; }

/* адрес: подсказки при вводе, «Определить, где я», условия доставки по адресу */
.addr-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
.sg-wrap { position: relative; width: 100%; }
.sg { position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 32px rgba(43, 34, 29, .22); max-height: 270px; overflow: auto; }
.sg-i { padding: 11px 12px; border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; font-size: 15.5px; line-height: 1.3; }
.sg-i small { color: var(--muted); font-size: 12.5px; }
.sg-i:hover, .sg-i.on { background: var(--mist); }
.where { margin-top: 10px; border: 0; background: var(--mist); color: var(--ink); padding: 9px 14px 9px 12px; border-radius: 99px; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
.where:hover { background: var(--mist-2); } .where:disabled { opacity: .6; cursor: progress; }
.sg-note { font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.35; }
.sg-note.bad { color: var(--err-ink); }
.dl-info { display: grid; gap: 3px; font-size: 14px; margin-top: 10px; line-height: 1.35; }
.dl-info:empty { display: none; }
.dl-info.bad { background: var(--salmon-soft); color: var(--salmon-ink); padding: 10px 14px; border-radius: 14px; font-weight: 600; }
.dl-hint { color: var(--muted); }
.sums .sum-sub { font-size: 13px; color: var(--muted); display: block; margin-top: -4px; }

/* страница заказа: карта, трансляция кухни, фото блюд */
.track-map{height:200px;border-radius:14px;overflow:hidden;margin:12px 0;position:relative}
.cam-box{margin:12px 0}.cam-box iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:14px;background:#111}.cam-note{color:var(--accent,#e8541e);font-weight:600;margin-top:4px}
.sheet .row-pic{align-items:center;gap:10px}.sheet .row-img{width:44px;height:44px;border-radius:10px;object-fit:cover;flex:none}.sheet .row-name{flex:1}

/* ---- Режим приложения: на телефоне и на экране «Домой» без рамки сайта ---- */
/* загрузочный экран: логотип появляется, под ним бежит оранжевая полоса */
.splash svg { animation: splash-in .7s cubic-bezier(.2, .8, .2, 1) both; }
.splash::after { content: ""; position: absolute; left: 50%; top: calc(50% + 46px); width: 120px; height: 4px; margin-left: -60px; border-radius: 4px; background: linear-gradient(90deg, transparent, #ff6900, transparent); background-size: 200% 100%; animation: splash-bar 1.1s linear infinite; }
@keyframes splash-in { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes splash-bar { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .splash svg, .splash::after { animation: none; } }

.splash { position: fixed; inset: 0; z-index: 200; background: var(--page); display: grid; place-items: center; color: #fff; transition: opacity .35s ease; }
.splash.out { opacity: 0; pointer-events: none; }
.splash svg { color: #fff; }
.install { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 40; background: var(--nori); color: var(--on-nori); border-radius: 20px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 34px rgba(0, 0, 0, .3); }
.install p { margin: 0; flex: 1; font-size: 14px; line-height: 1.3; }
.install button { border: 0; border-radius: 99px; padding: 10px 16px; font: 600 14px var(--text); cursor: pointer; background: var(--salmon); color: var(--on-salmon); }
.install .x { background: none; color: inherit; opacity: .7; padding: 10px 6px; }
@media (min-width: 720px) { .install { display: none; } }
body.has-cart .install { display: none; }
@media (prefers-reduced-motion: reduce) { .splash { transition: none; } button:active, .tile:active { transform: none; } }
.offline-pill { position: fixed; left: 50%; top: calc(10px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 120; background: var(--nori); color: var(--on-nori); border-radius: 99px; padding: 9px 16px; font: 600 14px var(--text); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.panel.cart.is-checkout .cart-top { display: grid; grid-template-columns: 1fr auto 1fr; }
.panel.cart.is-checkout .cart-title { text-align: center; }
.subs.off { display: none; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

/* Текст для поисковиков под меню и отдельная страница блюда */
.seo { max-width: 1100px; margin: 32px auto 0; padding: 0 var(--gut); color: var(--muted); font-size: 13px; line-height: 1.5; }
.seo summary { cursor: pointer; list-style: none; color: var(--muted); font-size: 13px; padding: 10px 0; }
.seo summary::-webkit-details-marker { display: none; }
.seo summary::after { content: " ▾"; } .seo[open] summary::after { content: " ▴"; }
.seo h3 { font: 700 15px/1.3 var(--text); color: var(--ink); margin: 14px 0 4px; }
.seo p { margin: 0 0 6px; }
.seo a, .dish-more a, .crumbs a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.dish-page { max-width: 1000px; margin: 0 auto; padding: 16px var(--gut) 40px; }
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.dish-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.dish-pic { border-radius: var(--r); overflow: hidden; background: var(--prod-bg); aspect-ratio: 1; }
.dish-pic img, .dish-pic svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish-info h1 { font: 800 32px/1.1 var(--display); color: var(--ink); margin: 0 0 8px; }
.dish-info p { color: var(--ink); line-height: 1.5; margin: 0 0 10px; }
.dish-info .small, .dish-facts { color: var(--muted); font-size: 14px; }
.dish-buy { display: inline-flex; align-items: center; justify-content: center; margin-top: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--salmon); color: var(--on-salmon); font: 700 17px/1 var(--text); text-decoration: none; }
.dish-buy:hover { background: var(--salmon-hover); }
.dish-page h2 { font: 800 20px/1.2 var(--display); color: var(--ink); margin: 32px 0 8px; }
.dish-more { color: var(--muted); line-height: 1.7; }
@media (max-width: 700px) { .dish-card { grid-template-columns: 1fr; gap: 16px; } .dish-info h1 { font-size: 26px; } .dish-buy { width: 100%; } }

/* приборы в оформлении: подпись слева, счётчик справа */
.cart-pad .fld.cutl { display: flex; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 12px 16px; border-radius: 16px; background: var(--card); color: var(--ink); }
.cart-pad .fld.cutl .group-title { margin: 0; flex: 1; text-align: left; color: var(--ink); font-size: 16px; } .cart-pad .fld.cutl .muted { order: 3; width: 100%; } .cart-pad .fld.cutl .step { margin-left: auto; }
.sauces { display: flex; flex-direction: column; gap: 8px; margin-top: -4px; } .sauces p { margin: 0; }
.sauces .up-card .step { height: 34px; align-self: center; }

/* карточка блюда с фото на телефоне: фото от края до края, текст на тёмном */
@media (max-width: 719px) {
  .panel.prod.full { --prod-bg: #17110d; --ink: #ffffff; --muted: rgba(255, 255, 255, .72); --card: rgba(255, 255, 255, .14); --card-2: rgba(255, 255, 255, .22); --line: rgba(255, 255, 255, .16); --paper: #241b15; --sel-bg: rgba(255, 255, 255, .08); --field-line: rgba(255, 255, 255, .24); color: #fff; }
  .panel.prod.full .prod-pic { padding: 0; }
  .panel.prod.full .prod-pic::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 38%; background: linear-gradient(180deg, rgba(23, 17, 13, 0), #17110d); pointer-events: none; }
  .panel.prod.full .prod-ph { width: 100%; border-radius: 0; box-shadow: none; background: #000; }
  .panel.prod.full .prod-ph img { width: 100%; height: 64vh; height: 64dvh; max-height: none; object-fit: cover; }
  .panel.prod.full .prod-body { margin-top: -64px; position: relative; z-index: 1; }
  .panel.prod.full .prod-actions { background: linear-gradient(180deg, rgba(23, 17, 13, 0), #17110d 30%); }
  /* как в приложении: под карточкой размытое фото блюда, плашки и плитки полупрозрачные */
  .panel.prod.full::before { content: ""; position: fixed; inset: -60px; background: var(--dish-img) center / cover; filter: blur(50px) saturate(1.4); opacity: .55; pointer-events: none; z-index: 0; }
  .panel.prod.full .prod-pic, .panel.prod.full .prod-body { z-index: 1; }
  .panel.prod.full .prod-pic::after { display: none; }
  .panel.prod.full .prod-ph { background: transparent; }
  .panel.prod.full .prod-ph img { -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
  .panel.prod.full .prod-actions { background: linear-gradient(180deg, rgba(23, 17, 13, 0), rgba(23, 17, 13, .8) 40%); }
  .panel.prod.full .og-x, .panel.prod.full .og-tile { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
/* самовывоз: точка с часами и выбор «В зале» / «С собой» */
.pu-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; border-radius: 18px; background: var(--card); color: var(--ink); padding: 14px 16px; font: inherit; }
.pu-card > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dine-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dine { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px solid transparent; border-radius: 20px; background: var(--card); color: var(--ink); padding: 14px 10px; font: inherit; text-align: center; }
.dine.on { border-color: var(--salmon); }
.dine-pic { font-size: 44px; line-height: 1.1; }
.map-me { position: absolute; right: 6px; bottom: 124px; z-index: 4; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 4px 18px rgba(0, 0, 0, .2); display: grid; place-items: center; }
.loc-map { position: relative; }

/* инструкция «Установить как приложение» */
.inst-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; justify-content: center; }
.inst-box { position: relative; background: var(--bg, #fff); color: var(--ink, #1d1b19); width: 100%; max-width: 480px; border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); max-height: 90vh; overflow: auto; }
@media (min-width: 720px) { .inst-sheet { align-items: center; } .inst-box { border-radius: 22px; } }
.inst-box h3 { margin: 0 34px 6px 0; font-size: 21px; }
.inst-lead { margin: 0 0 14px; opacity: .75; font-size: 14px; }
.inst-x { position: absolute; top: 14px; right: 14px; border: 0; background: none; font-size: 18px; padding: 6px; cursor: pointer; color: inherit; }
.inst-os { display: flex; gap: 6px; margin-bottom: 14px; }
.inst-os button { flex: 1; border: 1.5px solid rgba(127, 127, 127, .3); background: none; color: inherit; border-radius: 99px; padding: 9px; font: 600 14px var(--text); cursor: pointer; }
.inst-os button.on { background: var(--nori, #1d1b19); color: var(--on-nori, #fff); border-color: transparent; }
.inst-now { width: 100%; border: 0; border-radius: 14px; padding: 13px; margin-bottom: 12px; font: 700 15px var(--text); background: var(--salmon, #ff5a1f); color: var(--on-salmon, #fff); cursor: pointer; }
.inst-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.inst-steps li { display: flex; gap: 12px; align-items: center; background: rgba(127, 127, 127, .09); border-radius: 14px; padding: 12px; }
.inst-steps b { display: block; font-size: 15px; }
.inst-steps small { display: block; opacity: .7; font-size: 13px; margin-top: 2px; }
.inst-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--bg, #fff); display: grid; place-items: center; color: #0a84ff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.inst-note { margin: 12px 0 0; font-size: 13px; opacity: .7; }

.next-gift { background: var(--wasabi-soft); color: var(--wasabi-ink); border-radius: 16px; padding: 14px 16px; display: grid; gap: 6px; }
.next-gift ul { margin: 0; padding-left: 18px; }

.gift-ov { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.gift-sheet { background: var(--card, #fff); color: inherit; width: 100%; max-width: 480px; border-radius: 20px 20px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }
.gift-sheet .ng { display: flex; flex-direction: column; gap: 6px; } .gift-sheet .ng b { font-size: 19px; }

.big-consent { border: 2px solid var(--line, #e3ddd6); border-radius: 14px; padding: 12px 14px; align-items: flex-start; }
.big-consent input { width: 24px; height: 24px; flex: none; accent-color: #fe6028; }
.big-consent.on { border-color: #34a853; }
.big-consent.bad { border-color: #e5352b; background: rgba(229,53,43,.06); animation: shake .35s; }
.consent-err { color: #e5352b; font-weight: 700; margin: 6px 0 0; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.rewards .up-card.picked { outline: 3px solid #fe6028; }
.rewards .up-add:disabled { opacity: .55; }
.set-ph .art, .set-ph svg { width: 100%; height: 100%; display: block; }

/* «Убрать ингредиенты»: плашка с крестиком; убранный ингредиент бледнеет, крестик пропадает, нажатие возвращает */
.og-rm { display: flex; flex-wrap: wrap; gap: 8px; }
.og-x { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--card); border-radius: 99px; padding: 10px 16px; font-weight: 600; font-size: 15px; color: var(--ink); transition: opacity .15s; }
.og-x i { font-style: normal; font-size: 18px; line-height: 1; font-weight: 400; }
.og-x.off { color: var(--muted); opacity: .55; }
/* допы с фото: плитки «Добавить по вкусу» */
.og-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.og-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px solid transparent; background: var(--card); border-radius: 18px; padding: 10px 6px 12px; text-align: center; color: var(--ink); min-width: 0; transition: border-color .15s, transform .1s; }
.og-tile:active { transform: scale(.96); }
.og-tile.on { border-color: var(--salmon, #fe6028); }
.og-tp { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.og-tp img { max-width: 100%; max-height: 100%; object-fit: contain; }
.og-tn { font-size: 13.5px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.og-tc { font-size: 14px; font-weight: 700; margin-top: auto; font-variant-numeric: tabular-nums; }
.og-ok { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--salmon, #fe6028); color: #fff; font-style: normal; font-size: 13px; display: grid; place-items: center; }
.gift-line .opt-text.gift-wait { color: var(--salmon); font-weight: 600; }
.gift-line .link-btn { margin-top: 6px; font-size: 14px; }
.gift-or-coins { display: grid; gap: 8px; margin: 12px 0; }
.coinopt.off { opacity: .75; }
/* карточка акции: подарок с фото и кнопкой «Добавить в корзину» */
.gift-sheet .gift-list { display: grid; gap: 16px; margin-top: 12px; }
.gift-item { display: grid; gap: 10px; background: var(--card); border-radius: 20px; padding: 14px; }
.gift-pic { width: 100%; aspect-ratio: 1.4; max-width: 100%; border-radius: 16px; overflow: hidden; background: var(--card-2); display: flex; align-items: center; justify-content: center; }
.gift-pic img { width: 100%; height: 100%; object-fit: cover; }
.gift-nm { display: grid; gap: 2px; }
.gift-nm b { font-size: 18px; }
.gift-pr { font-size: 17px; }
.gift-item .btn.big { width: 100%; }
.busy-offer { display: grid; gap: 8px; }
.busy-offer .btn { justify-self: start; }

/* окно адреса: «Мои адреса» над полем нового адреса, кнопка «Свернуть карту» на раскрытой карте (телефон) */
.addr-body { display: flex; flex-direction: column; gap: 14px; }
.my-addrs { display: flex; flex-direction: column; gap: 8px; }
.my-addrs .group-title { font-weight: 700; font-size: 18px; }
.map-fold { display: none; position: absolute; left: 50%; transform: translateX(-50%); bottom: 40px; z-index: 5; border: 0; border-radius: 999px; padding: 10px 18px;
  background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); cursor: pointer; }

/* первый заход: «Укажите адрес для заказа» снизу */
.ask-addr { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: 460px; margin: 0 auto;
  background: var(--paper); color: var(--ink); border-radius: 28px; padding: 22px 18px 18px; text-align: center; box-shadow: 0 -4px 40px rgba(0, 0, 0, .22);
  transform: translateY(130%); transition: transform .3s ease; }
.ask-addr.show { transform: none; }
.ask-addr p { margin: 6px 0 2px; }
.ask-addr h2 { margin: 0 0 16px; font-size: 22px; text-wrap: balance; }
.ask-pin { color: var(--salmon); display: flex; justify-content: center; }
.ask-cities { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 4px; }
.ask-cities .chip { min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1.5px solid var(--mist-2); background: var(--card); font: 700 16px/1.2 var(--text); color: var(--ink); }
.ask-cities .chip.on { background: var(--chip-on); color: var(--on-chip-on); border-color: transparent; }
.ask-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ask-btns .btn { width: 100%; }

/* тайный покупатель в профиле гостя */
.psec.mys { background: var(--salmon-soft); border-radius: var(--r); padding: 16px; margin: 12px 0; }
.psec.mys h2 { font-size: 20px; margin: 0 0 6px; }
.psec.mys p { margin: 4px 0; }
.mys-q { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mys-q small { color: var(--muted); }
.mys-b { display: flex; gap: 6px; flex: none; }
.mys-yn { min-width: 56px; min-height: 40px; border-radius: 12px; border: 1px solid var(--field-line); background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.mys-yn.on { background: var(--wasabi-soft); border-color: var(--wasabi-ink); color: var(--wasabi-ink); font-weight: 600; }
.mys-yn.on.no { background: color-mix(in srgb, var(--err) 12%, var(--paper)); border-color: var(--err); color: var(--err-ink); }
.mys-yn:disabled { opacity: .8; cursor: default; }
.psec.mys textarea { width: 100%; box-sizing: border-box; margin: 10px 0 6px; border-radius: 12px; border: 1px solid var(--field-line); padding: 10px; font: inherit; background: var(--paper); color: var(--ink); }
.mys-ph { display: block; margin: 6px 0 12px; color: var(--muted); }
