/* job-dostavka.pro — «Зимний вечерний рейс»
   Цвета: ночь, снег, иней, клюква (действие), ель, огонёк гирлянды. Без жёлто-чёрной гаммы. */
:root {
  --night: #0B1424;
  --night-2: #16233A;
  --snow: #F3F6FA;
  --paper: #FFFFFF;
  --frost: #C9D6E6;
  --frost-ink: #5B6B82;
  --cranberry: #E0314B;
  --cranberry-ink: #B81C35;
  --pine: #17473C;
  --glow: #FFB86B;
  --line: #DCE4EE;

  --display: -apple-system, "SF Pro Display", "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --radius: 28px;
  --radius-sm: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--snow);
  color: var(--night);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cranberry); outline-offset: 3px; border-radius: 8px; }

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

/* ---------- Type ---------- */
.eyebrow {
  font: 600 13px/1 var(--text);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--frost-ink);
  margin: 0 0 14px;
}
.h2 {
  font: 700 clamp(34px, 5vw, 60px)/1.02 var(--display);
  letter-spacing: -.035em;
  margin: 0 0 18px;
  max-width: 16ch;
}
.lead {
  font: 400 clamp(18px, 1.6vw, 21px)/1.5 var(--text);
  color: var(--frost-ink);
  margin: 0;
  max-width: 54ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border-radius: 999px; border: 0;
  font: 600 17px/1 var(--text);
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--cranberry); color: #fff; box-shadow: 0 10px 30px -10px rgba(224, 49, 75, .7); }
.btn-primary:hover { background: var(--cranberry-ink); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-quiet { background: var(--paper); color: var(--night); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1px var(--frost); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Intro (первый визит за сессию) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--night);
  transition: transform 1s var(--ease) .1s, opacity .6s ease .5s;
}
.intro.is-done { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.intro-mark { width: 96px; height: 96px; }
.intro-mark { overflow: visible; }
.intro-mark .box-left { transform: translate(-10px, 6px); opacity: 0; animation: settle .7s var(--ease) .05s forwards; }
.intro-mark .box-right { transform: translate(10px, 6px); opacity: 0; animation: settle .7s var(--ease) .15s forwards; }
.intro-mark .box-top { transform: translateY(-14px); opacity: 0; animation: settle .7s var(--ease) .4s forwards; }
.intro-mark .route { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .8s var(--ease) 1s forwards; }
.intro-mark .start { opacity: 0; animation: settle .3s ease .95s forwards; }
.intro-mark .pin { transform-origin: 44px 19.2px; transform: scale(0); animation: pin .6s var(--ease) 1.7s forwards; }
.intro-word {
  margin-top: 22px; text-align: center;
  font: 600 28px/1 var(--display); letter-spacing: -.03em; color: var(--snow);
  opacity: 0; transform: translateY(8px);
  animation: rise .7s var(--ease) 1.2s forwards;
}
.intro-word b { color: var(--cranberry); }
@keyframes settle { to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pin { 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 12px; left: 0; right: 0; z-index: 50;
  pointer-events: none;
}
.header-bar {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(11, 20, 36, .55);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  color: var(--snow);
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.header.is-light .header-bar { background: rgba(255, 255, 255, .78); color: var(--night); box-shadow: 0 1px 0 rgba(11, 20, 36, .06), 0 8px 30px -12px rgba(11, 20, 36, .2); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px/1 var(--display); letter-spacing: -.03em; }
.logo svg { width: 32px; height: 32px; }
.logo b { color: var(--cranberry); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 999px; font: 500 15px/1 var(--text); text-decoration: none; opacity: .85; }
.nav a:hover { opacity: 1; background: rgba(127, 140, 160, .16); }
.header .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
@media (max-width: 860px) { .nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--snow);
  background: var(--night);
  overflow: hidden;
}
.hero-media, .hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media { z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 20, 36, .55) 0%, rgba(11, 20, 36, 0) 28%),
    linear-gradient(0deg, rgba(11, 20, 36, .92) 0%, rgba(11, 20, 36, .35) 45%, rgba(11, 20, 36, 0) 70%);
}
.snow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-inner { padding: 140px 0 clamp(40px, 8vh, 88px); }
.hero h1 {
  font: 700 clamp(44px, 8.2vw, 116px)/.95 var(--display);
  letter-spacing: -.045em;
  margin: 0 0 22px;
  max-width: 11ch;
}
.hero h1 em { font-style: normal; color: var(--frost); }
.hero .lead { color: rgba(243, 246, 250, .82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 22px; font-size: 14px; color: rgba(243, 246, 250, .6); }
.season {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; margin-bottom: 22px;
  border-radius: 999px; background: rgba(255, 255, 255, .1);
  font: 500 14px/1 var(--text);
}
.season i { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 4px rgba(255, 184, 107, .2); }

/* Гирлянда: провод с лампочками, мерцает по очереди */
.garland { position: absolute; left: 0; right: 0; top: 0; height: 90px; z-index: 0; pointer-events: none; }
.garland path { fill: none; stroke: rgba(201, 214, 230, .35); stroke-width: 1.5; }
.garland circle { animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; }
.section-head { display: grid; gap: 8px; margin-bottom: clamp(36px, 5vw, 64px); }

/* Транспорт */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mode {
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px 28px 28px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(11, 20, 36, .04), 0 20px 50px -30px rgba(11, 20, 36, .25);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.mode:hover { --lift: -6px; box-shadow: 0 1px 0 rgba(11, 20, 36, .04), 0 40px 70px -34px rgba(11, 20, 36, .4); }
/* 3D-сцена в карточке: персонаж парит над «снежной» подложкой */
.mode-stage {
  position: relative;
  height: 220px;
  margin: -10px -6px 22px;
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 50% 100%, #E4ECF5 0%, rgba(228, 236, 245, 0) 60%),
    linear-gradient(180deg, #F7F9FC 0%, #EDF2F8 100%);
  display: grid; place-items: end center;
  overflow: visible;
  transform-style: preserve-3d;
}
.mode-stage img {
  position: relative; z-index: 2;
  width: auto; max-width: 92%; max-height: 236px;
  margin-bottom: 14px;
  filter: drop-shadow(0 18px 18px rgba(11, 20, 36, .16));
  transform: translate3d(0, 0, 40px);
  animation: float 5.5s ease-in-out infinite;
  transition: transform .7s var(--ease), filter .7s var(--ease);
  will-change: transform;
}
.mode-stage--walk img { max-height: 228px; animation-delay: -1.2s; }
.mode-stage--bike img { animation-delay: -2.6s; }
.mode-stage--moto img { animation-delay: -.4s; }
.mode-stage--car img { max-width: 88%; animation-delay: -3.8s; }
.mode-ground {
  position: absolute; left: 50%; bottom: 10px; z-index: 1;
  width: 62%; height: 18px; margin-left: -31%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 20, 36, .2), rgba(11, 20, 36, 0));
  animation: ground 5.5s ease-in-out infinite;
}
.mode-stage--walk .mode-ground { animation-delay: -1.2s; }
.mode-stage--bike .mode-ground { animation-delay: -2.6s; }
.mode-stage--moto .mode-ground { animation-delay: -.4s; }
.mode-stage--car .mode-ground { animation-delay: -3.8s; }
/* Линии скорости — проявляются при наведении */
.mode-speed { position: absolute; left: 8%; top: 38%; z-index: 1; width: 34%; height: 46px; opacity: 0; transform: translateX(14px); transition: opacity .5s ease, transform .7s var(--ease);
  background:
    linear-gradient(90deg, transparent, var(--frost)) 0 0 / 100% 3px no-repeat,
    linear-gradient(90deg, transparent, var(--frost)) 30% 20px / 70% 3px no-repeat,
    linear-gradient(90deg, transparent, var(--frost)) 10% 40px / 85% 3px no-repeat; }
.mode:hover .mode-stage img { transform: translate3d(8px, -8px, 70px) scale(1.04); filter: drop-shadow(0 28px 22px rgba(11, 20, 36, .2)); }
.mode:hover .mode-speed { opacity: 1; transform: none; }
.mode-stage--walk .mode-speed { display: none; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes ground { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.86); opacity: .7; } }

