/* ================================================================
   «Еда по делу» — оформление
   Палитра: тёплый кремовый фон, глубокий зелёный, терракота, шафран.
   ================================================================ */
: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;
  --grad-hero: linear-gradient(95deg, var(--brand), var(--accent) 70%, var(--warn));
  --field: #ffffff; --field-line: #cdc2b0; --raised: #ffffff; --focus: #b07a1a; --tg: #1877ad; --on-danger: #ffffff; --brand-glow: #2f6b4f; --accent-glow: #b5461a;
  --grad-brand-deep: linear-gradient(135deg, #357451 0%, #2f6b4f 55%, #245640 100%); --on-brand-deep: #ffffff; --grad-warm: linear-gradient(135deg, var(--saffron-soft), var(--accent-soft));
  --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, #357451 0%, #2f6b4f 55%, #245640 100%);
  --grad-accent: linear-gradient(135deg, #b54f20 0%, #ad4318 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;
    --grad-hero: linear-gradient(95deg, var(--brand-3), var(--accent-2) 70%, var(--saffron));
    --field: #151a17; --field-line: #424c45; --raised: #343d37; --focus: #f4c25e; --tg: #4fb3e8; --on-danger: #2a0d0b; --brand-glow: rgba(0,0,0,.6); --accent-glow: rgba(0,0,0,.6);
    --grad-brand-deep: linear-gradient(135deg, #2e6049 0%, #1f4434 100%); --on-brand-deep: #eef2ee; --grad-warm: linear-gradient(135deg, color-mix(in srgb, var(--saffron) 8%, var(--surface)), color-mix(in srgb, var(--accent) 10%, var(--surface)));
    --warn: #f3c46b; --warn-soft: #362c1a; --danger: #ff8a80; --danger-soft: #3b2220; --ok: #7fdca6; --ok-soft: #1c3326;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.45); --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;
  --grad-hero: linear-gradient(95deg, var(--brand-3), var(--accent-2) 70%, var(--saffron));
    --field: #151a17; --field-line: #424c45; --raised: #343d37; --focus: #f4c25e; --tg: #4fb3e8; --on-danger: #2a0d0b; --brand-glow: rgba(0,0,0,.6); --accent-glow: rgba(0,0,0,.6);
    --grad-brand-deep: linear-gradient(135deg, #2e6049 0%, #1f4434 100%); --on-brand-deep: #eef2ee; --grad-warm: linear-gradient(135deg, color-mix(in srgb, var(--saffron) 8%, var(--surface)), color-mix(in srgb, var(--accent) 10%, var(--surface)));
  --warn: #f3c46b; --warn-soft: #362c1a; --danger: #ff8a80; --danger-soft: #3b2220; --ok: #7fdca6; --ok-soft: #1c3326;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.45); --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;
}
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(--focus); 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-glow); }
.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-glow), inset 0 1px 0 rgba(255,255,255,.18); }
.btn--primary:not(:disabled):hover { box-shadow: 0 12px 26px -10px var(--brand-glow), 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-glow), inset 0 1px 0 rgba(255,255,255,.2); }
.btn--accent:not(:disabled):hover { box-shadow: 0 12px 26px -10px var(--accent-glow); 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: var(--surface); border-color: var(--line-2); }
.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(--field-line); border-radius: 13px; background: var(--field); color: var(--text); min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--field-line) 65%, var(--muted)); }
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(--field-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; background: transparent; 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-glow); }
.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(--raised); color: var(--text); box-shadow: var(--shadow-sm); }
.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; }
.grid2 .money-input { max-width: none; }
.grid2 .money-input input { padding-block: 9px; line-height: 1.25; }
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 { content: "−"; }
.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: var(--grad-hero); -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-height: 1; background: linear-gradient(140deg, var(--brand-soft), var(--surface-2)); border: 1px solid var(--line); }
.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) calc(100% - 8px), 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: 50px; 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; }
/* Блюдо без фото — компактная карточка: значок раздела вместо пустого блока картинки */
.dish--compact .dish__body { padding: 16px 18px; gap: 8px; }
.dish-grid--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; } /* раздел без фото — карточки шире, название в 1–2 строки */
.dish__head { display: flex; gap: 12px; align-items: flex-start; }
.dish__head .dish__top { flex: 1; min-width: 0; }
.dish__icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; line-height: 1; background: linear-gradient(140deg, var(--brand-soft), var(--surface-2)); border: 1px solid var(--line); }
.dish--compact .dish__tags { position: static; }
.dish--compact .tag { background: var(--surface-2); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.dish.is-off .dish__icon { 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 6; }
@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; }
.login-card h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); }
.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-deep); border-color: transparent; }
.stat.stat--accent span, .stat.stat--accent b { color: var(--on-brand-deep); }
.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; line-height: 1.15; margin-top: 4px; }
.stat b, .order-row__head .row > b, .order-card__side b, .an-list li, .invoice-row, .billing-price b { font-variant-numeric: tabular-nums; }

/* ---------- Уведомление ---------- */
.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; width: max-content; max-width: min(560px, calc(100vw - 32px)); text-align: center; overflow-wrap: anywhere; 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; }


/* ================= Shekveta: общие ================= */
[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: flex-start; gap: 12px; font-weight: 400; margin: 0; cursor: pointer; }
.switch-row .switch { flex: none; margin-top: 1px; }
.stack > * + .switch-row, .stack > * + .tg-steps { margin-top: 14px; }
.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 h2 { margin-top: 1.6em; }
.legal .legal-h1 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 8px; }
.legal li::marker, .help-section li::marker { color: var(--brand-3); }
.legal > p.muted:last-child { margin-top: 32px; }

