/* ============================================================================
   NET DELIVERY — дизайн-система
   Раскладка и поведение — по образцу fedex.com, цвета — фирменные:
   тёмный #17181C и жёлтый #FFC400.
   ========================================================================= */

:root {
  --ink:        #17181C;
  --ink-2:      #23242A;
  --ink-3:      #33343A;
  --yellow:     #FFC400;
  --yellow-dk:  #E6AF00;
  --yellow-lt:  #FFF6D9;

  --text:       #17181C;
  --muted:      #56575B;
  --muted-2:    #8A8B8D;
  --line:       #E4E5E7;
  --line-2:     #F0F0F1;
  --bg:         #FFFFFF;
  --bg-soft:    #F5F5F6;

  --green:      #1B8A4B;
  --blue:       #1D4F91;
  --red:        #C4342B;

  --radius:     6px;
  --radius-lg:  10px;
  --shadow:     0 2px 8px rgba(23,24,28,.08);
  --shadow-lg:  0 12px 40px rgba(23,24,28,.14);

  --maxw:       1240px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

/* Страница никогда не должна прокручиваться вбок: широкие блоки
   (таблицы, шкала маршрута) скроллятся внутри своих контейнеров. */
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "PingFang SC", "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(30px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 { font-size: clamp(18px, 2.2vw, 22px); }

p { margin: 0 0 14px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny  { font-size: 12px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-dk); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }

.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 17px; }
.btn-block { width: 100%; }

/* ── Верхняя служебная полоса ────────────────────────────────────────────── */

