:root {
  --ink: #0e1014; --ink-2: #1b1f27; --green: #3db51f; --green-d: #2c8c14; --paper: #f2f1ed;
  --card: #fff; --text: #1b1f2a; --muted: #5d6270; --line: #dedbd2; --bad: #c0392b; --amber: #f4b400;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--text); font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; min-height: 100vh; }
[hidden] { display: none !important; }
h1 { font-size: 27px; margin: 4px 0 8px; letter-spacing: -.02em; line-height: 1.15; }
.muted { color: var(--muted); font-size: 16px; }
.small { font-size: 14px; }
.center { text-align: center; }
.gap { margin: 26px 0 0; }

.staff { background: var(--amber); color: #2b2100; font-size: 14px; font-weight: 700; padding: 8px 16px; text-align: center; }
.staff a { color: inherit; }
.demo { background: #2a2f3a; color: #d9dce4; font-size: 13px; padding: 6px 16px; text-align: center; }

.top { position: sticky; top: 0; z-index: 5; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
.top__brand { font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.top__brand img { width: 36px; height: 36px; border-radius: 10px; background: #fff; object-fit: contain; }
.top__brand small { font-weight: 500; color: #9ea2ad; font-size: 14px; }
.top__acc { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #3a404d; background: var(--ink-2); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }

.app { max-width: 520px; margin: 0 auto; padding: 18px 16px calc(40px + env(safe-area-inset-bottom)); }
.step { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-d); }
.sub { font-size: 16px; margin: 24px 0 8px; color: var(--muted); }

.hero { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.08); margin: 4px 0 20px; }
.hero img { display: block; width: 100%; height: auto; }
.h-big { font-size: 32px; margin: 0 0 6px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 8px; }

.btn { display: block; width: 100%; margin: 12px 0 0; padding: 15px; min-height: 54px; font: inherit; font-weight: 800; color: #fff; background: var(--green); border: 0; border-radius: 14px; cursor: pointer; text-align: center; }
.btn:active { background: var(--green-d); }
.btn:disabled { background: #b9c7b3; cursor: default; }
.btn--xl { min-height: 66px; font-size: 19px; }
.btn--ghost { background: transparent; color: var(--text); border: 2px solid var(--line); font-weight: 700; }
.btn--ghost:active { background: #e9e7e1; }
.btn--text { background: transparent; color: var(--muted); font-weight: 600; min-height: 44px; padding: 10px; }
.btn--text:active { background: transparent; color: var(--text); }
.btn--bad { color: var(--bad); }
.link { background: none; border: 0; color: #1a56c4; font: inherit; font-weight: 600; text-decoration: underline; padding: 0; cursor: pointer; }
.link--block { display: block; margin: 14px auto 0; font-size: 15px; }

.call { display: flex; align-items: center; gap: 14px; margin: 12px 0 0; padding: 14px 16px; background: var(--ink); color: #fff; border-radius: 16px; text-decoration: none; }
.call__ico { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--green); display: grid; place-items: center; font-size: 24px; }
.call b { display: block; font-size: 18px; }
.call small { color: #b9bdc8; font-size: 15px; }

.field { display: block; margin: 14px 0 0; min-width: 0; }
.field > span { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field > span i { font-weight: 500; color: var(--muted); font-style: normal; }
.field input { width: 100%; font: inherit; font-size: 18px; padding: 13px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); }
.field input:focus { outline: none; border-color: var(--green); }
.field .code { font-size: 30px; letter-spacing: .4em; text-align: center; font-weight: 800; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; font-size: 15px; }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--green); }
.check--box { background: #fff7e0; border: 2px solid #f1d58a; border-radius: 14px; padding: 12px 14px; }
.msg { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.msg--err { background: #fdecea; color: #8a2318; }
.hint { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #eef1f7; color: #2d3a55; font-size: 14px; }
.note { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff7e0; font-size: 15px; }

.greet { margin: 2px 0 16px; }
.greet__hi { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.greet__q { margin: 2px 0 0; font-size: 19px; color: var(--muted); font-weight: 600; }
.taxi { display: flex; align-items: center; gap: 16px; width: 100%; padding: 22px 20px; border: 0; border-radius: 22px; background: var(--green); color: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 10px 26px rgba(61,181,31,.35); }
.taxi:active { background: var(--green-d); transform: scale(.99); }
.taxi__ico { font-size: 44px; line-height: 1; }
.taxi b { display: block; font-size: 28px; letter-spacing: -.02em; }
.taxi small { font-size: 15px; opacity: .92; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tile { background: #fff; border: 0; border-radius: 16px; padding: 14px; text-align: left; font: inherit; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.tile span { font-size: 24px; }
.tile small { font-weight: 500; color: var(--muted); font-size: 13px; }

.card { background: var(--card); border-radius: 16px; padding: 4px 16px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.04); margin-top: 14px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row span small { display: block; color: var(--muted); font-size: 13px; }
.row b { text-align: right; }

.pays, .list { list-style: none; margin: 14px 0 0; padding: 0; background: #fff; border-radius: 14px; }
.pays li, .list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; border-top: 1px solid var(--line); font-size: 15px; }
.pays li:first-child, .list li:first-child { border-top: 0; }
.pays label { display: flex; align-items: center; gap: 10px; font-weight: 700; flex: 1; cursor: pointer; }
.pays input { width: 20px; height: 20px; accent-color: var(--green); }
.pays small, .list small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.list b { white-space: nowrap; }
.addpay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.addpay__b { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 14px 10px; font: inherit; font-size: 15px; cursor: pointer; }
.addpay__b:active { border-color: var(--green); }

.loc { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 16px; padding: 12px; margin-top: 6px; }
.loc__map { position: relative; width: 84px; height: 84px; flex: none; border-radius: 12px; overflow: hidden;
  background: linear-gradient(90deg, transparent 46%, #fff 46% 54%, transparent 54%), linear-gradient(0deg, transparent 30%, #fff 30% 38%, transparent 38%), linear-gradient(35deg, transparent 60%, #fff 60% 66%, transparent 66%), #dfe8d7; }
.loc__pin { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); z-index: 1; }
.loc__pulse { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: rgba(26,115,232,.25); animation: pulse 1.8s ease-out infinite; }
.loc--off .loc__pin { background: #9aa0aa; } .loc--off .loc__pulse { display: none; }
.loc__txt b { display: block; font-size: 16px; }
.loc__txt small { color: var(--muted); font-size: 14px; }
@keyframes pulse { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

.radar { position: relative; width: 190px; height: 190px; margin: 20px auto 18px; }
.radar span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--green); opacity: 0; animation: ring 2.4s ease-out infinite; }
.radar span:nth-child(2) { animation-delay: .8s; } .radar span:nth-child(3) { animation-delay: 1.6s; }
.radar b { position: absolute; inset: 55px; border-radius: 50%; background: var(--green); display: grid; place-items: center; font-size: 40px; box-shadow: 0 8px 24px rgba(61,181,31,.4); }
@keyframes ring { from { transform: scale(.35); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.checks { list-style: none; padding: 0; margin: 10px 0 6px; background: #fff; border-radius: 14px; }
.checks li { padding: 12px 14px 12px 44px; position: relative; border-top: 1px solid var(--line); font-size: 15px; }
.checks li:first-child { border-top: 0; }
.checks li::before { position: absolute; left: 14px; top: 12px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; }
.checks li.ok::before { content: "✓"; background: var(--green); }
.checks li.run::before { content: ""; border: 3px solid #cfd3da; border-top-color: var(--green); width: 14px; height: 14px; animation: spin .8s linear infinite; }
.checks b { float: right; }
@keyframes spin { to { transform: rotate(360deg); } }

.eta { background: var(--green); color: #fff; border-radius: 22px; padding: 22px 18px; text-align: center; }
.eta__label, .eta__sub { margin: 0; font-weight: 700; font-size: 18px; }
.eta__big { margin: 0; font-size: 76px; font-weight: 900; letter-spacing: -.04em; line-height: 1.05; }
.eta__big small { font-size: 28px; letter-spacing: 0; }
.driver { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.driver__av { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; flex: none; }
.driver b { display: block; font-size: 19px; }
.driver small { color: var(--muted); font-size: 15px; }

.sheet, .phone { position: fixed; inset: 0; z-index: 20; background: rgba(14,16,20,.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet__in { width: 100%; max-width: 520px; background: var(--paper); border-radius: 22px 22px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
.sheet__in h2 { margin: 0 0 8px; font-size: 22px; }
.sheet__in p { margin: 6px 0 0; color: var(--muted); }
.phone { align-items: center; padding: 16px; }
.phone__in { width: 100%; max-width: 380px; background: var(--ink); border-radius: 30px; padding: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.phone__cap { color: #9ea2ad; text-align: center; font-size: 13px; margin: 0 0 10px; }
.push { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.92); border-radius: 16px; padding: 10px 12px; animation: drop .4s ease-out; }
.push img { border-radius: 7px; background: #fff; }
.push b { display: block; font-size: 14px; } .push small { font-size: 13px; color: #444; }
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } }
.dv { background: var(--paper); border-radius: 18px; padding: 14px 16px 16px; margin-top: 12px; }
.dv__k { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-d); }
.dv__addr { margin: 2px 0 0; font-size: 21px; font-weight: 800; }
.dv__note { margin: 2px 0 6px; color: var(--muted); font-size: 15px; }
.row > span { flex: none; max-width: 55%; } .row .link { text-align: right; overflow-wrap: anywhere; }
