/* X-TRANS GLOBAL — route picker landing (concept)
   Brand: #ff4d29 accent on graphite, wide display type, square corners. */

/* Metric-matched fallbacks keep line breaks stable while web fonts load (widths measured against Unbounded / Onest) */
@font-face {
  font-family: "Unbounded Fallback";
  src: local("Arial Black"), local("ArialMT-Black");
  size-adjust: 113.9%;
}
@font-face {
  font-family: "Unbounded Fallback B";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial");
  font-weight: 700;
  size-adjust: 130.9%;
}
@font-face {
  font-family: "Onest Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 104.4%;
}

:root {
  --bg: #1c1d20;
  --bg-deep: #161719;
  --bg-black: #121214;
  --surface: #202125;
  --surface-2: #26272b;
  --surface-3: #303136;
  --line: #2c2d32;
  --line-2: #3b3c42;
  --text: #ffffff;
  --text-2: #c8cace;
  --muted: #9c9ea4;
  --accent: #ff4d29;
  --accent-hover: #ff6a4a;
  --accent-soft: rgba(255, 77, 41, 0.12);
  --on-accent: #141414;
  --danger: #ff8a78;
  --r: 2px;
  --r-lg: 4px;
  --font-display: "Unbounded", "Unbounded Fallback", "Unbounded Fallback B", sans-serif;
  --font: "Onest", "Onest Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1280px;
  --header-h: 64px;
  color-scheme: dark;
}
@media (min-width: 1024px) {
  :root { --header-h: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg-deep);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.i-fill { fill: currentColor; stroke: none; }
.accent { color: var(--accent); }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 16px; font-weight: 600; text-decoration: none; border-radius: var(--r);
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(22, 23, 25, 0.96);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: block; flex: none; border-radius: var(--r); }
.brand img { height: 28px; width: auto; }
@media (min-width: 1024px) { .brand img { height: 32px; } }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 12px;
  font-size: 15px; font-weight: 500; color: var(--text-2);
  text-decoration: none; border-radius: var(--r);
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--text); }
.header-phone {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.header-phone .i { width: 18px; height: 18px; color: var(--accent); }
.header-phone:hover { border-color: var(--accent); }
.nav-toggle {
  display: none; place-items: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--r);
}
.mobile-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #17181a; border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.mobile-nav ul { list-style: none; margin: 0 auto; padding-top: 8px; padding-bottom: 16px; }
.mobile-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font: 600 17px/1.2 var(--font-display); text-decoration: none; text-transform: uppercase;
}
.mobile-nav li:last-child a { border-bottom: 0; }
.mobile-nav .mobile-phone { font-family: var(--font); text-transform: none; color: var(--text); }
.mobile-nav .mobile-phone .i { color: var(--accent); }

