/* Заноза Логистика — «Маршрутный лист» */

@font-face { font-family: "Sofia Cond"; src: url("/assets/fonts/sofia-sans-extra-condensed-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia Cond"; src: url("/assets/fonts/sofia-sans-extra-condensed-latin.woff2") format("woff2"); font-weight: 100 900; 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+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2"); font-weight: 100 900; 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("/assets/fonts/onest-latin.woff2") format("woff2"); font-weight: 100 900; 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+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #EFF0EA;
  --sheet: #FAFAF6;
  --rule: #D5D8CE;
  --ink: #2436B8;
  --ink-deep: #1A2890;
  --orange: #F98A13;
  --orange-deep: #E07400;
  --asphalt: #16181B;
  --asphalt-2: #24272C;
  --kraft: #C9A26B;
  --kraft-deep: #B48B52;
  --muted: #5A5F66;
  --muted-on-dark: #A9ADB3;

  --display: "Sofia Cond", "Arial Narrow", sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --header-h: 76px;
  --section-pad: clamp(72px, 10vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--asphalt);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(249, 138, 19, .32); color: inherit; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--asphalt); color: var(--paper); padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  line-height: .98;
  letter-spacing: -.01em;
  max-width: 14ch;
}
.h3 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: .95; }
.section-lead { margin-top: 20px; max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--asphalt); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-orange { --bg: var(--orange); --fg: var(--asphalt); box-shadow: 0 10px 24px -12px rgba(224, 116, 0, .9); }
.btn-orange:hover { --bg: #FF9A2E; }
.btn-ink { --bg: var(--ink); --fg: #fff; }
.btn-ink:hover { --bg: var(--ink-deep); }
.btn-ghost { --bg: transparent; --fg: var(--asphalt); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { background: rgba(239, 240, 234, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--rule); }
.header-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 54px; height: auto; }
.brand-word { font-family: var(--display); font-weight: 900; font-size: 1.9rem; line-height: .8; display: flex; flex-direction: column; }
.brand-word small { font-family: var(--text); font-weight: 500; font-size: .72rem; letter-spacing: .02em; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 2px no-repeat; transition: background-size .25s ease, color .2s; }
.nav a:hover { color: var(--ink); background-size: 100% 2px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-family: var(--display); font-weight: 800; font-size: 1.55rem; text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--ink); }
.burger { display: none; width: 46px; height: 46px; border: 0; background: var(--asphalt); border-radius: 50%; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--paper); transition: transform .25s ease; }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 6vw, 80px);
  background:
    repeating-linear-gradient(to bottom, transparent 0 39px, rgba(36, 54, 184, .07) 39px 40px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(4.4rem, 12.4vw, 11.4rem);
  line-height: .8;
  letter-spacing: -.015em;
  margin-top: 8px;
}
/* обрезаем только снизу (для анимации появления) — по бокам буквы не режутся */
.hero-title .line { display: block; padding-bottom: .06em; -webkit-clip-path: inset(-0.3em -100vw 0 -100vw); clip-path: inset(-0.3em -100vw 0 -100vw); }
.hero-title { -webkit-user-select: none; user-select: none; }
.hero-kicker { display: block; margin: 0 0 18px; font-family: var(--text); font-weight: 600; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.3; letter-spacing: 0; color: var(--ink); -webkit-user-select: text; user-select: text; }
.hero-title .line > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line > span { transform: translateY(104%); transition: transform .9s cubic-bezier(.2, .8, .1, 1); }
  .js .hero-title .line:nth-child(2) > span { transition-delay: .09s; }
  .js .hero-title .line:nth-child(3) > span { transition-delay: .18s; }
  .js.is-loaded .hero-title .line > span { transform: none; }
}
.hero-lead { margin-top: clamp(22px, 3vw, 36px); max-width: 44ch; font-size: clamp(1.08rem, 1.45vw, 1.3rem); }
.hero-facts { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 10px clamp(20px, 3vw, 44px); color: var(--muted); font-size: .95rem; line-height: 1.35; }
.hero-facts li { max-width: 17ch; }
.hero-facts b { display: block; font-family: var(--display); font-weight: 900; font-size: 2.1rem; line-height: 1; color: var(--asphalt); }