/* Наклон карточки за курсором (переменные ставит JS) */
.js-tilt { transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); }
.js-tilt.reveal { transform: perspective(900px) translateY(40px) scale(.97); }
.js-tilt.reveal.is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); }
.js-tilt.is-tilting { transition: transform .15s ease-out, box-shadow .4s var(--ease), opacity .9s var(--ease); }
.mode::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .5), transparent 45%); opacity: 0; transition: opacity .4s ease; }
.mode:hover::after { opacity: 1; }
.mode-stage img.is-entering { animation: none; }
.mode h3 { font: 700 26px/1.1 var(--display); letter-spacing: -.025em; margin: 0 0 10px; }
.mode p { margin: 0 0 22px; color: var(--frost-ink); }
.mode ul { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 15px; }
.mode li { display: flex; gap: 10px; }
.mode li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--cranberry); }
.modes { grid-template-columns: repeat(4, 1fr); }
.mode { padding: 26px 22px 24px; }
.mode h3 { font-size: 23px; }
@media (max-width: 1080px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .modes { grid-template-columns: 1fr; } }

/* Полоса фактов под героем */
.facts-strip { padding: 28px 0 0; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 20px 50px -34px rgba(11, 20, 36, .3); }
.facts li { background: var(--paper); padding: 22px 22px; display: grid; gap: 4px; }
.facts b { font: 600 18px/1.2 var(--display); letter-spacing: -.015em; }
.facts span { font-size: 14px; color: var(--frost-ink); }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Поддержка и бонусы */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.perk { padding: 26px 22px; border-radius: var(--radius-sm); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s var(--ease); }
.perk:hover { box-shadow: inset 0 0 0 1px var(--frost), 0 20px 50px -34px rgba(11, 20, 36, .3); }
.perk h3 { font: 600 19px/1.2 var(--display); letter-spacing: -.015em; margin: 0 0 8px; }
.perk h3::before { content: ""; display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--pine); margin-bottom: 16px; }
.perk p { margin: 0; font-size: 15px; color: var(--frost-ink); }
.perks-note { margin: 24px 0 0; font-size: 15px; color: var(--frost-ink); }
@media (max-width: 1000px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .perks { grid-template-columns: 1fr; } }

