/* Жоламан: карта сверху, нижняя панель с текущим шагом, вкладки */
:root{
  --bg:#EDF0EB; --bg2:#F2F4F0; --surface:#FFFFFF; --ink:#15201B; --muted:#5D6A63; --line:#D8DED7;
  --accent:#F2B630; --accent-ink:#1C1605; --good:#23804F; --bad:#B8392F;
  --shadow:0 -8px 24px rgb(20 30 25 / .10);
  --font-d:'Unbounded','Arial Black',system-ui,sans-serif;
  --font-b:'Manrope','Segoe UI',system-ui,sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#0D1210; --bg2:#1E2723; --surface:#151C19; --ink:#E7ECE8; --muted:#94A199; --line:#2A3430;
    --accent:#F4BE43; --good:#5BC48A; --bad:#EE7A6F; --shadow:0 -8px 24px rgb(0 0 0 / .45);
    color-scheme:dark;
  }
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{background:var(--bg);color:var(--ink);font-family:var(--font-b);font-size:15px;line-height:1.4}
button{font:inherit;color:inherit;cursor:pointer}
a{color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.app{height:100%;max-width:520px;margin:0 auto;display:flex;flex-direction:column;background:var(--bg);position:relative;overflow:hidden;
  padding-top:env(safe-area-inset-top,0px)}
.map-wrap{position:relative;flex:0 0 auto;height:clamp(200px,40%,380px)}
#map{position:absolute;inset:0;background:var(--bg2)}
.top{position:absolute;top:12px;left:16px;right:16px;display:flex;justify-content:space-between;align-items:center;gap:8px;z-index:500;pointer-events:none}
.brand{font-family:var(--font-d);font-weight:700;font-size:14px;background:var(--accent);color:var(--accent-ink);padding:8px 12px;border-radius:999px;box-shadow:0 2px 10px rgb(0 0 0 / .15)}
.conn{background:var(--bad);color:#fff;font-weight:800;font-size:12px;padding:6px 10px;border-radius:999px}
.sheet{flex:1 1 auto;min-height:0;overflow-y:auto;background:var(--surface);border-radius:22px 22px 0 0;margin-top:-20px;position:relative;z-index:600;
  padding:22px 16px 24px;display:flex;flex-direction:column;gap:14px;box-shadow:var(--shadow)}
.sheet::before{content:"";position:absolute;top:8px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:var(--line)}
.tabs{flex:0 0 auto;display:grid;grid-template-columns:repeat(3,1fr);background:var(--surface);border-top:1px solid var(--line);z-index:700;padding-bottom:env(safe-area-inset-bottom,0px)}
.tab{background:none;border:0;padding:10px 4px 12px;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:12px;font-weight:700;color:var(--muted)}
.tab svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tab[aria-selected="true"]{color:var(--ink)}
.tab[aria-selected="true"] span{box-shadow:inset 0 -2px 0 var(--accent)}

.h{font-family:var(--font-d);font-weight:700;font-size:19px;margin:0;text-wrap:balance}
.sub{color:var(--muted);font-size:13px}
.lbl{font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.num{font-variant-numeric:tabular-nums}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.grow{flex:1 1 auto;min-width:0}

.field{display:flex;flex-direction:column;gap:6px}
.input,.select{width:100%;border:1px solid var(--line);background:var(--bg2);border-radius:12px;padding:12px;font:inherit;color:var(--ink)}
.input::placeholder{color:var(--muted)}
.select{appearance:none;-webkit-appearance:none;font-weight:700}
.phone{display:flex;align-items:center;border:1px solid var(--line);background:var(--bg2);border-radius:12px;padding-left:12px;font-weight:800;font-size:18px}
.phone input{flex:1;min-width:0;border:0;background:transparent;font:inherit;color:var(--ink);padding:12px}
.code{font-family:var(--font-d);font-size:28px;letter-spacing:.3em;text-align:center}

.route{background:var(--bg2);border-radius:14px;padding:2px 12px}
.rf{display:flex;align-items:center;gap:10px;min-width:0;padding:4px 0}
.rf + .rf{border-top:1px solid var(--line)}
.rf .input{border:0;padding:10px 0;background:transparent}
.rf .pt{font-size:12px;color:var(--muted);white-space:nowrap}
.pin{flex:0 0 auto;width:22px;height:22px;border-radius:50%;display:inline-grid;place-items:center;font-size:11px;font-weight:800}
.pin.a{background:var(--accent);color:var(--accent-ink)}
.pin.b{background:var(--ink);color:var(--surface)}
.pin.sm{width:18px;height:18px;font-size:10px}
.pin.off{opacity:.35}

.sugg{border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;margin-top:-8px}
.sg{background:var(--surface);border:0;border-bottom:1px solid var(--line);text-align:left;padding:10px 12px;display:flex;flex-direction:column;gap:1px}
.sg:last-child{border-bottom:0}
.sg small{color:var(--muted);font-size:12px}
.chips{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.chips.two{grid-template-columns:repeat(2,1fr)}
.chips.four{grid-template-columns:repeat(4,1fr)}
.chip{border:1.5px solid var(--line);border-radius:12px;padding:9px 10px;background:var(--surface);text-align:left;display:flex;flex-direction:column;gap:1px;min-width:0}
.chip b{font-weight:800;font-size:14px}
.chip small{color:var(--muted);font-size:12px}
.chip[aria-pressed="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:var(--bg2);border-radius:12px;padding:4px}
.seg button{border:0;background:transparent;border-radius:9px;padding:9px;font-weight:800;font-size:14px;color:var(--muted)}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 4px rgb(0 0 0 / .12)}

.pricebox{background:var(--accent);color:var(--accent-ink);border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:6px}
.pricebox .lbl{color:var(--accent-ink)}
.pb-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap;font-size:13px;font-weight:700}
.pb-row{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;gap:8px}
.step{width:48px;height:48px;border-radius:50%;border:0;background:rgb(0 0 0 / .1);color:var(--accent-ink);font-size:24px;font-weight:800;line-height:1}
.pb-val{display:flex;justify-content:center;align-items:baseline;gap:6px;font-family:var(--font-d);font-weight:700}
.pb-val input{width:5.4ch;background:transparent;border:0;color:var(--accent-ink);font:inherit;font-size:34px;text-align:right;padding:0;font-variant-numeric:tabular-nums;border-bottom:2px dashed rgb(0 0 0 / .25)}
.pb-val span{font-size:20px}
.meta{font-size:13px;text-align:center;font-weight:600}

.primary{width:100%;border:0;border-radius:14px;padding:15px 16px;background:var(--ink);color:var(--surface);font-weight:800;font-size:15px}
.primary.sm{padding:11px 14px;font-size:14px;width:auto}
.primary.acc{background:var(--accent);color:var(--accent-ink)}
.primary:disabled{opacity:.4;cursor:not-allowed}
.ghost{border:0;border-radius:12px;padding:10px 14px;background:var(--bg2);color:var(--ink);font-weight:800;font-size:14px}
.ghost.danger{color:var(--bad)}
.link{background:none;border:0;padding:4px 0;color:var(--muted);font-weight:700;text-decoration:underline}

.list{display:flex;flex-direction:column;gap:10px}
.card{border:1px solid var(--line);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:12px;position:relative;overflow:hidden;background:var(--surface)}
.card.sel{border-color:var(--ink)}
.o-main{display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center}
.ava{width:44px;height:44px;border-radius:50%;background:var(--bg2);display:grid;place-items:center;font-family:var(--font-d);font-weight:700}
.o-info{min-width:0;display:flex;flex-direction:column;gap:3px}
.o-name{font-weight:800}
.star{color:var(--muted);font-weight:600;font-size:13px}
.o-car{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.plate{align-self:flex-start;font-variant-numeric:tabular-nums;font-weight:800;font-size:12px;letter-spacing:.08em;border:1.5px solid var(--ink);border-radius:4px;padding:0 6px}
.plate .kg{font-size:8px;color:var(--muted);margin-right:4px;letter-spacing:0;vertical-align:1px}
.o-price{text-align:right;display:flex;flex-direction:column;gap:2px}
.big{font-family:var(--font-d);font-weight:700;font-size:20px;font-variant-numeric:tabular-nums;white-space:nowrap}
.diff{font-size:12px;font-weight:800;color:var(--bad)}
.diff.ok{color:var(--good)}
.actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;align-items:center}
.bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--bg2)}
.bar i{display:block;height:100%;background:var(--accent);width:100%}
.kv{display:flex;justify-content:space-between;gap:10px;font-size:14px}
.kv > span:first-child{color:var(--muted)}
.r-route{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:14px}
.r-route div{display:flex;align-items:center;gap:8px;min-width:0}
.cbtn{border:1.5px solid var(--line);background:var(--surface);border-radius:10px;padding:7px 10px;font-weight:800;font-size:13px;font-variant-numeric:tabular-nums}
.wait{font-size:14px;font-weight:800}
.empty{border:1.5px dashed var(--line);border-radius:16px;padding:18px;display:flex;gap:14px;align-items:center}
.radar{flex:0 0 auto;width:40px;height:40px;border-radius:50%;background:var(--accent);position:relative}
.radar::after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid var(--accent);animation:ping 1.6s ease-out infinite}
.radar.off{background:var(--line)} .radar.off::after{display:none}
@keyframes ping{from{transform:scale(1);opacity:.8}to{transform:scale(1.9);opacity:0}}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.steps div{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:800;color:var(--muted)}
.steps i{height:4px;border-radius:2px;background:var(--line)}
.steps .on{color:var(--ink)} .steps .on i{background:var(--accent)}
.stars{display:flex;gap:6px;justify-content:center}
.stars button{background:none;border:0;font-size:34px;line-height:1;color:var(--line);padding:2px}
.stars button.on{color:var(--accent)}
.switch{display:flex;align-items:center;gap:10px;background:none;border:0;padding:4px 0;font-weight:800}
.switch .tr{width:46px;height:28px;border-radius:14px;background:var(--line);position:relative;transition:background .2s}
.switch .tr::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:var(--surface);transition:transform .2s;box-shadow:0 1px 3px rgb(0 0 0 / .25)}
.switch[aria-checked="true"] .tr{background:var(--good)}
.switch[aria-checked="true"] .tr::after{transform:translateX(18px)}
.hist{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:12px 0;border-bottom:1px solid var(--line)}
.hist:last-child{border-bottom:0}
.tag{font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;background:var(--bg2);color:var(--muted);border-radius:6px;padding:1px 6px}
.tag.bad{color:var(--bad)}
.note{font-size:13px;color:var(--muted);text-align:center}
.dev{font-size:13px;background:var(--bg2);border-radius:10px;padding:10px 12px}
.toast{position:absolute;left:16px;right:16px;bottom:80px;z-index:900;background:var(--ink);color:var(--surface);border-radius:12px;padding:12px 14px;font-weight:700;font-size:14px;box-shadow:0 6px 20px rgb(0 0 0 / .25)}

/* маркеры карты */
.mk{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font:800 12px var(--font-b);border:2px solid #fff;box-shadow:0 2px 6px rgb(0 0 0 / .3)}
.mk.a{background:var(--accent);color:var(--accent-ink)}
.mk.b{background:#15201B;color:#fff}
.mk.car{width:22px;height:22px;border-radius:7px;background:#15201B;border-color:var(--accent)}
.mk.me{width:18px;height:18px;background:#2F7CF6}
.leaflet-container{font-family:var(--font-b)}
@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}}
