:root {
  --ink: #14202B;
  --ink-2: #3D4853;
  --muted: #46525E;
  --muted-2: #55616D;
  --line: #E3E6EA;
  --line-2: #CBD2D8;
  --bg: #F5F6F4;
  --card: #FFFFFF;
  --soft: #EEF3F5;
  --primary: #0E5A73;
  --primary-ink: #0A4456;
  --primary-soft: #DCEBF0;
  --accent: #FFC93C;
  --ok: #1F7A52;
  --ok-bg: #E3F2EA;
  --ok-ink: #17603F;
  --warn-bg: #FDF0C8;
  --warn-ink: #6B4800;
  --promo-bg: #FFF6D6;
  --danger: #B42318;
  --danger-bg: #FDE7E4;
  --danger-ink: #7A1F14;
  --info-bg: #DCEBFA;
  --info-ink: #1D4E89;
  --radius: 16px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: Unbounded, var(--font);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--primary); }
a:hover { color: var(--primary-ink); }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
:focus-visible { outline: 3px solid #2B7FFF; outline-offset: 2px; }
[hidden] { display: none !important; }

.container { max-width: 1232px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 10px; }

.demo-banner { background: var(--warn-bg); color: var(--warn-ink); text-align: center; font-size: 14px; font-weight: 600; padding: 8px 16px; }

/* ---------- шапка ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 15px; }
.logo-name { font-family: var(--display); font-weight: 600; font-size: 18px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-sub { font-size: 12px; color: var(--muted-2); font-weight: 500; }
.muted-on-dark { font-size: 13px; color: #9AA6B1; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.nav a { padding: 10px 14px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: 15px; text-decoration: none; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--soft); color: var(--ink); font-weight: 600; }

/* ---------- кнопки, чипы, бейджи ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-ink); border-color: var(--primary-ink); color: #fff; }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; border-color: #000; color: #fff; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #F2B705; border-color: #F2B705; color: var(--ink); }
.btn--on-dark { background: transparent; border-color: #7FB3C4; color: #fff; }
.btn--on-dark:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.btn--kaspi { background: #E0321F; border-color: #E0321F; color: #fff; }
.btn--kaspi:hover { background: #C42716; border-color: #C42716; color: #fff; }
.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--lg { min-height: 52px; padding: 0 22px; font-size: 16px; }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-btn { border: 0; background: none; padding: 0; color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.badge { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.badge--ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge--warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge--danger { background: var(--danger-bg); color: var(--danger-ink); }
.badge--info { background: var(--info-bg); color: var(--info-ink); }
.badge--neutral { background: #EEF0F2; color: var(--ink-2); }
.badge--promo { background: #FFE9A8; color: #5C4200; border-radius: 8px; }

.notice { border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.notice--ok { background: var(--ok-bg); color: var(--ok-ink); }
.notice--warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice--promo { background: var(--promo-bg); }
.notice--danger { background: var(--danger-bg); color: var(--danger-ink); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- формы ---------- */
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input { width: 100%; min-height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 16px; background: #fff; }
textarea.input { min-height: 88px; resize: vertical; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-error { color: var(--danger); font-size: 14px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- секции ---------- */
.section { padding: 40px 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.section-title { font-family: var(--display); font-weight: 600; font-size: 28px; }
.section-sub { color: var(--muted-2); font-size: 15px; margin-top: 6px; }
@media (max-width: 600px) { .section-title { font-size: 22px; } .section { padding: 28px 0; } }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---------- главная ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 40px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; letter-spacing: -.5px; }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); font-size: 14px; font-weight: 600; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.search { display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; }
.search-box { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; min-height: 52px; }
.search-box input { border: 0; outline: none; flex: 1; min-width: 0; background: transparent; font-size: 16px; }
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.search-box--sm { min-height: 44px; border-radius: 10px; flex: 0 1 340px; }
.hero-map { flex: 1 1 420px; min-width: 0; padding: 20px; text-decoration: none; color: var(--ink); display: block; }
.hero-map:hover { color: var(--ink); border-color: var(--line-2); }
.hero-map-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 700; }
.hero-map-head span:last-child { color: var(--primary); font-size: 14px; font-weight: 600; }

.zone-card { padding: 18px 20px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; border-top-width: 5px; }
.zone-card:hover { color: var(--ink); border-color: var(--line-2); }
.zone-card strong { font-size: 17px; }
.zone-card p { font-size: 14px; color: var(--muted); }
.zone-card .meta { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--primary); }

.when { padding: 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.when-text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.when-text h2 { font-size: 20px; }
.when-chart { flex: 1 1 380px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; height: 130px; margin: 0; padding: 0; list-style: none; }
.when-chart li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.when-chart .bar { width: 100%; border-radius: 6px 6px 2px 2px; background: #A9C9D4; }
.when-chart .bar--busy { background: #D64545; }
.when-chart span:last-child { font-size: 13px; font-weight: 600; color: var(--ink-2); }

.news-card { overflow: hidden; display: flex; flex-direction: column; }
.news-card .cover { height: 110px; display: flex; align-items: flex-end; padding: 16px; font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; background: var(--info-bg); color: var(--info-ink); }
.news-card:nth-child(3n+1) .cover { background: #FFE9A8; color: #5C4200; }
.news-card:nth-child(3n+2) .cover { background: #FDE1DE; color: #8A1F14; }
.news-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.news-card .date { font-size: 13px; color: var(--muted-2); font-weight: 500; }
.news-card h3 { font-size: 19px; }
.news-card p { font-size: 15px; color: var(--muted); }

.promo-card { padding: 20px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.promo-card:hover { color: var(--ink); border-color: var(--line-2); }
.promo-card .badge { align-self: flex-start; }
.promo-card strong { font-size: 17px; line-height: 1.3; }
.promo-card .shop { font-size: 14px; color: var(--muted-2); }
.promo-card .where { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--primary); }

.fair { background: var(--promo-bg); border: 1px solid #F0D98A; border-radius: 24px; padding: 36px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.fair-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.fair-text h2 { font-family: var(--display); font-weight: 600; font-size: 30px; }
.fair-text p { font-size: 17px; color: var(--ink-2); }
.fair-side { flex: 1 1 320px; min-width: 0; }
.fair .tag { align-self: flex-start; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }

.cta { background: var(--primary); color: #fff; border-radius: 24px; padding: 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta h2 { font-family: var(--display); font-weight: 600; font-size: 30px; }
.cta p { font-size: 17px; color: #DCEBF0; margin-top: 12px; }
.cta > div:first-child { flex: 1 1 420px; min-width: 0; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) { .fair, .cta { padding: 24px; } .fair-text h2, .cta h2 { font-size: 24px; } }

.site-footer { background: var(--ink); color: #C9D1D8; margin-top: 16px; }
.site-footer .container { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 32px 40px; }
.site-footer .col { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.site-footer .col-title { color: #fff; font-weight: 600; }
.site-footer a { color: #C9D1D8; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { font-family: var(--display); font-weight: 600; font-size: 18px; color: #fff; }

/* ---------- схема территории ---------- */
.territory { position: relative; aspect-ratio: 908 / 600; border-radius: 12px; overflow: hidden; background: #E9EDE6; }
.territory-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.territory-labels { position: absolute; inset: 0; pointer-events: none; }
.map-label { position: absolute; background: #fff; border: 2px solid var(--line-2); border-radius: 8px; padding: 4px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; display: flex; flex-direction: column; line-height: 1.3; }
.map-label small { font-weight: 500; color: var(--muted); font-size: 12px; }
.map-label--muted { border-color: transparent; color: var(--muted); font-weight: 600; }
.road-label { font-size: 11px; font-weight: 700; fill: #3D4853; letter-spacing: .5px; font-family: var(--font); }
.zone-shape { opacity: .85; }
.zone-btn { cursor: pointer; }
.zone-btn:focus { outline: none; }
.zone-btn:hover .zone-shape, .zone-btn:focus-visible .zone-shape { opacity: 1; stroke: #14202B; stroke-width: 3; }
.territory--mini .map-label { font-size: 11px; padding: 3px 7px; }
@media (max-width: 520px) { .territory--mini .map-label--muted { display: none; } }

/* ---------- страница карты ---------- */
.map-page { padding-top: 28px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 18px; }
.map-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.map-head h1 { font-family: var(--display); font-weight: 600; font-size: 28px; }
.map-head p { color: var(--muted-2); font-size: 15px; margin-top: 4px; }
.mode-toggle { display: flex; padding: 4px; background: #E6EAEC; border-radius: 12px; gap: 4px; }
.mode-toggle button { border: 0; cursor: pointer; font-weight: 600; font-size: 15px; padding: 11px 18px; border-radius: 9px; background: transparent; color: var(--muted); }
.mode-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--ink-2); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; flex: none; }
.swatch--busy { border: 1px solid #B8BFC6; }
.map-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.map-main { flex: 999 1 620px; min-width: 0; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.map-panel { flex: 1 1 300px; min-width: 0; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 960px) { .map-panel { position: sticky; top: 16px; } }
.map-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.map-scroll > * { min-width: 640px; }
.map-scroll--grid > * { min-width: 720px; }
.zone-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 4px; }
.zone-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.levels { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.stall-svg { width: 100%; height: auto; }
.stall { cursor: pointer; }
.stall:focus { outline: none; }
.stall:focus-visible rect { stroke: #2B7FFF; stroke-width: 3; }
.stall text { pointer-events: none; font-weight: 700; font-family: var(--font); }
.grid-note { font-size: 12px; font-weight: 700; fill: #46525E; font-family: var(--font); }
.entrance text { font-size: 12px; font-weight: 600; fill: #fff; font-family: var(--font); }
.no-map { border-radius: 12px; background: #F1F3F1; padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.no-map .form { width: 100%; max-width: 420px; }
.panel-title { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.25; }
.panel-h { font-size: 19px; font-weight: 700; }
.panel-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.dl dt { font-size: 13px; color: var(--muted-2); }
.dl dd { margin: 2px 0 0; font-weight: 600; }
.zone-list { display: flex; flex-direction: column; gap: 10px; }
.zone-item { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; width: 100%; }
.zone-item:hover { border-color: var(--ink-2); }
.zone-item .swatch { margin-top: 4px; }
.zone-item strong { display: block; font-size: 15px; }
.zone-item span { display: block; }
.zone-item .desc { font-size: 13px; color: var(--muted); }
.zone-item .meta { font-size: 13px; font-weight: 700; color: var(--primary); margin-top: 2px; }
.results { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.results button { width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.results button:hover { border-color: var(--ink-2); }
.results strong { display: block; font-size: 15px; }
.results span { display: block; font-size: 13px; color: var(--muted); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.offmap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; border: 1px dashed #A9B2BA; border-radius: 16px; padding: 16px 20px; background: #fff; }
.offmap span { flex: 1 1 300px; font-size: 14px; color: var(--muted); }

/* ---------- платформа ---------- */
.platform-hero .hero-text { flex-basis: 520px; }
.how { flex: 1 1 340px; min-width: 0; list-style: none; margin: 0; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.how li { display: flex; gap: 14px; align-items: flex-start; }
.how-n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.how strong { display: block; font-size: 17px; }
.how span:not(.how-n) { display: block; color: var(--muted); font-size: 15px; }
.market-card { padding: 20px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.market-card:hover { color: var(--ink); border-color: var(--line-2); }
.market-card strong { font-size: 19px; }
.market-card p { font-size: 15px; color: var(--ink-2); }
.market-card .meta { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--primary); font-size: 14px; }
.market-mark { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-ink); font-family: var(--display); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.owners { padding: 32px; display: flex; flex-wrap: wrap; gap: 20px 40px; }
.owners > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.owners-list { flex: 1 1 280px; margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.owners-contact { flex-basis: 100%; font-weight: 600; }

/* ---------- ИИ-чат ---------- */
.chat-body { min-height: 100vh; display: flex; flex-direction: column; }
.chat-page { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 16px 24px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
@media (max-width: 600px) { .chat-page { padding: 12px 16px; } }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 8px 0; min-height: 50vh; max-height: calc(100vh - 230px); }
.chat-intro { margin: auto 0; display: flex; flex-direction: column; gap: 14px; padding: 24px 0; }
.chat-intro h1 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 4vw, 32px); }
.chat-intro .chip { text-align: left; }
.msg { display: flex; flex-direction: column; gap: 10px; max-width: 88%; }
.msg-text { padding: 12px 16px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--user { align-self: flex-end; }
.msg--user .msg-text { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg--assistant { align-self: flex-start; }
.msg--assistant .msg-text { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg--error { align-self: center; }
.msg--error .msg-text { background: var(--danger-bg); color: var(--danger-ink); font-weight: 600; }
.msg--typing .msg-text { display: flex; gap: 5px; padding: 16px; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); animation: blink 1.2s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .2s; }
.msg--typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .msg--typing span { animation: none; opacity: .6; } }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.product-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.product-card strong { font-size: 16px; line-height: 1.3; }
.product-photo { width: calc(100% + 28px); max-width: none; margin: -14px -14px 4px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px 14px 0 0; background: var(--soft); }
.product-card p { font-size: 13px; }
.product-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.product-place { font-size: 13px; font-weight: 600; }
.product-price { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.product-opt { font-size: 13px; color: var(--ok-ink); font-weight: 600; }
.product-shop { font-size: 13px; color: var(--muted-2); margin-top: auto; }
.order-card ul { margin: 4px 0; padding-left: 18px; }
.order-card .btn { align-self: flex-start; margin-top: 6px; }
.cart-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.cart-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.cart-items li, .cart-total { display: flex; justify-content: space-between; gap: 12px; }
.cart-items li span:last-child, .cart-total span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-total { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; font-size: 17px; }
.cart-note { font-size: 13px; }

/* ---------- страница заказа ---------- */
.order-page { max-width: 720px; margin: 0 auto; padding: 28px 24px 48px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 600px) { .order-page { padding: 20px 16px 40px; } }
.order-page h1 { font-family: var(--display); font-weight: 600; font-size: 26px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 16px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--card); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; }
.timeline li.done .dot { background: var(--ok); border-color: var(--ok); }
.timeline li.current .dot { box-shadow: 0 0 0 4px var(--ok-bg); }
.timeline strong { display: block; }
.timeline span { font-size: 14px; color: var(--muted-2); }
.order-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.order-items li { display: flex; gap: 12px; align-items: center; }
.order-items img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }
.order-items .grow { flex: 1; min-width: 0; }
.order-items .grow span { display: block; font-size: 13px; color: var(--muted-2); }
.order-items .sum { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.replacement { display: flex; flex-direction: column; gap: 10px; }
.replacement .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px; }
.chat-form .input { border: 0; resize: none; min-height: 44px; max-height: 160px; box-shadow: none; }
.chat-form .input:focus { box-shadow: none; }
.chat-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.chat-note { font-size: 13px; color: var(--muted-2); text-align: center; }
.stall-products { display: flex; flex-direction: column; gap: 8px; }
.stall-product { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.stall-product span:last-child { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- админка ---------- */
.admin-page { padding-top: 28px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 20px; }
.login-card { max-width: 380px; margin: 60px auto; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.app-list { display: flex; flex-direction: column; gap: 12px; }
.app-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.app-card header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.app-card header .when { margin-left: auto; font-size: 13px; color: var(--muted-2); }
.app-card .who { font-size: 17px; font-weight: 700; }
.app-card .contacts { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 15px; }
.app-card .details { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 20px; font-size: 14px; }
.app-card .details dt { color: var(--muted-2); font-size: 13px; }
.app-card .details dd { margin: 0; font-weight: 600; }
.app-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 12px; }
.app-controls .field { flex: 1 1 220px; }
.app-controls select.input { flex: 0 0 auto; }
.empty { padding: 32px; text-align: center; color: var(--muted); }
.admin-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.admin-grid > :first-child { flex: 1 1 320px; padding: 20px; }
.admin-grid > :last-child { flex: 2 1 420px; display: flex; flex-direction: column; gap: 12px; }
.news-row { padding: 16px 18px; display: flex; gap: 16px; align-items: flex-start; }
.news-row > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 10; max-width: calc(100% - 32px); }

/* ---------- вызов служб ---------- */
.field-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.details { display: grid; gap: 10px; margin: 0; }
.details dt { color: var(--muted-2); font-size: 13px; }
.details dd { margin: 0; }
.service-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.service-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 14px; border-radius: 14px; border: 2px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; min-height: 96px; }
.service-pick strong { font-size: 16px; }
.service-pick span:last-child { font-size: 12px; color: var(--muted-2); line-height: 1.3; }
.service-pick[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.service-icon { font-size: 24px; line-height: 1; margin-bottom: 4px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 26px; font-family: var(--display); font-weight: 600; }
.stat span { font-size: 13px; color: var(--muted-2); }
.stat--alert { background: var(--danger-bg); color: var(--danger-ink); }
.stat--alert span { color: var(--danger-ink); }
.svc-card { border-left: 5px solid var(--line-2); }
.svc-card--new { border-left-color: var(--danger); }
.svc-card--sent { border-left-color: #E0A100; }
.svc-card--accepted { border-left-color: var(--primary); }
.svc-card--done { border-left-color: var(--ok); }
.svc-age { font-weight: 700; }
.svc-age--late { color: var(--danger); }
.svc-send { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.svc-send .field { flex: 1 1 200px; }
.staff-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.staff-row:first-of-type { border-top: 0; }
.staff-row .grow { flex: 1; min-width: 0; }
@media (max-width: 420px) { .service-picks { gap: 8px; } .service-pick { padding: 12px; min-height: 88px; } }
