/* =========================================================
   ВЕКТА — грузоперевозки по России и СНГ
   ========================================================= */

/* ===== БАЗА ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --ink: #0b1b34;
  --ink-2: #1b2c4a;
  --muted: #5a6a80;
  --dim: #8a98ab;
  --line: #e1e6ee;
  --line-2: #cfd7e2;
  --brand: #1747d6;
  --brand-dark: #0f37ad;
  --brand-soft: #e7edff;
  --accent: #ff6b1a;
  --accent-dark: #e85a0c;
  --accent-soft: #fff0e6;
  --ok: #16a34a;
  --ok-soft: #e7f6ed;
  --warn: #d97706;
  --warn-soft: #fef3e2;
  --err: #dc2626;
  --navy: #0b1b34;
  --navy-2: #13284a;
  --radius: 16px;
  --font-head: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --shadow: 0 1px 2px rgba(11, 27, 52, 0.04), 0 8px 24px -12px rgba(11, 27, 52, 0.18);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.lock {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.mono {
  font-family: var(--font-mono);
}

.text-brand {
  color: var(--brand);
}

.text-accent {
  color: var(--accent);
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 10px 22px -10px rgba(255, 107, 26, 0.8);
  transform: translateY(-1px);
}

.btn--brand {
  background: var(--brand);
  color: #fff;
}

.btn--brand:hover {
  background: var(--brand-dark);
}

.btn--line {
  border-color: var(--line-2);
  background: var(--surface);
}

.btn--line:hover {
  border-color: var(--ink);
}

.btn--ghost:hover {
  background: var(--surface-2);
}

.btn--white {
  background: #fff;
  color: var(--ink);
}

.btn--white:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.4);
}

.btn--white-line {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn--white-line:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 14px;
}

.btn--lg {
  padding: 15px 26px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.link {
  color: var(--brand);
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--brand);
}

.link-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ===== ВЕРХНЯЯ ПОЛОСА ===== */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 38px;
}

.topbar__info {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  overflow: hidden;
}

.topbar__info span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar__info svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.topbar a:hover {
  color: #fff;
}

.topbar__track {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.topbar__track svg {
  width: 14px;
  height: 14px;
}

/* ===== ШАПКА ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 6px 20px -12px rgba(11, 27, 52, 0.25);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
}

.logo__mark svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.6;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__text b {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo__text small {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: flex-end;
}

.nav__list {
  display: flex;
  gap: 4px;
}

.nav__list a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}

.nav__list a:hover {
  background: var(--surface-2);
}

.nav__list a.active {
  color: var(--brand);
  background: var(--brand-soft);
}

.nav__phone {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: right;
}

.nav__phone b {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.nav__phone small {
  font-size: 12px;
  color: var(--muted);
}

.nav__actions {
  display: flex;
  gap: 8px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line-2);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== СЕКЦИИ ===== */
.section {
  padding: 100px 0;
}

.section--white {
  background: var(--surface);
}

.section--navy {
  background: var(--navy);
  color: #fff;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.section-head > div {
  max-width: 680px;
}

.section-head h2 {
  font-size: clamp(30px, 3.8vw, 46px);
}

.section-head p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted);
}

.section--navy .section-head p {
  color: rgba(255, 255, 255, 0.65);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--accent);
}

.section--navy .eyebrow {
  color: #8fb0ff;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--ok-soft);
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* статусы перевозок */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status--way { background: var(--brand-soft); color: var(--brand); }
.status--done { background: var(--ok-soft); color: var(--ok); }
.status--wait { background: var(--warn-soft); color: var(--warn); }
.status--new { background: var(--surface-2); color: var(--muted); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(11, 27, 52, 0.09) 1px, transparent 0) 0 0 / 22px 22px,
    var(--bg);
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 5vw, 64px);
}

.hero h1 span {
  color: var(--brand);
}

.hero__text {
  max-width: 540px;
  font-size: 18px;
  color: var(--muted);
}

