/* =====================================================================
   KTC Website 2.4 — дизайн-система
   Navy + brushed gold + silver. Шрифты: Inter Display (заголовки), Inter (текст) — со своего сервера.
   Mobile-first. Без фреймворков.
   2.2: единая система движения (токены --m-*), таймлайны этапов, маршрут «Поставщик → Ваш склад»,
   карточки аудиторий, категорий, стоимости и документов. Скрипт движения — assets/js/motion.js.
   ===================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy-950: #081627;
  --navy-900: #0E2238;
  --navy-800: #15304D;
  --navy-700: #22456B;
  --steel:    #5B6B80;
  --silver:   #C3CBD5;
  --line:     #DCE2E9;
  --paper:    #F3F5F8;
  --white:    #FFFFFF;
  --ink:      #132033;
  --muted:    #4A586B;
  --gold:     #C9A25C;
  --gold-hi:  #DDBB78;
  --gold-deep:#8E6C2E;
  --wa:       #12804A;
  --danger:   #B42318;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(18px, 4.2vw, 40px);
  --header-h: 64px;
  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 16px;
  --section-y: clamp(64px, 9vw, 120px);
  --shadow-card: 0 1px 2px rgba(8, 22, 39, .06), 0 12px 32px -12px rgba(8, 22, 39, .18);
  --focus: 0 0 0 3px rgba(201, 162, 92, .55);

  /* Движение — все параметры здесь. motion.js читает --m-activation. */
  --m-dur: 520ms;             /* появление элементов (350–600) */
  --m-stagger: 90ms;          /* задержка между карточками (60–120) */
  --m-hover: 200ms;           /* hover и смена состояний (180–250) */
  --m-shift: 12px;            /* смещение при появлении (8–16) */
  --m-ease: cubic-bezier(.22, .61, .36, 1);
  --m-ease-io: cubic-bezier(.65, 0, .35, 1);
  --m-state: 360ms;           /* активация этапа / карточки при скролле */
  --m-activation: .62;        /* линия активации: доля высоты окна сверху */
  --m-route: 3.6s;            /* поездка грузовика от поставщика до склада */
}
@media (min-width: 1100px) { :root { --header-h: 76px; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink);
  background: var(--white); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
html.menu-open body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.tnum { font-variant-numeric: tabular-nums; }
.icon { width: 22px; height: 22px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.anchor { position: relative; top: calc(-1 * var(--header-h) - 12px); display: block; height: 0; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy-950); padding: 10px 16px; border-radius: var(--radius-s); font-weight: 600; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

.env-banner { background: #FFF4D6; color: #5C4310; font-size: .875rem; text-align: center; padding: 6px var(--gutter); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--radius-s);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }
.btn--icon { padding-inline: 12px; }
.btn--gold { background: var(--gold); color: var(--navy-950); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .38); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn--ghost-dark { background: transparent; color: var(--navy-900); border-color: var(--silver); }
.btn--ghost-dark:hover { border-color: var(--navy-900); }
.btn--outline-light { background: transparent; color: var(--white); border-color: var(--gold); }
.btn--outline-light:hover { background: var(--gold); color: var(--navy-950); }
.btn--wa { background: var(--wa); color: var(--white); border-color: var(--wa); }
.btn--wa:hover { background: #0E6B3D; }
.btn[disabled] { opacity: .75; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-900); color: var(--white); border-bottom: 1px solid rgba(195, 203, 213, .14); }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .6); }
.site-header__row { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark { width: auto; height: 42px; }
.brand__name { font-size: .8125rem; line-height: 1.25; color: rgba(255, 255, 255, .82); max-width: 9.5em; letter-spacing: .01em; }
@media (min-width: 1100px) { .brand__mark { height: 52px; } }
@media (max-width: 379px) { .brand__name { display: none; } }

.main-nav { display: none; margin-left: auto; }
.main-nav__list { display: flex; gap: 2px; }
.main-nav__link { display: block; padding: 8px 12px; border-radius: var(--radius-s); text-decoration: none; font-size: .9375rem; color: rgba(255, 255, 255, .84); position: relative; white-space: nowrap; }
.main-nav__link:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.main-nav__link[aria-current="page"] { color: var(--white); }
.main-nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold); border-radius: 2px; }

