/* ТутНайду — вариант C «Рядом». Стили: кремовый фон, коралл и бирюза, стикерные карточки.
   TutNaydu — variant C "Nearby". Styles: cream background, coral + teal accents, sticker cards. */

/* ---------- Токены / Design tokens ---------- */
:root {
  --bg: #FFF8EE;
  --surface: #FFFFFF;
  --surface-2: #FFF1DF;
  --surface-3: #FCE6CC;
  --ink: #201A14;
  --ink-2: #4A4036;
  --muted: #6E6253;
  --line: rgba(32, 26, 20, .12);
  --line-2: rgba(32, 26, 20, .2);
  --coral: #FF5A36;          /* фирменный, для заливок и иконок / brand, fills and icons */
  --coral-btn: #D93C1A;      /* кнопки с белым текстом (AA) / buttons with white text (AA) */
  --coral-ink: #C2381A;      /* текст на светлом / text on light */
  --coral-soft: #FFE5DC;
  --coral-deep: #A42A0F;
  --teal: #0EA5A4;
  --teal-btn: #0B7C7B;
  --teal-ink: #0A7473;
  --teal-soft: #D8F3F0;
  --teal-deep: #075C5B;
  --green: #1DB954;
  --green-ink: #15803D;
  --green-soft: #DDF6E5;
  --amber: #F5A524;
  --amber-soft: #FFF0CC;
  --danger: #B42318;
  --danger-soft: #FFE6E2;
  --shadow: 0 2px 0 rgba(32, 26, 20, .05), 0 14px 34px -14px rgba(32, 26, 20, .32);
  --shadow-sm: 0 2px 0 rgba(32, 26, 20, .06);
  --r-xl: 24px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-h: 'Unbounded', 'Onest', system-ui, sans-serif;
  --bar-h: 32px;
  --tab-h: 66px;
  --rail-w: 92px;
  --panel-w: 440px;
  --sb-h: 126px;

  /* Цвета карты / Map colours */
  --map-land: #F6EAD7;
  --map-block: #FFFCF6;
  --map-block-line: #E8D5B9;
  --map-acc: #FFE1D6;
  --map-green: #CBE9BC;
  --map-green-2: #9FD28F;
  --map-water: #96D4E2;
  --map-water-edge: #74C0D2;
  --map-water-ink: #1F6F82;
  --map-road: #FFFFFF;
  --map-road-case: #E2CCAA;
  --map-main: #FFE0A0;
  --map-main-case: #EDBF68;
  --map-rail: #8C7F70;
  --map-label: #6B5B47;
  --map-halo: #FFF8EE;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171F;
    --surface: #1D2230;
    --surface-2: #252B3B;
    --surface-3: #2E3547;
    --ink: #F6F0E8;
    --ink-2: #D9D1C5;
    --muted: #ABA59C;
    --line: rgba(255, 255, 255, .11);
    --line-2: rgba(255, 255, 255, .2);
    --coral: #FF6A48;
    --coral-ink: #FF8C70;
    --coral-soft: #3B2520;
    --coral-deep: #8A2410;
    --teal: #2CC7C5;
    --teal-ink: #5ED8D5;
    --teal-soft: #163A3D;
    --teal-deep: #053F3E;
    --green-ink: #4ADE80;
    --green-soft: #173326;
    --amber-soft: #3A3020;
    --danger: #FF8A80;
    --danger-soft: #3C2023;
    --shadow: 0 2px 0 rgba(0, 0, 0, .25), 0 14px 34px -14px rgba(0, 0, 0, .7);
    --shadow-sm: 0 2px 0 rgba(0, 0, 0, .25);

    --map-land: #171C29;
    --map-block: #222939;
    --map-block-line: #2B3346;
    --map-acc: #3A2730;
    --map-green: #1B3529;
    --map-green-2: #24493A;
    --map-water: #0E3347;
    --map-water-edge: #164B63;
    --map-water-ink: #7CC6DA;
    --map-road: #2E3647;
    --map-road-case: #1E2433;
    --map-main: #4B3F28;
    --map-main-case: #2A241B;
    --map-rail: #69728A;
    --map-label: #A6AEC0;
    --map-halo: #171C29;
  }
}

/* ---------- База / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 400 15px/1.45 var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal-ink); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 12px; }
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i .fill { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }

/* ---------- Плашка прототипа / Prototype bar ---------- */
.proto-bar {
  position: fixed; inset: 0 0 auto 0; height: var(--bar-h); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 14px; font-size: 12.5px; background: var(--ink); color: var(--bg);
}
.proto-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proto-bar a { color: var(--bg); font-weight: 700; white-space: nowrap; text-underline-offset: 3px; padding: 6px 2px; }
@media (max-width: 430px) { .proto-bar { font-size: 11.5px; padding: 0 10px; gap: 8px; } }
.xs-show { display: none; }
@media (max-width: 380px) {
  .xs-hide { display: none; }
  .xs-show { display: inline; }
  .proto-sub { display: none; }
  .h-title { font-size: 17px; }
  .sh-row .btn-sm { padding: 0 12px; font-size: 13.5px; }
  .trust-pill { font-size: 11.5px; padding-right: 10px; letter-spacing: -.015em; }
  .chip { padding: 0 12px; }
}
.sh-row .btn-sm { white-space: nowrap; flex: none; }

/* ---------- Каркас / App shell ---------- */
.app { position: fixed; top: var(--bar-h); left: 0; right: 0; bottom: 0; }
.stage { position: absolute; left: 0; right: 0; top: 0; bottom: var(--tab-h); overflow: hidden; }

