/* ===== Курьерск — design tokens ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #faf7f3;
  --bg-peach: #fbede2;
  --bg-peach-deep: #f6dcc8;
  --bg-dark: #1f1e1f;
  --bg-dark-2: #2a2829;

  --ink: #1f1e1f;
  --ink-2: #4a4845;
  --ink-3: #8a8682;
  --ink-on-dark: #f5f1ec;
  --ink-on-dark-2: #b8b3ad;

  --accent: #e8420c;
  --accent-hover: #d33908;
  --accent-soft: #fde2d4;
  --yellow: #ffd84d;
  --green: #2f7d4f;

  --hairline: rgba(31, 30, 31, 0.10);
  --hairline-strong: rgba(31, 30, 31, 0.18);
  --hairline-on-dark: rgba(245, 241, 236, 0.12);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(31,30,31,0.04), 0 2px 6px rgba(31,30,31,0.05);
  --shadow-md: 0 4px 12px rgba(31,30,31,0.06), 0 12px 32px rgba(31,30,31,0.08);
  --shadow-lg: 0 24px 60px rgba(31,30,31,0.14);

  --font-display: 'Unbounded', 'Helvetica Neue', system-ui, sans-serif;
  --font-text: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Typography ===== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.eyebrow.on-dark { color: var(--ink-on-dark-2); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.h-xl { font-size: clamp(56px, 7vw, 96px); font-weight: 600; letter-spacing: -0.035em; }
.h-lg { font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.03em; }
.h-md { font-size: clamp(28px, 3vw, 40px); }
.h-sm { font-size: 22px; letter-spacing: -0.01em; }

.lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 16px;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(232,66,12,0.25);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-dark {
  background: var(--ink);
  color: var(--ink-on-dark);
}
.btn-dark:hover { background: #000; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-ghost.on-dark { color: var(--ink-on-dark); border-color: var(--hairline-on-dark); }
.btn-ghost.on-dark:hover { background: var(--bg-dark-2); }
.btn-lg { padding: 20px 32px; font-size: 17px; }

/* ===== Section helpers ===== */
section { position: relative; }
.section { padding: 100px 0; }
.section-tight { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-peach { background: var(--bg-peach); }
.section-dark { background: var(--bg-dark); color: var(--ink-on-dark); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 56px;
  max-width: 720px;
}
.section-head .lead { color: var(--ink-2); }
.section-dark .section-head .lead { color: var(--ink-on-dark-2); }

/* ===== Cards ===== */
.card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  padding: 28px;
}
.card-soft {
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  padding: 28px;
}

/* ===== City grid background pattern (legacy — now scoped only to city-grid-dark when needed) ===== */
.city-grid-dark {
  background-image:
    linear-gradient(rgba(245,241,236,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,241,236,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Dashed route line */
.route {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  fill: none;
  animation: dash 30s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -1000; }
}

/* ===== Pills / Tags ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-peach);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(232,66,12,0.12);
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pill-dot.live { animation: pulse 2s infinite; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(47,125,79,0.5); background: var(--green); }
  50% { box-shadow: 0 0 0 6px rgba(47,125,79,0); background: var(--green); }
}

/* Form field */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.input {
  background: #fff;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Choice chip */
.chip {
  border: 1px solid var(--hairline-strong);
  background: #fff;
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: all .15s ease;
  text-align: left;
  width: 100%;
}
.chip:hover { border-color: var(--ink); }
.chip.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}
.chip-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg-peach);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.chip.selected .chip-icon { background: #fff; }

/* hover card lift */
.lift {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--hairline-strong);
}

/* divider */
.divider {
  height: 1px;
  background: var(--hairline);
  width: 100%;
}

/* ===== Marquee ===== */
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: scroll 40s linear infinite;
  width: max-content;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ticker */
.ticker {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline-on-dark);
  border-bottom: 1px solid var(--hairline-on-dark);
  overflow: hidden;
  position: relative;
}

/* number flip helper */
.num-mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-peach);
  color: var(--accent);
  border: 1px solid rgba(232,66,12,0.18);
}

/* ===== Footer legal block (ИП реквизиты) ===== */
.footer-legal {
  margin-top: 16px;
  font-style: normal;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.45);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ===== Responsive ===== */
html, body { overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .container { padding: 0 20px; }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .section-tight { padding: 48px 0; }
  .container { padding: 0 16px; }
  .section-head { margin-bottom: 32px; }
  .h-xl { font-size: clamp(34px, 9vw, 56px); letter-spacing: -0.025em; }
  .h-lg { font-size: clamp(28px, 7.5vw, 42px); letter-spacing: -0.02em; }
  .h-md { font-size: clamp(24px, 6vw, 32px); }
  .h-sm { font-size: 18px; }
  .lead { font-size: 16px; line-height: 1.55; }
  .btn { padding: 14px 22px; font-size: 15px; }
  .btn-lg { padding: 16px 26px; font-size: 16px; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .h-xl { font-size: clamp(28px, 8.5vw, 40px); }
  .btn-lg { padding: 14px 20px; font-size: 15px; }
}

/* Минимальная тапаемость 44×44 для интерактивных элементов на тач-устройствах */
@media (hover: none) and (pointer: coarse) {
  .btn, button, a.btn, .faq-q, .topnav a {
    min-height: 44px;
  }
}