.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-phone { display: none; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.header-phone .icon { width: 18px; height: 18px; color: var(--gold); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-s); border: 1px solid rgba(255, 255, 255, .22); text-decoration: none; }
.icon-btn:hover { border-color: rgba(255, 255, 255, .5); }
.icon-btn--wa .icon { color: #5BD58F; width: 20px; height: 20px; }
.header-cta { display: none; white-space: nowrap; }
.menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius-s); background: transparent; color: var(--white); cursor: pointer; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 1280px) {
  .main-nav { display: block; }
  .site-header__actions { margin-left: 8px; }
  .menu-toggle { display: none; }
}
@media (min-width: 1440px) { .header-phone { display: inline-flex; } }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--navy-950); color: var(--white);
  overflow-y: auto; overscroll-behavior: contain; padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 24px;
}
.mobile-menu__list { border-top: 1px solid rgba(195, 203, 213, .14); }
.mobile-menu__link { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid rgba(195, 203, 213, .14); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.mobile-menu__link[aria-current="page"] { color: var(--gold-hi); }
.mobile-menu__foot { display: grid; gap: 12px; margin-top: auto; }
.mobile-menu__tel { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; text-decoration: none; font-weight: 600; }
.mobile-menu__tel .icon { color: var(--gold); }

/* ---------- Типографика секций ---------- */
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--navy-900); color: var(--white); }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section__title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.022em; line-height: 1.08;
  font-size: clamp(1.75rem, 1.15rem + 2.4vw, 2.875rem); text-wrap: balance;
}
.section__lead { margin-top: 16px; color: var(--muted); font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); max-width: 60ch; }
.section--ink .section__lead { color: rgba(255, 255, 255, .74); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: rgba(255, 255, 255, .65); margin-bottom: 20px; }
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs--dark { color: var(--steel); }
.crumbs--dark a { color: var(--navy-700); }

.ticks { display: grid; gap: 10px; }
.ticks li, .hero__points li, .hero__panel-list li, .checklist__list li, .split__list li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .icon, .hero__points .icon, .hero__panel-list .icon, .checklist__list .icon, .split__list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--gold); }

/* ---------- HERO ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-900); color: var(--white); padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(34, 69, 107, .55), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='none' stroke='%23C9A25C' stroke-opacity='.16' stroke-width='1.2'%3E%3Ccircle cx='300' cy='300' r='290'/%3E%3Cellipse cx='300' cy='300' rx='110' ry='290'/%3E%3Cellipse cx='300' cy='300' rx='210' ry='290'/%3E%3Cpath d='M300 10v580M10 300h580M44 160h512M44 440h512M120 70h360M120 530h360'/%3E%3C/svg%3E") no-repeat;
  background-size: auto, min(78vw, 760px);
  background-position: 0 0, calc(100% + min(22vw, 220px)) 50%;
}
.hero__inner { display: grid; gap: clamp(36px, 5vw, 64px); align-items: start; }
.hero__kicker { color: var(--gold-hi); font-weight: 600; font-size: .9375rem; margin-bottom: 18px; }
.hero__title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.028em; line-height: 1.03;
  font-size: clamp(2.125rem, 1.25rem + 3.7vw, 4.125rem); max-width: 17ch; text-wrap: balance;
}
.hero__lead { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: rgba(255, 255, 255, .8); max-width: 58ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__ctas .btn { flex: 1 1 240px; }
@media (min-width: 640px) { .hero__ctas .btn { flex: 0 0 auto; } }
.hero__points { display: grid; gap: 10px; margin-top: 28px; color: rgba(255, 255, 255, .86); }
.hero__note { margin-top: 22px; font-size: .9375rem; color: rgba(255, 255, 255, .62); max-width: 52ch; }
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1.25fr) minmax(360px, .9fr); }
  .hero--form .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); }
}

/* Маршрут поставки — фирменный элемент главной */
.route { border: 1px solid rgba(195, 203, 213, .2); border-radius: var(--radius-l); padding: clamp(22px, 3vw, 32px); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); backdrop-filter: blur(2px); }
.route__title { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; margin-bottom: 22px; }
.route__list { position: relative; display: grid; gap: 22px; }
/* линия между номерами: отрезок от номера до следующего номера (не уходит ниже последнего этапа) */
.route__step { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; align-items: start; }
.route__step:not(:last-child)::before { content: ""; position: absolute; z-index: -1; left: 17px; top: 36px; bottom: -22px; width: 2px; background: rgba(201, 162, 92, .55); }
.route__node { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy-900); border: 2px solid var(--gold); color: var(--gold-hi); font-weight: 600; font-size: .9375rem; position: relative; z-index: 1; }
.route__text { display: grid; gap: 4px; padding-top: 5px; min-width: 0; }
.route__text strong { font-weight: 600; }
.route__text span { color: rgba(255, 255, 255, .68); font-size: .9375rem; line-height: 1.5; }
.route__ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 16px; border-top: 1px dashed rgba(201, 162, 92, .45); font-size: .875rem; color: rgba(255, 255, 255, .6); }

.hero__panel { border-left: 2px solid var(--gold); padding: 6px 0 6px clamp(20px, 3vw, 32px); }
.hero__panel-title { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; margin-bottom: 18px; }
.hero__panel-list { display: grid; gap: 14px; color: rgba(255, 255, 255, .86); }
.hero__form .lead-form { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }

