/* ================================================================
   «Еда по делу» — оформление
   Палитра: тёплый кремовый фон, глубокий зелёный, терракота, шафран.
   ================================================================ */
:root {
  --bg: #fbf8f3; --bg-2: #f4eee4; --surface: #ffffff; --surface-2: #f5f0e8; --surface-3: #ece5d9; --line: #e7dfd2; --line-2: #d9cfbf;
  --text: #1c211e; --muted: #5e635c; --brand: #2f6b4f; --brand-2: #245640; --brand-3: #3f8a64; --brand-soft: #e2efe7;
  --accent: #b5461a; --accent-2: #d8622f; --accent-soft: #fbe9df; --saffron: #f2b544; --saffron-soft: #fdf1d6;
  --on-brand: #ffffff; --on-accent: #ffffff;
  --warn: #8a5300; --warn-soft: #fff2d6; --danger: #b3261e; --danger-soft: #fdeceb; --ok: #1f7a45; --ok-soft: #e3f3e9;
  --radius: 20px; --radius-sm: 14px; --radius-xs: 10px;
  --shadow-sm: 0 1px 2px rgba(40,30,15,.06);
  --shadow: 0 1px 2px rgba(40,30,15,.05), 0 8px 24px -12px rgba(40,30,15,.16);
  --shadow-lg: 0 2px 6px rgba(40,30,15,.06), 0 24px 48px -20px rgba(40,30,15,.28);
  --grad-brand: linear-gradient(135deg, #3f8a64 0%, #2f6b4f 55%, #245640 100%);
  --grad-accent: linear-gradient(135deg, #e0773f 0%, #b5461a 100%);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "SF Pro Display", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111513; --bg-2: #161b18; --surface: #1a1f1c; --surface-2: #222824; --surface-3: #2a312c; --line: #2e3531; --line-2: #3a433d;
    --text: #eef2ee; --muted: #a2aba4; --brand: #6cc095; --brand-2: #8dd4ae; --brand-3: #5fb088; --brand-soft: #1f3328;
    --accent: #f29a68; --accent-2: #f5ad84; --accent-soft: #3a261b; --saffron: #f4c25e; --saffron-soft: #3a3120;
    --on-brand: #0d1a13; --on-accent: #1d0f07;
    --warn: #f3c46b; --warn-soft: #362c1a; --danger: #ff8a80; --danger-soft: #3b2220; --ok: #7fdca6; --ok-soft: #1c3326;
    --shadow-sm: none; --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px -18px rgba(0,0,0,.8); --shadow-lg: 0 24px 50px -20px rgba(0,0,0,.9);
    --grad-brand: linear-gradient(135deg, #7fd0a5 0%, #5fb088 100%); --grad-accent: linear-gradient(135deg, #f6b088 0%, #f08a55 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111513; --bg-2: #161b18; --surface: #1a1f1c; --surface-2: #222824; --surface-3: #2a312c; --line: #2e3531; --line-2: #3a433d;
  --text: #eef2ee; --muted: #a2aba4; --brand: #6cc095; --brand-2: #8dd4ae; --brand-3: #5fb088; --brand-soft: #1f3328;
  --accent: #f29a68; --accent-2: #f5ad84; --accent-soft: #3a261b; --saffron: #f4c25e; --saffron-soft: #3a3120;
  --on-brand: #0d1a13; --on-accent: #1d0f07;
  --warn: #f3c46b; --warn-soft: #362c1a; --danger: #ff8a80; --danger-soft: #3b2220; --ok: #7fdca6; --ok-soft: #1c3326;
  --shadow-sm: none; --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px -18px rgba(0,0,0,.8); --shadow-lg: 0 24px 50px -20px rgba(0,0,0,.9);
  --grad-brand: linear-gradient(135deg, #7fd0a5 0%, #5fb088 100%); --grad-accent: linear-gradient(135deg, #f6b088 0%, #f08a55 100%);
  color-scheme: dark;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; font: 16px/1.55 var(--font); color: var(--text); min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at 100% -10%, var(--saffron-soft), transparent 60%), radial-gradient(900px 500px at -10% 10%, var(--brand-soft), transparent 55%), var(--bg);
  background-attachment: fixed; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 0;
}
main { flex: 1; padding-block: 28px 64px; outline: none; }
a { color: var(--brand); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .45em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 .8em; }
small { font-size: .85em; }
::selection { background: var(--saffron-soft); color: var(--text); }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row--center { justify-content: center; }
.spread { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.stack > * + * { margin-top: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.grid2 > .field { margin-bottom: 0; }

/* ---------- Шапка ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; color: var(--text); }
.logo svg { width: 36px; height: 36px; flex: none; filter: drop-shadow(0 4px 8px rgba(47,107,79,.25)); transition: transform .4s var(--ease); }
.logo:hover svg { transform: rotate(-8deg) scale(1.05); }
.logo em { font-style: normal; color: var(--brand); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.topbar__tools { display: flex; align-items: center; gap: 6px; }
.topbar__row > .nav { margin-left: auto; }
.topbar__tools .lang-btn, .topbar__tools .theme-btn { margin-left: 0; }
.nav a { position: relative; text-decoration: none; color: var(--text); padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: .96rem; transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-2); }
.nav__cart { display: inline-flex; align-items: center; gap: 6px; }
.badge { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--grad-accent); color: var(--on-accent); font-size: .78rem; font-weight: 700; text-align: center; line-height: 22px; box-shadow: 0 3px 8px -3px var(--accent); }
.badge[hidden] { display: none; }
.theme-btn, .nav__btn { margin-left: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; width: 40px; height: 40px; display: inline-grid; place-items: center; cursor: pointer; color: var(--text); }
.nav__btn { width: auto; padding: 0 16px; font: inherit; font-weight: 600; }
.theme-btn:hover, .nav__btn:hover { background: var(--surface-2); }
.demo-note { text-align: center; font-size: .83rem; padding: 7px 16px; color: var(--warn); background: linear-gradient(90deg, transparent, var(--warn-soft), transparent); }

/* ---------- Подвал ---------- */
.footer { margin-top: auto; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.footer__row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 28px 16px; }
.footer__brand p { color: var(--muted); max-width: 380px; margin: 10px 0 0; font-size: .92rem; }
.footer__nav { display: flex; gap: 6px 20px; flex-wrap: wrap; align-items: flex-start; }
.footer__nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.footer__nav a:hover { color: var(--brand); }
.footer__legal { color: var(--muted); font-size: .8rem; padding-block: 0 24px; }

/* ---------- Карточки и общие элементы ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.page-head { margin-bottom: 18px; }
.page-head h1 { margin-bottom: .2em; }
.back { display: inline-block; font-size: .9rem; font-weight: 600; text-decoration: none; margin-bottom: 8px; color: var(--muted); }
.back:hover { color: var(--brand); }
.empty { text-align: center; padding: 48px 20px; }
.empty p { max-width: 420px; margin-inline: auto; }
.empty-art { width: 108px; height: 108px; margin: 0 auto 16px; border-radius: 36% 64% 60% 40% / 45% 40% 60% 55%; background: radial-gradient(circle at 30% 30%, var(--saffron-soft), var(--brand-soft)); display: grid; place-items: center; font-size: 3.1rem; }
.empty-icon { font-size: 3rem; line-height: 1.2; display: inline-block; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--saffron-soft), var(--brand-soft)); display: inline-grid; place-items: center; margin-bottom: 10px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px; border-radius: 999px; background: var(--surface-2); font-size: .8rem; font-weight: 600; color: var(--muted); }
.pill--brand { background: var(--brand-soft); color: var(--brand-2); }
.pill--accent { background: var(--accent-soft); color: var(--accent); }
.notice { border-radius: var(--radius-sm); padding: 12px 14px; background: var(--surface-2); }
.notice--warn { background: var(--warn-soft); color: var(--warn); }
.notice--error { background: var(--danger-soft); color: var(--danger); }
.notice--ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 14px; padding: 11px 20px; font: inherit; font-weight: 700; letter-spacing: -.005em; cursor: pointer; text-decoration: none; background: var(--surface-2); color: var(--text); min-height: 46px; transition: transform .12s ease, box-shadow .25s ease, background-color .2s, filter .2s; }
.btn:hover { filter: brightness(1.04); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--grad-brand); color: var(--on-brand); box-shadow: 0 8px 20px -10px var(--brand), inset 0 1px 0 rgba(255,255,255,.18); }
.btn--primary:not(:disabled):hover { box-shadow: 0 12px 26px -10px var(--brand), inset 0 1px 0 rgba(255,255,255,.18); transform: translateY(-1px); }
.btn--accent { background: var(--grad-accent); color: var(--on-accent); box-shadow: 0 8px 20px -10px var(--accent), inset 0 1px 0 rgba(255,255,255,.2); }
.btn--accent:not(:disabled):hover { box-shadow: 0 12px 26px -10px var(--accent); transform: translateY(-1px); }
.btn--ghost { background: var(--surface); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--small { padding: 7px 14px; min-height: 38px; font-size: .9rem; border-radius: 11px; }
.btn--lg { min-height: 54px; font-size: 1.05rem; border-radius: 16px; }
.btn--block { width: 100%; }
.btn--danger { color: var(--danger); background: transparent; border-color: var(--line); }
.btn--danger:hover { background: var(--danger-soft); }
.link-btn { background: none; border: 0; padding: 2px 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.swap-btn { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--brand); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.swap-btn:hover:not(:disabled):not([aria-expanded="true"]) { background: var(--brand-soft); border-color: var(--brand); transform: translateY(-1px); }
.swap-btn[aria-expanded="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.swap-btn:disabled { color: var(--muted); cursor: not-allowed; opacity: .7; }
.link-btn:disabled { color: var(--muted); cursor: not-allowed; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Формы ---------- */
label, .label { font-weight: 650; display: block; margin-bottom: 7px; }
.hint { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.field { margin-bottom: 22px; }
input[type=text], input[type=tel], input[type=number], input[type=password], input[type=email], input[type=search], input[type=time], input[type=date], input:not([type]), select, textarea {
  font: inherit; width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--text); min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
input:hover, select:hover, textarea:hover { border-color: var(--line-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
textarea { min-height: 84px; resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 14%, transparent); }
.error-text { color: var(--danger); font-size: .88rem; margin-top: 4px; }
.form-head { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.form-head h2 { margin-bottom: 2px; }
.form-head p { margin: 0; }
.form-section { font-size: 1.1rem; margin: 6px 0 14px; display: flex; align-items: center; gap: 8px; }
.form-section:not(:first-child) { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--line); }
.step-label { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 10px; }
.step-num { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .8rem; font-weight: 800; color: var(--on-brand); background: var(--grad-brand); flex: none; }

.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.stepper button { width: 46px; min-height: 46px; border: 0; background: var(--surface-2); font-size: 1.35rem; font-weight: 600; cursor: pointer; color: var(--text); transition: background-color .15s, transform .12s; }
.stepper button:hover:not(:disabled) { background: var(--brand-soft); color: var(--brand-2); }
.stepper button:active:not(:disabled) { transform: scale(.92); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper input { width: 62px; text-align: center; border: 0; border-radius: 0; min-height: 46px; -moz-appearance: textfield; font-weight: 750; font-size: 1.05rem; box-shadow: none !important; font-variant-numeric: tabular-nums; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper--small { border-radius: 12px; }
.stepper--small button { width: 36px; min-height: 36px; font-size: 1.1rem; } .stepper--small input { width: 44px; min-height: 36px; font-size: .95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; min-height: 40px; text-decoration: none; transition: transform .12s ease, background-color .2s, border-color .2s, color .2s, box-shadow .2s; }
.chip:hover { border-color: var(--line-2); background: var(--surface-2); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"], .chip[aria-current] { background: var(--grad-brand); border-color: transparent; color: var(--on-brand); box-shadow: 0 6px 14px -8px var(--brand); }
.chip--exclude[aria-pressed="true"] { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 45%, transparent); color: var(--danger); text-decoration: line-through; box-shadow: none; }
.chip__count { font-size: .75rem; font-weight: 700; padding: 0 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin-left: 2px; line-height: 20px; }
.chip[aria-current] .chip__count { background: rgba(255,255,255,.22); color: inherit; }

.segmented { display: flex; border: 1.5px solid var(--line); border-radius: 14px; padding: 4px; background: var(--surface-2); gap: 4px; }
.segmented button { flex: 1 1 auto; border: 0; background: transparent; padding: 8px 12px; border-radius: 10px; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; color: var(--muted); min-height: 38px; transition: background-color .2s, color .2s, box-shadow .2s; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.money-input { position: relative; max-width: 240px; }
.money-input input { padding-right: 40px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.money-input span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; font-size: 1.1rem; }
details.more { border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm); padding: 12px 16px; background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
details.more summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-size: 1.3rem; font-weight: 500; color: var(--muted); transition: transform .25s var(--ease); }
details.more[open] summary::after { transform: rotate(45deg); }
.check { display: flex; gap: 9px; align-items: center; font-weight: 500; margin: 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

/* ---------- Главная: герой ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center; margin: 8px 0 22px; padding: 36px 40px; border-radius: 32px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface) 60%, transparent)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero__glow { position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; border-radius: 50%; z-index: -1; filter: blur(10px);
  background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--saffron) 38%, transparent), transparent 60%), radial-gradient(circle at 70% 70%, color-mix(in srgb, var(--brand-3) 30%, transparent), transparent 62%); }
.hero__kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--brand-2); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero__kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-3) 25%, transparent); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -.035em; }
.hero__accent { background: linear-gradient(95deg, var(--brand-3), var(--accent-2) 70%, var(--saffron)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); max-width: 560px; font-size: 1.06rem; }
.hero__facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__facts li { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 120px; }
.hero__facts b { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; letter-spacing: -.02em; color: var(--text); }
.hero__facts span { font-size: .82rem; color: var(--muted); }
.hero__art { position: relative; height: 300px; }
.plate { position: absolute; border-radius: 50%; overflow: hidden; box-shadow: 0 22px 40px -18px rgba(40,25,10,.5); border: 6px solid var(--surface); animation: floaty 7s ease-in-out infinite; }
.plate__img { width: 100%; height: 100%; object-fit: cover; }
.plate--1 { width: 200px; height: 200px; left: 20%; top: 40px; z-index: 2; }
.plate--2 { width: 120px; height: 120px; left: 0; top: 170px; animation-delay: -1.5s; }
.plate--3 { width: 130px; height: 130px; right: 2%; top: 0; animation-delay: -3s; }
.plate--4 { width: 108px; height: 108px; right: 8%; top: 178px; animation-delay: -4.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
.steam { position: absolute; left: calc(20% + 70px); top: 6px; width: 60px; height: 40px; z-index: 3; }
.steam i { position: absolute; bottom: 0; width: 8px; height: 26px; border-radius: 50%; background: var(--muted); opacity: 0; filter: blur(3px); animation: steam 3s ease-out infinite; }
.steam i:nth-child(1) { left: 6px; } .steam i:nth-child(2) { left: 24px; animation-delay: 1s; } .steam i:nth-child(3) { left: 42px; animation-delay: 2s; }
@keyframes steam { 0% { transform: translateY(10px) scaleY(.6); opacity: 0; } 30% { opacity: .35; } 100% { transform: translateY(-26px) scaleY(1.2); opacity: 0; } }

/* Как это работает */
.how { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.how li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--line); }
.how__icon { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: var(--surface-2); }
.how li:nth-child(1) .how__icon { background: var(--brand-soft); } .how li:nth-child(2) .how__icon { background: var(--saffron-soft); } .how li:nth-child(3) .how__icon { background: var(--accent-soft); }
.how b { display: block; font-family: var(--font-display); letter-spacing: -.01em; margin-bottom: 2px; }
.how p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- Подбор ---------- */
.pick-layout { display: grid; grid-template-columns: 400px minmax(0,1fr); gap: 26px; align-items: start; }
.pick-form { position: sticky; top: 86px; }
.results { min-width: 0; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.results-head h2 { margin: 0; font-size: 1.45rem; }
.results.is-stale .variant { opacity: .55; filter: saturate(.6); }
.stale-note { margin-bottom: 14px; }
.variants { display: grid; gap: 18px; }
.variant { position: relative; padding: 0; overflow: hidden; }
.variant::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-brand); opacity: .9; }
.variant--economy::before { background: linear-gradient(90deg, var(--saffron), var(--accent-2)); }
.variant--light::before { background: linear-gradient(90deg, #7cc6a0, #b9e3c9); }
.variant--hearty::before { background: linear-gradient(90deg, var(--accent-2), var(--saffron)); }
.ribbon { position: absolute; top: 4px; left: 24px; padding: 4px 12px 5px; border-radius: 0 0 10px 10px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; z-index: 2; box-shadow: 0 6px 12px -6px rgba(0,0,0,.35); }
.variant:has(.ribbon) .variant__head { padding-top: 40px; }
.ribbon--top { background: var(--grad-brand); color: var(--on-brand); }
.ribbon--save { background: linear-gradient(90deg, var(--saffron), var(--accent-2)); color: #2a1606; }
.variant__head { padding: 22px 24px 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; border-bottom: 1px solid var(--line); }
.variant__info { min-width: 0; }
.variant__title { display: flex; align-items: center; gap: 10px; }
.variant__title h3 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.variant__icon { font-size: 1.6rem; line-height: 1; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--surface-2); }
.variant__summary { color: var(--muted); font-size: .92rem; margin: 6px 0 10px; }
.variant__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.variant__price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.variant__price strong { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.spare { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 3px 10px; border-radius: 999px; }
.avatars { display: flex; }
.avatars .thumb, .avatars .thumb--ph { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -8px; box-shadow: var(--shadow-sm); }
.avatars > :first-child { margin-left: 0; }
.variant__body { padding: 8px 24px 20px; }
.variant__foot { padding: 14px 24px; background: var(--surface-2); display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lines > li:last-child .line { border-bottom: 0; }
.thumb { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; background: var(--surface-2); }
.thumb--ph { display: grid; place-items: center; font-size: 1.4rem; }
.line__name { font-weight: 700; }
.line__meta { font-size: .84rem; color: var(--muted); }
.line__price { text-align: right; white-space: nowrap; font-weight: 750; font-variant-numeric: tabular-nums; }
.alts { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px; margin: 4px 0 12px; display: grid; gap: 8px; animation: fadeUp .3s var(--ease) both; }
.alt { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: 12px; align-items: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 7px 10px; text-align: left; font: inherit; color: var(--text); cursor: pointer; transition: border-color .2s, transform .15s; }
.alt:not(:disabled):hover { border-color: var(--brand); transform: translateX(3px); }
.alt:disabled { cursor: not-allowed; opacity: .5; }
.alt .thumb { width: 46px; height: 46px; border-radius: 11px; }

/* КБЖУ */
.nutri { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin: 10px 0 4px; }
.nutri div { background: var(--surface-2); border-radius: 12px; padding: 10px 8px; text-align: center; }
.nutri b { display: block; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.nutri span { font-size: .76rem; color: var(--muted); }
.nutri--compact { display: flex; flex-wrap: wrap; gap: 6px; }
.nutri--compact div { padding: 3px 9px; border-radius: 999px; }
.nutri--compact b { display: inline; font-size: .88rem; }
.macro { margin-top: 10px; }
.macro__track { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.macro__seg { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .7s var(--ease); }
.macro__seg--protein, .dot--protein { background: #3d8bd4; }
.macro__seg--fat, .dot--fat { background: #e6a23c; }
.macro__seg--carbs, .dot--carbs { background: #5fb088; }
.macro__legend { display: flex; gap: 12px; font-size: .76rem; color: var(--muted); margin-top: 5px; flex-wrap: wrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: 1px; }

/* ---------- Меню ---------- */
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 8px; padding: 10px 20px; position: sticky; top: 66px; z-index: 20;
  background: linear-gradient(var(--bg) 70%, transparent); }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs .chip { white-space: nowrap; flex: none; }
.section-title { margin: 30px 0 14px; font-size: 1.55rem; font-weight: 800; scroll-margin-top: 130px; display: flex; gap: 10px; align-items: center; }
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 18px; }
.menu-section { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.dish { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.dish__media { position: relative; overflow: hidden; }
.dish__img { aspect-ratio: 4/3; object-fit: cover; width: 100%; height: auto; background: var(--surface-2); transition: transform .6s var(--ease); }
.dish__img--ph { display: grid; place-items: center; font-size: 3rem; }
.dish:hover .dish__img { transform: scale(1.06); }
.dish__tags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .74rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: var(--shadow-sm); }
.dish__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.dish__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.dish__top h3 { margin: 0; }
.dish__price { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; white-space: nowrap; color: var(--brand-2); font-variant-numeric: tabular-nums; }
.dish__actions { margin-top: auto; padding-top: 6px; display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.dish details summary { cursor: pointer; }
.dish.is-off .dish__img { filter: grayscale(.8); opacity: .7; }

/* ---------- Этапы заказа ---------- */
.flow { list-style: none; padding: 0; margin: 0 0 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; counter-reset: flow; }
.flow li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.flow li + li::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--line-2); margin-right: 2px; }
.flow__dot { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .8rem; font-weight: 800; background: var(--surface-2); border: 1.5px solid var(--line-2); color: var(--muted); }
.flow li.done { color: var(--text); } .flow li.done .flow__dot { background: var(--brand-soft); border-color: transparent; color: var(--brand-2); }
.flow li.done + li::before { background: var(--brand-3); }
.flow li.current { color: var(--text); } .flow li.current .flow__dot { background: var(--grad-brand); border-color: transparent; color: var(--on-brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 15%, transparent); }

/* ---------- Корзина, оформление, заказ ---------- */
.two-col { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 26px; align-items: start; }
.summary { position: sticky; top: 86px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; margin: 0 0 14px; }
.summary dt { color: var(--muted); } .summary dd { margin: 0; text-align: right; font-weight: 600; padding-left: 12px; font-variant-numeric: tabular-nums; }
.summary .total { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; border-top: 1.5px dashed var(--line-2); padding-top: 12px; margin-top: 6px; }
.summary dt.total { color: var(--text); font-size: 1.1rem; display: flex; align-items: flex-end; }
.summary hr { border: 0; border-top: 1px dashed var(--line-2); margin: 18px 0; }
.cart-line { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb { width: 76px; height: 76px; border-radius: 16px; }
.cart-line__side { display: flex; align-items: center; gap: 14px; }
.cart-line__side b { font-family: var(--font-display); font-size: 1.15rem; font-variant-numeric: tabular-nums; min-width: 86px; text-align: right; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.icon-btn--danger:hover:not(:disabled) { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); transform: rotate(90deg); }
.icon-btn:disabled { opacity: .5; cursor: not-allowed; }
.is-pending { opacity: .5; transition: opacity .15s; }
.free-meter { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 6px 0 16px; }
.free-meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-3), var(--saffron)); border-radius: inherit; transition: width .9s var(--ease); }
.free-ok { color: var(--ok); font-weight: 700; }
.mini-lines { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.mini-lines li { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 10px; align-items: center; font-size: .92rem; }
.mini-lines .thumb { width: 40px; height: 40px; border-radius: 10px; }
.mini-lines small { color: var(--muted); white-space: nowrap; }
.mini-lines b { font-variant-numeric: tabular-nums; }
.status-hero { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: var(--radius-sm); }
.status-hero b { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -.01em; }
.status-hero__icon { flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.9rem; background: var(--surface); box-shadow: var(--shadow-sm); }
.status-hero--ok { background: var(--ok-soft); color: var(--ok); } .status-hero--ok b { color: var(--text); }
.status-hero--warn { background: var(--warn-soft); color: var(--warn); } .status-hero--warn b { color: var(--text); }
.status-hero--error { background: var(--danger-soft); color: var(--danger); } .status-hero--error b { color: var(--text); }
.progress { display: grid; list-style: none; padding: 0; margin: 0; }
.progress li { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 9px 0; color: var(--muted); }
.progress li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--line-2); margin: 3px 0 0 5px; background: var(--surface); z-index: 1; }
.progress li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 26px; bottom: -10px; width: 2.5px; background: var(--line); border-radius: 2px; }
.progress li.done { color: var(--text); } .progress li.done::before { background: var(--brand-3); border-color: var(--brand-3); }
.progress li.done::after { background: var(--brand-3); }
.progress li.current { color: var(--text); font-weight: 700; } .progress li.current::before { border-color: var(--brand-3); background: var(--brand-soft); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-3) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.order-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 16px; align-items: center; text-decoration: none; color: inherit; }
.order-card__items { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card__side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.order-card__side b { font-family: var(--font-display); font-size: 1.2rem; }
.status-pill { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.status-pill--ok { background: var(--ok-soft); color: var(--ok); } .status-pill--warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- Демо-оплата ---------- */
.paybox { max-width: 520px; margin: 0 auto; }
.paybox__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.paybox__brand i { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #4c6ef5, #7048e8); display: inline-block; }
.paycard { position: relative; display: grid; gap: 4px; padding: 22px 24px; border-radius: 20px; color: #fff; overflow: hidden; min-height: 190px; align-content: end; padding-top: 70px;
  background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.28), transparent 40%), linear-gradient(135deg, #4c6ef5, #7048e8 55%, #a23ee0); box-shadow: 0 24px 40px -22px #5b3fd6; }
.paycard__chip { position: absolute; left: 24px; top: 22px; width: 44px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #f7d488, #c79a3b); }
.paycard__label { font-size: .8rem; opacity: .8; text-transform: uppercase; letter-spacing: .08em; }
.paycard__sum { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; }
.paycard__num { opacity: .85; font-size: .9rem; }

/* ---------- Управление ---------- */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.table th { color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.table input[type=number] { width: 88px; min-height: 38px; padding: 6px 10px; }
.table td:nth-child(5) { white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.login-card { max-width: 440px; margin: 48px auto; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { animation: fadeUp .5s var(--ease) both; }
.stat:nth-child(2) { animation-delay: .05s; } .stat:nth-child(3) { animation-delay: .1s; } .stat:nth-child(4) { animation-delay: .15s; }
.stat.stat--accent { background: var(--grad-brand); border-color: transparent; }
.stat.stat--accent span, .stat.stat--accent b { color: var(--on-brand); }
.status-pill--info { background: var(--brand-soft); color: var(--brand); }
.status-pill--error { background: var(--danger-soft); color: var(--danger); }
.nowrap { white-space: nowrap; }
.row--nowrap { flex-wrap: nowrap; }
.table td.small { min-width: 240px; }
.admin-dish { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.admin-dish .thumb { width: 48px; height: 48px; border-radius: 12px; }
.table tr.is-off td { opacity: .55; }
.table tr.is-off td:last-child, .table tr.is-off td:nth-last-child(2) { opacity: 1; }
.switch { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s var(--ease); margin: 0; min-height: 0; padding: 0; border: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.switch:checked { background: var(--brand-3); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 3px solid var(--focus, var(--brand)); outline-offset: 2px; }
.segmented--inline { display: inline-flex; width: auto; }
.stat { padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }

/* ---------- Уведомление ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg); padding: 13px 20px; border-radius: 16px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); z-index: 50; max-width: calc(100% - 32px); box-shadow: var(--shadow-lg); font-weight: 600; }
.toast.show { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.toast a { color: inherit; }

/* ================= Анимации ================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.anim-in { animation: fadeUp .55s var(--ease) both; animation-delay: var(--d, 0ms); }
.page-enter > * { animation: fadeUp .4s var(--ease) both; }
.page-enter > *:nth-child(2) { animation-delay: 50ms; } .page-enter > *:nth-child(3) { animation-delay: 100ms; } .page-enter > *:nth-child(n+4) { animation-delay: 140ms; }
.card { transition: box-shadow .3s ease, transform .3s var(--ease), border-color .3s ease; }
.variant:hover, .dish:hover, .order-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.variant:hover .variant__icon { animation: wiggle .6s ease; }
@keyframes wiggle { 25% { transform: rotate(-12deg); } 60% { transform: rotate(10deg); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease var(--d, 0ms), transform .55s var(--ease) var(--d, 0ms), box-shadow .3s ease, border-color .3s; }
.reveal.revealed { opacity: 1; transform: none; }
.reveal.revealed:hover { transform: translateY(-4px); }
.float { display: inline-block; animation: floaty 4s ease-in-out infinite; }
.skeleton-card { display: grid; gap: 12px; }
.skeleton { border-radius: 8px; height: 14px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 45%, var(--surface-2) 65%); background-size: 300% 100%; animation: shimmer 1.3s ease-in-out infinite; }
.skeleton--title { height: 26px; width: 45%; }
.skeleton--line.short { width: 60%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.fly-ghost { position: fixed; z-index: 100; object-fit: cover; pointer-events: none; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.badge.bump { animation: bump .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
.stepper input.bump { animation: numPop .25s ease; }
@keyframes numPop { 40% { transform: scale(1.18); color: var(--brand); } }
.lines > li.flash { animation: flash 1.2s ease; border-radius: 12px; }
@keyframes flash { 0% { background: var(--saffron-soft); } 100% { background: transparent; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.confetti i { position: absolute; top: 40%; border-radius: 2px; }
.boot { display: grid; place-items: center; min-height: 100vh; }
.boot__plate { width: 56px; height: 56px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: spin .9s linear infinite; }


/* ================= SupraOrder: общие ================= */
[hidden] { display: none !important; }
.nav__btn--primary { display: inline-flex; align-items: center; text-decoration: none; background: var(--grad-brand); color: var(--on-brand) !important; border-color: transparent; height: 40px; }
.nav__btn--primary:hover { background: var(--grad-brand); filter: brightness(1.06); }
.status-pill--info { background: var(--brand-soft); color: var(--brand-2); }
.status-pill--error { background: var(--danger-soft); color: var(--danger); }
.chip--small { min-height: 0; padding: 4px 10px; font-size: .8rem; vertical-align: middle; }
.platform-table .chip--small { margin-left: 6px; cursor: default; padding: 2px 9px; font-size: .74rem; }
.closed-note { text-align: center; font-weight: 600; font-size: .9rem; padding: 9px 16px; background: var(--danger-soft); color: var(--danger); }
.footer__store { font-family: var(--font-display); font-size: 1.1rem; }
.switch-row { display: flex; align-items: center; gap: 12px; font-weight: 400; margin: 0; cursor: pointer; }
.switch-row .switch { flex: none; }
.switch-row b { display: block; font-weight: 650; }
.switch-row small { display: block; color: var(--muted); font-size: .84rem; }
.ok-text { color: var(--ok); font-size: .88rem; margin-top: 4px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.grid4 > .field { margin-bottom: 0; }
.legal { max-width: 760px; padding-block: 28px 48px; }
.legal h1 { margin-top: 28px; } .legal li { margin-bottom: 8px; }

/* ---------- Лендинг ---------- */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-block: 48px 24px; }
.lp-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin-top: 12px; }
.lp-lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin-bottom: 24px; }
.lp-hero__art { position: relative; min-height: 440px; display: grid; place-items: center; }
.lp-hero__art::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 44% 56% 52% 48% / 48% 42% 58% 52%; background: radial-gradient(circle at 30% 30%, var(--saffron-soft), transparent 60%), radial-gradient(circle at 70% 70%, var(--brand-soft), transparent 62%); filter: blur(4px); }
.lp-phone { position: relative; width: 270px; padding: 14px 14px 18px; border-radius: 34px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; gap: 10px; transform: rotate(-3deg); animation: fadeUp .7s var(--ease) both; }
.lp-phone__bar { display: grid; place-items: center; height: 14px; } .lp-phone__bar span { width: 70px; height: 6px; border-radius: 99px; background: var(--line-2); }
.lp-phone__store { padding: 12px; border-radius: 18px; background: var(--grad-brand); color: var(--on-brand); }
.lp-phone__store b { display: block; font-family: var(--font-display); font-size: 1.05rem; } .lp-phone__store small { opacity: .85; font-size: .76rem; }
.lp-phone__item { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 10px; align-items: center; font-size: .84rem; padding: 6px 4px; border-bottom: 1px dashed var(--line); }
.lp-dot { width: 34px; height: 34px; border-radius: 50%; display: block; }
.lp-dot--1 { background: radial-gradient(circle at 35% 35%, #f7e3c0, #d9a86a); } .lp-dot--2 { background: radial-gradient(circle at 40% 35%, #ffe08a, #e0773f 75%); } .lp-dot--3 { background: radial-gradient(circle at 40% 40%, #bfe3a8, #3f8a64); }
.lp-phone__total { display: flex; justify-content: space-between; font-weight: 700; padding: 4px; } .lp-phone__total b { font-family: var(--font-display); font-size: 1.15rem; }
.lp-phone__btn { text-align: center; padding: 11px; border-radius: 14px; background: var(--grad-accent); color: var(--on-accent); font-weight: 700; font-size: .92rem; }
.lp-tg { position: absolute; right: 0; bottom: 30px; width: 230px; padding: 12px 14px; border-radius: 18px 18px 18px 6px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .84rem; animation: fadeUp .7s .35s var(--ease) both; }
.lp-tg p { margin: 6px 0 0; line-height: 1.45; } .lp-tg__head { font-weight: 700; color: #2a9fd6; font-size: .8rem; }
.lp-section { padding-block: 36px; }
.lp-h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); text-align: center; margin-bottom: 24px; }
.lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.lp-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s; }
.lp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lp-card h3 { font-size: 1.1rem; margin-top: 10px; } .lp-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.lp-card--accent { background: linear-gradient(135deg, var(--saffron-soft), var(--accent-soft)); border-color: transparent; }
.lp-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); font-size: 1.4rem; }
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; align-items: stretch; }
.lp-plan { position: relative; display: flex; flex-direction: column; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-plan ul { list-style: none; padding: 0; margin: 14px 0 22px; flex: 1; display: grid; gap: 8px; align-content: start; }
.lp-plan li { padding-left: 24px; position: relative; font-size: .94rem; } .lp-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-3); font-weight: 800; }
.lp-plan--main { border: 2px solid var(--brand-3); box-shadow: 0 20px 44px -22px var(--brand); transform: translateY(-6px); }
.lp-plan .ribbon { position: absolute; top: -12px; left: 22px; }
.lp-price { font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; } .lp-price small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.lp-note { text-align: center; margin-top: 18px; }
.lp-banner { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 30px 32px; border-radius: 28px; background: var(--grad-brand); color: var(--on-brand); box-shadow: var(--shadow-lg); }
.lp-banner h2 { margin-bottom: 6px; } .lp-banner p { margin: 0; opacity: .9; max-width: 620px; } .lp-banner .btn { flex: none; }
.lp-faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.lp-faq details { padding: 16px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.lp-faq summary { font-weight: 700; cursor: pointer; } .lp-faq p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Кабинет заведения ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; align-items: center; padding-block: 48px; }
.auth__side h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 12px; }
.auth__card .segmented { margin-bottom: 18px; width: 100%; } .auth__card .segmented button { flex: 1; }
.dash-head { padding-block: 22px 8px; } .dash-head h1 { margin-bottom: 6px; } .dash-head .notice { margin-top: 12px; }
.dash-head .row { gap: 10px; align-items: center; }
.order-list { display: grid; gap: 12px; }
.order-row { padding: 16px 18px; }
.order-row--new { border-color: var(--saffron); box-shadow: 0 0 0 3px color-mix(in srgb, var(--saffron) 30%, transparent), var(--shadow); }
.order-row__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.order-row__num { font-family: var(--font-display); font-size: 1.15rem; }
.order-row__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 10px; }
.order-row__lines { margin: 0; padding-left: 18px; color: var(--muted); }
.order-row__actions { margin-top: 12px; gap: 8px; }
.dish-group { margin-bottom: 18px; } .dish-group h2 { font-size: 1.05rem; margin-bottom: 8px; color: var(--muted); }
.dish-row { display: grid; grid-template-columns: 48px minmax(0,1fr) auto auto auto; gap: 14px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.dish-row:first-of-type { border-radius: var(--radius-sm) var(--radius-sm) 0 0; } .dish-row:last-child { border-bottom: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.dish-row .thumb, .dish-row img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.dish-row .thumb--ph { display: grid; place-items: center; font-size: 1.3rem; }
.dish-row__main { min-width: 0; } .dish-row__name { font-weight: 700; text-decoration: none; color: var(--text); } .dish-row__name:hover { color: var(--brand); }
.dish-row__price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish-row__avail { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 500; color: var(--muted); }
.dish-row__tools { display: flex; gap: 6px; }
.dish-row.is-off .dish-row__main, .dish-row.is-off .dish-row__price, .dish-row.is-off img { opacity: .5; }
.icon-btn--armed { width: auto; padding: 0 12px; border-radius: 999px; background: var(--danger); color: #fff; border-color: var(--danger); font-size: .82rem; font-weight: 700; }
.icon-btn--armed:hover:not(:disabled) { transform: none; background: var(--danger); color: #fff; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; margin-bottom: 40px; }
.editor__side { position: sticky; top: 90px; }
.addon-row { display: grid; grid-template-columns: minmax(0,1fr) 130px auto; gap: 8px; align-items: center; }
.money-input--small input { font-size: 1rem; font-weight: 700; } .money-input--small span { font-size: .95rem; right: 12px; }
.photo-drop { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); border: 2px dashed var(--line-2); display: grid; place-items: center; overflow: hidden; background: var(--surface-2); }
.photo-drop img { width: 100%; height: 100%; object-fit: cover; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; align-items: start; margin-bottom: 40px; }
.settings-card h2 { font-size: 1.15rem; } .settings-card .field { margin-bottom: 0; }
.tg-steps { margin: 0; padding-left: 20px; color: var(--muted); } .tg-steps li { margin-bottom: 4px; }

/* ---------- Платформа ---------- */
.platform-tools { margin-bottom: 12px; } .platform-search { max-width: 380px; }
.platform-table select { min-height: 38px; padding: 6px 10px; }
.platform-table td { vertical-align: top; } .platform-table td .btn { margin-top: 6px; }


.lang-btn { margin-left: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; min-width: 40px; height: 40px; padding: 0 10px; font: inherit; font-weight: 700; font-size: .82rem; letter-spacing: .04em; color: var(--text); cursor: pointer; }
.lang-btn:hover { background: var(--surface-2); }
select.lang-btn { -webkit-appearance: none; appearance: none; text-align: center; text-align-last: center; width: auto; min-width: 48px; }
.draft-note { color: var(--brand-2); background: linear-gradient(90deg, transparent, var(--brand-soft), transparent); }


/* ---------- Кабинет: импорт, зоны, счета, продвижение ---------- */
.grow { flex: 1; }
.import-text { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; min-height: 220px; white-space: pre; }
.import-table td { vertical-align: top; }
.addon-row--en { grid-template-columns: minmax(0,1fr) minmax(0,.8fr) minmax(0,.8fr) 120px auto; }
.zone-row { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr)) auto; gap: 8px; align-items: center; }
.zone-row .money-input { max-width: none; }
.zone-row--head { font-weight: 700; }
.zone-field { margin: 0; font-weight: 400; } .zone-field__cap { display: none; font-size: .75rem; color: var(--muted); margin-bottom: 2px; }
.invoice-list { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.invoice-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 10px; align-items: center; font-size: .92rem; }
.billing-price { margin: 0; font-size: 1.05rem; } .billing-price b { font-family: var(--font-display); font-size: 1.5rem; }
.invoice { max-width: 820px; margin: 0 auto 40px; display: grid; gap: 22px; }
.invoice__parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.invoice__parties .label, .invoice__bank .label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.invoice__table .num { text-align: right; white-space: nowrap; }
.invoice__bank { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); display: grid; gap: 3px; font-size: .94rem; }
.qr-big { display: grid; place-items: center; padding: 10px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.qr-big img { width: min(240px, 100%); height: auto; }
.qr-preview { display: grid; place-items: center; padding: 10px; background: var(--surface-2); border-radius: var(--radius-sm); }
.qr-card { width: 240px; padding: 22px 18px; border-radius: 18px; background: #fff; color: #1c211e; border: 2px solid #2f6b4f; display: grid; justify-items: center; gap: 6px; text-align: center; }
.qr-card__name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.qr-card__call { font-weight: 700; color: #2f6b4f; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.qr-card__qr { width: 150px; height: 150px; }
.qr-card__url { font-size: .75rem; color: #5e635c; word-break: break-all; }
.qr-card__en { font-size: .72rem; color: #5e635c; }
.qr-sheet { display: none; }
.post-canvas { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); }
.caption { white-space: pre-wrap; margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font: inherit; font-size: .9rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
@page { size: A4; margin: 10mm; }
@media print {
  body { background: #fff !important; }
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none !important; border: 0 !important; }
  body.printing-cards .invoice { display: none; }
  body:not(.printing-cards) .qr-sheet { display: none !important; }
  body.printing-cards .qr-sheet { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0; }
  .qr-sheet .qr-card { width: auto; height: 136mm; border: 1px dashed #999; border-radius: 0; justify-content: center; align-content: center; gap: 10px; }
  .qr-sheet .qr-card__qr { width: 62mm; height: 62mm; }
  .qr-sheet .qr-card__name { font-size: 20pt; } .qr-sheet .qr-card__call { font-size: 12pt; }
}


.link-btn.danger { color: var(--danger); }
.break { word-break: break-all; }
.tenant-actions { margin-top: 8px; gap: 6px; }
.invoice-open { display: grid; gap: 4px; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); }
.confirm-input { margin-top: 8px; min-height: 36px; }
.platform-table input[type=date] { min-height: 36px; padding: 4px 8px; }


/* ---------- ИИ-помощник подбора ---------- */
.ai-box { margin: 0 0 18px; display: grid; gap: 10px; background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--saffron-soft) 60%, var(--surface))); }
.ai-box__title { font-family: var(--font-display); font-size: 1.1rem; margin: 0; }
.ai-box__row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: stretch; }
.ai-box__row textarea { min-height: 56px; resize: vertical; }
.ai-reply { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.ai-reply p { margin: 0; } .ai-reply--ai { background: var(--brand-soft); color: var(--brand-2); }
.ribbon--ai { background: linear-gradient(135deg, #6b5bd6, #3f8a64); color: #fff; }
.spare--over { color: var(--warn); }


/* ---------- Точки и аналитика ---------- */
.loc-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr) minmax(0,.9fr) minmax(0,1fr) auto; gap: 8px; align-items: center; }
.loc-filter { min-height: 38px; padding: 6px 10px; width: auto; }
.an-chart { width: 100%; height: auto; display: block; }
.an-bar { fill: var(--brand-3); } .an-bar:hover { fill: var(--accent-2); }
.an-label { fill: var(--muted); font-size: 11px; }
.an-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.an-list li { display: flex; justify-content: space-between; gap: 10px; } .an-list li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.an-hours { display: grid; grid-template-columns: repeat(24, minmax(0,1fr)); gap: 2px; align-items: end; height: 120px; }
.an-hour { display: grid; grid-template-rows: 1fr auto; height: 100%; }
.an-hour__bar { align-self: end; display: block; background: var(--saffron); border-radius: 3px 3px 0 0; min-height: 1px; }
.an-hour span { font-size: .65rem; color: var(--muted); text-align: center; }

/* ================= Адаптивность ================= */
@media (max-width: 1020px) {
  .pick-layout, .two-col { grid-template-columns: 1fr; }
  .pick-form, .summary { position: static; }
  .hero { grid-template-columns: 1fr; padding: 28px; }
  .hero__art { height: 220px; }
  .plate--1 { width: 150px; height: 150px; top: 20px; } .plate--2 { top: 120px; width: 100px; height: 100px; } .plate--3 { width: 106px; height: 106px; } .plate--4 { top: 124px; width: 90px; height: 90px; }
}
@media (max-width: 760px) {
  .how { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; } .stats--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 14px; }
  .topbar__row { min-height: 0; padding-block: 8px 6px; row-gap: 6px; }
  .topbar .logo { font-size: 1.05rem; }
  .topbar .logo { flex: 1 1 0; min-width: 0; } .topbar .logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar__tools { flex: none; }
  .nav { order: 3; width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 0; }
  .nav a { padding: 7px 10px; font-size: .9rem; white-space: nowrap; }
  .nav { overflow-x: auto; scrollbar-width: none; }
  .nav__btn { flex: none; height: 36px; padding: 0 12px; }
  .theme-btn { width: 36px; height: 36px; margin-left: 0; }
  .lang-btn { height: 36px; min-width: 36px; margin-left: 0; padding: 0 8px; }
  .card { padding: 16px; border-radius: 18px; }
  .hero { padding: 22px 18px; border-radius: 24px; }
  .hero__art { display: none; }
  .hero__facts li { min-width: 0; flex: 1; padding: 8px 12px; }
  .variant__head, .variant__body, .variant__foot { padding-inline: 16px; }
  .variant__price { align-items: flex-start; text-align: left; padding-right: 0; }
  .nutri { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid2 { grid-template-columns: 1fr; }
  .ai-box__row { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 60px minmax(0,1fr); }
  .cart-line .thumb { width: 60px; height: 60px; }
  .cart-line__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .cat-tabs { top: 92px; margin-inline: -14px; padding-inline: 14px; }
  .order-card { grid-template-columns: minmax(0,1fr) auto; } .order-card .avatars { display: none; }
  .flow { flex-wrap: nowrap; gap: 6px; }
  .flow li { gap: 6px; }
  .flow li + li::before { width: 14px; }
  .flow li:not(.current) .flow__label { display: none; }
}
@media (max-width: 400px) {
  .nav a { padding: 7px 7px; font-size: .86rem; }
  .nav__cart { gap: 4px; }
  .nav { overflow-x: auto; scrollbar-width: none; }
}
@media (max-width: 900px) {
  .lp-hero, .auth, .editor { grid-template-columns: 1fr; }
  .lp-hero__art { min-height: 380px; }
  .lp-grid, .lp-plans, .settings-grid { grid-template-columns: 1fr; }
  .lp-plan--main { transform: none; }
  .lp-banner { flex-direction: column; align-items: flex-start; }
  .editor__side { position: static; }
  .auth { padding-block: 24px; gap: 20px; }
}
@media (max-width: 640px) {
  .lp-hero { padding-top: 24px; }
  .lp-hero__art { min-height: 0; display: block; } .lp-hero__art::before, .lp-tg { display: none; } .lp-phone { margin: 0 auto; transform: none; }
  .lp-banner { padding: 22px; }
  .order-row__body { grid-template-columns: 1fr; gap: 8px; }
  .dish-row { grid-template-columns: 44px minmax(0,1fr) auto; row-gap: 8px; column-gap: 12px; }
  .dish-row__avail { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .dish-row__tools { grid-column: 1 / -1; grid-row: 2; justify-self: end; }
  .dish-row__avail span { display: none; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .addon-row { grid-template-columns: minmax(0,1fr) 100px auto; }
  .addon-row--en { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .addon-row--en > :first-child { grid-column: 1 / -1; }
  .zone-row { grid-template-columns: 1fr 1fr 1fr; } .zone-row > input { grid-column: 1 / -1; } .zone-row > .icon-btn { grid-column: 3; justify-self: end; } .zone-row--head { display: none; } .zone-field__cap { display: block; }
  .invoice__parties { grid-template-columns: 1fr; }
  .loc-row { grid-template-columns: 1fr 1fr; } .loc-row > .icon-btn { justify-self: end; }
  .invoice-row { grid-template-columns: auto minmax(0,1fr) auto; } .invoice-row > .status-pill { grid-column: 1 / -1; justify-self: start; }
  .platform-table thead { display: none; }
  .platform-table, .platform-table tbody, .platform-table tr, .platform-table td { display: block; width: 100%; }
  .platform-table tr { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--surface); }
  .platform-table td { border: 0; padding: 6px 12px; }
  .platform-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .8rem; font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
h1[tabindex="-1"]:focus { outline: none; }
.auth__forgot { text-align: center; }

/* ---------- Двухфакторная защита и reCAPTCHA ---------- */
.danger-text { color: var(--danger); }
.tf-setup { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.tf-qr { width: 200px; height: 200px; background: #fff; padding: 10px; border-radius: 14px; border: 1px solid var(--line); image-rendering: pixelated; }
.tf-secret { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; letter-spacing: .04em; word-break: break-all; background: var(--surface-2); padding: 8px 10px; border-radius: 10px; }
.tf-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; margin: 0; padding-left: 34px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.captcha-note { font-size: .75rem; color: var(--muted); text-align: center; margin: 0; }
.captcha-note a { color: inherit; }
.grecaptcha-badge { visibility: hidden; } /* подпись .captcha-note под формой вместо значка — так разрешают правила Google */

/* ---------- Режим работы ---------- */
.sched-row { display: grid; grid-template-columns: 120px 1fr auto 1fr auto; gap: 8px; align-items: center; }
.sched-row__day { font-weight: 600; font-size: .92rem; }
.sched input[type=time] { min-width: 0; }
@media (max-width: 560px) { .sched-row { grid-template-columns: 1fr auto 1fr; } .sched-row__day, .sched-row .check { grid-column: 1 / -1; } }
.eta-select { width: auto; min-width: 0; padding: 6px 28px 6px 10px; font-size: .86rem; }
.order-row__status { margin-top: -4px; }
/* ---------- Промокоды ---------- */
.discount { color: var(--ok); }
.promo-box { margin: 6px 0 10px; }
.promo-details summary { cursor: pointer; color: var(--muted); }
.promo-details .row { margin-top: 8px; flex-wrap: nowrap; }
.promo-input { flex: 1; min-width: 0; text-transform: uppercase; }
.promo-row { display: grid; grid-template-columns: minmax(0,1.1fr) 90px minmax(0,.8fr) minmax(0,.9fr) minmax(0,.9fr) minmax(0,.8fr) auto auto; gap: 8px; align-items: center; }
.promo-row__head { font-size: .78rem; color: var(--muted); }
@media (max-width: 760px) { .promo-row { grid-template-columns: 1fr 1fr; } .promo-row--head { display: none; } .promo-row > input:first-child { grid-column: 1 / -1; } }
/* ---------- Чек-лист первых шагов ---------- */
.onboarding__list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.onboarding__list li.done { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.onboarding__list li.done a, .onboarding__list li.done small { text-decoration: none; }
.onboarding__mark { display: inline-block; width: 18px; font-weight: 700; }
.sched .row > select { width: auto; flex: 0 1 220px; }
input[type=time], input[type=date] { font-variant-numeric: tabular-nums; }
.settings-grid__wide { grid-column: 1 / -1; }
/* ---------- Заказ за столиком ---------- */
.table-note { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center; padding: 8px 16px; font-size: .9rem; background: var(--saffron-soft); border-bottom: 1px solid var(--line); }
.table-note__btns { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tip-box { margin: 8px 0 12px; }
.tip-custom { display: inline-flex; align-items: center; gap: 6px; }
.tip-input { width: 80px; min-width: 0; padding: 6px 8px; }
.chips .tip-custom { flex-basis: 100%; }
.waiter-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto auto; gap: 8px; align-items: center; }
.table-row { display: grid; grid-template-columns: minmax(0,.6fr) minmax(0,1fr) auto; gap: 8px; align-items: center; }
.qr-card__table { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--brand-2); }
@media (max-width: 560px) { .waiter-row { grid-template-columns: 1fr auto; } .waiter-row > input:first-child { grid-column: 1 / -1; } }
@media print { body.printing-tables .qr-sheet:not(.qr-sheet--tables) { display: none !important; } body.printing-cards:not(.printing-tables) .qr-sheet--tables { display: none !important; } }

/* ---------- Лендинг: языки, «каждый день», подсказки; страница помощи ---------- */
.lang-switch { display: inline-flex; gap: 2px; margin-left: 4px; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.lang-switch a { padding: 4px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: var(--muted); }
.lang-switch a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.lang-switch--footer { margin: 6px 0 0; }
.lp-h3 { text-align: center; font-size: 1.25rem; margin: 26px 0 14px; }
.lp-center { text-align: center; margin: -10px 0 18px; }
.day { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: day; }
.day li { position: relative; padding: 18px 16px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.day li::after { content: "→"; position: absolute; right: -14px; top: 22px; color: var(--muted); font-weight: 700; }
.day li:last-child::after { content: none; }
.day__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); font-size: 1.2rem; margin-bottom: 8px; }
.day b { display: block; font-family: var(--font-display); margin-bottom: 4px; }
.day p { margin: 0; font-size: .86rem; color: var(--muted); }
.lp-faq--wide { max-width: 900px; }
.lp-tg__btns { display: flex; gap: 6px; margin-top: 8px; }
.lp-tg__btns span { flex: 1; text-align: center; padding: 5px 4px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-2); font-weight: 700; font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-tg__btns .lp-tg__btn--no { background: var(--danger-soft, #fde8e6); color: var(--danger); flex: 0 0 auto; }
.help { max-width: 860px; padding-block: 28px 48px; }
.help__head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.help__toc { margin: 18px 0 28px; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.help__toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; gap: 24px; }
.help__toc li { break-inside: avoid; padding: 2px 0; }
.help-section { margin: 0 0 26px; padding: 18px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.help-section h2 { font-size: 1.2rem; margin: 0 0 10px; }
.help-section ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.help-section li { line-height: 1.5; }
.help-section code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.help__support { text-align: center; color: var(--muted); }
@media (max-width: 900px) { .day { grid-template-columns: 1fr 1fr; } .day li::after { content: none; } }
@media (max-width: 560px) { .day { grid-template-columns: 1fr; } .help__toc ol { columns: 1; } .lang-switch { margin-left: 0; } }