/* накладная */
.waybill {
  position: relative;
  background: var(--sheet);
  padding: 30px clamp(20px, 2.4vw, 34px) 26px;
  border-radius: 4px;
  box-shadow: 0 1px 0 var(--rule), 0 30px 60px -36px rgba(22, 24, 27, .45);
  transform: rotate(.6deg);
  margin-top: 14px;
}
.waybill::before { /* перфорация отрывного края */
  content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 14px;
  background: radial-gradient(circle at 7px 7px, var(--paper) 4px, transparent 4.5px) left top / 18px 14px repeat-x;
}
.waybill::after { /* полоска фирменного скотча */
  content: ""; position: absolute; width: 120px; height: 30px; right: 26px; top: -16px;
  background: rgba(249, 138, 19, .88); transform: rotate(-4deg);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.waybill-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--asphalt); padding-bottom: 10px; margin-bottom: 6px; }
.waybill-title { font-family: var(--display); font-weight: 900; font-size: 2.2rem; line-height: 1; }
.waybill-no { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--ink); white-space: nowrap; }
.wb-row { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 12px; border-bottom: 1px solid var(--rule); padding: 10px 0; margin: 0; min-width: 0; }
fieldset.wb-row { border-width: 0 0 1px; }
.wb-label { font-size: .86rem; color: var(--muted); padding: 0; }
.wb-row input[type="text"], .wb-row input[type="tel"] {
  width: 100%; min-width: 0; border: 0; background: transparent; padding: 6px 0;
  font-size: 1.12rem; font-weight: 500; color: var(--ink); outline: none;
}
.wb-row input::placeholder { color: #9DA1A8; font-weight: 400; }
.wb-row:focus-within { border-bottom-color: var(--ink); }
.wb-chips { align-items: start; }
.wb-chips legend { float: left; padding-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 7px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--rule); font-size: .92rem; transition: background-color .15s, box-shadow .15s, color .15s; }
.chips label:hover span { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chips input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 6px; font-size: .84rem; line-height: 1.4; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.consent a { color: var(--ink); }
.policy-note { margin: 0 0 18px 28px; font-size: .8rem; line-height: 1.4; color: var(--muted); }
.policy-note a { color: inherit; }
.consent.is-invalid { color: #B3261E; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-alt { margin-top: 12px; text-align: center; font-size: .92rem; color: var(--muted); }
.form-alt a { color: var(--ink); font-weight: 600; }
.form-error { margin-top: 10px; font-size: .9rem; color: #B3261E; min-height: 0; }
.form-error:empty { display: none; }
input.is-invalid { color: #B3261E !important; }
.wb-row:has(input.is-invalid) { border-bottom-color: #B3261E; }

/* успешная отправка: синяя печать */
.stamp-done {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 32px; background: var(--sheet); border-radius: inherit;
}
.stamp-done[hidden] { display: none; }
.stamp {
  width: 196px; height: 196px; border-radius: 50%;
  border: 6px double var(--ink); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: rotate(-12deg); filter: url(#ink-rough);
  font-family: var(--display); font-weight: 900; line-height: .9;
  mix-blend-mode: multiply; opacity: .9;
}
.stamp span { font-size: 2.9rem; text-transform: uppercase; letter-spacing: .02em; }
.stamp small { font-size: 1.4rem; text-transform: uppercase; }
.stamp-done.is-shown .stamp { animation: stamp-in .55s cubic-bezier(.2, .9, .3, 1.2) both; }
.stamp-done.is-shown .done-title, .stamp-done.is-shown .done-text { animation: fade-in .4s .45s both; }
@keyframes stamp-in { 0% { transform: rotate(-24deg) scale(2.4); opacity: 0; } 60% { transform: rotate(-11deg) scale(.94); opacity: .95; } 100% { transform: rotate(-12deg) scale(1); opacity: .9; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.done-title { margin-top: 22px; font-family: var(--display); font-weight: 900; font-size: 2.1rem; line-height: 1; }
.done-text { margin-top: 10px; max-width: 34ch; color: var(--muted); }
.done-text b { white-space: nowrap; color: var(--asphalt); }
.done-text a { color: var(--ink); }

/* табло */
.board {
  margin-top: clamp(40px, 6vw, 72px);
  background: var(--asphalt);
  color: var(--paper);
  border-radius: 10px;
  padding: 18px clamp(14px, 2vw, 26px) 20px;
  box-shadow: inset 0 0 0 1px #2E3238;
}
.board-head, .board-row { display: grid; grid-template-columns: var(--board-cols, 14fr 14fr 11fr); gap: clamp(10px, 2vw, 28px); }
.board-head { font-size: .78rem; color: var(--muted-on-dark); padding: 0 2px 10px; }
.board-row + .board-row { margin-top: 8px; }
.board-field { display: flex; gap: 3px; min-width: 0; overflow: hidden; }
.flap {
  position: relative;
  flex: 0 0 auto;
  width: clamp(17px, 1.75vw, 27px);
  height: clamp(28px, 2.9vw, 44px);
  display: grid; place-items: center;
  background: linear-gradient(#2B2F35 0 50%, #25282D 50% 100%);
  border-radius: 3px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.15rem, 2.1vw, 1.9rem);
  line-height: 1; text-transform: uppercase;
  color: #F3F1E8;
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); }
.flap.is-flip { animation: flap .09s linear; }
.board-field.to .flap { color: var(--orange); }
@keyframes flap { 0% { transform: scaleY(1); } 50% { transform: scaleY(.15); } 100% { transform: scaleY(1); } }

/* ---------- услуги ---------- */
.services { padding: var(--section-pad) 0; position: relative; }
.svc-list { margin-top: clamp(40px, 6vw, 72px); border-top: 2px solid var(--asphalt); }
.svc {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 12px 48px; align-items: baseline;
  padding: clamp(18px, 2.6vw, 30px) 0;
  border-bottom: 1px solid var(--rule);
  cursor: default;
}
.svc h3 { font-family: var(--display); font-weight: 900; font-size: clamp(2.3rem, 4.4vw, 4.4rem); line-height: .9; text-wrap: balance; transition: color .2s ease, transform .3s ease; }
.svc p { max-width: 42ch; color: var(--muted); font-size: 1.05rem; }
.svc-thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .svc:hover h3 { color: var(--ink); transform: translateX(14px); }
}
.svc-float {
  position: fixed; left: 0; top: 0; z-index: 20;
  width: 300px; height: 380px; object-fit: cover; border-radius: 6px;
  pointer-events: none; opacity: 0;
  transform: translate3d(-50%, -50%, 0) rotate(-3deg) scale(.85);
  transition: opacity .2s ease;
  box-shadow: 0 30px 60px -20px rgba(22, 24, 27, .5);
}
.svc-float.is-on { opacity: 1; }

/* ---------- Машины (крафт) ---------- */
.kraft {
  position: relative;
  overflow: clip;
  padding: calc(var(--section-pad) + 24px) 0 var(--section-pad);
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .035) 0 2px, transparent 2px 9px),
    var(--kraft);
}
.kraft::before { /* фирменный скотч поперёк коробки */
  content: "ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●  ЗАНОЗА ЛОГИСТИКА  ●";
  position: absolute; left: 0; right: 0; top: 0; height: 44px;
  background: var(--orange);
  color: rgba(22, 24, 27, .82);
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: .08em;
  white-space: pre; overflow: hidden; line-height: 44px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
}
.kraft .section-lead { color: #3A2E1E; }
.kraft-top { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: end; }
.kraft-top .h2 { grid-column: 1; }
.kraft-top .section-lead { grid-column: 1; }
.box-marks { grid-column: 2; grid-row: 1 / span 2; width: 200px; color: rgba(22, 24, 27, .72); align-self: start; }

.fleet { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.label-card { background: #fff; border: 2px solid var(--asphalt); border-radius: 4px; padding: 0 0 18px; box-shadow: 6px 8px 0 rgba(22, 24, 27, .14); }
.label-card:nth-child(odd) { transform: rotate(-.7deg); }
.label-card:nth-child(even) { transform: rotate(.6deg); }
.label-card:nth-child(3n) { transform: rotate(-.3deg); }
.label-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--asphalt); color: var(--paper); padding: 10px 18px; font-size: .9rem; }
.label-route { font-family: var(--display); font-weight: 900; font-size: 1.9rem; line-height: 1; color: var(--orange); }
.label-card dl { display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px 18px 6px; gap: 12px; }
.label-card dt { font-size: .82rem; color: var(--muted); }
.label-card dd { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 3.6vw, 3.1rem); line-height: 1; white-space: nowrap; }
.label-card dd small { font-family: var(--text); font-size: .85rem; font-weight: 600; color: var(--muted); }
.barcode { margin: 10px 18px 0; height: 34px; background: repeating-linear-gradient(90deg, var(--asphalt) 0 2px, transparent 2px 4px, var(--asphalt) 4px 7px, transparent 7px 9px, var(--asphalt) 9px 10px, transparent 10px 14px); opacity: .85; }
.tariff-note { margin-top: 24px; max-width: 70ch; font-size: .9rem; color: #3A2E1E; }

/* калькулятор */
.calc {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: 1.1fr .9fr;
  background: var(--sheet); border-radius: 6px; overflow: hidden;
  box-shadow: 0 30px 60px -36px rgba(22, 24, 27, .55);
}
.calc-inputs { padding: clamp(24px, 3.4vw, 44px); }
.calc-hint { margin-top: 12px; color: var(--muted); max-width: 46ch; }
.seg { display: inline-flex; margin: 22px 0 8px; padding: 4px; border-radius: 999px; background: var(--paper); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 9px 20px; border-radius: 999px; font-weight: 600; transition: background-color .15s, color .15s; }
.seg input:checked + span { background: var(--asphalt); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.calc-field { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 22px; }
.calc-field span { color: var(--muted); }
.calc-field input { width: 120px; text-align: right; border: 0; border-bottom: 2px solid var(--rule); background: transparent; font-family: var(--display); font-weight: 900; font-size: 2.4rem; line-height: 1; color: var(--ink); padding: 0 0 4px; outline: none; -moz-appearance: textfield; }
.calc-field input:focus { border-bottom-color: var(--ink); }
.calc-field input::-webkit-outer-spin-button, .calc-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.seg { flex-wrap: wrap; border-radius: 22px; }
.seg-type { display: flex; width: fit-content; margin-top: 4px; }
.calc-dims { display: flex; align-items: flex-end; gap: 10px; margin: 26px 0 0; padding: 0; border: 0; min-width: 0; }
.calc-dims legend { padding: 0; margin-bottom: 8px; color: var(--muted); }
.calc-dims label { flex: 1; min-width: 0; }
.calc-dims input, .calc-pair input { width: 100%; border: 0; border-bottom: 2px solid var(--rule); background: transparent; font-family: var(--display); font-weight: 900; font-size: 2.4rem; line-height: 1; color: var(--ink); padding: 0 0 4px; outline: none; -moz-appearance: textfield; text-align: left; }
.calc-dims input:focus, .calc-pair input:focus { border-bottom-color: var(--ink); }
.calc-dims input::-webkit-outer-spin-button, .calc-dims input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-dims > span { font-family: var(--display); font-size: 1.6rem; color: var(--muted); padding-bottom: 8px; }
.calc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.calc-pair .calc-field { flex-direction: column; align-items: stretch; gap: 6px; }
.calc-pair .calc-field input { width: 100%; }
.calc-small b { color: var(--asphalt); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.calc-small { margin-top: 14px; font-size: .86rem; color: var(--muted); }
.calc-out { background: var(--asphalt); color: var(--paper); padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; }
.weights { display: grid; gap: 16px; }
.wbar[hidden] { display: none; }
.wbar { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: baseline; }
.wbar-label { font-size: .9rem; color: var(--muted-on-dark); }
.wbar b { font-family: var(--display); font-weight: 900; font-size: 1.7rem; line-height: 1; color: var(--muted-on-dark); font-variant-numeric: tabular-nums; }
.wbar-track { grid-column: 1 / -1; grid-row: 2; height: 12px; border-radius: 999px; background: rgba(239, 240, 234, .1); overflow: hidden; }
.wbar-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--muted-on-dark); transition: width .45s cubic-bezier(.2, .8, .2, 1), background-color .2s; }
.wbar.is-main b { color: var(--paper); }
.wbar.is-main .wbar-track i { background: var(--orange); }
.calc-basis { margin-top: 18px; font-weight: 600; font-size: 1.1rem; }
.calc-sum { margin-top: 18px; display: flex; flex-direction: column; }
.calc-sum-label { font-size: .86rem; color: var(--muted-on-dark); }
.calc-sum b { font-family: var(--display); font-weight: 900; font-size: clamp(3.2rem, 6vw, 5rem); line-height: .95; color: var(--orange); font-variant-numeric: tabular-nums; }
.calc-truck { margin-top: 10px; color: var(--paper); font-weight: 500; }
.calc-truck b { color: var(--orange); }
.calc-out .btn { margin-top: auto; }
.calc-out .calc-truck { margin-bottom: 26px; }
.calc-out .calc-small { color: var(--muted-on-dark); }

/* ---------- как везём (ночь) ---------- */
.route { position: relative; background: var(--asphalt); color: var(--paper); }
.route .section-lead { color: var(--muted-on-dark); }
.route-sticky { padding: var(--section-pad) 0; }
.route-line { position: relative; height: 2px; margin: clamp(36px, 5vw, 56px) var(--gutter) 0; background: rgba(239, 240, 234, .16); max-width: calc(var(--max) - 2 * var(--gutter)); }
.route-progress { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--orange); }
.route-truck { position: absolute; top: -15px; left: 0; width: 56px; margin-left: -28px; }
.route:not(.is-pinned) .route-line { display: none; } /* без горизонтальной прокрутки линия с грузовиком не нужна */
.route-track { display: grid; gap: 48px; margin-top: 40px; padding-inline: var(--gutter); }
.stop figure { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--asphalt-2); }
.stop figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.stop-no { display: inline-block; margin-top: 18px; font-family: var(--display); font-weight: 900; font-size: 1.2rem; color: var(--orange); }
.stop h3 { font-family: var(--display); font-weight: 900; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: .9; }
.stop p { margin-top: 10px; max-width: 36ch; color: var(--muted-on-dark); }

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .route.is-pinned { height: var(--route-h, 400vh); }
  .route.is-pinned .route-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: calc(var(--header-h) + 8px) 0 40px; }
  .route.is-pinned .route-head { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; }
  .route.is-pinned .route-head .section-lead { margin-top: 0; }
  .route.is-pinned .route-line { margin-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); margin-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); max-width: none; }
  .route.is-pinned .route-track { display: flex; gap: clamp(28px, 4vw, 64px); width: max-content; margin-top: 36px; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-right: 12vw; will-change: transform; }
  .route.is-pinned .stop { width: clamp(300px, 30vw, 440px); flex-shrink: 0; }
  .route.is-pinned .stop figure { aspect-ratio: 4 / 3.1; max-height: 42vh; }
}