/* ---------- Направления ---------- */
.directions { display: grid; gap: 20px; }
.directions__feature { background: var(--navy-900); color: var(--white); border-radius: var(--radius-l); padding: clamp(26px, 3.5vw, 44px); display: grid; gap: 18px; align-content: start; position: relative; overflow: hidden; }
.directions__feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gold); }
.directions__feature-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -.02em; }
.directions__feature p { color: rgba(255, 255, 255, .78); }
.directions__feature .btn { justify-self: start; margin-top: 6px; }
.directions__feature { transition: box-shadow var(--m-state) var(--m-ease); }
.directions__feature.is-spot { box-shadow: inset 0 0 0 1px rgba(201, 162, 92, .5); }
.directions__list { display: grid; gap: 12px; align-content: start; }
.directions__item {
  position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 22px 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color var(--m-state) var(--m-ease), background-color var(--m-state) var(--m-ease);
}
.directions__item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform var(--m-state) var(--m-ease); }
.directions__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--paper); color: var(--navy-700); transition: background-color var(--m-state) var(--m-ease), color var(--m-state) var(--m-ease); }
.directions__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; margin-bottom: 6px; }
.directions__title a { text-decoration: none; }
.directions__title a::after { content: ""; position: absolute; inset: 0; }
.directions__item p { color: var(--muted); }
.directions__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-weight: 600; color: var(--navy-700); font-size: .9375rem; transition: color var(--m-hover) ease; }
.directions__more .icon { transition: transform var(--m-hover) var(--m-ease); }
/* акцент: активная при скролле карточка и (на компьютере) карточка под курсором */
.directions__item.is-spot { border-color: rgba(201, 162, 92, .6); background: #FCFAF5; }
.directions__item.is-spot::before { transform: scaleY(1); }
.directions__item.is-spot .directions__icon { background: var(--navy-900); color: var(--gold-hi); }
.directions__item.is-spot .directions__more { color: var(--gold-deep); }
.directions__item:focus-within { border-color: var(--navy-700); }
@media (hover: hover) and (pointer: fine) {
  .directions__item:hover { border-color: rgba(201, 162, 92, .75); background: #FCFAF5; }
  .directions__item:hover::before { transform: scaleY(1); }
  .directions__item:hover .directions__icon { background: var(--navy-900); color: var(--gold-hi); }
  .directions__item:hover .directions__title a { text-decoration: underline; }
  .directions__item:hover .directions__more { color: var(--gold-deep); }
  .directions__item:hover .directions__more .icon { transform: translateX(3px); }
}
@media (min-width: 960px) { .directions { grid-template-columns: 5fr 7fr; gap: clamp(32px, 4vw, 56px); } .directions__item { padding: 24px 26px; } }

/* ---------- Кому подходит: карточки аудиторий ---------- */
.aud-grid { display: grid; gap: 16px; }
.aud-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; transition: border-color var(--m-hover) ease; }
.aud-card__media { aspect-ratio: 2 / 1; background: var(--navy-900); border-bottom: 2px solid var(--gold); }
.aud-card__media img { width: 100%; height: 100%; object-fit: cover; }
.aud-card__body { display: grid; gap: 14px; padding: 20px 20px 22px; flex: 1; align-content: start; }
.aud-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.aud-card__dl { display: grid; gap: 12px; }
.aud-card__dl dt { font-size: .8125rem; font-weight: 600; color: var(--steel); margin-bottom: 2px; }
.aud-card__dl dd { margin: 0; font-size: 1rem; line-height: 1.55; }
.aud-card__task dd { color: var(--muted); }
.aud-card__help { padding: 12px 14px; background: var(--paper); border-left: 3px solid var(--gold); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.aud-card__help dt { color: #745620; }
.aud-card__help dd { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .aud-card:hover { border-color: rgba(201, 162, 92, .7); } }
@media (max-width: 479px) { .aud-card__media { aspect-ratio: 21 / 9; } }
/* 2.3: фотографии карточек — исходная пропорция 16:9 на всех ширинах, без растяжения и без фильтров */
.aud-card__media--photo, .aud-card__media--photo picture { display: block; }
.aud-card__media.aud-card__media--photo { aspect-ratio: 16 / 9; }
.aud-card__media--photo picture { width: 100%; height: 100%; }
.aud-card__media--photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (min-width: 640px) { .aud-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1040px) { .aud-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .aud-grid--n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* 2.4: баннеры с текстом внутри (главная). Крупнее — 2 колонки, чтобы подписи в баннере оставались читаемыми */
@media (min-width: 640px) { .aud-grid.aud-grid--banner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .aud-grid.aud-grid--banner { gap: 24px; }
  .aud-card--banner .aud-card__body { position: relative; }
  /* название уже внутри баннера: в HTML остаётся (заголовок h3 для скринридеров и SEO), визуально скрыто */
  .aud-card--banner .aud-card__title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
}

/* ---------- Категории ---------- */
.categories { display: grid; gap: 32px; }
.categories__note { display: flex; gap: 10px; margin-top: 24px; font-size: .9375rem; color: var(--muted); max-width: 52ch; }
.categories__note .icon { color: var(--gold-deep); width: 20px; height: 20px; margin-top: 2px; }
.categories__note { padding: 14px 16px; background: var(--paper); border-radius: var(--radius); border-left: 3px solid var(--gold); color: var(--ink); }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.cat { display: grid; gap: 10px; align-content: start; padding: 16px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: .9375rem; line-height: 1.35; font-weight: 600; transition: border-color var(--m-hover) ease, background-color var(--m-hover) ease; }
.cat__name { min-width: 0; overflow-wrap: break-word; }
.cat__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-s); background: var(--paper); color: var(--navy-700); transition: background-color var(--m-hover) ease, color var(--m-hover) ease; }
.cat__icon .icon { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) {
  .cat:hover { border-color: rgba(201, 162, 92, .7); }
  .cat:hover .cat__icon { background: var(--navy-900); color: var(--gold-hi); }
}
@media (min-width: 560px) { .cat { grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px 16px; } }
@media (min-width: 720px) and (max-width: 959px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cat { grid-template-columns: 1fr; } }
@media (min-width: 960px) { .categories { grid-template-columns: 5fr 7fr; gap: 56px; } .cat-grid { padding-top: 8px; } }
@media (min-width: 1180px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cat { grid-template-columns: 1fr; align-items: start; gap: 10px; } }

/* ---------- Этапы ---------- */
.steps { display: grid; gap: 0; counter-reset: s; }
.steps__item { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; padding-bottom: 28px; }
.steps__item::before { content: ""; position: absolute; z-index: -1; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.steps__item:last-child { padding-bottom: 0; }
.steps__item:last-child::before { display: none; }
.steps__num { grid-row: span 2; position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-900); border: 2px solid var(--navy-900); color: var(--gold-hi); font-weight: 600; }
.steps__title { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; padding-top: 9px; }
.steps__text { color: var(--muted); margin-top: 6px; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 28px; }
  .steps__item { display: block; padding: 0; }
  .steps__item::before { left: 52px; right: -28px; top: 21px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--gold), var(--line)); }
  .steps__num { margin-bottom: 20px; }
  .steps__title { padding-top: 0; }
}

