:root {
  --ink: #102b32;
  --muted: #60747a;
  --paper: #ffffff;
  --surface: #f4f8f7;
  --line: #dce8e5;
  --brand: #10a89a;
  --brand-dark: #087d75;
  --navy: #123c49;
  --lime: #d9f477;
  --warn: #fff6da;
  --warn-line: #f0d890;
  --danger: #c84b4b;
  --success: #137d61;
  --shadow: 0 18px 45px rgba(16, 43, 50, .09);
  --radius: 22px;
}

* { box-sizing: border-box; min-width: 0; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--surface);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}
#app main { animation: page-enter .32s ease-out both; }
.reveal-block { opacity: 0; transform: translateY(16px); transition: opacity .48s ease, transform .48s ease; transition-delay: var(--reveal-delay, 0ms); }
.reveal-block.is-visible { opacity: 1; transform: translateY(0); }
@keyframes page-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.page { min-height: calc(100vh - 160px); padding: 30px 0 72px; }
.narrow { width: min(720px, calc(100% - 32px)); margin-inline: auto; }
.hidden { display: none !important; }
.seo-bootstrap { width: min(1160px, calc(100% - 32px)); min-height: 72vh; display: grid; align-content: center; gap: 10px; margin-inline: auto; }
.seo-bootstrap h1 { margin: 0; }
.seo-bootstrap p { max-width: 680px; margin: 0; color: var(--muted); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(220, 232, 229, .86);
  background: rgba(244, 248, 247, .9);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}
.brand-wordmark { display: inline-flex; align-items: center; gap: 8px; line-height: 1; }
.brand-name { color: var(--ink); font-size: 21px; font-weight: 800; letter-spacing: -.045em; }
.brand-go {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 4px 12px 5px 10px;
  border-radius: 999px 999px 999px 8px;
  color: white;
  background: linear-gradient(135deg, var(--navy) 0%, var(--brand-dark) 62%, var(--brand) 100%);
  box-shadow: 0 7px 16px rgba(8, 125, 117, .18);
  font-size: 18px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -.07em;
  transform: rotate(-3deg);
  transform-origin: center;
}
.brand:hover .brand-go { transform: rotate(-3deg) translateY(-1px); box-shadow: 0 9px 20px rgba(8, 125, 117, .24); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-link {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}
.header-link:hover { color: var(--ink); background: var(--paper); }

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--brand);
  box-shadow: none;
  text-decoration: none;
  text-align: center;
  font-weight: 800;
  max-width: 100%;
  white-space: normal;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--brand-dark); box-shadow: 0 10px 26px rgba(16, 168, 154, .2); }
