/* Набор курьеров · лендинг. Самостоятельный, без внешних зависимостей. */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-cyrillic.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #F7EFE4;
  --bg-deep: #EFE2D1;
  --surface: #FFFAF3;
  --ink: #1C1A17;
  --muted: #5A5249;
  --line: #E2D3C0;
  --accent: #D2401A;
  --accent-hover: #B23412;
  --accent-soft: #F5CFBB;
  --on-ink: #F7EFE4;
  --on-ink-muted: #CFC3B3;

  --f-head: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: 16px;
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-body);
  overflow-x: clip;
}

h1, h2, h3 { margin: 0; }
p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

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

.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 15px/1.2 var(--f-head);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand__mark { width: 30px; height: 30px; color: var(--accent); flex: none; }

.tag {
  padding: 6px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

/* ── Первый экран ──────────────────────── */

.hero { padding: 12px 0 48px; overflow: clip; }

.hero__grid {
  display: grid;
  gap: 32px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-hover);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  font: 800 clamp(36px, 10.4vw, 84px)/1.02 var(--f-head);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h1-mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.h1-mark::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: 0.3em;
  bottom: -0.08em;
  height: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14c40-9 90-12 150-8s100 3 144-4' fill='none' stroke='%23D2401A' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1;
}

.earnings {
  margin-top: 28px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.45;
}
.earnings__amount {
  margin-bottom: 5px;
  color: var(--accent-hover);
  font: 700 clamp(25px, 4vw, 40px)/1.15 var(--f-head);
}
.earnings a { color: inherit; text-decoration: underline; }

.lead {
  margin-top: 22px;
  max-width: 30ch;
  color: var(--muted);
  font-size: clamp(18px, 4.6vw, 22px);
  line-height: 1.45;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  margin-top: 28px;
  padding: 0 14px 0 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 700 18px/1.2 var(--f-body);
  text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(178, 52, 18, 0.75);
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }

.btn__arrow {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex: none;
  transition: transform 0.18s ease;
}
.btn:hover .btn__arrow { transform: translateX(3px); }

.dest {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}
.dest svg { width: 18px; height: 18px; flex: none; align-self: flex-start; margin-top: 3px; }
.dest b { color: var(--ink); font-weight: 600; }

.hero__media { position: relative; }
.hero__media::before {
  content: "";
  position: absolute;
  inset: 14% -8% -6% 18%;
  border-radius: 50%;
  background: var(--accent-soft);
  z-index: -1;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: 50% 30%;
}

.chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 8px 22px -14px rgba(28, 26, 23, 0.6);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.chip__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2E9E5B;
  box-shadow: 0 0 0 4px rgba(46, 158, 91, 0.18);
}

/* ── Что нужно знать ───────────────────── */

.info {
  padding: 56px 0;
  background: var(--surface);
  border-block: 1px solid var(--line);
}

h2 {
  font: 700 clamp(26px, 6.4vw, 44px)/1.12 var(--f-head);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-lead {
  margin-top: 12px;
  max-width: 52ch;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.card {
  padding: 22px 22px 24px;
  border-radius: 22px;
  background: var(--bg);
}
.card__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  color: var(--accent);
}
.card h3 {
  font: 700 18px/1.25 var(--f-head);
  letter-spacing: -0.02em;
}
.card p { margin-top: 8px; color: var(--muted); }

.route-title {
  margin-top: 44px;
  font: 700 20px/1.25 var(--f-head);
  letter-spacing: -0.02em;
}

.route {
  position: relative;
  display: grid;
  gap: 22px;
  margin-top: 22px;
}
.route li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: -22px;
  border-left: 2.5px dashed var(--accent);
  opacity: 0.55;
}
.route li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.route__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  font: 700 17px/1 var(--f-head);
}
.route li:last-child .route__num { background: var(--accent); color: #fff; }
.route b { display: block; padding-top: 2px; font-size: 18px; line-height: 1.3; }
.route span:not(.route__num) { display: block; margin-top: 4px; color: var(--muted); }

/* ── Завершение ────────────────────────── */

.final { padding: 56px 0 40px; }

.final__grid {
  display: grid;
  gap: 16px;
}

.final__card {
  padding: 32px 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-ink);
}
.final__card p:not(.final__note) {
  margin-top: 14px;
  max-width: 44ch;
  color: var(--on-ink-muted);
}
.final__card :focus-visible { outline-color: var(--on-ink); }
.final__note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 239, 228, 0.16);
  color: var(--on-ink-muted);
  font-size: 14px;
  line-height: 1.5;
}

.final__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  object-fit: cover;
}

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

.foot {
  padding: 8px 0 40px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.foot p { max-width: 80ch; }

/* ── Телефон: кнопка во всю ширину ─────── */

@media (max-width: 479px) {
  .btn { display: flex; width: 100%; }
  .tag { padding: 5px 10px; font-size: 12px; }
}
@media (max-width: 399px) {
  .brand { gap: 8px; font-size: 14px; }
  .brand__mark { width: 28px; height: 28px; }
  .tag { white-space: normal; text-align: center; line-height: 1.15; max-width: 108px; border-radius: 14px; }
}

/* ── Планшет ───────────────────────────── */

@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 26px 24px 28px; }
}

/* ── Широкий экран: текст слева, фото справа ── */

@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .top__in { min-height: 84px; }
  .brand { font-size: 17px; }
  .brand__mark { width: 34px; height: 34px; }

  .hero { padding: 16px 0 88px; }
  .hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 56px;
  }
  .hero__media img { aspect-ratio: 4 / 5; object-position: 55% 40%; }
  .hero__media::before { inset: 10% -10% -5% 25%; }
  .chip { left: -28px; bottom: 40px; padding: 12px 18px; font-size: 15px; }
  .btn { min-height: 66px; padding-left: 32px; font-size: 19px; }

  .info { padding: 96px 0; }
  .cards { gap: 16px; margin-top: 40px; }

  .route-title { margin-top: 64px; }
  .route {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .route li:not(:last-child)::after {
    left: 56px;
    right: -24px;
    top: 21px;
    bottom: auto;
    border-left: 0;
    border-top: 2.5px dashed var(--accent);
  }
  .route li { grid-template-columns: 1fr; gap: 14px; }
  .route b { padding-top: 0; }

  .final { padding: 96px 0 56px; }
  .final__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    align-items: stretch;
  }
  .final__card { padding: 52px 48px; }
  .final__media img { aspect-ratio: auto; min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn__arrow { transition: none; }
  .btn:hover .btn__arrow { transform: none; }
}
