/* ─────────────────────────────────────────────────────────────────────────
   La Carte — единый стиль веба под мобильное приложение (Flutter).
   Палитра: индиго #6366F1, белые карточки, скругления, светлый фон.
   Адаптив под мобилку — в конце файла (@media).
   ───────────────────────────────────────────────────────────────────────── */
:root {
  --indigo: #6366F1;
  --indigo-dark: #5551DF;
  --indigo-soft: #EDEEFF;
  --bg: #EEF0FA;
  --surface: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #9AA0A6;
  --muted-2: #6B7280;
  --line: #E8EAF0;
  --accent: #6366F1;         /* обратная совместимость со старыми селекторами */
  --accent-ink: #FFFFFF;
  --ok: #16A34A;
  --warn: #B7791F;
  --err: #E53935;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(17,24,39,.05), 0 8px 24px rgba(17,24,39,.06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.3px; }
h2 { font-size: 19px; font-weight: 700; margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* --- кнопки --- */
.btn {
  display: inline-block; cursor: pointer;
  padding: 12px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 15px; font-weight: 600; text-decoration: none; text-align: center;
  transition: filter .12s, border-color .12s, background .12s;
}
.btn:hover { text-decoration: none; border-color: #D3D6E2; }
.btn.primary { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn.primary:hover { background: var(--indigo-dark); border-color: var(--indigo-dark); }
.btn.ghost { background: rgba(255,255,255,.6); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: #fff; border-color: #D3D6E2; }
.btn.lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
button.link { background: none; border: none; color: var(--indigo); cursor: pointer; font-size: 15px; font-weight: 600; }

/* --- формы --- */
label { display: block; margin: 12px 0; font-size: 14px; font-weight: 600; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], select {
  width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; font-size: 16px; color: var(--ink);
  background: var(--surface); outline: none;
}
input:focus, select:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
label.chk, label.del { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); margin: 0 14px 0 0; font-weight: 500; }
label.chk input, label.del input { width: auto; margin: 0; }
.flash { padding: 12px 14px; border-radius: 12px; margin: 12px 0; font-size: 14px; font-weight: 500; }
.flash.ok { background: #EAF7EE; color: var(--ok); }
.flash.err { background: #FDECEC; color: var(--err); }

/* базовый вид файлового инпута (напр. загрузка фото блюд) */
input[type=file] { font-size: 14px; color: var(--muted-2); }
input[type=file]::file-selector-button {
  margin-right: 12px; padding: 8px 14px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--indigo-soft); color: var(--indigo); font-weight: 600; font-size: 14px;
}
input[type=file]::file-selector-button:hover { background: #E3E4FF; }

/* зона загрузки PDF (dropzone) */
.upload-form { display: flex; flex-direction: column; gap: 12px; }
.dropzone {
  position: relative; margin: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 26px 18px; color: var(--muted-2);
  border: 2px dashed #CFD3E6; border-radius: 16px; background: #FAFBFF;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag, .dropzone.has-file { border-color: var(--indigo); background: var(--indigo-soft); }
.dropzone.has-file { border-style: solid; }
.dropzone.disabled { opacity: .55; pointer-events: none; }
.file-native { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; padding: 0; margin: 0; }
.dz-ic {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--surface); color: var(--indigo); border: 1px solid var(--line);
}
.dz-ic .ic { width: 24px; height: 24px; }
.dz-text { font-size: 14px; }
.dz-text b { color: var(--ink); font-size: 15px; }
.dz-file { font-size: 13px; font-weight: 600; color: var(--indigo); word-break: break-all; }
.dropzone:not(.has-file) .dz-file { display: none; }

/* --- admin layout --- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.topbar .brand { font-weight: 700; font-size: 18px; color: var(--ink); }
.topbar nav { display: flex; gap: 4px; align-items: center; }
.topbar nav a {
  color: var(--muted-2); font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 10px; transition: background .12s, color .12s;
}
.topbar nav a:hover { color: var(--indigo); background: var(--indigo-soft); text-decoration: none; }
/* «Выйти» — отделяем разделителем и подкрашиваем в красный */
.topbar nav .inline {
  display: flex; align-items: center;
  margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--line);
}
.topbar nav .inline .link {
  color: var(--err); font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 10px; transition: background .12s;
}
.topbar nav .inline .link:hover { background: #FDECEC; text-decoration: none; }
.inline { display: inline; margin: 0; }
.container { max-width: 1040px; margin: 0 auto; padding: 24px 20px 60px; }
.auth-page { min-height: 100vh; background: linear-gradient(160deg, #6F69E8, #8E72CE 40%, #B57A8E 72%, #CC7B68); }
.auth-page .container { max-width: 440px; margin: 0 auto; padding-top: 8vh; }
.auth-brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #fff; font-weight: 800; font-size: 26px; letter-spacing: -.5px;
  margin-bottom: 18px;
}
.auth-brand:hover { text-decoration: none; }

/* логотип рядом с брендом */
.brand-logo { width: 26px; height: 26px; border-radius: 8px; vertical-align: middle; display: inline-block; }
.brand-logo.lg { width: 40px; height: 40px; border-radius: 11px; }
.sidebar .brand, .lp-brand, .lp-foot .lp-brand { display: inline-flex; align-items: center; gap: 9px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card.narrow { max-width: 460px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.status { list-style: none; padding: 0; margin: 0 0 12px; }
.status li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ok { color: var(--ok); } .warn { color: var(--warn); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* --- CRM-кабинет: боковое меню + контент --- */
.app-shell { display: flex; min-height: 100vh; align-items: stretch; }
.sidebar {
  position: sticky; top: 0; align-self: flex-start;
  width: 240px; flex: 0 0 240px; height: 100vh;
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--line);
}
.sidebar .brand { font-weight: 700; font-size: 20px; color: var(--ink); padding: 4px 10px 2px; }
/* Мобильные элементы навигации — скрыты на десктопе. */
.mtopbar, .nav-backdrop, .side-close { display: none; }
.side-top { display: flex; align-items: center; justify-content: space-between; }
.side-venue { padding: 6px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.side-venue-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.side-venue-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 11px;
  color: var(--muted-2); font-weight: 600; font-size: 14.5px;
  padding: 10px 12px; border-radius: 11px;
  transition: background .14s, color .14s;
}
.side-nav a:hover { color: var(--ink); background: #F4F5FA; text-decoration: none; }
.side-nav a.active { color: var(--indigo); background: var(--indigo-soft); }
.side-nav .ic { flex: 0 0 auto; opacity: .85; }
.side-nav a.active .ic { opacity: 1; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding: 12px 4px 0; border-top: 1px solid var(--line); }
.side-foot a, .side-foot .link {
  display: flex; align-items: center; gap: 11px;
  color: var(--muted-2); font-weight: 600; font-size: 14px;
  padding: 9px 8px; border-radius: 11px; transition: background .14s, color .14s;
}
.side-foot a:hover { background: #F4F5FA; color: var(--ink); text-decoration: none; }
.side-foot .link { text-align: left; width: 100%; }
.side-foot .link:hover { background: #FDECEC; color: var(--err); }
.side-foot .ic { flex: 0 0 auto; opacity: .85; }
.content { flex: 1 1 auto; min-width: 0; max-width: 1100px; margin: 0 auto; padding: 24px 28px 60px; }

/* заголовок раздела */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }

/* переключатель периода */
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg a { padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--muted-2); }
.seg a:hover { text-decoration: none; background: var(--indigo-soft); }
.seg a.active { background: var(--indigo); color: #fff; }

/* плитки метрик */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 18px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
  transition: transform .14s, box-shadow .14s;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 2px 6px rgba(17,24,39,.06), 0 14px 30px rgba(17,24,39,.08); }
.tile-label { font-size: 12px; color: var(--muted-2); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tile-value { font-size: 32px; font-weight: 700; margin-top: 8px; letter-spacing: -0.6px; line-height: 1.1; }
.tile-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* полоски языков */
.bars { list-style: none; padding: 0; margin: 0; }
.bars li { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.bar-label { width: 40px; font-weight: 600; font-size: 14px; text-transform: uppercase; color: var(--muted-2); }
.bar-track { flex: 1; height: 10px; background: var(--indigo-soft); border-radius: 6px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--indigo); border-radius: 6px; }
.bar-num { width: 36px; text-align: right; font-weight: 700; font-size: 14px; }
.bar-label.wide { width: 150px; text-transform: none; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* временной график (area chart) */
.grid.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.card-sub { font-size: 13px; color: var(--muted); white-space: nowrap; }
.chart-wrap { margin-top: 4px; }
.ts { position: relative; }
.ts-ymax { position: absolute; top: 0; left: 0; font-size: 11px; color: var(--muted); }
.ts-chart { display: block; width: 100%; height: auto; }
.ts-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ts-area { fill: rgba(99, 102, 241, .12); stroke: none; }
.ts-line { fill: none; stroke: var(--indigo); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ts-dot { fill: var(--indigo); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.ts-hit { fill: transparent; cursor: pointer; }
.ts-hit:hover { fill: rgba(99, 102, 241, .18); }
.ts-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); }

/* таблицы */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted-2); font-weight: 600; font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl .num { text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* тарифы / бейдж */
.badge { font-size: 12px; font-weight: 700; color: var(--indigo); background: var(--indigo-soft); padding: 4px 10px; border-radius: 20px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.plan.disabled { opacity: .7; }
.plan-name { font-weight: 700; font-size: 17px; }
.plan-price { font-size: 28px; font-weight: 700; margin: 8px 0; }
.plan-price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan-feats { list-style: none; padding: 0; margin: 12px 0; }
.plan-feats li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.plan-cur { color: var(--ok); font-weight: 600; font-size: 14px; margin-top: 8px; }

/* --- редактор меню --- */
.dish { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; background: var(--surface); }
.dish-head { display: flex; justify-content: space-between; align-items: center; }
.dish-num { font-weight: 700; color: var(--muted); }
.dish-thumb { height: 28px; border-radius: 6px; vertical-align: middle; margin-left: 6px; }
.photo-row { display: flex; align-items: center; gap: 16px; margin: 8px 0; flex-wrap: wrap; }
.photo-row label { font-size: 14px; color: var(--muted-2); }
.photo-row input[type=file] { font-size: 13px; }
.dish .kz { background: var(--indigo-soft); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.dish .req { color: var(--indigo); }
.dish .row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.dish .row label { margin: 8px 0; }
.otherlangs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; }
.langcol h4 { margin: 8px 0 4px; font-size: 13px; color: var(--muted-2); }
.catrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; }
details summary { cursor: pointer; color: var(--indigo); font-weight: 600; margin: 8px 0; }
.confirm-form { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }

/* блюда в сетке (2 колонки на десктопе) + липкая панель действий */
#dishes { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) { #dishes { grid-template-columns: repeat(2, 1fr); } }
#dishes .dish { margin-bottom: 0; }
.editor-bar {
  position: sticky; bottom: 0; z-index: 20; margin-top: 16px;
  display: flex; gap: 10px;
  padding: 12px; border-radius: 14px;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.editor-bar .btn { flex: 1; }

/* --- landing (старый, на случай кэша) --- */
.landing { background: linear-gradient(160deg, #EDEEFF, var(--bg)); min-height: 100vh; }
.hero { max-width: 640px; margin: 0 auto; padding: 12vh 24px; }
.hero h1 { font-size: 44px; margin-bottom: 12px; letter-spacing: -1px; }
.hero .lead { font-size: 19px; color: var(--muted-2); }
.bullets { margin: 20px 0; padding-left: 20px; color: var(--ink); }
.bullets li { margin: 8px 0; }
.cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════════════
   Лендинг — body.lp. Тёплый бумажный фон, серифные заголовки (редакторский
   тон под ресторанную тему), один акцент — индиго. --serif задаёт заголовки.
   ═════════════════════════════════════════════════════════════════════════ */
body.lp {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --paper: #FAF7F1;
  background: var(--paper); color: #23201C;
}
.lp main { overflow: hidden; }

/* навигация */
.lp-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 18px 24px;
  background: rgba(250,247,241,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lp-brand { font-size: 21px; font-weight: 800; letter-spacing: -.4px; color: #23201C; }
.lp-nav-links { display: flex; align-items: center; gap: 10px; }
.lp-nav-links > a:first-child { color: var(--muted-2); font-weight: 600; margin-right: 6px; }
.lp-nav-links .btn { padding: 10px 16px; }
.lp .btn.ghost { background: transparent; border-color: #DED8CC; color: #23201C; }
.lp .btn.ghost:hover { background: #fff; border-color: #CFC7B8; }

/* hero */
.lp-hero {
  max-width: 1120px; margin: 0 auto; padding: 48px 24px 40px;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center;
}
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700;
  color: var(--indigo);
}
.lp-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--indigo); border-radius: 2px; }
.lp-hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: 54px; line-height: 1.06; letter-spacing: -.5px; margin: 20px 0 18px;
}
.lp-lead { font-size: 18px; line-height: 1.6; color: #5B554C; max-width: 32em; }
.lp-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.lp-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* мокап телефона */
.lp-hero-art { position: relative; display: flex; justify-content: center; }
.lp-hero-art::before {
  content: ""; position: absolute; inset: 8% 6% 8% 6%;
  background: #EFE9DD; border-radius: 40px; transform: rotate(-4deg); z-index: 0;
}
.lp-phone {
  position: relative; z-index: 1;
  width: 268px; padding: 16px 14px 20px;
  background: #fff; border: 1px solid #EDE7DB;
  border-radius: 30px; box-shadow: 0 24px 50px rgba(60,50,35,.16);
}
.lp-phone-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 14px; }
.lp-phone-venue { font-weight: 800; font-size: 17px; }
.lp-phone-langs { font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.lp-phone-langs b { color: var(--indigo); }
.lp-dish { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #F0ECE3; }
.lp-dish-img { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; background: linear-gradient(135deg, #EDEBFF, #E4E1F4); }
.lp-dish-body { flex: 1; min-width: 0; }
.lp-l { height: 9px; border-radius: 5px; background: #E9E4DA; margin: 4px 0; }
.lp-l.muted { background: #F1EDE4; height: 7px; }
.lp-l.w80 { width: 80%; } .lp-l.w70 { width: 70%; } .lp-l.w60 { width: 60%; }
.lp-l.w50 { width: 50%; } .lp-l.w40 { width: 40%; } .lp-l.w30 { width: 30%; }
.lp-dish-price { font-weight: 700; font-size: 13px; color: var(--indigo); white-space: nowrap; }
.lp-phone-fab {
  margin-top: 16px; text-align: center; background: var(--indigo); color: #fff;
  font-weight: 700; font-size: 14px; padding: 12px; border-radius: 14px;
}
.lp-qr {
  position: absolute; z-index: 2; right: -2px; bottom: 22px;
  width: 76px; height: 76px; background: #fff; border-radius: 18px;
  border: 1px solid #EDE7DB; box-shadow: 0 14px 28px rgba(60,50,35,.18);
  display: flex; align-items: center; justify-content: center; color: #23201C;
}
.lp-qr .ic { width: 44px; height: 44px; }

/* языки */
.lp-langs {
  max-width: 1120px; margin: 24px auto; padding: 40px;
  background: #fff; border: 1px solid #EDE7DB; border-radius: 24px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center;
}
.lp-langs h2 { font-family: var(--serif); font-weight: 700; font-size: 30px; letter-spacing: -.4px; margin: 0 0 10px; }
.lp-langs p { color: #5B554C; font-size: 16px; line-height: 1.55; margin: 0; }
.lp-lang-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-chip {
  padding: 10px 16px; border-radius: 12px; font-size: 15px; font-weight: 600;
  border: 1px solid #E7E1D5; background: #FCFBF8; color: #23201C;
}
.lang-chip.on { border-color: var(--indigo); color: var(--indigo); background: var(--indigo-soft); }
.lang-chip.soon { color: var(--muted); }
.lang-chip.soon::after { content: " · скоро"; font-weight: 500; font-size: 12px; }
.lang-chip.more { border-style: dashed; color: var(--muted-2); }

/* секции */
.lp-section { max-width: 1120px; margin: 0 auto; padding: 48px 24px; }
.lp-h2 { text-align: center; font-family: var(--serif); font-weight: 700; font-size: 34px; letter-spacing: -.4px; margin: 0 0 34px; }

/* шаги — нумерованный ряд без «карточного» шаблона */
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.lp-step { position: relative; padding-top: 8px; }
.lp-step-n { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--indigo); letter-spacing: .1em; }
.lp-step-ic {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin: 14px 0 14px;
  border-radius: 14px; background: var(--indigo-soft); color: var(--indigo);
}
.lp-step-ic .ic { width: 24px; height: 24px; }
.lp-step h3 { font-size: 18px; margin: 0 0 6px; }
.lp-step p { color: #5B554C; font-size: 15px; line-height: 1.5; margin: 0; }
.lp-step + .lp-step::before {
  content: ""; position: absolute; left: -18px; top: 34px;
  width: 8px; height: 8px; border-top: 2px solid #DED8CC; border-right: 2px solid #DED8CC;
  transform: rotate(45deg);
}

/* что получает заведение */
.lp-value-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.lp-value-list li { display: flex; gap: 14px; align-items: flex-start; }
.lp-value-list .ic { width: 26px; height: 26px; color: var(--indigo); flex: 0 0 auto; margin-top: 2px; }
.lp-value-list b { display: block; font-size: 16px; margin-bottom: 4px; }
.lp-value-list span { color: #5B554C; font-size: 14.5px; line-height: 1.5; }

/* призыв */
.lp-final { max-width: 1120px; margin: 20px auto 40px; padding: 0 24px; }
.lp-final-inner {
  padding: 52px 32px; text-align: center;
  background: #23201C; color: #FAF7F1; border-radius: 26px;
}
.lp-final h2 { font-family: var(--serif); font-weight: 700; font-size: 34px; letter-spacing: -.4px; margin: 0 0 10px; color: #FAF7F1; }
.lp-final p { font-size: 17px; opacity: .8; margin: 0 0 26px; }
.lp-final .btn.ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.lp-final .btn.ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }

/* футер */
.lp-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1120px; margin: 0 auto; padding: 28px 24px 40px;
  border-top: 1px solid #E7E1D5;
}
.lp-foot .lp-brand { font-size: 18px; }
.lp-foot-links { display: flex; gap: 20px; }
.lp-foot-links a { color: var(--muted-2); font-weight: 600; font-size: 14px; }

/* --- страницы-документы (поддержка, конфиденциальность) --- */
.doc { max-width: 1120px; margin: 0 auto; padding: 32px 24px 40px; }
.doc.doc-narrow { max-width: 760px; }
.doc-head { margin-bottom: 24px; }
.doc-langs { margin-bottom: 18px; }
.doc-head .lp-eyebrow { margin-bottom: 12px; }
.doc h1 { font-family: var(--serif); font-weight: 700; font-size: 40px; letter-spacing: -.4px; margin: 4px 0 12px; }
.doc-lead { font-size: 18px; line-height: 1.6; color: #5B554C; margin: 0; }

.doc-card {
  background: #fff; border: 1px solid #EDE7DB; border-radius: 22px;
  padding: 28px 32px; box-shadow: 0 12px 30px rgba(60,50,35,.06);
}

/* карточка контакта на странице поддержки */
.contact-card { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.contact-ic {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--indigo-soft); color: var(--indigo);
}
.contact-ic .ic { width: 28px; height: 28px; }
.contact-body { flex: 1; min-width: 160px; }
.contact-label { margin: 0 0 2px; font-size: 14px; color: var(--muted); }
.contact-mail { font-size: 20px; font-weight: 700; color: #23201C; }
.contact-mail:hover { color: var(--indigo); }

/* читабельный текст политики */
.doc-prose { line-height: 1.65; color: #3A362F; }
.doc-prose h2 { font-size: 18px; font-weight: 700; margin: 26px 0 10px; color: #23201C; }
.doc-prose h2:first-child { margin-top: 4px; }
.doc-prose p { margin: 0 0 6px; }
.doc-prose ul { margin: 0 0 8px; padding-left: 20px; }
.doc-prose li { margin: 6px 0; }
.doc-prose a { font-weight: 600; }
.doc-back { margin-top: 24px; }

/* --- вход / регистрация (split-раскладка) --- */
.btn.block { width: 100%; display: block; }
.auth { display: flex; min-height: 100vh; }
.auth-aside {
  flex: 0 0 44%; max-width: 540px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px; color: var(--paper);
  background: #23201C; position: relative; overflow: hidden;
}
.auth-aside::before {
  content: ""; position: absolute; z-index: 0;
  width: 460px; height: 460px; right: -150px; top: -130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.5), transparent 65%);
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside .lp-brand { color: var(--paper); font-size: 22px; }
.auth-aside-mid { margin: auto 0; }
.auth-aside-mid h2 {
  font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1.15;
  letter-spacing: -.4px; margin: 0 0 28px; color: var(--paper);
}
.auth-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.auth-points li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: rgba(250,247,241,.85); }
.auth-points .ic { width: 20px; height: 20px; color: #A9A6F7; flex: 0 0 auto; }
.auth-aside-foot { font-size: 14px; color: rgba(250,247,241,.6); margin: 0; }
.auth-aside-foot a { color: var(--paper); font-weight: 600; }

.auth-main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; background: var(--paper);
}
.auth-form { width: 100%; max-width: 440px; }
.auth-mob-brand { display: none; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; color: #23201C; margin-bottom: 20px; }
.auth-form h1 { font-family: var(--serif); font-weight: 700; font-size: 32px; letter-spacing: -.3px; margin: 0 0 6px; }
.auth-sub { color: #5B554C; font-size: 15px; margin: 0 0 20px; }
.auth-form form .btn { margin-top: 10px; }
.auth-switch { margin-top: 18px; color: var(--muted-2); font-size: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row label { margin-top: 12px; margin-bottom: 0; }

/* --- гостевое меню --- */
body.guest { background: var(--bg); padding-bottom: 96px; }
.guest-empty { max-width: 480px; margin: 18vh auto; text-align: center; padding: 0 20px; }
.guest-empty h1 { font-size: 24px; font-weight: 700; }
.guest-top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.guest-top .venue { font-size: 20px; font-weight: 700; }
.langs { display: flex; gap: 6px; flex-wrap: wrap; }
.lang-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted-2);
  padding: 6px 12px; border-radius: 20px; cursor: pointer; font-size: 13px; font-weight: 600;
}
.lang-btn.active { background: var(--indigo); border-color: var(--indigo); color: #fff; }

.menu { max-width: 680px; margin: 0 auto; padding: 16px; }
.cat { margin: 22px 4px 12px; font-size: 18px; font-weight: 700; color: var(--ink); }
.cat:first-child { margin-top: 4px; }
.dish-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border-radius: var(--radius);
  padding: 12px; margin-bottom: 12px;
}
.dish-photo { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; flex: 0 0 auto; background: #F0EDE8; cursor: zoom-in; }
.dish-info { flex: 1; min-width: 0; }
.dish-name { font-weight: 700; font-size: 16px; }
.dish-desc { color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 3px; }
.flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 8px; background: #EAF7EE; color: var(--ok); }
.tag.halal, .tag.veg { background: #EAF7EE; color: var(--ok); }
.tag.alg { background: #FFF4E5; color: var(--warn); }
.dish-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: 0 0 auto; }
.dish-price { font-weight: 700; font-size: 16px; color: var(--indigo); white-space: nowrap; }

.stepper { display: flex; align-items: center; gap: 8px; }
.step {
  width: 30px; height: 30px; border-radius: 9px; border: none;
  background: var(--indigo-soft); color: var(--indigo);
  font-size: 18px; font-weight: 700; cursor: pointer; line-height: 1;
}
.stepper .qty { min-width: 18px; text-align: center; font-weight: 700; }
.btn.add { padding: 8px 14px; background: var(--indigo-soft); color: var(--indigo); border: none; border-radius: 10px; }
.stepper.small .step { width: 26px; height: 26px; font-size: 16px; }

/* кнопка заказа */
.order-fab {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  background: var(--indigo); color: #fff; border: none; cursor: pointer;
  padding: 14px 24px; border-radius: 16px; font-size: 15px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(99,102,241,.4);
}
.order-fab .badge {
  background: rgba(255,255,255,.25); color: #fff; border-radius: 11px;
  min-width: 22px; height: 22px; padding: 0 6px; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* шторки */
.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; }
.sheet.hidden, .hidden { display: none !important; }
.sheet-inner {
  background: var(--surface); width: 100%; max-width: 680px;
  border-radius: 20px 20px 0 0; padding: 8px 16px 24px; max-height: 88vh; overflow-y: auto;
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 12px; }
.sheet-head h2 { margin: 0; }
.icon-btn { background: #F1F2F5; border: none; width: 32px; height: 32px; border-radius: 16px; font-size: 15px; cursor: pointer; color: var(--muted-2); }
.order-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.oi-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.oi-name { font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--muted-2);
  border-radius: 18px; padding: 6px 12px; font-size: 13px; font-weight: 500; cursor: pointer; }
.chip.on { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.sheet-foot { padding-top: 16px; }
.total { font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.sheet-actions { display: flex; gap: 10px; }
.sheet-actions .btn { flex: 1; text-align: center; }

/* просмотр фото на весь экран */
.photo-viewer {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; cursor: zoom-out;
}
.photo-viewer .photo-full {
  max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 12px; cursor: default;
}
.photo-viewer .photo-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.9); color: var(--ink);
}

/* карточка заказа */
.card-langs { margin: 0 0 12px; }
.card-view .order-card { background: #F6F7FB; border-radius: var(--radius); padding: 16px; margin-top: 8px; }
.card-view .muted { color: var(--muted); font-size: 14px; margin: 4px 0 16px; }
.card-view .small { font-size: 12px; margin-top: 16px; }
.card-row { padding: 8px 0; border-bottom: 1px solid var(--line); }
.card-row:last-child { border-bottom: none; }
.card-line { font-size: 16px; font-weight: 600; }
.card-prefs { color: var(--muted-2); font-size: 13px; margin-top: 3px; }

/* --- каталог заведений --- */
.catalog-page { background: var(--bg); min-height: 100vh; }
.catalog-header { max-width: 640px; margin: 0 auto; padding: 32px 24px 8px; }
.catalog-logo { font-size: 26px; font-weight: 700; color: var(--ink); text-decoration: none; }
.catalog-sub { color: var(--muted); margin: 4px 0 0; font-size: 15px; }
.catalog-list { max-width: 640px; margin: 16px auto; padding: 0 24px 40px; display: flex; flex-direction: column; gap: 12px; }
.catalog-empty { color: var(--muted); margin-top: 32px; }
.venue-card {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); border-radius: var(--radius);
  padding: 16px 18px; text-decoration: none; color: var(--ink);
  transition: box-shadow .15s;
}
.venue-card:hover { box-shadow: var(--shadow); text-decoration: none; }
.venue-card-name { font-size: 16px; font-weight: 700; }
.venue-card-arrow { color: var(--muted); font-size: 18px; }
.cta-catalog { margin-top: 16px; }
.cta-catalog a { color: var(--indigo); font-size: 15px; font-weight: 600; }

/* Лендинг: планшет */
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; text-align: center; }
  .lp-hero h1 { font-size: 42px; }
  .lp-lead { margin-left: auto; margin-right: auto; }
  .lp-cta { justify-content: center; }
  .lp-eyebrow { justify-content: center; }
  .lp-hero-art { order: -1; }
  .lp-langs { grid-template-columns: 1fr; gap: 20px; padding: 32px; }
  .lp-steps { grid-template-columns: 1fr; gap: 24px; }
  .lp-step + .lp-step::before { display: none; }
  .lp-value-list { grid-template-columns: 1fr; gap: 22px; }

  .auth-aside { flex-basis: 40%; padding: 32px 28px; }
  .auth-aside-mid h2 { font-size: 28px; }
  .auth-points li { font-size: 15px; }
}

/* CRM: бургер-меню и выезжающая панель (телефоны и небольшие планшеты) */
@media (max-width: 820px) {
  .app-shell { display: block; }

  .mtopbar {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 60;
    padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .burger {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0;
    background: none; border: 1px solid var(--line); border-radius: 10px;
    color: var(--ink); cursor: pointer;
  }
  .burger:hover { background: var(--indigo-soft); border-color: var(--indigo-soft); color: var(--indigo); }
  .mtop-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 700; color: var(--ink); }

  /* Панель как выезжающий drawer слева. */
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 80;
    width: 268px; max-width: 82vw; height: 100%;
    border-right: 1px solid var(--line); box-shadow: 0 20px 60px rgba(17,24,39,.28);
    transform: translateX(-100%); transition: transform .22s ease;
    overflow-y: auto;
  }
  body.nav-open .sidebar { transform: translateX(0); }

  .side-close {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 0;
    background: none; border: none; border-radius: 10px; color: var(--muted-2); cursor: pointer;
  }
  .side-close:hover { background: #F4F5FA; color: var(--ink); }

  .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 70;
    background: rgba(17,24,39,.42);
    opacity: 0; visibility: hidden; transition: opacity .2s;
  }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }

  .content { padding: 18px 16px 48px; max-width: none; }
  .page-head { margin-bottom: 14px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Адаптив под мобилку
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  /* лендинг */
  .lp-nav { padding: 12px 16px; }
  .lp-nav-links { gap: 8px; }
  .lp-nav-links > a:first-child { display: none; }
  .lp-nav-links .btn { padding: 9px 13px; font-size: 14px; }
  .lp-hero { padding: 20px 18px 32px; }
  .lp-hero h1 { font-size: 34px; letter-spacing: -.3px; }
  .lp-lead { font-size: 17px; }
  .lp-cta .btn { flex: 1 1 auto; }
  .lp-langs { margin: 20px 14px; padding: 26px 22px; border-radius: 20px; }
  .lp-langs h2 { font-size: 25px; }
  .lp-section { padding: 34px 18px; }
  .lp-h2 { font-size: 27px; margin-bottom: 24px; }
  .lp-final { padding: 0 14px; }
  .lp-final-inner { padding: 38px 22px; border-radius: 22px; }
  .lp-final h2 { font-size: 27px; }
  .lp-foot { flex-direction: column; gap: 14px; text-align: center; }

  /* doc-страницы */
  .doc { padding: 20px 16px 32px; }
  .doc h1 { font-size: 30px; }
  .doc-lead { font-size: 16px; }
  .doc-card { padding: 22px 20px; border-radius: 18px; }
  .contact-card { gap: 14px; }
  .contact-card .btn { width: 100%; }
  .contact-body { min-width: 100%; }

  /* авторизация на телефоне: панель скрыта, сверху логотип */
  .auth { flex-direction: column; min-height: auto; }
  .auth-aside { display: none; }
  .auth-main { padding: 28px 18px 40px; align-items: flex-start; }
  .auth-mob-brand { display: flex; }
  .auth-form h1 { font-size: 27px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row label { margin-top: 12px; }

  h1 { font-size: 22px; }
  .container { padding: 16px 14px 48px; }
  .auth-page .container { padding-top: 4vh; }
  .card { padding: 16px; border-radius: 14px; }

  .topbar { padding: 10px 14px; flex-wrap: wrap; }
  .topbar nav { gap: 12px; flex-wrap: wrap; }
  .editor-bar { margin-left: -14px; margin-right: -14px; border-radius: 0; }

  .grid, .grid.grid-2 { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }

  .hero { padding: 8vh 20px; }
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 17px; }
  .cta { flex-direction: column; }
  .cta .btn { width: 100%; }

  .catalog-header { padding: 24px 16px 8px; }
  .catalog-list { padding: 0 16px 32px; }

  .dish .row { gap: 8px; }
  .sheet-inner { max-height: 92vh; }
}