.btn:active { transform: translateY(0); }
.btn-secondary { color: var(--ink); background: var(--paper); border: 1px solid var(--line); }
.btn-secondary:hover { background: #edf5f3; box-shadow: none; }
.btn-dark { background: var(--navy); }
.btn-dark:hover { background: #0b2f39; box-shadow: 0 10px 26px rgba(18, 60, 73, .2); }
.btn-danger { color: var(--danger); background: #fff; border: 1px solid #efcaca; }
.btn-danger:hover { color: white; background: var(--danger); box-shadow: none; }
.btn-small { min-height: 42px; padding: 9px 14px; border-radius: 12px; font-size: 14px; }
.btn-block { width: 100%; }
.link-button { padding: 0; border: 0; color: var(--brand-dark); background: none; font-weight: 800; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 54px;
  background: linear-gradient(120deg, #f7f9f9 0%, #f4f8f7 52%, #edf5f3 100%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -250px;
  bottom: -240px;
  border: 56px solid rgba(16, 168, 154, .055);
  border-radius: 50%;
}
.hero-grid { width: min(1480px, calc(100% - 48px)); display: grid; grid-template-columns: minmax(420px, .76fr) minmax(660px, 1.24fr); align-items: center; gap: 18px; }
.hero-copy { position: relative; z-index: 2; max-width: 610px; }
.hero-copy h1 { font-size: clamp(48px, 5.1vw, 76px); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(16, 168, 154, .12); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(36px, 6vw, 68px); line-height: 1.03; letter-spacing: -.045em; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -.035em; }
h3 { line-height: 1.25; }
.lead { max-width: 650px; margin-bottom: 28px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-note { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 14px; }
.avatars { display: flex; }
.avatar-mini {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-left: -8px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  color: white;
  background: var(--navy);
  font-size: 11px;
  font-weight: 800;
}
.avatar-mini:first-child { margin-left: 0; background: var(--brand); }
.avatar-mini:nth-child(2) { background: #e19944; }

.hero-media-slot {
  width: min(810px, 100%);
  margin-left: auto;
  display: grid;
  place-items: center;
}
.hero-media-slot img {
  width: 100%;
  height: auto;
  max-height: 650px;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-composite: intersect;
}

.section { padding: 76px 0; }
.section-white { background: var(--paper); }
.section-head { max-width: 660px; margin-bottom: 34px; }
.section-head p { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card, .tip-card, .card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 28px rgba(16, 43, 50, .045);
}
.step-card { padding: 26px; }
.step-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 38px;
  border-radius: 14px;
  color: white;
  background: var(--brand);
  font-weight: 800;
}
.step-card h3 { margin-bottom: 8px; font-size: 20px; }
.step-card p { margin-bottom: 0; color: var(--muted); }
.trust-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: stretch; }
.safety-card {
  padding: 34px;
  border-radius: 26px;
  background: var(--navy);
  color: white;
}
.safety-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 16px;
  color: var(--navy);
  background: var(--lime);
  font-size: 24px;
}
.safety-card h2 { max-width: 520px; }
.safety-card p { color: #cfe0e3; }
.safety-card p:last-child { margin-bottom: 0; }
.tips-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tip-card { padding: 22px; }
.tip-icon { font-size: 24px; margin-bottom: 18px; }
.tip-card strong { display: block; margin-bottom: 5px; }
.tip-card p { margin: 0; color: var(--muted); font-size: 14px; }
.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px;
  border-radius: 28px;
  color: white;
  background: var(--brand);
  box-shadow: 0 20px 50px rgba(16, 168, 154, .2);
}
.cta-panel h2 { margin-bottom: 7px; }
.cta-panel p { margin: 0; color: #dcfffa; }
.cta-panel .btn { flex: none; color: var(--ink); background: var(--lime); }

.page-head { margin-bottom: 28px; }
.page-head h1 { margin-bottom: 10px; font-size: clamp(32px, 5vw, 50px); }
.page-head p { color: var(--muted); }
.back-link { display: inline-flex; gap: 7px; align-items: center; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700; }
.form-card { padding: clamp(20px, 5vw, 38px); }
.form-section { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.form-section:last-child { padding: 0; margin: 0; border: 0; }
.form-section h3 { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label, .field-label { font-size: 14px; font-weight: 800; }
.field small { color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #cbdad7;
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background: #fbfdfd;
  transition: border .18s, box-shadow .18s;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(16,168,154,.1); }
.field input[readonly] { color: var(--muted); background: #edf3f2; }
.price-note { padding: 14px 16px; border-radius: 12px; color: var(--muted); background: var(--surface); font-size: 13px; }
.error-text { display: none; color: var(--danger) !important; font-size: 13px; }
.has-error input, .has-error select { border-color: var(--danger); }
.has-error .error-text { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 700;
}
.chip:hover, .chip.active { border-color: var(--brand); color: var(--brand-dark); background: #e9f8f5; }
.safety-inline {
  display: flex;
  gap: 14px;
  padding: 18px;
  margin: 22px 0;
  border: 1px solid var(--warn-line);
  border-radius: 15px;
  background: var(--warn);
}
.safety-inline span { flex: none; font-size: 22px; }
.safety-inline strong { display: block; margin-bottom: 3px; }
.safety-inline p { margin: 0; color: #705e2d; font-size: 13px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.check-row input { width: 20px; height: 20px; flex: none; accent-color: var(--brand); }
.consent-list { display: grid; gap: 12px; margin-top: 18px; }
.consent-list .check-row { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfd; }

.status-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.status-bar > div { min-width: 0; }
.status-bar h1 { overflow-wrap: anywhere; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #7b6014;
  background: var(--warn);
  font-size: 13px;
  font-weight: 800;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e3a922; }
.status.success { color: var(--success); background: #e5f6ef; }
.status.success::before { background: var(--success); }
.status.cancelled { color: var(--danger); background: #faeaea; }
.status.cancelled::before { background: var(--danger); }
.request-summary { padding: 25px; margin-bottom: 20px; }
.request-id { color: var(--muted); font-size: 14px; }
.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.detail { padding: 14px; border-radius: 13px; background: var(--surface); }
.detail span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 12px; }
.detail strong { font-size: 15px; }
.offers-list, .orders-list { display: grid; gap: 14px; }
.offer-card, .order-card { padding: 22px; }
.offer-top, .order-top { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.driver-name { display: flex; gap: 12px; align-items: center; }
.avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 14px;
  color: white;
  background: var(--navy);
  font-weight: 800;
}
.rating { color: #8a6813; font-size: 13px; font-weight: 700; }
.offer-price { text-align: right; font-size: 22px; font-weight: 800; }
.offer-price small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.offer-comment { padding: 13px 15px; margin: 16px 0; border-radius: 12px; color: var(--muted); background: var(--surface); }
.empty-state { padding: 44px 25px; text-align: center; }
.empty-icon { font-size: 42px; margin-bottom: 12px; }
.empty-state p { color: var(--muted); }

.auth-shell { display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; }
.auth-side {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  color: white;
  background: var(--navy);
}
.auth-side .brand-name { color: white; }
.auth-side .brand-go { color: var(--navy); background: var(--lime); box-shadow: none; }
.auth-side h2 { font-size: clamp(30px, 4vw, 44px); }
.auth-side p { color: #c5d9dd; }
.auth-form { padding: clamp(24px, 5vw, 54px); background: var(--paper); }
.auth-form h1 { margin-bottom: 8px; font-size: 36px; }
.auth-form > p { margin-bottom: 30px; color: var(--muted); }
.form-stack { display: grid; gap: 17px; }
.demo-box { padding: 14px; margin-top: 18px; border-radius: 12px; color: var(--muted); background: var(--surface); font-size: 13px; }
.secure-login { margin-top: 5vh !important; }
.security-note { padding-top: 16px; margin: 20px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.settings-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }

.dashboard { display: grid; grid-template-columns: 245px 1fr; gap: 26px; align-items: start; }
.sidebar { position: sticky; top: 94px; padding: 16px; }
.profile-mini { display: flex; gap: 11px; align-items: center; padding: 8px; margin-bottom: 16px; }
.profile-mini .avatar { width: 42px; height: 42px; }
.profile-mini small { display: block; color: var(--muted); }
.side-nav { display: grid; gap: 5px; }
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: none;
  text-align: left;
  text-decoration: none;
  font-weight: 700;
}
.side-link:hover, .side-link.active { color: var(--ink); background: #e8f4f1; }
.dashboard-main { min-width: 0; }
.dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.dashboard-head h1 { margin-bottom: 4px; font-size: 38px; }
.dashboard-head p { margin: 0; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { padding: 19px; }
.stat span { display: block; color: var(--muted); font-size: 13px; }
.stat strong { display: block; margin-top: 5px; font-size: 25px; }
.order-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 13px; }
.order-card h3 { margin-bottom: 7px; }
.order-card h3, .offer-comment, .demo-banner, .dashboard-head p { overflow-wrap: anywhere; }
.order-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.phone-reveal { padding: 13px; margin-top: 16px; border-radius: 12px; color: var(--success); background: #e5f6ef; font-weight: 800; }
.max-connect, .max-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  margin-bottom: 18px;
}
.max-connect p, .max-profile p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.max-confirmed { border-color: #b9dfd2; background: #f5fcf9; }
.max-env-status { padding: 16px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.max-env-status p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.max-env-status code { color: var(--navy); font-weight: 800; }
.max-profile { margin: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.demo-banner { padding: 15px 18px; margin-bottom: 18px; border: 1px solid var(--warn-line); border-radius: 14px; color: #695314; background: var(--warn); }
.route-capacity { padding: 18px 20px; margin-bottom: 18px; }
.route-capacity-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.route-capacity-head span, .route-capacity p { color: var(--muted); font-size: 13px; }
.route-capacity-head strong { display: block; margin-top: 3px; font-size: 21px; }
.capacity-left { flex: none; padding: 6px 10px; border-radius: 999px; color: var(--success) !important; background: #e5f6ef; font-weight: 800; }
.capacity-track { height: 9px; overflow: hidden; margin: 14px 0 9px; border-radius: 999px; background: var(--line); }
.capacity-track span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.route-capacity p { margin: 0; }
.capacity-note { display: grid; gap: 3px; padding: 13px 15px; margin: 15px 0; border: 1px solid #b9dfd2; border-radius: 12px; color: var(--success); background: #f5fcf9; font-size: 13px; }
.capacity-note span { color: var(--muted); }
.capacity-note.capacity-warning { border-color: var(--warn-line); color: #745816; background: var(--warn); }
.zone-field { padding: 0; border: 0; margin: 0; }
.zone-options { display: flex; flex-wrap: wrap; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fbfdfd; }
.zone-options .check-row { color: var(--ink); }
.communication-block, .timeline-block { margin-top: 36px; }
.quick-panel { padding: 20px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.message-history { display: grid; gap: 10px; margin-top: 22px; }
.message {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 5px 15px 15px 15px;
  background: var(--surface);
}
.message.mine { margin-left: auto; border-radius: 15px 5px 15px 15px; background: #e3f6f2; }
.message strong, .message time { display: block; color: var(--muted); font-size: 11px; }
.message p { margin: 3px 0; font-size: 14px; }
.muted-center { margin: 0; color: var(--muted); text-align: center; font-size: 14px; }
.call-fallback { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.timeline { padding: 20px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 16px 1fr; gap: 12px; padding-bottom: 19px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item > span { width: 10px; height: 10px; margin-top: 5px; border: 2px solid var(--paper); border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 15px; bottom: 1px; width: 2px; background: var(--line); }
.timeline-item time { display: block; color: var(--muted); font-size: 12px; }
.rating-choice { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.rating-choice input { position: absolute; opacity: 0; }
.rating-choice span { display: grid; place-items: center; min-height: 48px; border: 1px solid var(--line); border-radius: 11px; font-weight: 800; }
.rating-choice input:checked + span { border-color: var(--brand); color: var(--brand-dark); background: #e9f8f5; }
.filter-row { display: flex; gap: 8px; margin-bottom: 17px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }

.admin-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; scrollbar-width: none; }
.admin-tabs .chip { white-space: nowrap; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.admin-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.table-wrap { overflow-x: auto; padding: 8px; }
.admin-filter-panel { padding: 20px; margin-bottom: 16px; }
.admin-row-actions { min-width: 160px; display: flex; flex-wrap: wrap; gap: 7px; }
.risk { display: inline-flex; padding: 4px 8px; margin-top: 5px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.risk-low { color: var(--success); background: #e5f6ef; }
.risk-medium { color: #826315; background: var(--warn); }
.risk-high { color: var(--danger); background: #faeaea; }
.block-list { display: grid; }
.compact-empty { margin-top: 24px; padding-block: 28px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border: 0; }
.setting-row p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.setting-row input { width: 130px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; }

.legal-layout { width: min(1160px, calc(100% - 32px)); display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; margin-inline: auto; }
.legal-nav { position: sticky; top: 94px; display: grid; gap: 4px; padding: 12px; }
.legal-nav a { padding: 11px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; }
.legal-nav a:hover, .legal-nav a.active { color: var(--ink); background: #e8f4f1; }
.legal-document { padding: clamp(22px, 5vw, 46px); }
.legal-document h1 { margin-bottom: 10px; font-size: clamp(34px, 5vw, 50px); }
.legal-document h2 { margin: 38px 0 12px; font-size: 23px; letter-spacing: -.02em; }
.legal-document p, .legal-document li { color: #455d63; }
.legal-document li { margin-bottom: 8px; }
.document-meta { padding: 12px 14px; margin: 18px 0 30px; border-radius: 10px; color: var(--muted); background: var(--surface); font-size: 12px; }
.requisites { display: grid; grid-template-columns: 190px 1fr; margin: 0; }
.requisites dt, .requisites dd { padding: 13px; margin: 0; border-bottom: 1px solid var(--line); }
.requisites dt { color: var(--muted); font-size: 13px; }

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 32, 39, .56);
  backdrop-filter: blur(5px);
}
.modal { width: min(500px, calc(100vw - 36px)); max-height: calc(100dvh - 36px); overflow-x: hidden; overflow-y: auto; padding: 26px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.modal h2 { font-size: 26px; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .btn { flex: 1; }
.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 22px;
  max-width: calc(100% - 30px);
  padding: 13px 18px;
  border-radius: 12px;
  color: white;
  background: var(--navy);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: .24s ease;
  font-weight: 700;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.feedback-trigger {
  position: fixed;
  z-index: 45;
  left: 18px;
  bottom: 18px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(16,168,154,.3);
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 24px rgba(16,43,50,.12);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}
.feedback-trigger:hover { color: white; background: var(--brand); }
.feedback-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-legal strong { color: var(--ink); }
.footer-legal a { color: var(--brand-dark); text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 13px; }
.footer-links a { text-decoration: none; }
.footer-copy { color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .hero-grid, .trust-grid, .auth-shell { grid-template-columns: 1fr; }
  .hero { padding-top: 46px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-grid { width: min(100% - 28px, 820px); gap: 24px; }
  .hero-copy { max-width: 720px; margin-inline: auto; }
  .hero-copy h1 { font-size: clamp(42px, 8vw, 62px); }
  .hero-media-slot { width: min(680px, 100%); margin-inline: auto; }
  .steps { grid-template-columns: 1fr; }
  .step-card { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; }
  .step-number { grid-row: 1 / 3; margin: 0; }
  .step-card h3 { margin-top: 2px; }
  .auth-side { min-height: 270px; }
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { position: static; padding: 8px; }
  .profile-mini { display: none; }
  .side-nav { grid-template-columns: repeat(4, 1fr); }
  .side-link { justify-content: center; text-align: center; font-size: 13px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .legal-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .legal-nav a { flex: 0 0 auto; white-space: nowrap; }
}

@media (max-width: 640px) {
  .container, .narrow { width: min(100% - 24px, 1160px); }
  .site-header { position: relative; }
  .header-inner { min-height: 66px; }
  .brand-name { font-size: 18px; }
  .brand-go { min-height: 28px; padding: 4px 11px 4px 9px; font-size: 16px; }
  .header-link { display: none; }
  .header-actions { display: none; }
  .hero { padding: 38px 0 32px; }
  h1 { font-size: 38px; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .hero-copy h1 { font-size: clamp(39px, 11vw, 52px); }
  .hero-media-slot { width: 100%; }
  .hero-media-slot img { max-height: none; }
  .section { padding: 54px 0; }
  .tips-panel, .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .safety-card { padding: 25px; }
  .cta-panel { display: block; padding: 28px 22px; }
  .cta-panel .btn { width: 100%; margin-top: 20px; }
  .page { padding-top: 20px; }
  .status-bar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .status-bar h1 { max-width: 100%; margin-bottom: 0 !important; font-size: 34px !important; line-height: 1.02; }
  .status-bar .status { max-width: 100%; white-space: normal; }
  .request-summary { padding: 18px; }
  .details-grid { grid-template-columns: 1fr; gap: 10px; margin: 16px 0; }
  .detail:last-child { grid-column: auto; }
  .detail { min-width: 0; padding: 13px; }
  .detail strong, .request-summary p { overflow-wrap: anywhere; }
  .offer-top, .order-top { align-items: flex-start; flex-direction: column; }
  .offer-price { width: 100%; text-align: left; }
  .offer-price { font-size: 18px; }
  .auth-side { display: none; }
  .auth-form h1 { font-size: 31px; }
  .side-nav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .side-link { flex: 0 0 auto; white-space: nowrap; }
  .dashboard-head { display: block; }
  .dashboard-head .order-actions { display: grid; grid-template-columns: 1fr; }
  .dashboard-head .btn { width: 100%; margin-top: 10px; }
  .dashboard-main, .order-card, .demo-banner { width: 100%; max-width: 100%; }
  .order-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .order-actions .btn { width: 100%; }
  .route-capacity-head { align-items: flex-start; flex-direction: column; }
  .modal-backdrop { align-items: end; padding: 10px; }
  .modal { width: 100%; max-height: calc(100dvh - 20px); padding: 22px 18px max(22px, env(safe-area-inset-bottom)); border-radius: 20px 20px 10px 10px; }
  .modal .field input, .modal .field textarea, .modal .field select { font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 15px; }
  .stat strong { font-size: 21px; }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; }
  .admin-table tr { padding: 12px; border-bottom: 1px solid var(--line); }
  .admin-table td { padding: 5px; border: 0; }
  .modal-actions { flex-direction: column; }
  .max-connect, .max-profile, .call-fallback { align-items: stretch; flex-direction: column; }
  .message { max-width: 94%; }
  .rating-choice { grid-template-columns: repeat(5, minmax(48px, 1fr)); overflow-x: auto; }
  .legal-layout { width: auto; margin-inline: 12px; }
  .requisites { grid-template-columns: 1fr; }
  .requisites dt { padding-bottom: 2px; border-bottom: 0; }
  .requisites dd { padding-top: 2px; }
  .footer-inner { display: block; }
  .footer-links { margin-bottom: 15px; }
  .feedback-trigger { left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); min-height: 36px; padding: 7px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal-block { opacity: 1 !important; transform: none !important; }
}
