/* Образ страницы: транспортная накладная и складская маркировка.
   Цвета бренда из логотипа, фон холодный «бетонный» вместо привычного крема. */
:root {
  --graphite: #3e3c3b;
  --ink: #262524;
  --muted: #5f6366;
  --brick: #c6553a;
  --coral: #ff6a4f;
  --steel: #e6e9eb;
  --line: #cfd4d7;
  --paper: #ffffff;
  --bg: #f3f4f5;

  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Golos Text", system-ui, sans-serif;
  /* модульная шкала 1.25 от 17px */
  --fs-0: 1.0625rem;
  --fs-1: 1.33rem;
  --fs-2: 1.66rem;
  --fs-3: 2.07rem;
  --fs-4: clamp(2.2rem, 4.6vw, 3.6rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; font-family: var(--text); font-size: var(--fs-0); line-height: 1.55;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
h1, h2 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.08; }
h1 { font-size: var(--fs-4); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, var(--fs-3)); max-width: 20ch; }
h3 { font-size: var(--fs-0); line-height: 1.3; }
p { margin: 0; max-width: 62ch; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

.btn {
  display: inline-block; padding: 16px 28px; border-radius: 6px;
  background: var(--brick); color: #fff; text-decoration: none; font-weight: 600;
  transition: background .15s;
}
.btn:hover { background: var(--coral); }
.btn--small { padding: 10px 18px; font-size: .95rem; white-space: nowrap; }
.btn--light { background: #fff; color: var(--brick); }
.btn--light:hover { background: var(--ink); color: #fff; }
.link { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--brick); }

/* Шапка */
.header { position: sticky; top: 0; z-index: 10; background: rgba(243, 244, 245, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--graphite); display: flex; align-items: baseline; gap: 6px; }
.brand__sub { font-family: var(--text); font-weight: 600; font-size: .95rem; color: var(--brick); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); }

/* Первый экран */
.hero { padding: 80px 0 96px; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 { color: var(--graphite); }
.lead { margin-top: 28px; font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }

/* Накладная */
.waybill {
  position: relative; background: var(--paper); padding: 28px 30px 30px;
  border: 1px solid var(--line); border-radius: 4px;
  /* перфорация по верхнему краю, как у отрывного бланка */
  background-image: radial-gradient(circle at 8px -2px, var(--bg) 6px, transparent 6.5px);
  background-size: 16px 10px; background-repeat: repeat-x;
}
.waybill__head { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; }
.waybill__title { font-family: var(--display); font-weight: 700; font-size: var(--fs-1); }
.waybill__no { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .95rem; }
.barcode {
  height: 46px; margin: 18px 0 6px;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 8px,
    var(--ink) 8px 9px, transparent 9px 12px, var(--ink) 12px 15px, transparent 15px 17px,
    var(--ink) 17px 18px, transparent 18px 21px);
}
.waybill__fields { margin: 0; border-top: 2px solid var(--ink); }
.waybill__fields div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.waybill__fields dt { color: var(--muted); font-size: .9rem; padding-top: 1px; }
.waybill__fields dd { margin: 0; font-weight: 600; }

.track { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); font-size: .85rem; color: var(--muted); }
.track li { position: relative; padding-top: 20px; }
.track li::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 4px; background: var(--steel); }
.track li.is-done::before { background: var(--graphite); }
.track li.is-now::before { background: linear-gradient(90deg, var(--brick) 50%, var(--steel) 50%); }
.track li.is-done, .track li.is-now { color: var(--ink); font-weight: 600; }
.track li.is-now { color: var(--brick); }

/* Штамп: единственная анимация на странице, «ставится» на накладную при загрузке */
.stamp {
  position: absolute; right: 26px; top: 78px;
  padding: 10px 14px; border: 3px solid var(--brick); border-radius: 6px;
  color: var(--brick); font-family: var(--display); font-weight: 800; font-size: .8rem; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .04em; text-align: center;
  background: rgba(255, 255, 255, .82);
  transform: rotate(-9deg); opacity: .92;
  animation: stamp .45s cubic-bezier(.2, .9, .3, 1.3) .6s both;
}
@keyframes stamp {
  from { transform: rotate(-9deg) scale(1.9); opacity: 0; }
  to   { transform: rotate(-9deg) scale(1); opacity: .92; }
}
@media (prefers-reduced-motion: reduce) {
  .stamp { animation: none; }
  .gallery__track { scroll-behavior: auto; }
  html { scroll-behavior: auto; }
}