.track-form {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin-top: 32px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.track-form__field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.track-form__field svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 20px;
  height: 20px;
  color: var(--dim);
  transform: translateY(-50%);
  pointer-events: none;
}

.track-form input {
  width: 100%;
  height: 100%;
  min-height: 48px;
  padding: 0 14px 0 44px;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 15px;
  text-transform: uppercase;
}

.track-form input::placeholder {
  font-family: 'Inter', sans-serif;
  text-transform: none;
  color: var(--dim);
}

.track-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.track-hint button {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand);
  text-decoration: underline dotted;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
}

.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__trust svg {
  width: 18px;
  height: 18px;
  color: var(--ok);
}

/* карточка маршрута */
.route-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 30px 60px -30px rgba(11, 27, 52, 0.35);
}

.route-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.route-card__num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}

.route-card__num small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.route-map {
  position: relative;
  margin: 18px 0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 1px 1px, rgba(11, 27, 52, 0.08) 1px, transparent 0) 0 0 / 16px 16px,
    var(--surface-2);
  overflow: hidden;
}

.route-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.route-map .road {
  stroke: var(--line-2);
  stroke-width: 6;
}

.route-map .road-done {
  stroke: var(--brand);
  stroke-width: 6;
  stroke-dasharray: 64 100;
  stroke-dashoffset: 64;
  animation: drawRoute 2.4s ease forwards;
}

.route-map .city {
  fill: #fff;
  stroke: var(--brand);
  stroke-width: 4;
}

.route-map .city--end {
  stroke: var(--accent);
}

.route-map text {
  fill: var(--ink-2);
  stroke: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.route-map .truck circle {
  fill: var(--accent);
  stroke: rgba(255, 107, 26, 0.25);
  stroke-width: 10;
}

.route-map .truck path {
  stroke: #fff;
  stroke-width: 2.4;
}

.route-card__progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
}

.bar i {
  display: block;
  width: var(--w, 0%);
  height: 100%;
  border-radius: 3px;
  background: var(--brand);
  transition: width 1s ease;
}

.route-card__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.route-card__grid div {
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.route-card__grid b {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--ink);
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
  animation: bob 5s ease-in-out infinite;
}

.float-chip b {
  display: block;
  color: var(--ink);
}

.float-chip__icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}

.float-chip__icon svg {
  width: 18px;
  height: 18px;
}

.float-chip--1 { top: -22px; right: -18px; }
.float-chip--2 { bottom: -56px; left: -24px; animation-delay: 1.2s; }

/* ===== ЦИФРЫ ===== */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -40px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 18px;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.stat {
  padding: 30px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat:last-child {
  border-right: 0;
}

.stat__num {
  font-family: var(--font-head);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.1;
}

.stat__num small {
  font-size: 0.55em;
  color: var(--accent);
}

.stat p {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

/* ===== УСЛУГИ (карточки) ===== */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.service:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}

.icon-box svg {
  width: 26px;
  height: 26px;
}

.service h3 {
  margin: 22px 0 10px;
  font-size: 20px;
}

.service p {
  flex: 1;
  font-size: 15px;
  color: var(--muted);
}

.service__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.service__foot b {
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--ink);
}

.service__foot svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
}

/* ===== ЭТАПЫ ===== */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  border-top: 2px dashed var(--line-2);
}

.step {
  position: relative;
}

.step__num {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--brand);
}

.step:last-child .step__num {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.step p {
  font-size: 15px;
  color: var(--muted);
}

.step small {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
}

/* ===== СЕТЬ (схема) ===== */
.network {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}

.network__map {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0) 0 0 / 20px 20px,
    var(--navy-2);
  overflow: hidden;
}

.network__map svg {
  display: block;
  width: 100%;
  height: auto;
}

.network__map .link-line {
  stroke: rgba(143, 176, 255, 0.45);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  animation: dash 1.6s linear infinite;
}

