:root {
  --ink: #0b1720;
  --ink-soft: #1b2a34;
  --muted: #64727d;
  --line: #d9dee3;
  --line-strong: #bdc6ce;
  --bg: #eef2f5;
  --paper: #ffffff;
  --soft: #f5f7f9;
  --dark: #101820;
  --dark-2: #17232d;
  --accent: #f1862d;
  --accent-dark: #c45e12;
  --accent-soft: #fff0e2;
  --success: #008361;
  --warn: #9f6000;
  --danger: #b42318;
  --radius: 8px;
  --shadow: 0 20px 60px rgba(13, 20, 26, 0.10);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background:
    linear-gradient(180deg, #ffffff 0, var(--bg) 520px),
    var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Outfit, Inter, sans-serif;
  font-weight: 600;
  line-height: 1.18;
}

h1 {
  margin-bottom: 0;
  font-size: 40px;
}

h2 {
  margin-bottom: 14px;
  font-size: 34px;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

a {
  color: inherit;
}

.access-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 30px;
  background:
    radial-gradient(circle at 25% 15%, rgba(245, 130, 32, 0.16), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #eef2f5 100%);
}

.access-shell {
  width: min(100%, 520px);
}

.access-card {
  padding: 34px;
  border: 1px solid rgba(217, 222, 227, 0.95);
  border-top: 5px solid var(--accent);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.access-logo {
  width: 210px;
  margin-bottom: 24px;
}

.access-card h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 6vw, 42px);
}

.access-card p {
  color: var(--muted);
}

.access-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.access-form label {
  font-weight: 700;
}

.access-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
}

.access-form small {
  color: var(--muted);
}

.access-alert,
.access-lock {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--warn);
  font-weight: 700;
}

.access-alert.is-danger,
.access-lock {
  background: #fff0ee;
  color: var(--danger);
}

.access-lock {
  display: grid;
  gap: 5px;
}

.access-lock span {
  color: var(--ink-soft);
  font-weight: 500;
}

.utility-bar {
  display: flex;
  justify-content: center;
  gap: 26px;
  min-height: 38px;
  padding: 8px 24px;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 92px;
  padding: 16px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 24, 32, 0.96);
  color: #fff;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img,
.site-footer img,
.login-logo {
  display: block;
  height: 58px;
  width: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav-item {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  padding: 8px 12px;
  font-weight: 500;
}

.nav-item:hover,
.nav-item.is-active {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.top-actions,
.hero-actions,
.form-actions,
.offer-actions,
.table-actions,
.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform .18s ease, opacity .18s ease;
}

.primary,
.ghost,
.danger,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
}

.primary:disabled,
.ghost:disabled,
.danger:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #101820;
}

.primary:hover {
  background: var(--accent-dark);
}