/* Навигация снизу / Bottom navigation */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--tab-h); z-index: 30;
  display: flex; align-items: stretch; justify-content: space-around;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 0 4px env(safe-area-inset-bottom);
}
.brand { display: none; }
.tab {
  position: relative; flex: 1 1 0; min-width: 0; min-height: 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: none; color: var(--muted); text-decoration: none;
  font: 600 11px/1.1 var(--font); padding: 6px 2px; border-radius: 14px;
}
.tab .i { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--coral-ink); }
.tab[aria-current="page"] .tab-ico { background: var(--coral-soft); }
.tab-ico { display: grid; place-items: center; width: 44px; height: 28px; border-radius: 999px; transition: background .2s; }
.tab-lab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tab-lab-plus { display: none; }
.plus-bubble {
  display: grid; place-items: center; width: 54px; height: 54px; margin-top: -22px;
  border-radius: 50%; background: var(--coral-btn); color: #fff;
  box-shadow: 0 4px 0 var(--coral-deep), 0 10px 20px -6px rgba(217, 60, 26, .6);
  border: 3px solid var(--surface);
}
.plus-bubble .i { width: 28px; height: 28px; stroke-width: 2.6; }
.tab-plus:active .plus-bubble { transform: translateY(2px); box-shadow: 0 2px 0 var(--coral-deep); }
.badge {
  position: absolute; top: 4px; left: calc(50% + 8px); min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--coral-btn); color: #fff; font: 800 11px/20px var(--font); text-align: center;
  border: 2px solid var(--surface);
}