.network__map .hub {
  fill: var(--accent);
  stroke: rgba(255, 107, 26, 0.3);
  stroke-width: 10;
}

.network__map .node {
  fill: #8fb0ff;
  stroke: none;
}

.network__map text {
  fill: rgba(255, 255, 255, 0.82);
  stroke: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.network__map .legend {
  fill: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.network__list {
  display: grid;
  gap: 14px;
}

.network__item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.network__item b {
  display: block;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.network__item span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.network__item svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 4px;
  color: var(--accent);
}

/* ===== ОТРАСЛИ ===== */
.industries {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.industry {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-weight: 600;
  line-height: 1.3;
}

.industry svg {
  width: 28px;
  height: 28px;
  color: var(--brand);
}

.industry small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

/* ===== ОТЗЫВЫ ===== */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.review {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.review__stars {
  margin-bottom: 14px;
  color: #f5a623;
  letter-spacing: 2px;
}

.review blockquote {
  flex: 1;
  margin-bottom: 22px;
  font-size: 16px;
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.review figcaption b {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--brand);
}

/* ===== CTA ===== */
.cta {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: center;
  padding: 56px;
  border-radius: 24px;
  background: var(--accent);
  color: #fff;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.07) 0 18px, transparent 18px 36px);
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
  mask-image: linear-gradient(90deg, transparent 40%, #000);
}

.cta > * {
  position: relative;
}

.cta h2 {
  font-size: clamp(28px, 3.6vw, 44px);
}

.cta p {
  max-width: 560px;
  margin-top: 12px;
  font-size: 17px;
  opacity: 0.9;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta__phone {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

/* ===== ВНУТРЕННИЕ СТРАНИЦЫ ===== */
.page-head {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 1px 1px, rgba(11, 27, 52, 0.08) 1px, transparent 0) 0 0 / 22px 22px,
    var(--bg);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--brand);
}

.crumbs span::before {
  content: '/';
  margin-right: 8px;
  color: var(--dim);
}

.page-head h1 {
  max-width: 820px;
  font-size: clamp(34px, 4.6vw, 56px);
}

.page-head p {
  max-width: 640px;
  margin-top: 16px;
  font-size: 18px;
  color: var(--muted);
}

/* ===== УСЛУГИ (страница) ===== */
.srv-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.srv-block:last-child {
  border-bottom: 0;
}

.srv-block:nth-child(even) .srv-visual {
  order: -1;
}

.srv-block h2 {
  margin: 16px 0 14px;
  font-size: clamp(26px, 3vw, 38px);
}

.srv-block > div > p {
  font-size: 17px;
  color: var(--muted);
}

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin: 24px 0 28px;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.srv-block__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.price-from {
  font-size: 14px;
  color: var(--muted);
}

.price-from b {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}

.srv-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 28px;
  border-radius: 22px;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.srv-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0) 0 0 / 20px 20px;
}

.srv-visual > * {
  position: relative;
}

.srv-visual__icon {
  position: absolute;
  right: 28px;
  bottom: 24px;
  color: rgba(255, 255, 255, 0.1);
}

.srv-visual__icon svg {
  width: 180px;
  height: 180px;
  stroke-width: 1.2;
}

.srv-visual__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 340px;
}

.srv-visual__stats div {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.srv-visual__stats b {
  display: block;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.srv-visual__tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* автопарк */
.fleet {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.vehicle {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.vehicle__pic {
  height: 70px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-end;
  color: var(--brand);
}

.vehicle__pic svg {
  height: 100%;
  width: auto;
  stroke-width: 1.6;
}

.vehicle h3 {
  font-size: 18px;
}

.vehicle dl {
  display: grid;
  gap: 6px;
  margin: 14px 0 18px;
  font-size: 14px;
}

.vehicle dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

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

.vehicle dd {
  font-weight: 600;
  text-align: right;
}

.vehicle__price {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.vehicle__price b {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--ink);
}

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

.chips span {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
}

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

.feature h3 {
  margin: 18px 0 8px;
  font-size: 19px;
}

.feature p {
  font-size: 15px;
  color: var(--muted);
}

/* ===== FAQ ===== */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 56px;
  align-items: start;
}

.faq__intro h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.4vw, 40px);
}

.faq__intro p {
  margin-bottom: 24px;
  color: var(--muted);
}

.faq__item {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  transition: transform 0.3s, background 0.3s, color 0.3s;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item.open .faq__icon {
  transform: rotate(45deg);
  background: var(--brand);
  color: #fff;
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq__a p {
  padding: 0 22px 20px;
  color: var(--muted);
}

/* ===== КАЛЬКУЛЯТОР ===== */
.calc {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  align-items: start;
}

.calc__form {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.calc__group + .calc__group {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.calc__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
}

.calc__title span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  font-size: 13px;
  color: #fff;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.route-pick {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: end;
}

.swap {
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--line-2);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--brand);
  transition: transform 0.3s, border-color 0.2s;
}

.swap:hover {
  border-color: var(--brand);
  transform: rotate(180deg);
}

.swap svg {
  width: 20px;
  height: 20px;
}

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

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: block;
  height: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.choice small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.choice span:hover {
  border-color: var(--line-2);
}

.choice input:checked + span {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.calc__result {
  position: sticky;
  top: 96px;
  border-radius: 20px;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.calc__route {
  padding: 24px 28px;
  background: var(--navy-2);
}

.calc__route-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
}

.calc__route-line i {
  flex: 1;
  height: 2px;
  border-top: 2px dashed rgba(255, 255, 255, 0.35);
}

.calc__route small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.calc__body {
  padding: 24px 28px 28px;
}

.calc__rows {
  display: grid;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.calc__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.calc__row b {
  text-align: right;
  font-weight: 600;
  color: #fff;
}

.calc__total {
  margin: 20px 0;
}

.calc__total span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.calc__total b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(34px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.1;
}

.calc__total small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #8fb0ff;
}

.calc__note {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== ПОЛЯ ===== */
.field > label:not(.check),
.label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.opt {
  font-weight: 400;
  color: var(--muted);
}

.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
  color: var(--dim);
}

.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

textarea.input {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

select.input {
  padding-right: 40px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6a80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  cursor: pointer;
}

.input-unit {
  position: relative;
}

.input-unit .input {
  padding-right: 48px;
}

.input-unit em {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-size: 14px;
  font-style: normal;
  color: var(--muted);
  pointer-events: none;
}

.field.error .input {
  border-color: var(--err);
}

.field__err {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: var(--err);
}

.field.error .field__err {
  display: block;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}

.check input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--brand);
  cursor: pointer;
}

.check a {
  color: var(--brand);
  text-decoration: underline;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field--full {
  grid-column: 1 / -1;
}

.pass-wrap {
  position: relative;
}

.pass-wrap .input {
  padding-right: 92px;
}

.pass-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

/* сообщение об успехе */
.success {
  padding: 32px;
  border: 1px solid #bfe5cc;
  border-radius: 18px;
  background: var(--ok-soft);
  text-align: center;
}

.success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok);
  color: #fff;
}

.success__icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 3;
}

.success h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

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

.success .mono {
  font-weight: 600;
  color: var(--ink);
}

/* заявка под калькулятором */
.order {
  margin-top: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.order h2 {
  margin-bottom: 6px;
  font-size: 26px;
}

.order > p {
  margin-bottom: 22px;
  color: var(--muted);
}

/* ===== ОТСЛЕЖИВАНИЕ ===== */
.track-page .track-form {
  max-width: 720px;
  margin-top: 28px;
}

.samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.samples button {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
}

.samples button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.track-result {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}

.shipment {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
}

.shipment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.shipment__num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
}

.shipment__num small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.shipment__route {
  padding: 28px;
}

.leg {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.leg__city {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.leg__city small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.leg__city:last-child {
  text-align: right;
}

.leg__track {
  position: relative;
  height: 4px;
  margin: 0 22px;
  border-radius: 2px;
  background: var(--surface-2);
}

.leg__track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p, 0%);
  border-radius: 2px;
  background: var(--brand);
  transition: width 1s ease;
}

.leg__truck {
  position: absolute;
  top: 50%;
  left: var(--p, 0%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(255, 107, 26, 0.18);
  transform: translate(-50%, -50%);
  transition: left 1s ease;
}

.leg__truck svg {
  width: 20px;
  height: 20px;
}

.shipment__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.shipment__info div {
  padding: 16px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.shipment__info div:nth-child(3n) {
  border-right: 0;
}

.shipment__info b {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: var(--ink);
}

.timeline {
  padding: 28px;
}

.timeline h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.tl {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  padding-bottom: 22px;
}

.tl::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: -2px;
  left: 11px;
  width: 2px;
  background: var(--line);
}

.tl:last-child {
  padding-bottom: 0;
}

.tl:last-child::before {
  display: none;
}

.tl__dot {
  position: relative;
  width: 24px;
  height: 24px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
}

.tl.done .tl__dot {
  border-color: var(--brand);
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.tl.done::before {
  background: var(--brand);
}

.tl.now .tl__dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 107, 26, 0.18);
}

.tl.now .tl__dot::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.tl b {
  display: block;
  font-size: 15px;
}

.tl span {
  font-size: 13px;
  color: var(--muted);
}

.tl:not(.done):not(.now) b {
  color: var(--dim);
}

.side-card + .side-card {
  margin-top: 16px;
}

.side-card h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.driver {
  display: flex;
  align-items: center;
  gap: 14px;
}

.driver b {
  display: block;
}

.driver span {
  font-size: 14px;
  color: var(--muted);
}

.not-found {
  padding: 48px 32px;
  border: 1px dashed var(--line-2);
  border-radius: 20px;
  background: var(--surface);
  text-align: center;
}

.not-found h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.not-found p {
  max-width: 460px;
  margin: 0 auto;
  color: var(--muted);
}

.inline-form {
  display: flex;
  gap: 8px;
}

.inline-form .input {
  flex: 1;
  min-width: 0;
}

/* ===== КОНТАКТЫ ===== */
.offices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.office {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.office__city {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
}

.office__city small {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
}

.office ul {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.office li {
  display: flex;
  gap: 8px;
}

.office li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--brand);
}

.office a:hover {
  color: var(--brand);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: start;
}

.dispatch {
  padding: 32px;
  border-radius: 20px;
  background: var(--navy);
  color: #fff;
}

.dispatch h2 {
  font-size: 26px;
}

.dispatch p {
  margin: 10px 0 24px;
  color: rgba(255, 255, 255, 0.65);
}

.dispatch__line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dispatch__line svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.dispatch__line span {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.dispatch__line b {
  font-family: var(--font-head);
  font-size: 18px;
}

.form-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.form-card h2 {
  margin-bottom: 6px;
  font-size: 26px;
}

.form-card > p {
  margin-bottom: 22px;
  color: var(--muted);
}

/* ===== ВХОД ===== */
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.auth__side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 48px;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.auth__side::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0) 0 0 / 22px 22px;
}