.ghost,
.link-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dashboard-panel .ghost,
.form-section .ghost,
.info-panel .ghost,
.offer-card .ghost,
.offer-card .link-button,
.login-card .ghost,
.empty-panel .ghost,
.contact-cards .ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.ghost.light {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.danger {
  border: 1px solid var(--danger);
  background: var(--danger);
  color: #fff;
}

.large {
  min-height: 50px;
  padding-inline: 20px;
}

.main {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 62px;
}

.page-titlebar {
  display: none;
  margin-bottom: 20px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.52fr);
  gap: 30px;
  align-items: center;
  min-height: 650px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  padding: 56px 56px 150px;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.92), rgba(16, 24, 32, 0.74), rgba(16, 24, 32, 0.40)),
    linear-gradient(180deg, rgba(241, 134, 45, 0.18), rgba(16, 24, 32, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(690px, 100%);
  padding: 0;
}

.hero-content h2 {
  margin-bottom: 18px;
  font-size: 64px;
  letter-spacing: 0;
}

.hero-content p:not(.eyebrow) {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-quote-card {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero-quote-card .eyebrow {
  color: var(--accent-dark);
}

.quote-mini-grid {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.quote-mini-grid span {
  display: grid;
  gap: 2px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 10px 12px;
  color: var(--muted);
}

.quote-mini-grid strong {
  color: var(--ink);
}

.hero-quote-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.hero-kpis {
  position: absolute;
  right: 56px;
  bottom: 32px;
  left: 56px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-kpis article {
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 16px;
  background: rgba(16, 24, 32, 0.72);
}

.hero-kpis strong {
  color: var(--accent);
  font-family: Outfit, Inter, sans-serif;
  font-size: 30px;
}

.hero-kpis span {
  color: rgba(255, 255, 255, 0.78);
}

.process-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin-top: -1px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
}

.process-band div {
  min-height: 190px;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  padding: 24px;
}

.process-band div:last-child {
  border-right: 0;
}

.process-band span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--accent);
  font-family: Outfit, Inter, sans-serif;
  font-size: 32px;
  font-weight: 600;
}

.process-band p {
  color: rgba(255, 255, 255, 0.70);
}

.section-grid,
.split-section,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 34px;
  align-items: center;
  margin-top: 42px;
}

.intro-copy,
.note-panel,
.contact-note,
.tariff-preview,
.legal-card,
.form-section,
.info-panel,
.offer-card,
.empty-panel,
.login-card,
.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.intro-copy,
.note-panel,
.contact-note,
.legal-card,
.empty-panel,
.login-card,
.dashboard-panel,
.offer-card {
  padding: 22px;
}

blockquote {
  margin: 22px 0 0;
  border-left: 4px solid var(--accent);
  padding: 2px 0 2px 16px;
  color: var(--ink-soft);
  font-family: Outfit, Inter, sans-serif;
  font-size: 22px;
}

blockquote span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 14px;
}

.image-stack {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 12px;
  align-items: end;
}

.image-stack img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 8px;
}

.image-stack img:last-child {
  height: 270px;
}

.service-strip,
.benefit-grid,
.service-cards,
.legal-content {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.service-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-strip article,
.benefit-grid article,
.service-cards article,
.contact-cards a,
.contact-cards button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.service-strip article,
.benefit-grid article,
.service-cards article {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-strip article:hover,
.benefit-grid article:hover,
.service-cards article:hover {
  transform: translateY(-3px);
  border-color: rgba(241, 134, 45, 0.42);
  box-shadow: 0 22px 60px rgba(11, 23, 32, 0.12);
}

.service-strip article,
.benefit-grid article {
  padding: 18px;
}

.service-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--dark);
  color: var(--accent);
  font-weight: 700;
}

.section-head {
  width: min(780px, 100%);
  margin-bottom: 24px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.service-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-cards article {
  overflow: hidden;
  position: relative;
}

.service-cards img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-cards article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 4px;
  background: var(--accent);
}

.service-card-primary {
  background: var(--dark) !important;
  color: #fff;
}

.service-card-primary p {
  color: rgba(255, 255, 255, 0.74) !important;
}

.service-cards h3,
.service-cards p {
  margin-inline: 16px;
}

.service-cards h3 {
  margin-top: 16px;
}

.service-cards p {
  margin-bottom: 18px;
  color: var(--muted);
}

.tariff-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(241, 134, 45, 0.16), transparent 42%),
    var(--dark);
  color: #fff;
}

.tariff-preview p {
  color: rgba(255, 255, 255, 0.78);
}

.benefit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.quote-form {
  display: grid;
  gap: 14px;
}

.form-section {
  padding: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-title span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
  outline: none;
}

.form-section,
.info-panel,
.offer-card,
.login-card,
.dashboard-panel {
  border-top: 4px solid var(--accent);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(204, 99, 51, 0.14);
}

.field-grid {
  display: grid;
  gap: 10px;
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.route-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.route-line {
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--dark));
}

.route-line::after {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  margin: -5px 0 0 auto;
  border-top: 2px solid var(--dark);
  border-right: 2px solid var(--dark);
  transform: rotate(45deg);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
}