/* ---------- Лендинг ---------- */
.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; 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-deep); color: var(--on-brand-deep); }
.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: 252px; 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: var(--tg); 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: var(--grad-warm); 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; padding-top: 10px; }
.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-glow); padding: 25px 21px; background: linear-gradient(180deg, color-mix(in srgb, var(--brand-soft) 65%, var(--surface)) 0, var(--surface) 160px); }
.lp-plan .ribbon { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.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-deep); color: var(--on-brand-deep); 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 { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.lp-faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.lp-faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px; border-radius: inherit; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease), border-color .2s; }
.lp-faq summary:hover::after, .lp-faq details[open] summary::after { border-color: var(--brand); }
.lp-faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lp-faq p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---------- Кабинет заведения ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; align-items: start; padding-block: 48px; }
.auth__side { padding-top: clamp(0px, 4vw, 48px); }
.auth__side h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 12px; text-wrap: balance; }
.auth__side > p { font-size: 1.06rem; max-width: 36em; text-wrap: pretty; }
.auth__card .segmented { margin-bottom: 18px; width: 100%; } .auth__card .segmented button { flex: 1; }
.dash-head { padding-block: 22px 16px; } .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.3rem; letter-spacing: -.01em; }
.order-row__head > .row { gap: 6px 8px; }
.order-row__head > .row > b { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; margin-left: 4px; white-space: nowrap; }
.order-row__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 10px; }
.order-row__lines { list-style: none; margin: 0; padding: 10px 14px; display: grid; gap: 6px; align-self: start; color: var(--text); font-size: 1rem; line-height: 1.4; background: var(--surface-2); border-radius: var(--radius-xs); }
.order-row__lines li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
.order-row__qty { min-width: 3.4ch; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--brand-2); }
.order-row__actions { margin-top: 14px; gap: 8px; }
.dish-group { margin-bottom: 18px; padding-bottom: 8px; } .dish-group h2 { font-size: 1.05rem; margin-bottom: 8px; color: var(--muted); }
.dish-group h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.dish-group .dish-row { padding-inline: 0; background: transparent; }
.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; background: linear-gradient(140deg, var(--brand-soft), var(--surface-2)); }
.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: var(--on-danger); border-color: var(--danger); font-size: .82rem; font-weight: 700; }
.icon-btn--armed:hover:not(:disabled) { transform: none; background: var(--danger); color: var(--on-danger); }
.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: 40px; min-width: 40px; min-height: 0; padding: 0; }
.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; aspect-ratio: 1; }
.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; overflow: visible; }
.an-bar { fill: var(--brand-3); } .an-bar:hover { fill: var(--accent-2); }
.an-label { fill: var(--muted); font-size: 10px; }
@media (max-width: 760px) { .an-label { font-size: 15px; } }
@media (max-width: 560px) { .an-label { font-size: 21px; } }
.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: 103px; 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-banner { flex-direction: column; align-items: flex-start; }
  .editor__side { position: static; }
  .auth { padding-block: 24px; gap: 20px; }
  .auth__side { padding-top: 0; }
}
@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; rotate: 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 > .spread { flex-wrap: nowrap; align-items: flex-start; }
.onboarding > .spread > b { min-width: 0; }
.onboarding > .spread > .link-btn { flex: none; }
.onboarding__list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
/* Длинные строки (грузинский, телефон) переносятся под текст, а не под галочку; кнопка-ссылка — как обычная ссылка. */
.onboarding__list li { position: relative; padding-left: 30px; }
/* Сделанное — приглушено, с заполненной галочкой; оставшийся шаг — пустой кружок и жирная ссылка */
.onboarding__list li.done { color: var(--muted); }
.onboarding__list li.done a, .onboarding__list li.done .link-btn { color: inherit; text-decoration: none; }
.onboarding__list li:not(.done) > a, .onboarding__list li:not(.done) > .link-btn { font-weight: 650; }
.onboarding__mark { position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; line-height: 1; font-weight: 800; border: 2px solid var(--ok); color: transparent; }
.onboarding__list li.done .onboarding__mark { background: var(--brand-3); border-color: var(--brand-3); color: var(--on-brand); }
.onboarding__list .link-btn { display: inline; text-align: left; }
@media (max-width: 640px) { .onboarding__list small { display: block; margin-top: 1px; } }
.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: minmax(0, 1fr) auto 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(--raised); color: var(--text); box-shadow: var(--shadow-sm); }
.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: -17px; top: 27px; z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--brand); font-size: .72rem; font-weight: 700; line-height: 1; }
.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 b { display: block; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -.01em; }
.help__toc ol { margin: 10px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.help__toc li { break-inside: avoid; padding: 2px 0; }
.help__toc li::marker { color: var(--muted); font-size: .85em; font-variant-numeric: tabular-nums; }
.help__toc a { color: var(--brand-2); text-decoration: none; }
.help__toc a:hover { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; }
.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; } }