.auth__side > * {
  position: relative;
}

.auth__side .logo__text small {
  color: rgba(255, 255, 255, 0.6);
}

.auth__side h2 {
  max-width: 460px;
  font-size: clamp(28px, 3vw, 40px);
}

.auth__perks {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.auth__perks li {
  display: flex;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.auth__perks svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.auth__side small {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.auth__main {
  display: flex;
  flex-direction: column;
  padding: 32px 40px;
  background: var(--surface);
}

.auth__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.auth__top .logo {
  display: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.back-link:hover {
  color: var(--ink);
}

.back-link svg {
  width: 18px;
  height: 18px;
}

.auth__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.auth__box {
  width: 100%;
  max-width: 440px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-2);
}

.tab {
  padding: 10px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(11, 27, 52, 0.12);
}

.auth__box h1 {
  margin-bottom: 6px;
  font-size: 30px;
}

.auth__box .sub {
  margin-bottom: 24px;
  color: var(--muted);
}

.auth__box .field {
  margin-bottom: 14px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 22px;
  font-size: 14px;
}

/* ===== ЛИЧНЫЙ КАБИНЕТ ===== */
.cab {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.cab__side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  padding: 24px 16px;
  background: var(--navy);
  color: #fff;
}

.cab__side .logo {
  padding: 0 8px 24px;
}

.cab__side .logo__text small {
  color: rgba(255, 255, 255, 0.6);
}

.cab__menu {
  display: grid;
  gap: 4px;
}

.cab__menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.2s, color 0.2s;
}

.cab__menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.cab__menu a.active {
  background: rgba(143, 176, 255, 0.16);
  color: #fff;
}

.cab__menu svg {
  width: 20px;
  height: 20px;
}

.cab__manager {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.cab__manager b {
  display: block;
  margin: 4px 0 2px;
  font-size: 15px;
  color: #fff;
}

.cab__manager a {
  font-weight: 600;
  color: #8fb0ff;
}

.cab__main {
  padding: 32px 40px 56px;
  min-width: 0;
}

.cab__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.cab__top h1 {
  font-size: 30px;
}

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

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.kpi {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.kpi span {
  font-size: 13px;
  color: var(--muted);
}

.kpi b {
  display: block;
  margin-top: 4px;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.kpi small {
  font-size: 12px;
  color: var(--ok);
}

.table-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}

.table-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.table-card__head h2 {
  font-size: 19px;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-2);
}

.seg button {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.seg button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(11, 27, 52, 0.12);
}

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

.orders {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}

.orders th {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.orders td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.orders tr:last-child td {
  border-bottom: 0;
}

.orders tbody tr:hover {
  background: #f8fafc;
}

.orders .mono {
  font-weight: 600;
}

.orders td small {
  display: block;
  color: var(--muted);
}

.orders .num {
  text-align: right;
  white-space: nowrap;
}

/* ===== ДОКУМЕНТ (политика) ===== */
.doc {
  max-width: 820px;
}

.doc h2 {
  margin: 36px 0 12px;
  font-size: 24px;
}

.doc p,
.doc li {
  color: var(--ink-2);
}

.doc p + p {
  margin-top: 12px;
}

.doc ul {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-left: 20px;
  list-style: disc;
}

/* ===== ПОДВАЛ ===== */
.footer {
  margin-top: 100px;
  padding: 64px 0 28px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer .logo__text b {
  color: #fff;
}

.footer .logo__text small {
  color: rgba(255, 255, 255, 0.55);
}

.footer__about p {
  max-width: 320px;
  margin-top: 16px;
  font-size: 14px;
}

.footer h4 {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.footer__col a {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__phone {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: #fff !important;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a:hover {
  color: #fff;
}

/* ===== УВЕДОМЛЕНИЕ ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 20px 40px -12px rgba(11, 27, 52, 0.5);
  font-size: 15px;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.toast::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ===== АНИМАЦИИ ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.service.reveal.visible:hover {
  transform: translateY(-4px);
}

@keyframes drawRoute {
  to { stroke-dashoffset: 0; }
}

@keyframes dash {
  to { stroke-dashoffset: -28; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 1180px) {
  .nav__phone {
    display: none;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .industries {
    grid-template-columns: repeat(3, 1fr);
  }

  .fleet {
    grid-template-columns: repeat(3, 1fr);
  }

  .offices {
    grid-template-columns: repeat(2, 1fr);
  }

  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .burger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-height: calc(100vh - 72px);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 20px 30px -20px rgba(11, 27, 52, 0.3);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    gap: 2px;
  }

  .nav__list a {
    padding: 14px 12px;
    font-size: 17px;
  }

  .nav__phone {
    display: flex;
    padding: 12px;
    border-radius: 10px;
    background: var(--surface-2);
    text-align: left;
  }

  .nav__actions {
    flex-direction: column;
  }

  .nav__actions .btn {
    width: 100%;
    padding: 14px;
  }

  .nav__actions .btn--ghost {
    border-color: var(--line-2);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .route-card {
    max-width: 560px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .steps::before {
    display: none;
  }

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

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

  .cta {
    grid-template-columns: 1fr;
    padding: 44px 32px;
  }

  .cta__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .srv-block {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .srv-block .srv-visual {
    order: -1;
  }

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

  .faq {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .calc,
  .track-result,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .calc__result {
    position: static;
  }

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

  .auth__side {
    display: none;
  }

  .auth__main {
    padding: 24px;
  }

  .auth__top {
    justify-content: space-between;
  }

  .auth__top .logo {
    display: inline-flex;
  }

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

  .cab__side {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
  }

  .cab__side .logo {
    padding: 0;
    margin-right: auto;
  }

  .cab__menu {
    display: flex;
    gap: 4px;
    width: 100%;
    overflow-x: auto;
  }

  .cab__menu a {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 14px;
  }

  .cab__manager {
    display: none;
  }

  .cab__main {
    padding: 24px 20px 48px;
  }

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

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .topbar__info span:not(:first-child) {
    display: none;
  }

  .header__inner {
    height: 64px;
  }

  .nav {
    max-height: calc(100vh - 64px);
    padding: 12px 16px 20px;
  }

  .logo__text small {
    display: none;
  }

  .header .btn--accent.hide-sm {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 40px 0 80px;
  }

  .hero__text {
    font-size: 16px;
  }

  .track-form {
    flex-direction: column;
  }

  .track-form .btn {
    width: 100%;
  }

  .hero__actions .btn {
    flex: 1;
  }

  .route-card {
    padding: 18px;
  }

  .route-card__grid {
    grid-template-columns: 1fr 1fr;
  }

  .route-card__grid div:last-child {
    grid-column: 1 / -1;
  }

  .float-chip {
    display: none;
  }

  .stat {
    padding: 22px 18px;
  }

  .services,
  .industries,
  .fleet,
  .offices,
  .steps {
    grid-template-columns: 1fr;
  }

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

  .industry {
    padding: 18px;
  }

  .cta {
    padding: 36px 22px;
    border-radius: 20px;
  }

  .cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-head {
    padding: 36px 0 32px;
  }

  .page-head p {
    font-size: 16px;
  }

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

  .srv-visual {
    padding: 20px;
  }

  .srv-visual__icon svg {
    width: 120px;
    height: 120px;
  }

  .calc__form,
  .order,
  .form-card,
  .dispatch {
    padding: 22px 18px;
  }

  .grid-2,
  .grid-3,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .route-pick {
    grid-template-columns: 1fr;
  }

  .swap {
    justify-self: center;
    transform: rotate(90deg);
  }

  .swap:hover {
    transform: rotate(270deg);
  }

  .shipment__head,
  .shipment__route,
  .timeline {
    padding: 20px;
  }

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

  .leg__track {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 18px 19px 6px;
  }

  .leg__city {
    font-size: 17px;
  }

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

  .shipment__info div {
    padding: 14px 20px;
  }

  .shipment__info div:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .shipment__info div:nth-child(2n) {
    border-right: 0;
  }

  .inline-form {
    flex-direction: column;
  }

  .inline-form .input {
    flex: none;
  }

  .kpis {
    gap: 10px;
  }

  .kpi {
    padding: 16px;
  }

  .kpi b {
    font-size: 22px;
  }

  .cab__top h1 {
    font-size: 24px;
  }

  .footer {
    margin-top: 72px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