@media (max-width: 1023.98px) {
  .main-nav { display: none; }
  .nav-toggle { display: grid; }
  .header-phone { margin-left: auto; }
}
@media (max-width: 559.98px) {
  .header-inner { gap: 10px; }
  .header-phone { width: 44px; padding: 0; justify-content: center; }
  .header-phone span { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(24px, 3.6vh, 40px);
  padding-bottom: 28px;
  background:
    radial-gradient(1200px 600px at 78% 30%, rgba(255, 77, 41, 0.07), transparent 60%),
    var(--bg-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.hero-map {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -2; display: block;
}
@media (max-width: 959.98px) { .hero-map { opacity: 0.6; } }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22, 23, 25, 0.1) 0%, rgba(22, 23, 25, 0.82) 34%, var(--bg-deep) 62%);
}
@media (min-width: 960px) {
  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(22, 23, 25, 0.9) 0%, rgba(22, 23, 25, 0.6) 34%, rgba(22, 23, 25, 0) 54%),
      linear-gradient(180deg, rgba(22, 23, 25, 0) 72%, var(--bg-deep) 100%);
  }
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.hero-head { position: relative; z-index: 3; min-width: 0; }
.hero-head .hero-lead { margin-bottom: 4px; }
@media (min-width: 600px) and (max-width: 959.98px) {
  .hero-main, .hero-head .hero-lead, .result { max-width: 640px; }
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, clamp(480px, 45vw, 640px)) minmax(0, 1fr);
    grid-template-areas: "head head" "main stage";
    column-gap: clamp(40px, 5vw, 72px);
    row-gap: 24px;
  }
  .hero-head { grid-area: head; }
  .hero-main { grid-area: main; }
  .hero-stage, .result { grid-area: stage; }
}
.hero-main { position: relative; z-index: 3; min-width: 0; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font: 600 12px/1.2 var(--font); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-line { width: 28px; height: 2px; background: var(--accent); flex: none; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 16px;
  max-width: 17.5em;
  text-wrap: balance;
}
@media (max-width: 599.98px) {
  .hero-title { font-size: clamp(30px, 8vw, 40px); }
}
.hero-lead {
  margin: 0 0 24px;
  max-width: 34em;
  font-size: clamp(15.5px, 1.25vw, 18px);
  line-height: 1.5;
  color: var(--text-2);
}

/* ---------- Picker ---------- */
.picker {
  position: relative;
  display: grid; gap: 12px;
  padding: 14px;
  background: rgba(31, 32, 36, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
@media (min-width: 600px) { .picker { padding: 18px; gap: 14px; } }

.modes {
  margin: 0; min-inline-size: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  padding: 4px;
  background: var(--bg-black);
  border: 1px solid var(--line); border-radius: var(--r);
}
.mode { position: relative; display: block; min-width: 0; }
.mode input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.mode input:disabled { cursor: not-allowed; }
.mode-face {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 6px;
  font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap;
  border-radius: var(--r);
  transition: background 0.15s, color 0.15s;
  pointer-events: none;
}
.mode-face .i { width: 18px; height: 18px; }
.mode:hover input:not(:checked):not(:disabled) + .mode-face { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.mode input:checked + .mode-face {
  background: var(--surface-3); color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.mode input:checked + .mode-face .i { color: var(--accent); }
.mode input:focus-visible + .mode-face { outline: 2px solid var(--accent); outline-offset: 1px; }
.mode input:disabled + .mode-face { opacity: 0.38; }
@media (max-width: 479.98px) {
  .mode-face { flex-direction: column; gap: 4px; height: 54px; font-size: 12.5px; }
}
.mode-hint { margin: -4px 2px 0; font-size: 13.5px; color: var(--muted); }

.route-row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px;
}
.field { position: relative; min-width: 0; }
.field-box {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 10px 0 14px;
  background: var(--bg-black);
  border: 1px solid var(--line-2); border-radius: var(--r);
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: text;
}
.field[data-key="from"] .field-box { padding-right: 28px; }
.field[data-key="to"] .field-box { padding-left: 30px; }
.field-box:hover { border-color: #4b4c53; }
.field:focus-within .field-box { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 77, 41, 0.2); }
.field.is-invalid .field-box { border-color: var(--danger); }
.field-icon { width: 20px; height: 20px; color: var(--muted); transition: color 0.15s; }
.field.has-value .field-icon { color: var(--accent); }
.field-text { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.field-label {
  display: block; margin-bottom: 5px;
  font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); cursor: text;
}
.field-input {
  width: 100%; min-width: 0; margin: 0; padding: 0;
  background: transparent; border: 0; outline: 0; border-radius: 0;
  font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--text);
  text-overflow: ellipsis; -webkit-appearance: none; appearance: none;
}
.field-input::placeholder { color: #85878d; opacity: 1; }
.field-clear {
  flex: none; display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0;
  background: transparent; border: 0; border-radius: var(--r); color: var(--muted);
}
.field-clear .i { width: 16px; height: 16px; }
.field-clear:hover { color: var(--text); background: var(--surface-3); }
.field-error { margin: 6px 2px 0; font-size: 13.5px; line-height: 1.35; color: var(--danger); }
.field-error:empty { display: none; }

.swap {
  position: absolute; left: 50%; top: 32px; z-index: 4;
  display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  transform: translate(-50%, -50%);
  background: var(--surface-3); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(31, 32, 36, 0.95);
  transition: border-color 0.15s, color 0.15s;
}
.swap .i { width: 18px; height: 18px; transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.2, 1); }
.swap:hover { border-color: var(--accent); color: var(--accent); }
.swap.is-turned .i { transform: rotate(180deg); }
.route-row:has(.field.is-open) .swap { opacity: 0; pointer-events: none; }

@media (max-width: 599.98px) {
  .route-row { grid-template-columns: minmax(0, 1fr); }
  .field[data-key="from"] .field-box { padding-right: 10px; }
  .field[data-key="to"] .field-box { padding-left: 14px; }
  .swap { left: auto; right: 8px; top: 68px; transform: translateY(-50%); width: 36px; height: 36px; }
  .swap .i { rotate: 90deg; }
}

/* Listbox */
.listbox {
  position: absolute; left: 0; top: 70px; z-index: 40;
  width: max(100%, 340px); max-width: calc(100vw - 2 * var(--gutter));
  max-height: min(360px, 52vh); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px 0;
  background: #1e1f23;
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line-2);
  scrollbar-width: thin; scrollbar-color: #45464c transparent;
}
.listbox--end { left: auto; right: 0; }
@media (max-width: 599.98px) {
  .listbox, .listbox--end { left: 0; right: 0; width: auto; max-width: none; }
}
.lb-group + .lb-group { margin-top: 4px; }
.lb-group-label {
  position: sticky; top: -6px; z-index: 1;
  margin: 0; padding: 10px 14px 6px;
  background: #1e1f23;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.lb-option {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 8px 14px;
  font-size: 15.5px; color: var(--text);
  cursor: pointer; user-select: none;
}
.lb-option .i { width: 16px; height: 16px; color: var(--muted); }
.lb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-sub { margin-left: auto; padding-left: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.lb-option:hover { background: rgba(255, 255, 255, 0.05); }
.lb-option[aria-selected="true"] { background: var(--surface-3); box-shadow: inset 3px 0 0 var(--accent); }
.lb-option[aria-selected="true"] .i { color: var(--accent); }
.lb-option mark { background: none; color: #ff7a5c; font-weight: 700; }
.lb-option.is-custom .lb-name { white-space: normal; }
.lb-empty { margin: 0; padding: 8px 14px 4px; font-size: 13.5px; color: var(--muted); }

/* Cargo */
.cargo-toggle {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 2px; background: none; border: 0; border-radius: var(--r);
  font-size: 14.5px; font-weight: 500; color: var(--text-2);
}
.cargo-toggle:hover { color: var(--text); }
.cargo-toggle .i { width: 16px; height: 16px; color: var(--accent); transition: transform 0.2s; }
.cargo-toggle[aria-expanded="true"] .i { transform: rotate(45deg); }
.cargo-opt { color: var(--muted); font-weight: 400; }
.cargo-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px;
  margin-top: 8px;
}
@media (max-width: 479.98px) { .cargo-panel { grid-template-columns: minmax(0, 1fr); } }
.cfield { min-width: 0; }
.cfield > label {
  display: block; margin-bottom: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.select-wrap { position: relative; }
.select-wrap select {
  width: 100%; height: 48px; padding: 0 40px 0 14px;
  background: var(--bg-black); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r);
  font-size: 15px; font-weight: 500;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.select-wrap select:focus-visible { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 77, 41, 0.2); }
.select-wrap option { background: #1e1f23; color: var(--text); }
.select-wrap .i { position: absolute; right: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.weight {
  display: flex; height: 48px;
  background: var(--bg-black); border: 1px solid var(--line-2); border-radius: var(--r);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.weight:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 77, 41, 0.2); }
.weight input {
  flex: 1; min-width: 0; padding: 0 14px;
  background: transparent; border: 0; outline: 0;
  font-size: 15px; font-weight: 500; color: var(--text);
}
.weight input::placeholder { color: #85878d; opacity: 1; }
.unit { display: flex; gap: 2px; padding: 4px; }
.unit label { position: relative; display: block; }
.unit input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.unit span {
  display: grid; place-items: center; height: 100%; min-width: 40px; padding: 0 8px;
  font-size: 13.5px; font-weight: 600; color: var(--muted); border-radius: var(--r);
  pointer-events: none;
}
.unit input:checked + span { background: var(--surface-3); color: var(--text); }
.unit input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

/* CTA */
.cta {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 60px; padding: 0 20px;
  background: var(--accent); color: var(--on-accent);
  border: 0; border-radius: var(--r);
  font: 600 15px/1 var(--font-display); letter-spacing: 0.03em; text-transform: uppercase;
  transition: background 0.15s, transform 0.1s;
}
.cta .i { width: 20px; height: 20px; stroke-width: 2.2; transition: transform 0.2s; }
.cta:hover { background: var(--accent-hover); }
.cta:hover .i { transform: translateX(4px); }
.cta:active { transform: translateY(1px); }
.cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cta span { white-space: nowrap; }
@media (max-width: 399.98px) { .cta { font-size: 13.5px; letter-spacing: 0.02em; gap: 10px; } }
.cta.is-ready { animation: ready 1.4s ease-out 1; }
.picker:has(.field.is-open) .cta { filter: saturate(0.6) brightness(0.7); }
@keyframes ready {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 41, 0.55); }
  100% { box-shadow: 0 0 0 18px rgba(255, 77, 41, 0); }
}

/* Try chips */
.try { margin-top: 16px; min-width: 0; }
.try-label {
  display: block; margin: 0 0 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.try-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; min-width: 0; }
.chip {
  height: 36px; padding: 0 10px;
  background: rgba(18, 18, 20, 0.72);
  border: 1px solid var(--line-2); border-radius: var(--r);
  font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--accent); color: var(--text); }
@media (max-width: 767.98px) {
  .try { margin-right: calc(-1 * var(--gutter)); }
  .try-list {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    padding: 3px var(--gutter) 3px 3px; margin: -3px 0 -3px -3px;
    -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
    mask-image: linear-gradient(90deg, #000 80%, transparent);
  }
  .try-list::-webkit-scrollbar { display: none; }
}

/* Stage (desktop map area) */
.hero-stage { position: relative; min-height: 120px; pointer-events: none; }
.stage-hint {
  position: absolute; left: 0; bottom: 4px; margin: 0;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  font-size: 13.5px; color: var(--text-2);
  background: rgba(22, 23, 25, 0.78); border: 1px solid var(--line-2); border-radius: var(--r);
  transition: opacity 0.3s;
}
.stage-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 77, 41, 0.2); }
.hero-stage:not(.is-demo) .stage-hint { opacity: 0; }
@media (max-width: 959.98px) { .hero-stage { display: none; } }

/* Result */
.result {
  position: relative; z-index: 4;
  min-width: 0;
  background: rgba(31, 32, 36, 0.95);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid var(--accent);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  scroll-margin-top: calc(var(--header-h) + 12px);
  overflow: hidden;
}
.result:not([hidden]) { animation: result-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes result-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.result:focus { outline: 0; }
.result:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 960px) {
  .result { align-self: end; justify-self: end; width: min(460px, 100%); }
}
.result { --rmap-h: 170px; }
.result-map { display: block; width: 100%; height: var(--rmap-h); background: var(--bg-black); border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .result { --rmap-h: 140px; } }
.result-body { padding: 20px; container-type: inline-size; }
.result-eyebrow {
  margin: 0 0 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.result-route {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  margin: 0 36px 14px 0;
  font: 600 21px/1.25 var(--font-display); letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.result-route .i { width: 20px; height: 20px; color: var(--accent); stroke-width: 2.2; }
.result-meta { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; }
.result-meta li {
  padding: 5px 9px;
  font-size: 13px; color: var(--text-2);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); border-radius: var(--r);
}
.result-meta b { color: var(--text); font-weight: 600; }
.result-note { margin: 0 0 16px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.result-facts { display: grid; gap: 7px; list-style: none; margin: 0 0 12px; padding: 0; }
.result-facts li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; color: #e4e5e8; }
.result-facts li::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: 7px;
  background: var(--accent); transform: rotate(45deg);
}
/* Callback (lead capture) */
.callback { margin: 0 0 16px; }
.callback-label {
  display: block; margin-bottom: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.callback-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.callback-input {
  width: 100%; min-width: 0; height: 52px; margin: 0; padding: 0 14px;
  background: var(--bg-black); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r);
  font-size: 16px; font-weight: 500;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.callback-input::placeholder { color: #85878d; opacity: 1; }
.callback-input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 77, 41, 0.2); }
.callback.is-invalid .callback-input { border-color: var(--danger); }
.callback-btn { min-height: 52px; padding-inline: 18px; white-space: nowrap; }
.callback-done {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 16px; padding: 12px 14px;
  background: rgba(255, 77, 41, 0.08); border: 1px solid rgba(255, 77, 41, 0.38); border-radius: var(--r);
}
.callback-done:focus { outline: 0; }
.callback-done:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.callback-done .i { width: 20px; height: 20px; margin-top: 1px; color: var(--accent); stroke-width: 2.2; }
.callback-done p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.callback-done b { color: var(--text); }
.result-alt { margin: 0 0 6px; font-size: 13px; color: var(--muted); }

.result-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.result-actions .btn { flex: 1 1 auto; min-height: 42px; padding: 6px 10px; gap: 8px; font-size: 13.5px; justify-content: center; white-space: nowrap; }
.result-actions .btn .i { width: 16px; height: 16px; }
@container (max-width: 400px) {
  .callback-row { grid-template-columns: minmax(0, 1fr); }
}
.result-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-top: 14px; }
.result-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--text);
  text-decoration: underline; text-decoration-color: rgba(255, 77, 41, 0.7); text-underline-offset: 4px;
}
.result-link .i { width: 15px; height: 15px; }
.result-link:hover { color: var(--accent); }
.result-close {
  position: absolute; top: 10px; right: 10px;
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  background: rgba(22, 23, 25, 0.7); color: var(--text-2);
  border: 1px solid var(--line-2); border-radius: var(--r);
}
.result-close .i { width: 16px; height: 16px; }
.result-close:hover { color: var(--text); border-color: var(--text-2); }
.result-close { top: calc(var(--rmap-h) + 10px); }