.checkbox input {
  width: 18px;
  min-height: 18px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.segmented label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  border-radius: 6px;
}

.segmented input {
  width: auto;
  min-height: auto;
}

.side-panel {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 102px;
}

.info-panel {
  padding: 16px;
}

.preview-empty,
.empty-panel {
  color: var(--muted);
}

.fact-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.fact-list div,
.metric,
.offer-fact {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  padding: 11px;
}

.fact-list dt,
.metric span,
.offer-fact span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.fact-list dd,
.metric strong,
.offer-fact strong {
  display: block;
  margin: 4px 0 0;
  font-weight: 700;
}

.offer-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.offer-price {
  color: var(--accent);
  font-size: 38px;
  white-space: nowrap;
}

.offer-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.offer-notes {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.note {
  border-left: 4px solid var(--warn);
  border-radius: 6px;
  background: #fff8e2;
  padding: 11px 12px;
}

.note.danger {
  border-left-color: var(--danger);
  background: #fee4e2;
}

.alternative-offer {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  border: 1px solid rgba(204, 99, 51, 0.28);
  border-radius: 8px;
  background: #fff8e9;
  padding: 14px;
}

.alternative-offer strong {
  color: var(--dark);
  font-size: 18px;
}

.alternative-offer span {
  color: var(--ink-soft);
}

.alternative-offer label {
  max-width: 240px;
  margin: 0;
}

.span-two {
  grid-column: span 2;
}

.contact-layout {
  align-items: stretch;
}

.contact-cards {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.contact-cards a,
.contact-cards button {
  display: grid;
  align-content: center;
  min-height: 74px;
  padding: 16px;
  text-align: left;
  text-decoration: none;
}

.contact-cards span {
  color: var(--muted);
  font-size: 12px;
}

.legal-content {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-card details {
  margin-top: 14px;
}

.legal-card summary {
  cursor: pointer;
  font-weight: 700;
}

.legal-card li {
  margin-bottom: 8px;
}

.login-panel {
  min-height: 58vh;
  display: grid;
  place-items: center;
}

.login-card {
  width: min(420px, 100%);
  padding: 28px;
}

.login-logo {
  margin-bottom: 14px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-panel {
  min-width: 0;
  padding: 16px;
}

.span-12 {
  grid-column: span 12;
}

.span-7 {
  grid-column: span 7;
}

.span-5 {
  grid-column: span 5;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.metric strong {
  font-size: 22px;
}

.metric-button {
  width: 100%;
  appearance: none;
  color: inherit;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.metric-button:hover,
.metric-button:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(245, 130, 32, 0.16);
  transform: translateY(-1px);
}

.inbox-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.inbox-column {
  min-width: 0;
}

.inbox-column.is-highlighted {
  outline: 3px solid rgba(245, 130, 32, 0.35);
  outline-offset: 6px;
  border-radius: 8px;
}

.inbox-item .form-actions {
  margin-top: 10px;
}

.dashboard-actions {
  margin-top: 12px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
}

.chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
}

.chip.warn {
  background: #fff8e2;
  color: var(--warn);
}

.chip.danger {
  background: #fee4e2;
  color: var(--danger);
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  padding: 12px;
}

.list-item strong,
.list-item span,
.list-item small {
  display: block;
}

.list-item small {
  color: var(--muted);
}

.dashboard-notice {
  margin-bottom: 14px;
  border: 1px solid rgba(22, 163, 74, 0.26);
  border-radius: 8px;
  background: #eefbf2;
  color: #11613f;
  padding: 12px 14px;
  font-weight: 700;
}

.dashboard-notice.danger {
  border-color: rgba(181, 44, 31, 0.24);
  background: #fee4e2;
  color: var(--danger);
}

.login-notice {
  width: min(100%, 520px);
  margin: 0 auto 14px;
  border: 1px solid rgba(245, 130, 32, 0.32);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 12px 14px;
  font-weight: 700;
}

.editor-list {
  display: grid;
  gap: 10px;
}

.tariff-row,
.fleet-row,
.legal-row {
  display: grid;
  gap: 8px;
  align-items: end;
}

.tariff-row {
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.7fr 0.5fr;
}

.fleet-row {
  grid-template-columns: 1fr 0.7fr 0.55fr 0.45fr;
}

.legal-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tariff-row label,
.fleet-row label,
.legal-row label {
  margin: 0;
}

.dispatch-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.dispatch-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.8fr) auto auto auto;
  gap: 8px;
  align-items: end;
}

.dispatch-controls label {
  margin: 0;
}

.phone-quick-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  align-items: end;
}

.phone-quick-form label {
  margin: 0;
}

.quick-result {
  margin-top: 14px;
}

.quick-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.quick-summary.ok {
  border-color: rgba(22, 163, 74, 0.28);
  background: #eefbf2;
}

.quick-summary.warn {
  border-color: rgba(245, 158, 11, 0.32);
  background: #fff8e2;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.quick-facts > div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quick-vehicles {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.list-item.is-ok {
  border-color: rgba(22, 163, 74, 0.22);
}

.list-item.is-warn {
  border-color: rgba(245, 158, 11, 0.24);
}

.dispatch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  gap: 14px;
  align-items: stretch;
}