.utility {
  background: var(--ink);
  color: #C4C5C6;
  font-size: 13px;
}
.utility .wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  height: 38px;
}
.utility a { color: #C4C5C6; }
.utility a:hover { color: var(--yellow); text-decoration: none; }
.utility .u-sep { width: 1px; height: 16px; background: #3A3B40; }

.lang-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.lang-form select {
  background: transparent;
  color: #C4C5C6;
  border: 1px solid #3A3B40;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 13px;
  cursor: pointer;
}
.lang-form select option { color: #17181C; }

/* ── Шапка ───────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--ink);
  display: grid; place-items: center;
  flex: none;
}
.logo-mark svg { display: block; }
.logo-text { line-height: 1; }
.logo-text .lt-1 {
  font-size: 21px; font-weight: 900; letter-spacing: -.03em; color: var(--ink);
}
.logo-text .lt-1 span { font-weight: 400; color: #56575B; }
.logo-text .lt-2 {
  margin-top: 4px;
  font-size: 8.5px;
  letter-spacing: .18em;
  color: var(--muted-2);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 5px;
}
.logo-text .lt-2::before {
  content: ''; width: 12px; height: 3px; background: var(--yellow); border-radius: 2px;
}

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav a {
  padding: 10px 13px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  border-radius: var(--radius);
  border-bottom: 3px solid transparent;
}
.main-nav a:hover { text-decoration: none; border-bottom-color: var(--yellow); }
.main-nav a.active { border-bottom-color: var(--yellow); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span,
.burger span::before,
.burger span::after {
  content: ''; display: block;
  width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after  { position: absolute; top: 6px; }

/* ── Герой ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .5;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(23,24,28,.94) 0%, rgba(23,24,28,.78) 45%, rgba(23,24,28,.35) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 72px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
}
.hero-eyebrow::before { content: ''; width: 26px; height: 3px; background: var(--yellow); }
.hero h1 { color: #fff; max-width: 720px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero-sub { margin-top: 18px; max-width: 560px; color: #D5D6D8; font-size: 18px; }
.hero-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Карточка отслеживания (как на fedex.com) ────────────────────────────── */

.track-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px 28px 28px;
  max-width: 640px;
  margin-top: 38px;
}
.track-card h2 { font-size: 24px; margin-bottom: 6px; }
.track-card .tc-hint { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

.track-form { display: flex; gap: 10px; flex-wrap: wrap; }
.track-form .field { flex: 1 1 280px; min-width: 0; }

.input {
  width: 100%;
  padding: 15px 16px;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s ease;
}
.input:focus { border-color: var(--ink); }
.input::placeholder { color: var(--muted-2); }

.label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

/* ── Секции ──────────────────────────────────────────────────────────────── */

.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .muted { color: #9A9BA0; }

.section-head { margin-bottom: 38px; max-width: 720px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.section-head .eyebrow::before { content: ''; width: 22px; height: 3px; background: var(--yellow); }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 12px; margin-bottom: 0; }
.section-dark .section-head .eyebrow { color: var(--yellow); }
.section-dark .section-head p { color: #9A9BA0; }

/* ── Сетки и карточки ────────────────────────────────────────────────────── */

.grid { display: grid; gap: 22px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-pad { padding: 24px; }

.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.svc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.svc-card .svc-img { height: 170px; background-size: cover; background-position: center; }
.svc-card .svc-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.svc-card h3 { margin-bottom: 8px; }
.svc-card p { color: var(--muted); font-size: 15px; flex: 1; }
.svc-card .svc-more {
  margin-top: 12px;
  font-weight: 800; font-size: 14px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.svc-card .svc-more::after { content: '→'; color: var(--yellow-dk); }

.feature { display: flex; gap: 16px; }
.feature-ico {
  flex: none; width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--yellow);
  display: grid; place-items: center;
}
.section-dark .feature-ico { background: var(--yellow); }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }
.section-dark .feature p { color: #9A9BA0; }

/* ── Метрики ─────────────────────────────────────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.section-dark .stats { background: #33343A; }
.stat { background: #fff; padding: 28px 22px; text-align: center; }
.section-dark .stat { background: var(--ink); }
.stat .stat-num { font-size: 38px; font-weight: 900; letter-spacing: -.03em; color: var(--ink); }
.section-dark .stat .stat-num { color: var(--yellow); }
.stat .stat-lbl { font-size: 13px; color: var(--muted); margin-top: 4px; }
.section-dark .stat .stat-lbl { color: #9A9BA0; }

/* ── Курсы валют ─────────────────────────────────────────────────────────── */

.rates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rate {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.rate .r-pair { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .04em; }
.rate .r-val { font-size: 27px; font-weight: 900; letter-spacing: -.02em; margin-top: 5px; }
.rate .r-note { font-size: 12px; color: var(--muted-2); margin-top: 3px; }

/* ============================================================================
   ОТСЛЕЖИВАНИЕ — как в трекинге FedEx
   ========================================================================= */

.track-hero {
  background: var(--ink);
  color: #fff;
  padding: 34px 0 30px;
}
.track-hero .th-label {
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--yellow);
}
.track-hero .th-number {
  font-size: clamp(26px, 4vw, 40px); font-weight: 900; letter-spacing: -.02em;
  margin-top: 6px;
}
.track-hero .th-meta { margin-top: 8px; color: #9A9BA0; font-size: 15px; }

.track-status-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 28px 0 8px;
}

.status-headline { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.status-badge {
  flex: none;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px; font-weight: 800;
  background: var(--yellow-lt);
  color: #7A5C00;
  border: 1px solid #F2DE9B;
}
.status-badge.done { background: #E7F5EC; color: #12683A; border-color: #BFE4CE; }
.status-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }

.status-title { font-size: clamp(22px, 3vw, 32px); font-weight: 900; letter-spacing: -.02em; }
.status-sub { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* Шкала прогресса */
.progress {
  margin: 34px 0 10px;
  position: relative;
}
/* Рельс идёт от центра первого узла до центра последнего, поэтому отступ = радиус узла */
.progress-rail {
  position: relative;
  height: 8px;
  margin: 0 11px;
  background: var(--line);
  border-radius: 999px;
}
.progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--yellow);
  border-radius: 999px;
  transition: width .5s ease;
}
.progress-fill.done { background: var(--green); }

.progress-nodes {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; justify-content: space-between;
}
.p-node {
  width: 22px; height: 22px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--line);
  display: grid; place-items: center;
  flex: none;
}
.p-node.done { background: var(--yellow); border-color: var(--yellow); }
.p-node.current {
  background: var(--ink); border-color: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255,196,0,.28);
}
.p-node.done.final { background: var(--green); border-color: var(--green); }

.progress-labels {
  display: flex; justify-content: space-between;
  margin-top: 16px; gap: 8px;
}
.progress-labels > div {
  flex: 1; min-width: 0;
  font-size: 12.5px; line-height: 1.25;
  color: var(--muted-2);
  text-align: center;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
.progress-labels > div:first-child { text-align: left; }
.progress-labels > div:last-child  { text-align: right; }
.progress-labels > div.on { color: var(--ink); font-weight: 800; }
.progress-labels > div.done { color: var(--muted); }

/* Раскладка результата */
.track-body { padding: 34px 0 64px; }
.track-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }
.track-cols > * { min-width: 0; }

.panel {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.panel-body { padding: 22px; }

/* Таблица «путешествие груза» */
.travel { width: 100%; border-collapse: collapse; }
.travel th {
  text-align: left;
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 0 14px 12px 0;
  border-bottom: 1px solid var(--line);
}
.travel td { padding: 15px 14px 15px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; font-size: 15px; }
.travel tr:last-child td { border-bottom: none; }
.travel .t-date { white-space: nowrap; color: var(--muted); font-size: 14px; width: 1%; }
.travel .t-status { font-weight: 700; }
.travel .t-loc { color: var(--muted); }
.travel .t-comment { color: var(--muted); font-size: 14px; margin-top: 3px; }
.travel tr.is-latest .t-status { color: var(--ink); }
.travel tr.is-latest .t-status::before {
  content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow); margin-right: 8px; vertical-align: middle;
}

/* Список «ключ — значение» */
.kv { width: 100%; border-collapse: collapse; }
.kv td { padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; vertical-align: top; }
.kv tr:last-child td { border-bottom: none; }
.kv .k { color: var(--muted); width: 52%; padding-right: 12px; }
.kv .v { font-weight: 700; text-align: right; }

.qr-box { text-align: center; padding: 6px 0 2px; }
.qr-box img { width: 148px; height: 148px; margin: 0 auto; }
.qr-box .qr-hint { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

.comment-item {
  border-left: 3px solid var(--yellow);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.comment-item:last-child { margin-bottom: 0; }
.comment-item .c-text { font-size: 15px; }
.comment-item .c-meta { font-size: 12.5px; color: var(--muted-2); margin-top: 5px; }

/* Пустое состояние / не найдено */
.empty {
  text-align: center;
  padding: 54px 24px;
  color: var(--muted);
}
.empty .e-ico {
  width: 66px; height: 66px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--bg-soft);
  display: grid; place-items: center;
}
.empty h3 { margin-bottom: 8px; color: var(--ink); }

.alert {
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 15px;
  border: 1px solid;
  margin-bottom: 18px;
}
.alert-warn  { background: var(--yellow-lt); border-color: #F2DE9B; color: #7A5C00; }
.alert-error { background: #FDEDEC; border-color: #F5C6C2; color: #96271F; }
.alert-info  { background: #EEF3FA; border-color: #CBDBF0; color: #1D4F91; }

/* ── Личный кабинет ──────────────────────────────────────────────────────── */

.dash-head { background: var(--ink); color: #fff; padding: 30px 0; }
.dash-head h1 { color: #fff; font-size: 28px; }
.dash-head .dh-sub { color: #9A9BA0; margin-top: 6px; font-size: 15px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.dash-stat { background: var(--ink-2); border-radius: var(--radius-lg); padding: 18px 20px; }
.dash-stat .ds-num { font-size: 30px; font-weight: 900; color: var(--yellow); }
.dash-stat .ds-lbl { font-size: 13px; color: #9A9BA0; margin-top: 2px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.tab {
  padding: 13px 18px;
  font-size: 15px; font-weight: 700;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  background: none; border-top: none; border-left: none; border-right: none;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--yellow); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.ship-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 14px;
  transition: box-shadow .15s ease;
}
.ship-row:hover { box-shadow: var(--shadow); }
.ship-row .sr-top {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.ship-row .sr-num { font-size: 19px; font-weight: 900; letter-spacing: -.01em; }
.ship-row .sr-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.ship-row .sr-meta {
  display: flex; gap: 26px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted);
  margin-top: 14px;
}
.ship-row .sr-meta b { color: var(--ink); font-weight: 700; }

.mini-progress { display: flex; gap: 4px; }
.mini-progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.mini-progress span.done { background: var(--yellow); }
.mini-progress span.done.final { background: var(--green); }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th {
  text-align: left; padding: 12px 14px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.table td { padding: 14px; border-bottom: 1px solid var(--line-2); }
.table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800;
  background: var(--bg-soft); color: var(--muted);
}
.tag-yellow { background: var(--yellow-lt); color: #7A5C00; }
.tag-green  { background: #E7F5EC; color: #12683A; }
.tag-red    { background: #FDEDEC; color: #96271F; }

/* ── Логин ───────────────────────────────────────────────────────────────── */

.auth-wrap {
  min-height: calc(100vh - 76px - 38px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-visual {
  background-size: cover; background-position: center;
  position: relative;
  display: grid; align-items: end;
}
.auth-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,24,28,.35), rgba(23,24,28,.9));
}
.auth-visual .av-text { position: relative; z-index: 2; padding: 46px; color: #fff; }
.auth-visual .av-text h2 { color: #fff; max-width: 420px; }
.auth-visual .av-text p { color: #C4C5C6; margin-top: 12px; max-width: 420px; }

.auth-form { display: grid; place-items: center; padding: 48px 24px; }
.auth-form .af-inner { width: 100%; max-width: 380px; }
.auth-form h1 { font-size: 30px; margin-bottom: 8px; }
.auth-form .af-sub { color: var(--muted); margin-bottom: 28px; }
.form-row { margin-bottom: 18px; }

/* ── Подвал ──────────────────────────────────────────────────────────────── */

.site-footer { background: var(--ink); color: #9A9BA0; padding: 56px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.site-footer h4 {
  color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; font-size: 15px; }
.site-footer a { color: #9A9BA0; }
.site-footer a:hover { color: var(--yellow); text-decoration: none; }
.footer-about p { font-size: 15px; max-width: 320px; }
.footer-logo { margin-bottom: 18px; }
.footer-logo .lt-1 { color: #fff; }
.footer-logo .lt-1 span { color: #9A9BA0; }
.footer-contacts { margin-top: 18px; }
.footer-contacts div { margin-bottom: 8px; font-size: 15px; }
.footer-contacts b { color: #fff; font-weight: 700; }

.footer-bottom {
  margin-top: 46px;
  border-top: 1px solid #2B2C31;
  padding: 22px 0;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13.5px;
}

/* Полоса режимов доставки */
.modes-strip {
  background: var(--yellow);
  color: var(--ink);
  padding: 18px 0;
}
.modes-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.modes-strip .ms-item { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15px; }

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

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .rates { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .track-cols { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { min-height: 200px; }
  .dash-stats { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .stats, .rates { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero .wrap { padding-top: 48px; padding-bottom: 48px; }
  .track-card { padding: 20px; }
  .progress-labels > div { font-size: 10.5px; }
  .p-node { width: 18px; height: 18px; margin-top: -5px; border-width: 2px; }
  .ship-row .sr-actions { margin-left: 0; width: 100%; }

  /* Служебная полоса не помещалась в строку и растягивала страницу по ширине */
  .utility .wrap {
    height: auto;
    padding-top: 9px;
    padding-bottom: 9px;
    gap: 10px 14px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .utility .u-sep { display: none; }

  /* Шапка: логотип ужимаем, чтобы бургер всегда оставался на экране */
  .site-header .wrap { height: 64px; gap: 10px; }
  .logo { min-width: 0; }
  .logo-mark { width: 38px; height: 38px; border-radius: 9px; }
  .logo-text .lt-1 { font-size: 17px; }
  .logo-text .lt-2 { font-size: 7px; letter-spacing: .12em; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 9px 12px; font-size: 13px; }
  .burger { width: 40px; height: 40px; }
}

/* Узкие телефоны: кнопки входа уезжают в бургер-меню, в шапке остаётся
   только логотип и кнопка меню — иначе строка не помещается в экран. */
@media (max-width: 560px) {
  .header-actions .btn { display: none; }
  .mobile-nav .mn-auth { display: block; }
}


/* Самые узкие телефоны (360px и меньше) */
@media (max-width: 420px) {
  .progress-labels > div { font-size: 9.5px; line-height: 1.15; }
  .travel th { font-size: 10px; padding-right: 8px; }
  .travel td { font-size: 13.5px; padding-right: 8px; }
  .travel .t-date { font-size: 12.5px; }
  .panel-head { padding: 14px 16px; font-size: 14px; }
  .panel-body { padding: 16px; }
  .track-hero .th-meta { font-size: 13.5px; }
  .status-sub { font-size: 13.5px; }
  .kv td { font-size: 14px; }
  .btn { padding: 12px 18px; font-size: 14px; }
  .btn-lg { padding: 14px 22px; font-size: 15px; }
}

/* Мобильное меню */
.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-2);
  font-weight: 700;
}
.mobile-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.mobile-nav .mn-auth { display: none; }
.mobile-nav .mn-auth a { color: var(--ink); }
.mobile-nav .mn-auth .mn-primary {
  background: var(--yellow);
  font-weight: 800;
}
.mobile-nav .mn-auth .mn-primary:hover { background: var(--yellow-dk); }

@media print {
  .site-header, .utility, .site-footer, .hero-cta, .burger, .mobile-nav { display: none !important; }
  body { font-size: 12px; }
}