/* ---------- рейсы ---------- */
.trips { padding: var(--section-pad) 0; }
.trip-grid { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; }
@media (min-width: 900px) {
  .trip-grid { grid-auto-rows: clamp(240px, 26vw, 360px); }
  .trip-grid .trip { aspect-ratio: auto; }
}
.trip { position: relative; overflow: hidden; border-radius: 6px; background: var(--rule); aspect-ratio: 3 / 4; }
.trip.t-wide { grid-column: span 2; aspect-ratio: auto; }
.trip.t-tall { grid-row: span 2; aspect-ratio: auto; }
.trip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.trip:hover img { transform: scale(1.04); }
.trip figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px);
  background: var(--sheet); color: var(--asphalt); padding: 7px 11px; border-radius: 3px;
  font-size: .86rem; line-height: 1.3; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5);
}

/* ---------- команда ---------- */
.team { padding: 0 0 var(--section-pad); }
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.team-photos { position: relative; padding-bottom: 12%; }
.team-photo { width: 82%; border-radius: 6px; overflow: hidden; transform: rotate(-1.2deg); box-shadow: 0 30px 60px -36px rgba(22, 24, 27, .55); border: 10px solid var(--sheet); }
.boss { position: absolute; right: 0; bottom: 0; width: 40%; background: var(--sheet); padding: 8px 8px 12px; border-radius: 4px; transform: rotate(3deg); box-shadow: 0 24px 50px -24px rgba(22, 24, 27, .55); }
.boss img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 25% 40%; border-radius: 2px; }
.boss figcaption { margin-top: 10px; font-size: .84rem; line-height: 1.3; color: var(--muted); }
.boss b { display: block; font-family: var(--display); font-weight: 900; font-size: 1.5rem; line-height: 1; color: var(--asphalt); }
.team-text { margin-top: 24px; max-width: 42ch; font-size: 1.15rem; }
.people { margin-top: 36px; display: grid; gap: 4px; border-top: 2px solid var(--asphalt); }
.people li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.people b { font-family: var(--display); font-weight: 900; font-size: 2.2rem; line-height: 1; min-width: 4.4em; }
.people a { font-weight: 600; text-decoration: none; font-size: 1.1rem; }
.people a:hover { color: var(--ink); }
.people-wa { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 var(--section-pad); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; container-type: inline-size; }
/* «грузоперевозках» ≈ 6.2em: кегль считаем от ширины колонки, чтобы слово не наезжало на вопросы */
.faq .h2 { max-width: none; font-size: min(clamp(3.2rem, 8vw, 7.5rem), (100cqi - 48px) * .078); }
.faq-list { border-top: 2px solid var(--asphalt); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-weight: 600; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2.5px 100% no-repeat; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--ink); }
.faq details p { padding: 0 0 24px; max-width: 60ch; color: var(--muted); }
.faq details p a { color: var(--ink); }