.dispatch-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.dispatch-side h3 {
  margin: 0;
  font-size: 17px;
}

.dispatch-route-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.route-item {
  background: #fff;
}

.route-item strong {
  color: var(--dark);
}

.dispatch-map {
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.dispatch-map svg {
  display: block;
  width: 100%;
  min-height: 306px;
}

.google-dispatch-map {
  width: 100%;
  min-height: 306px;
}

.map-bg {
  fill: #eef0ed;
}

.map-land {
  fill: #fffaf4;
  stroke: #d6d1c7;
  stroke-width: 0.7;
}

.map-route {
  stroke: var(--dark);
  stroke-width: 0.9;
  stroke-dasharray: 2 1.8;
  opacity: 0.72;
}

.map-stop {
  fill: #ffffff;
  stroke: var(--dark);
  stroke-width: 0.7;
}

.map-marker circle {
  fill: var(--accent);
  stroke: #ffffff;
  stroke-width: 1;
}

.map-marker.moving circle {
  fill: var(--warn);
}

.map-marker text {
  fill: var(--ink);
  font-size: 3px;
  font-weight: 800;
}

.map-caption {
  border-top: 1px solid var(--line);
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
}

.timeline {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.timeline-scale,
.timeline-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.timeline-scale {
  color: var(--muted);
  font-size: 12px;
}

.timeline-scale span:last-child {
  grid-column: 2;
  justify-self: end;
}

.timeline-label {
  display: grid;
  gap: 2px;
  font-weight: 700;
}

.timeline-label small {
  color: var(--muted);
  font-weight: 500;
}

.timeline-track {
  position: relative;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
}

.timeline-bar {
  position: absolute;
  top: 6px;
  bottom: 6px;
  display: grid;
  align-content: center;
  min-width: 72px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--dark);
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  white-space: nowrap;
}

.timeline-bar span {
  opacity: 0.82;
}

.timeline-empty {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding-left: 12px;
  color: var(--muted);
}

.fleet-board,
.driver-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.fleet-card,
.driver-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
}

.fleet-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.fleet-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fleet-fields label {
  margin: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 26px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  height: 64px;
  flex: 0 0 auto;
}