/* ---------- Карта / Map ---------- */
.map { position: absolute; inset: 0; background: var(--map-land); overflow: hidden; }
.map-vp { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.map-vp.is-drag { cursor: grabbing; }
.map-vp:focus-visible { outline-offset: -4px; border-radius: 0; }
.world { position: absolute; left: 0; top: 0; width: 2000px; height: 1600px; transform-origin: 0 0; will-change: transform; }
.world svg { display: block; width: 2000px; height: 1600px; }
.layer { position: absolute; inset: 0; pointer-events: none; }
.layer > * { pointer-events: auto; }
.labels > * { pointer-events: none; }

/* Слои схемы / Map layers */
.m-land { fill: var(--map-land); }
.m-blk { fill: var(--map-block); stroke: var(--map-block-line); stroke-width: 2; }
.m-blk-acc { fill: var(--map-acc); stroke: var(--map-block-line); stroke-width: 2; }
.m-blk-green, .m-park { fill: var(--map-green); }
.m-tree { fill: var(--map-green-2); }
.m-meadow { fill: var(--map-green); opacity: .75; }
.m-water { fill: none; stroke: var(--map-water); stroke-linecap: round; stroke-linejoin: round; }
.m-water-edge { fill: none; stroke: var(--map-water-edge); stroke-linecap: round; stroke-linejoin: round; }
.m-pond { fill: var(--map-water); stroke: var(--map-water-edge); stroke-width: 4; }
.m-road-case { fill: none; stroke: var(--map-road-case); stroke-linecap: round; stroke-linejoin: round; }
.m-road { fill: none; stroke: var(--map-road); stroke-linecap: round; stroke-linejoin: round; }
.m-main-case { fill: none; stroke: var(--map-main-case); stroke-linecap: round; stroke-linejoin: round; }
.m-main { fill: none; stroke: var(--map-main); stroke-linecap: round; stroke-linejoin: round; }
.m-rail { fill: none; stroke: var(--map-rail); stroke-width: 7; }
.m-rail-dash { fill: none; stroke: var(--map-land); stroke-width: 3; stroke-dasharray: 14 12; }
.m-prom { fill: none; stroke: var(--map-main); stroke-width: 7; stroke-dasharray: 2 12; stroke-linecap: round; }
.m-station { fill: var(--map-acc); stroke: var(--map-rail); stroke-width: 3; }
.m-text { font: 600 17px var(--font); fill: var(--map-label); paint-order: stroke; stroke: var(--map-halo); stroke-width: 5px; stroke-linejoin: round; }
.m-text-water { font: italic 600 24px var(--font); fill: var(--map-water-ink); letter-spacing: 2px; }
.m-text-park { font: 700 18px var(--font); fill: var(--green-ink); paint-order: stroke; stroke: var(--map-green); stroke-width: 4px; }

/* Наложения: радиус, маршрут, зона / Overlays: radius, route, zone */
.ov-radius { fill: rgba(14, 165, 164, .07); stroke: var(--teal); stroke-width: 3; stroke-dasharray: 12 10; vector-effect: non-scaling-stroke; }
.ov-radius-lab { font: 700 22px var(--font); fill: var(--teal-ink); paint-order: stroke; stroke: var(--map-halo); stroke-width: 6px; }
.ov-zone { fill: rgba(255, 90, 54, .09); stroke: var(--coral); stroke-width: 3; vector-effect: non-scaling-stroke; }
.ov-line { fill: none; stroke: var(--coral); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ov-route-case { fill: none; stroke: #fff; stroke-width: 18; stroke-linejoin: round; stroke-linecap: round; opacity: .9; }
.ov-route { fill: none; stroke: var(--teal); stroke-width: 10; stroke-linejoin: round; stroke-linecap: round; }
.ov-route-flow { fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 3; stroke-dasharray: 4 18; stroke-linecap: round; animation: flow 1.2s linear infinite; }
.ov-route-done { fill: none; stroke: var(--teal-deep); stroke-width: 10; stroke-linejoin: round; stroke-linecap: round; opacity: .35; }
@keyframes flow { to { stroke-dashoffset: -44; } }
.ov-ripple { fill: rgba(255, 90, 54, .12); stroke: var(--coral); stroke-width: 2; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: ripple 2.6s ease-out infinite; opacity: 0; }
.ov-ripple:nth-child(2) { animation-delay: .85s; }
.ov-ripple:nth-child(3) { animation-delay: 1.7s; }
@keyframes ripple { 0% { transform: scale(.15); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }

/* Подписи районов / District labels */
.d-lab {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font: 500 11px/1 var(--font-h); letter-spacing: .08em; text-transform: uppercase; color: var(--map-label);
  text-shadow: 0 0 3px var(--map-halo), 0 0 3px var(--map-halo), 0 0 6px var(--map-halo);
}
.d-lab > span { display: block; transform: translate(-50%, -50%); }

/* Пины / Pins */
.pinw { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 1; }
.pinw.is-sel { z-index: 6; }
.pinw.is-hl { z-index: 5; }
.pin {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 0;
  border: 0; background: none; padding: 0; color: inherit; cursor: pointer;
  transition: transform .18s ease;
}
.pin-ph {
  position: relative; width: 48px; height: 48px; border-radius: 50%; overflow: visible;
  border: 3px solid var(--surface); box-shadow: 0 0 0 2.5px var(--coral), 0 6px 14px -4px rgba(0, 0, 0, .45);
  background: var(--surface);
}
.pin-ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pin-pro .pin-ph { box-shadow: 0 0 0 2.5px var(--teal), 0 6px 14px -4px rgba(0, 0, 0, .45); }
.pin-tag {
  margin-top: -8px; position: relative; z-index: 1;
  padding: 3px 8px; border-radius: 999px; font: 800 12px/1.2 var(--font); white-space: nowrap;
  background: var(--coral-btn); color: #fff; border: 2px solid var(--surface);
}
.pin-pro .pin-tag { background: var(--teal-btn); }
.pin-tail { width: 10px; height: 10px; margin-top: -4px; transform: rotate(45deg); background: var(--surface); border-radius: 0 0 3px 0; box-shadow: 2px 2px 3px rgba(0, 0, 0, .18); }
.pin-dot { position: absolute; right: -4px; top: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid var(--surface); }
.pin-mine .pin-ph { box-shadow: 0 0 0 3px var(--amber), 0 6px 14px -4px rgba(0, 0, 0, .45); }
.pin-mine .pin-tag { background: var(--ink); color: var(--bg); }
.pin:hover { transform: translate(-50%, -100%) scale(1.06); }
.is-sel .pin, .is-hl .pin { transform: translate(-50%, -100%) scale(1.18); }
.is-sel .pin-tag { background: var(--ink); color: var(--bg); }
.is-dim .pin { opacity: .45; }
.pin-stop .pin-ph { width: 38px; height: 38px; display: grid; place-items: center; background: var(--teal-btn); color: #fff; font: 700 15px var(--font-h); box-shadow: 0 0 0 2px var(--teal-deep), 0 6px 14px -4px rgba(0, 0, 0, .45); }
.pin-stop .pin-tag { background: var(--teal-btn); }
.pin-stop.is-done .pin-ph { background: var(--muted); box-shadow: 0 0 0 2px var(--ink-2); }
.pin-req .pin-ph { width: 40px; height: 40px; display: grid; place-items: center; background: var(--amber); color: #3A2600; font: 800 20px var(--font); box-shadow: 0 0 0 2px #B87500, 0 6px 14px -4px rgba(0, 0, 0, .45); }
.pin-req .pin-tag { background: #8A5800; }
.pin-req.is-out { opacity: .4; }

/* Я на карте / Me marker */
.me { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 3; }
.me-dot { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: #2F6BFF; border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.me-pulse { position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; border-radius: 50%; background: rgba(47, 107, 255, .2); animation: mepulse 2.2s ease-out infinite; }
.me-lab { position: absolute; left: 16px; top: -10px; white-space: nowrap; font: 800 11px/1 var(--font); color: #1E4FD6; background: #fff; padding: 4px 7px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
@keyframes mepulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

/* Мастер в пути / Pro on the way */
.mover .pin-ph { box-shadow: 0 0 0 3px var(--teal), 0 8px 18px -4px rgba(0, 0, 0, .5); }
.mover-car { position: absolute; right: -10px; bottom: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-btn); color: #fff; display: grid; place-items: center; border: 2px solid var(--surface); }
.mover-car .i { width: 15px; height: 15px; }

/* Кнопки карты / Map controls */
.map-ctrls { position: absolute; right: 12px; top: 136px; z-index: 8; display: flex; flex-direction: column; gap: 8px; }
.map-btn, .map-back {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px;
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: var(--shadow-sm);
}
.map-back { position: absolute; left: 12px; top: 12px; z-index: 8; border-radius: 50%; }
.map-legend {
  position: absolute; left: 12px; top: 136px; z-index: 7; display: none; gap: 10px;
  font: 600 12px var(--font); color: var(--ink-2); background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.lg-goods { background: var(--coral); } .lg-pro { background: var(--teal); } .lg-free { background: var(--green); }

/* Мини-карточка над картой / Mini card over the map */
.mini {
  position: absolute; left: 12px; right: 12px; bottom: 160px; z-index: 12;
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 12px; display: grid; grid-template-columns: 76px 1fr; gap: 12px;
  animation: pop .22s ease;
}
@keyframes pop { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.mini-img { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; }
.mini-img.round { border-radius: 50%; }
.mini-body { min-width: 0; padding-right: 30px; }
.mini-title { font-weight: 700; font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-price { font: 700 16px/1.2 var(--font-h); margin-top: 3px; }
.mini-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.mini-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.mini-actions .btn { flex: 1; }
.mini-x { position: absolute; right: 6px; top: 6px; }

/* ---------- Поиск / Search ---------- */
.searchbar { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 15; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.search {
  width: 100%; display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 6px 0 14px;
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 999px; box-shadow: var(--shadow);
}
.search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 165, 164, .25), var(--shadow); }
.search-pin { color: var(--coral-ink); display: grid; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; max-width: 100%; padding: 4px 12px 4px 8px;
  border-radius: 999px; border: 1.5px solid rgba(21, 128, 61, .35); background: var(--green-soft); color: var(--green-ink);
  font: 700 12.5px/1.2 var(--font); box-shadow: var(--shadow-sm); text-align: left;
}
.trust-pill .i { width: 18px; height: 18px; }
.trust-pill > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Панель / Panel (sheet + page) ---------- */
.panel {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -2px 0 var(--line), 0 -18px 40px -20px rgba(32, 26, 20, .45);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}
.panel.is-drag { transition: none; }
.panel-body { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; border-radius: inherit; }
.panel.is-page { top: 0 !important; height: auto !important; transform: none !important; border-radius: 0; background: var(--bg); box-shadow: none; transition: none; }
.app.is-page-mobile .map, .app.is-page-mobile .searchbar { visibility: hidden; }

.sheet-grab { position: sticky; top: 0; z-index: 4; background: var(--surface); padding: 0 16px 10px; border-radius: var(--r-xl) var(--r-xl) 0 0; touch-action: none; }
.handle { display: grid; place-items: center; width: 100%; height: 26px; border: 0; background: none; padding: 0; cursor: grab; border-radius: 12px; }
.handle span { width: 44px; height: 5px; border-radius: 99px; background: var(--line-2); }
.sh-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.h-title { font: 700 19px/1.2 var(--font-h); letter-spacing: -.01em; }
.h-title:focus { outline: none; }
.sh-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.pad { padding: 0 16px; }

/* Сегменты / Segmented control */
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1.5px solid var(--line); }
.seg button {
  flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: none; color: var(--ink-2);
  font: 700 14px var(--font); transition: background .15s;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 0 var(--line-2), 0 4px 10px -4px rgba(0, 0, 0, .25); }
@media (prefers-color-scheme: dark) { .seg button[aria-pressed="true"] { background: var(--surface-3); } }

/* Чипы / Chips */
.filters { padding: 2px 0 6px; display: grid; gap: 8px; }
.chip-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 2px 16px 4px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-lab { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--muted); font: 700 12px var(--font); text-transform: uppercase; letter-spacing: .04em; min-width: 54px; }
.chip-lab .i { width: 18px; height: 18px; }
.chip {
  flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2);
  background: var(--surface); color: var(--ink); font: 600 14px var(--font); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.is-cat { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-ink); }
.chip:disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }

/* Карточки списка / List cards */
.cards { display: grid; gap: 10px; padding: 6px 16px 16px; }
.card {
  display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 10px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-lg); box-shadow: 0 3px 0 var(--line);
  transition: transform .15s, border-color .15s;
}
.card:hover, .card.is-hl { border-color: var(--coral); transform: translateY(-1px); }
.card-media { position: relative; width: 88px; height: 88px; }
.card-media img { width: 88px; height: 88px; object-fit: cover; border-radius: 14px; }
.card-media.is-pro img { border-radius: 50%; }
.card-flag { position: absolute; left: 4px; top: 4px; background: var(--amber); color: #3A2600; font: 800 11px var(--font); padding: 2px 7px; border-radius: 999px; }
.dot-free { position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); border: 3px solid var(--surface); }
.card-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.kind { font: 800 10.5px/1 var(--font); text-transform: uppercase; letter-spacing: .05em; padding: 4px 7px; border-radius: 999px; }
.kind-goods { background: var(--coral-soft); color: var(--coral-ink); }
.kind-pro { background: var(--teal-soft); color: var(--teal-ink); }
.card-title { font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-sub { font-size: 13px; color: var(--ink-2); }
.card-price { font: 700 15px/1.25 var(--font-h); }
.card-price small { font: 500 12px var(--font); color: var(--muted); }
.avail { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.avail .i { width: 16px; height: 16px; }
.avail.is-now { color: var(--green-ink); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }
.why-line { padding: 0 16px 24px; font-size: 13px; color: var(--muted); }
.why-line button { border: 0; background: none; color: var(--teal-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 10px 0; min-height: 44px; }
.empty { margin: 6px 16px 16px; padding: 18px; text-align: center; border: 2px dashed var(--line-2); border-radius: var(--r-lg); color: var(--ink-2); }
.empty .row-btns { justify-content: center; margin-top: 10px; }

/* ---------- Кнопки / Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 15px/1.15 var(--font); text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .1s, box-shadow .1s, background .15s;
}
.btn .i { width: 20px; height: 20px; }
.btn-coral { background: var(--coral-btn); color: #fff; box-shadow: 0 3px 0 var(--coral-deep); }
.btn-coral:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--coral-deep); }
.btn-teal { background: var(--teal-btn); color: #fff; box-shadow: 0 3px 0 var(--teal-deep); }
.btn-teal:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--teal-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: 0 2px 0 var(--line); }
.btn-soft { background: var(--surface-2); color: var(--ink); }
.btn-link { background: none; color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; padding: 0 6px; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); text-decoration: none;
}
.icon-btn.on { color: var(--coral-ink); border-color: var(--coral); }
.icon-btn.on .i { fill: currentColor; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.row-btns .btn { flex: 1 1 140px; }

/* ---------- Страницы / Pages ---------- */
.page { min-height: 100%; padding-bottom: 24px; }
.page-top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.page-top .h-title { font-size: 18px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec { padding: 0 16px; margin-top: 18px; }
.sec-h { font: 700 16px/1.25 var(--font-h); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.sticker {
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: 0 3px 0 var(--line); padding: 14px;
}
.lead { color: var(--ink-2); font-size: 15px; }
.fine { color: var(--muted); font-size: 13px; }
.kicker { color: var(--muted); font-size: 13px; }
.big-price { font: 700 28px/1.1 var(--font-h); margin-top: 6px; letter-spacing: -.02em; }
.big-price small { font: 600 15px var(--font); color: var(--muted); }
.tagline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tg {
  display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); font: 600 13px var(--font); border: 1px solid var(--line);
}
.tg .i { width: 16px; height: 16px; }
.tg-green { background: var(--green-soft); color: var(--green-ink); border-color: transparent; }
.tg-teal { background: var(--teal-soft); color: var(--teal-ink); border-color: transparent; }
.tg-coral { background: var(--coral-soft); color: var(--coral-ink); border-color: transparent; }
.tg-amber { background: var(--amber-soft); color: #7A4D00; border-color: transparent; }
@media (prefers-color-scheme: dark) { .tg-amber { color: #FFD27A; } }

/* Карточка товара / Item page */
.hero { position: relative; background: var(--surface-2); }
.hero img { width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 42dvh; object-fit: cover; }
.page:has(> .buybar) { padding-bottom: 0; }
.modal:focus { outline: none; }
.hero-top { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; gap: 8px; }
.hero-top .icon-btn { background: var(--surface); box-shadow: var(--shadow-sm); }
.hero-badge {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-ink); color: #fff; font: 700 13px var(--font); padding: 7px 12px; border-radius: 999px;
}
.hero-badge .i { width: 17px; height: 17px; }
.item-head { padding: 14px 16px 0; }
.item-head h1 { font: 700 21px/1.25 var(--font-h); margin-top: 4px; }

.fork-box h2 { font: 700 15px var(--font); display: flex; align-items: center; gap: 6px; }
.fork-box h2 .i { color: var(--teal-ink); }
.fork-range { font: 700 18px var(--font-h); margin: 6px 0 2px; }
.fork { margin-top: 30px; }
.fork-bar { position: relative; height: 12px; border-radius: 999px; background: linear-gradient(90deg, #7DD3A8, #FFD27A 55%, #FF9A7E); }
.fork-med { position: absolute; top: -4px; width: 3px; height: 20px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; }
.fork-you { position: absolute; top: -34px; transform: translateX(-50%); white-space: nowrap; font: 800 12px var(--font); background: var(--ink); color: var(--bg); padding: 4px 8px; border-radius: 999px; }
.fork-you::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
.fork-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.verdict { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.verdict.good { color: var(--green-ink); }
.verdict.ok { color: var(--teal-ink); }
.verdict.hi { color: var(--coral-ink); }

.where-box { display: grid; gap: 10px; }
.where-row { display: flex; gap: 10px; align-items: flex-start; }
.where-row .i { color: var(--coral-ink); margin-top: 1px; }
.where-row b { display: block; }
.times { display: flex; gap: 8px; flex-wrap: wrap; }
.seller { display: flex; gap: 12px; align-items: center; }
.ava { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.ava-init { display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-ink); font: 700 15px var(--font-h); }
.ava-lg { width: 84px; height: 84px; font-size: 22px; }
.seller-name { font-weight: 800; font-size: 16px; }
.seller-sub { color: var(--muted); font-size: 13px; }
.cross { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; background: var(--teal-soft); border-color: rgba(11, 124, 123, .35); }
.cross img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.cross p { font-size: 14px; }
.cross b { font-size: 15px; }
.cross .btn { grid-column: 1 / -1; }
details.why { margin: 18px 16px 0; padding: 0 14px; border-radius: var(--r-md); background: var(--surface-2); }
details.why summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; font-size: 14px; cursor: pointer; }
details.why p { padding-bottom: 12px; font-size: 13.5px; color: var(--ink-2); }

.buybar {
  position: sticky; bottom: 0; z-index: 6; margin-top: 20px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; background: var(--surface); border-top: 1.5px solid var(--line-2);
}
.buybar-sum { min-width: 0; flex: 1; }
.buybar-sum b { display: block; font: 700 17px/1.2 var(--font-h); }
.buybar-sum span { font-size: 12px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn-coral, .buybar .btn-teal { flex: 0 1 auto; }

/* Профиль мастера / Pro profile */
.pro-cover { position: relative; height: 150px; background: var(--surface-2); }
.pro-cover img { width: 100%; height: 100%; object-fit: cover; }
.pro-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .35)); }
.pro-cover .hero-top { z-index: 2; }
.pro-head { padding: 0 16px; margin-top: -42px; position: relative; z-index: 2; }
.pro-head .ava { border: 4px solid var(--bg); box-shadow: var(--shadow-sm); }
.pro-head h1 { font: 700 22px/1.2 var(--font-h); margin-top: 8px; }
.pro-role { color: var(--ink-2); margin-top: 2px; }
.free-now {
  margin: 14px 16px 0; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--green-soft); color: var(--green-ink); font-weight: 700;
}
.free-now.is-busy { background: var(--surface-2); color: var(--ink-2); }
.guar { display: grid; gap: 10px; }
.guar-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.guar-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--teal-soft); color: var(--teal-ink); }
.guar-ico .i { width: 19px; height: 19px; }
.prices { display: grid; gap: 10px; }
.price-row { display: block; cursor: pointer; }
.price-row input { position: absolute; opacity: 0; pointer-events: none; }
.price-card { display: block; padding: 12px 14px; border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--surface); }
.price-row input:checked + .price-card { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal) inset; background: var(--teal-soft); }
.price-row input:focus-visible + .price-card { outline: 3px solid var(--teal); outline-offset: 2px; }
.price-top { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.price-top b { font-family: var(--font-h); font-size: 15px; white-space: nowrap; }
.price-cmp { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.price-cmp .good { color: var(--green-ink); font-weight: 700; }
.price-cmp .hi { color: var(--coral-ink); font-weight: 700; }
.price-cmp .ok { color: var(--teal-ink); font-weight: 700; }
.mini-fork { display: block; position: relative; height: 6px; border-radius: 99px; background: linear-gradient(90deg, #7DD3A8, #FFD27A 55%, #FF9A7E); margin-top: 8px; }
.mini-fork i { position: absolute; top: -4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--ink); border: 2px solid var(--surface); }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; min-width: 74px; min-height: 56px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font: 700 14px var(--font);
}
.day small { font-weight: 500; font-size: 12px; color: var(--muted); }
.day[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.day[aria-pressed="true"] small { color: var(--bg); opacity: .8; }
.day.is-none { opacity: .55; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.slot { min-height: 46px; border-radius: 14px; border: 1.5px solid var(--teal); background: var(--surface); color: var(--teal-ink); font: 700 15px var(--font); }
.slot[aria-pressed="true"] { background: var(--teal-btn); color: #fff; border-color: var(--teal-btn); }
.slot:disabled { border-color: var(--line); color: var(--muted); text-decoration: line-through; background: var(--surface-2); cursor: not-allowed; }
.rev { padding: 12px 0; border-top: 1px solid var(--line); }
.rev:first-child { border-top: 0; padding-top: 0; }
.rev-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.rev-head b { color: var(--ink); font-size: 14px; }
.stars { color: #E39A00; letter-spacing: 1px; }
.rev p { font-size: 14px; margin-top: 4px; }
.rev-ok { font-size: 12px; color: var(--green-ink); font-weight: 700; margin-top: 4px; display: inline-flex; gap: 4px; align-items: center; }
.rev-ok .i { width: 14px; height: 14px; }
.rating-big { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.rating-big b { font: 700 30px var(--font-h); }

/* ---------- Модальные окна / Modals ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 60; background: rgba(20, 14, 8, .45);
  display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; background: var(--bg);
  border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 8px 18px calc(20px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow); animation: up .26s cubic-bezier(.2, .8, .2, 1);
}
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.modal-grip { width: 44px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 4px auto 12px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.modal-h h2 { font: 700 19px/1.25 var(--font-h); }
.modal .btn-block + .btn-block { margin-top: 8px; }
.sum { display: grid; gap: 8px; padding: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.sum-row span:first-child { color: var(--ink-2); }
.sum-row small { display: block; color: var(--muted); font-size: 12px; }
.sum-total { border-top: 1.5px dashed var(--line-2); padding-top: 10px; font-weight: 800; font-size: 17px; }
.sum-total span:last-child { font-family: var(--font-h); }
.toggle2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.opt {
  text-align: left; padding: 12px; border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--surface);
  min-height: 64px; display: flex; flex-direction: column; gap: 2px;
}
.opt b { font-size: 15px; }
.opt span { font-size: 12.5px; color: var(--muted); }
.opt[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal) inset; background: var(--teal-soft); }
.opt:disabled { opacity: .5; cursor: not-allowed; }
.freeze { margin-top: 12px; display: grid; gap: 10px; }
.freeze h3 { font: 700 15px var(--font); display: flex; align-items: center; gap: 8px; }
.freeze ol { counter-reset: s; display: grid; gap: 8px; }
.freeze li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: 14px; }
.freeze li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-ink); font: 800 13px/26px var(--font); text-align: center; }
.success { text-align: center; padding: 6px 0 4px; }
.success-ico { width: 72px; height: 72px; margin: 4px auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-ink); }
.success-ico .i { width: 38px; height: 38px; stroke-width: 2.6; }
.success h2 { font: 700 20px/1.25 var(--font-h); }
.success p { color: var(--ink-2); margin-top: 6px; }
.code { display: inline-flex; gap: 6px; margin: 12px 0 2px; }
.code span { width: 42px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line-2); font: 700 22px var(--font-h); }
.plus-opts { display: grid; gap: 10px; }
.plus-opt {
  display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; text-align: left; text-decoration: none; color: inherit;
  padding: 14px; border-radius: var(--r-lg); border: 1.5px solid var(--line-2); background: var(--surface); box-shadow: 0 3px 0 var(--line);
}
.plus-opt .em { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--surface-2); }
.plus-opt b { display: block; font-size: 16px; color: var(--ink); }
.plus-opt span span { font-size: 13px; color: var(--muted); }
.radio-list { display: grid; gap: 8px; }
.radio-list label { display: flex; gap: 10px; align-items: center; min-height: 48px; padding: 8px 12px; border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; }
.radio-list input { width: 20px; height: 20px; accent-color: var(--teal-btn); }
.trust-list { display: grid; gap: 12px; }

/* ---------- Срочно / Urgent flow ---------- */
.u-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.u-top .h-title { flex: 1; }
.steps { display: flex; gap: 4px; }
.steps li { flex: 1; display: flex; flex-direction: column; gap: 4px; font: 600 11px/1.1 var(--font); color: var(--muted); text-align: center; }
.steps li::before { content: ''; height: 5px; border-radius: 9px; background: var(--line-2); }
.steps li.done::before { background: var(--teal); }
.steps li.cur::before { background: var(--coral); }
.steps li.cur { color: var(--ink); font-weight: 800; }
.steps li span { display: none; }
.task-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.task {
  min-height: 84px; padding: 12px; border-radius: var(--r-lg); border: 1.5px solid var(--line-2); background: var(--surface);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; text-align: left;
  font: 700 15px/1.2 var(--font); box-shadow: 0 3px 0 var(--line);
}
.task-ico { font-size: 28px; line-height: 1; }
.task[aria-pressed="true"] { border-color: var(--coral); background: var(--coral-soft); box-shadow: 0 0 0 2px var(--coral) inset, 0 3px 0 var(--line); }
.field-lab { display: block; font-weight: 700; font-size: 14px; margin: 4px 0 6px; }
.ta-wrap { position: relative; }
textarea, .inp, select.inp {
  width: 100%; border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--surface); padding: 12px 14px;
  font-size: 16px; line-height: 1.4; resize: vertical; color: var(--ink);
}
.inp { min-height: 48px; }
textarea:focus, .inp:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 165, 164, .25); }
.ta-wrap textarea { padding-right: 58px; }
.ta-wrap .mic { position: absolute; right: 8px; bottom: 10px; background: var(--coral-soft); color: var(--coral-ink); border-color: transparent; }
.u-body { padding: 0 16px 24px; display: grid; gap: 14px; }
.ai-think { display: grid; justify-items: center; gap: 12px; padding: 30px 0; text-align: center; }
.ai-orb { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: conic-gradient(from 0deg, var(--coral), var(--teal), var(--coral)); animation: spin 1.6s linear infinite; }
.ai-orb .i { width: 34px; height: 34px; animation: spin 1.6s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { width: 100%; height: 14px; border-radius: 9px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skel.w70 { width: 70%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.quote { padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); font-style: italic; color: var(--ink-2); font-size: 14px; }
.parsed { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.parsed div { padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line-2); animation: pop .3s ease both; }
.parsed div:nth-child(2) { animation-delay: .08s; } .parsed div:nth-child(3) { animation-delay: .16s; } .parsed div:nth-child(4) { animation-delay: .24s; }
.parsed dt { font: 800 11px var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.parsed dd { margin: 4px 0 0; font-weight: 700; font-size: 14px; }
.note-safe { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--green-soft); color: var(--green-ink); font-size: 14px; font-weight: 600; }
.offers { display: grid; gap: 12px; }
.offer { display: grid; gap: 10px; transition: border-color .15s; }
.offer.is-hl { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal) inset, 0 3px 0 var(--line); }
.offer-head { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; }
.offer-head b { display: block; font-size: 16px; }
.offer-head span { font-size: 13px; color: var(--muted); }
.offer-price { font: 700 17px var(--font-h); white-space: nowrap; }
.offer-eta { display: flex; flex-wrap: wrap; gap: 6px; }
.offer-note { font-size: 14px; color: var(--ink-2); }
.offer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.offer-foot .g { font-size: 13px; color: var(--green-ink); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.offer-foot .g .i { width: 16px; height: 16px; }
.track-hero { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.track-hero .ava { width: 56px; height: 56px; }
.th-kicker { font: 800 12px var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--teal-ink); }
.th-name { font-weight: 800; }
.th-car { font-size: 12.5px; color: var(--muted); }
.eta-big { text-align: center; background: var(--teal-btn); color: #fff; border-radius: 18px; padding: 8px 12px; min-width: 72px; }
.eta-big span { display: block; font: 700 28px/1 var(--font-h); }
.eta-big small { font-size: 12px; font-weight: 700; }
.eta-big.is-here { background: var(--green-ink); }
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--coral)); border-radius: inherit; }
.timeline { display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 14px 30px; font-size: 14px; color: var(--muted); }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--line-2); background: var(--surface); }
.timeline li::after { content: ''; position: absolute; left: 11px; top: 19px; bottom: 0; width: 2.5px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--teal); border-color: var(--teal); }
.timeline li.done::after { background: var(--teal); }
.timeline li.cur { color: var(--ink); font-weight: 800; }
.timeline li.cur::before { background: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 5px var(--coral-soft); }
.accept { display: grid; gap: 10px; border-color: var(--teal); }
.accept h2 { font: 700 17px var(--font-h); }
.stars-pick { display: flex; gap: 6px; }
.star-btn { width: 52px; height: 52px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--line-2); display: grid; place-items: center; }
.star-btn .i { width: 30px; height: 30px; }
.star-btn.on { color: #E39A00; border-color: #E39A00; background: var(--amber-soft); }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Продать / Sell ---------- */
.cam {
  display: grid; place-items: center; gap: 8px; min-height: 150px; border-radius: var(--r-xl); border: 2.5px dashed var(--coral);
  background: var(--coral-soft); color: var(--coral-ink); font: 700 16px var(--font); width: 100%; text-align: center; padding: 16px;
}
.cam .i { width: 40px; height: 40px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.photo-opt { position: relative; padding: 0; border-radius: var(--r-lg); overflow: hidden; border: 1.5px solid var(--line-2); background: var(--surface); }
.photo-opt img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-opt span { position: absolute; left: 8px; bottom: 8px; background: var(--surface); color: var(--ink); font: 700 12.5px var(--font); padding: 4px 9px; border-radius: 999px; }
.scan { position: relative; border-radius: var(--r-xl); overflow: hidden; }
.scan img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.scan-line { position: absolute; left: 0; right: 0; height: 4px; background: var(--teal); box-shadow: 0 0 22px 8px rgba(14, 165, 164, .55); animation: scanline 1.6s ease-in-out infinite alternate; }
@keyframes scanline { from { top: 4%; } to { top: 94%; } }
.scan-tags { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.scan-tags span { background: rgba(255, 255, 255, .95); color: #201A14; font: 700 12.5px var(--font); padding: 6px 10px; border-radius: 999px; animation: pop .3s ease both; display: inline-flex; gap: 5px; align-items: center; }
.scan-tags span .i { width: 15px; height: 15px; color: #0A7473; }
.form-grid { display: grid; gap: 12px; }
.ai-filled { font: 700 11px var(--font); color: var(--teal-ink); background: var(--teal-soft); padding: 3px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.price-inp { display: flex; align-items: center; gap: 8px; }
.price-inp .inp { font: 700 20px var(--font-h); max-width: 200px; }
.reach { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; }
.reach svg { width: 76px; height: 76px; }

/* ---------- Сообщения / Messages ---------- */
.chat-list { display: grid; gap: 2px; padding: 8px 8px 16px; }
.chat-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-md); text-decoration: none; color: inherit; }
.chat-item:hover { background: var(--surface-2); }
.chat-item b { display: block; font-size: 15px; }
.chat-prev { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.chat-side { display: grid; justify-items: end; gap: 4px; font-size: 12px; color: var(--muted); }
.chat-new { min-width: 22px; height: 22px; border-radius: 99px; background: var(--coral-btn); color: #fff; font: 800 12px/22px var(--font); text-align: center; padding: 0 6px; }
.guard-tag { display: inline-flex; gap: 4px; align-items: center; font: 800 11px var(--font); color: var(--danger); background: var(--danger-soft); padding: 2px 7px; border-radius: 99px; margin-top: 3px; }
.guard-tag .i { width: 13px; height: 13px; }
.guard-note { margin: 4px 16px 8px; display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--teal-ink); background: var(--teal-soft); padding: 10px 12px; border-radius: var(--r-md); font-weight: 600; }
.dialog { display: flex; flex-direction: column; min-height: 100%; }
.dlg-who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.dlg-who .ava { width: 40px; height: 40px; }
.dlg-who b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlg-who span { font-size: 12px; color: var(--muted); }
.dlg-item { margin: 10px 16px 0; display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); font-size: 13.5px; }
.dlg-item img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.msgs { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.msg { max-width: 82%; padding: 10px 12px 6px; border-radius: 18px; font-size: 15px; animation: pop .2s ease; }
.msg time { display: block; text-align: right; font-size: 11px; color: var(--muted); margin-top: 2px; }
.msg.msg-in { align-self: flex-start; background: var(--surface); border: 1.5px solid var(--line); border-bottom-left-radius: 6px; }
.msg.msg-out { align-self: flex-end; background: var(--teal-soft); border-bottom-right-radius: 6px; }
.msg.is-scam { border-color: var(--danger); background: var(--danger-soft); }
.link-blocked { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 6px; background: var(--surface); color: var(--danger); text-decoration: line-through; font-weight: 700; }
.msg-sys { align-self: center; max-width: 92%; text-align: center; font-size: 12.5px; color: var(--ink-2); background: var(--surface-2); padding: 8px 12px; border-radius: 14px; }
.guard {
  align-self: stretch; border: 2px solid var(--danger); background: var(--surface); border-radius: var(--r-lg); padding: 14px;
  box-shadow: 0 3px 0 rgba(180, 35, 24, .25); display: grid; gap: 10px; animation: pop .3s ease;
}
.guard-h { display: flex; gap: 10px; align-items: center; }
.guard-h .gi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--danger-soft); color: var(--danger); flex: none; }
.guard-h b { display: block; color: var(--danger); font-size: 15px; }
.guard-h span { font-size: 12px; color: var(--muted); }
.guard ul { display: grid; gap: 6px; font-size: 14px; }
.guard li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.guard li::before { content: '!'; width: 18px; height: 18px; border-radius: 50%; background: var(--danger-soft); color: var(--danger); font: 800 12px/18px var(--font); text-align: center; margin-top: 1px; }
.guard .row-btns .btn { flex: 1 1 130px; }
.guard.is-done { border-color: var(--line-2); box-shadow: none; opacity: .85; }
.composer { position: sticky; bottom: 0; display: grid; gap: 6px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1.5px solid var(--line); }
.composer-row { display: flex; gap: 8px; align-items: center; }
.composer .inp { border-radius: 999px; }
.composer .send { background: var(--teal-btn); color: #fff; border-color: transparent; }
.composer-hint { font-size: 12.5px; color: var(--danger); font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }

/* ---------- Кабинет / Pro cabinet ---------- */
.cab-head { display: flex; gap: 12px; align-items: center; }
.cab-head h1 { font: 700 19px var(--font-h); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.switch button { width: 58px; height: 34px; border-radius: 99px; border: 0; background: var(--line-2); position: relative; flex: none; }
.switch button::after { content: ''; position: absolute; left: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch button[aria-checked="true"] { background: var(--green-ink); }
.switch button[aria-checked="true"]::after { transform: translateX(24px); }
.minimap { border-radius: var(--r-lg); overflow: hidden; border: 1.5px solid var(--line-2); height: 230px; background: var(--map-land); }
.minimap svg { width: 100%; height: 100%; display: block; }
.mm-stop { fill: var(--teal-btn); stroke: #fff; stroke-width: 6; }
.mm-stop.done { fill: var(--muted); }
.mm-num { font: 700 30px var(--font-h); fill: #fff; text-anchor: middle; dominant-baseline: central; }
.mm-home { fill: var(--coral-btn); stroke: #fff; stroke-width: 6; }
.mm-req { fill: var(--amber); stroke: #fff; stroke-width: 5; }
.range { width: 100%; accent-color: var(--coral-btn); height: 44px; }
.range-lab { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.sched { display: grid; gap: 0; }
.sched li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line-2); }
.sched li:first-child { border-top: 0; }
.sched time { font: 700 15px var(--font-h); }
.sched b { display: block; }
.sched .fine b { display: inline; }
.drive { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--teal-ink); font-weight: 700; margin: 2px 0 0 68px; }
.drive .i { width: 16px; height: 16px; }
.req { display: grid; gap: 8px; }
.req-top { display: flex; justify-content: space-between; gap: 8px; }
.req-top b { font-size: 15px; }
.money { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.money .sticker { padding: 12px; }
.money b { display: block; font: 700 18px var(--font-h); margin-top: 2px; }
.money span { font-size: 12.5px; color: var(--muted); }
.money .wide { grid-column: 1 / -1; }
.zero { color: var(--green-ink) !important; }
.limit-bar { height: 14px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); margin: 10px 0 6px; }
.limit-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #F5A524); border-radius: inherit; }
.receipts li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.receipts li:first-child { border-top: 0; }
.receipts .ok { color: var(--green-ink); font-weight: 700; white-space: nowrap; }

/* ---------- Профиль / Profile ---------- */
.prof-head { display: flex; gap: 14px; align-items: center; }
.prof-ava { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--coral-btn); color: #fff; font: 700 28px var(--font-h); flex: none; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.role { padding: 12px 10px; border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--surface); text-decoration: none; color: inherit; display: grid; gap: 2px; min-height: 84px; box-shadow: 0 3px 0 var(--line); }
.role b { font: 700 20px var(--font-h); }
.role span { font-size: 12.5px; color: var(--muted); }
.role.go { border-color: var(--teal); background: var(--teal-soft); }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; border-top: 1px solid var(--line); font-size: 14px; }
.set-row:first-child { border-top: 0; }
.set-row .ok { color: var(--green-ink); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }

/* Категории в поиске / Search categories */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border-radius: var(--r-md);
  border: 1.5px solid var(--line-2); background: var(--surface); text-align: left; font: 700 14px/1.2 var(--font);
}
.cat .em { font-size: 22px; }
.cat small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }

/* ---------- Тост / Toast ---------- */
.toast {
  position: fixed; left: 50%; top: calc(var(--bar-h) + 10px); z-index: 70; transform: translate(-50%, -20px);
  max-width: min(92vw, 440px); padding: 12px 16px; border-radius: 16px; background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Компьютер / Desktop ≥1024 ---------- */
@media (min-width: 1024px) {
  .tabbar {
    top: 0; bottom: 0; right: auto; width: var(--rail-w); height: auto; flex-direction: column; justify-content: flex-start;
    gap: 6px; padding: 14px 8px; border-top: 0; border-right: 1px solid var(--line);
  }
  .brand { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--ink); margin-bottom: 12px; padding: 6px 0; }
  .brand-pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--coral); box-shadow: inset 0 0 0 8px var(--coral), inset 0 0 0 30px #fff; }
  .brand-txt { font: 700 11px/1.1 var(--font-h); text-align: center; }
  .tab { flex: none; min-height: 64px; }
  .tab-plus { order: 0; }
  .plus-bubble { margin-top: 0; width: 50px; height: 50px; }
  .tab-lab-plus { display: block; }
  .badge { left: calc(50% + 6px); top: 6px; }
  .stage { left: var(--rail-w); bottom: 0; }
  .map { left: var(--panel-w); }
  .searchbar { left: 0; right: auto; top: 0; width: var(--panel-w); height: var(--sb-h); padding: 14px 16px 12px; background: var(--surface); border-right: 1px solid var(--line); gap: 10px; }
  .search { box-shadow: var(--shadow-sm); }
  .panel {
    top: var(--sb-h) !important; bottom: 0; right: auto; width: var(--panel-w); height: auto !important; transform: none !important;
    border-radius: 0; box-shadow: 1px 0 0 var(--line), 10px 0 30px -18px rgba(32, 26, 20, .35);
  }
  .panel.is-page { background: var(--bg); }
  .app.no-sb .panel { top: 0 !important; }
  .sheet-grab { border-radius: 0; padding-top: 12px; }
  .handle { display: none; }
  .app.is-page-mobile .map, .app.is-page-mobile .searchbar { visibility: visible; }
  .map-ctrls { top: auto; bottom: 20px; right: 20px; }
  .map-legend { display: flex; top: 16px; left: 16px; }
  .mini { left: 20px; right: auto; bottom: 20px !important; width: 400px; }
  .map-back { display: none !important; }
  .toast { left: calc(var(--rail-w) + var(--panel-w) + (100vw - var(--rail-w) - var(--panel-w)) / 2); top: calc(var(--bar-h) + 16px); }
  .modal-back { align-items: center; }
  .modal { border-radius: var(--r-xl); max-height: 86dvh; }
  .modal-grip { display: none; }
  .only-mobile { display: none !important; }
}

/* ---------- Меньше движения / Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .me-pulse, .ov-ripple, .ov-route-flow, .scan-line { display: none; }
  .ai-orb, .ai-orb .i { animation: none !important; }
}