/* ---------- контакты ---------- */
.contact { background: var(--orange); padding: var(--section-pad) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact .h2 { max-width: 12ch; }
.big-phone { display: inline-block; margin-top: 36px; font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .9; text-decoration: none; }
.big-phone:hover { color: var(--ink); }
.contact-note { margin-top: 8px; font-weight: 600; }
.messengers { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.messengers a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--asphalt); color: var(--paper); font-weight: 600; text-decoration: none; transition: transform .18s ease, background-color .18s ease; }
.messengers a:hover { transform: translateY(-2px); background: var(--ink); }
.messengers a.is-main { background: var(--sheet); color: var(--asphalt); box-shadow: inset 0 0 0 2px var(--asphalt); }
.messengers a.is-main:hover { background: #fff; }
.contact-links { margin-top: 24px; display: grid; gap: 10px; }
.contact-links a { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid rgba(22, 24, 27, .35); }
.contact-links a:hover { border-bottom-color: var(--asphalt); }
.sheet-form { position: relative; background: var(--sheet); border-radius: 6px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 60px -30px rgba(80, 40, 0, .55); }
.field { display: block; margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { display: block; font-size: .86rem; color: var(--muted); margin-bottom: 6px; padding: 0; }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1.5px solid var(--rule); background: transparent; padding: 8px 0; font-size: 1.1rem; font-weight: 500; color: var(--ink); outline: none; resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field textarea { font-size: 1rem; line-height: 1.45; }

/* ---------- footer ---------- */
.footer { background: var(--asphalt); color: var(--muted-on-dark); padding: 56px 0 120px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: auto 1fr; gap: 32px 64px; }
.footer-brand img { width: 120px; filter: brightness(1.05); }
.footer-brand p { margin-top: 10px; color: var(--paper); }
.footer-legal { display: grid; gap: 12px; max-width: 70ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--paper); }
.requisites { color: var(--paper); }
mark.todo { background: #FFE38A; color: var(--asphalt); padding: 0 4px; border-radius: 3px; }

/* ---------- мобильная панель связи ---------- */
.dock { display: none; }

/* ---------- cookie ---------- */
.cookie { position: fixed; z-index: 60; left: 16px; bottom: 16px; max-width: 420px; background: var(--sheet); border-radius: 8px; padding: 18px; box-shadow: 0 20px 50px -20px rgba(22, 24, 27, .5); font-size: .92rem; }
.cookie[hidden] { display: none; }
.cookie a { color: var(--ink); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .header-actions .btn { display: none; }
  .fleet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .brand img { width: 46px; }
  .brand-word { font-size: 1.6rem; }
  .burger { display: block; }
  .header-actions { margin-left: auto; }
  .header-phone { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: var(--paper); box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
    transform: translateY(-110%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { font-family: var(--display); font-weight: 900; font-size: 2.4rem; padding: 8px 0; border-bottom: 1px solid var(--rule); background: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(4rem, 20vw, 7rem); }
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: .84rem; gap: 10px 14px; }
  .hero-facts b { font-size: 1.6rem; }
  .waybill { transform: none; margin-top: 4px; }
  .waybill-title { font-size: 1.8rem; }
  .waybill-no { font-size: 1.1rem; }
  .wb-row { grid-template-columns: 88px 1fr; }
  .board-head, .board-row { --board-cols: 1fr 1fr; }
  .board-head span:nth-child(3) { display: none; }
  .board-field.what { display: none; }
  .flap { width: calc((100vw - 2 * var(--gutter) - 28px - 10px) / 2 / 10 - 3px); height: 30px; font-size: 1.15rem; }

  .svc { grid-template-columns: 1fr; padding: 20px 0; }
  .svc-thumb { display: block; width: 100%; height: 190px; object-fit: cover; border-radius: 6px; margin-top: 6px; }
  .svc-float { display: none; }

  .kraft-top { grid-template-columns: 1fr; }
  .box-marks { grid-column: 1; grid-row: auto; width: 150px; }
  .fleet { grid-template-columns: 1fr; gap: 20px; }
  .label-card dl { grid-template-columns: 1fr 1fr 1fr; padding: 14px 14px 4px; }
  .label-card dd { font-size: 1.9rem; }
  .label-route { font-size: 1.6rem; }
  .calc { grid-template-columns: 1fr; }

  .route-track { gap: 44px; }
  .trip-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trip.t-tall { grid-row: span 1; aspect-ratio: 3 / 4; }
  .trip.t-wide { aspect-ratio: 16 / 10; }
  .trip figcaption { left: 8px; bottom: 8px; font-size: .78rem; padding: 5px 8px; }
  .team-grid, .faq-grid, .contact-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .team-photos { padding-bottom: 18%; }
  .team-photo { width: 86%; }
  .boss { width: 46%; }
  .faq-grid { gap: 28px; }
  .faq .h2 { font-size: min(clamp(3.2rem, 8vw, 7.5rem), 100cqi * .156); }

  .dock {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45;
    background: var(--asphalt); border-radius: 999px; padding: 5px;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5);
  }
  .dock a { text-align: center; padding: 12px 6px; color: var(--paper); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 999px; }
  .dock a:first-child { background: var(--orange); color: var(--asphalt); }
  .cookie { left: 10px; right: 10px; bottom: calc(80px + env(safe-area-inset-bottom)); max-width: none; }
}

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

/* ---------- документы и 404 ---------- */
.doc { padding: clamp(32px, 6vw, 72px) 0 var(--section-pad); }
.doc-article { max-width: 760px; background: var(--sheet); border-radius: 6px; padding: clamp(24px, 5vw, 64px); box-shadow: 0 1px 0 var(--rule); }
.doc-article h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; margin-bottom: 18px; }
.doc-article h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1; margin: 40px 0 14px; }
.doc-article h3 { font-weight: 700; font-size: 1.1rem; margin: 24px 0 8px; }
.doc-article p, .doc-article li { font-size: 1rem; line-height: 1.65; }
.doc-article p + p { margin-top: 10px; }
.doc-article ul, .doc-article ol { margin: 10px 0 14px; padding-left: 1.3em; }
.doc-article ul { list-style: disc; }
.doc-article ol { list-style: decimal; }
.doc-article li + li { margin-top: 6px; }
.doc-article a { color: var(--ink); }
.doc-body .header-actions { margin-left: auto; }
.doc-body .header-actions .btn { display: inline-flex; }
.nf { padding: clamp(40px, 8vw, 100px) 0; }
.nf-code { font-family: var(--display); font-weight: 900; font-size: clamp(6rem, 20vw, 14rem); line-height: .8; color: var(--ink); }
.nf .h2 { margin-top: 16px; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 899px) { .doc-body .doc-phone { display: none; } }