.footer-brand strong {
  color: var(--ink);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.footer-meta a,
.footer-meta button {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-decoration: none;
  font-weight: 500;
}

.footer-meta a:hover,
.footer-meta button:hover {
  color: var(--accent-dark);
}

.logout-button,
.server-state {
  position: fixed;
  right: 18px;
  z-index: 60;
}

.logout-button {
  bottom: 18px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  box-shadow: var(--shadow);
}

.server-state {
  top: 8px;
  right: 8px;
  bottom: auto;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.72);
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 180px 1fr;
  }

  .top-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .workspace,
  .section-grid,
  .split-section,
  .contact-layout,
  .dispatch-grid,
  .hero {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-strip,
  .service-cards,
  .benefit-grid,
  .legal-content,
  .process-band,
  .offer-facts,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-kpis {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-column: 1;
    margin-top: 0;
  }

  .span-7,
  .span-5 {
    grid-column: span 12;
  }

  .inbox-grid {
    grid-template-columns: 1fr;
  }

  .dispatch-head {
    flex-direction: column;
  }

  .dispatch-controls,
  .phone-quick-form,
  .quick-facts,
  .fleet-board,
  .driver-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  h1 {
    font-size: 30px;
  }

  h2,
  .hero-content h2 {
    font-size: 32px;
  }

  .site-header {
    position: static;
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .top-actions,
  .site-footer,
  .offer-head,
  .tariff-preview {
    align-items: stretch;
    flex-direction: column;
  }

  .main {
    width: min(100% - 28px, var(--max));
    padding-top: 16px;
  }

  .hero {
    min-height: 520px;
    padding: 36px 22px;
  }

  .hero-content {
    padding: 0;
  }

  .image-stack,
  .field-grid.two,
  .field-grid.three,
  .field-grid.five,
  .route-grid,
  .side-panel,
  .service-strip,
  .service-cards,
  .benefit-grid,
  .legal-content,
  .process-band,
  .hero-kpis,
  .offer-facts,
  .metrics,
  .tariff-row,
  .fleet-row,
  .legal-row,
  .dispatch-controls,
  .phone-quick-form,
  .quick-facts,
  .timeline-scale,
  .timeline-row,
  .fleet-board,
  .driver-board,
  .fleet-fields {
    grid-template-columns: 1fr;
  }

  .route-line {
    height: 34px;
    width: 2px;
    margin: 0 auto;
  }

  .route-line::after {
    margin: 24px 0 0 -5px;
    transform: rotate(135deg);
  }

  .footer-meta {
    justify-content: flex-start;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-meta {
    align-items: flex-start;
  }

  .span-two {
    grid-column: auto;
  }
}

/* Modern light redesign */
:root {
  --bg: #f7f9fb;
  --paper: #ffffff;
  --ink: #101820;
  --ink-soft: #22313c;
  --muted: #6c7883;
  --line: #dfe6ec;
  --line-strong: #c5d0d9;
  --soft: #f1f5f8;
  --dark: #101820;
  --dark-2: #22313c;
  --accent: #f28b2e;
  --accent-dark: #c96414;
  --accent-soft: #fff1e5;
  --shadow: 0 18px 55px rgba(22, 35, 47, 0.10);
}

body {
  background:
    radial-gradient(circle at top left, rgba(242, 139, 46, 0.13), transparent 310px),
    linear-gradient(180deg, #ffffff 0, #f7f9fb 660px),
    var(--bg);
}

.utility-bar {
  justify-content: space-between;
  min-height: 36px;
  padding: 8px max(24px, calc((100vw - var(--max)) / 2));
  background: #f1f5f8;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.site-header {
  min-height: 86px;
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.nav-item {
  color: var(--ink);
}

.nav-item:hover,
.nav-item.is-active {
  border-color: var(--line);
  background: var(--soft);
  color: var(--ink);
}

.ghost,
.link-button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.primary {
  color: #111820;
  box-shadow: 0 12px 24px rgba(242, 139, 46, 0.24);
}

.hero-light {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 34px;
  align-items: center;
  min-height: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 34px 0 22px;
}

.hero-light::after,
.hero-light > img {
  display: none;
}

.hero-light .hero-content {
  width: auto;
  min-width: 0;
  padding: 0;
}

.hero-light .hero-content h2 {
  max-width: 650px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.03;
}

.hero-light .hero-content p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  margin-top: 24px;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.hero-trust span {
  display: grid;
  gap: 2px;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
  color: var(--muted);
  box-shadow: 0 10px 28px rgba(22, 35, 47, 0.06);
}

.hero-trust strong {
  color: var(--ink);
  font-family: Outfit, Inter, sans-serif;
  font-size: 24px;
}

.hero-media-reel {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 8px;
  background: #e8eef3;
  box-shadow: 0 28px 80px rgba(22, 35, 47, 0.16);
}

.media-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.04);
  animation: mediaFade 15s infinite;
}

.media-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08) translateX(0);
  animation: mediaDrift 15s infinite linear;
}

