/* ТутНайду · единое приложение — стили. Телефон сначала, десктоп от 1024 px: список слева, карта справа, помощник панелью.
   TutNaydu · unified app — styles. Mobile first; desktop ≥1024 px: list left, map right, assistant as a side panel. */

/* ---------- Токены / Tokens ---------- */
:root {
  --bg: #F4F6F8; --card: #FFFFFF; --ink: #12161C; --ink-2: #333D4B; --muted: #5A6371; --line: #E2E6EB; --line-2: #EEF1F4;
  --brand: #0E9F6E; --brand-ink: #047857; --brand-soft: #E3F5EC; --on-brand: #FFFFFF; --brand-h: #065F46;
  --ask: #6D5DF6; --ask-ink: #5443E0; --ask-soft: #EEECFF;
  --list: #0E9F6E; --list-ink: #047857; --list-soft: #E3F5EC;
  --map: #E8492A; --map-ink: #C0391D; --map-soft: #FDECE7;
  --amber-ink: #92400E; --amber-soft: #FEF3C7; --danger: #B91C1C; --danger-soft: #FDECEC;
  --mode: var(--ask); --mode-ink: var(--ask-ink); --mode-soft: var(--ask-soft);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px rgba(16, 24, 40, .07);
  --shadow-lg: 0 14px 34px rgba(16, 24, 40, .18);
  --r-lg: 1.25rem; --r: 1rem; --r-sm: .75rem;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --tab-h: 3.9rem; --side: 27.5rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1116; --card: #171B22; --ink: #E8ECF1; --ink-2: #C6CED8; --muted: #9AA4B2; --line: #29303A; --line-2: #1F242C;
    --brand: #34D399; --brand-ink: #4ADE9F; --brand-soft: #0F2A20; --on-brand: #052317; --brand-h: #6EE7B7;
    --ask: #A79BFF; --ask-ink: #B8AEFF; --ask-soft: #221E44; --list: #34D399; --list-ink: #4ADE9F; --list-soft: #0F2A20;
    --map: #FF7A5C; --map-ink: #FF9B82; --map-soft: #3A1B13; --amber-ink: #FCD34D; --amber-soft: #33260A; --danger: #FCA5A5; --danger-soft: #3A1517;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3); --shadow-lg: 0 14px 34px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1116; --card: #171B22; --ink: #E8ECF1; --ink-2: #C6CED8; --muted: #9AA4B2; --line: #29303A; --line-2: #1F242C;
  --brand: #34D399; --brand-ink: #4ADE9F; --brand-soft: #0F2A20; --on-brand: #052317; --brand-h: #6EE7B7;
  --ask: #A79BFF; --ask-ink: #B8AEFF; --ask-soft: #221E44; --list: #34D399; --list-ink: #4ADE9F; --list-soft: #0F2A20;
  --map: #FF7A5C; --map-ink: #FF9B82; --map-soft: #3A1B13; --amber-ink: #FCD34D; --amber-soft: #33260A; --danger: #FCA5A5; --danger-soft: #3A1517;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3); --shadow-lg: 0 14px 34px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
/* Акцент режима: где человек сейчас / Mode accent: where the person is */
body[data-mode="ask"] { --mode: var(--ask); --mode-ink: var(--ask-ink); --mode-soft: var(--ask-soft); }
body[data-mode="list"] { --mode: var(--list); --mode-ink: var(--list-ink); --mode-soft: var(--list-soft); }
body[data-mode="map"] { --mode: var(--map); --mode-ink: var(--map-ink); --mode-soft: var(--map-soft); }
body[data-mode="page"] { --mode: var(--brand); --mode-ink: var(--brand-ink); --mode-soft: var(--brand-soft); }
html.big { font-size: 19px; }

/* ---------- База / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; font-size: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: .95rem; line-height: 1.45; overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: var(--brand-ink); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
.ic { width: 1.375rem; height: 1.375rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic-s { width: 1.125rem; height: 1.125rem; } .ic-xs { width: .9rem; height: .9rem; } .ic-l { width: 2rem; height: 2rem; }
.ic-fill { fill: currentColor; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .fine { font-size: .78rem; color: var(--muted); } .center { text-align: center; }
:focus-visible { outline: 3px solid var(--mode); outline-offset: 2px; border-radius: 8px; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--card); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }
[hidden] { display: none !important; }
.lbl-big { display: none; }
.big .lbl-big { display: inline; }
.big .nb { display: none !important; }

/* ---------- Кнопки / Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.75rem; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(.98); }
.btn.sm { min-height: 2.75rem; padding: .4rem .8rem; font-size: .84rem; }
.btn.xs { min-height: 2.25rem; padding: .3rem .65rem; font-size: .78rem; }
.btn.lg { min-height: 3.25rem; font-size: 1rem; padding: .7rem 1.2rem; }
.btn.primary { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-h); border-color: var(--brand-h); }
:root[data-theme="dark"] .btn.primary { background: var(--brand); border-color: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { background: var(--brand); border-color: var(--brand); } }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.danger { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.btn.ghost-map, .btn.act-map, .btn.s-map { border-color: color-mix(in srgb, var(--map) 45%, transparent); color: var(--map-ink); }
.btn.ghost-ask, .btn.s-ask { border-color: color-mix(in srgb, var(--ask) 45%, transparent); color: var(--ask-ink); }
.btn.act-list, .btn.s-list { border-color: color-mix(in srgb, var(--list) 45%, transparent); color: var(--list-ink); }
.btn.demo { border-style: dashed; color: var(--ink-2); font-weight: 600; }
.btn.demo b { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; background: var(--line-2); padding: .1rem .35rem; border-radius: 6px; color: var(--muted); }
.btn.grow { flex: 1; }
.btn.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.ibtn { width: 2.75rem; height: 2.75rem; flex: none; display: inline-grid; place-items: center; border-radius: 999px; border: 0; background: transparent; color: var(--ink); }
.ibtn:hover { background: var(--line-2); }
.chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: .86rem; color: var(--ink); }
.chip.sm { font-size: .8rem; padding: .35rem .75rem; }
.chip[aria-pressed="true"] { background: var(--mode-soft); border-color: var(--mode); color: var(--mode-ink); }
.input { width: 100%; min-height: 2.75rem; padding: .6rem .9rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.input:focus { outline: 2px solid var(--mode); outline-offset: 0; border-color: transparent; }
textarea.input { resize: vertical; }
.mic, .send { flex: none; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 0; background: var(--line-2); color: var(--ink-2); }
.send { background: var(--ask-ink); color: #fff; }
.mic.listening { background: var(--map-ink); color: #fff; animation: pulse 1s infinite; }
.tag { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: var(--line-2); color: var(--ink-2); }
.tag.ok { background: var(--brand-soft); color: var(--brand-ink); } .tag.t-live { background: var(--map-soft); color: var(--map-ink); }
.badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .74rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: var(--line-2); color: var(--ink-2); }
.badge.ok { background: var(--brand-soft); color: var(--brand-ink); } .badge.danger { background: var(--danger-soft); color: var(--danger); margin-left: .35rem; }
.nbadge { min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px; background: var(--map-ink); color: #fff; font-size: .68rem; display: inline-grid; place-items: center; font-weight: 700; }
.callout { display: flex; gap: .6rem; padding: .75rem .9rem; border-radius: var(--r); font-size: .86rem; align-items: flex-start; }
.callout.ok { background: var(--brand-soft); color: var(--ink); } .callout.ok .ic { color: var(--brand-ink); }
.callout.ad, .callout.warn { background: var(--amber-soft); } .callout.ad .ic, .callout.warn .ic { color: var(--amber-ink); }

/* ---------- Оболочка / Shell ---------- */
.app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.strip { flex: none; display: flex; justify-content: space-between; gap: .5rem; padding: .25rem 1rem; font-size: .75rem; background: #1D2430; color: #E7EBF0; }
.strip a { color: #A7F3D0; font-weight: 600; }
.hdr { flex: none; display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; background: var(--card); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; flex: none; min-height: 2.75rem; }
.logo-mark { width: 2rem; height: 2rem; border-radius: .6rem; background: var(--brand-ink); display: grid; place-items: center; }
.logo-mark svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.logo-t { display: none; }
body[data-route="ask"] .logo-t { display: inline; }
.hsearch { flex: 1; min-width: 0; display: flex; align-items: center; gap: .25rem; background: var(--line-2); border-radius: 999px; padding: 0 .2rem 0 .75rem; min-height: 2.75rem; border: 1px solid transparent; }
.hsearch:focus-within { border-color: var(--mode); background: var(--card); }
.hsearch input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 2.6rem; outline: none; font-size: .92rem; }
.hsearch input::-webkit-search-cancel-button { display: none; }
.hs-ic { color: var(--muted); }
.hsearch .mic { width: 2.5rem; height: 2.5rem; background: transparent; }
.hs-go { border: 0; background: var(--mode-ink); color: #fff; border-radius: 999px; min-height: 2.3rem; padding: 0 .8rem; font-weight: 700; font-size: .84rem; }
body[data-route="ask"] .hsearch { display: none; }
body[data-route="ask"] .hdr { justify-content: space-between; }
.hdr-ask-t { display: none; }
.hnav { display: none; }
.help-btn { flex: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; min-width: 2.75rem; justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-weight: 600; font-size: .84rem; padding: 0 .55rem; }
.help-btn span { display: none; }
.big .help-btn span { display: inline; }

.modebar { flex: none; background: var(--card); border-bottom: 1px solid var(--line); padding: .5rem .75rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; background: var(--line-2); border-radius: 999px; padding: .2rem; }
.seg-b { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 2.75rem; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: .88rem; transition: background .18s, color .18s; }
.seg-ic { font-size: 1rem; line-height: 1; }
.seg-b.s-ask .seg-ic { color: var(--ask-ink); } .seg-b.s-list .seg-ic { color: var(--list-ink); } .seg-b.s-map .seg-ic { color: var(--map-ink); }
.seg-b[aria-current="page"] { color: #fff; box-shadow: var(--shadow); }
.seg-b[aria-current="page"] .seg-ic { color: #fff; }
.seg-b.s-ask[aria-current="page"] { background: #5443E0; } .seg-b.s-list[aria-current="page"] { background: #047857; } .seg-b.s-map[aria-current="page"] { background: #C0391D; }
.ctxbar { flex: 1; min-width: 0; display: flex; align-items: center; gap: .5rem; }
/* Строка контекста: кнопка «Вид» (телефон) + чипы / Context row: "View" button (phone) + chips */
.mb-row { display: flex; align-items: center; gap: .4rem; margin-top: .5rem; }
.seg-main[hidden] + .mb-row { margin-top: 0; }
@media (max-width: 1023px) { .vb-m:not([hidden]) + .ctxbar .ctx-n { display: none; } }  /* число — в заголовке списка / the count is in the list title */
.ctx-chips { flex: 1; min-width: 0; display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: 1px; }
.ctx-chips::-webkit-scrollbar { display: none; }
.ctx-n { flex: none; font-size: .76rem; color: var(--muted); white-space: nowrap; }
.cchip { flex: none; display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 999px; background: var(--card); min-height: 2.75rem; }
.cchip.main { border-color: var(--mode); background: var(--mode-soft); }
.cchip-b { border: 0; background: transparent; padding: 0 .8rem; font-weight: 600; font-size: .83rem; color: var(--ink); white-space: nowrap; border-radius: 999px; }
.cchip.rm .cchip-b { padding-right: .2rem; }
.cchip-x { border: 0; background: transparent; width: 2.25rem; display: grid; place-items: center; color: var(--muted); border-radius: 999px; }
.cchip.add { align-items: center; gap: .3rem; padding: 0 .75rem; font-weight: 600; font-size: .83rem; color: var(--ink-2); border-style: dashed; }
.modehint { display: flex; align-items: center; gap: .4rem; margin-top: .45rem; padding: .3rem .3rem .3rem .45rem; border-radius: var(--r); background: var(--mode-soft); font-size: .76rem; line-height: 1.25; }
.modehint p { flex: 1; min-width: 0; }
.modehint .btn.xs { min-height: 2.75rem; padding: .2rem .5rem; font-size: .72rem; }
@media (max-width: 1023px) { .modehint .nb, .modehint .mh-ic { display: none; } .mh-b .btn { flex-direction: column; gap: 0; border-radius: .8rem; } }
.mh-ic { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--mode-ink); flex: none; }
.mh-b { display: flex; gap: .3rem; }

.stage { flex: 1; min-height: 0; position: relative; }
.view { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; }
.view.enter { animation: viewIn .2s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tabbar { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); min-height: var(--tab-h); padding-bottom: env(safe-area-inset-bottom); background: var(--card); border-top: 1px solid var(--line); }
.tabbar a, .tab-post { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; text-decoration: none; color: var(--muted); font-size: .68rem; font-weight: 600; border: 0; background: none; min-height: 2.75rem; }
.tabbar a[aria-current="page"] { color: var(--mode-ink); }
.tabbar .nbadge { position: absolute; top: .3rem; left: calc(50% + .3rem); }
.tab-plus { width: 2.4rem; height: 2.4rem; border-radius: .9rem; background: var(--brand-ink); color: #fff; display: grid; place-items: center; }
.tab-post { color: var(--ink-2); }

/* ---------- Плашки поверх / Overlays ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + .5rem + env(safe-area-inset-bottom)); z-index: 40; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 0 .75rem; pointer-events: none; }
.dock > div { width: 100%; display: flex; justify-content: center; }
.dock > div:empty { display: none; }
.dock > div > * { pointer-events: auto; }
body[data-route="item"] .dock, body[data-route="pro"] .dock, body[data-route="checkout"] .dock { bottom: calc(var(--tab-h) + 4.6rem); }
body[data-route="map"] .dock { bottom: calc(var(--tab-h) + .5rem); }
.has-dock .lv, .has-dock .pg-body, .has-dock .msheet-list { padding-bottom: 6.5rem; }
.live { position: relative; overflow: hidden; display: flex; align-items: center; gap: .6rem; width: 100%; max-width: 26rem; min-height: 3.1rem; padding: .35rem .9rem .35rem .35rem; border-radius: 999px; background: #161B23; color: #fff; text-decoration: none; box-shadow: var(--shadow-lg); }
.live-ic { position: relative; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #047857; display: grid; place-items: center; flex: none; }
.live.go .live-ic { background: #C0391D; } .live.work .live-ic { background: #5443E0; } .live.pay .live-ic { background: #B45309; }
.live-t { flex: 1; min-width: 0; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .15); }
.live-bar i { display: block; height: 100%; background: #FF9B82; transition: width .2s linear; }
.pulse { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #FF9B82; animation: ping 1.4s infinite; }
@keyframes ping { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes pulse { 50% { opacity: .65; } }
.tray { display: flex; align-items: center; gap: .5rem; width: 100%; max-width: 26rem; padding: .35rem .35rem .35rem .6rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.tray-imgs { display: flex; } .tray-imgs .ava { margin-left: -.45rem; border: 2px solid var(--card); } .tray-imgs .ava:first-child { margin-left: 0; }
.tray-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; font-size: .84rem; } .tray-t small { color: var(--muted); font-size: .72rem; }
.tray a[aria-disabled="true"] { opacity: .55; }
.tourbar { position: relative; overflow: hidden; display: flex; align-items: center; gap: .5rem; width: 100%; max-width: 36rem; padding: .7rem .5rem .6rem .9rem; border-radius: 1.1rem; background: #241E5C; color: #fff; box-shadow: var(--shadow-lg); }
.tourbar.end { background: #064E3B; }
.tb-prog { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: rgba(255, 255, 255, .15); } .tb-prog i { display: block; height: 100%; background: #A79BFF; transition: width .3s; }
.tb-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.tb-t b { font-size: .92rem; } .tb-t small { font-size: .76rem; opacity: .85; }
.tb-n { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; opacity: .8; font-weight: 700; }
.tb-b { display: flex; align-items: center; gap: .15rem; flex: none; }
.tourbar .ibtn { color: #fff; } .tourbar .ibtn:hover { background: rgba(255, 255, 255, .12); }
.tourbar .btn { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); }
.touring .dock { bottom: calc(var(--tab-h) + .5rem); }
.ring { position: fixed; z-index: 55; pointer-events: none; border: 3px solid #6D5DF6; border-radius: 1rem; box-shadow: 0 0 0 5px rgba(109, 93, 246, .25); transition: all .25s var(--ease); animation: ringP 1.2s infinite; }
@keyframes ringP { 50% { box-shadow: 0 0 0 10px rgba(109, 93, 246, .08); } }
.toast { position: fixed; left: 50%; top: 5.5rem; z-index: 80; transform: translate(-50%, -12px); opacity: 0; pointer-events: none; width: max-content; max-width: calc(100% - 2rem); display: flex; align-items: center; gap: .4rem; padding: .65rem 1rem; border-radius: 999px; background: #161B23; color: #fff; font-size: .86rem; font-weight: 600; box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.has-act { pointer-events: auto; border-radius: 1.2rem; flex-wrap: wrap; justify-content: center; text-align: center; }
.toast-b { background: #fff; color: #161B23; border-color: #fff; min-height: 2.75rem; }
.toast-b:hover { background: #E7EBF0; border-color: #E7EBF0; }

/* ---------- Шторка / Sheet ---------- */
.sheet-root { position: fixed; inset: 0; z-index: 70; }
.sheet-back { position: absolute; inset: 0; background: rgba(8, 12, 18, .45); opacity: 0; transition: opacity .18s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto; background: var(--card); border-radius: 1.4rem 1.4rem 0 0; padding: .4rem 1rem calc(1.2rem + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .2s var(--ease); box-shadow: var(--shadow-lg); }
.sheet-root.on .sheet { transform: none; } .sheet-root.on .sheet-back { opacity: 1; }
.sheet-grab { width: 2.75rem; height: 5px; border-radius: 3px; background: var(--line); margin: .3rem auto .4rem; }
.sheet-x { position: absolute; right: .75rem; top: .6rem; }
.sheet-body { display: flex; flex-direction: column; gap: .7rem; padding-top: .4rem; }
.sheet-body h2 { font-size: 1.2rem; padding-right: 7rem; }
.sheet-cta { position: sticky; bottom: -1.2rem; background: var(--card); padding: .6rem 0; display: flex; }
.opts { display: flex; flex-direction: column; gap: .4rem; }
.optb { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; text-align: left; min-height: 3rem; padding: .55rem .9rem; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--card); }
.optb small { color: var(--muted); font-size: .78rem; }
.optb[aria-pressed="true"] { border-color: var(--mode); background: var(--mode-soft); }
.optb.sw-row { position: relative; padding-right: 4rem; }
.sw { position: relative; width: 2.75rem; height: 1.6rem; border-radius: 999px; background: var(--line); flex: none; transition: background .15s; }
.sw::after { content: ""; position: absolute; left: .2rem; top: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
[aria-pressed="true"] > .sw { background: var(--brand-ink); } [aria-pressed="true"] > .sw::after { transform: translateX(1.15rem); }
.optb.sw-row .sw { position: absolute; right: .9rem; top: 50%; margin-top: -.8rem; }
.big-opt { display: grid; grid-template-columns: 2.5rem 1fr; gap: .1rem .7rem; align-items: center; padding: .8rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink); text-align: left; }
.big-opt span { grid-row: span 2; font-size: 1.6rem; } .big-opt small { color: var(--muted); }

/* ---------- Карточки и строки / Cards and rows ---------- */
.lv { padding: .75rem .75rem 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.lhead { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.lv-h { font-size: 1.05rem; font-weight: 800; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; border: 2px solid transparent; transition: border-color .15s, box-shadow .15s; }
.card.is-focus { border-color: var(--mode); box-shadow: 0 0 0 4px var(--mode-soft), var(--shadow); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--line-2); }
.card-media > a, .card-media img { display: block; width: 100%; height: 100%; }
.card-media img { object-fit: cover; }
.kind { position: absolute; left: .5rem; top: .5rem; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #12161C; }
.kind.k-s { color: #5443E0; } .kind.k-g { color: #047857; }
.card .fav, .gal .fav { position: absolute; right: .3rem; top: .3rem; background: rgba(255, 255, 255, .92); color: #12161C; }
.card .cmp { position: absolute; right: .3rem; bottom: .3rem; background: rgba(255, 255, 255, .92); color: #12161C; }
.fav[aria-pressed="true"] { color: #C0391D; }
.cmp[aria-pressed="true"] { background: #5443E0 !important; color: #fff !important; }
.focus-tag { position: absolute; left: .5rem; bottom: .5rem; display: inline-flex; align-items: center; gap: .2rem; font-size: .7rem; font-weight: 700; padding: .2rem .5rem; border-radius: 999px; background: var(--mode-ink); color: #fff; }
.card-body { display: flex; flex-direction: column; gap: .2rem; padding: .6rem .7rem .7rem; flex: 1; min-width: 0; }
.card-price { font-size: 1.05rem; font-weight: 800; line-height: 1.15; }
.card-price small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); }
.card-title { font-size: .9rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card-media .fav, .card-media .cmp, .card-tags, .card-acts { position: relative; z-index: 1; }
.card-media .fav, .card-media .cmp { position: absolute; }
.card-role { font-size: .76rem; color: var(--muted); }
.card-meta { font-size: .76rem; color: var(--muted); }
.card-meta .rating, .card-meta .trv { vertical-align: middle; }
.card-meta .ic { vertical-align: -2px; }
@media (max-width: 1023px) { html:not(.big) .cards .why-btn { display: none; } }
.card-trust { font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: .25rem; min-width: 0; }
.card-trust span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-role .mine { color: var(--brand-ink); }
.rating { display: inline-flex; align-items: center; gap: .15rem; font-weight: 700; color: var(--ink); }
.rating .ic { color: #F59E0B; width: .9rem; height: .9rem; }
.trv { display: inline-flex; align-items: center; gap: .2rem; font-weight: 600; color: var(--ink-2); }
.free { display: inline-flex; align-items: center; gap: .25rem; font-size: .76rem; font-weight: 600; color: var(--brand-ink); }
.free.later { color: var(--muted); }
.card-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; }
.vpill, .ad-tag, .why-btn { display: inline-flex; align-items: center; gap: .25rem; min-height: 2.25rem; padding: .2rem .6rem; border-radius: 999px; border: 1px solid transparent; font-size: .74rem; font-weight: 700; background: var(--line-2); color: var(--ink-2); }
.vpill.v-ok, .vpill.v-low { background: var(--brand-soft); color: var(--brand-ink); }
.vpill.v-high { background: var(--amber-soft); color: var(--amber-ink); }
.ad-tag { background: var(--amber-soft); color: var(--amber-ink); border-color: color-mix(in srgb, var(--amber-ink) 30%, transparent); }
.why-btn { background: transparent; border-color: var(--line); font-weight: 600; color: var(--muted); }
.cards .why-btn { font-size: 0; gap: 0; width: 2.25rem; justify-content: center; padding: 0; }
.cards .why-btn .ic { width: 1rem; height: 1rem; }
.card-acts { display: flex; gap: .35rem; margin-top: auto; padding-top: .45rem; }
.card-acts .btn { flex: 1 1 0; min-width: 0;  flex-direction: column; padding: .3rem .2rem; font-size: .72rem; gap: .1rem; line-height: 1.1; border-radius: .9rem; min-height: 3rem; }
@media (min-width: 1024px) { .card-acts .btn { flex-direction: row; font-size: .8rem; gap: .3rem; min-height: 2.75rem; border-radius: 999px; } }
.big .card-acts .btn { flex-direction: row; font-size: .9rem; gap: .35rem; }
.nb-lg { display: none; }
.v-ok, .v-low { color: var(--brand-ink); } .v-high { color: var(--amber-ink); }
.ava { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; flex: none; background: var(--line-2); }
.ava-s { width: 2.1rem; height: 2.1rem; } .ava-l { width: 3.6rem; height: 3.6rem; }
.ava-ini { display: inline-grid; place-items: center; background: var(--ask-soft); color: var(--ask-ink); font-weight: 800; font-size: .85rem; }
.ava-l.ava-ini { font-size: 1.15rem; }
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.row { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: .65rem; min-height: 3.9rem; padding: .45rem .5rem; border: 0; border-radius: var(--r); background: transparent; text-align: left; color: var(--ink); text-decoration: none; }
.row-main:hover { background: var(--line-2); }
.row.is-focus .row-main { background: var(--mode-soft); box-shadow: inset 0 0 0 2px var(--mode); }
.row-main.static { cursor: default; }
.row-img { width: 3.4rem; height: 3.4rem; border-radius: .75rem; object-fit: cover; flex: none; }
.row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.row-txt b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-txt small { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-txt .row-free { color: var(--brand-ink); font-weight: 600; } .row-txt .row-free.later { color: var(--muted); }
.row-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; text-align: right; }
.row-price b { font-size: .9rem; } .row-price small { font-size: .7rem; font-weight: 600; }
.row .ad-tag { margin-left: 4.1rem; min-height: 2rem; }
.soft-hint { display: flex; align-items: center; gap: .5rem; width: 100%; min-height: 2.75rem; padding: .45rem .8rem; border-radius: var(--r); border: 1.5px dashed var(--line); background: var(--card); text-align: left; font-size: .84rem; color: var(--ink); }
.soft-hint small { color: var(--muted); margin-left: auto; font-size: .74rem; }
.soft-hint.h-map { border-color: color-mix(in srgb, var(--map) 50%, transparent); } .soft-hint.h-map .ic { color: var(--map-ink); }
.soft-hint.h-list { border-color: color-mix(in srgb, var(--list) 50%, transparent); } .soft-hint.h-list .ic { color: var(--list-ink); }
.soft-hint.h-ask { border-color: color-mix(in srgb, var(--ask) 50%, transparent); } .soft-hint.h-ask .ic { color: var(--ask-ink); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding: 1.2rem 1rem; background: var(--card); border-radius: var(--r-lg); border: 1.5px dashed var(--line); }
.empty-ic { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--mode-soft); color: var(--mode-ink); }
.empty h3 { font-size: 1.02rem; } .empty p { color: var(--muted); font-size: .86rem; max-width: 30rem; }
.empty-acts { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.empty-acts .btn { flex-wrap: wrap; white-space: normal; }
.cnt { font-size: .72rem; opacity: .85; } .far { flex-basis: 100%; font-size: .68rem; font-weight: 600; opacity: .85; }
.cross { background: var(--card); border-radius: var(--r-lg); padding: .8rem; box-shadow: var(--shadow); border: 1.5px solid color-mix(in srgb, var(--ask) 40%, transparent); display: flex; flex-direction: column; gap: .5rem; }
.cross-h { display: flex; gap: .6rem; align-items: flex-start; } .cross-h h3 { font-size: .95rem; } .cross-h p { font-size: .8rem; color: var(--muted); }
.cross-ic { width: 2.4rem; height: 2.4rem; border-radius: .8rem; background: var(--ask-soft); color: var(--ask-ink); display: grid; place-items: center; flex: none; }
.cross-acts { display: flex; gap: .4rem; flex-wrap: wrap; }
.mine-box { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: var(--r-lg); background: var(--brand-soft); }
.mine-box div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .mine-box small { color: var(--muted); font-size: .76rem; }

/* ---------- Индекс цен / Price meter ---------- */
.meter { margin: .3rem 0; }
.meter-track { position: relative; height: .7rem; border-radius: 999px; background: var(--line-2); }
.meter-zone { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: color-mix(in srgb, var(--brand) 35%, transparent); }
.meter-med { position: absolute; top: -.2rem; bottom: -.2rem; width: 3px; margin-left: -1.5px; background: var(--brand-ink); border-radius: 2px; }
.meter-dot { position: absolute; top: 50%; width: 1.1rem; height: 1.1rem; margin: -.55rem 0 0 -.55rem; border-radius: 50%; background: var(--card); border: 3px solid var(--ink); }
.meter-lbl { display: flex; justify-content: space-between; gap: .4rem; font-size: .72rem; color: var(--muted); margin-top: .3rem; }
.meter-lbl b { color: var(--ink); }
.trust3 { list-style: none; margin: .5rem 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; counter-reset: t3; }
.trust3 li { position: relative; display: flex; flex-direction: column; gap: .2rem; padding: .6rem .55rem; border-radius: var(--r); background: var(--brand-soft); font-size: .74rem; line-height: 1.25; }
.trust3 li b { font-size: .8rem; } .trust3 li small { color: var(--ink-2); }
.trust3 li:not(:last-child)::after { content: "→"; position: absolute; right: -.45rem; top: 1rem; font-weight: 800; color: var(--brand-ink); z-index: 1; }
.t3-ic { width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--card); color: var(--brand-ink); display: grid; place-items: center; }
.why-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.why-list li { display: flex; gap: .45rem; font-size: .88rem; } .why-list .ic { color: var(--brand-ink); margin-top: .1rem; }

/* ---------- Карта / Map ---------- */
.mv { position: absolute; inset: 0; overflow: hidden; }
.map-slot { position: absolute; inset: 0; }
.mapbox { position: absolute; inset: 0; background: #ECEEE8; }
#mapCanvas, #mapCanvas.maplibregl-map { position: absolute; inset: 0; }
:root[data-theme="dark"] .map-canvas canvas { filter: brightness(.82) contrast(1.05) saturate(.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map-canvas canvas { filter: brightness(.82) contrast(1.05) saturate(.9); } }
.map-top { position: absolute; top: .6rem; left: .6rem; right: 3.6rem; z-index: 6; display: flex; gap: .4rem; flex-wrap: wrap; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.seg-mini { display: inline-flex; gap: .15rem; padding: .2rem; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); }
.seg-mini button { min-height: 2.5rem; padding: 0 .8rem; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: .8rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: .3rem; }
.seg-mini button[aria-pressed="true"] { background: var(--mode-ink); color: #fff; }
.seg-mini.wide { display: flex; flex-wrap: wrap; } .seg-mini.wide button { flex: 1; min-height: 2.75rem; }
.map-chip { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; padding: 0 .8rem; border-radius: 999px; border: 0; background: var(--card); box-shadow: var(--shadow); font-weight: 700; font-size: .8rem; color: var(--ink-2); }
.map-chip.on { background: #C0391D; color: #fff; }
.msheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; flex-direction: column; height: 46%; background: var(--card); border-radius: 1.3rem 1.3rem 0 0; box-shadow: 0 -8px 28px rgba(0, 0, 0, .16); transition: height .22s var(--ease); }
.msheet-grab { flex: none; height: 1.7rem; display: grid; place-items: center; cursor: grab; touch-action: none; border-radius: 1.3rem 1.3rem 0 0; }
.msheet-grab span { width: 2.75rem; height: 5px; border-radius: 3px; background: var(--line); }
.msheet-head { flex: none; display: flex; flex-direction: column; gap: .4rem; padding: 0 1rem .5rem; touch-action: none; }
.msheet-head > b { font-size: .98rem; }
.map-tools { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; }
.map-tools > * { flex: none; }
.msheet .seg-mini, .msheet .map-chip { box-shadow: none; background: var(--line-2); }
.msheet .map-chip.on { background: #C0391D; }
.msheet-list { flex: 1; min-height: 0; overflow: auto; padding: 0 .6rem 1rem; display: flex; flex-direction: column; gap: .6rem; }
.fcard { position: relative; margin: 0 .75rem .5rem; padding: .7rem; border-radius: var(--r-lg); background: var(--card); border: 2px solid var(--mode); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .55rem; flex: none; }
.fcard-x { position: absolute; right: .1rem; top: .1rem; }
.fcard-top { display: flex; gap: .6rem; align-items: center; padding-right: 2.2rem; }
.fcard-img { width: 3.6rem; height: 3.6rem; border-radius: .8rem; object-fit: cover; flex: none; }
.fcard-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.fcard-t b { font-size: .95rem; } .fcard-t small { font-size: .74rem; color: var(--muted); }
.fcard-t .fcard-trv { color: var(--ink-2); font-weight: 600; }
.fcard-p { display: flex; flex-direction: column; align-items: flex-end; flex: none; } .fcard-p small { font-size: .7rem; font-weight: 700; }
.fcard-acts { display: flex; gap: .3rem; }
.fcard-acts .btn, .fcard-acts .ibtn { flex: 1 1 0; min-width: 0; width: 100%; padding: .3rem .25rem; font-size: .74rem; gap: .2rem; border-radius: .9rem; flex-direction: column; min-height: 3.1rem; white-space: normal; text-align: center; line-height: 1.1; }
.ibtn.with-l { width: auto; border: 1px solid var(--line); border-radius: 999px; padding: 0 .8rem; gap: .3rem; font-weight: 600; font-size: .84rem; display: inline-flex; color: var(--ask-ink); }
.ibtn.with-l[aria-pressed="true"] { background: #5443E0; color: #fff; border-color: #5443E0; }
.map-focus { display: none; }
.map-fb { position: absolute; inset: 0; z-index: 4; overflow: auto; background: var(--bg); padding: 4rem .8rem 1rem; }
.fb-in { max-width: 32rem; margin: 0 auto; display: flex; flex-direction: column; gap: .6rem; background: var(--card); border-radius: var(--r-lg); padding: .8rem; box-shadow: var(--shadow); }
.fb-h { display: flex; gap: .4rem; align-items: center; color: var(--map-ink); }
.fb-line { display: flex; gap: .4rem; align-items: center; }
.maplibregl-ctrl-attrib { font-size: .66rem !important; }
.maplibregl-ctrl-group button { width: 2.75rem !important; height: 2.75rem !important; }
.maplibregl-ctrl-top-right { top: .5rem !important; }
.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib { max-width: calc(100vw - 5rem); }
/* Пины / Pins */
.pin { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; }
.pin-price { position: relative; display: block; padding: .3rem .55rem; border-radius: 999px; background: #fff; color: #12161C; font: 700 .76rem/1.1 var(--font); white-space: nowrap; border: 2px solid #047857; box-shadow: 0 2px 8px rgba(0, 0, 0, .22); }
.pin-price::after, .pin-ava::after, .pin-card::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -6px; border: 6px solid transparent; border-top-color: #047857; border-bottom: 0; }
.pin-ava { position: relative; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #EEECFF; color: #5443E0; font: 800 .8rem var(--font); border: 3px solid #5443E0; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.pin-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pin-ava::after { border-top-color: #5443E0; bottom: -9px; }
.pin.mine .pin-ava { border-color: #047857; } .pin.mine .pin-ava::after { border-top-color: #047857; }
.pin-dot { position: absolute; right: -2px; top: -2px; width: .9rem; height: .9rem; border-radius: 50%; background: #16A34A; border: 2px solid #fff; }
.pin-ad { position: absolute; left: 50%; top: -1.15rem; transform: translateX(-50%); z-index: 2; white-space: nowrap; font: 700 .6rem/1 var(--font); padding: .15rem .35rem; border-radius: .35rem; background: #FEF3C7; color: #92400E; border: 1px solid #F59E0B; }
.pin.is-focus { z-index: 30; }
.pin-card { position: relative; display: flex; align-items: center; gap: .45rem; max-width: 15rem; padding: .3rem .7rem .3rem .3rem; border-radius: .9rem; background: #fff; color: #12161C; border: 2.5px solid #C0391D; box-shadow: 0 10px 24px rgba(0, 0, 0, .28); text-align: left; }
.pin-card::after { border-top-color: #C0391D; bottom: -8px; }
.pin-card .ava { width: 2.2rem; height: 2.2rem; }
.pin-card span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.pin-card b { font: 700 .8rem var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-card small { font: 600 .7rem var(--font); color: #5A6371; white-space: nowrap; }
.pin:focus-visible { outline: 3px solid #5443E0; outline-offset: 3px; border-radius: 999px; }
.me-pin { position: relative; }
.me-dot { display: block; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #2563EB; border: 3px solid #fff; box-shadow: 0 0 0 7px rgba(37, 99, 235, .22), 0 2px 6px rgba(0, 0, 0, .3); }
.me-lbl { position: absolute; left: 50%; top: 1.45rem; transform: translateX(-50%); white-space: nowrap; font: 700 .7rem var(--font); background: #fff; color: #1E3A8A; padding: .1rem .4rem; border-radius: .4rem; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.map-lbl { font: 700 .7rem var(--font); padding: .15rem .45rem; border-radius: .45rem; background: rgba(255, 255, 255, .92); color: #C0391D; white-space: nowrap; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.map-lbl.zone { color: #047857; } .map-lbl.start { color: #5A6371; }
.mover { position: relative; }
.mover-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #C0391D; color: #fff; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.mover-lbl { position: absolute; left: 2.7rem; top: .45rem; z-index: 1; white-space: nowrap; font: 800 .78rem var(--font); background: #fff; color: #C0391D; padding: .15rem .45rem; border-radius: .45rem; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.mover .pulse { inset: -6px; }
.anchor-pin { display: flex; align-items: center; gap: .35rem; padding: .2rem .6rem .2rem .2rem; border-radius: 999px; background: #5443E0; color: #fff; font: 700 .74rem var(--font); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); white-space: nowrap; }
.anchor-pin span { width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #fff; color: #5443E0; display: grid; place-items: center; }
.stop { display: flex; align-items: center; gap: .35rem; padding: .15rem .55rem .15rem .15rem; border-radius: 999px; background: #fff; color: #12161C; font: 700 .72rem var(--font); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); white-space: nowrap; }
.stop b { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #047857; color: #fff; display: grid; place-items: center; }
.stop.done b { background: #98A2B3; } .stop.next b { background: #C0391D; } .stop.home b { background: #12161C; }
.req-pin { display: flex; align-items: center; gap: .25rem; min-height: 2rem; padding: .2rem .55rem; border-radius: 999px; background: #FEF3C7; color: #92400E; border: 1.5px solid #F59E0B; font: 700 .72rem var(--font); white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); cursor: pointer; }

/* ---------- Помощник / Assistant ---------- */
.av { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.ask-top { flex: none; display: none; align-items: center; gap: .6rem; padding: .4rem .5rem .4rem .8rem; background: var(--card); border-bottom: 1px solid var(--line); }
.ask-top > div { flex: 1; display: flex; flex-direction: column; line-height: 1.2; } .ask-top small { color: var(--muted); font-size: .74rem; }
.online { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: #16A34A; margin-right: .3rem; }
.ask-close { display: none; }
.bot-ava { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--ask-soft); color: var(--ask-ink); display: inline-grid; place-items: center; flex: none; }
.bot-ava .ic { width: 1.15rem; height: 1.15rem; }
.bot-ava.sm { width: 1.9rem; height: 1.9rem; }
.ask-focus { flex: none; padding: .5rem .75rem; background: var(--ask-soft); border-bottom: 1px solid color-mix(in srgb, var(--ask) 30%, transparent); }
.kb { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.kb > p { flex: 1 1 12rem; font-size: .86rem; line-height: 1.3; }
.kb-acts { display: flex; gap: .3rem; flex-wrap: wrap; flex-basis: 100%; }
.ask-scroll { flex: 1; min-height: 0; overflow: auto; padding: .5rem .75rem 1rem; }
.ask-sugg { flex: none; }
.sugg { display: flex; gap: .35rem; overflow-x: auto; padding: .4rem .75rem; scrollbar-width: none; }
.sugg .chip { flex: none; }
.ask-comp { flex: none; display: flex; align-items: center; gap: .4rem; padding: .5rem .75rem; background: var(--card); border-top: 1px solid var(--line); }
.ask-comp .input { border-radius: 999px; }
.msg { display: flex; gap: .5rem; align-items: flex-end; margin: .7rem 0; }
.m-me { justify-content: flex-end; }
.m-me .bub { max-width: 82%; padding: .6rem .9rem; border-radius: 1.1rem 1.1rem .3rem 1.1rem; background: #5443E0; color: #fff; font-size: .92rem; }
.m-bot .bub { min-width: 0; max-width: calc(100% - 2.5rem); flex: 1; padding: .7rem .8rem; border-radius: 1.1rem 1.1rem 1.1rem .3rem; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .92rem; display: block; }
.m-bot .bub > * + * { margin-top: .55rem; }
.m-bot .bub > b + *, .m-bot .bub > a + * { margin-top: 0; }
.m-bot.k-ctx .bub, .m-bot.k-note .bub { background: var(--ask-soft); box-shadow: none; border-color: transparent; font-size: .86rem; }
.m-bot.k-focus .bub, .m-bot.k-cross .bub { border: 1.5px solid color-mix(in srgb, var(--ask) 50%, transparent); }
.typing { display: flex !important; flex-direction: row; gap: .3rem; width: auto; flex: none !important; }
.typing i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(3) { animation-delay: .2s; } .typing i:nth-child(4) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }
.acts { display: flex; flex-wrap: wrap; gap: .35rem; }
.ctx-mini { display: flex; align-items: center; gap: .4rem; }
.ctx-mini .ctx-chips { flex-wrap: nowrap; }
.req { display: flex; flex-direction: column; gap: .5rem; padding: .7rem; border-radius: var(--r); background: var(--line-2); }
.req-h { display: flex; align-items: center; gap: .4rem; } .req-h .tag { margin-left: auto; }
.req-f { margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.req-f div { display: grid; grid-template-columns: 4.6rem 1fr; gap: .5rem; font-size: .86rem; }
.req-f dt { color: var(--muted); } .req-f dd { margin: 0; font-weight: 600; } .req-f small { font-weight: 400; color: var(--muted); }
.offers { display: flex; flex-direction: column; gap: .5rem; }
.offer { position: relative; display: flex; flex-direction: column; gap: .45rem; padding: .7rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.offer.best { border-color: color-mix(in srgb, var(--brand) 60%, transparent); }
.offer.is-focus { box-shadow: 0 0 0 2px var(--mode); }
.ribbon { align-self: flex-start; font-size: .68rem; font-weight: 800; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: .1rem .5rem; }
.offer-top { display: flex; gap: .55rem; align-items: center; }
.offer-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; } .offer-who small { font-size: .74rem; color: var(--muted); }
.offer-p { display: flex; flex-direction: column; align-items: flex-end; } .offer-p b { font-size: 1.02rem; } .offer-p small { font-size: .7rem; font-weight: 700; }
.offer-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .7rem; font-size: .76rem; color: var(--ink-2); }
.offer-meta li { display: inline-flex; align-items: center; gap: .2rem; }
.quote { font-size: .82rem; color: var(--ink-2); font-style: italic; }
.offer-acts { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.offer-acts .cmp { border: 1px solid var(--line); }
.why { font-size: .82rem; }
.why summary { cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; color: var(--ink-2); font-weight: 600; }
.why div { padding: .2rem 0 .3rem; color: var(--ink-2); }
.checks { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .4rem; font-size: .88rem; }
.checks.sm { font-size: .8rem; gap: .15rem; }
.idx { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.idx li { display: grid; grid-template-columns: 1fr auto; gap: 0 .5rem; font-size: .86rem; } .idx small { grid-column: 1 / -1; color: var(--muted); font-size: .74rem; }
/* Первый экран / First screen */
.hero { display: flex; flex-direction: column; gap: .9rem; padding: .6rem .2rem 1.5rem; }
.hero-hi { display: flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--ink-2); font-weight: 600; }
.hero-h { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; }
.hero-lead { font-size: .92rem; color: var(--ink-2); }
.c-ask { color: var(--ask-ink); } .c-list { color: var(--list-ink); } .c-map { color: var(--map-ink); }
.hero-form { display: flex; align-items: center; gap: .35rem; padding: .3rem; border-radius: 999px; background: var(--card); border: 2px solid color-mix(in srgb, var(--ask) 55%, transparent); box-shadow: var(--shadow); }
.hero-form .input { border: 0; min-height: 3rem; font-size: 1rem; border-radius: 999px; background: transparent; }
.hero-form .input:focus { outline: none; }
.hero-form.sm { box-shadow: none; }
.big .hero-form .mic, .big .hero-form .send { width: auto; padding: 0 .9rem; gap: .3rem; display: inline-flex; border-radius: 999px; }
.big .hero-form .mic { background: var(--map-soft); color: var(--map-ink); }
.big .hero-form { flex-wrap: wrap; border-radius: 1.4rem; }
.big .hero-form .input { flex-basis: 100%; }
.big .hero-form .mic, .big .hero-form .send { flex: 1; justify-content: center; height: 3rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.big .hero-chips .chip:nth-child(n+4) { display: none; }
.hero-tour { display: flex; flex-direction: column; gap: .5rem; padding: .8rem; border-radius: var(--r-lg); background: linear-gradient(135deg, #241E5C, #3B2F8F); color: #fff; }
.hero-tour p { display: flex; flex-direction: column; } .hero-tour p b { display: inline-flex; align-items: center; gap: .3rem; } .hero-tour small { opacity: .85; font-size: .78rem; }
.hero-tour-b { display: flex; gap: .4rem; flex-wrap: wrap; }
.tour-btn { background: #fff; color: #3B2F8F; border-color: #fff; }
.box .tour-btn, .sheet .tour-btn { background: var(--ask-soft); color: var(--ask-ink); border-color: transparent; }
.big-toggle { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 3.4rem; padding: .5rem .8rem; border-radius: var(--r-lg); border: 1.5px solid var(--line); background: var(--card); text-align: left; color: var(--ink); }
.big-toggle > span { flex: 1; display: flex; flex-direction: column; line-height: 1.25; } .big-toggle small { color: var(--muted); font-size: .78rem; }
.big-toggle[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.trust-list li { display: flex; gap: .6rem; align-items: center; padding: .6rem .7rem; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.trust-list .ic { color: var(--brand-ink); } .trust-list span { display: flex; flex-direction: column; line-height: 1.25; } .trust-list small { color: var(--muted); font-size: .78rem; }

/* ---------- Страницы / Pages ---------- */
.page { min-height: 100%; display: flex; flex-direction: column; }
.pg-top { position: sticky; top: 0; z-index: 7; display: flex; align-items: center; gap: .3rem; padding: .3rem .5rem; background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pg-top-t { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; } .pg-top-t b { font-size: .95rem; } .pg-top-t small { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-body { flex: 1; display: flex; flex-direction: column; gap: .75rem; padding: .75rem .9rem 1.5rem; }
.narrow .pg-body { width: 100%; max-width: 46rem; margin: 0 auto; }
.pg-body > *, .page > * { flex-shrink: 0; }
.pg-h { font-size: 1.35rem; font-weight: 800; }
.pg-h:focus { outline: none; }
.gal { position: relative; background: var(--line-2); }
.gal img { width: 100%; aspect-ratio: 4 / 3; max-height: 22rem; object-fit: cover; }
.gal .kind { top: .7rem; left: .7rem; }
.box { background: var(--card); border-radius: var(--r-lg); padding: .9rem 1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .5rem; }
.box-h { display: flex; align-items: center; gap: .4rem; font-size: 1rem; font-weight: 800; }
.box-h .tag { margin-left: auto; }
details.box summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: .4rem; min-height: 2.75rem; }
.pi-price { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; } .pi-price > b { font-size: 1.6rem; font-weight: 800; } .pi-price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.pi-meta, .pi-pick, .pp-eta { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.pi-acts { display: flex; gap: .4rem; flex-wrap: wrap; }
.seller { flex-direction: row; align-items: center; gap: .7rem; } .seller > div { display: flex; flex-direction: column; gap: .2rem; align-items: flex-start; } .seller small { color: var(--muted); }
.pp-head { display: flex; gap: .8rem; align-items: center; } .pp-badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.fixed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fixed li { display: grid; grid-template-columns: 1fr auto; gap: 0 .6rem; padding: .5rem 0; border-top: 1px solid var(--line-2); } .fixed li:first-child { border-top: 0; }
.fixed small { grid-column: 1 / -1; font-size: .74rem; font-weight: 600; }
.slot-day { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: .3rem; }
.slots { display: flex; flex-wrap: wrap; gap: .35rem; }
.slot { min-height: 2.75rem; min-width: 4.6rem; padding: .3rem .8rem; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--card); font-weight: 700; }
.slot[aria-pressed="true"] { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--on-brand); }
.rev { padding: .6rem 0; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; } .rev:first-of-type { border-top: 0; }
.rev-h { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; } .rev-h small { color: var(--muted); } .rev-st { color: #F59E0B; letter-spacing: .05em; }
.mini-map { position: relative; height: 13rem; border-radius: var(--r); overflow: hidden; background: var(--line-2); }
.pg-cta { position: sticky; bottom: 0; z-index: 7; display: flex; gap: .5rem; padding: .6rem .9rem; background: var(--card); border-top: 1px solid var(--line); }
.narrow .pg-cta { width: 100%; max-width: 46rem; margin: 0 auto; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.demo { padding: 0 1rem 1rem; }
.co-who { flex-direction: row; align-items: center; gap: .6rem; } .co-who > div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .co-who small { color: var(--muted); font-size: .78rem; }
.opt { display: flex; align-items: center; gap: .6rem; min-height: 3.2rem; padding: .5rem .7rem; border-radius: var(--r); border: 1.5px solid var(--line); cursor: pointer; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-ui { width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 2px solid var(--muted); flex: none; display: grid; place-items: center; }
.opt-ui.box-ui { border-radius: .35rem; }
.opt input:checked + .opt-ui { border-color: var(--brand-ink); background: var(--brand-ink); box-shadow: inset 0 0 0 3px var(--card); }
.opt input:checked + .box-ui { box-shadow: none; }
.opt input:checked + .box-ui::after { content: "✓"; color: #fff; font-size: .8rem; font-weight: 800; }
.opt input:focus-visible + .opt-ui { outline: 3px solid var(--mode); outline-offset: 2px; }
.opt-t { flex: 1; display: flex; flex-direction: column; line-height: 1.25; } .opt-t small { color: var(--muted); font-size: .78rem; }
.opt-p { font-weight: 700; white-space: nowrap; }
.bd { display: grid; grid-template-columns: 1fr auto; gap: .35rem .6rem; margin: 0; font-size: .9rem; }
.bd dt small { display: block; font-size: .74rem; color: var(--muted); } .bd dd { margin: 0; text-align: right; font-weight: 600; }
.bd .total { font-size: 1.05rem; font-weight: 800; padding-top: .4rem; border-top: 1px solid var(--line); }
.ord-head { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tl li { position: relative; display: flex; gap: .65rem; padding: .35rem 0 .7rem; font-size: .88rem; color: var(--muted); }
.tl li:not(:last-child)::before { content: ""; position: absolute; left: .8rem; top: 2rem; bottom: 0; width: 2px; background: var(--line); }
.tl li.done::before { background: var(--brand); }
.tl-dot { flex: none; width: 1.65rem; height: 1.65rem; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--muted); font-weight: 700; font-size: .76rem; z-index: 1; }
.tl li.done { color: var(--ink-2); } .tl li.done .tl-dot { background: var(--brand-ink); color: #fff; }
.tl li.now { color: var(--ink); } .tl li.now .tl-dot { background: #C0391D; color: #fff; box-shadow: 0 0 0 4px var(--map-soft); }
.tl li span:last-child { display: flex; flex-direction: column; } .tl small { font-size: .78rem; color: var(--muted); }
.ord-acts { display: flex; flex-direction: column; gap: .5rem; }
.row-acts { display: flex; gap: .4rem; flex-wrap: wrap; }
.stars-in { display: flex; gap: .2rem; }
.stars-in button { width: 2.9rem; height: 2.9rem; border: 0; background: none; color: var(--line); display: grid; place-items: center; }
.stars-in button.on { color: #F59E0B; } .stars-in .ic { width: 2rem; height: 2rem; }
.rtags { display: flex; flex-wrap: wrap; gap: .3rem; }
.olist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.olist a { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); min-height: 3.6rem; }
.olist span { flex: 1; min-width: 0; display: flex; flex-direction: column; } .olist small { color: var(--muted); font-size: .76rem; }
.live-box .mini-map { height: 15rem; }
/* Сравнение / Compare */
.cmp { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 4.4rem repeat(var(--n), minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.cmp-row:first-child { border-top: 0; }
.cmp-k { padding: .55rem .5rem; font-size: .72rem; font-weight: 700; color: var(--muted); }
.cmp-c { position: relative; min-width: 0; padding: .55rem .35rem; font-size: .8rem; display: flex; flex-direction: column; gap: .15rem; overflow-wrap: anywhere; }
.cmp-head .cmp-c { align-items: flex-start; padding-top: .7rem; } .cmp-head .cmp-c b { font-size: .82rem; line-height: 1.2; } .cmp-head small { color: var(--muted); font-size: .7rem; }
.cmp-head .ibtn { position: absolute; right: 0; top: 0; width: 2.4rem; height: 2.4rem; }
.cmp-img { width: 3.6rem; height: 3.6rem; border-radius: .8rem; object-fit: cover; }
.cmp small.best, .cmp b.best { color: var(--brand-ink); } .cmp small.best { font-weight: 700; font-size: .7rem; }
.cmp-acts .cmp-c { gap: .3rem; } .cmp-acts .btn { width: 100%; padding: .3rem; }
/* Продать / Sell */
.sell-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.sell-ph { display: flex; flex-direction: column; gap: .3rem; padding: .35rem; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--card); font-weight: 600; font-size: .82rem; }
.sell-ph img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .7rem; }
.scan { position: relative; max-width: 20rem; margin: 1rem auto; border-radius: var(--r-lg); overflow: hidden; }
.scan img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.scan-line { position: absolute; left: 0; right: 0; height: 3px; background: #A79BFF; box-shadow: 0 0 18px 6px rgba(109, 93, 246, .6); animation: scan 1.4s ease-in-out infinite; }
@keyframes scan { 0% { top: 5%; } 50% { top: 92%; } 100% { top: 5%; } }
.sell-res { display: grid; grid-template-columns: 7rem 1fr; gap: .7rem; align-items: start; } .sell-res img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.fld { display: flex; flex-direction: column; gap: .25rem; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; padding: 1.2rem; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); } .success > .ic { color: var(--brand-ink); }
/* Чаты / Chats */
.clist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.clist a { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem; border-radius: var(--r); text-decoration: none; color: var(--ink); background: var(--card); min-height: 3.6rem; }
.clist a[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--mode); }
.clist span { flex: 1; min-width: 0; display: flex; flex-direction: column; } .clist small { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-wrap { flex: 1; display: flex; min-height: 0; }
.chat-side { display: none; }
.conv { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conv-item { display: flex; align-items: center; gap: .6rem; padding: .5rem .9rem; background: var(--card); border-bottom: 1px solid var(--line); } .conv-item img { width: 2.8rem; height: 2.8rem; border-radius: .6rem; object-fit: cover; } .conv-item small { display: block; color: var(--muted); font-size: .76rem; }
.msgs { flex: 1; padding: .8rem; display: flex; flex-direction: column; gap: .45rem; }
.cmsg { max-width: 82%; padding: .55rem .8rem; border-radius: 1rem; font-size: .9rem; display: flex; flex-direction: column; gap: .15rem; }
.cmsg time { font-size: .68rem; opacity: .7; align-self: flex-end; }
.cmsg.them { align-self: flex-start; background: var(--card); border: 1px solid var(--line); }
.cmsg.me { align-self: flex-end; background: #047857; color: #fff; }
.cmsg.flag { border-color: var(--danger); background: var(--danger-soft); }
.cmsg.sys { align-self: center; max-width: 92%; background: transparent; color: var(--muted); font-size: .78rem; text-align: center; }
.cmsg.tip { align-self: stretch; max-width: none; flex-direction: row; gap: .4rem; background: var(--ask-soft); font-size: .82rem; }
.flag-tag { display: inline-flex; align-items: center; gap: .2rem; font-size: .7rem; font-weight: 800; color: var(--danger); }
.link-blocked { display: inline-flex; align-items: center; gap: .15rem; padding: 0 .3rem; border-radius: .35rem; background: var(--danger); color: #fff; text-decoration: line-through; font-weight: 700; }
.masked { padding: 0 .3rem; border-radius: .35rem; background: var(--line); font-weight: 700; }
.guard { align-self: stretch; display: flex; flex-direction: column; gap: .5rem; padding: .8rem; border-radius: var(--r-lg); background: var(--danger-soft); border: 1.5px solid var(--danger); font-size: .85rem; }
.guard-h { display: flex; gap: .5rem; align-items: center; color: var(--danger); } .guard-h div { display: flex; flex-direction: column; } .guard-h small { color: var(--ink-2); }
.guard ol { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .3rem; color: var(--ink); }
.guard.mini { flex-direction: row; align-items: center; background: var(--brand-soft); border-color: var(--brand); } .guard.mini .ic { color: var(--brand-ink); }
.qr { display: flex; gap: .35rem; overflow-x: auto; padding: .3rem .8rem; scrollbar-width: none; } .qr .chip { flex: none; }
.comp { display: flex; gap: .4rem; padding: .5rem .8rem; background: var(--card); border-top: 1px solid var(--line); position: sticky; bottom: 0; }
.comp .input { border-radius: 999px; }
/* Профиль / Profile */
.me-head { display: flex; align-items: center; gap: .8rem; }
/* Кабинет / Cabinet */
.cab-head { display: flex; align-items: center; gap: .7rem; } .cab-head > div { flex: 1; min-width: 0; } .cab-head .pg-h { font-size: 1.15rem; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.kpis div { background: var(--card); border-radius: var(--r); padding: .55rem .5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; } .kpis b { font-size: 1.15rem; } .kpis small { font-size: .68rem; color: var(--muted); line-height: 1.2; }
.cab-seg { margin: .2rem 0; }
.cab-seg .seg-b span { font-size: .8rem; }
.agenda { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.agenda li { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: .5rem; align-items: center; padding: .5rem 0; border-top: 1px solid var(--line-2); } .agenda li:first-child { border-top: 0; }
.agenda time { font-weight: 800; } .agenda div { display: flex; flex-direction: column; min-width: 0; } .agenda small { font-size: .74rem; color: var(--muted); }
.agenda li.done { opacity: .65; } .agenda li.next time { color: var(--map-ink); }
.fee { display: flex; flex-direction: column; align-items: flex-end; text-align: right; } .fee.zero small { color: var(--brand-ink); font-weight: 700; } .fee.pct small { color: var(--ink-2); }
.creq { display: flex; gap: .6rem; align-items: flex-start; justify-content: space-between; padding: .55rem 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.creq > div { flex: 1 1 12rem; display: flex; flex-direction: column; gap: .15rem; } .creq small { color: var(--muted); font-size: .76rem; }
.money { font-size: 1.7rem; font-weight: 800; }
.stack { display: flex; height: .8rem; border-radius: 999px; overflow: hidden; background: var(--line-2); }
.s-own { background: #047857; } .s-tn { background: #6D5DF6; } .s-0 { background: var(--line); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.legend li { display: grid; grid-template-columns: .8rem 1fr auto; gap: .5rem; align-items: center; font-size: .86rem; }
.legend li > i { width: .8rem; height: .8rem; border-radius: 3px; } .legend span { display: flex; flex-direction: column; } .legend small { font-size: .72rem; color: var(--muted); }
.legend li.net { grid-template-columns: 1fr auto; border-top: 1px solid var(--line); padding-top: .4rem; }
.prog-l { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.progress { height: .7rem; border-radius: 999px; background: var(--line-2); overflow: hidden; } .progress i { display: block; height: 100%; background: #047857; }
.checks-list { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.checks-list li { display: grid; grid-template-columns: 1fr auto; font-size: .84rem; } .checks-list small { color: var(--brand-ink); font-size: .72rem; grid-column: 1 / -1; }
.copy-row { display: flex; gap: .4rem; }
.cab-map { position: relative; height: 52vh; min-height: 20rem; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.stops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.stops li { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; }
.stops li > b { width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #047857; color: #fff; display: grid; place-items: center; flex: none; font-size: .8rem; }
.stops li.done > b { background: #98A2B3; } .stops li.next > b { background: #C0391D; }
.stops li > span:not(.tag) { flex: 1; min-width: 0; display: flex; flex-direction: column; } .stops small { color: var(--muted); font-size: .76rem; }
.cab-ask { gap: .3rem; } .cab-log { max-height: 50vh; overflow: auto; } .cab-ask .sugg { padding: .3rem 0; flex-wrap: wrap; } .cab-ask .comp { position: static; padding: .3rem 0 0; border: 0; }

/* ---------- Режим «Крупно» / Large mode ---------- */
@media (max-width: 1023px) {
  .big .hdr { flex-wrap: wrap; row-gap: .4rem; }
  .big .logo-t { display: inline; }
  .big .hsearch { order: 3; flex-basis: 100%; }
  .big .hdr { justify-content: space-between; }
  .big .strip { font-size: .7rem; }
}
.big .cards { grid-template-columns: 1fr; }
.big .card { flex-direction: row; }
.big .card-media { width: 40%; aspect-ratio: auto; min-height: 12rem; flex: none; }
.big .card-trust, .big .card-tags .why-btn, .big .hero-lead, .big .ctx-n { display: none; }
.big .nb-lg { display: inline; }
.big .card-acts { flex-direction: column; }
.big .seg-b { min-height: 3.1rem; }
.big .fcard-acts { flex-wrap: wrap; } .big .fcard-acts > * { flex: 1 1 calc(50% - .3rem); }
.big .trust3 { grid-template-columns: 1fr; } .big .trust3 li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -.9rem; }
.big .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Десктоп / Desktop ≥1024 px: список слева, карта справа, помощник панелью ---------- */
@media (min-width: 1024px) {
  .hdr { gap: 1rem; padding: .55rem 1.25rem; }
  .logo-t, body[data-route="ask"] .logo-t { display: inline; }
  .hsearch, body[data-route="ask"] .hsearch { display: flex; max-width: 36rem; }
  body[data-route="ask"] .hdr { justify-content: flex-start; }
  .hnav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
  .hnav a { position: relative; display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; padding: 0 .7rem; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .88rem; }
  .hnav a:hover { background: var(--line-2); } .hnav a[aria-current="page"] { color: var(--mode-ink); background: var(--mode-soft); }
  .help-btn span { display: inline; }
  .tabbar { display: none; }
  .modebar { display: flex; align-items: center; gap: .9rem; padding: .5rem 1.25rem; flex-wrap: wrap; }
  .seg-main { width: 25rem; flex: none; }
  .mb-row { flex: 1; min-width: 0; margin: 0; }
  .modehint { flex-basis: 100%; margin: 0; }
  .stage { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .view { position: relative; inset: auto; grid-row: 1; min-height: 0; }
  #v-list, #v-page { grid-column: 1; border-right: 1px solid var(--line); background: var(--bg); }
  #v-map { grid-column: 2; }
  body[data-layout="full"] #v-page { grid-column: 1 / -1; border-right: 0; }
  #v-ask { position: absolute; top: .75rem; right: .75rem; bottom: .75rem; width: 25rem; z-index: 20; border-radius: 1.4rem; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
  .ask-top, .ask-close { display: flex; }
  .ask-close { display: inline-grid; }
  .lv { padding: .9rem; }
  .cards { grid-template-columns: 1fr; gap: .6rem; }
  .card { flex-direction: row; }
  .card-media { width: 9.5rem; aspect-ratio: auto; flex: none; min-height: 12.5rem; }
  .cards .why-btn { font-size: .74rem; width: auto; padding: .2rem .6rem; gap: .25rem; }
  .big .card-media { width: 9.5rem; }
  .msheet { display: none; }
  .map-focus { display: block; position: absolute; left: 1rem; bottom: 2.2rem; z-index: 7; width: min(26rem, calc(100% - 2rem)); }
  .map-focus .fcard { margin: 0; box-shadow: var(--shadow-lg); }
  body[data-route="ask"] .map-focus { width: min(26rem, calc(100% - 28rem)); }
  body[data-layout="side"] .map-top, body[data-layout="side"] .map-focus { display: none; }
  body[data-layout="side"] .mini-map { display: none; }
  /* Плашки — внизу левой колонки, как мини-плеер / Overlays at the bottom of the left column, like a mini player */
  .dock { left: 1rem; right: auto; bottom: 1rem; width: calc(var(--side) - 2rem); padding: 0; }
  body[data-layout="full"] .dock { left: auto; right: 1.25rem; width: 26rem; align-items: flex-end; }
  body[data-route="item"] .dock, body[data-route="pro"] .dock { bottom: 5.2rem; }
  body[data-route="checkout"] .dock, body[data-route="map"] .dock { bottom: 1rem; }
  .touring .dock { bottom: 1rem; }
  body[data-route="ask"] .maplibregl-ctrl-top-right, body[data-route="ask"] .maplibregl-ctrl-bottom-right { right: 26.5rem; }
  body[data-route="ask"] .map-top { right: 27rem; }
  .toast { top: 7.5rem; }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 34rem; max-height: 82vh; border-radius: 1.4rem; transform: translate(-50%, -46%); opacity: 0; transition: transform .18s var(--ease), opacity .18s; }
  .sheet-root.on .sheet { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-grab { display: none; }
  .chat-side { display: block; width: 22rem; flex: none; padding: .8rem; border-right: 1px solid var(--line); overflow: auto; }
  .pg-chat .chat-wrap { height: calc(100% - 3.4rem); }
  .pg-chat .conv { overflow: auto; }
  .gal img { max-height: 18rem; }
  .narrow .pg-body { padding-top: 1.2rem; }
  .pg-cab .pg-body, .pg-me .pg-body, .pg-cmp .pg-body { max-width: 62rem; margin: 0 auto; width: 100%; }
  .cab-map { height: 60vh; }
}

/* ================= Виды: кнопка «Вид», меню, настройки, без карт / Views: "View" button, menu, settings, no maps ================= */
.vm-list, .view-btn[data-v="list"] { --vc: var(--list); --vc-ink: var(--list-ink); --vc-soft: var(--list-soft); }
.vm-ask, .view-btn[data-v="ask"] { --vc: var(--ask); --vc-ink: var(--ask-ink); --vc-soft: var(--ask-soft); }
.vm-map, .view-btn[data-v="map"] { --vc: var(--map); --vc-ink: var(--map-ink); --vc-soft: var(--map-soft); }
.vm-all, .view-btn[data-v="all"] { --vc: var(--muted); --vc-ink: var(--ink); --vc-soft: var(--line-2); }
.view-btn { flex: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; padding: 0 .65rem 0 .75rem; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--vc, var(--muted)) 60%, transparent); background: var(--vc-soft, var(--card)); color: var(--vc-ink, var(--ink)); font-weight: 800; font-size: .86rem; white-space: nowrap; transition: border-color .15s, box-shadow .15s; }
.view-btn:hover { border-color: var(--vc-ink); }
.view-btn[aria-expanded="true"] { box-shadow: 0 0 0 3px color-mix(in srgb, var(--vc) 30%, transparent); }
.vb-ic { font-size: 1.05rem; line-height: 1; }
.vb-chev { width: 1rem; height: 1rem; stroke-width: 2.4; }
.vb-d { display: none; }
/* Меню: карточки видов (шторка на телефоне, выпадающее на десктопе) / Menu: view cards (sheet on phone, dropdown on desktop) */
.vmenu { position: fixed; z-index: 75; width: 21.5rem; max-width: calc(100vw - 1rem); padding: .55rem; border-radius: 1.2rem; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: .35rem; }
.vm-h { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .25rem .5rem 0; }
.vm-items { display: flex; flex-direction: column; gap: .35rem; }
.vm-item { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 3.5rem; padding: .5rem .7rem; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--card); text-align: left; color: var(--ink); }
.vm-item:hover { border-color: var(--vc); }
.vm-item[aria-current="true"] { border-color: var(--vc); background: var(--vc-soft); }
.vm-ic { width: 2.5rem; height: 2.5rem; border-radius: .85rem; display: grid; place-items: center; flex: none; font-size: 1.3rem; line-height: 1; background: var(--vc-soft); color: var(--vc-ink); }
.vm-item[aria-current="true"] .vm-ic { background: var(--card); }
.vm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; } .vm-t b { font-size: .95rem; } .vm-t small { color: var(--muted); font-size: .8rem; }
.vm-item[aria-current="true"] .vm-t small { color: var(--ink-2); }
.vm-on { color: var(--vc-ink); display: inline-flex; }
.vm-set { display: flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .3rem .7rem; border-radius: .8rem; font-weight: 700; font-size: .88rem; color: var(--brand-ink); text-decoration: none; }
.vm-set:hover { background: var(--line-2); }
/* Маршрут без карты / Route without a map */
.route-txt { display: flex; align-items: center; gap: .65rem; padding: .65rem .75rem; border-radius: var(--r); background: var(--line-2); }
.rt-ic { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--card); color: var(--map-ink); }
.rt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; } .rt-t b { font-size: .9rem; } .rt-t small { color: var(--ink-2); font-size: .8rem; font-weight: 600; }
.rt-live { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; } .rt-live b { color: var(--map-ink); font-size: 1.1rem; } .rt-live small { font-size: .7rem; color: var(--muted); }
/* Выключенные виды не мешают: прячем ведущие к ним кнопки / Disabled views stay out of the way: hide buttons leading to them */
body.nv-map [data-act="onmap"], body.nv-map [data-act="to-mode"][data-v="map"], body.nv-map [data-act="delivery-map"],
body.nv-list [data-act="to-mode"][data-v="list"], body.nv-list [data-act="delivery-list"],
body.nv-ask [data-act="askabout"], body.nv-ask [data-act="to-mode"][data-v="ask"], body.nv-ask [data-act="ask-say"], body.nv-ask [data-act="post-order"] { display: none !important; }
body:not([data-view="all"]) .ask-close { display: none !important; }
/* Витрина: фильтры сбоку (десктоп) / Showcase: side filters (desktop) */
.lv-side { display: flex; flex-direction: column; gap: .45rem; padding: .85rem; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.lv-side-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.lv-side-h { display: flex; align-items: center; gap: .35rem; font-size: 1rem; font-weight: 800; }
.lv-side .slot-day { margin-top: .35rem; }
.fchips { display: flex; flex-wrap: wrap; gap: .3rem; }
.fchips .chip { padding: .3rem .7rem; }
.lv-side .optb.sw-row { min-height: 2.9rem; padding-top: .4rem; padding-bottom: .4rem; }
.lv-side .optb small { font-size: .72rem; }
.lv-side > .btn { align-self: flex-start; margin-top: .2rem; }
.lv-main { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
/* Подробности рядом с помощником / Details next to the assistant */
.det { padding: .9rem; display: flex; flex-direction: column; gap: .6rem; }
.det-top { display: flex; align-items: center; justify-content: space-between; }
.det-k { display: flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.det-media { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--line-2); }
.det-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 15rem; object-fit: cover; }
.det-media .fav { position: absolute; right: .4rem; top: .4rem; background: rgba(255, 255, 255, .92); color: #12161C; }
.det-body { display: flex; flex-direction: column; gap: .4rem; padding: .8rem; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.det-price { font-size: 1.35rem; font-weight: 800; } .det-h { font-size: 1.05rem; }
.det-sub, .det-line { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; font-size: .84rem; color: var(--muted); }
.det-acts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; } .det-acts .btn.primary { flex-basis: 100%; }
.det-t { font-size: 1rem; font-weight: 800; }
.det > .rows { padding: .3rem; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
/* Экран «Вид и настройки» / "View and settings" screen */
.set-link { display: flex; align-items: center; gap: .7rem; min-height: 3.6rem; padding: .7rem .9rem; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 1.5px solid color-mix(in srgb, var(--brand) 40%, transparent); }
.set-ic { width: 2.5rem; height: 2.5rem; border-radius: .85rem; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand-ink); }
.set-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; } .set-t small { color: var(--muted); font-size: .8rem; }
.set-now { flex-direction: row; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.set-now-t { display: flex; align-items: center; gap: .6rem; } .set-now-t > span:last-child { display: flex; flex-direction: column; line-height: 1.2; } .set-now-t small { color: var(--muted); font-size: .78rem; } .set-now-t b { font-size: 1.05rem; }
.optb.set-opt { flex-direction: row; align-items: center; gap: .7rem; min-height: 3.6rem; }
.set-start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.optb.set-opt { align-items: flex-start; gap: .55rem; padding: .55rem .6rem; }
.set-opt .vm-ic { width: 2.2rem; height: 2.2rem; font-size: 1.1rem; border-radius: .7rem; }
.set-ot { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; line-height: 1.2; } .set-ot small { font-size: .74rem; } .set-ot .tag { margin-top: .15rem; white-space: nowrap; }
.set-opt[aria-pressed="true"] .vm-ic { background: var(--card); }
.big .set-start { grid-template-columns: 1fr; }
.vm-g { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-right: .45rem; border-radius: .5rem; background: var(--vc-soft); color: var(--vc-ink); font-size: .95rem; line-height: 1; vertical-align: middle; }
.set-sw .why-lock { color: var(--amber-ink); font-weight: 700; }
.set-sw.locked { border-style: dashed; }
.set-sw.locked[aria-pressed="false"] > .sw { opacity: .55; }

@media (min-width: 1024px) {
  .vb-d { display: inline-flex; }
  .vb-m { display: none !important; }
  /* Шапка с кнопкой «Вид» — компактнее, чтобы поиску хватало места / Header with the "View" button — tighter so search keeps room */
  .hdr { gap: .75rem; }
  .hnav { gap: .1rem; }
  .hnav a { padding: 0 .55rem; white-space: nowrap; }
  .hnav .btn { white-space: nowrap; }
  /* Список на всю ширину: Витрина и общий режим без карты / Full-width list: Showcase and unified without a map */
  body.wide-list #v-list { grid-column: 1 / -1; border-right: 0; }
  body.wide-list .lv { width: 100%; max-width: 96rem; margin: 0 auto; }
  body.wide-list .cards { grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: .8rem; }
  body.wide-list .card { flex-direction: column; }
  body.wide-list .card-media { width: auto; aspect-ratio: 4 / 3; min-height: 0; }
  .big body.wide-list .cards { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
  body.wide-list[data-route="ask"] #v-list { padding-right: 26.5rem; }
  body.wide-list .dock { left: auto; right: 1.25rem; width: 26rem; align-items: flex-end; }
  body.wide-list[data-route="ask"] .dock { left: 1rem; right: auto; align-items: stretch; }
  .lv-wide { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); gap: 1.1rem; align-items: start; }
  .lv-side { position: sticky; top: 0; max-height: calc(100vh - 12rem); max-height: calc(100dvh - 12rem); overflow: auto; overscroll-behavior: contain; }
  /* Помощник отдельно: широкий разговор + подробности справа / Assistant alone: wide chat + details on the right */
  body[data-view="ask"][data-layout="mode"] .stage { grid-template-columns: minmax(0, 1fr) 24rem; }
  body[data-view="ask"][data-layout="mode"] #v-ask { position: relative; top: auto; right: auto; bottom: auto; width: auto; grid-column: 1; z-index: auto; border-radius: 0; box-shadow: none; border: 0; border-right: 1px solid var(--line); }
  #v-det { grid-column: 2; background: var(--bg); }
  body[data-view="ask"][data-layout="mode"] .ask-focus { display: none; }
  body[data-view="ask"][data-layout="mode"] .ask-scroll > div { max-width: 48rem; margin-left: auto; margin-right: auto; }
  body[data-view="ask"][data-layout="mode"] .ask-comp, body[data-view="ask"][data-layout="mode"] .ask-sugg .sugg { padding-left: max(.75rem, calc(50% - 24rem)); padding-right: max(.75rem, calc(50% - 24rem)); }
  body[data-view="ask"][data-layout="mode"] .dock { left: auto; right: 1rem; width: 22rem; }
  body[data-view="ask"][data-layout="mode"].has-dock .det { padding-bottom: 6.5rem; }
  /* Без карт страницы товара, мастера и заказа — по центру / No maps — item, pro and order pages centered */
  body.no-maps .pg-item, body.no-maps .pg-pro, body.no-maps .pg-order { width: 100%; max-width: 52rem; margin: 0 auto; }
}
@media (min-width: 1024px) and (max-width: 1180px) { :root { --side: 24rem; } #v-ask { width: 23rem; } body[data-route="ask"] .dock { right: 25rem; } }
/* «Крупно» на десктопе: поиск — отдельной строкой, чтобы не сжимался / Large mode on desktop: search on its own row */
@media (min-width: 1024px) and (max-width: 1439px) { .big .hdr { flex-wrap: wrap; row-gap: .4rem; } .big .hsearch { order: 3; flex-basis: 100%; max-width: none; } }
@media (min-width: 1024px) and (max-width: 1279px) {
  .hdr { gap: .5rem; }
  .logo-t, body[data-route="ask"] .logo-t { display: none; }
  .hnav a { padding: 0 .4rem; font-size: .84rem; }
  .hnav .btn.sm { padding: .4rem .7rem; }
  .help-btn span { display: none; }
  .hsearch .mic { display: none; }
}
@media (max-width: 380px) { .seg-b { font-size: .8rem; gap: .2rem; } .hero-h { font-size: 1.8rem; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