/* ---------- Факторы стоимости ---------- */
.factors { display: grid; gap: 40px; align-items: start; }
.factors__list { display: grid; gap: 12px; margin-top: 32px; }
.factors__item { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-content: start; padding: 16px 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color var(--m-hover) ease; }
.factors__icon { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-s); background: var(--paper); color: var(--navy-700); }
.factors__icon .icon { width: 22px; height: 22px; }
.factors__item dt { font-weight: 600; line-height: 1.35; padding-top: 2px; }
.factors__item dd { margin: 0; color: var(--muted); font-size: .9688rem; line-height: 1.55; }
.factors__item:not(:has(.factors__icon)) { grid-template-columns: minmax(0, 1fr); }
@media (hover: hover) and (pointer: fine) { .factors__item:hover { border-color: rgba(201, 162, 92, .7); } .factors__item:hover .factors__icon { background: var(--navy-900); color: var(--gold-hi); } }
.factors__aside { background: var(--paper); border-radius: var(--radius-l); padding: 28px; display: grid; gap: 14px; border-top: 3px solid var(--gold); }
.factors__aside-title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.factors__aside p { color: var(--muted); }
@media (min-width: 640px) { .factors__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .factors { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; } .factors__aside { position: sticky; top: calc(var(--header-h) + 24px); margin-top: 8px; } }

/* ---------- Преимущества ---------- */
.benefits { display: grid; gap: 0; margin-top: 44px; border-top: 1px solid rgba(195, 203, 213, .2); }
.benefits__item { padding: 26px 0; border-bottom: 1px solid rgba(195, 203, 213, .2); display: grid; gap: 10px; }
.benefits__icon { color: var(--gold); }
.benefits__icon .icon { width: 28px; height: 28px; }
.benefits__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.benefits__item p { color: rgba(255, 255, 255, .72); }
@media (min-width: 760px) { .benefits { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1100px) { .benefits { grid-template-columns: repeat(4, 1fr); border-top: 0; } .benefits__item { border-bottom: 0; border-left: 1px solid rgba(195, 203, 213, .2); padding: 8px 28px 8px 28px; } .benefits__item:first-child { border-left: 0; padding-left: 0; } }
.draft-box { margin-top: 32px; padding: 16px 20px; border: 2px dashed #D9A400; border-radius: var(--radius); background: #FFF8E1; color: #4D3A00; font-size: .9375rem; }
.draft-box__title { font-weight: 600; margin-bottom: 6px; }
.draft-box ul { list-style: disc; padding-left: 20px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 32px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 1.0625rem; }
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); transition: transform .2s ease, background-color .2s ease; }
.faq__icon .icon { width: 16px; height: 16px; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.faq__a { padding: 0 52px 22px 0; color: var(--muted); max-width: 70ch; }
@media (min-width: 1000px) { .faq { grid-template-columns: 4fr 8fr; gap: 64px; } .faq__title { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }

/* ---------- Финальный блок и формы ---------- */
.final { position: relative; background: var(--navy-900); color: var(--white); padding-block: var(--section-y); }
.final__grid { display: grid; gap: 40px; align-items: start; }
.final__title { font-family: var(--font-display); font-weight: 700; letter-spacing: -.022em; line-height: 1.08; font-size: clamp(1.75rem, 1.15rem + 2.4vw, 2.875rem); text-wrap: balance; }
.final__lead { margin-top: 16px; color: rgba(255, 255, 255, .76); max-width: 52ch; }
.final__steps { display: grid; gap: 12px; margin-top: 28px; }
.final__steps li { display: flex; align-items: center; gap: 14px; }
.final__steps span { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-hi); font-size: .875rem; font-weight: 600; }
.final__contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(195, 203, 213, .18); }
.final__tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.125rem; text-decoration: none; }
.final__tel .icon, .final__hours .icon { color: var(--gold); width: 18px; height: 18px; }
.final__hours { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .66); font-size: .9375rem; width: 100%; }
@media (min-width: 1000px) { .final__grid { grid-template-columns: minmax(0, 1fr) minmax(400px, 520px); gap: 72px; } }