.media-two {
  animation-delay: 5s;
}

.media-two img {
  animation-delay: 5s;
}

.media-three {
  animation-delay: 10s;
}

.media-three img {
  animation-delay: 10s;
}

.media-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 48%, rgba(16, 24, 32, 0.72)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 34%);
}

.media-slide figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
}

.media-slide figcaption strong {
  display: block;
  font-family: Outfit, Inter, sans-serif;
  font-size: 28px;
  line-height: 1;
}

.media-slide figcaption span {
  color: rgba(255, 255, 255, 0.78);
  text-align: right;
}

.media-progress {
  position: absolute;
  right: 18px;
  bottom: 78px;
  left: 18px;
  z-index: 3;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.media-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left;
  animation: mediaProgress 5s linear infinite;
}

.hero-mini-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow);
}

.hero-mini-form label {
  margin: 0;
}

.hero-mini-form input {
  background: var(--soft);
}

.process-band {
  margin-top: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.process-band div {
  border-right-color: var(--line);
}

.process-band span {
  color: var(--accent);
}

.process-band p {
  color: var(--muted);
}

.section-grid {
  margin-top: 34px;
}

.service-strip article,
.benefit-grid article,
.service-cards article,
.intro-copy,
.note-panel,
.contact-note,
.tariff-preview,
.legal-card,
.form-section,
.info-panel,
.offer-card,
.empty-panel,
.login-card,
.dashboard-panel {
  box-shadow: 0 14px 44px rgba(22, 35, 47, 0.08);
}

.form-section,
.info-panel,
.offer-card,
.login-card,
.dashboard-panel {
  border-top: 0;
}

.service-strip span {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.tariff-preview {
  background: linear-gradient(135deg, var(--ink), #213344);
}

@keyframes mediaFade {
  0%,
  27% {
    opacity: 1;
    transform: scale(1);
  }
  33%,
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes mediaDrift {
  0% {
    transform: scale(1.08) translateX(0);
  }
  27% {
    transform: scale(1.13) translateX(-2.5%);
  }
  100% {
    transform: scale(1.08) translateX(0);
  }
}

@keyframes mediaProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 1180px) {
  .hero-light {
    grid-template-columns: 1fr;
  }

  .hero-media-reel {
    min-height: 460px;
  }

  .hero-mini-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .utility-bar {
    flex-direction: column;
    gap: 3px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 12px 18px;
  }

  .brand img {
    height: 48px;
    max-width: min(250px, calc(100vw - 96px));
    object-fit: contain;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-self: end;
  }

  body.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav,
  .top-actions {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
  }

  body.mobile-menu-open .site-header .nav,
  body.mobile-menu-open .site-header .top-actions {
    display: flex;
  }

  .nav {
    flex-direction: column;
    gap: 8px;
    overflow: visible;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
  }

  .nav-item,
  .top-actions button {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .top-actions {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 6px;
  }

  .hero-light {
    padding-top: 18px;
  }

  .hero-trust,
  .hero-mini-form {
    grid-template-columns: 1fr;
  }

  .hero-media-reel {
    min-height: 330px;
  }

  .media-slide figcaption {
    display: grid;
  }

  .media-slide figcaption span {
    text-align: left;
  }
}