@media (min-width: 960px) {
  .result-body { padding: 18px 20px 16px; }
  .result-route { font-size: 20px; margin-bottom: 12px; }
  .result-meta { margin-bottom: 12px; }
  .result-facts li { font-size: 13.5px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 8px 14px;
  border: 1px solid transparent; border-radius: var(--r);
  font-size: 14px; font-weight: 600; line-height: 1.25; text-decoration: none; text-align: left;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:focus-visible { outline-color: #fff; }
.btn-sub { display: block; font-weight: 500; font-size: 12.5px; opacity: 0.85; }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-outline { border-color: var(--accent); color: var(--text); background: transparent; min-height: 52px; padding: 10px 20px; }
.btn-outline .i { color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }

/* Trust strip */
.trust {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  list-style: none; margin: 30px 0 0; padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.trust li { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.trust .i { width: 22px; height: 22px; margin-top: 1px; color: var(--accent); }
.trust b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; margin-bottom: 3px; }
.trust span { display: block; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
@media (max-width: 1099.98px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .trust { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 32px; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section + .section { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-title {
  margin-bottom: 16px;
  font: 600 clamp(22px, 2.8vw, 40px)/1.1 var(--font-display);
  letter-spacing: -0.01em; text-transform: uppercase;
  text-wrap: balance;
}
.section-lead { margin: 0; max-width: 40em; font-size: clamp(16px, 1.2vw, 18px); color: var(--text-2); text-wrap: pretty; }

/* Routes directory */
.dir { border-top: 1px solid var(--line); }
.dir-group {
  display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.dir-toggle {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 6px 0; background: none; border: 0; border-radius: var(--r);
  font: 600 18px/1.25 var(--font-display); color: var(--text); text-align: left;
}
.dir-title { min-width: 0; }
.dir-count {
  display: inline-block; margin-left: 8px; vertical-align: 2px;
  font: 600 13px/1 var(--font); color: var(--muted); padding: 4px 7px; border: 1px solid var(--line-2); border-radius: var(--r);
}
.dir-toggle .i { margin-left: auto; width: 20px; height: 20px; color: var(--muted); transition: transform 0.2s; }
.dir-toggle[aria-expanded="false"] .i { transform: rotate(-90deg); }
.dir-items { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; list-style: none; margin: 0; padding: 0; }
.dest {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px;
  background: var(--surface); color: #e9eaec;
  border: 1px solid var(--line); border-radius: var(--r);
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.dest .i { width: 14px; height: 14px; color: var(--muted); transition: transform 0.15s, color 0.15s; }
.dest:hover { border-color: var(--accent); background: var(--surface-2); color: var(--text); }
.dest:hover .i { color: var(--accent); transform: rotate(90deg); }
.dir-note { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; font-size: 14.5px; color: var(--muted); }
.dir-note .i { width: 18px; height: 18px; color: var(--accent); }
@media (max-width: 899.98px) {
  .dir-group { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 0; }
  .dir-group.is-collapsed { gap: 0; }
  .dest { height: 40px; padding: 0 12px; font-size: 14.5px; }
}

/* Services bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  min-width: 0; min-height: 290px; padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color 0.2s;
}
.svc:hover { border-color: var(--line-2); }
.svc--wide { grid-column: span 2; }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.svc-icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  color: var(--accent); background: rgba(255, 77, 41, 0.06);
  border: 1px solid var(--line-2); border-radius: var(--r);
}
.svc-icon .i { width: 24px; height: 24px; }
.svc-kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); text-align: right; }
.svc .svc-kicker { font-size: 12px; line-height: 1.2; color: var(--accent); max-width: none; }
.svc h3 { font: 600 19px/1.25 var(--font-display); }
.svc p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text-2); max-width: 38em; }
.svc-link, .case-link, .more-link {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin-top: auto; padding-bottom: 3px;
  font-size: 14.5px; font-weight: 600; color: var(--text); text-decoration: none;
  border-bottom: 1px solid rgba(255, 77, 41, 0.65);
  transition: color 0.15s, border-color 0.15s;
}
.svc-link .i, .case-link .i, .more-link .i { width: 16px; height: 16px; }
.svc-link:hover, .case-link:hover, .more-link:hover { color: var(--accent); border-color: var(--accent); }
.classes {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px;
  list-style: none; margin: 6px 0 4px; padding: 0;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
}
.classes li { padding: 14px; background: var(--surface); min-width: 0; }
.classes b { display: block; margin-bottom: 4px; font: 600 15px/1.2 var(--font-display); white-space: nowrap; }
.classes span { display: block; font-size: 13px; line-height: 1.35; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 6px; padding: 0; }
.tags li {
  padding: 8px 12px;
  font-size: 14px; color: #e6e7ea;
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line-2); border-radius: var(--r);
}
@media (max-width: 1023.98px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc--tags { grid-column: span 1; }
}
@media (max-width: 639.98px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .svc, .svc--wide { grid-column: auto; min-height: 0; padding: 22px; }
  .classes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .classes li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .svc-link { margin-top: 6px; }
}

/* Cases */
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.case {
  display: flex; flex-direction: column; gap: 20px;
  min-width: 0; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.case-modes { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.case-modes li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line-2); border-radius: var(--r);
}
.case-modes .i { width: 14px; height: 14px; color: var(--accent); }
.case h3 { font: 600 clamp(17px, 1.45vw, 20px)/1.3 var(--font-display); text-wrap: balance; }
.case-route { display: flex; align-items: flex-start; list-style: none; margin: 4px 0 0; padding: 0; }
.stop { flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.stop:first-child { align-items: flex-start; }
.stop--end { align-items: flex-end; }
.stop-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--text);
}
.stop--end .stop-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 77, 41, 0.2); }
.stop-name { font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.leg { position: relative; flex: 1; min-width: 36px; height: 14px; display: grid; place-items: center; }
.leg::before {
  content: ""; position: absolute; left: 4px; right: 4px; top: 50%;
  border-top: 2px dashed rgba(255, 255, 255, 0.24);
}
.leg .i {
  position: relative; box-sizing: content-box;
  width: 18px; height: 18px; padding: 0 8px;
  color: var(--accent); background: var(--surface);
}
.case-specs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.case-specs div { padding: 12px 14px; background: var(--surface); min-width: 0; }
.case-specs dt { margin-bottom: 4px; font-size: 12.5px; color: var(--muted); }
.case-specs dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.more-link { margin-top: 28px; }
@media (max-width: 899.98px) { .case-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
@media (max-width: 479.98px) {
  .case { padding: 22px; }
  .case-specs div { padding: 10px; }
  .case-specs dd { font-size: 14px; }
  .stop-name { font-size: 13.5px; }
}

/* Process */
.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.steps::before {
  content: ""; position: absolute; top: 27px; left: 28px; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 77, 41, 0.12));
}
.step { position: relative; min-width: 0; }
.step-num {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 24px;
  font: 600 16px/1 var(--font-display);
  background: var(--bg); border: 2px solid var(--accent); border-radius: 50%;
}
.step:last-child .step-num { background: var(--accent); color: var(--on-accent); }
.step h3 { margin-bottom: 10px; font: 600 19px/1.2 var(--font-display); text-transform: uppercase; }
.step p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
@media (max-width: 899.98px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), rgba(255, 77, 41, 0.12)); }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; }
  .step-num { grid-row: span 2; margin-bottom: 0; }
  .step h3 { align-self: end; margin-top: 6px; }
}

/* Why */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  list-style: none; margin: 0 0 56px; padding: 0;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.stats li { min-width: 0; padding: 30px 26px 28px; background: var(--bg); }
.stats li::before { content: ""; display: block; width: 24px; height: 2px; margin-bottom: 26px; background: var(--accent); }
.stats b { display: block; margin-bottom: 12px; font: 600 clamp(38px, 4.2vw, 60px)/1 var(--font-display); letter-spacing: -0.03em; }
.stats span { display: block; font-size: 15px; line-height: 1.4; color: var(--text-2); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; list-style: none; margin: 0 0 56px; padding: 0; }
.features li { min-width: 0; }
.features .i { width: 28px; height: 28px; margin-bottom: 16px; color: var(--accent); }
.features h3 { margin-bottom: 10px; font: 600 18px/1.25 var(--font-display); }
.features p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.clients { display: flex; align-items: center; gap: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.clients-label { flex: none; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.clients-list { display: flex; flex-wrap: wrap; gap: 12px 36px; list-style: none; margin: 0; padding: 0; }
.clients-list li { font: 600 17px/1.2 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; color: #a3a5ab; }
@media (max-width: 899.98px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 44px; }
  .features { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 44px; }
  .clients { flex-direction: column; align-items: flex-start; gap: 16px; }
  .clients-list { gap: 10px 24px; }
  .clients-list li { font-size: 15px; }
}
@media (max-width: 479.98px) {
  .stats b { font-size: 32px; }
  .stats li { padding: 22px 18px; }
  .stats li::before { margin-bottom: 18px; }
}

/* Contacts */
.contacts {
  background:
    radial-gradient(900px 420px at 0% 100%, rgba(255, 77, 41, 0.09), transparent 60%),
    var(--bg-black);
}
.contacts-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 72px; align-items: end; }
.contacts-cta .section-lead { max-width: 30em; }
.big-phone {
  display: inline-block; margin: 28px 0 24px;
  font: 600 clamp(26px, 3.4vw, 44px)/1.1 var(--font-display); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transition: color 0.15s;
}
.big-phone:hover { color: var(--accent); }
.contacts-cta .btn-outline { display: flex; width: fit-content; }
.contacts-list { margin: 0; border-top: 1px solid var(--line); }
.contacts-list > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contacts-list dt { padding-top: 3px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contacts-list dd { margin: 0; font-size: 16px; line-height: 1.7; }
.contacts-list a { text-decoration: none; transition: color 0.15s; }
.contacts-list a:hover { color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  transition: border-color 0.15s, color 0.15s;
}
.socials a:hover { border-color: var(--accent); }
.socials .social-labeled { display: inline-flex; gap: 8px; width: auto; padding: 0 12px; font-size: 13px; font-weight: 600; line-height: 1; }
@media (max-width: 899.98px) {
  .contacts-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}
@media (max-width: 479.98px) {
  .contacts-list > div { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 0; }
}

/* Footer */
.site-footer {
  padding: 26px 0 calc(26px + env(safe-area-inset-bottom));
  background: var(--bg-black); border-top: 1px solid var(--line);
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer-logo { height: 24px; width: auto; }
.footer-copy { margin: 0; font-size: 13.5px; color: var(--muted); }
.linklike {
  padding: 0; background: none; border: 0;
  font: inherit; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px;
}
.linklike:hover { color: var(--text); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 120;
  padding: 12px 18px;
  font-size: 14px; font-weight: 600; color: #141414;
  background: #fff; border-radius: var(--r);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast:empty { visibility: hidden; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Touch: 44px minimum tap targets */
@media (pointer: coarse), (max-width: 599.98px) {
  .chip, .dest { height: 44px; }
  .swap { width: 44px; height: 44px; }
  .cargo-toggle, .dir-toggle { min-height: 44px; }
  .field-clear { width: 44px; height: 44px; }
  .result-close { width: 44px; height: 44px; }
  .svc-link, .case-link, .more-link { padding-block: 11px; }
  .contacts-list a { display: inline-block; padding-block: 10px; }
  .result-actions .btn { min-height: 44px; }
  .result-link { padding-block: 11px; }
  .big-phone { padding-block: 8px; }
  .brand { padding-block: 8px; }
  }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