/* Секции */
.section { padding: 96px 0; }
.section--steel { background: var(--steel); }
.section--dark { background: var(--graphite); color: #e9eaeb; }
.section__intro { margin-top: 16px; color: var(--muted); }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.split__head { position: sticky; top: 110px; }
.split__head p { margin-top: 18px; color: var(--muted); }

.services, .reasons { list-style: none; margin: 0; padding: 0; }
.services li { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.services li:last-child { border-bottom: 1px solid var(--line); }
.services p { color: var(--muted); }

/* Сроки: шкала 0–60 дней, полоса стоит там, где лежит диапазон */
.timeline { margin-top: 44px; --scale: 25; }
.timeline__row { display: grid; grid-template-columns: 170px 1fr 280px; gap: 24px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.timeline__name { font-family: var(--display); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.timeline__track { position: relative; height: 34px; }
.timeline__bar {
  position: absolute; top: 0; bottom: 0;
  /* на узком экране подпись шире самой полосы: не даём ей вылезти за правый край шкалы */
  left: min(calc(var(--from) / var(--scale) * 100%), calc(100% - 92px));
  width: calc((var(--to) - var(--from)) / var(--scale) * 100%);
  min-width: 92px; background: var(--graphite); color: #fff; border-radius: 3px;
  display: flex; align-items: center; padding: 0 10px; font-size: .85rem; font-weight: 600; white-space: nowrap;
}
.timeline__bar--fast { background: var(--brick); }
.timeline__track--text { display: flex; align-items: center; font-weight: 600; color: var(--muted); }
.timeline__use { color: var(--muted); font-size: .95rem; }
.timeline__axis { display: grid; grid-template-columns: repeat(5, 1fr) auto; margin-left: 194px; margin-right: 304px; padding-top: 10px; border-top: 2px solid var(--ink); font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Фото склада: лента во всю ширину экрана, начало выровнено по колонке текста */
.gallery { padding: 0 0 96px; --edge: max(20px, (100% - 1180px) / 2); }
.gallery__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.gallery__head p { margin-top: 14px; color: var(--muted); }
.gallery__nav { display: flex; gap: 10px; flex: none; }
.gallery__nav button {
  width: 48px; height: 48px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper);
  font-size: 1.2rem; color: var(--ink); cursor: pointer; transition: border-color .15s;
}
.gallery__nav button:hover:not(:disabled) { border-color: var(--ink); }
.gallery__nav button:disabled { opacity: .35; cursor: default; }
.gallery__track {
  list-style: none; margin: 36px 0 0; padding: 0 var(--edge) 8px;
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scroll-behavior: smooth; scrollbar-width: thin;
}
.gallery__track li { flex: none; scroll-snap-align: start; }
.gallery__track figure { margin: 0; }
.gallery__track img { height: 420px; width: auto; border-radius: 4px; background: var(--steel); }
.gallery__track figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }

/* Тарифы: как прайс-лист на бланке, цифры справа и крупно */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.price { background: var(--paper); border-top: 3px solid var(--ink); padding: 22px 22px 24px; }
.price h3 { margin-bottom: 10px; }
.price dl { margin: 0 0 14px; }
.price dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.price dt { color: var(--muted); font-size: .95rem; }
.price dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price p { font-size: .9rem; color: var(--muted); }

.note { margin-top: 28px; font-size: .9rem; color: var(--muted); }

/* Шаги: это действительно последовательность, поэтому номера уместны */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.steps li { counter-increment: s; border-top: 4px solid var(--graphite); padding-top: 18px; }
.steps li:last-child { border-top-color: var(--brick); }
.steps li::before { content: counter(s); display: block; font-family: var(--display); font-weight: 800; font-size: var(--fs-3); line-height: 1; color: #aab1b5; margin-bottom: 14px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: .97rem; }
.link--file { display: inline-block; margin-top: 12px; }

.section--dark h2 { color: #fff; }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.reasons h3 { color: #fff; font-size: var(--fs-1); font-weight: 600; }
.reasons p { margin-top: 8px; color: #b9bcbe; }

.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); color: var(--brick); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); }

.cta { background: var(--brick); color: #fff; padding: 72px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { max-width: 22ch; }
.cta p { margin-top: 14px; opacity: .92; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.btn--outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.btn--outline:hover { background: rgba(255, 255, 255, .12); }

/* Подвал с контактами */
.footer { background: var(--ink); color: #b9bcbe; padding: 72px 0 28px; }
.footer__top { display: grid; grid-template-columns: 1fr 2.4fr; gap: 56px; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__sub { color: var(--coral); }
.footer__brand p { margin-top: 18px; max-width: 32ch; }
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.contacts h3 { color: #fff; margin-bottom: 14px; }
.contact { display: block; text-decoration: none; padding: 12px 14px; margin-bottom: 10px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .14); }
a.contact:hover { border-color: var(--coral); }
.contact__label { display: block; font-size: .82rem; color: #8f9396; }
.contact__value { display: block; color: #fff; font-weight: 600; word-break: break-all; }
/* WeChat ID не открывается ссылкой: выделяем целиком по клику, чтобы было удобно скопировать */
.contact__value--select { user-select: all; cursor: text; }
.footer__copy { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: #7d8184; max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer__legal { max-width: none; }

/* Адаптив */
@media (max-width: 1000px) {
  .nav { display: none; }
  .header .btn--small { margin-left: auto; }
  .hero__inner, .split, .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .split__head { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .prices { grid-template-columns: 1fr 1fr; }
  .timeline__row { grid-template-columns: 150px 1fr; }
  .timeline__use { grid-column: 2; font-size: .9rem; margin-top: -6px; }
  .timeline__axis { margin-left: 174px; margin-right: 0; }
}
@media (max-width: 640px) {
  .hero { padding: 44px 0 64px; }
  .section { padding: 64px 0; }
  .header__inner { gap: 12px; }
  .hide-sm { display: none; }
  .gallery { padding-bottom: 64px; }
  /* кадр уже экрана: край следующего фото подсказывает, что ленту можно листать */
  .gallery__track img { height: 280px; max-width: calc(100vw - 72px); object-fit: cover; }
  .gallery__track figcaption { max-width: calc(100vw - 72px); }
  .gallery__nav button { width: 42px; height: 42px; }
  .brand img { width: 32px; height: auto; }
  .services li { grid-template-columns: 1fr; gap: 6px; }
  .steps, .reasons, .contacts, .prices { grid-template-columns: 1fr; }
  .waybill { padding: 24px 20px; }
  .waybill__fields div { grid-template-columns: 76px 1fr; }
  .timeline__row { grid-template-columns: 1fr; gap: 8px; }
  .timeline__use { grid-column: 1; margin-top: 0; }
  .timeline__axis { margin-left: 0; }
  .stamp { top: 72px; right: 14px; font-size: .7rem; }
  .track { font-size: .78rem; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
}
