/* FAR QR-меню (гость). Одна мобильная колонка до 520px, как в приложениях доставки:
   липкие вкладки категорий, карточки 2 в ряд для еды, строки для напитков, плавающая корзина.
   Светлая премиальная тема как печатные вкладыши FAR; тёмной темы нет намеренно. */
:root {
  --bg: #FFFCF7;          /* Warm White */
  --surface: #FFFFFF;
  --soft: #F6F1EA;
  --ink: #171717;
  --muted: #74695D;
  --line: #EEE6DA;
  --deep: #2B507D;        /* Deep Blue — ссылки, акценты */
  --gold: #8F6F45;        /* золото логотипа — действия */
  --gold-2: #A88757;
  --stone: #94795D;
  --stone-ink: #8A6C4F;
  --ok: #3F7A55;
  --warn: #B4532A;
  --ph: linear-gradient(160deg, #F7F1E8, #EFE6D9);
  --shadow-card: 0 1px 0 var(--line), 0 10px 24px -20px rgba(60, 45, 25, .35);
  --f-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Lora", Georgia, serif;
  --r: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
html.locked { overflow: hidden; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: var(--f-ui); font-size: 15px; line-height: 1.4; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; }
input, textarea, select { font: inherit; color: var(--ink); }
a { color: var(--deep); }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; border-radius: 6px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.cap { font-stretch: 125%; text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 600; }
.app { max-width: 520px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: 40px; }
body.has-cart .app { padding-bottom: 110px; }
.gut { padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.loading-screen { padding-top: 120px; text-align: center; color: var(--muted); }

/* шапка */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: calc(12px + env(safe-area-inset-top, 0px)) 4px; }
.logo { display: flex; align-items: flex-end; gap: 9px; color: var(--stone); min-width: 0; }
.logo svg { height: 28px; width: auto; flex: none; }
.logo .cap { font-size: 8px; letter-spacing: .24em; margin-bottom: 4px; color: var(--muted); white-space: nowrap; }
.logo.big { justify-content: center; margin: 4px 0 10px; }
.logo.big svg { height: 40px; }
.icons { display: flex; gap: 8px; align-items: center; }
.ibtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.ibtn svg { width: 20px; height: 20px; }
.langbtn { height: 44px; padding: 0 12px; border-radius: 22px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 13.5px; letter-spacing: .04em; }
.langbtn svg { width: 16px; height: 16px; color: var(--muted); }
.langbtn svg:last-child { width: 14px; height: 14px; }
.placebar { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding-block: 8px 2px; font-size: 14px; color: var(--muted); }
.placebar b { color: var(--ink); font-weight: 600; font-size: 15px; }
.place-ic { width: 28px; height: 28px; border-radius: 9px; background: var(--soft); display: grid; place-items: center; color: var(--gold); flex: none; }
.place-ic svg { width: 17px; height: 17px; }
.dotsep { color: var(--line); }

/* официант / счёт */
.waiter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; }
.wbtn { min-height: 46px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; font-weight: 600; font-size: 14px; text-align: center; line-height: 1.2; }
.wbtn svg { width: 19px; height: 19px; color: var(--gold); flex: none; }
.wbtn.cd, .cta.cd { opacity: .6; }

/* уведомления состояний */
.notice { display: flex; gap: 12px; margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--soft); }
.notice .n-ic { flex: none; width: 22px; height: 22px; color: var(--deep); margin-top: 1px; }
.notice.warn { background: #FBEFE6; }
.notice.warn .n-ic { color: var(--warn); }
.notice b { display: block; font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.notice p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.lnk { margin-top: 8px; color: var(--deep); font-weight: 600; font-size: 14px; min-height: 32px; text-decoration: underline; text-underline-offset: 3px; }
.obanner { margin-top: 12px; width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1.5px var(--gold-2); text-align: start; font-size: 14px; }
.obanner svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.obanner span:first-of-type { flex: 1; min-width: 0; }
.obanner .go { color: var(--gold); font-weight: 600; }

/* поиск */
.sbox { padding-top: 14px; }
.sfield { display: flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 14px; padding: 0 12px; border: 1.5px solid transparent; }
.sfield:focus-within { border-color: var(--gold-2); }
.sfield svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.sfield input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; font-size: 16px; outline: none; }

/* вкладки категорий */
.tabs-wrap { position: sticky; top: 0; z-index: 20; background: rgba(255, 252, 247, .96); backdrop-filter: saturate(1.2) blur(6px); -webkit-backdrop-filter: blur(6px); margin-top: 8px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 14px 2px 12px; margin-inline-end: 18px; font-size: 14.5px; font-weight: 500; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; border-radius: 0; }
.tab.on { color: var(--ink); border-bottom-color: var(--gold-2); }

/* разделы */
.sec { padding-top: 22px; scroll-margin-top: 56px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.sec-h .h3 { margin: 0; font-family: var(--f-serif); font-size: 13.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--stone-ink); }
.sec-h small { color: var(--muted); font-size: 13px; text-align: end; font-family: var(--f-serif); font-style: italic; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { background: var(--surface); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card); position: relative; }
.card .ph { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--ph); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 10px 12px 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; cursor: pointer; }
.card .price { font-family: var(--f-serif); color: var(--stone-ink); font-weight: 600; font-size: 15px; }
.card .name { font-family: var(--f-serif); font-weight: 500; font-size: 15px; line-height: 1.25; text-align: start; }
.card .desc { font-family: var(--f-serif); font-size: 12.5px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { padding: 0 12px 12px; margin-top: auto; min-height: 52px; }
.card .foot:empty, .row .act:empty { display: none; }
.unavail .ph img, .unavail .thumb img, .line.unavail .thumb img { filter: grayscale(1) opacity(.55); }
.unavail .ph-logo { opacity: .18; }
.unavail .name, .unavail .desc, .unavail .price, .unavail .sub, .unavail .pr { opacity: .55; }
.stamp { position: absolute; inset: auto 8px 8px 8px; background: rgba(23,23,23,.78); color: #fff; font-size: 12px; font-weight: 500; text-align: center; padding: 6px 8px; border-radius: 10px; line-height: 1.25; }
.na { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: 13px; font-weight: 500; text-align: center; }

/* кнопка «Добавить» и степпер */
.buy { width: 100%; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 500; font-size: 14.5px; }
.buy:hover { background: var(--soft); }
.buy .plus { font-size: 19px; line-height: 1; color: var(--gold); }
.step { width: 100%; height: 40px; border-radius: 12px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #fff; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; font-weight: 600; }
.step button { height: 100%; font-size: 21px; color: inherit; text-align: center; }
.step button[disabled] { opacity: .35; cursor: not-allowed; }
.step span { text-align: center; font-size: 15px; }
.step.sm { width: 116px; height: 36px; grid-template-columns: 38px 1fr 38px; border-radius: 11px; }
.step.sm button { font-size: 19px; }
.step.soft { background: var(--soft); color: var(--ink); }

/* строки (напитки, вино) */
.rows { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-card); padding: 0 12px; }
.row { display: grid; grid-template-columns: 60px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.thumb { width: 60px; height: 60px; border-radius: 12px; overflow: hidden; background: var(--ph); cursor: pointer; display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph-logo svg { width: 70%; }
.row .mid { cursor: pointer; min-width: 0; }
.row .name { font-family: var(--f-serif); font-weight: 500; font-size: 15px; line-height: 1.3; text-align: start; }
.row .sub { font-family: var(--f-serif); font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .pr { font-family: var(--f-serif); color: var(--stone-ink); font-weight: 600; font-size: 14px; margin-top: 3px; }
.row .act { display: flex; justify-content: flex-end; }
.rbuy { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--gold); font-size: 22px; display: grid; place-items: center; text-align: center; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; margin-inline-start: 6px; vertical-align: 1px; font-family: var(--f-ui); letter-spacing: 0; text-transform: none; }
.badge.off { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.badge.age { background: var(--soft); color: var(--muted); }
.row .badge.off { margin-inline-start: 0; margin-top: 3px; }

/* заглушка-логотип вместо фото */
.ph-logo { display: grid; place-items: center; width: 100%; height: 100%; color: var(--stone); opacity: .32; }
.ph-logo svg { width: 46%; max-width: 120px; height: auto; }

.empty { text-align: center; padding: 60px 24px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-family: var(--f-serif); font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.empty.boot p { margin: 0 0 20px; }
.empty.boot .cta { max-width: 260px; margin: 0 auto; }
.foot-info { text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.7; padding-block: 34px 10px; font-family: var(--f-serif); }
.foot-info .cap { color: var(--stone-ink); font-family: var(--f-ui); }
.payhint { margin-top: 6px; font-family: var(--f-ui); color: var(--ink); }

/* плавающая корзина */
#cartbar { position: relative; z-index: 30; }
.cartbtn { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: min(calc(100% - 32px), 488px);
  display: flex; align-items: center; gap: 12px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #fff; border-radius: 18px; padding: 12px 16px; min-height: 56px; box-shadow: 0 14px 30px -12px rgba(110, 82, 40, .55); }
.cartbtn .cnt { min-width: 28px; height: 28px; border-radius: 9px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 700; font-size: 14px; padding: 0 6px; }
.cartbtn .lab { flex: 1; text-align: start; font-weight: 600; font-size: 15.5px; }
.cartbtn .sum { font-weight: 700; font-size: 15.5px; }
.cartbtn.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: translateX(-50%) scale(1.04); } }

/* слои */
.layer { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: center; }
.dim { position: absolute; inset: 0; background: rgba(12,16,28,.5); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; align-self: flex-end; width: min(100%, 520px); max-height: calc(100% - 28px); background: var(--bg); border-radius: 24px 24px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: up .28s cubic-bezier(.2,.8,.2,1); outline: none; }
@keyframes up { from { transform: translateY(60px); opacity: .3; } }
.page { position: relative; width: min(100%, 520px); height: 100%; background: var(--bg); display: flex; flex-direction: column; animation: slide .25s cubic-bezier(.2,.8,.2,1); outline: none; }
@keyframes slide { from { transform: translateX(40px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .sheet, .page, .dim, .cartbtn.bump, .spinner { animation: none !important; } }
.scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,252,247,.94); color: var(--ink); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.x svg { width: 18px; height: 18px; }

/* шторка блюда */
.p-hero { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 44vh; background: var(--ph); overflow: hidden; }
.p-hero img { width: 100%; height: 100%; object-fit: cover; }
.p-hero .ph-logo svg { width: 34%; max-width: 160px; }
.p-body { padding-top: 16px; padding-bottom: 18px; }
.p-body h3 { font-family: var(--f-serif); font-size: 23px; font-weight: 500; margin: 0 0 6px; line-height: 1.2; }
.p-body .desc { font-family: var(--f-serif); color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.p-price { font-family: var(--f-serif); color: var(--stone-ink); font-weight: 600; font-size: 17px; margin-top: 8px; }
.grp { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.grp-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; padding: 0; margin-bottom: 4px; }
.grp-h b { font-size: 16px; font-weight: 600; }
.grp-h small { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.grp-h small.req { color: var(--stone-ink); }
.grp.need .grp-h small { color: var(--warn); }
.grp.need { animation: shake .3s; }
@keyframes shake { 30% { transform: translateX(-4px); } 70% { transform: translateX(4px); } }
.opt { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.opt:last-child { border-bottom: 0; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt input:focus-visible + .box { outline: 2px solid var(--deep); outline-offset: 2px; }
.opt .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #D9CEBF; display: grid; place-items: center; flex: none; color: transparent; background: var(--surface); }
.opt .box.round { border-radius: 50%; }
.opt.on .box { background: var(--gold); border-color: var(--gold); color: #fff; }
.opt .box svg { width: 14px; height: 14px; }
.opt .t { flex: 1; font-size: 15px; }
.opt .p { color: var(--muted); font-size: 14px; }
.opt.dis { opacity: .4; cursor: not-allowed; }
.p-bar { display: flex; gap: 10px; align-items: center; padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--bg); }
.p-bar.col { flex-direction: column; align-items: stretch; gap: 8px; }
.cta { flex: 1; min-height: 52px; border-radius: 16px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #fff; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; gap: 10px; text-decoration: none; }
.cta svg { width: 20px; height: 20px; flex: none; }
.cta.center { justify-content: center; }
.cta[disabled] { opacity: .45; cursor: not-allowed; }
.cta.ghost { background: var(--soft); color: var(--ink); }
.cta.ghost svg { color: var(--gold); }
.cta.wa { background: linear-gradient(180deg, #2BB673, #1E9B5E); }
.cta.loading { position: relative; color: transparent !important; pointer-events: none; }
.cta.loading > * { visibility: hidden; }
.cta.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.cta.ghost.loading::after { border-color: rgba(0,0,0,.15); border-top-color: var(--gold); }
.qty { display: grid; grid-template-columns: 44px 30px 44px; align-items: center; background: var(--soft); border-radius: 14px; height: 52px; flex: none; }
.qty button { height: 52px; font-size: 21px; text-align: center; }
.qty button[disabled] { opacity: .3; }
.qty span { text-align: center; font-weight: 700; }

/* страницы: корзина, статус */
.bar { display: flex; align-items: center; gap: 10px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.bar h3 { margin: 0; flex: 1; font-family: var(--f-serif); font-size: 21px; font-weight: 500; }
.back { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; flex: none; }
.back svg { width: 20px; height: 20px; }
[dir="rtl"] .back svg { transform: scaleX(-1); }
.linkbtn { color: var(--muted); font-size: 14px; min-height: 44px; padding: 0 4px; }
.where-card { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.where-card b { display: block; font-weight: 600; }
.where-card small { color: var(--muted); font-size: 13px; }
.line { display: grid; grid-template-columns: 60px minmax(0,1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line .n { font-family: var(--f-serif); font-weight: 500; font-size: 15px; line-height: 1.3; }
.line .m { font-family: var(--f-serif); color: var(--muted); font-size: 12.5px; margin-top: 2px; line-height: 1.4; }
.line .m.warn { color: var(--warn); font-family: var(--f-ui); font-weight: 600; }
.line .r { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; }
.line .r b { font-family: var(--f-serif); color: var(--stone-ink); font-weight: 600; }
.sect { margin-top: 22px; }
.sect > b, .sect > label > b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 14px; padding: 3px; gap: 3px; }
.seg button { border-radius: 11px; min-height: 42px; padding: 8px 6px; font-size: 14px; font-weight: 500; color: var(--muted); text-align: center; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(60, 45, 25, .12); }
.seg button[disabled] { opacity: .45; }
textarea, select, .field { width: 100%; background: var(--soft); border: 1.5px solid transparent; border-radius: 14px; padding: 12px 14px; font-size: 16px; }
.slot { margin-top: 10px; min-height: 48px; }
textarea { resize: none; min-height: 68px; font-family: var(--f-ui); display: block; }
textarea:focus, select:focus, .field:focus { border-color: var(--gold-2); outline: none; }
.hint { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 8px 0 0; }
.hint.warn { color: var(--warn); }
.cnt-hint { display: flex; justify-content: space-between; gap: 10px; }
.center-t { text-align: center; }
.sumbox { margin-top: 22px; }
.grand { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.payhint-box { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--soft); color: var(--ink); font-size: 13.5px; line-height: 1.45; }
.errline { padding: 10px 12px; border-radius: 12px; background: #FBEFE6; color: var(--warn); font-size: 14px; font-weight: 500; line-height: 1.4; }

.st-hero { text-align: center; padding-block: 28px 6px; }
.st-hero:not(.gut) { padding-inline: 4px; }   /* у экрана WhatsApp (.gut.st-hero) остаются обычные боковые отступы */
.st-hero .num-big { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.st-hero h4 { font-family: var(--f-serif); font-size: 25px; font-weight: 500; margin: 6px 0 6px; line-height: 1.2; }
.st-hero p { color: var(--muted); margin: 0 auto; font-size: 14.5px; line-height: 1.5; max-width: 34ch; }
.st-sum { margin-top: 10px !important; color: var(--ink) !important; }
.st-ic { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--soft); color: var(--gold); }
.st-ic svg { width: 36px; height: 36px; }
.st-ic.good { background: #EEF5EF; color: var(--ok); }
.st-ic.warn { background: #FBEFE6; color: var(--warn); }
.st-ic.wa-ic { background: #E7F6EE; color: #1E9B5E; }
.st-actions { display: grid; gap: 10px; margin: 22px 0 28px; }
.spinner { width: 52px; height: 52px; border-radius: 50%; border: 4px solid var(--soft); border-top-color: var(--gold); animation: spin .9s linear infinite; margin: 0 auto 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.receipt { border: 1.5px dashed var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 8px; font-size: 14px; margin-top: 18px; }
.receipt > div { display: flex; justify-content: space-between; gap: 10px; }
.receipt small { color: var(--muted); }
.receipt .grand { font-size: 16px; padding-top: 10px; }

/* подтверждение, языки, инфо */
.confirm { padding-top: 26px; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.confirm h3 { font-family: var(--f-serif); font-weight: 500; font-size: 21px; margin: 0; }
.confirm .errline { margin-top: 12px; }
.confirm-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.langs { padding-top: 22px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.langs h3, .info h3 { font-family: var(--f-serif); font-weight: 500; font-size: 21px; margin: 0 0 10px; }
.lang { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
.lang:last-child { border-bottom: 0; }
.lang.on { font-weight: 600; }
.lang svg { width: 20px; height: 20px; color: var(--gold); }
.info { padding-top: 26px; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
.info h3 { text-align: center; }
.info-list { margin: 8px 0 0; }
.info-list > div { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: center; }
.info-list dt { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; flex: none; }
.info-list dd { margin: 0; text-align: end; font-weight: 500; font-size: 14.5px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.i-ic { width: 20px; height: 20px; color: var(--gold); display: inline-grid; }
.i-ic svg { width: 20px; height: 20px; }
.wifi-pass { display: inline-flex; align-items: center; gap: 6px; }
.wifi-pass code { font-family: ui-monospace, Menlo, monospace; background: var(--soft); padding: 3px 8px; border-radius: 8px; font-size: 13.5px; }
.copy { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--gold); }
.copy svg { width: 18px; height: 18px; }

/* тост */
#toast-host { position: relative; z-index: 80; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: min(calc(100% - 32px), 488px); background: var(--ink); color: var(--bg); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); font-size: 14px; animation: fade .2s ease; }
.toast span { flex: 1; }
.toast button { color: #E2C89D; font-weight: 700; min-height: 32px; }

/* RTL (базово) */
[dir="rtl"] .opt .p, [dir="rtl"] .num { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .cartbtn.bump { animation: none; }

/* Cloudflare Turnstile: невидим, пока Cloudflare не попросит действие */
.ts-host { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 1000; display: none; max-width: calc(100vw - 32px); }
.ts-host.on { display: block; }

/* «с собой»: контакт для менеджера */
.field { min-height: 48px; margin-top: 10px; display: block; }
.consent-note { margin: 8px 0 0; font-size: 12px; line-height: 1.35; }