.lead-form { background: var(--white); color: var(--ink); border-radius: var(--radius-l); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-card); }
.lead-form__title { font-family: var(--font-display); font-weight: 600; font-size: 1.3125rem; margin-bottom: 20px; }
.lead-form__context { margin: -8px 0 16px; font-size: .875rem; color: var(--muted); }
.lead-form__grid { display: grid; gap: 16px; }
@media (min-width: 560px) {
  .final .lead-form__grid { grid-template-columns: 1fr 1fr; }
  .final .field--product, .final .field--comment, .final .field--interest, .final .field--category, .final .field--doc_type, .final .field--origin, .final .field--hs_code, .final .field--volume { grid-column: 1 / -1; }
}
@media (min-width: 560px) and (max-width: 999px), (min-width: 1240px) {
  .final .field--category, .final .field--doc_type, .final .field--origin, .final .field--hs_code, .final .field--volume { grid-column: auto; }
}
.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--steel); }
.field__input {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #B9C3CF; border-radius: var(--radius-s);
  background: var(--white); font-size: 1rem; line-height: 1.4; transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.field__input::placeholder { color: #626F80; }
.field__input:hover { border-color: var(--steel); }
.field__input:focus { outline: none; border-color: var(--navy-700); box-shadow: var(--focus); }
.field__input--area { min-height: 96px; resize: vertical; }
.field__input--select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B80' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
.field__input.is-error { border-color: var(--danger); }
.field__error, .lead-form__error { color: var(--danger); font-size: .875rem; line-height: 1.4; }
.lead-form__error { margin-top: 14px; padding: 12px 14px; background: #FDF0EF; border-radius: var(--radius-s); }
.lead-form__error a { font-weight: 600; }
.lead-form .js-lead-submit { margin-top: 22px; }
.lead-form__consent, .lead-form__note { margin-top: 14px; font-size: .8125rem; line-height: 1.5; color: var(--steel); }
.lead-form__consent a, .consent-check a { color: var(--navy-700); }
.consent-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: .875rem; color: var(--muted); }
.consent-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--navy-700); flex: none; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { background: var(--white); color: var(--ink); border-radius: var(--radius-l); padding: clamp(26px, 3vw, 36px); box-shadow: var(--shadow-card); display: grid; gap: 12px; text-align: center; justify-items: center; }
.form-success:focus { outline: none; }
.form-success__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #E7F5EC; color: var(--wa); }
.form-success__icon svg { width: 28px; height: 28px; }
.form-success__title { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.form-success__text { color: var(--muted); max-width: 40ch; }
.form-success .btn { margin-top: 8px; }

/* ---------- Документы (сертификация) ---------- */
.doctypes { display: grid; gap: 16px; }
.doctype { position: relative; padding: 24px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 12px; align-content: start; transition: border-color var(--m-state) var(--m-ease), box-shadow var(--m-state) var(--m-ease); }
.doctype::before { content: ""; position: absolute; left: -1px; top: 26px; width: 3px; height: 40px; background: var(--gold); border-radius: 0 2px 2px 0; transform-origin: top; transition: transform var(--m-state) var(--m-ease); }
.doctype__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--navy-900); color: var(--gold-hi); }
.doctype__icon .icon { width: 24px; height: 24px; transition: transform var(--m-state) var(--m-ease); }
.doctype.is-spot { border-color: rgba(201, 162, 92, .7); box-shadow: 0 0 0 1px rgba(201, 162, 92, .25); }
.doctype.is-spot::before { transform: scaleY(1.6); }
.doctype.is-spot .doctype__icon .icon { transform: translateY(-1px); }
@media (hover: hover) and (pointer: fine) { .doctype:hover { border-color: rgba(201, 162, 92, .7); } .doctype:hover::before { transform: scaleY(1.6); } }
.doctype__title { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; line-height: 1.25; }
.doctype__what { color: var(--muted); }
.doctype__when { font-size: .9375rem; padding-top: 12px; border-top: 1px solid var(--line); }
.doctype__when span { display: block; font-weight: 600; font-size: .8125rem; color: var(--steel); margin-bottom: 2px; }
#documents { background: var(--paper); }
@media (min-width: 720px) { .doctypes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .doctypes { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- Как определить документ ---------- */
.finder { display: grid; gap: 40px; }
.finder__head .btn { margin-top: 28px; }
.finder__list { display: grid; gap: 14px; }
.finder__item { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px; border: 1px solid rgba(195, 203, 213, .2); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.finder__num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--gold); }
.finder__title { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; margin-bottom: 6px; }
.finder__item p { color: rgba(255, 255, 255, .72); }
@media (min-width: 1000px) { .finder { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }

/* ---------- Чек-лист, разделы «текст + список» ---------- */
.checklist, .split { display: grid; gap: 32px; align-items: start; }
.checklist__list, .split__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.checklist__list li, .split__list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.split__text { margin-top: 18px; color: var(--muted); max-width: 60ch; }
.split__note { display: flex; gap: 10px; margin-top: 20px; font-size: .9375rem; color: var(--muted); }
.split__note .icon { color: var(--gold-deep); width: 20px; height: 20px; margin-top: 2px; }
@media (min-width: 960px) { .checklist, .split { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------- Виды перевозок, услуги ---------- */
.modes, .svc-grid { display: grid; gap: 16px; }
.mode, .svc { padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 12px; align-content: start; background: var(--white); }
.mode__icon, .svc__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius); background: var(--navy-900); color: var(--gold-hi); }
.mode__title, .svc__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.mode p, .svc p { color: var(--muted); }
.mode__fit { padding-top: 12px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink) !important; }
.mode__fit span { display: block; font-size: .8125rem; font-weight: 600; color: var(--steel); }
.svc-grid { margin-top: 40px; }
@media (min-width: 720px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .modes { grid-template-columns: repeat(3, 1fr); gap: 20px; } .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- Перекрёстная ссылка, юридическое уведомление ---------- */
.crosslink { background: var(--navy-800); color: var(--white); padding-block: clamp(40px, 5vw, 64px); }
.crosslink__inner { display: grid; gap: 20px; align-items: center; }
.crosslink__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); letter-spacing: -.015em; margin-bottom: 8px; }
.crosslink p { color: rgba(255, 255, 255, .76); max-width: 62ch; }
.crosslink .btn { justify-self: start; }
@media (min-width: 860px) { .crosslink__inner { grid-template-columns: 1fr auto; gap: 48px; } }

