/* Сайт доставки «Штефан Бургер». Без сборки: один файл, мобильная вёрстка первой. */
/* Цвета — переменными: светлая тема ниже, тёмная — в html[data-theme=dark]. Тему ставит скрипт в <head> (layout.html.twig): по системе или по выбору гостя */
:root { --red: #ce2022; --red-dark: #b11a1c; --ink: #1c1c1e; --muted: #8a8a8f; --soft: #f4f4f6; --line: #e8e8ec; --ok: #1a8f4c; --r: 16px;
  --bg: #fff; --surface: #fff; --pill: #fff; --field: #fff; --line2: #e6e6ea;
  --ink2: #3a3a3e; --ink3: #4a4a4f; --ink4: #55555a; --ink5: #6d6d72; --faint: #a0a0a6; --faint2: #c3c3c9; --off: #d6d6db; --on-off: #fff;
  --skh: rgba(255, 255, 255, .75); --red-t: #ce2022; --on-red: #fff; --red-soft: #fff6f6; --red-soft2: #fcebea; --solid: #1c1c1e; --on-solid: #fff; --hit: #ff8a00;
  --ok-bg: #eef7f1; --ok-line: #d5eadc; --warn-bg: #fff4e5; --warn-t: #8a5300; --amber-bg: #fdeed3; --amber-t: #7a4a05; --bad-bg: #fdecec; --bad-t: #9c1a1c; --bonus-t: #8a5a5a;
  --glass: rgba(255, 255, 255, .92); --toast: rgba(28, 28, 30, .92); --on-toast: #fff; --scrim: rgba(0, 0, 0, .45); --grab: rgba(60, 60, 67, .28);
  --pill-sh: rgba(0, 0, 0, .1); --bar-glow: rgba(206, 32, 34, .42); --lc-back: #fff; --img: none; }
/* Тёмная тема: тёплый графит вместо чёрного, текст — мягкий светлый вместо белого, красный приглушён, красный текст — светлее, чтобы читался */
:root[data-theme=dark] { color-scheme: dark; --skh: rgba(255, 255, 255, .07);
  --bg: #161413; --surface: #1f1c1b; --soft: #2a2725; --pill: #3a3633; --field: #1b1918; --line: #34302d; --line2: #3a3633;
  --ink: #ebe6e1; --ink2: #d0c9c3; --ink3: #c3bcb5; --ink4: #b2aaa3; --ink5: #a59d96; --muted: #938b84; --faint: #7d7670; --faint2: #5f5954; --off: #3f3b38; --on-off: #8a837d;
  --red: #c0292b; --red-dark: #a82426; --red-t: #f0675d; --on-red: #fff6f3; --red-soft: rgba(224, 70, 64, .12); --red-soft2: rgba(224, 70, 64, .18);
  --solid: #ddd6cf; --on-solid: #1b1918; --hit: #d9781a; --ok: #3aa86a;
  --ok-bg: rgba(58, 168, 106, .12); --ok-line: rgba(58, 168, 106, .26); --warn-bg: #2b2217; --warn-t: #e3b56a; --amber-bg: rgba(227, 168, 70, .16); --amber-t: #e9bd72;
  --bad-bg: rgba(224, 70, 64, .14); --bad-t: #f29a92; --bonus-t: #c4a29e;
  --glass: rgba(52, 48, 45, .92); --toast: rgba(58, 54, 51, .96); --on-toast: #f3eee9; --scrim: rgba(0, 0, 0, .62); --grab: rgba(235, 230, 225, .22);
  --pill-sh: rgba(0, 0, 0, .35); --bar-glow: rgba(0, 0, 0, .45); --lc-back: #efeae4; --img: brightness(.84); }
* { box-sizing: border-box; }
/* touch-action: двойное касание не приближает страницу (жест двумя пальцами остаётся) */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; touch-action: manipulation; }
button, a, .opt, .card, .chip { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* Шапка */
.hd { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.hd-in { display: flex; align-items: center; gap: 6px; height: 60px; }
.hd-logo img { height: 34px; width: auto; }
.hd-nav { display: none; gap: 18px; font-size: 14px; color: var(--ink4); margin-left: 8px; }
.hd-nav a:hover, .hd-nav a.on { color: var(--red); }
.hd-sp { flex: 1; }
.hd-phone { display: none; font-weight: 600; white-space: nowrap; }
.hd-where { display: flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 12px; padding: 7px 12px; text-align: left; min-width: 0; max-width: 100%; }
.hd-where b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.hd-where small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; }
.hd-where svg { flex: 0 0 18px; color: var(--red); }
.hd-cart { display: none; align-items: center; gap: 8px; background: var(--red); color: var(--on-red); border-radius: 12px; padding: 10px 16px; font-weight: 600; white-space: nowrap; }
.hd-cart:hover { background: var(--red-dark); }
@media (min-width: 900px) {
  .hd-in { height: 72px; gap: 18px; }
  .hd-logo img { height: 42px; }
  .hd-nav, .hd-phone { display: flex; }
  .hd-cart { display: flex; }
  .hd-burger { display: none; }
  .hd-where-d { display: block; }
  .where-row { display: none; }
  .hd-where b { max-width: 260px; }
}

/* Полоса состояния (закрыто, приём остановлен) */
.notice { background: var(--warn-bg); color: var(--warn-t); font-size: 13px; padding: 9px 0; text-align: center; }

/* Чипы категорий */
.chips { position: sticky; top: 60px; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.chips-in { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; max-width: 1240px; margin: 0 auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.chips-in::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 8px 14px; border-radius: 20px; background: var(--soft); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background-color .3s ease, color .3s ease; }
.chip.on { background: var(--red); color: var(--on-red); }
@media (min-width: 900px) { .chips { top: 72px; } }

/* Меню */
.sec { padding-top: 26px; scroll-margin-top: 120px; }
.sec h2 { font-size: 22px; font-weight: 700; }
.sec-note { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--muted); background: var(--soft); border-radius: 8px; padding: 3px 9px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.card { display: flex; flex-direction: column; border-radius: var(--r); cursor: pointer; }
.card-img { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r); background: var(--soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--faint2); }
.badges { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.badge { background: var(--red); color: var(--on-red); font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; border-radius: 8px; padding: 3px 8px; }
.badge.hit { background: var(--hit); }
.badge.new { background: var(--solid); color: var(--on-solid); }
.card-b { padding: 10px 2px 0; display: flex; flex-direction: column; flex: 1; }
.card-n { font-weight: 600; font-size: 15px; line-height: 1.25; }
.card-w { color: var(--muted); font-size: 12px; margin-top: 2px; }
.card-d { color: var(--ink5); font-size: 13px; line-height: 1.3; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-f { margin-top: auto; padding-top: 10px; }
.buy { display: inline-flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 12px; padding: 8px 14px; font-weight: 600; font-size: 15px; }
.buy i { font-style: normal; font-size: 18px; line-height: 1; color: var(--red-t); }
.card:hover .buy { background: var(--red); color: var(--on-red); }
.card:hover .buy i { color: var(--on-red); }
.buy s { color: var(--muted); font-weight: 400; font-size: 13px; }
.card.off { cursor: default; }
.card.off .card-img img { filter: grayscale(1); opacity: .55; }
/* Кнопка с ценой в списке: нажали — блюдо в корзине, кнопка стала счётчиком */
.buy.on { background: var(--red); color: var(--on-red); padding: 0; gap: 0; animation: sb-pop .2s ease both; }
.buy.on em { font-style: normal; width: 38px; height: 37px; display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; transition: transform .12s ease; }
.buy.on em:active { transform: scale(.8); }
.buy.on b { min-width: 22px; text-align: center; font-weight: 600; }
.card:active .buy:not(.on):active { transform: scale(.95); }
.card.off .buy { background: none; padding-left: 0; color: var(--muted); font-weight: 500; font-size: 13px; }
.card.off:hover .buy { background: none; color: var(--muted); }

/* Тексты страниц */
/* Только верх и низ: боковые отступы даёт .wrap, сокращённая запись padding их стирала */
.page { padding-top: 26px; padding-bottom: 10px; }
.page h1 { font-size: 28px; font-weight: 700; margin-bottom: 18px; }
.page h2 { font-size: 19px; margin: 26px 0 10px; }
.page p { margin: 0 0 10px; color: var(--ink2); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { background: var(--soft); border-radius: var(--r); padding: 14px 16px; }
.fact small { display: block; color: var(--muted); font-size: 12px; }
.fact b { font-size: 18px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 400; font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.map { height: 380px; border-radius: var(--r); overflow: hidden; background: var(--soft); margin-top: 14px; z-index: 1; position: relative; }
.cols { display: grid; gap: 22px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; } }

/* Подвал */
.ft { margin-top: 50px; background: var(--soft); padding: 28px 0 90px; font-size: 13px; color: var(--ink4); }
.ft-in { display: grid; gap: 20px; }
.ft b { color: var(--ink); display: block; margin-bottom: 6px; }
.ft a:hover { color: var(--red-t); }
.ft-links a { display: block; padding: 2px 0; }
@media (min-width: 800px) { .ft { padding-bottom: 28px; } .ft-in { grid-template-columns: 1.4fr 1fr 1fr; } }

/* Нижняя кнопка корзины на телефоне */
.bar { position: fixed; left: 12px; right: 12px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 25; display: none; background: var(--red); color: var(--on-red); border-radius: 14px; padding: 14px 18px; font-weight: 600; justify-content: space-between; box-shadow: 0 0 18px var(--bar-glow); }
.bar.on { display: flex; }
.bar.ord { background: var(--solid); color: var(--on-solid); box-shadow: 0 4px 18px rgba(0, 0, 0, .22); }
@media (min-width: 900px) { .bar.on { display: none; } }

/* Окна: появляются и убираются быстро и плавно */
.ov { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0); display: none; transition: background-color .22s ease; }
.ov.on { display: block; }
.ov.in { background: var(--scrim); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 94vh; max-height: calc(100dvh - 44px); background: var(--surface); border-radius: 20px 20px 0 0; display: flex; flex-direction: column; overflow: hidden;
  transform: translate3d(0, 100%, 0); transition: transform .3s cubic-bezier(.22, .9, .32, 1); will-change: transform; }
.ov.in .sheet { transform: translate3d(0, 0, 0); }
.ov:not(.in) .sheet { transition-duration: .2s; transition-timing-function: cubic-bezier(.4, 0, .9, .6); }
.sheet-x { position: absolute; top: 10px; right: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; background: var(--glass); box-shadow: 0 1px 6px rgba(0, 0, 0, .15); color: var(--ink); font-size: 20px; line-height: 36px; text-align: center; transition: transform .12s ease; }
.sheet-x:active { transform: scale(.9); }
.sheet-x.share { right: 54px; display: flex; align-items: center; justify-content: center; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 10px); z-index: 80; background: var(--toast); color: var(--on-toast); border-radius: 12px; padding: 10px 16px; font-size: 14px; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.note { position: fixed; left: 50%; top: calc(6px + env(safe-area-inset-top)); z-index: 90; display: flex; align-items: center; white-space: nowrap; pointer-events: none;
  background: var(--toast); color: var(--on-toast); border-radius: 20px; padding: 6px 13px 6px 8px; font-size: 13px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  opacity: 0; transform: translate3d(-50%, -10px, 0); transition: opacity .2s ease, transform .24s cubic-bezier(.22, .9, .32, 1); }
.note.on { opacity: 1; transform: translate3d(-50%, 0, 0); }
.note span:before { content: '✓'; display: inline-block; width: 16px; height: 16px; margin-right: 7px; border-radius: 50%; background: var(--ok); text-align: center; line-height: 16px; font-size: 10px; }
.note button { color: var(--on-toast); font-weight: 600; background: rgba(255, 255, 255, .16); border-radius: 10px; padding: 7px 12px; white-space: nowrap; }
.sheet-s { overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; overscroll-behavior: contain; }
/* «Ручка» сверху: окно можно стянуть вниз */
.sheet:before { content: ''; position: absolute; top: 7px; left: 50%; z-index: 4; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: var(--grab); pointer-events: none; }
@media (min-width: 900px) { .sheet:before { display: none; } }
.sheet-f { border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); }
@media (min-width: 900px) {
  .sheet.dish, .sheet.small { left: 50%; top: 50%; bottom: auto; right: auto; opacity: 0; transform: translate3d(-50%, -48%, 0) scale(.97); transition: transform .24s cubic-bezier(.22, .9, .32, 1), opacity .2s ease; }
  .ov.in .sheet.dish, .ov.in .sheet.small { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
  .sheet.dish { width: min(980px, 94vw); height: min(640px, 90vh); max-height: none; border-radius: 22px; }
  .sheet.small { width: 480px; max-height: 88vh; border-radius: 22px; }
  .sheet.side { left: auto; top: 0; bottom: 0; right: 0; width: 440px; max-height: none; border-radius: 0; transform: translate3d(100%, 0, 0); }
  .ov.in .sheet.side { transform: translate3d(0, 0, 0); }
}
/* Мелкие отклики: нажатие, превращение кнопки, изменение количества */
.card-img, .btn, .qty, .tocart, .buy, .chip, .hd-cart, .bar, .step button, .qty button { transition: transform .14s ease, background-color .2s ease, color .2s ease; }
.card:active .card-img { transform: scale(.97); }
.btn:active:not([disabled]), .tocart:active, .hd-cart:active, .bar:active, .chip:active { transform: scale(.97); }
.step button:active, .qty button:active { transform: scale(.82); }
.opt .chk { transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
.opt.on .chk { transform: scale(1.06); }
.opt .step { animation: sb-pop .18s ease both; }
.pop { animation: sb-pop .22s cubic-bezier(.22, .9, .32, 1) both; }
.bump { animation: sb-bump .28s ease; }
@keyframes sb-pop { from { opacity: .35; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes sb-bump { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .ov, .sheet, .note, .toast, .card-img img, .chip { transition-duration: .01s !important; }
  .pop, .bump, .opt .step { animation: none !important; }
}

/* Карточка блюда */
.dish-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
/* Фото квадратные: блок на всю ширину экрана и той же высоты — без полей по бокам и без обрезки */
.dish-img { background: var(--soft); position: relative; height: min(100vw, 62vh); height: min(100vw, 62dvh); }
.dish-img img { width: 100%; height: 100%; object-fit: contain; }
.sheet.dish.noimg .dish-pad { padding-top: 56px; }
.dish-pad { padding: 16px 16px 6px; }
.dish-pad h1 { font-size: 22px; font-weight: 700; padding-right: 30px; }
.dish-w { color: var(--muted); font-size: 13px; margin-top: 2px; }
.dish-d { color: var(--ink3); margin-top: 8px; }
.vars { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.var { padding: 8px 14px; border-radius: 12px; background: var(--soft); font-weight: 500; }
.var.on { background: var(--solid); color: var(--on-solid); }
.grp { margin-top: 18px; }
.grp-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.grp-h b { font-size: 16px; }
.grp-h small { color: var(--muted); font-size: 12px; }
.grp-h small.req { color: var(--red-t); font-weight: 600; }
.grp-h small.done { color: var(--ok); }
.opt { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt-n { flex: 1; }
.opt-p { color: var(--muted); font-size: 13px; white-space: nowrap; }
.opt.dis { opacity: .4; cursor: default; }
.chk { flex: 0 0 22px; width: 22px; height: 22px; border: 2px solid var(--faint2); border-radius: 7px; display: flex; align-items: center; justify-content: center; color: var(--on-red); font-size: 14px; }
.chk.round { border-radius: 50%; }
.opt.on .chk { background: var(--red); border-color: var(--red); }
.opt.on .chk:after { content: '✓'; }
.step { display: inline-flex; align-items: center; background: var(--soft); border-radius: 10px; }
.step button { width: 32px; height: 32px; font-size: 18px; color: var(--red-t); }
.step span { min-width: 20px; text-align: center; font-weight: 600; }
.kbju { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 18px 0 8px; background: var(--soft); border-radius: 12px; padding: 10px; text-align: center; }
.kbju b { display: block; }
.kbju small { color: var(--muted); font-size: 11px; }
.kbju-n { color: var(--muted); font-size: 11px; text-align: right; margin-bottom: 8px; }
.dish-f { display: flex; gap: 10px; align-items: stretch; }
.dish-f .btn { min-height: 54px; padding-top: 0; padding-bottom: 0; font-size: 17px; }
.qty { flex: 1; display: flex; align-items: center; justify-content: space-between; min-height: 54px; background: var(--red); color: var(--on-red); border-radius: 14px; font-weight: 600; font-size: 17px; }
.qty button { width: 64px; height: 54px; font-size: 26px; color: var(--on-red); }
.tocart { position: relative; flex: 0 0 54px; width: 54px; min-height: 54px; background: var(--soft); border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.tocart i { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); color: var(--on-red); font-size: 11px; font-style: normal; font-weight: 700; line-height: 18px; text-align: center; }
.btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: var(--on-red); border-radius: 14px; padding: 14px 16px; font-weight: 600; font-size: 16px; text-align: center; }
.btn:hover { background: var(--red-dark); }
.btn[disabled] { background: var(--off); color: var(--on-off); cursor: default; }
.btn.ghost { background: var(--soft); color: var(--ink); }
@media (min-width: 900px) {
  .sheet.dish { display: grid; grid-template-columns: 52% minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .dish-scroll { display: contents; }
  .dish-img { grid-column: 1; grid-row: 1 / 3; height: 100%; }
  .sheet.dish.noimg { grid-template-columns: minmax(0, 1fr); width: min(560px, 94vw); }
  .sheet.dish.noimg .dish-body, .sheet.dish.noimg .dish-f { grid-column: 1; }
  .sheet.dish.noimg .dish-pad { padding-top: 30px; }
  .dish-body { grid-column: 2; grid-row: 1; overflow-y: auto; }
  .dish-f { grid-column: 2; grid-row: 2; padding: 14px 24px; }
  .dish-pad { padding: 26px 24px 8px; }
}

/* Корзина */
.cart-h { padding: 18px 16px 8px; }
.cart-h h2 { font-size: 22px; }
.cart-sec { margin: 6px 16px 6px; font-size: 12px; color: var(--muted); }
.cart-ord { display: flex; gap: 10px; align-items: center; margin: 0 16px 8px; background: var(--soft); border-radius: 14px; padding: 10px 12px; }
.cart-ord-i { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--red-soft2); color: var(--red-t); display: flex; align-items: center; justify-content: center; }
.cart-ord-i svg { width: 18px; height: 18px; fill: currentColor; }
.cart-ord-b { flex: 1; min-width: 0; }
.cart-ord-b b { display: block; font-size: 14px; }
.cart-ord-b small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-ord em { font-style: normal; font-size: 11px; font-weight: 600; background: var(--amber-bg); color: var(--amber-t); border-radius: 9px; padding: 3px 8px; white-space: nowrap; }
.cart-ord i { font-style: normal; color: var(--muted); font-size: 18px; }
.cart-empty { padding: 36px 24px 8px; }
.cart-empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.cart-all { display: block; margin: 8px auto 0; color: var(--red-t); font-size: 14px; font-weight: 600; padding: 8px 12px; }
.cart-where { display: flex; gap: 10px; align-items: center; margin: 4px 16px 10px; background: var(--soft); border-radius: 14px; padding: 10px 12px; text-align: left; width: calc(100% - 32px); }
.cart-where b { display: block; font-size: 14px; }
.cart-where small { color: var(--muted); font-size: 12px; }
.cart-where em { font-style: normal; color: var(--red-t); font-size: 13px; margin-left: auto; white-space: nowrap; }
.line { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.line-img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; background: var(--soft); overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-b { flex: 1; min-width: 0; }
.line-n { font-weight: 600; }
.line-m { color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 2px; }
.line-warn { color: var(--red-t); font-size: 12px; margin-top: 2px; }
.line-f { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.line-f b { white-space: nowrap; }
.empty { padding: 50px 24px; text-align: center; color: var(--muted); }
.free { margin: 12px 16px 0; background: var(--ok-bg); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.free i { display: block; height: 5px; border-radius: 3px; background: var(--ok-line); margin-top: 7px; overflow: hidden; }
.free i u { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.sum { padding: 12px 16px 4px; }
.sum div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--ink3); }
.sum div.t { color: var(--ink); font-weight: 700; font-size: 17px; padding-top: 8px; }
.warn { margin: 8px 16px 0; background: var(--warn-bg); color: var(--warn-t); border-radius: 12px; padding: 9px 12px; font-size: 13px; }
.hint { color: var(--muted); font-size: 12px; text-align: center; margin-top: 8px; }

/* Доставка или самовывоз */
.tabs { display: flex; background: var(--soft); border-radius: 14px; padding: 4px; margin: 16px; }
.tabs button { flex: 1; padding: 10px; border-radius: 11px; font-weight: 600; color: var(--ink5); }
.tabs button.on { background: var(--pill); color: var(--ink); box-shadow: 0 1px 4px var(--pill-sh); }
/* Вкладки корзины: белая плашка переезжает между «Самовывоз» и «Доставка» */
.tabs.slide { position: relative; }
.tabs.slide button { position: relative; z-index: 1; transition: color .2s ease; }
.tabs.slide button.on { background: none; box-shadow: none; }
.tabs-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 11px; background: var(--pill); box-shadow: 0 1px 4px var(--pill-sh); }
.tabs-pill.r { transform: translateX(100%); }
.pane { padding: 0 16px 16px; }
/* 16px: при меньшем шрифте iPhone сам приближает страницу, когда ставишь курсор в поле */
.inp { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; outline: none; background: var(--field); color: var(--ink); }
.inp:focus { border-color: var(--red); }
.sug { margin-top: 6px; }
.sug button { display: block; width: 100%; text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.sug button small { display: block; color: var(--muted); font-size: 12px; }
.res { margin-top: 12px; border-radius: 12px; padding: 12px 14px; font-size: 14px; background: var(--ok-bg); }
.res.bad { background: var(--bad-bg); color: var(--bad-t); }
.res b { display: block; margin-bottom: 2px; }
.place { display: flex; gap: 12px; align-items: flex-start; background: var(--soft); border-radius: 14px; padding: 14px; }
.place svg { color: var(--red-t); flex: 0 0 22px; }

/* Вход, оформление, страница заказа */
.fld { margin-top: 12px; }
.fld label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pays { display: grid; gap: 8px; margin-top: 6px; }
.pay { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; text-align: left; transition: border-color .15s ease, background-color .15s ease; }
.pay.on { border-color: var(--red); background: var(--red-soft); }
.pay .chk { border-radius: 50%; }
.pay.on .chk { background: var(--red); border-color: var(--red); }
.pay.on .chk:after { content: '✓'; }
.call { text-align: center; padding: 6px 0 4px; }
.call-num { display: block; font-size: 26px; font-weight: 700; letter-spacing: .01em; margin: 10px 0 12px; }
.call p { color: var(--ink3); margin-bottom: 8px; }
.call-wait { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 12px; }
.spin { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: sb-spin .8s linear infinite; }
@keyframes sb-spin { to { transform: rotate(360deg); } }
.err { color: var(--red-t); font-size: 13px; margin-top: 8px; min-height: 18px; }
.ord-n { color: var(--muted); font-size: 13px; }
.ord h1 { margin: 2px 0 6px; }
.ord-text { color: var(--ink3); min-height: 20px; }
.ord-mute { color: var(--muted); font-size: 13px; }
.ord-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 16px; }
.ord-step i { display: block; height: 5px; border-radius: 3px; background: var(--line); transition: background-color .4s ease; }
.ord-step.on i { background: var(--ok); }
.ord-step span { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.ord-step.on span { color: var(--ink); }
.ord-lines { margin-top: 18px; }
.ord-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ord-line small { display: block; color: var(--muted); font-size: 12px; }
.ord-line b { white-space: nowrap; }
.ord-line.t { border-bottom: 0; font-size: 17px; font-weight: 700; }
.ord-steps[hidden] { display: none; }
.sheet.small .sheet-f .btn, .sheet.side .sheet-f .btn { width: 100%; }
.hd-nav a { white-space: nowrap; }

/* Шапка: значки меню, поиска и профиля; на телефоне способ получения — отдельной строкой под шапкой */
.hd-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--ink); transition: background-color .15s ease, transform .12s ease; }
.hd-ic:active { transform: scale(.9); background: var(--soft); }
.hd-burger { margin-left: -8px; }
.hd-me { width: auto; min-width: 40px; padding: 0 9px; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.hd-me.in { color: var(--red-t); }
.hd-me span { display: none; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1150px) { .hd-me span:not(:empty) { display: block; } }
.hd-where-d { display: none; min-width: 0; }
.where-row { padding-top: 10px; padding-bottom: 2px; }
.where-row .hd-where { width: 100%; padding: 9px 12px; }
.where-row .hd-where b { max-width: 78vw; font-size: 14px; }
.where-row .hd-where small { font-size: 12px; }
@media (min-width: 900px) { .hd-in { gap: 14px; } }

/* Сторис */
.stories { padding: 12px 0 2px; }
.stories-in { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 6px; scrollbar-width: none; max-width: 1240px; margin: 0 auto; -webkit-overflow-scrolling: touch; }
.stories-in::-webkit-scrollbar { display: none; }
/* Превью — вертикальные прямоугольники со скруглением; у непросмотренных красная рамка */
.story { flex: 0 0 auto; width: 94px; transition: transform .14s ease; }
.story:active { transform: scale(.95); }
.story-ring { display: block; width: 94px; border-radius: 16px; padding: 2px; border: 2px solid var(--red); background: var(--bg); }
.story.seen .story-ring { border-color: var(--off); }
/* Картинка превью видна целиком, без обрезки */
.story-in { display: block; position: relative; overflow: hidden; border-radius: 11px; aspect-ratio: 400 / 512; background: var(--soft); }
.story-in img { position: relative; width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 900px) { .story { width: 118px; } .story-ring { width: 118px; } }
.sv { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s ease; touch-action: none; }
.sv.on { opacity: 1; }
.sv-box { position: relative; width: 100%; height: 100%; max-width: 480px; max-height: 100dvh; overflow: hidden; background: #111; transition: transform .2s ease; }
@media (min-width: 700px) { .sv { background: rgba(0, 0, 0, .86); } .sv-box { height: min(92vh, 860px); border-radius: 18px; } }
.sv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv-bars { position: absolute; left: 8px; right: 8px; top: calc(8px + env(safe-area-inset-top)); display: flex; gap: 4px; z-index: 2; }
.sv-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .38); overflow: hidden; }
.sv-bars u { display: block; height: 100%; width: 0; background: #fff; }
.sv-x { position: absolute; right: 8px; top: calc(20px + env(safe-area-inset-top)); z-index: 3; width: 40px; height: 40px; color: #fff; font-size: 28px; line-height: 40px; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.sv-btn { position: absolute; left: 16px; right: 16px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 3; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 15px; font-weight: 600; font-size: 16px; text-align: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.sv-btn:active { transform: scale(.98); }
.sv-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; max-height: 78%; overflow-y: auto; background: var(--surface); border-radius: 20px 20px 0 0; padding: 22px 18px calc(24px + env(safe-area-inset-bottom)); transform: translate3d(0, 100%, 0); transition: transform .26s cubic-bezier(.22, .9, .32, 1); white-space: pre-line; color: var(--ink2); }
.sv-text.on { transform: none; }
.sv-text b { display: block; font-size: 19px; color: var(--ink); margin-bottom: 10px; white-space: normal; }

/* Меню сайта, профиль, поиск */
.mn { padding: 30px 16px 14px; }
.mn-main a { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; font-size: 19px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mn-main a:after { content: '›'; color: var(--faint2); font-weight: 400; font-size: 22px; line-height: 1; }
.mn-main a.sm { font-size: 16px; font-weight: 500; }
.mn-c { margin-top: 16px; background: var(--soft); border-radius: var(--r); padding: 14px 16px; font-size: 14px; }
.mn-c b { display: block; font-size: 15px; }
.mn-c small { display: block; color: var(--muted); margin-top: 1px; }
.mn-c .tel { display: inline-block; margin-top: 10px; font-size: 18px; font-weight: 700; }
.mn-soc { display: flex; gap: 8px; margin-top: 12px; }
.mn-soc a { flex: 1; background: var(--pill); border-radius: 12px; padding: 10px; text-align: center; font-weight: 600; font-size: 14px; }
.mn-legal { margin-top: 14px; font-size: 11px; line-height: 1.6; color: var(--faint); }
.mn-legal a { display: inline-block; margin-right: 12px; text-decoration: underline; text-decoration-color: var(--off); }
.acc-o { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acc-o b { display: block; font-size: 15px; }
.acc-o small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.acc-o span:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.acc-o em { display: block; font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }
.sr-list { margin-top: 6px; }
.sr-c { margin: 16px 0 2px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sr-c:first-child { margin-top: 8px; }
.sr-i { display: flex; align-items: center; gap: 12px; padding: 8px 0; width: 100%; text-align: left; border-bottom: 1px solid var(--line); }
.sr-i img, .sr-i i { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--soft); }
.sr-i span { flex: 1; min-width: 0; font-weight: 500; }
.sr-i small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.sr-i b { white-space: nowrap; }

/* Текстовые страницы и мелкие ссылки внизу */
.doc { max-width: 820px; }
.doc-b { color: var(--ink2); line-height: 1.55; }
.doc-b h1 { font-size: 20px; margin: 22px 0 10px; }
.doc-b h2 { font-size: 18px; margin: 22px 0 6px; }
.doc-b h3 { font-size: 16px; margin: 18px 0 6px; }
.doc-b p { margin: 0 0 10px; }
.doc-b ul, .doc-b ol { margin: 0 0 12px; padding-left: 20px; }
.doc-b a { color: var(--red-t); }
.doc-b .btn-link { display: inline-block; background: var(--red); color: var(--on-red); border-radius: 14px; padding: 13px 22px; font-weight: 600; margin-top: 6px; }
.ft-legal { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* Кнопка приложения в меню, ссылка на карту, кнопки магазинов */
.mn-app { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; background: var(--solid); color: var(--on-solid); border-radius: 14px; padding: 14px; font-weight: 600; font-size: 16px; transition: transform .12s ease; }
.mn-app:active { transform: scale(.98); }
.mn-c em { display: block; font-style: normal; color: var(--red-t); font-size: 13px; margin-top: 6px; }
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; margin-top: 18px; }
.stores a { background: var(--solid); color: var(--on-solid); border-radius: 14px; padding: 10px 14px 11px; font-weight: 600; font-size: 17px; display: flex; align-items: center; gap: 10px; line-height: 1.2; }
.stores small { display: block; font-weight: 400; font-size: 11px; opacity: .7; }
.stores .st-ic { width: 26px; height: 26px; flex: none; }

/* Меню сайта выезжает слева */
.sheet.left { left: 0; right: auto; top: 0; bottom: 0; width: min(86vw, 370px); max-height: none; border-radius: 0 20px 20px 0; padding-top: env(safe-area-inset-top); transform: translate3d(-102%, 0, 0); opacity: 1; }
.ov.in .sheet.left { transform: translate3d(0, 0, 0); }
.sheet.left:before { display: none; }
.sheet.left .mn { padding-top: 16px; }
/* Крестик — в одной строке с логотипом: меню целиком влезает и под плашкой Safari «Скачать приложение» */
.sheet.left > .sheet-x { top: calc(env(safe-area-inset-top) + 19px); right: 12px; }

/* Карточки на страницах «Бонусная система» и подобных */
.doc-b .facts { margin-bottom: 14px; }
.tiles { display: grid; gap: 12px; margin: 14px 0; }
@media (min-width: 800px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.tile i { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: var(--on-red); font-style: normal; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.tile b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 4px; }
.doc-b .tile p { margin: 0; color: var(--ink4); font-size: 14px; line-height: 1.45; }

/* Выбор адреса на телефоне: окно во весь экран, поле наверху, подсказки под ним */
@media (max-width: 899px) {
  .sheet.tall { height: calc(100dvh - 44px); }
  /* Белое продолжение под окном: когда открыта клавиатура, под окном не просвечивает страница (Safari с прозрачной панелью) */
  .sheet:not(.left) { box-shadow: 0 700px 0 0 var(--surface); }
  /* Открыта клавиатура: затемнение подогнано под видимую часть экрана (site.js, fitKeyboard), окно — во всю её высоту */
  /* Открыта клавиатура: окно не меняет размер, только возвращается на место, если Safari сдвинул экран (site.js, fitKeyboard) */
  .ov.kb .sheet-s { padding-bottom: var(--kb, 0px); }
  /* Полоса между окном и клавиатурой — сплошь белая: страницу на это время прячем (невидимое поле для клавиатуры не трогаем) */
  body.kb-open > :not(.ov):not(.kb-proxy) { visibility: hidden; }
}
@media (min-width: 900px) { .sheet.small.tall { min-height: 420px; } }
.pane > .btn { width: 100%; margin-top: 6px; }
.sug button:active { background: var(--soft); }
.sug button { font-size: 16px; padding: 12px 6px; }

/* Поле адреса с крестиком и поля «квартира, подъезд, этаж, домофон» */
.inp-w { position: relative; }
.inp-w .inp { padding-right: 46px; }
.inp-x { position: absolute; right: 6px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; font-size: 22px; line-height: 36px; text-align: center; color: var(--muted); }
.inp-x:active { background: var(--soft); }
.inp-x[hidden] { display: none; }
.det { margin-bottom: 14px; }
.pane > .res + .det { margin-top: 2px; }

/* Содержимое вкладки «Доставка / Самовывоз» меняется на месте и проявляется плавно */
.pane.swap { animation: sb-swap .22s ease both; }
@keyframes sb-swap { from { opacity: 0; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: none; } }
.tabs button { transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
@media (prefers-reduced-motion: reduce) { .pane.swap { animation: none; } }

/* Бонусы в профиле */
.acc-b { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--red-soft); border-radius: var(--r); padding: 12px 16px; margin: 2px 0 14px; }
.acc-b small { display: block; color: var(--bonus-t); font-size: 12px; }
.acc-b b { font-size: 24px; color: var(--red-t); }
.acc-b em { font-style: normal; font-size: 13px; color: var(--red-t); white-space: nowrap; }

/* Вошедший гость: под значком профиля — число бонусов */
.hd-me { position: relative; }
/* Бонусы — маленькой плашкой в правом верхнем углу значка: значки поиска и профиля стоят ровно в линию */
.hd-me-b { position: absolute; left: calc(50% + 4px); top: 1px; min-width: 18px; padding: 0 5px; height: 15px; border-radius: 8px; background: var(--red); color: var(--on-red); font-style: normal; font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; white-space: nowrap; box-shadow: 0 0 0 2px var(--bg); }
.hd-me-b[hidden] { display: none; }
@media (min-width: 1150px) { .hd-me-b { left: 24px; } }

/* Профиль: бонусная карта (переворачивается по касанию), данные, плитки, заказы */
.pf { padding: 0 16px 16px; }
.lc { display: block; width: 100%; height: 200px; perspective: 1100px; text-align: left; color: #fff; -webkit-tap-highlight-color: transparent; }
.lc-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3, .8, .3, 1); }
.lc.flip .lc-in { transform: rotateY(180deg); }
.lc-f, .lc-b { position: absolute; inset: 0; border-radius: 20px; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 8px 22px rgba(206, 32, 34, .26); }
.lc-f { padding: 18px 18px 16px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(168deg, #ce2022 0%, #ce2022 46%, #d64547 46.3%, #cf2325 100%); }
.lc-b { transform: rotateY(180deg); background: var(--lc-back); color: #1c1c1e; border: 2px solid var(--red); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px 14px; }
.lc-top, .lc-bot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lc-bot { align-items: flex-end; }
.lc small { display: block; font-size: 13px; opacity: .9; }
.lc-top b { display: block; font-size: 34px; line-height: 1.1; font-weight: 700; }
.lc-bot b { display: block; font-size: 26px; line-height: 1.1; }
.lc-brand { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 20px; line-height: 1.05; text-align: right; max-width: 110px; }
.lc-btn { display: flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .18); border-radius: 12px; padding: 9px 13px; font-weight: 600; font-size: 14px; }
.lc-codes { display: flex; align-items: center; gap: 14px; width: 100%; }
.lc-bar { flex: 1; height: 92px; max-width: 300px; margin: 0 auto; }
.lc-bar svg { display: block; width: 100%; height: 100%; }
.lc-num { font-size: 15px; letter-spacing: .12em; font-weight: 600; }
.lc-b small { color: #8a8a8f; font-size: 11px; text-align: center; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .lc-in { transition-duration: .01s; } }
.pf-i { margin-top: 14px; background: var(--soft); border-radius: var(--r); padding: 4px 16px; }
.pf-r { padding: 10px 0; border-bottom: 1px solid var(--line2); }
.pf-r:last-child { border-bottom: 0; }
.pf-r small { display: block; color: var(--muted); font-size: 12px; }
.pf-r b { font-weight: 500; font-size: 16px; }
.pf-bi { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--ink); }
.pf-bi svg { width: 18px; height: 18px; color: var(--red-t); }
.pf-bi svg:last-child { width: 16px; height: 16px; color: var(--faint); margin-left: -2px; }
.pf-ls { margin-top: 12px; background: var(--soft); border-radius: var(--r); padding: 0 14px; }
.pf-l { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line2); color: var(--ink); transition: opacity .12s ease; }
.pf-l:last-child { border-bottom: 0; }
.pf-l:active { opacity: .6; }
.pf-l i { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--pill); color: var(--red-t); display: flex; align-items: center; justify-content: center; }
.pf-l i svg { width: 20px; height: 20px; }
.pf-l.star i { background: var(--red); color: var(--on-red); }
.pf-l span { flex: 1; min-width: 0; }
.pf-l b { display: block; font-size: 16px; font-weight: 600; }
.pf-l small { display: block; color: var(--muted); font-size: 13px; }
.pf-l > svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--faint); }
.ords { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ords::-webkit-scrollbar { display: none; }
.ord-c { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.ord-c a { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ord-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ord-h b { font-size: 17px; }
.ord-h em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink5); background: var(--soft); border-radius: 10px; padding: 3px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-p { display: flex; gap: 6px; min-height: 48px; }
.ord-p img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--soft); }
.ord-c a > small { color: var(--muted); font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ord-s { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: auto; }
.ord-s small { color: var(--muted); font-size: 12px; }
.ord-c .btn { padding: 11px; font-size: 15px; }

/* Подсказки адреса: совпавшая часть жирным */
.sug button span { display: block; }
.sug button b { font-weight: 700; }

/* Переход между страницами: новая мягко проявляется, старая гаснет */
body { animation: sb-page .24s ease both; }
@keyframes sb-page { from { opacity: .35; } to { opacity: 1; } }
body.leaving { opacity: 0; transition: opacity .16s ease; }
@media (prefers-reduced-motion: reduce) { body { animation: none; } }

/* Сохранённые адреса; бургер-меню только на телефоне */
.sug-h { font-size: 12px; color: var(--muted); padding: 10px 6px 2px; text-transform: uppercase; letter-spacing: .04em; }
.pf-ar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pf-ar b { display: block; font-weight: 500; font-size: 15px; }
.pf-ar small { display: block; color: var(--muted); font-size: 12px; min-height: 2px; }
.pf-ar button { flex: 0 0 32px; height: 32px; border-radius: 50%; color: var(--faint); font-size: 20px; line-height: 32px; }
.pf-ar button:active { background: var(--soft); }
@media (min-width: 900px) { .hd-ic.hd-burger { display: none; } }

/* Встроенная форма оплаты на странице заказа */
.ord-pay { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r); padding: 6px; min-height: 120px; background: var(--surface); }

/* Заголовок страницы для поисковиков и экранных дикторов: на экране не виден */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Профиль: неприметная ссылка на удаление аккаунта под кнопкой «Выйти» */
.pf-del { display: block; text-align: center; padding: 6px 0 4px; font-size: 13px; color: var(--faint); }

/* Оформление заказа: списание бонусов */
.bns[hidden] { display: none; }
.bns .pay { width: 100%; }
/* Своя форма оплаты на странице заказа */
#pf.pf { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.pf-sum { font-size: 15px; margin-bottom: 12px; }
.pf-sum b { font-size: 20px; margin-left: 4px; }
.pf-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.pf-way { border: 1px solid var(--line); border-radius: 12px; padding: 11px 6px; font-weight: 600; background: var(--surface); }
.pf-way.on { border-color: var(--red); color: var(--red-t); background: var(--red-soft); }
.pf-card { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pf-card[hidden] { display: none; }
.pf-f { display: block; font-size: 12px; color: var(--muted); }
.pf-f input { display: block; width: 100%; margin-top: 4px; font-size: 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: var(--ink); }
.pf-num { grid-column: 1 / -1; }
.pf-err { color: var(--red-t); font-size: 14px; margin-bottom: 10px; }
.pf-go { width: 100%; }
.pf-note { margin-top: 8px; text-align: center; }

/* Профиль → «Добавить адрес» */
.pf-add { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 0; border: 0; background: none; color: var(--red-t); font-weight: 600; font-size: 15px; cursor: pointer; text-align: left; }
.pf-add span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--red-soft2); font-size: 18px; line-height: 1; }

/* Вторая страница в шторке корзины (адрес доставки): въезжает справа поверх корзины */
.sheet .sub { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; background: var(--surface); transform: translate3d(100%, 0, 0); transition: transform .3s cubic-bezier(.22, .9, .32, 1); }
.sheet .sub.in { transform: translate3d(0, 0, 0); }
.sheet .sub .cart-h { padding-top: 46px; }
.sheet-back { position: absolute; top: 12px; left: 10px; z-index: 3; display: flex; align-items: center; gap: 2px; height: 36px; padding: 0 12px 0 6px; border-radius: 18px; background: var(--glass); font-weight: 600; font-size: 15px; color: var(--ink); }
.sheet-back svg { width: 22px; height: 22px; }
.sheet-back:active { opacity: .6; }
.sheet.subbed > .sheet-x { visibility: hidden; }

/* Поля-числа (подъезд, этаж) без стрелок-счётчиков */
.inp[type=number] { -moz-appearance: textfield; appearance: textfield; }
.inp[type=number]::-webkit-outer-spin-button, .inp[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ───────── Тёмная тема: то, что не решается переменными ───────── */
/* Фото блюд студийные, на светлом фоне: в тёмной теме чуть приглушаем, чтобы не слепили */
.card-img img, .dish-img img, .line-img img, .sr-i img, .ord-p img, .story-in img { filter: var(--img); }
[data-theme=dark] .card.off .card-img img { filter: grayscale(1) brightness(.8); }
[data-theme=dark] .hd-logo img { filter: invert(.9) sepia(.12); }
[data-theme=dark] .sheet { box-shadow: 0 -1px 0 rgba(255, 255, 255, .04); }
[data-theme=dark] .lc-f { background: linear-gradient(168deg, #b8282a 0%, #b8282a 46%, #c03a3c 46.3%, #b32a2c 100%); color: #fff6f3; }
[data-theme=dark] .lc-f, [data-theme=dark] .lc-b { box-shadow: 0 8px 22px rgba(0, 0, 0, .4); }
[data-theme=dark] .inp::placeholder, [data-theme=dark] .pf-f input::placeholder { color: var(--faint); }
/* Карта OpenStreetMap: тёмные подложки, зоны доставки и метки остаются цветными */
[data-theme=dark] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.86) saturate(.6); }
[data-theme=dark] .leaflet-container { background: #1b1918; }
[data-theme=dark] .leaflet-control-attribution { background: rgba(31, 28, 27, .8) !important; color: var(--muted); }
[data-theme=dark] .leaflet-control-attribution a { color: var(--ink4); }
[data-theme=dark] .leaflet-bar a { background: var(--surface); color: var(--ink); border-bottom-color: var(--line); }
[data-theme=dark] [class*="ground-pane"] { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.86) saturate(.6); }

/* Переключатель темы: в меню сайта и в подвале */
.thm { display: inline-flex; background: var(--soft); border-radius: 12px; padding: 3px; gap: 2px; }
.thm button { padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--ink5); transition: background-color .2s ease, color .2s ease; }
.thm button.on { background: var(--pill); color: var(--ink); box-shadow: 0 1px 3px var(--pill-sh); }
.thm-w { margin-top: 14px; }
.thm-w small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ft .thm { background: var(--bg); }
/* Смена темы — плавно, без вспышки */
html.thm-anim, html.thm-anim * { transition: background-color .3s ease, color .3s ease, border-color .3s ease !important; }
.ft .thm { background: var(--line); }
[data-theme=dark] .ft .thm button.on { background: #4a4542; }
/* Форма оплаты ЮKassa в тёмной теме — светлая карточка того же тона, что и фон формы */
[data-theme=dark] .ord-pay { background: #efeae4; border-color: transparent; color: #1c1c1e; }

/* СБП на странице заказа: QR из ссылки НСПК, кнопка банка, ожидание оплаты */
.pf-qr { margin-top: 14px; text-align: center; }
.pf-qr-t { font-size: 15px; font-weight: 500; margin-bottom: 12px; }
.pf-qr-img { width: 220px; height: 220px; margin: 0 auto; background: #fff; border-radius: 12px; padding: 8px; }
.pf-qr-img svg { width: 100%; height: 100%; display: block; }
.pf-qr-bank { margin-top: 14px; display: none; }
@media (hover: none) and (pointer: coarse) { .pf-qr-bank { display: flex; } .pf-qr-img { width: 180px; height: 180px; } }
.pf-qr-wait { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pf-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--red-t); animation: pf-spin .8s linear infinite; display: inline-block; }
@keyframes pf-spin { to { transform: rotate(360deg); } }
.pf-qr-back { margin-top: 10px; background: none; border: 0; color: var(--muted); font-size: 14px; text-decoration: underline; cursor: pointer; }
.pf-cardnote { margin-top: 10px; }

/* История бонусов в профиле */
.bh-t { width: 100%; background: none; border: 0; cursor: pointer; font: inherit; }
.bh-t.on > svg:last-child { transform: rotate(90deg); }
.bh-box { background: var(--soft); border-radius: var(--r); padding: 2px 14px 8px; margin-top: 8px; }
.bh-box[hidden] { display: none; }
.bh-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.bh-r:last-child { border-bottom: 0; }
.bh-r b { display: block; font-weight: 500; font-size: 15px; }
.bh-r small { display: block; color: var(--muted); font-size: 12px; }
.bh-a { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 16px !important; font-weight: 600 !important; }
.bh-a.plus { color: var(--ok); } .bh-a.minus { color: var(--ink2); }
.bh-more { width: 100%; background: none; border: 0; color: var(--red-t); font-weight: 600; padding: 10px 0 4px; cursor: pointer; font: inherit; }
.bh-more[hidden] { display: none; }

/* Корзина: «Добавьте к заказу» — до 4 карточек в ряд, на телефоне прокрутка вбок */
.combo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 2px 16px 12px; }
@media (max-width: 560px) { .combo { display: flex; overflow-x: auto; scrollbar-width: none; } .combo::-webkit-scrollbar { display: none; } .combo-c { flex: 0 0 120px; } }
.combo-c { display: flex; flex-direction: column; align-items: stretch; gap: 4px; background: var(--soft); border: 0; border-radius: var(--r); padding: 8px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); transition: transform .12s ease; }
.combo-c:active { transform: scale(.97); }
.combo-i { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--img); display: block; }
.combo-i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.combo-n { font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.combo-p { font-size: 14px; color: var(--red-t); }

/* «Пригласить друга» в профиле */
.rf { margin-top: 12px; background: var(--soft); border-radius: var(--r); padding: 14px; }
.rf[hidden] { display: none; }
.rf-h b { display: block; font-size: 17px; }
.rf-h small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.rf-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 8px; background: var(--surface); border-radius: 12px; padding: 10px 12px; }
.rf-code small { display: block; color: var(--muted); font-size: 12px; }
.rf-code b { font-size: 24px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.rf-btn { background: var(--red); color: var(--on-red); border: 0; border-radius: 10px; padding: 9px 14px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.rf-btn.ghost { width: 100%; background: var(--pill); color: var(--ink); }
.rf-btn[disabled] { opacity: .6; }
.rf-st { margin-top: 10px; font-size: 14px; color: var(--ink2); }
.rf-ok { margin-top: 10px; font-size: 14px; color: var(--ok); }
.rf-enter { margin-top: 12px; border-top: 1px solid var(--line2); padding-top: 12px; }
.rf-enter small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.rf-row { display: flex; gap: 8px; } .rf-row .inp { flex: 1; text-transform: uppercase; }
.rf-err { color: var(--red-t); font-size: 13px; margin-top: 6px; } .rf-err[hidden] { display: none; }

/* Боковое меню (новое): логотип, карточка пунктов, адрес с режимом работы, плитки связи, приложение */
.mn-logo { display: block; margin: 0 52px 14px 0; } .mn-logo img { height: 42px; width: auto; display: block; }
[data-theme=dark] .mn-logo img { filter: invert(.9) sepia(.12); }
.mn-card { background: var(--soft); border-radius: 18px; overflow: hidden; }
.mn-r { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line2); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.mn-r:last-child { border-bottom: 0; }
.mn-r:active { opacity: .7; }
.mn-r i { color: var(--red-t); display: flex; } .mn-r i svg { width: 22px; height: 22px; }
.mn-r span { flex: 1; font-size: 17px; font-weight: 600; }
.mn-r > svg:last-child { width: 18px; height: 18px; color: var(--faint2); }
.mn-val { font-size: 14px; font-weight: 500; color: var(--muted); }
.mn-pill { font-style: normal; font-size: 13px; font-weight: 700; color: var(--red-t); background: var(--red-soft); padding: 2px 9px; border-radius: 10px; }
.mn-pill[hidden] { display: none; }
.mn-addr { margin-top: 12px; background: var(--soft); border-radius: 18px; padding: 14px 16px; }
.mn-a1 { display: flex; gap: 12px; align-items: flex-start; } .mn-a1 > i { color: var(--muted); display: flex; margin-top: 1px; }
.mn-a1 b { display: block; font-size: 15px; } .mn-a1 small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.mn-st { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.mn-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 8px; }
.mn-dot.ok { background: #3fb67f; } .mn-dot.warn { background: #e8a93a; } .mn-dot.bad { background: var(--red-t); }
.mn-sw { font-weight: 600; } .mn-sw.ok { color: #2f9e6a; } .mn-sw.warn { color: #c2861a; } .mn-sw.bad { color: var(--red-t); }
.mn-ya { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line2); color: var(--red-t); font-weight: 600; font-size: 14px; }
.mn-tiles { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mn-tiles a { background: var(--soft); border-radius: 14px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); }
.mn-tiles a small { font-size: 12px; color: var(--muted); }
.mn .mn-app { justify-content: flex-start; gap: 12px; margin-top: 12px; background: var(--red); color: var(--on-red); padding: 12px 16px; text-align: left; }
.mn .mn-app svg { width: 26px; height: 26px; flex: 0 0 26px; }
.mn .mn-app b { display: block; font-size: 15px; } .mn .mn-app small { display: block; font-size: 13px; font-weight: 400; opacity: .85; }

/* Скелетоны: пока фото или данные грузятся — мерцающая заглушка; фото проявляется плавно; не загрузилось — спокойная заглушка с бургером */
@keyframes sk-sh { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes sk-in { from { opacity: 0; } }
.card-img, .dish-img, .line-img, .story-in, .combo-i, .sr-i img, .ord-p img, .sk-b {
  background-color: var(--soft); background-image: linear-gradient(100deg, transparent 30%, var(--skh) 50%, transparent 70%); background-size: 200% 100%; background-repeat: no-repeat; animation: sk-sh 1.4s linear infinite; }
.img-ld, .sr-i img.ld, .ord-p img.ld { animation: none; background-image: none; }
.skj .card-img img:not(.ld), .skj .dish-img img:not(.ld), .skj .line-img img:not(.ld), .skj .story-in img:not(.ld), .skj .combo-i img:not(.ld) { opacity: 0; }
.skj .card-img img.ld, .skj .dish-img img.ld, .skj .line-img img.ld, .skj .story-in img.ld, .skj .combo-i img.ld { animation: sk-in .16s ease-out; }
.img-err { animation: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0a0a6' opacity='.55'%3E%3Cpath d='M4 10.5C4 6.9 7.6 4 12 4s8 2.9 8 6.5H4zm-1 2h18v1.5H3zm1 3h16c0 1.9-1.6 3.5-3.5 3.5h-9A3.5 3.5 0 0 1 4 15.5z'/%3E%3C/svg%3E");
  background-size: 38%; background-position: center; background-repeat: no-repeat; }
.img-err img { visibility: hidden; }
img.img-err { background-size: 60%; }
.sk-b { display: block; height: 14px; border-radius: 7px; margin: 10px 0; }
.sk-card { padding: 14px 0; border-bottom: 1px solid var(--line2); } .sk-card:last-child { border-bottom: 0; }
.sk-pics { display: flex; gap: 6px; margin-top: 10px; } .sk-pics .sk-b { width: 48px; height: 48px; border-radius: 10px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .card-img, .dish-img, .line-img, .story-in, .combo-i, .sr-i img, .ord-p img, .sk-b { animation: none; } }

.rf-t { margin-top: 10px; }
.rf-t summary { cursor: pointer; list-style: none; text-align: center; font-size: 14px; color: var(--muted); padding: 4px 0; }
.rf-t summary::-webkit-details-marker { display: none; }
.rf-t summary::after { content: ' ›'; } .rf-t[open] summary::after { content: ' ⌄'; }
.rf-t ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.45; color: var(--ink2); }
.rf-t li { margin: 5px 0; }

/* Плашка приложения сверху (как родная у Safari): для Chrome/Яндекса на iPhone и браузеров Android */
.apb { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 6px; background: var(--soft); border-bottom: 1px solid var(--line); }
.apb-x { flex: 0 0 26px; height: 26px; border: 0; background: none; color: var(--faint); font-size: 22px; line-height: 1; cursor: pointer; }
.apb img { flex: 0 0 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.apb-t { flex: 1; min-width: 0; } .apb-t b { display: block; font-size: 14px; } .apb-t small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apb-go { flex: 0 0 auto; background: var(--red); color: var(--on-red); border-radius: 16px; padding: 6px 14px; font-weight: 700; font-size: 14px; }

/* Боковое меню: без полосы прокрутки (листается так же) */
.sheet.left .sheet-s { scrollbar-width: none; }
.sheet.left .sheet-s::-webkit-scrollbar { display: none; }
/* Safari на iPhone (iOS 26) красит свою нижнюю панель цветом закреплённого (fixed) слоя, который касается низа экрана. Раньше это был
   полупрозрачный слой затемнения — панель выходила серой «плашкой». Теперь само окно закреплено: панель берёт цвет окна и выглядит его продолжением */
.sheet { position: fixed; }

/* Профиль как в приложении: списки-карточки, заголовки разделов, карточки заказов вбок, плитки связи */
.pf-box { margin-top: 12px; background: var(--soft); border-radius: 18px; overflow: hidden; }
.pf-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 16px; border: 0; border-bottom: 1px solid var(--line2); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pf-row[hidden] { display: none; }
.pf-box > :last-child { border-bottom: 0; }
.pf-row:active { opacity: .7; }
.pf-row > i { color: var(--red-t); display: flex; flex: 0 0 22px; } .pf-row > i svg { width: 22px; height: 22px; }
.pf-row > span { flex: 1; min-width: 0; }
.pf-row b { display: block; font-size: 17px; font-weight: 600; }
.pf-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; }
.pf-row > svg:last-child { flex: 0 0 18px; width: 18px; height: 18px; color: var(--faint2); transition: transform .2s ease; }
.pf-row.on > svg:last-child { transform: rotate(90deg); }
.pf-box .bh-box { margin: 0 12px 12px; background: var(--surface); }
.pf-box .rf.in { display: none; margin: 0 12px 12px; background: var(--surface); }
.pf-box .rf.in.open { display: block; }
.pf-box .rf.in .rf-code { background: var(--soft); }
.pf-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 24px 2px 10px; }
.pf-h b { font-size: 19px; font-weight: 700; }
.pf-all { background: none; border: 0; color: var(--red-t); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; padding: 0; }
.pf-all[hidden] { display: none; }
.pf .ord-h { justify-content: flex-start; }
.pf .ord-h em.done { color: #2f9e6a; background: rgba(63, 182, 127, .14); }
.pf .ord-h em.on { color: var(--red-t); background: var(--red-soft); }
.pf .ord-h em.off { color: var(--muted); }
.pf .ord-h em { text-transform: none; letter-spacing: 0; font-size: 12px; }
.ord-w { color: var(--muted); font-size: 12px; margin-top: -4px; }
.pf .ord-c a > small.ord-w { -webkit-line-clamp: 1; }
.ord-s { align-items: center; }
.ord-s > b { font-size: 17px; white-space: nowrap; }
.ord-rep { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: var(--on-red); border: 0; border-radius: 12px; padding: 9px 12px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.ord-rep svg { width: 16px; height: 16px; }
.ord-rep:active { transform: scale(.97); }
.ords.v { flex-direction: column; overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; }
.ords.v .ord-c { flex: none; max-width: none; }
.pf-ad { display: flex; align-items: center; gap: 14px; padding: 12px 10px 12px 16px; border-bottom: 1px solid var(--line2); }
.pf-ad > i { color: var(--muted); display: flex; flex: 0 0 22px; } .pf-ad > i svg { width: 22px; height: 22px; }
.pf-ad > span { flex: 1; min-width: 0; }
.pf-ad b { display: block; font-size: 16px; font-weight: 500; }
.pf-ad small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.pf-ad button { flex: 0 0 34px; height: 34px; border-radius: 50%; color: var(--faint); font-size: 22px; line-height: 34px; }
.pf-ad button:active { background: var(--line2); }
.pf-pick { margin-top: 0; }
.pf-tiles { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pf-tiles a { background: var(--soft); border-radius: 16px; padding: 14px 4px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink); }
.pf-tiles a:active { opacity: .7; }
.pf-tiles i { width: 44px; height: 44px; border-radius: 50%; background: var(--red-soft); color: var(--red-t); display: flex; align-items: center; justify-content: center; }
.pf-tiles i svg { width: 22px; height: 22px; }
.pf-tiles small { font-size: 14px; font-weight: 500; }
.pf-out { width: 100%; margin: 20px 0 4px; padding: 15px; font-size: 17px; }
.pf .mn-legal { margin-top: 18px; padding: 0 2px; }
.pf-top { display: flex; align-items: center; gap: 6px; }
.pf-back { width: 36px; height: 36px; margin-left: -8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink); background: none; border: 0; cursor: pointer; }
.pf-back svg { width: 24px; height: 24px; }
.pf-back:active { background: var(--soft); }
/* Сохранённые карты в «Мой профиль» */
.pf-cn { padding: 14px 16px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.pf-cc > i { color: var(--ink5); }
.pf-ad .pf-unlink { flex: 0 0 auto; width: auto; height: auto; border-radius: 10px; padding: 7px 12px; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--red-t); background: var(--red-soft); }
/* Страница заказа: сохранённые карты первыми кнопками */
.pf-ways.has-saved { grid-template-columns: repeat(2, 1fr); }
.pf-way.pf-saved { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