/* Маршрут: шаги как точки на линии */
.route { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.route-aside { position: sticky; top: 120px; }
.route-aside .btn { margin-top: 30px; }
.steps { position: relative; list-style: none; margin: 0; padding: 0 0 0 44px; }
.steps::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: repeating-linear-gradient(var(--frost) 0 6px, transparent 6px 12px); }
.steps-progress { position: absolute; left: 11px; top: 14px; width: 2px; height: 0; background: var(--cranberry); transition: height .2s linear; }
.step { position: relative; padding: 0 0 48px; }
.step:last-child { padding-bottom: 0; }
.step-dot {
  position: absolute; left: -44px; top: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--snow); box-shadow: inset 0 0 0 2px var(--frost);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.step.is-on .step-dot { background: var(--cranberry); box-shadow: 0 0 0 6px rgba(224, 49, 75, .15); transform: scale(1.05); }
.step-time { font: 500 13px/1 var(--mono); color: var(--frost-ink); margin: 0 0 10px; }
.step h3 { font: 700 clamp(22px, 2.4vw, 30px)/1.15 var(--display); letter-spacing: -.025em; margin: 0 0 10px; }
.step p { margin: 0; color: var(--frost-ink); max-width: 46ch; }
@media (max-width: 900px) { .route { grid-template-columns: 1fr; } .route-aside { position: static; } }