.notice { background: var(--paper); padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.notice__inner { display: grid; grid-template-columns: 28px 1fr; gap: 16px; }
.notice__icon { color: var(--navy-700); padding-top: 2px; }
.notice__title { font-family: var(--font); font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.notice p { color: var(--muted); font-size: .9375rem; max-width: 92ch; }

/* ---------- Юридические документы (/privacy/, /terms/) и 404 ---------- */
.legal__inner { max-width: calc(820px + 2 * var(--gutter)); }
.legal__docs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.legal__doc { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9375rem; font-weight: 600; color: var(--navy-700); }
.legal__doc:hover { border-color: var(--navy-700); }
.legal__doc[aria-current="page"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.legal__docs--end { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.legal__title { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem); text-wrap: balance; overflow-wrap: anywhere; }
.legal__toc { margin: 28px 0 8px; padding: 18px 20px; background: var(--paper); border-radius: var(--radius); border-left: 3px solid var(--gold); }
.legal__toc-title { font-weight: 600; font-size: .9375rem; margin-bottom: 8px; }
.legal__toc ul { display: grid; gap: 2px; }
.legal__toc a { display: block; padding: 6px 0; font-size: .9375rem; line-height: 1.4; color: var(--navy-700); }
.legal__body { margin-top: 12px; }
.legal__h { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.0625rem, 1rem + .5vw, 1.25rem); line-height: 1.3; letter-spacing: 0; margin: 40px 0 14px; overflow-wrap: anywhere; }
.legal__p { margin: 0 0 12px; font-size: 1rem; line-height: 1.65; overflow-wrap: anywhere; max-width: 72ch; }
.legal__p--l3 { margin-left: clamp(16px, 4vw, 32px); }
.legal__p--li { margin-left: clamp(8px, 3vw, 20px); }
.legal__n { font-weight: 600; font-variant-numeric: tabular-nums; margin-right: .15em; }
.legal__dash { margin-right: .5em; }
.legal__p a, .legal__toc a { text-underline-offset: 3px; }
.legal__p a { color: var(--navy-700); font-weight: 600; }
.legal [id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.notfound__inner { max-width: 760px; }
.notfound__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 3rem + 6vw, 8rem); line-height: 1; color: var(--gold); margin-bottom: 16px; }
.notfound__links { display: grid; gap: 8px; margin: 28px 0; font-weight: 600; }
.notfound__links a { color: var(--navy-700); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .78); padding-block: 56px 28px; font-size: .9375rem; }
.site-footer__grid { display: grid; gap: 36px; }
.site-footer__logo { width: 216px; height: auto; }
.site-footer__about { margin-top: 18px; max-width: 44ch; }
.site-footer__title { font-weight: 600; color: var(--white); margin-bottom: 14px; }
.site-footer__list { display: grid; gap: 10px; }
.site-footer__list a { text-decoration: none; }
.site-footer__email { overflow-wrap: anywhere; }
.site-footer__list a:hover { color: var(--white); text-decoration: underline; }
.site-footer__muted { color: rgba(255, 255, 255, .58); }
.site-footer__note { margin-top: 40px; font-size: .8125rem; color: rgba(255, 255, 255, .5); max-width: 90ch; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(195, 203, 213, .14); font-size: .875rem; color: rgba(255, 255, 255, .6); }
.site-footer__bottom p { margin-right: auto; }
.site-footer__bottom a, .site-footer__bottom .link-btn { color: rgba(255, 255, 255, .78); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }

/* ---------- Нижняя панель (телефон) ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(8, 22, 39, .96);
  border-top: 1px solid rgba(195, 203, 213, .16); transform: translateY(110%); transition: transform .25s ease; visibility: hidden;
}
.sticky-bar.is-visible { transform: none; visibility: visible; }
.sticky-bar .btn--gold { flex: 1; }
.sticky-bar .btn--icon { width: 48px; }
body.has-sticky-bar { padding-bottom: 72px; }
@media (min-width: 1100px) { .sticky-bar { display: none; } body.has-sticky-bar { padding-bottom: 0; } }

/* ---------- Окно согласия cookie ---------- */
.consent { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 560px; margin-inline: auto; background: var(--white); color: var(--ink); border-radius: var(--radius-l); box-shadow: 0 20px 60px -20px rgba(8, 22, 39, .5); padding: 18px 20px; border: 1px solid var(--line); }
.consent__text { font-size: .875rem; line-height: 1.5; color: var(--muted); }
.consent__text a { color: var(--navy-700); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.consent__actions .btn { flex: 1 1 160px; }
@media (min-width: 1100px) { .consent { left: 24px; right: auto; bottom: 24px; } }

/* =====================================================================
   KTC 2.2 — система движения
   Принцип: без JavaScript и при prefers-reduced-motion всё видно сразу и в конечном состоянии.
   Скрытые «до появления» состояния действуют только под html.motion-ready (класс ставит layout.php,
   снимает сам себя, если motion.js не загрузился). Анимируются только opacity и transform;
   цвета этапов меняются короткими transition.
   ===================================================================== */

/* Появление групп карточек: один раз, по очереди (--i ставит motion.js, не больше 7) */
@keyframes m-rise { from { opacity: 0; transform: translate3d(0, var(--m-shift), 0); } to { opacity: 1; transform: none; } }
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }
.motion-ready [data-reveal-group]:not(.is-in) > * { opacity: 0; }
.motion-ready [data-reveal-group].is-in > * { animation: m-rise var(--m-dur) var(--m-ease) backwards; animation-delay: calc(var(--i, 0) * var(--m-stagger)); }
.motion-ready [data-reveal-group="fade"].is-in > * { animation-name: m-fade; }

/* ---------- Таймлайн этапов (поставка на главной, «Как проходит работа» на всех страницах) ---------- */
.tl { position: relative; isolation: isolate; }
.tl__fill { display: none; position: absolute; z-index: 0; left: 0; top: 0; width: 2px; height: 0; border-radius: 2px; background: var(--gold); transform-origin: 0 0; transform: scaleY(0); transition: transform 140ms linear; pointer-events: none; }
.tl.is-ready .tl__fill { display: block; }
.tl.is-ready.is-horizontal .tl__fill { transform: scaleX(0); }

/* светлый вариант (.steps) */
.tl.is-ready .steps__item::before { background: var(--line); }
.tl.is-ready .steps__num, .tl.is-ready .steps__title { transition: background-color var(--m-state) var(--m-ease), border-color var(--m-state) var(--m-ease), color var(--m-state) var(--m-ease), box-shadow var(--m-state) var(--m-ease); }
.tl.is-ready .steps__item:not(.is-done):not(.is-current) .steps__num { background: var(--white); border-color: var(--silver); color: var(--steel); }
.tl.is-ready .steps__item:not(.is-done):not(.is-current) .steps__title { color: var(--muted); }
.tl.is-ready .steps__item.is-current .steps__num { background: var(--gold); border-color: var(--gold); color: var(--navy-950); box-shadow: 0 0 0 5px rgba(201, 162, 92, .18); }

/* тёмный вариант (маршрут в первом экране) */
.tl.is-ready .route__step::before { background: rgba(195, 203, 213, .22); }
.tl.is-ready .route__node, .tl.is-ready .route__text strong, .tl.is-ready .route__text span { transition: background-color var(--m-state) var(--m-ease), border-color var(--m-state) var(--m-ease), color var(--m-state) var(--m-ease), box-shadow var(--m-state) var(--m-ease); }
.tl.is-ready .route__step:not(.is-done):not(.is-current) .route__node { border-color: rgba(195, 203, 213, .4); color: rgba(255, 255, 255, .62); }
.tl.is-ready .route__step:not(.is-done):not(.is-current) .route__text strong { color: rgba(255, 255, 255, .78); }
.tl.is-ready .route__step:not(.is-done):not(.is-current) .route__text span { color: rgba(255, 255, 255, .6); }
.tl.is-ready .route__step.is-current .route__node { background: var(--gold); color: var(--navy-950); box-shadow: 0 0 0 5px rgba(201, 162, 92, .16); }
.tl.is-ready .route__step.is-current .route__text span { color: rgba(255, 255, 255, .8); }