/* ================= Обучение: всплывающие подсказки (tour.js) ================= */
.tour { position: fixed; inset: 0; z-index: 1000; }
.tour__shade { position: absolute; inset: 0; background: transparent; }
.tour__shade--full { background: rgba(12, 16, 14, .55); }
.tour__spot { position: fixed; border-radius: var(--radius-xs); box-shadow: 0 0 0 9999px rgba(12, 16, 14, .55), 0 0 0 3px var(--saffron); pointer-events: none; transition: left .25s var(--ease), top .25s var(--ease), width .25s var(--ease), height .25s var(--ease); }
.tour__card { position: fixed; width: min(360px, calc(100vw - 24px)); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 16px 18px 14px; display: grid; gap: 8px; outline: none; transition: left .25s var(--ease), top .25s var(--ease); }
.tour__card:focus-visible { box-shadow: var(--shadow-lg), 0 0 0 3px var(--focus); }
.tour__card[data-side="sheet"] { left: 12px !important; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); top: auto !important; width: auto; }
.tour__progress { height: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.tour__progress span { display: block; height: 100%; background: var(--grad-brand); transition: width .25s var(--ease); }
.tour__title { margin: 0; font-size: 1.12rem; line-height: 1.3; text-wrap: balance; }
.tour__text { margin: 0; color: var(--muted); line-height: 1.5; }
.tour__actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.tour__grow { flex: 1; }
.tour--busy .tour__card { opacity: .6; }
.learn { position: relative; }
.learn__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 6px; display: grid; }
.learn__menu button, .learn__menu a { text-align: left; background: none; border: 0; font: inherit; color: var(--text); padding: 10px 12px; border-radius: var(--radius-xs); cursor: pointer; text-decoration: none; }
.learn__menu button:hover, .learn__menu a:hover, .learn__menu button:focus-visible, .learn__menu a:focus-visible { background: var(--surface-2); }
.learn__menu small { display: block; color: var(--muted); }
.guide-video { display: grid; gap: 12px; }
.guide-video video { width: 100%; border-radius: var(--radius-sm); background: #0d100e; aspect-ratio: 16 / 9; }
.guide-chapters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.guide-chapters button { font: inherit; font-size: .9rem; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.guide-chapters button:hover { background: var(--surface-2); }
.guide-chapters b { font-variant-numeric: tabular-nums; color: var(--brand); margin-right: 4px; }
@media (prefers-reduced-motion: reduce) { .tour__spot, .tour__card, .tour__progress span { transition: none; } }
@media print { .tour, .learn__menu { display: none !important; } }

/* Язык кабинета */
/* Язык кабинета — коротким кодом (RU · EN · KA), как на витрине: так шапка не переносится на грузинском. */
#dash-lang { font: inherit; font-size: .9rem; font-weight: 700; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; width: auto; min-width: 48px; flex: none; min-height: 0; height: 40px; padding: 0 10px; cursor: pointer; -webkit-appearance: none; appearance: none; text-align: center; text-align-last: center; }
@media (max-width: 560px) { #dash-lang { height: 44px; min-width: 44px; font-size: .86rem; } }
#dash-lang:hover { background: var(--surface-2); }
#dash-lang:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Грузинские надписи шире: на ноутбуке шапка кабинета должна уместиться в одну строку. */
@media (min-width: 561px) and (max-width: 1440px) {
  html:lang(ka) .nav a { padding: 9px 8px; font-size: .88rem; }
  html:lang(ka) .nav__btn { padding: 0 10px; font-size: .88rem; }
}

/* Скрытое поле-ловушка для ботов в форме регистрации */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Кнопка «Войти через Google» — по правилам оформления Google (светлая и тёмная версии) */
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #747775; background: #fff; color: #1f1f1f; font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.gbtn:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(60,64,67,.25); }
.gbtn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gbtn__logo { width: 18px; height: 18px; flex: none; }
.auth__card .gbtn { width: 100%; min-height: 48px; }
.merge__who, .auth__who { display: grid; gap: 2px; margin: 0; overflow-wrap: anywhere; padding: 12px 14px; border-radius: var(--radius-xs); background: var(--surface-2); line-height: 1.45; }
.merge__option { padding-top: 16px; border-top: 1px solid var(--line); }
.merge__who + .merge__option { border-top: 0; padding-top: 4px; }
.merge__option h2 { font-size: 1.05rem; line-height: 1.3; margin: 0; }
.merge__option .hint { margin: 4px 0 0; }
.merge__option > [role="alert"]:empty { margin-top: 0; }
.auth__or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; }
.auth__or::before, .auth__or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gbtn { background: #131314; border-color: #8e918f; color: #e3e3e3; } :root:not([data-theme="light"]) .gbtn:hover { background: #1e1f20; } }
:root[data-theme="dark"] .gbtn { background: #131314; border-color: #8e918f; color: #e3e3e3; }
:root[data-theme="dark"] .gbtn:hover { background: #1e1f20; }
.auth__google:not(:empty) { margin-bottom: 16px; }

/* ---------- Телефон: зоны нажатия не меньше 40 px, длинные грузинские статусы не выталкивают карточки ---------- */
.back { display: inline-flex; align-items: center; min-height: 40px; }
.link-btn:not(.onboarding__list .link-btn) { min-height: 32px; }
details.more > summary, .promo-details summary { min-height: 40px; }
.promo-details summary { display: flex; align-items: center; }
.dish-row__name { display: inline-block; padding: 6px 0; }
.invoice-row a, .order-row a[href^="tel:"] { display: inline-block; padding: 8px 0; }
input[type="file"] { min-height: 44px; max-width: 100%; }
input[type="file"]::file-selector-button { min-height: 40px; padding: 0 14px; margin-right: 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 560px) {
  .order-card { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .order-card__side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; }
  .order-card .status-pill, .order-row .status-pill { white-space: normal; }
}

/* Витрина: подбор набора под бюджет — кнопкой над меню (главная витрины — меню) */
.pick-cta { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: 0 0 18px; text-decoration: none; color: inherit; }
.pick-cta:hover { border-color: var(--brand-3); }
.pick-cta__icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; font-size: 1.4rem; line-height: 1; background: linear-gradient(140deg, var(--brand-soft), var(--surface-2)); border: 1px solid var(--line); }
.pick-cta__text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.pick-cta__text .muted { font-size: .9rem; }
.pick-cta__go { flex: none; font-size: 1.3rem; color: var(--brand); }

/* Настройки по вкладкам */
.settings-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 16px; padding-bottom: 2px; }
.settings-tabs::-webkit-scrollbar { display: none; }
.settings-tabs .chip { flex: none; white-space: nowrap; }
.settings-tabs .chip[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* Кабинет: в разделах, кроме «Заказов», — компактная шапка */
.dash-head--compact { padding-block: 4px 10px; }
.dash-head--compact h1 { font-size: .95rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; margin: 0; color: var(--muted); }
.topbar--dash ~ #main > .notice { margin-bottom: 14px; }
.topbar--dash ~ #main > .spread { align-items: center; }

/* ---------- Узкие экраны (от 320 px): колонки сжимаются, длинные слова переносятся, ничего не шире экрана ---------- */
@media (max-width: 900px) {
  .lp-hero, .auth, .editor, .lp-grid, .lp-plans, .settings-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1020px) { .pick-layout, .two-col { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .invoice__parties, .day { grid-template-columns: minmax(0, 1fr); }
  .segmented { max-width: 100%; }
  .segmented button { min-width: 0; white-space: normal; line-height: 1.2; }
  .spread > * { min-width: 0; max-width: 100%; }
  .dish-row__bar { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .dish-row__tools { gap: 4px; }
  .invoice__table { table-layout: fixed; }
  .invoice__table th, .invoice__table td { padding: 8px 6px; overflow-wrap: break-word; }
  .invoice__table .num { width: 84px; }
  .status-hero { padding: 14px; gap: 12px; }
  .status-hero > * { min-width: 0; }
  .status-hero__icon { width: 46px; height: 46px; font-size: 1.5rem; border-radius: 14px; }
}
@media (max-width: 400px) {
  .icon-btn { width: 34px; height: 34px; }
  .segmented button { padding: 6px 8px; font-size: .85rem; overflow-wrap: anywhere; }
  .line { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; }
  .line .thumb { width: 44px; height: 44px; border-radius: 11px; }
  .swap-btn { padding: 3px 9px; }
}
details.more summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
@media (max-width: 420px) { .hero__facts li { flex: 1 1 130px; } }
.card, .notice, .order-row, .order-card, .invoice, .hero__facts li, .line__name, .help section, .dash-head h1 { overflow-wrap: break-word; }
code, .break { overflow-wrap: anywhere; word-break: break-word; }

/* Строка блюда: на компьютере переключатель и кнопки — обычные ячейки сетки, на телефоне — одна полоса под названием */
@media (min-width: 561px) { .dish-row__bar { display: contents; } }
/* Самые узкие телефоны (320 px): порядок блюд меняют на экране пошире, здесь — только наличие, «Изменить» и удаление */
@media (max-width: 359px) { .dish-row__tools .icon-btn:not(.icon-btn--danger) { display: none; } }

/* Владелец уже входил: шапка с разделами с первого кадра (см. theme.js) */
html.has-session #dash-nav[hidden] { display: flex !important; }
@media (min-width: 561px) {
  .topbar--store .topbar__row { flex-wrap: nowrap; }
  .topbar--store .logo { min-width: 0; flex: 0 1 auto; }
  .topbar--store .logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar--store .nav { flex-wrap: nowrap; flex: none; }
}

/* Фото блюда: вся область и кнопка открывают выбор файла; фокус с клавиатуры виден на области */
label.photo-drop { cursor: pointer; }
.file-input:focus-visible + .photo-drop { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Шапка кабинета на планшете и телефоне: логотип и язык — первая строка, разделы — одна прокручиваемая строка */
@media (max-width: 1100px) {
  .topbar--dash .topbar__row { flex-wrap: wrap; row-gap: 4px; padding-block: 8px 4px; min-height: 0; }
  .topbar--dash .logo { flex: 1 1 auto; }
  .topbar--dash #dash-lang { order: 2; }
  .topbar--dash .nav { order: 3; width: 100%; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .topbar--dash .nav::-webkit-scrollbar { display: none; }
  .topbar--dash .nav > * { flex: none; }
  /* Меню «Обучение» — панелью под шапкой: прокручиваемая строка разделов его не обрезает */
  .topbar--dash .learn { position: static; }
  .topbar--dash .learn__menu { position: fixed; top: 100%; left: 12px; right: 12px; min-width: 0; max-height: min(70vh, 520px); overflow-y: auto; }
}
.learn__menu button, .learn__menu a { white-space: normal; overflow-wrap: break-word; }

/* ---------- Компактные кнопки и поля: 38 px мышью, 44 px пальцем; кнопки и поля одной строки — одной высоты ---------- */
:root { --control-sm: 38px; }
@media (pointer: coarse) { :root { --control-sm: 44px; } }
.btn--small, .segmented button { min-height: var(--control-sm); }
.chip { min-height: max(40px, var(--control-sm)); }
.chip--small { min-height: 0; }
.eta-select, .loc-filter, .table input[type=number], .platform-table select, .platform-table input[type=date], .confirm-input, .order-row__actions input { min-height: var(--control-sm); border-radius: 11px; }
.order-row__actions input { padding-block: 6px; }
@media (pointer: coarse) { .icon-btn { width: 44px; height: 44px; } .icon-btn--armed { width: auto; } }

/* ---------- Витрина на телефоне: шапка 103 px — язык и тема 44 px, разделы 44 px, название заведения в две строки ---------- */
@media (max-width: 560px) {
  .topbar--store .topbar__row { padding-block: 6px 4px; row-gap: 4px; }
  .topbar--store .logo { font-size: 1rem; line-height: 1.2; }
  .topbar--store .logo span { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
  .topbar--store .lang-btn, .topbar--store .theme-btn { width: 44px; min-width: 44px; height: 44px; padding: 0; }
  .topbar--store .nav a { min-height: 44px; display: inline-flex; align-items: center; border-block: 4px solid transparent; background-clip: padding-box; }
}
@media (max-width: 400px) { html:lang(ka) .topbar--store .nav a { padding-inline: 5px; font-size: .8rem; } }

/* Витрина на телефоне: у карточки блюда и набора — один отступ (фото от края до края); «− 1 +» и «В корзину» — 44 px */
@media (max-width: 560px) {
  .card.dish, .card.variant { padding: 0; }
  .dish__actions .stepper--small button { width: 44px; min-height: 44px; }
  .dish__actions .stepper--small input { min-height: 44px; }
  .dish__actions .btn--small { min-height: 44px; padding-inline: 18px; flex: 1 1 auto; }
}
@media (max-width: 560px) { .section-title { scroll-margin-top: 85px; } } /* 90 + 85: заголовок раздела — сразу под полосой разделов */
.cart-line .thumb--ph { font-size: 1.8rem; }

/* Корзина на телефоне: сумма строки — у правого края рядом с «✕»; кнопки 40 px (44 на 320 px не помещаются) */
@media (max-width: 560px) {
  .cart-line__side { justify-content: flex-start; gap: 10px; }
  .cart-line__side b { margin-left: auto; min-width: 0; }
  .cart-line__side .stepper--small button { width: 40px; min-height: 40px; }
  .cart-line__side .stepper--small input { min-height: 40px; }
  .cart-line__side .icon-btn { width: 40px; height: 40px; }
}
/* «Промокод» — видно, что раскрывается: зелёная надпись со стрелкой; «Применить» — в рост поля */
.promo-details summary { list-style: none; width: fit-content; min-height: 44px; gap: 8px; color: var(--brand); font-weight: 600; }
.promo-details summary::-webkit-details-marker { display: none; }
.promo-details summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
.promo-details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.promo-details .row .btn { min-height: 48px; }
.promo-input::placeholder { text-transform: none; }
/* Оформление: «Имя / Телефон» — тот же шаг 22 px, что у остальных полей; «Опишите словами» на телефоне — подсказка целиком */
.topbar--store ~ #main .grid2:has(> .field) { row-gap: 22px; margin-bottom: 22px; }
@media (max-width: 560px) { .ai-box__row textarea { min-height: 100px; } }
/* Заказ завершён: на телефоне у последнего шага видна подпись «Готово», а не только галочки */
@media (max-width: 560px) { .flow:not(:has(.current)) { display: none; } } /* заказ уже оформлен — полоса «корзина → оформление» не нужна */

/* ---------- Лендинг и подсказки: язык и «Войти» всегда на экране; разделы — прокручиваемая строка с затуханием справа ---------- */
.lp .topbar__tools .lang-switch, .lp .topbar__tools .nav__btn { margin-left: 0; }
.lang-switch a { transition: color .2s, background-color .2s; }
.lang-switch a:not([aria-current]):hover { color: var(--text); }
@media (max-width: 1000px) {
  .lp .topbar__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo login" "nav lang"; align-items: center; column-gap: 10px; row-gap: 2px; min-height: 0; padding-block: 8px 4px; }
  .lp .topbar__row > .logo { grid-area: logo; }
  .lp .topbar__tools { display: contents; }
  .lp .topbar__tools .nav__btn { grid-area: login; justify-self: end; }
  .lp .topbar__tools .lang-switch { grid-area: lang; }
  .lp .topbar .nav { grid-area: nav; order: 0; width: auto; min-width: 0; margin: 0 0 0 -10px; padding-right: 24px; flex-wrap: nowrap; justify-content: flex-start; gap: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .lp .topbar .nav::-webkit-scrollbar { display: none; }
  .lp .topbar .nav a { flex: none; min-height: 44px; display: inline-flex; align-items: center; scroll-snap-align: start; }
  html:has(body.lp) { scroll-padding-top: 112px; }
}
@media (max-width: 560px) {
  .lp .topbar .nav__btn { height: 44px; }
  .lp .topbar .lang-switch a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 9px; }
}

/* ---------- Лендинг, первый экран ---------- */
/* Телефон слева, карточка Telegram выходит из-под нижнего угла: цены, «Итого» и «Оформить заказ» открыты */
@media (min-width: 641px) {
  .lp-hero__art { display: block; min-height: 0; width: min(100%, 440px); justify-self: center; padding-bottom: 150px; }
  .lp-phone { margin: 0; }
  .lp-tg { right: 0; bottom: auto; top: calc(100% - 172px); }
}
/* «Видео» — третьим, тихим действием; на телефоне две главные кнопки — во всю ширину */
.btn--quiet { background: transparent; border-color: transparent; box-shadow: none; color: var(--brand); }
.btn--quiet:hover { background: var(--brand-soft); filter: none; }
.lp-hero .btn--quiet { padding-inline: 10px; margin-left: -10px; }
@media (max-width: 560px) {
  .lp-hero .row > .btn { flex: 1 1 100%; }
  .lp-hero .btn--quiet { margin-left: 0; }
}
/* Заголовки без «висячих» слов; плашка над заголовком при переносе — мягкий прямоугольник, точка у первой строки */
.lp-hero h1, .lp-h2, .lp-h3 { text-wrap: balance; }
.lp-hero .hero__kicker { border-radius: 16px; align-items: flex-start; }
.lp-hero .hero__kicker::before { flex: none; margin-top: .45em; }
/* Факты на телефоне — ровной тройкой (грузинский на 320 px — две плюс одна во всю ширину) */
@media (max-width: 560px) {
  .lp-hero .hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .lp-hero .hero__facts li { min-width: 0; padding: 10px 10px 11px; }
  .lp-hero .hero__facts b { font-size: 1.2rem; }
  .lp-hero .hero__facts span { font-size: .76rem; line-height: 1.3; margin-top: 2px; }
}
@media (max-width: 359px) { html:lang(ka) .lp-hero .hero__facts { grid-template-columns: 1fr 1fr; } html:lang(ka) .lp-hero .hero__facts li:last-child { grid-column: 1 / -1; } }
/* Лендинг: второй баннер (переезд с GloriaFood) — мягкий тёплый и ближе к первому; на телефоне кнопка баннера во всю ширину */
.lp-section:has(> .lp-banner) + .lp-section:has(> .lp-banner--soft) { padding-top: 0; }
.lp-banner--soft { background: var(--grad-warm); color: var(--text); box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent); }
.lp-banner--soft p { color: var(--muted); opacity: 1; }
@media (max-width: 640px) { .lp-banner .btn { align-self: stretch; } }
/* Лендинг на планшете: значок шага — над текстом, заголовки шагов не ломаются; подвал — ссылки на одной линии с логотипом, на телефоне 44 px */
@media (min-width: 761px) and (max-width: 1020px) { .how li { flex-direction: column; gap: 10px; } }
.lp .footer__nav { align-items: center; align-self: flex-start; min-height: 36px; }
.lp .lang-switch--footer { margin: 0; }
@media (max-width: 560px) { .lp .footer__nav > a { padding-block: 10px; } }

/* ---------- Кабинет: строки разделов и вкладок настроек затухают справа — видно, что прокручиваются; на телефоне разделы 44 px ---------- */
@media (max-width: 1100px) {
  .topbar--dash .nav { padding-inline-end: 28px; scroll-padding-inline: 14px; }
  /* при открытом «Обучении» без маски: иначе она скрывает выпадающее меню */
  .topbar--dash .nav:not(:has([aria-expanded="true"])) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
}
@media (max-width: 560px) {
  .topbar--dash .topbar__row { padding-block: 6px 0; row-gap: 2px; }
  .topbar--dash .nav > a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding-block: 0; }
  .topbar--dash .nav__btn { height: 44px; }
}
.settings-tabs { padding-inline-end: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
/* Строку уже прокрутили — затухает и левый край, слова не обрезаются «ножом» */
@media (max-width: 1100px) { .topbar--dash .nav.is-scrolled:not(:has([aria-expanded="true"])) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); } }
.settings-tabs.is-scrolled { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
/* Кабинет на телефоне: плитки цифр компактнее — список заказов ближе к началу экрана */
@media (max-width: 560px) { .stats { gap: 10px; } .stat { padding: 12px 14px; } .stat b { font-size: 1.5rem; } }
/* Меню кабинета на телефоне: фото и цена — у первой строки длинного названия; главное действие «+ Добавить блюдо» — первым, обе кнопки во всю ширину */
@media (max-width: 640px) {
  .dish-row { align-items: start; }
  .topbar--dash ~ #main > .spread > .row:has(> .btn--primary) { width: 100%; }
  .topbar--dash ~ #main > .spread > .row:has(> .btn--primary) > .btn { flex: 1 1 100%; }
  .topbar--dash ~ #main > .spread > .row > .btn--primary { order: -1; }
}
/* Недоступный период аналитики — видно, что выключен; списки официантов и столиков не прилипают к кнопкам «+»; панель счёта — по ширине счёта */
.segmented button:disabled { opacity: .45; cursor: not-allowed; }
.field > .stack:not(:empty) { margin-bottom: 10px; }
.row.no-print:has(+ .invoice) { max-width: 820px; margin-inline: auto; }
@media (max-width: 560px) { .row.no-print:has(+ .invoice) > .back { flex-basis: 100%; } .row.no-print:has(+ .invoice) > .grow { display: none; } .row.no-print:has(+ .invoice) > .btn { flex: 1 1 auto; } }

/* ---------- Вход и регистрация на телефоне: кнопка «Войти» — на первом экране ---------- */
@media (max-width: 560px) {
  .auth { padding-block: 4px 24px; gap: 18px; }
  .auth__side .hero__kicker { margin-bottom: 10px; }
  .auth__side h1 { margin: 0 0 .3em; }
  .auth__side > p { font-size: 1rem; margin-bottom: .5em; }
}

/* ---------- Подсказки на телефоне: пункты содержания и главы видео — строки по 44 px ---------- */
@media (max-width: 560px) {
  .help__toc { padding: 14px 16px 6px; }
  .help__toc li { padding: 0; }
  .help__toc li + li { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
  .help__toc a { display: flex; align-items: center; min-height: 44px; padding-block: 6px; }
  .guide-chapters { gap: 8px; }
  .guide-chapters button { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; text-align: left; }
}
/* Панель платформы: «Сайт» и «Выйти» — в строке с логотипом; вкладки на телефоне переносятся целыми словами; уведомления не слипаются */
.topbar--platform ~ #main > .notice { margin-bottom: 10px; }
@media (max-width: 560px) {
  .topbar--platform .topbar__row { flex-wrap: nowrap; }
  .topbar--platform .nav { order: 0; width: auto; flex: none; gap: 4px; }
  .topbar--platform ~ #main > .segmented { flex-wrap: wrap; }
  .topbar--platform ~ #main > .segmented button { flex: 1 1 auto; overflow-wrap: normal; }
}

/* ---------- Поправки по итогам сравнения «до/после» ---------- */
.stepper input { padding-block: 0; }
.stepper + .hint:empty { margin-top: 0; }
@media (max-width: 560px) { .dish__actions .stepper--small button, .dish__actions .stepper--small input { min-height: 41px; } }
.dish__body > div:empty { display: none; } /* пустой блок КБЖУ не добавляет лишний отступ */
@media (min-width: 561px) and (max-width: 900px) { .topbar--store .logo span { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.2; } }
@media (min-width: 561px) and (max-width: 720px) { .topbar--store .logo { font-size: 1rem; gap: 8px; } .topbar--store .nav { gap: 0; } .topbar--store .nav a { padding-inline: 8px; } }
@media (max-width: 400px) { .status-hero b { font-size: 1.1rem; } .segmented { gap: 2px; padding: 3px; } .segmented button { padding: 6px 5px; font-size: .8rem; overflow-wrap: normal; } }
@media (min-width: 360px) and (max-width: 560px) { .hero .hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .hero .hero__facts li { min-width: 0; padding: 8px 10px; } .hero .hero__facts b { font-size: 1.2rem; } .hero .hero__facts span { font-size: .76rem; line-height: 1.3; } }
@media (max-width: 360px) { .dish__head .dish__top { flex-direction: column; gap: 2px; } }
.btn { text-align: center; }
.stat { display: flex; flex-direction: column; } .stat span { line-height: 1.3; } .stat b { margin-top: auto; padding-top: 4px; }
.order-row__qty { min-width: 4ch; }
/* Промокоды на телефоне: «вкл» и «×» — в одной строке с «без лимита», коды разделены линией */
@media (max-width: 760px) {
  .promo-row > label.check, .promo-row > .icon-btn--danger { grid-row: 4; grid-column: 2; }
  .promo-row > label.check { justify-self: start; }
  .promo-row > .icon-btn--danger { justify-self: end; }
  .promo-row + .promo-row { border-top: 1px solid var(--line); padding-top: 12px; }
}
/* Shekveta: спокойное оформление публичных страниц. Витрины заведений сохраняют свою тему. */
.lp { background: var(--bg); }
.lp .wrap { max-width: 1240px; padding-inline: 32px; }
.lp .topbar { background: color-mix(in srgb, var(--bg) 94%, transparent); }
.lp .topbar__row { min-height: 76px; }
.lp .nav a { font-size: .86rem; padding-inline: 12px; font-weight: 600; }
.lp .logo svg { filter: none; }
.lp .footer { margin-top: 36px; background: var(--surface-2); }
.lp .footer__row { padding-block: 38px 24px; }
.lp .lp-h2 { text-align: left; font: 400 clamp(1.8rem, 3.2vw, 2.7rem)/1.2 Georgia, serif; letter-spacing: -.025em; margin-bottom: 30px; }
.lp .lp-section { padding-block: 52px; }
.lp .lp-card { padding: 28px; border-radius: 20px; box-shadow: none; transition: border-color .2s, background-color .2s; }
.lp .lp-card:hover { transform: none; box-shadow: none; border-color: var(--brand); }
.lp .lp-card--accent { background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface)); border-color: var(--line); }
.lp .lp-card h3 { margin-top: 22px; font-size: 1.08rem; line-height: 1.4; }
.lp .lp-card p { font-size: .91rem; line-height: 1.7; }
.lp :is(.lp-icon, .how__icon, .day__icon) { background: var(--brand-soft); color: var(--brand-2); border-radius: 12px; }
.lp :is(.lp-icon, .how__icon, .day__icon) svg { width: 24px; height: 24px; }
.lp .how li { padding: 24px; background: var(--surface); box-shadow: none; gap: 16px; }
.lp .how p, .lp .day p { line-height: 1.65; }
.lp .day li { padding: 24px; }
.lp .day b { margin-top: 10px; }
.lp .lp-plan { border-radius: 24px; padding: 32px 28px; box-shadow: none; }
.lp .lp-price { font-size: 3rem; font-weight: 600; margin-top: 12px; }
.lp .lp-price small { display: block; margin-top: 3px; font-size: .84rem; }
.lp .lp-plan ul { margin-block: 24px 32px; gap: 13px; }
.lp .lp-plan li { line-height: 1.55; font-size: .9rem; }
.lp .lp-plan--main { --text: #f5faf6; --muted: #c1d5c9; --brand-3: #b5dec0; --focus: #f4c25e; background: #204b38; border: 1px solid #204b38; color: var(--text); box-shadow: 0 20px 40px -26px #153f2c; }
.lp .lp-plan--main .btn--primary { background: #d9edc9; color: #173d2b; box-shadow: none; }
.lp .lp-plan--main .ribbon { background: #e8eedf; color: #254831; border: 1px solid #d7dfce; letter-spacing: .04em; font-size: .7rem; }
.lp .lp-faq { max-width: none; gap: 12px; }
.lp .lp-faq details { border-radius: 16px; box-shadow: none; }
.lp .lp-faq summary { padding: 19px 24px; font-weight: 600; }
.lp .lp-faq p { padding: 0 24px 24px; line-height: 1.75; }
.lp .lp-banner { border-radius: 24px; box-shadow: none; padding: 36px; }
.lp .lp-banner--soft { background: var(--surface-2); }
.lp .lp-banner h2 { font-size: 1.65rem; font-weight: 650; }
.lp .lp-banner p { line-height: 1.7; }

/* Главная: одно основное действие и подписанный учебный пример. */
.lp--home main { padding-top: 0; }
.lp--home .lp-hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; padding-block: 64px 40px; align-items: center; }
.lp--home .lp-hero__text { min-width: 0; }
.lp--home .lp-hero .hero__kicker { background: none; padding: 0; border-radius: 0; text-transform: none; letter-spacing: .02em; font-size: .8rem; font-weight: 600; margin: 0; }
.lp--home .lp-hero .hero__kicker::before { width: 6px; height: 6px; box-shadow: none; animation: none; }
.lp--home .lp-hero h1 { font: 400 clamp(3rem, 5.2vw, 4.6rem)/1.08 Georgia, serif; letter-spacing: -.045em; margin: 24px 0; text-wrap: initial; }
.lp--home .lp-hero h1 > span { display: block; }
.lp--home .lp-editorial__accent { color: var(--brand-2); font-style: italic; }
.lp--home .lp-lead { max-width: 520px; font-size: 1.04rem; line-height: 1.75; margin-bottom: 24px; }
.lp--home .lp-hero__actions { gap: 10px; }
.lp--home .lp-hero__actions .btn { border-radius: 12px; font-size: .94rem; padding-inline: 19px; box-shadow: none; }
.lp--home .lp-hero__secondary { gap: 18px; margin-top: 8px; }
.lp--home .lp-hero__secondary .btn { padding: 6px 0; min-height: 40px; margin: 0; font-size: .85rem; font-weight: 600; border-radius: 4px; }
.lp--home .lp-hero__secondary .btn:hover { background: transparent; text-decoration: underline; text-underline-offset: 5px; }
.lp--home .lp-hero__text > .small { font-size: .78rem; margin: 8px 0 0; }
.lp--home .hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border-top: 1px solid var(--line); padding-top: 22px; margin: 26px 0 0; }
.lp--home .hero__facts li { padding: 0; min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.lp--home .hero__facts b { font-size: 1.45rem; font-weight: 650; }
.lp--home .hero__facts span { font-size: .78rem; margin-top: 5px; line-height: 1.5; }
.lp--home .lp-commercial-note { color: var(--muted); font-size: .82rem; line-height: 1.75; margin-block: 0 12px; }
.lp--home .lp-visual { min-width: 0; display: grid; gap: 14px; }
.lp--home .lp-art__caption { margin: 0; font-size: .75rem; color: var(--muted); text-align: center; }
.lp--home .lp-hero__art { position: relative; width: 100%; min-height: 540px; padding: 40px 32px 122px; display: grid; place-items: center; border-radius: 36px; background: color-mix(in srgb, var(--brand-soft) 56%, var(--surface-2)); border: 1px solid var(--line); overflow: hidden; }
.lp--home .lp-hero__art::before { inset: 32px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--brand) 12%, transparent); background: none; filter: none; }
.lp--home .lp-phone { --text: #253b2f; --muted: #647166; --line: #e5eae1; position: relative; width: 280px; margin: 0; padding: 13px 15px 18px; border-radius: 32px; color: var(--text); background: #fffdf8; border: 1px solid #dedfd6; box-shadow: 0 22px 46px -24px #44624c; rotate: -4deg; animation: none; }
.lp--home .lp-phone__store { background: #254d38; padding: 16px 13px; color: #fff; border-radius: 18px; }
.lp--home .lp-phone__store b { font-weight: 650; }
.lp--home .lp-phone__bar span { background: #d4d9cf; height: 4px; width: 48px; }
.lp--home .lp-phone__item { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 10px 0; border-bottom-style: solid; line-height: 1.45; gap: 10px; }
.lp--home .lp-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f3eee3; font-style: normal; font-size: 23px; }
.lp--home .lp-phone__total { padding-block: 10px; }
.lp--home .lp-phone__btn { background: #254d38; color: #fff; border-radius: 12px; }
.lp--home .lp-tg { --text: #253b2f; --brand-soft: #e4efdf; --brand-2: #245640; --danger-soft: #fbe9e6; --danger: #9a382d; position: absolute; left: auto; right: 20px; top: auto; bottom: 24px; width: 254px; color: var(--text); background: #fffdf8; border-color: #dce1d5; padding: 16px; border-radius: 18px; box-shadow: 0 16px 32px -22px #364e3d; animation: none; }
.lp--home .lp-tg__head { color: #28654e; }
.lp--home .lp-tg__btns span { padding-block: 7px; }

/* Пробный кабинет: читабельная карточка первого шага. */
.topbar--dash ~ #main .sandbox-note { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 20px; color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm); }
.topbar--dash ~ #main .sandbox-note.stack > * + * { margin-top: 0; }
.topbar--dash ~ #main .sandbox-note > :first-child { color: var(--brand-2); }
.topbar--dash ~ #main .sandbox-note > p:first-of-type { font-size: 1rem; line-height: 1.65; max-width: 880px; }
.topbar--dash ~ #main .sandbox-note .btn { min-height: 44px; border-radius: 11px; }

@media (max-width: 1100px) {
  .lp--home .lp-hero { gap: 32px; }
  .lp--home .lp-hero h1 { font-size: 3.7rem; }
  .lp--home .lp-hero__art { padding-inline: 18px; }
}
@media (max-width: 1000px) {
  .lp .topbar__row { min-height: 0; }
}
@media (max-width: 900px) {
  .lp--home .lp-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; }
  .lp--home .lp-hero__text { max-width: 620px; }
  .lp--home .lp-visual { width: min(100%, 580px); justify-self: center; }
  .lp--home .lp-hero h1 { font-size: clamp(2.8rem, 7vw, 4.3rem); }
  .lp .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp .lp-section { padding-block: 36px; }
}
@media (max-width: 560px) {
  .lp .wrap { padding-inline: 20px; }
  .lp .lp-h2 { font-size: 2rem; margin-bottom: 24px; }
  .lp--home .lp-hero { padding-top: 32px; gap: 30px; }
  .lp--home .lp-hero h1 { font-size: clamp(2.5rem, 10.5vw, 3.6rem); margin-block: 20px; }
  .lp--home .lp-lead { font-size: .97rem; line-height: 1.7; }
  .lp--home .lp-hero__actions { gap: 10px; }
  .lp--home .lp-hero__actions .btn { width: 100%; min-height: 52px; }
  .lp--home .lp-hero__secondary { gap: 4px 18px; }
  .lp--home .lp-hero__secondary > .btn { flex: 0 1 auto; font-size: .8rem; }
  .lp--home .hero__facts { gap: 14px; padding-top: 20px; }
  .lp--home .hero__facts b { font-size: 1.3rem; }
  .lp--home .hero__facts span { font-size: .73rem; }
  .lp--home .lp-hero__art { display: grid; min-height: 516px; padding: 34px 10px 118px; border-radius: 26px; }
  .lp--home .lp-phone { width: min(100%, 260px); rotate: -2deg; }
  .lp--home .lp-tg { display: block; width: 242px; right: 12px; bottom: 18px; }
  .lp--home .lp-commercial-note { font-size: .79rem; }
  .lp .lp-grid { grid-template-columns: 1fr; gap: 12px; }
  .lp .lp-card, .lp .lp-plan { padding: 24px; }
  .lp .lp-banner { padding: 26px; }
  .lp .lp-faq summary { padding: 17px 20px; }
  .lp .lp-faq p { padding: 0 20px 20px; }
  .topbar--dash ~ #main .sandbox-note { padding: 18px; }
}
:lang(ka) .lp--home .lp-hero h1 { font-family: var(--font-display); font-size: clamp(2.3rem, 4.1vw, 3.3rem); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
:lang(ka) .lp--home .lp-editorial__accent { font-style: normal; }
:lang(ka) .lp .lp-h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: 0; }
@media (max-width: 560px) { :lang(ka) .lp--home .lp-hero h1 { font-size: clamp(1.85rem, 7.6vw, 2.6rem); } }
@media (prefers-reduced-motion: reduce) { .lp .lp-card, .lp--home .btn { transition: none; } }
