:root {
  --bg: #060a08;
  --surface: #0b120e;
  --surface2: #101a14;
  --border: #1a2a21;
  --text: #d4f2df;
  --muted: #7a9886;
  --accent: #00e676;
  --accent-hi: #3dffa0;
  --danger: #ff5c6c;
  --taxi: #ffd23f;
  --courier: #ff9f43;
  --radius: 10px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  display: flex; flex-direction: column;
}
button, input, textarea { font: inherit; color: inherit; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--surface);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo { width: 40px; height: 40px; flex: none; }
.logo rect { fill: #0a2a19; stroke: #1d5c3b; stroke-width: 1; }
.logo path { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 1.2s .2s ease forwards; }
.logo .st { fill: #03140b; stroke: var(--accent); stroke-width: 1.2; opacity: 0; animation: pop .3s 1.1s ease forwards; }
.logo .me { fill: #ff3b3b; stroke: #fff; stroke-width: 1; opacity: 0;
  animation: pop .3s 1.3s ease forwards, blink 2.4s 1.8s ease-in-out infinite; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.logo circle { transform-box: fill-box; transform-origin: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blink { 50% { opacity: .35; } }
.top { position: sticky; top: 0; z-index: 2000; backdrop-filter: blur(10px); background: rgba(10, 17, 14, .86); }
.name { font-weight: 700; font-size: 17px; }
.sub { color: var(--muted); font-size: 13px; }
.online { color: var(--muted); font-size: 13px; text-align: right; }
.online b { color: var(--accent); }

.layout { flex: 1; display: grid; grid-template-columns: 420px 1fr; min-height: 0; }
.panel { overflow-y: auto; padding: 20px; border-right: 1px solid var(--border); background: var(--bg); }
.mapwrap { position: relative; min-height: 360px; }
#map { position: absolute; inset: 0; background: #0a1210; }

h1 { font-size: 22px; margin: 0 0 12px; }
h2 { font-size: 16px; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 10px 0 14px; }
.fine { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); }
.tab { border: 0; background: transparent; padding: 9px; border-radius: 7px; cursor: pointer; font-weight: 600;
  color: var(--muted); }
.tab.active { background: var(--surface2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.tab.active[data-kind="taxi"] { color: var(--taxi); }
.tab.active[data-kind="courier"] { color: var(--courier); }

.field { display: block; margin: 0 0 12px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.field em { font-style: normal; opacity: .7; }
input, textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); outline: none; resize: vertical;
}
input:focus, textarea:focus { border-color: var(--accent); }
.search { position: relative; display: flex; gap: 6px; }
.search input { flex: 1; }
.pick { flex: none; border: 1px solid var(--border); background: var(--surface2); border-radius: 8px; padding: 0 10px;
  cursor: pointer; color: var(--muted); font-size: 13px; }
.pick.on { border-color: var(--accent); color: var(--accent); }
.pin { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px;
  color: #04120a; margin-right: 4px; }
.pin.a { background: var(--accent); }
.pin.b { background: var(--danger); }
.suggest { position: absolute; z-index: 1000; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px;
  list-style: none; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px;
  max-height: 260px; overflow-y: auto; display: none; }
.suggest.open { display: block; }
.suggest li { padding: 7px 9px; border-radius: 6px; cursor: pointer; display: flex; justify-content: space-between;
  gap: 10px; }
.suggest li small { color: var(--muted); flex: none; }
.suggest li.hl, .suggest li:hover { background: #163023; }

.estimate { padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  margin: 4px 0 12px; color: var(--muted); }
.estimate b { color: var(--text); font-size: 20px; }
.primary { width: 100%; padding: 13px; border: 0; border-radius: var(--radius); background: var(--accent);
  color: #04120a; font-weight: 700; font-size: 16px; cursor: pointer; }
.primary:hover { background: var(--accent-hi); }
.primary:disabled { opacity: .5; cursor: default; }
.ghost { flex: 1; padding: 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; }
.ghost:hover { border-color: var(--accent); }
.ghost:disabled { opacity: .45; cursor: default; }
.error { color: var(--danger); margin-top: 10px; min-height: 1em; }
.row { display: flex; gap: 8px; margin-top: 12px; }

.track-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.code { font: 700 18px/1 Consolas, monospace; letter-spacing: 2px; color: var(--accent); }
.steps { list-style: none; padding: 0; margin: 6px 0 14px; }
.steps li { position: relative; padding: 0 0 14px 28px; color: var(--muted); }
.steps li::before { content: ""; position: absolute; left: 6px; top: 5px; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--bg); }
.steps li::after { content: ""; position: absolute; left: 11px; top: 19px; bottom: 0; width: 2px; background: var(--border); }
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--text); }
.steps li.done::before { background: var(--accent); border-color: var(--accent); }
.steps li.now { color: var(--accent); font-weight: 600; }
.steps li.now::before { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 230, 118, .18); }
.steps li.cancelled { color: var(--danger); }
.card { padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.card div + div { margin-top: 4px; }
.card .k { color: var(--muted); }

.mine { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.mine ul { list-style: none; padding: 0; margin: 0; }
.mine li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer;
  background: var(--surface); margin-bottom: 6px; }
.mine li:hover { background: var(--surface2); }
.mine li small { color: var(--muted); }

.maphint { position: absolute; z-index: 500; left: 50%; top: 14px; transform: translateX(-50%);
  background: rgba(6, 10, 8, .92); border: 1px solid var(--accent); color: var(--accent); padding: 8px 14px;
  border-radius: 8px; font-weight: 600; pointer-events: none; }
.foot { padding: 10px 20px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* метки на карте */
.mk { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  color: #04120a; border: 2px solid #000; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.mk.a { background: var(--accent); }
.mk.b { background: var(--danger); }
.mk.car { width: 22px; height: 22px; background: var(--taxi); border-color: #fff; }
.mk.car.courier { background: var(--courier); }
.mk.live { width: 14px; height: 14px; border-width: 2px; opacity: .85; background: #f5b301; }
.mk.live.taxi { background: var(--taxi); }
.mk.live.courier { background: var(--courier); }
.mk.live.free { box-shadow: 0 0 0 4px rgba(0, 230, 118, .35); animation: pulse 1.8s infinite; }
.livelegend { position: absolute; z-index: 500; left: 12px; bottom: 12px; background: rgba(6, 10, 8, .9);
  border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; color: var(--muted); }
.livelegend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 4px 0 8px;
  border: 1px solid #000; }
.livelegend .dot:first-child { margin-left: 0; }
.livelegend .dot.taxi { background: var(--taxi); }
.livelegend .dot.courier { background: var(--courier); }
.livelegend .dot.bus { background: #f5b301; }
.nearbox { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--accent); background: #0f2a1d;
  color: var(--accent-hi); margin-bottom: 10px; animation: rise .4s ease; }
.ratebox { margin-top: 12px; padding: 14px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid #1d5c3b; animation: rise .4s ease; }
.ratebox h2 { margin-bottom: 6px; }
.ratebox textarea { margin: 8px 0 10px; }
.starsel { display: flex; gap: 4px; }
.star { border: 0; background: transparent; font-size: 32px; line-height: 1; color: #2a4a38; cursor: pointer;
  transition: color .15s, transform .15s; padding: 0 2px; }
.star.on { color: var(--taxi); }
.star:hover { transform: scale(1.15); }
.leaflet-container { font: inherit; }
.leaflet-control-attribution { background: rgba(6, 10, 8, .7) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-bar a { background: var(--surface2) !important; color: var(--text) !important; border-color: var(--border) !important; }

/* разделы сайта */
.nav { display: flex; gap: 4px; padding: 4px; border-radius: var(--radius); background: var(--bg);
  border: 1px solid var(--border); }
.navbtn { border: 0; background: transparent; padding: 7px 14px; border-radius: 7px; cursor: pointer;
  color: var(--muted); font-weight: 600; white-space: nowrap; }
.navbtn:hover { color: var(--text); }
.navbtn.active { background: var(--surface2); color: var(--accent); box-shadow: inset 0 0 0 1px var(--border); }
.page { flex: 1; overflow-y: auto; padding: 24px clamp(16px, 4vw, 48px); }
.pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap;
  margin-bottom: 14px; }
.pagehead .lead { max-width: 760px; margin: 0; }
.headbtns { display: flex; gap: 8px; align-items: center; }
.small { width: auto; padding: 9px 16px; font-size: 14px; text-decoration: none; display: inline-block; flex: none; }
a.primary { text-align: center; }
.find, select { padding: 9px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); min-width: 240px; }
select { min-width: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--muted); padding: 6px 12px;
  border-radius: 999px; cursor: pointer; font-size: 13px; }
.chip.on { border-color: var(--accent); color: var(--accent); background: #0f2a1d; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.empty { color: var(--muted); padding: 20px 0; grid-column: 1 / -1; }
.job, .route { padding: 14px 16px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.job:hover, .route:hover { border-color: #2a4a38; }
.job .top2, .route .top2 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.job .cat { color: var(--muted); font-size: 12.5px; }
.job .reward { color: var(--accent); font-weight: 700; white-space: nowrap; }
.job .title { font-weight: 600; }
.job .meta, .route .meta { color: var(--muted); font-size: 13px; }
.job .act { margin-top: 4px; }
.route .num { font: 800 20px/1 Consolas, monospace; background: #f5b301; color: #111; border-radius: 7px;
  padding: 5px 10px; }
.route .dir { font-weight: 600; }
.route details { color: var(--muted); font-size: 13px; }
.route summary { cursor: pointer; color: var(--text); }
.route ol { margin: 6px 0 0; padding-left: 20px; }
.route mark { background: #0f2a1d; color: var(--accent); }
.narrow { max-width: 420px; margin: 0 auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat .v { font-size: 22px; font-weight: 700; color: var(--text); }
.stat .l { color: var(--muted); font-size: 12.5px; }
.stat.good .v { color: var(--accent); }
.stat.warn .v { color: var(--taxi); }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-bottom: 12px; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--border); }
td { padding: 6px 8px; border-bottom: 1px solid #121c16; }
td.num { text-align: right; white-space: nowrap; }
td.plus { color: var(--accent); }
td.minus { color: var(--taxi); }

/* ---------------------------------------------------------------- главная */
.home { padding: 0; }
.hero { position: relative; min-height: calc(100vh - 66px); display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--border); }
#rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(6, 10, 8, .72) 0%, rgba(6, 10, 8, .5) 55%, var(--bg) 100%); }
.hero-in { position: relative; z-index: 1; text-align: center; padding: 48px 20px 80px; max-width: 900px; }
.badge-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid #1d5c3b; background: rgba(15, 42, 29, .7); color: var(--accent-hi); font-size: 13px; font-weight: 600;
  animation: rise .8s ease both; }
.badge-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 230, 118, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); } }
.hero-title { font-size: clamp(36px, 7vw, 76px); line-height: 1.04; margin: 22px 0 18px; letter-spacing: -1px;
  animation: rise .9s .1s ease both; }
.grad { background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hi) 40%, #b6ffd9 50%, var(--accent-hi) 60%, var(--accent) 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -200% center; } }
.hero-lead { color: #a9c7b5; font-size: clamp(16px, 2vw, 19px); max-width: 680px; margin: 0 auto;
  animation: rise .9s .2s ease both; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap;
  animation: rise .9s .3s ease both; }
.hero-cta.left { justify-content: flex-start; animation: none; }
.big { width: auto; padding: 14px 26px; font-size: 16px; text-decoration: none; display: inline-block; flex: none;
  border-radius: 12px; font-weight: 700; }
a.ghost { color: var(--text); text-align: center; }
.primary { position: relative; overflow: hidden; transition: transform .15s ease, box-shadow .2s ease, background .2s; }
.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(0, 230, 118, .28); }
.primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); }
.primary:hover::after { animation: sweep .7s ease; }
@keyframes sweep { to { left: 130%; } }
.ghost { transition: border-color .2s, transform .15s, background .2s; }
.ghost:hover { transform: translateY(-1px); background: var(--surface2); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 44px;
  animation: rise .9s .45s ease both; }
.counter { padding: 16px 10px; border-radius: 14px; background: rgba(11, 18, 14, .75); border: 1px solid var(--border); }
.counter b { display: block; font-size: 30px; color: var(--accent); font-variant-numeric: tabular-nums; }
.counter span { color: var(--muted); font-size: 12.5px; }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 1; width: 26px;
  height: 42px; border: 2px solid #2a4a38; border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--accent); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

.block { padding: 72px 20px; }
.block.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.wrap { max-width: 1120px; margin: 0 auto; }
.narrow2 { max-width: 760px; }
.block h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 8px; }
.block .lead { margin: 0 0 28px; font-size: 16px; }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.svc { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 16px;
  text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, opacity .7s ease; }
.svc::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 230, 118, .16), transparent 45%);
  transition: opacity .3s; }