/* ---------- «Поставщик → Ваш склад»: маршрут с грузовиком ---------- */
.chain { position: relative; isolation: isolate; margin-top: 24px; padding-top: 18px; border-top: 1px dashed rgba(201, 162, 92, .35); }
.chain__road { position: relative; height: 30px; }
.chain__base, .chain__fill { position: absolute; left: 12.5%; right: 12.5%; top: 27px; height: 2px; border-radius: 2px; transform-origin: 0 50%; }
.chain__base { background: repeating-linear-gradient(90deg, rgba(195, 203, 213, .5) 0 6px, transparent 6px 12px); }
.chain__fill { background: var(--gold); }
.chain__go { position: absolute; z-index: 3; left: 12.5%; top: 0; width: 75%; height: 28px; transform: translateX(100%); pointer-events: none; }
.chain__truck { position: absolute; left: -45px; top: 4px; width: 46px; height: 25px; overflow: visible; }
.chain__truck-body { fill: var(--navy-800); stroke: var(--silver); stroke-width: 1.4; }
.chain__truck-cab { fill: var(--navy-700); stroke: var(--silver); stroke-width: 1.4; stroke-linejoin: round; }
.chain__truck-glass { fill: rgba(221, 187, 120, .35); }
.chain__truck-stripe { stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }
.chain__truck-frame { stroke: var(--silver); stroke-width: 1.4; stroke-linecap: round; }
.chain__truck-wheel { fill: var(--navy-950); stroke: var(--silver); stroke-width: 1.4; }
.chain__truck-lamp { stroke: var(--gold-hi); stroke-width: 2; stroke-linecap: round; }
.chain__points { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: -9px; }
.chain__point { display: grid; justify-items: center; gap: 8px; min-width: 0; text-align: center; }
.chain__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--navy-900); border: 2px solid var(--gold); }
.chain__label { font-size: .8125rem; line-height: 1.25; color: rgba(255, 255, 255, .74); }
.chain__point:last-child .chain__dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 92, .2); }
.chain__point:last-child .chain__label { color: var(--gold-hi); font-weight: 600; }
/* до запуска (только с JS) */
.motion-ready .chain:not(.is-run) .chain__go { transform: translateX(0); }
.motion-ready .chain:not(.is-run) .chain__base, .motion-ready .chain:not(.is-run) .chain__fill { transform: scaleX(0); }
.motion-ready .chain:not(.is-run) .chain__dot { border-color: rgba(195, 203, 213, .45); background: var(--navy-900); box-shadow: none; }
.motion-ready .chain:not(.is-run) .chain__label { color: rgba(255, 255, 255, .6); }
/* запуск: линия прорисовывается, грузовик едет с остановкой на таможне, точки загораются по мере проезда */
.chain.is-run .chain__base { animation: chain-draw .7s var(--m-ease) both; }
.chain.is-run .chain__go { animation: chain-go var(--m-route) linear .5s both; }
.chain.is-run .chain__fill { animation: chain-fill var(--m-route) linear .5s both; }
.chain.is-run .chain__dot, .chain.is-run .chain__label { transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease, color .3s ease; }
.chain.is-run .chain__point:nth-child(1) > * { transition-delay: .5s; }
.chain.is-run .chain__point:nth-child(2) > * { transition-delay: calc(.5s + var(--m-route) * .26); }
.chain.is-run .chain__point:nth-child(3) > * { transition-delay: calc(.5s + var(--m-route) * .5); }
.chain.is-run .chain__point:nth-child(4) > * { transition-delay: calc(.5s + var(--m-route) * .92); }
@keyframes chain-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes chain-go {
  0%   { transform: translateX(0);        animation-timing-function: var(--m-ease-io); }
  26%  { transform: translateX(33.333%);  animation-timing-function: var(--m-ease-io); }
  50%  { transform: translateX(66.667%); }
  64%  { transform: translateX(66.667%);  animation-timing-function: var(--m-ease-io); }
  92%, 100% { transform: translateX(100%); }
}
@keyframes chain-fill {
  0%   { transform: scaleX(0);     animation-timing-function: var(--m-ease-io); }
  26%  { transform: scaleX(.3333); animation-timing-function: var(--m-ease-io); }
  50%  { transform: scaleX(.6667); }
  64%  { transform: scaleX(.6667); animation-timing-function: var(--m-ease-io); }
  92%, 100% { transform: scaleX(1); }
}
@media (max-width: 439px) { .chain__label { font-size: .75rem; letter-spacing: -.01em; } }
@media (max-width: 359px) {
  .route { padding: 20px 16px; }
  .chain__label { font-size: .6875rem; letter-spacing: -.015em; }
  .chain { margin-inline: -4px; }
}

/* ---------- Движение ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .sticky-bar, .consent, .mobile-menu, .hero__grid-bg { display: none !important; } }
