:root {
  --bg: #eef1ea;
  --card: #ffffff;
  --ink: #13231b;
  --muted: #5f6e65;
  --line: #e5eae5;
  --accent: #0e6a4c;
  --accent-dark: #0a563d;
  --accent-soft: #e8f2ec;
  --danger: #b3261e;
  --field: #fbfcfa;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 15% -10%, #e2efe3 0%, rgba(226, 239, 227, 0) 60%),
    radial-gradient(700px 400px at 100% 100%, #e8eee9 0%, rgba(232, 238, 233, 0) 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.stage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

/* ── Устройство ─────────────────────────────────────────── */

.phone {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: min(844px, calc(100dvh - 48px));
  background: var(--card);
  border-radius: 36px;
  box-shadow:
    0 40px 80px -32px rgba(27, 54, 43, .35),
    0 0 0 1px rgba(20, 50, 38, .07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.demo-bar {
  flex: none;
  height: auto;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #edf4ee;
  border-bottom: 1px solid #e0e8e1;
  color: #405f4c;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  padding: 5px 10px;
}

.demo-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3f8f6c;
  flex: none;
}

.appbar {
  flex: none;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  margin-left: -8px;
}
.icon-btn:hover { background: #f1f4f1; }

.appbar-title {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.01em;
  margin-left: 4px;
}

.avatar {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

.main { flex: 1; min-height: 0; position: relative; }

.screen { position: absolute; inset: 0; display: none; flex-direction: column; }
.screen.active { display: flex; animation: fade .22s ease; }

@keyframes fade {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.content {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 20px 18px;
  scrollbar-width: thin;
  scrollbar-color: #d5dfd8 transparent;
}

.content::-webkit-scrollbar { width: 4px; }
.content::-webkit-scrollbar-thumb { background: #d5dfd8; border-radius: 4px; }

.footer {
  flex: none;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, #fff 72%, rgba(255, 255, 255, 0));
}

/* ── Типографика ────────────────────────────────────────── */

.eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

.title {
  margin: 0 0 6px;
  font-size: 27px;
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 700;
}

.title.center { text-align: center; margin-top: 10px; }

.subtitle {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.subtitle.center { text-align: center; }

.hint {
  margin: 14px 2px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.homefacts {
  margin-top: 14px;
  padding: 2px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfa;
}

.homefact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 1px solid #eef2ef;
}
.homefact:last-child { border-bottom: 0; }
.homefact b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-align: right;
}

.label {
  display: block;
  margin: 20px 0 8px;
  font-size: 12.5px;
  font-weight: 650;
  color: #56665c;
}

/* ── Автомобиль ─────────────────────────────────────────── */

.fuel-card {
  margin-top: 18px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  border: 1px solid #e0ece4;
  background: linear-gradient(135deg, #edf6f0 0%, #f7fbf8 100%);
}

.fuel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.fuel-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 9px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid #d8e8de;
  color: #2b6b4f;
}

.fuel-cap { font-size: 12px; color: var(--muted); }

.gauge {
  height: 10px;
  border-radius: 99px;
  background: #dbe9e1;
  overflow: hidden;
}
.gauge span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #1a8a62, #0e6a4c);
  transition: width .4s ease;
}

.fuel-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 11px;
  font-size: 12.5px;
  color: var(--muted);
}
.fuel-meta strong { font-size: 15px; color: var(--ink); font-weight: 700; }

.menu { margin-top: 24px; border-top: 1px solid var(--line); }

.menu-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.menu-row svg { color: #84958b; flex: none; }
.menu-row:hover { color: var(--accent); }

.menu-row .count {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  min-width: 18px;
  text-align: right;
}

.menu-row .soon {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7d8b83;
  background: #f0f3f0;
  border-radius: 99px;
  padding: 3px 8px;
}

.menu-arrow {
  margin-left: auto;
  color: #9aa79f;
  font-size: 18px;
  line-height: 1;
}

/* ── Кнопки ─────────────────────────────────────────────── */

.btn {
  appearance: none;
  border: 0;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 14px;
  font: inherit;
  font-size: 15.5px;
  font-weight: 650;
  cursor: pointer;
  transition: transform .06s ease, background .16s ease, box-shadow .16s ease;
}
.btn:active { transform: scale(.988); }

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(14, 106, 76, .75);
}
.btn.primary:hover { background: var(--accent-dark); }
.btn.primary:disabled {
  background: #e1e7e3;
  color: #98a8a0;
  box-shadow: none;
  cursor: not-allowed;
}

.btn.secondary {
  background: #f2f6f3;
  color: #1c3a2c;
  border: 1px solid #e2eae4;
}
.btn.secondary:hover { background: #eaf1ec; }

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid #d9e6df;
}
.btn.ghost:hover { background: #f3f8f5; }
.btn.ghost.danger { color: var(--danger); border-color: #efd9d6; }
.btn.ghost.danger:hover { background: #fdf5f4; }

.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.btn-row .btn { min-height: 46px; font-size: 14px; border-radius: 12px; }

.link-btn {
  display: block;
  margin: 14px auto 0;
  padding: 8px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ── Поля ───────────────────────────────────────────────── */

.input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input::placeholder { color: #a3b0a8; }
.input:focus {
  border-color: #8cbfa9;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 106, 76, .1);
}
.input.invalid {
  border-color: #dfa3a0;
  background: #fffafa;
  box-shadow: none;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.chip {
  border: 1px solid #dfe7e1;
  background: #fff;
  color: #486052;
  font: inherit;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 99px;
  cursor: pointer;
}
.chip:hover { border-color: #b9d2c4; }
.chip[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: #b7d9c8;
  color: var(--accent);
  font-weight: 650;
}

.field-hint {
  margin: 8px 2px 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.field-error {
  margin: 8px 2px 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--danger);
  line-height: 1.4;
}

/* ── Варианты ───────────────────────────────────────────── */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }

.opt-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 76px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--field);
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
  height: 100%;
}
.opt-inner:hover { border-color: #c9d9d0; }
.opt input:checked + .opt-inner {
  border-color: var(--accent);
  background: #f1f8f4;
  box-shadow: inset 0 0 0 1px var(--accent);
}
.opt input:focus-visible + .opt-inner {
  box-shadow: 0 0 0 3px rgba(14, 106, 76, .16);
}

.opt-main { font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; }
.opt-sub { font-size: 12.5px; color: var(--muted); line-height: 1.3; }

.grid-3 .opt-inner { min-height: 82px; padding: 10px 9px; }
.grid-3 .opt-main { font-size: 13.5px; }
.grid-3 .opt-sub { font-size: 12px; }

.rate {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f6f8f5;
  font-size: 13px;
  color: #52645a;
}
.rate-dot { width: 6px; height: 6px; border-radius: 50%; background: #2c8a63; flex: none; }
.rate .tag {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #6d7d72;
  background: #fff;
  border: 1px solid #e2e7e2;
  border-radius: 99px;
  padding: 3px 7px;
}

.sum-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 2px 10px;
  font-size: 13px;
  color: var(--muted);
}
.sum-row b { font-size: 22px; letter-spacing: -.02em; color: var(--ink); font-weight: 700; }

/* ── Сводка ─────────────────────────────────────────────── */

.summary {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2px 16px;
  background: #fff;
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid #eef2ef;
  font-size: 14px;
}
.summary-row:last-child { border-bottom: 0; }
.summary-row .k { color: var(--muted); flex: none; }
.summary-row .v { font-weight: 600; text-align: right; line-height: 1.4; }

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 12px 2px 16px;
  padding: 15px 16px;
  border-radius: 16px;
  background: #f3f8f5;
}
.total-row span { font-size: 13px; color: #52645a; }
.total-row b { font-size: 24px; letter-spacing: -.02em; }

.demo-note {
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid #efe2c7;
  border-radius: 12px;
  background: #fffaf0;
  color: #6f5a20;
  font-size: 12px;
  line-height: 1.5;
}
.demo-note strong { font-weight: 700; }

/* ── Результат ──────────────────────────────────────────── */

.success-icon {
  width: 62px;
  height: 62px;
  margin: 16px auto 0;
  border-radius: 50%;
  background: #e7f3ec;
  color: var(--accent);
  display: grid;
  place-items: center;
}

.order-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px 10px;
  background: #fff;
}

.order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-label {
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.order-number {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.status {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .03em;
  padding: 4px 9px;
  border-radius: 99px;
  background: #e8f4ee;
  color: #0e6a4c;
  white-space: nowrap;
  margin-top: 2px;
}
.status.cancelled { background: #f2f4f2; color: #7c8981; }

.order-rows { margin-top: 8px; }

.order-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-size: 13.5px;
  border-bottom: 1px solid #f0f3f0;
}
.order-row:last-child { border-bottom: 0; }
.order-row .k { color: var(--muted); }
.order-row .v { font-weight: 550; text-align: right; }

.order-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--line);
}
.order-total span { font-size: 12.5px; color: var(--muted); }
.order-total b { font-size: 22px; letter-spacing: -.02em; }

.track-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  padding: 12px 0 4px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}
.track-link:hover { color: var(--accent-dark); }
.track-link-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2c966d;
  box-shadow: 0 0 0 3px rgba(44, 150, 109, .12);
  flex: none;
}
.track-link-arrow {
  margin-left: auto;
  font-size: 18px;
  line-height: 1;
  color: #8f9e95;
}

/* ── Заказы ─────────────────────────────────────────────── */

.order-card {
  padding: 15px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-card-title { font-size: 14.5px; font-weight: 700; }

.order-meta {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.55;
  color: #5b6b61;
}
.order-meta strong { color: var(--ink); font-weight: 600; }

.order-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #f0f3f0;
}

.mini-btn {
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 0;
  cursor: pointer;
}
.mini-btn.danger { color: var(--danger); margin-left: auto; }
.mini-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 46px 18px 20px;
}

.empty-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #f1f5f1;
  color: #82968a;
  display: grid;
  place-items: center;
}

.empty h2 { margin: 14px 0 4px; font-size: 16.5px; font-weight: 650; }
.empty p { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 270px; }
.empty .btn { width: auto; padding: 11px 20px; min-height: 44px; font-size: 14px; }

/* ── Отслеживание ───────────────────────────────────────── */

.map-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #e8eee9;
  z-index: 0;
}

#map {
  position: absolute;
  inset: 0;
  background: #e8eee9;
}

.leaflet-container {
  font-family: inherit;
  background: #e8eee9;
}

.leaflet-control-attribution {
  font-size: 9px !important;
  background: rgba(255, 255, 255, .88) !important;
  color: #46564b !important;
}

.map-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 500;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #dce6df;
  color: #3e6b55;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  box-shadow: 0 2px 8px rgba(20, 50, 38, .1);
}

.track-sheet {
  position: relative;
  z-index: 2;
  flex: none;
  margin-top: -18px;
  padding: 18px 20px calc(16px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -12px 30px rgba(21, 50, 38, .09);
}

.track-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.track-title {
  margin: 3px 0 0;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 700;
}

.track-eta {
  display: flex;
  align-items: baseline;
  gap: 3px;
  white-space: nowrap;
  margin-top: 2px;
}
.track-eta b {
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 700;
}
.track-eta span { font-size: 11px; color: var(--muted); }

.track-address {
  margin: 9px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.track-progress {
  height: 5px;
  border-radius: 99px;
  background: #e4ebe7;
  overflow: hidden;
  margin-top: 12px;
}
.track-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #1d8b62, #0e6a4c);
  transition: width .3s linear;
}

.track-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 9px 0 13px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

.live-dot {
  width: 6px;
  height: 6px;
  flex: none;
  margin-top: 4px;
  border-radius: 50%;
  background: #2d9a6b;
  box-shadow: 0 0 0 3px rgba(45, 154, 107, .12);
}

.track-sheet .btn-row { margin-top: 0; }
.track-sheet .btn { min-height: 44px; font-size: 13px; }

.track-credit {
  margin: 7px 0 -2px;
  text-align: center;
  font-size: 10px;
  line-height: 1.4;
  color: #6b7a71;
}

.driver-marker {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  color: #fff;
  box-shadow: 0 3px 12px rgba(11, 67, 47, .4);
}

.dest-marker {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  color: var(--accent);
  box-shadow: 0 2px 10px rgba(21, 50, 38, .2);
}

.leaflet-tooltip.map-label {
  padding: 3px 6px;
  border: 1px solid #dbe7df;
  border-radius: 6px;
  background: rgba(255, 255, 255, .96);
  color: #385246;
  font-size: 10px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(18, 47, 36, .12);
}
.leaflet-tooltip.map-label::before { display: none; }

/* ── Приглашение ─────────────────────────────────────────── */

.invite-card {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.invite-code-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.invite-code-row strong {
  font-size: 19px;
  letter-spacing: .06em;
  color: var(--accent);
  font-weight: 750;
}

.invite-input {
  margin-top: 9px;
  height: 42px;
  font-size: 11.5px;
  color: var(--muted);
  background: #f7f9f8;
}

.invite-card .btn { margin-top: 10px; min-height: 46px; font-size: 14px; }

.invite-status {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--accent);
}

.invite-steps {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  font-size: 13px;
  color: #53665a;
}
.invite-steps div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.invite-steps span {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf3ed;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Автопарки ──────────────────────────────────────────── */

.soon-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: #f5f8f5;
  border: 1px solid #e7ede7;
}

.soon-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #e7efe9;
  color: #4e6a59;
  padding: 4px 8px;
  border-radius: 99px;
  margin-bottom: 9px;
}

.soon-card p { margin: 0; font-size: 12.5px; line-height: 1.5; color: #5c6e61; }

.fleet-success {
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 12px;
  background: #eef7f1;
  border: 1px solid #d5e9dd;
  color: #2c5c44;
  font-size: 12.5px;
  line-height: 1.5;
}

/* ── Журнал событий (только ?debug=1) ───────────────────── */

.debug {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  width: 290px;
  max-height: 42vh;
  overflow-y: auto;
  padding: 12px 14px;
  border-radius: 12px;
  background: #1c2721;
  color: #d8e3dc;
  font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .3);
}
.debug h3 {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8fa89a;
  font-weight: 600;
}
.debug div { padding: 2px 0; border-bottom: 1px solid #2b3831; }
.debug div:last-child { border-bottom: 0; }
.debug span { color: #7f94a6; }

/* ── Адаптив ────────────────────────────────────────────── */

@media (max-width: 720px) {
  .stage { padding: 14px; }
  .phone { height: calc(100dvh - 28px); }
}

@media (max-width: 480px) {
  .stage { display: block; padding: 0; }
  .phone {
    max-width: none;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
  .debug { display: none; }
  .title { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