.svc.in:hover { transform: translateY(-4px); border-color: #2a4a38; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.svc:hover::before { opacity: 1; }
.svc svg { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round;
  stroke-linecap: round; padding: 9px; border-radius: 12px; background: #0f2a1d; }
.svc h3 { margin: 6px 0 0; font-size: 19px; }
.svc p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.svc .more { color: var(--accent); font-weight: 600; font-size: 14px; transition: letter-spacing .2s; }
.svc:hover .more { letter-spacing: .4px; }
.steps3 { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps3 li { position: relative; padding: 22px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); }
.steps3 b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent); color: #04120a; font-size: 18px; }
.steps3 h3 { margin: 12px 0 4px; }
.steps3 p { margin: 0; color: var(--muted); font-size: 14px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; }
.ticks li { position: relative; padding: 7px 0 7px 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 16px; height: 16px; border-radius: 5px;
  border: 1px solid #1d5c3b; background: #0f2a1d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2300e676' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.mock { padding: 18px; border-radius: 18px; background: rgba(4, 10, 7, .92); border: 1px solid rgba(0, 230, 118, .3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.mock.in { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: none; } 50% { transform: translateY(-10px); } }
.mock-top { display: flex; align-items: center; gap: 12px; }
.mock-top .tag { background: var(--taxi); color: #111; font-weight: 800; padding: 8px 12px; border-radius: 8px; }
.mock-top div { flex: 1; display: flex; flex-direction: column; }
.mock-top small, .mock-turn small, .mock-sum span { color: var(--muted); font-size: 12.5px; }
.mock-top em { font-style: normal; font-weight: 700; font-size: 18px; }
.mock-turn { display: flex; gap: 14px; align-items: center; margin: 16px 0; padding: 12px; border-radius: 12px;
  background: rgba(47, 211, 255, .08); }
.mock-turn svg { width: 54px; height: 54px; fill: none; stroke: #2fd3ff; stroke-width: 10; stroke-linecap: round;
  stroke-linejoin: round; }
.mock-turn div { flex: 1; display: flex; flex-direction: column; }
.mock-turn b { font-size: 26px; }
.mock-turn i { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); margin-top: 6px;
  overflow: hidden; }
.mock-turn u { display: block; height: 100%; width: 50%; background: #2fd3ff; animation: fillbar 4s ease-in-out infinite; }
@keyframes fillbar { from { width: 15%; } to { width: 95%; } }
.mock-row span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.mock-row b { color: var(--taxi); font-size: 20px; }
.mock-sum { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.mock-sum b { color: var(--accent); font-size: 28px; }
.faq { border: 1px solid var(--border); border-radius: 12px; background: var(--bg); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 15px 44px 15px 18px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; color: var(--accent); font-size: 22px;
  line-height: 1; transition: transform .25s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 18px 16px; color: var(--muted); animation: rise .35s ease; }

/* ---------------------------------------------------------------- смены, рейтинг, статистика */
.shiftdays { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.shiftday { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  animation: rise .45s ease both; }
.shiftday h2 { margin-bottom: 10px; }
.shiftrow { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #121c16; }
.shiftrow:first-of-type { border-top: 0; }
.shiftrow .t { font: 600 14px Consolas, monospace; color: var(--accent); min-width: 104px; }
.shiftrow .j { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.shiftrow .j.taxi { color: var(--taxi); border-color: #5a4714; }
.shiftrow .j.courier { color: var(--courier); border-color: #5a3a14; }
.shiftrow .now { color: #04120a; background: var(--accent); border-radius: 6px; padding: 1px 6px; font-size: 11px; font-weight: 700; }
.bigstars { font-size: 28px; font-weight: 700; color: var(--taxi); }
.bigstars small { font-size: 14px; color: var(--muted); font-weight: 400; }
.reviews { list-style: none; padding: 0; margin: 10px 0 0; }
.reviews li { padding: 8px 0; border-top: 1px solid #121c16; font-size: 13.5px; }
.reviews li b { color: var(--taxi); letter-spacing: 1px; }
.shiftform { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr .9fr auto; gap: 6px; margin-top: 12px; }
.shiftform input, .shiftform select { padding: 8px; min-width: 0; }
.linkbtn { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; text-decoration: underline; }
.pagehead.slim { margin-bottom: 8px; align-items: center; }
.chartbox { margin: 10px 0 18px; }
.charttitle { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.chart svg { width: 100%; height: 170px; display: block; }
.chart .bar { transition: opacity .2s; }
.chart .bar:hover { opacity: .75; }
.chartlegend { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.chartlegend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; }
.chartlegend .dot:first-child { margin-left: 0; }
.dot.bus { background: #f5b301; } .dot.taxi { background: var(--taxi); } .dot.courier { background: var(--courier); }
.dot.acc { background: var(--accent); } .dot.jobs { background: #2fd3ff; }

/* появление при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.page, .layout { animation: pagein .35s ease; }
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------- вход и регистрация */
.authcard { max-width: 440px; margin: 10px auto; padding: 26px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.authtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border); margin-bottom: 20px; }
.authtab { border: 0; background: transparent; padding: 9px; border-radius: 7px; cursor: pointer; color: var(--muted);
  font-weight: 600; }
.authtab.active { background: var(--surface2); color: var(--accent); }
.authcard h1 { margin-bottom: 4px; }
.authcard .lead { margin-top: 0; }
.passwrap { position: relative; display: block; }
.passwrap input { padding-right: 86px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent;
  color: var(--muted); cursor: pointer; font-size: 12.5px; padding: 4px 8px; }
.eye:hover { color: var(--accent); }
.meter { height: 4px; border-radius: 2px; background: var(--border); margin: -6px 0 12px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .3s, background .3s; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg button { padding: 9px 6px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg);
  color: var(--muted); cursor: pointer; font-size: 13.5px; transition: all .2s; }
.seg button.on { border-color: var(--accent); color: var(--accent); background: #0f2a1d; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13.5px; margin: 4px 0 14px;
  cursor: pointer; }
.check input { width: auto; margin-top: 3px; accent-color: var(--accent); }
.okbox { margin-top: 12px; padding: 14px; border-radius: 10px; border: 1px solid #1d5c3b; background: #0f2a1d;
  color: var(--accent-hi); animation: rise .4s ease; }
.pending { padding: 12px 16px; border-radius: 10px; border: 1px solid #5a4714; background: #2a220d; color: var(--taxi);
  margin-bottom: 14px; }
.passcard { max-width: 460px; margin-bottom: 14px; animation: rise .3s ease; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); z-index: 3000; padding: 12px 18px;
  border-radius: 10px; background: var(--surface2); border: 1px solid #1d5c3b; color: var(--text); opacity: 0;
  pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.job, .route, .stat { animation: rise .45s ease both; }

/* «уменьшить движение» в системе: оставляем плавное появление, убираем бесконечные качания и мигания */
@media (prefers-reduced-motion: reduce) {
  .grad, .mock.in, .mock-turn u, .badge-live .dot, .scroll-hint span { animation: none !important; }
  #rain { opacity: .6; }
}

@media (max-width: 1000px) {
  .cards4 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}


@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; grid-template-rows: 55vh auto; }
  .panel { border-right: 0; border-bottom: 1px solid var(--border); padding: 16px; }
  .mapwrap { order: -1; min-height: 55vh; }
  .top { padding: 10px 16px; }
  .online { display: none; }
  .top { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .cols { grid-template-columns: 1fr; }
  .find { min-width: 0; width: 100%; }
  .counters { grid-template-columns: 1fr 1fr; }
  .cards4, .steps3 { grid-template-columns: 1fr; }
  .block { padding: 48px 16px; }
  .hero { min-height: auto; }
  .hero-in { padding: 40px 16px 70px; }
  .navbtn { padding: 7px 10px; }
  .authcard { padding: 20px 16px; }
  .shiftform { grid-template-columns: 1fr 1fr; }
  .shiftdays { grid-template-columns: 1fr; }
}