/* Доход: из чего складывается */
.income { background: var(--night); color: var(--snow); border-radius: clamp(28px, 4vw, 44px); padding: clamp(36px, 6vw, 80px); margin-inline: auto; }
.income .eyebrow, .income .lead { color: rgba(243, 246, 250, .66); }
.income-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 48px; background: rgba(201, 214, 230, .14); border-radius: var(--radius-sm); overflow: hidden; }
.income-cell { background: var(--night); padding: 26px 22px; }
.income-cell .k { font: 500 13px/1 var(--mono); color: var(--glow); margin-bottom: 14px; }
.income-cell h3 { font: 600 20px/1.2 var(--display); letter-spacing: -.02em; margin: 0 0 8px; }
.income-cell p { margin: 0; font-size: 15px; color: rgba(243, 246, 250, .66); }
.income-note { margin: 28px 0 0; font-size: 14px; color: rgba(243, 246, 250, .5); max-width: 70ch; }
@media (max-width: 900px) { .income-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .income-grid { grid-template-columns: 1fr; } }

/* Праздники */
.holiday { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.holiday-card { border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); background: var(--paper); box-shadow: 0 20px 50px -30px rgba(11, 20, 36, .25); }
.holiday-card.is-pine { background: var(--pine); color: var(--snow); }
.holiday-card.is-pine p { color: rgba(243, 246, 250, .72); }
.holiday-card h3 { font: 700 clamp(26px, 3vw, 38px)/1.08 var(--display); letter-spacing: -.03em; margin: 0 0 14px; }
.holiday-card p { margin: 0; color: var(--frost-ink); }
@media (max-width: 900px) { .holiday { grid-template-columns: 1fr; } }

/* Требования */
.reqs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; list-style: none; padding: 0; margin: 0; }
.reqs li { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.reqs svg { flex: none; width: 24px; height: 24px; margin-top: 2px; stroke: var(--pine); }
.reqs b { display: block; font: 600 18px/1.3 var(--display); letter-spacing: -.015em; margin-bottom: 4px; }
.reqs span { color: var(--frost-ink); font-size: 15px; }
@media (max-width: 760px) { .reqs { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0;
  font: 600 clamp(18px, 1.8vw, 21px)/1.3 var(--display); letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2px solid var(--frost-ink); border-bottom: 2px solid var(--frost-ink); transform: rotate(45deg) translateY(-4px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details p { margin: 0 0 24px; color: var(--frost-ink); max-width: 64ch; }

/* Другие сервисы */
.also { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 32px; border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow .3s var(--ease); }
.also:hover { box-shadow: inset 0 0 0 1px var(--frost), 0 20px 50px -30px rgba(11, 20, 36, .3); }
.also h3 { font: 700 24px/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 4px; }
.also p { margin: 0; color: var(--frost-ink); }
.also .arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--snow); }

/* Финальный призыв */
.final { position: relative; overflow: hidden; text-align: center; background: var(--night); color: var(--snow); padding: clamp(100px, 14vw, 170px) 0; }
.final .h2 { margin-inline: auto; max-width: 14ch; }
.final .lead { margin: 0 auto 34px; color: rgba(243, 246, 250, .7); }

/* Footer */
.footer { background: var(--night); color: rgba(243, 246, 250, .55); font-size: 14px; padding: 0 0 48px; }
.footer .wrap { display: grid; gap: 18px; border-top: 1px solid rgba(201, 214, 230, .14); padding-top: 32px; }
.footer .logo { color: var(--snow); }
.footer p { margin: 0; max-width: 80ch; }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease), filter 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.hero-inner > * { opacity: 0; transform: translateY(30px); animation: heroIn 1.2s var(--ease) forwards; }
.hero-inner > :nth-child(2) { animation-delay: .1s; }
.hero-inner > :nth-child(3) { animation-delay: .22s; }
.hero-inner > :nth-child(4) { animation-delay: .34s; }
.hero-inner > :nth-child(5) { animation-delay: .46s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.is-intro .hero-inner > * { animation-play-state: paused; }
.hero-inner, .hero-media { will-change: transform; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js-tilt.reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-inner > * { opacity: 1; transform: none; animation: none; }
  .mode-stage img, .mode-ground { animation: none; }
  .garland circle { animation: none; }
  .intro { display: none; }
}
