@charset "UTF-8";
/* ==========================================================================
   IMLogistics — «Диспетчерская»
   Токены сняты с живого timeweb.cloud: палитра, радиусы, шкала отступов,
   ширина контейнера, кривая переходов. Mobile-first, без фреймворков.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Токены
   -------------------------------------------------------------------------- */
:root {
  /* Палитра */
  --ink:        #0b0b0d;
  --ink-2:      #17181c;
  --ink-3:      #232428;
  --accent:     #141519;
  --accent-700: #000000;
  --accent-100: #ececee;
  --surface:    #f5f5f6;
  --white:      #ffffff;
  --muted:      #62646c;
  --muted-2:    #7c7e88;
  --muted-3:    #b2b3ba;
  --line:       #e7e7ea;
  --line-dark:  rgba(255, 255, 255, .14);
  --live:       #22c55e;

  /* Радиусы */
  --r-xxs: 8px;
  --r-xs:  12px;
  --r-sm:  16px;
  --r-md:  24px;
  --r-xl:  32px;

  /* Шкала отступов */
  --g-4: 4px;   --g-8: 8px;    --g-12: 12px; --g-16: 16px;
  --g-20: 20px; --g-24: 24px;  --g-28: 28px; --g-32: 32px;
  --g-40: 40px; --g-48: 48px;  --g-64: 64px; --g-72: 72px; --g-90: 90px;

  /* Паддинги карточек */
  --pad-card-sm: 20px;
  --pad-card-md: 24px;
  --pad-card-xl: 28px;

  /* Сетка */
  --container: 1344px;
  --gutter:    20px;

  /* Типографика */
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, arial, sans-serif;
  --fs-h1: clamp(2.125rem, 1.15rem + 4.3vw, 3.5rem);
  --fs-h2: clamp(1.625rem, 1.05rem + 2.4vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1rem + 1.1vw, 1.625rem);
  --fs-h4: clamp(1.0625rem, .98rem + .4vw, 1.1875rem);
  --fs-body: 1rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;

  /* Переходы и тени */
  --t:    .25s cubic-bezier(.33, 1, .68, 1);
  --t-lg: .6s cubic-bezier(.22, .61, .36, 1);
  --sh-sm: 0 1px 2px rgba(10, 10, 13, .05);
  --sh-md: 0 10px 30px -12px rgba(10, 10, 13, .16);
  --sh-lg: 0 24px 60px -24px rgba(10, 10, 13, .28);

  /* Слои */
  --z-header: 60;
  --z-mega:   70;
  --z-nav:    80;
}

@media (min-width: 900px) {
  :root {
    --pad-card-sm: 24px;
    --pad-card-md: 36px;
    --pad-card-xl: 40px;
    --gutter: 32px;
  }
}

/* --------------------------------------------------------------------------
   2. Сброс и база
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* Атрибут hidden сильнее классов с display (например .field) */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--g-16);
  top: -100px;
  z-index: 200;
  padding: var(--g-12) var(--g-20);
  border-radius: var(--r-xs);
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  transition: top var(--t);
}
.skip-link:focus-visible { top: var(--g-16); }

/* --------------------------------------------------------------------------
   3. Типографика и мелкие примитивы
   -------------------------------------------------------------------------- */
.h1, .h2, .h3, .h4 { font-weight: 700; letter-spacing: -.01em; }

.h1 {
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: .01em;
  font-weight: 800;
}
.h2 { font-size: var(--fs-h2); line-height: 1.1; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; }
.h4 { font-size: var(--fs-h4); line-height: 1.3; }

.lead {
  font-size: clamp(1rem, .96rem + .3vw, 1.1875rem);
  line-height: 1.55;
  color: var(--muted);
}

.icon { width: 24px; height: 24px; flex: none; }
.icon--xs { width: 16px; height: 16px; }
.icon--sm { width: 20px; height: 20px; }

.req { color: var(--accent); }

.pulse {
  width: 8px; height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .55);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--g-8);
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--t), color var(--t);
}
.link-arrow:hover { gap: var(--g-12); color: var(--accent-700); }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--g-8);
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-xs);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
  transition: background-color var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-700); }

.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--accent-100); }

.btn--ghost { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--ghost-light { border-color: var(--line-dark); color: var(--white); }
.btn--ghost-light:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .07); }

.btn--sm { min-height: 42px; padding: 9px 18px; font-size: var(--fs-xs); }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: var(--fs-body); }
.btn--block { width: 100%; }

/* Чипы-табы */
.chips { display: flex; flex-wrap: wrap; gap: var(--g-8); }

.chip {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
  transition: background-color var(--t), color var(--t), border-color var(--t);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* --------------------------------------------------------------------------
   4. Раскладка
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--g-48); }
.section--flush { padding-block: var(--g-24); }
.section--tint { background: var(--surface); }
.section--ink { background: var(--ink); color: var(--white); }

@media (min-width: 900px) {
  .section { padding-block: var(--g-90); }
  .section--flush { padding-block: var(--g-32); }
}

.section__head { margin-bottom: var(--g-32); }
.section__head .h2 { max-width: 22ch; }

.section__head--split { display: grid; gap: var(--g-16); }
.section__lead { color: var(--muted); max-width: 52ch; }
.section__lead a { color: var(--accent); font-weight: 600; }

@media (min-width: 900px) {
  .section__head { margin-bottom: var(--g-48); }
  .section__head--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--g-40);
  }
  .section__head--split > :last-child { justify-self: end; }
}

/* --------------------------------------------------------------------------
   5. Топбар и шапка
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: var(--muted-3);
  font-size: var(--fs-xs);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--g-16);
  min-height: 44px;
  flex-wrap: wrap;
}
.topbar__note { display: inline-flex; align-items: center; gap: var(--g-8); }
.topbar__links { display: none; gap: var(--g-24); }
.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: var(--g-8);
  transition: color var(--t);
}
.topbar__link:hover { color: var(--white); }
.topbar__link--accent { color: #c7c8ce; }

@media (min-width: 900px) { .topbar__links { display: flex; } }

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--g-16);
  min-height: 68px;
}

.logo { display: inline-flex; align-items: center; gap: var(--g-12); color: var(--accent); }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__mark svg { width: 100%; height: 100%; }
.logo__text {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.logo__accent { color: var(--accent); }
.logo--footer .logo__text { color: var(--white); }

/* Бургер */
.burger {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line);
}
.burger__bar {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--t), opacity var(--t);
}
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Навигация — мобильная панель.
   Absolute от шапки, а не fixed: backdrop-filter на .header делает её
   containing block для fixed-потомков, и панель схлопывалась бы. */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: none;
  height: calc(100vh - 68px);  /* 68px — min-height шапки */
  height: calc(100dvh - 68px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--g-24) var(--gutter) var(--g-48);
  background: var(--white);
  border-top: 1px solid var(--line);
}
.nav.is-open { display: block; animation: nav-in .35s cubic-bezier(.22, .61, .36, 1) both; }

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-10px); }
}

.nav__item { border-bottom: 1px solid var(--line); }
.nav__item--has-mega { position: relative; padding-right: 48px; }

.nav__link {
  display: block;
  padding: var(--g-16) 0;
  font-size: 1.0625rem;
  font-weight: 600;
  transition: color var(--t);
}
.nav__link:hover, .nav__link.is-active { color: var(--accent); }

.nav__toggle {
  position: absolute;
  top: 10px; right: 0;
  display: grid;
  place-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-xxs);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: transform var(--t), color var(--t), border-color var(--t);
}
.nav__toggle[aria-expanded="true"] { transform: rotate(45deg); color: var(--accent); border-color: var(--accent); }

.mega { display: none; padding-bottom: var(--g-20); }
.mega.is-open { display: block; }
.mega__inner { padding-inline: 0; max-width: none; }

.mega__grid { display: grid; gap: var(--g-20); }
.mega__head {
  display: flex;
  align-items: center;
  gap: var(--g-8);
  margin: 0 0 var(--g-8) -10px;
  padding: 6px 10px;
  border-radius: var(--r-xxs);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
  transition: color var(--t), background-color var(--t);
}
.mega__head:hover { color: var(--accent); background: var(--surface); }
.mega__head .icon { color: var(--accent); }

.mega__count {
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface);
  font-size: .6875rem;
  font-weight: 600;
  color: var(--muted-2);
  transition: background-color var(--t), color var(--t);
}
.mega__head:hover .mega__count { background: var(--accent-100); color: var(--accent); }

.mega__list { display: grid; gap: 4px; padding-left: 28px; }
.mega__list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 3px 0;
  font-size: var(--fs-sm);
  color: var(--muted);
  transition: color var(--t), transform var(--t);
}
/* Точка-маркер: по первой строке текста; подсвечивается и растёт
   вместе со сдвигом ссылки */
.mega__list a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--muted-3);
  transition: background-color var(--t), transform var(--t);
}
.mega__list a:hover { color: var(--accent); transform: translateX(3px); }
.mega__list a:hover::before { background: var(--accent); transform: scale(1.5); }
.mega__foot { margin-top: var(--g-16); padding-left: 28px; }

.nav__aside {
  display: grid;
  gap: var(--g-12);
  margin-top: var(--g-24);
}
.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--g-8);
  font-weight: 700;
  transition: color var(--t);
}
.nav__phone:hover { color: var(--accent); }

/* Навигация — десктоп */
@media (min-width: 1156px) {
  .burger { display: none; }

  .nav {
    position: static;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    height: auto;
    overflow: visible;
    padding: 0;
    background: none;
    border-top: 0;
  }
  .nav__list { display: flex; align-items: center; gap: var(--g-4); margin-left: var(--g-24); }
  .nav__item { border: 0; padding: 0; }
  /* static: мега-панель позиционируется от шапки (sticky) и центрируется
     по странице, а не по узкому пункту меню */
  .nav__item--has-mega { position: static; padding-right: 0; }

  .nav__link {
    padding: 10px 11px;
    border-radius: var(--r-xxs);
    font-size: var(--fs-sm);
    white-space: nowrap;
  }

  /* Телефон в навигации — только на широких экранах:
     на узком десктопе он остаётся в топбаре и кнопке CTA */
  .nav__phone { display: none; }
  .nav__link:hover { background: var(--surface); }
  .nav__link.is-active { background: var(--accent-100); color: var(--accent); }

  .nav__toggle { display: none; }

  .mega {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: var(--z-mega);
    display: block;
    width: min(1180px, calc(100vw - 48px));
    /* Визуальный зазор до карточки — паддингом, чтобы он входил
       в hover-область панели и курсор не «проваливался» по пути. */
    padding: 14px 0 0;
    transform: translateX(-50%) translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t), transform var(--t), visibility var(--t);
  }
  .nav__item--has-mega:hover .mega,
  .nav__item--has-mega:focus-within .mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  /* Мостик: пункт меню ниже шапки, и между его нижней гранью и краем
     шапки есть ~13px мёртвой зоны — накрываем её нижней полосой шапки.
     Существует только пока пункт наведён, иначе полоса открывала бы
     меню сама по себе. */
  .nav__item--has-mega:hover::after,
  .nav__item--has-mega:focus-within::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 16px;
  }

  .mega__inner {
    padding: var(--g-32);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--white);
    box-shadow: var(--sh-lg);
  }
  .mega__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g-24) var(--g-32); }
  .mega__grid--fleet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega__list { padding-left: 0; }
  .mega__foot { padding-left: 0; padding-top: var(--g-20); border-top: 1px solid var(--line); }

  .nav__aside { display: flex; align-items: center; gap: var(--g-16); margin: 0; }
}

@media (min-width: 1360px) {
  .nav__phone { display: inline-flex; white-space: nowrap; }
}

@media (min-width: 1392px) {
  .mega__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mega__grid--fleet { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   6. Хлебные крошки
   -------------------------------------------------------------------------- */
.crumbs { padding-block: var(--g-16); font-size: var(--fs-xs); color: var(--muted-2); }
.crumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--g-8); }
.crumbs__item { display: inline-flex; align-items: center; gap: var(--g-8); }
.crumbs__item + .crumbs__item::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--muted-3);
}
.crumbs a { transition: color var(--t); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   7. Герой
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--g-40) var(--g-48);
  border-bottom-left-radius: var(--r-xl);
  border-bottom-right-radius: var(--r-xl);
  background: var(--surface);
}
.hero__inner { position: relative; z-index: 2; display: grid; gap: var(--g-32); }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--g-8);
  padding: 7px 14px;
  margin-bottom: var(--g-20);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--sh-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.hero__title { margin-bottom: var(--g-20); }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { margin-bottom: var(--g-28); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--g-12); }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--g-20) var(--g-16);
  margin-top: var(--g-32);
  padding-top: var(--g-28);
  border-top: 1px solid var(--line);
}
.hero__fact-value { font-size: 1.375rem; font-weight: 800; letter-spacing: -.01em; }
.hero__fact-label { font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; }

/* --- Гео: интерактивная карта, автокомплит адресов, пины А/Б --- */
.geo-wrap { position: relative; }

.geo-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 60;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--white);
  box-shadow: var(--sh-md);
}
.geo-suggest li {
  padding: 10px 14px;
  font-size: var(--fs-sm);
  color: var(--muted);
  cursor: pointer;
  transition: background-color var(--t), color var(--t);
}
.geo-suggest li + li { border-top: 1px solid var(--line); }
.geo-suggest li:hover,
.geo-suggest li.is-active { background: var(--accent-100); color: var(--accent); }
.geo-suggest .geo-suggest__note {
  color: var(--muted-2);
  cursor: default;
  background: none;
}

/* Пины на карте — капля в стиле бейджей А/Б из карточки маршрута */
.geo-pin-wrap { background: none; border: 0; }
.geo-pin {
  display: grid;
  place-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  box-shadow: var(--sh-md);
  font-size: .75rem;
  font-weight: 700;
  color: var(--white);
}
.geo-pin > span { transform: rotate(45deg); }
.geo-pin--a { background: var(--accent); }
.geo-pin--b { background: var(--ink); }

/* Компактная карта во встроенных формах */
.geo-mini { display: grid; gap: var(--g-8); margin-top: var(--g-16); }
.geo-mini__map {
  position: relative;
  isolation: isolate;
  height: 240px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.geo-mini__hint { font-size: var(--fs-xs); color: var(--muted-2); }
.geo-mini__hint b { color: var(--accent); }

/* Подсветка активного поля: клик по карте попадёт именно сюда */
[data-geo-from].is-geo-active,
[data-geo-to].is-geo-active { border-color: var(--accent); }

/* Шрифт и слои Leaflet под наш дизайн */
.leaflet-container { font-family: var(--font); font-size: var(--fs-xs); }
.leaflet-control-attribution { font-size: 10px; }

/* --- Форма расчёта на первом экране (структура — как у референса) --- */
.hcalc-head {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--g-12);
  margin-bottom: var(--g-24);
}
.hcalc-head__title { font-size: var(--fs-h2); margin-bottom: 0; }
.hcalc-head__lead { color: var(--muted); max-width: 52ch; }

.hcalc { position: relative; z-index: 2; display: grid; gap: var(--g-16); }

.hcalc__map {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
}
.hcalc__mapcanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  isolation: isolate;
}

.hcalc__dist {
  display: inline-flex;
  align-items: center;
  gap: var(--g-8);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
}
.hcalc__dist .icon { color: var(--accent); }
.hcalc__dist b { color: var(--accent); }
.hcalc__route-hint { font-size: .6875rem; color: var(--muted-2); }
.hcalc__map.is-full {
  position: fixed;
  inset: 0;
  z-index: 95;
  min-height: 0;
  border-radius: 0;
  border: 0;
}
/* .hcalc создаёт stacking context (z:2) — без подъёма всей ветки
   фиксированная карта осталась бы под шапкой (z:60) */
body.is-map-full .hcalc { z-index: 200; }

.hcalc__route {
  position: absolute;
  top: var(--g-16);
  left: var(--g-16);
  z-index: 2;
  display: grid;
  gap: var(--g-8);
  width: min(300px, calc(100% - 32px));
  padding: var(--g-12);
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow: var(--sh-md);
}
.hcalc__route-row { display: flex; align-items: center; gap: var(--g-8); }
.hcalc__point {
  display: grid;
  place-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  font-size: .6875rem;
  font-weight: 700;
  color: var(--white);
}
.hcalc__point--a { background: var(--accent); }
.hcalc__point--b { background: var(--ink); }
.hcalc__route-input {
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-xxs);
  font: inherit;
  font-size: var(--fs-sm);
  transition: border-color var(--t), box-shadow var(--t);
}
.hcalc__route-input:hover { border-color: var(--muted-3); }
.hcalc__route-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-100);
}

.hcalc__expand {
  position: absolute;
  top: var(--g-16);
  right: var(--g-16);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--g-8);
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--sh-md);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
  transition: color var(--t);
}
.hcalc__expand:hover { color: var(--accent); }
.hcalc__expand .icon { color: var(--accent); }

/* На узких экранах кнопка уходит вниз — вверху её перекрывала карточка маршрута */
@media (max-width: 700px) {
  .hcalc__expand { top: auto; bottom: var(--g-16); }
}

.hcalc__panel {
  display: grid;
  gap: var(--g-16);
  align-content: start;
  padding: var(--pad-card-md);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--sh-sm);
}
.hcalc__unit {
  display: flex;
  align-items: center;
  gap: var(--g-16);
  padding-bottom: var(--g-16);
  border-bottom: 1px solid var(--line);
}
.hcalc__unit-icon {
  display: grid;
  place-content: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: var(--r-xs);
  background: var(--accent-100);
  color: var(--accent);
}
.hcalc__unit-name { font-weight: 700; }
.hcalc__unit-meta { margin-top: 2px; font-size: var(--fs-xs); color: var(--muted-2); }

.hcalc__row { display: grid; gap: var(--g-16); }
@media (min-width: 560px) { .hcalc__row { grid-template-columns: 1fr 1fr; } }

.hcalc__comment-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--g-8);
  justify-self: start;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  transition: color var(--t);
}
.hcalc__comment-toggle:hover { color: var(--accent-700); }
.hcalc__comment-toggle .icon { transition: transform var(--t); }
.hcalc__comment-toggle[aria-expanded="true"] .icon { transform: rotate(45deg); }

/* --- Модалка результата расчёта --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: var(--g-16);
  overflow-y: auto;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 13, .55);
  backdrop-filter: blur(4px);
}
.modal__card {
  position: relative;
  display: grid;
  gap: var(--g-12);
  width: min(440px, 100%);
  padding: var(--pad-card-md);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--sh-lg);
  animation: modal-in .3s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
}

.modal__close {
  position: absolute;
  top: var(--g-16);
  right: var(--g-16);
  display: grid;
  place-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--muted-2);
  transition: color var(--t), background-color var(--t);
}
.modal__close:hover { color: var(--accent); background: var(--accent-100); }
.modal__close svg { width: 20px; height: 20px; }

.modal__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.modal__price {
  font-size: 2.375rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.modal__note { font-size: var(--fs-sm); color: var(--muted); }
.modal__badge {
  display: flex;
  align-items: center;
  gap: var(--g-8);
  padding: var(--g-8) var(--g-12);
  border-radius: var(--r-xxs);
  background: rgba(34, 197, 94, .12);
  color: #15803d;
  font-size: var(--fs-xs);
  font-weight: 600;
}
.modal__badge .icon { flex: none; }

.modal__divider {
  display: flex;
  align-items: center;
  gap: var(--g-12);
  margin-block: var(--g-4);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-3);
}
.modal__divider::before,
.modal__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.modal__phone {
  justify-self: center;
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  transition: color var(--t);
}
.modal__phone:hover { color: var(--accent); }
.modal__hint {
  justify-self: center;
  font-size: var(--fs-xs);
  color: var(--muted-2);
}

.modal__form { display: grid; gap: var(--g-12); margin-top: var(--g-8); }
.modal__form .check__label { font-size: var(--fs-xs); }
.modal__form .check__label a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.modal__done {
  display: flex;
  align-items: center;
  gap: var(--g-8);
  padding: var(--g-16);
  border-radius: var(--r-sm);
  background: rgba(34, 197, 94, .12);
  color: #15803d;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.modal__done .icon { flex: none; }

.modal__more { justify-self: center; margin-top: var(--g-4); }

/* Фирменный приём: маршрутная нить */
.route-line {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  width: 100%;
  height: 260px;
  pointer-events: none;
  color: var(--accent);
  opacity: .22;
}
.route-line path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-dasharray: 10 14;
  animation: route 28s linear infinite;
}
@keyframes route { to { stroke-dashoffset: -720; } }

@media (min-width: 900px) {
  .hero { padding-block: var(--g-48) var(--g-64); }
  .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .hcalc { grid-template-columns: minmax(0, 1fr) 400px; align-items: stretch; gap: var(--g-24); }
  .hcalc__map { min-height: 0; }
  .hcalc-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, .72fr);
    align-items: end;
    gap: var(--g-32);
  }
  .hcalc-head__lead { margin-bottom: 4px; }
}

/* Компактный герой внутренних страниц */
.phero { padding-block: var(--g-32) var(--g-40); background: var(--surface); }
.phero__inner { display: grid; gap: var(--g-24); }
.phero__title { margin-bottom: var(--g-16); }
.phero__lead { max-width: 58ch; }
.phero__actions { display: flex; flex-wrap: wrap; gap: var(--g-12); margin-top: var(--g-24); }

.phero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--g-8);
  margin-top: var(--g-20);
}
.phero__meta span {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.phero__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-md);
}

@media (min-width: 900px) {
  .phero { padding-block: var(--g-48) var(--g-64); }
  .phero__inner--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: var(--g-48);
  }
}

/* --------------------------------------------------------------------------
   8. Калькулятор
   -------------------------------------------------------------------------- */
.calc {
  display: grid;
  gap: var(--g-20);
  align-items: start;
}
.calc__form {
  display: grid;
  gap: var(--g-16);
  padding: var(--pad-card-md);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
}
.calc__row { display: grid; gap: var(--g-16); }
.calc__fieldset { margin: 0; padding: 0; border: 0; }
.calc__fieldset .field__label { margin-bottom: var(--g-12); }

.field { display: block; }
.field__label {
  display: block;
  margin-bottom: var(--g-8);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
}
.field__input {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--white);
  font-size: var(--fs-sm);
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
}
.field__input::placeholder { color: var(--muted-3); }
.field__input:hover { border-color: var(--muted-3); }
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-100);
}
.field__input--area { min-height: 76px; resize: vertical; }

.field__select { position: relative; }
.field__select select { padding-right: 46px; cursor: pointer; }
.field__select-icon {
  position: absolute;
  top: 50%; right: 16px;
  transform: translateY(-50%) rotate(90deg);
  color: var(--muted-2);
  pointer-events: none;
}

.calc__submit { display: grid; gap: var(--g-12); }
.calc__consent { font-size: var(--fs-xs); color: var(--muted-2); }
.calc__consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.calc__estimate {
  position: relative;
  overflow: hidden;
  padding: var(--pad-card-md);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--white);
}
.calc__estimate::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .14) 0%, transparent 70%);
  pointer-events: none;
}
.calc__estimate-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-3);
}
.calc__total {
  margin-block: var(--g-8) var(--g-20);
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.calc__cur { color: var(--muted-3); font-weight: 600; }

.calc__breakdown {
  display: grid;
  gap: var(--g-8);
  padding-bottom: var(--g-20);
  border-bottom: 1px solid var(--line-dark);
  font-size: var(--fs-sm);
}
.calc__breakdown > div { display: flex; justify-content: space-between; gap: var(--g-16); }
.calc__breakdown dt { color: var(--muted-3); }
.calc__breakdown dd { font-weight: 600; font-variant-numeric: tabular-nums; }

.calc__included {
  display: grid;
  gap: var(--g-8);
  padding-block: var(--g-20);
  font-size: var(--fs-sm);
}
.calc__included li { display: flex; align-items: center; gap: var(--g-8); color: #d9dade; }
.calc__included .icon { color: var(--live); }

.calc__min {
  display: flex;
  align-items: flex-start;
  gap: var(--g-8);
  margin-bottom: var(--g-16);
  padding: var(--g-12) var(--g-16);
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, .10);
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: #e3e3e7;
}
.calc__min[hidden] { display: none; }
.calc__min .icon { margin-top: 2px; color: #c7c8ce; }

.calc__hint { font-size: var(--fs-xs); line-height: 1.55; color: var(--muted-3); }
.calc__hint a { color: var(--white); font-weight: 600; }

@media (min-width: 640px) {
  .calc__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc__submit { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
}
@media (min-width: 1000px) {
  .calc { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--g-24); }
  .calc__estimate { position: sticky; top: 96px; }
}

/* --------------------------------------------------------------------------
   8b. Страница «Рассчитать перевозку»: форма + живая смета
   -------------------------------------------------------------------------- */
.field__hint { margin-top: var(--g-8); font-size: var(--fs-xs); color: var(--muted-2); }
.field__hint b { color: var(--accent); }

.pcalc { display: grid; gap: var(--g-24); align-items: start; }

.pcalc__form { display: grid; gap: var(--g-16); }
.pcalc__group {
  display: grid;
  gap: var(--g-16);
  margin: 0;
  padding: var(--pad-card-md);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
  min-width: 0;
}
.pcalc__legend {
  display: flex;
  align-items: center;
  gap: var(--g-12);
  float: left;
  width: 100%;
  margin-bottom: var(--g-4);
  font-weight: 700;
}
.pcalc__num {
  display: grid;
  place-content: center;
  width: 28px; height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-100);
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.pcalc__auto {
  margin-left: var(--g-8);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-100);
  color: var(--accent);
  font-size: .6875rem;
  font-weight: 600;
  white-space: nowrap;
}
.pcalc__inline { display: flex; align-items: center; gap: var(--g-16); flex-wrap: wrap; }

.chips--sub { margin-top: var(--g-4); }
.chip--sm { padding: 6px 12px; }
.chip--icon { display: inline-flex; align-items: center; gap: 6px; }
.chip--icon .icon { flex: none; }

/* Ползунок */
.range { display: grid; gap: var(--g-8); }
.range__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--g-12); }
.range__value { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.range__value b { font-size: var(--fs-h4); color: var(--accent); font-variant-numeric: tabular-nums; }
.range__input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--fill, 0%), var(--line) var(--fill, 0%));
  cursor: pointer;
}
.range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--white);
  box-shadow: var(--sh-sm);
  transition: transform var(--t);
}
.range__input::-webkit-slider-thumb:hover { transform: scale(1.12); }
.range__input::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--white);
  box-shadow: var(--sh-sm);
  transition: transform var(--t);
}
.range__input::-moz-range-thumb:hover { transform: scale(1.12); }
.range__input:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

/* Степпер */
.stepper { display: inline-flex; align-items: center; gap: var(--g-8); }
.stepper__btn {
  display: grid;
  place-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-xxs);
  background: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--t), border-color var(--t);
}
.stepper__btn:hover { border-color: var(--accent); color: var(--accent); }
.stepper__btn:disabled { opacity: .35; pointer-events: none; }
.stepper__value { min-width: 52px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper--sm .stepper__btn { width: 34px; height: 34px; font-size: 1.05rem; }
.stepper--sm .stepper__value { min-width: 44px; }

/* Чекбокс */
.check { position: relative; display: flex; align-items: flex-start; gap: var(--g-12); cursor: pointer; }
.check__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check__box {
  display: grid;
  place-content: center;
  width: 22px; height: 22px;
  flex: none;
  margin-top: 1px;
  border: 1px solid var(--muted-3);
  border-radius: 6px;
  background: var(--white);
  color: transparent;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.check:hover .check__box { border-color: var(--accent); }
.check__input:checked + .check__box { background: var(--accent); border-color: var(--accent); color: var(--white); }
.check__input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check__label { font-size: var(--fs-sm); color: var(--muted); }
.check__note { color: var(--accent); font-weight: 600; white-space: nowrap; }
.check--compact { margin-top: var(--g-8); }

/* Смета: тёмная липкая панель */
.est {
  display: grid;
  gap: var(--g-16);
  padding: var(--pad-card-md);
  border-radius: var(--r-xl);
  background: var(--ink);
  color: var(--muted-3);
}
.est__caption {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.est__hours {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--g-12);
  padding: var(--g-12) var(--g-16);
  border-radius: var(--r-sm);
  background: var(--ink-3);
}
.est__hours-label { font-size: var(--fs-sm); font-weight: 600; color: var(--white); }
.est__hours-note { font-size: var(--fs-xs); color: var(--muted-2); }
.est .stepper__btn { background: transparent; border-color: var(--line-dark); color: var(--muted-3); }
.est .stepper__btn:hover { border-color: var(--accent); color: var(--white); }
.est .stepper__value { color: var(--white); }

.est__rows { display: grid; gap: var(--g-8); }
.est__row { display: flex; justify-content: space-between; gap: var(--g-16); font-size: var(--fs-sm); }
.est__row dt { color: var(--muted-3); }
.est__row dd { font-weight: 600; color: var(--white); white-space: nowrap; font-variant-numeric: tabular-nums; }
.est__row[hidden] { display: none; }

.est__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--g-16);
  padding-top: var(--g-12);
  border-top: 1px solid var(--line-dark);
  color: var(--white);
  font-weight: 700;
}
.est__total-value { font-size: 1.75rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

.est__badge {
  display: flex;
  align-items: center;
  gap: var(--g-8);
  padding: var(--g-8) var(--g-12);
  border-radius: var(--r-xxs);
  background: rgba(34, 197, 94, .14);
  color: #8ce3ab;
  font-size: var(--fs-xs);
  font-weight: 600;
}
.est__badge .icon { flex: none; }

.est__includes { display: grid; gap: var(--g-8); font-size: var(--fs-xs); }
.est__includes li { display: flex; align-items: flex-start; gap: var(--g-8); }
.est__includes .icon { flex: none; margin-top: 2px; color: var(--live); }

.est__submit { display: grid; gap: var(--g-12); padding-top: var(--g-8); }
.est .field__label { color: var(--muted-3); }
.est .field__input {
  border-color: var(--line-dark);
  background: var(--ink-2);
  color: var(--white);
}
.est .field__input::placeholder { color: var(--muted-2); }
.est__alt { font-size: var(--fs-xs); color: var(--muted-2); text-align: center; }
.est__alt a { color: var(--white); font-weight: 600; transition: color var(--t); }
.est__alt a:hover { color: var(--accent-100); }

/* Закреплённый итог на мобильных */
.est-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--g-16);
  padding: var(--g-12) var(--gutter);
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 -10px 30px rgba(10, 10, 13, .3);
}
.est-bar[hidden] { display: none; }
.est-bar__label { font-size: var(--fs-xs); color: var(--muted-2); }
.est-bar__value { font-size: var(--fs-h4); font-weight: 700; font-variant-numeric: tabular-nums; }

@media (min-width: 1000px) {
  .pcalc { grid-template-columns: minmax(0, 1fr) 416px; gap: var(--g-32); }
  .est { position: sticky; top: 96px; }
  .est-bar { display: none; }
}

/* --------------------------------------------------------------------------
   9. Преимущества и счётчики
   -------------------------------------------------------------------------- */
.adv { display: grid; gap: var(--g-16); }
.adv__item {
  position: relative;
  padding: var(--pad-card-md);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.adv__item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--sh-md);
}
.adv__num {
  position: absolute;
  top: var(--g-20); right: var(--g-24);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted-3);
  font-variant-numeric: tabular-nums;
}
.adv__icon {
  display: grid;
  place-content: center;
  width: 48px; height: 48px;
  margin-bottom: var(--g-20);
  border-radius: var(--r-xs);
  background: var(--accent-100);
  color: var(--accent);
}
.adv__title { margin-bottom: var(--g-8); font-size: var(--fs-h4); font-weight: 700; }
.adv__text { font-size: var(--fs-sm); color: var(--muted); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--g-24) var(--g-16);
  margin-top: var(--g-32);
  padding: var(--pad-card-md);
  border-radius: var(--r-xl);
  background: var(--surface);
}
.stats__value {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--accent);
}
.stats__label { margin-top: var(--g-4); font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; }

@media (min-width: 640px) { .adv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .adv { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--g-40); }
}

/* --------------------------------------------------------------------------
   10. Панель «Документы» и списки файлов
   -------------------------------------------------------------------------- */
.panel {
  display: grid;
  gap: var(--g-24);
  padding: var(--pad-card-md);
  border-radius: var(--r-xl);
  background: var(--surface);
}
.panel__text { margin-block: var(--g-12) var(--g-20); font-size: var(--fs-sm); color: var(--muted); }

.filelist { display: grid; gap: var(--g-8); }
.filelist__link {
  display: flex;
  align-items: center;
  gap: var(--g-16);
  padding: var(--g-16);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--white);
  transition: border-color var(--t), transform var(--t);
}
.filelist__link:hover { border-color: var(--accent); transform: translateX(3px); }
.filelist__icon { display: grid; place-content: center; width: 40px; height: 40px; flex: none;
  border-radius: var(--r-xxs); background: var(--accent-100); color: var(--accent); }
.filelist__body { flex: 1; min-width: 0; }
.filelist__title { display: block; font-size: var(--fs-sm); font-weight: 600; }
.filelist__meta { display: block; font-size: var(--fs-xs); color: var(--muted-2); }
.filelist__arrow { color: var(--muted-2); }
.filelist__link:hover .filelist__arrow { color: var(--accent); }

@media (min-width: 900px) {
  .panel--split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--g-48); align-items: start; }
  .filelist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   11. Мега-перечень услуг
   -------------------------------------------------------------------------- */
.smenu { display: grid; gap: var(--g-16); }
.smenu__group {
  padding: var(--pad-card-sm);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  transition: border-color var(--t), box-shadow var(--t);
}
.smenu__group:hover { border-color: var(--accent); box-shadow: var(--sh-md); }

.smenu__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--g-8) var(--g-12);
  padding-bottom: var(--g-12);
  margin-bottom: var(--g-12);
  border-bottom: 1px solid var(--line);
}
.smenu__icon { display: grid; place-content: center; width: 36px; height: 36px;
  border-radius: var(--r-xxs); background: var(--accent-100); color: var(--accent); }
.smenu__title { font-size: var(--fs-sm); font-weight: 700; }
.smenu__price {
  grid-column: 2;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
}
.smenu__list { display: grid; gap: 6px; }
.smenu__list a { font-size: var(--fs-sm); color: var(--muted); transition: color var(--t), padding-left var(--t); }
.smenu__list a:hover { color: var(--accent); padding-left: 4px; }

@media (min-width: 640px) { .smenu { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .smenu { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   12. Блок скачивания прайсов
   -------------------------------------------------------------------------- */
.pdown {
  display: grid;
  gap: var(--g-24);
  padding: var(--pad-card-md);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--white);
}
.pdown__text { margin-top: var(--g-12); font-size: var(--fs-sm); color: var(--muted); }
.pdown__list { display: grid; gap: var(--g-4); }

.pdown__item {
  display: flex;
  align-items: center;
  gap: var(--g-16);
  padding: var(--g-12) var(--g-16);
  border-radius: var(--r-xs);
  transition: background-color var(--t);
}
.pdown__item:hover { background: var(--surface); }
.pdown__num { font-size: var(--fs-xs); font-weight: 700; color: var(--muted-3); font-variant-numeric: tabular-nums; }
.pdown__body { flex: 1; min-width: 0; }
.pdown__title { display: block; font-size: var(--fs-sm); font-weight: 600; }
.pdown__meta { display: block; font-size: var(--fs-xs); color: var(--muted-2); }
.pdown__icon { color: var(--muted-2); }
.pdown__item:hover .pdown__icon { color: var(--accent); }

@media (min-width: 900px) {
  .pdown { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--g-48); align-items: start; }
}

/* --------------------------------------------------------------------------
   13. Аккордеон
   -------------------------------------------------------------------------- */
.acc { display: grid; gap: var(--g-8); align-content: start; }
.acc__item {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  transition: border-color var(--t);
}
.acc__item:hover { border-color: var(--muted-3); }
.acc__item.is-open,
.acc__item:has(.acc__btn[aria-expanded="true"]) { border-color: var(--accent); }
.acc__heading { margin: 0; font-size: inherit; font-weight: inherit; }

.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--g-16);
  width: 100%;
  padding: var(--g-20);
  text-align: left;
}
.acc__q { font-size: var(--fs-sm); font-weight: 600; }

.acc__sign { position: relative; width: 18px; height: 18px; flex: none; }
.acc__sign::before, .acc__sign::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform var(--t);
}
.acc__sign::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__sign::after { transform: rotate(0deg); }

/* Панель раскрывается плавно: grid-rows 0fr → 1fr.
   visibility убирает свёрнутый контент из фокуса и скринридера. */
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows var(--t-lg), visibility var(--t-lg);
}
.acc__panel-inner { min-height: 0; overflow: hidden; }
.acc__panel-inner p {
  padding: 0 var(--g-20) var(--g-20);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.acc__item.is-open .acc__panel {
  grid-template-rows: 1fr;
  visibility: visible;
}

@media (min-width: 900px) {
  .acc { gap: var(--g-12); }
}

/* --------------------------------------------------------------------------
   14. Акции
   -------------------------------------------------------------------------- */
.promo { display: grid; gap: var(--g-16); }
.promo__card {
  display: flex;
  flex-direction: column;
  gap: var(--g-12);
  padding: var(--pad-card-md);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.promo__card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--sh-md); }

.promo__tag {
  align-self: start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-100);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent);
}
.promo__title { font-size: var(--fs-h4); font-weight: 700; }
.promo__price {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.promo__price span { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--muted-2); letter-spacing: 0; }
.promo__text { font-size: var(--fs-sm); color: var(--muted); }
.promo__terms { display: grid; gap: 6px; margin-top: auto; padding-top: var(--g-8); }
.promo__terms li { display: flex; align-items: center; gap: var(--g-8); font-size: var(--fs-xs); color: var(--muted); }
.promo__terms .icon { color: var(--live); }
.promo__card .btn { margin-top: var(--g-8); }

@media (min-width: 640px) { .promo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .promo { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.promo--all { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* --------------------------------------------------------------------------
   15. Слайдер отзывов
   -------------------------------------------------------------------------- */
.slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: var(--g-16);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--g-8);
  scrollbar-width: thin;
}
.slider__slide { scroll-snap-align: start; }
.slider__nav { display: flex; gap: var(--g-8); }
.slider__btn {
  display: grid;
  place-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--t), color var(--t), background-color var(--t);
}
.slider__btn:hover { border-color: var(--accent); color: var(--accent); }
.slider__btn svg { width: 20px; height: 20px; }

.review {
  display: flex;
  flex-direction: column;
  gap: var(--g-16);
  height: 100%;
  padding: var(--pad-card-md);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
}
.review__rate { display: flex; gap: 2px; }
.review__star { color: #f5a524; }
.review__text { font-size: var(--fs-sm); line-height: 1.6; color: var(--ink); flex: 1; }
.review__author { display: flex; align-items: center; gap: var(--g-12); padding-top: var(--g-16); border-top: 1px solid var(--line); }
.review__avatar {
  display: grid;
  place-content: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-100);
  color: var(--accent);
  font-weight: 800;
}
.review__name { display: block; font-size: var(--fs-sm); font-weight: 700; }
.review__role { display: block; font-size: var(--fs-xs); color: var(--muted-2); }

@media (min-width: 900px) { .slider { grid-auto-columns: minmax(0, 1fr); grid-template-columns: repeat(4, 1fr); overflow-x: visible; } }

/* --------------------------------------------------------------------------
   16. Тёмный CTA: диагональный hard-stop градиент
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: var(--g-24);
  padding: var(--pad-card-xl);
  border-radius: var(--r-xl);
  background:
    linear-gradient(to top right, transparent 0 46%, rgba(36, 43, 71, .85) 46% 100%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--white);
}
.cta__title {
  margin-bottom: var(--g-12);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.12;
  max-width: 24ch;
}
.cta__text { margin-bottom: var(--g-24); font-size: var(--fs-sm); color: #c9cce8; max-width: 46ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--g-12); }
.cta__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
}

@media (min-width: 900px) {
  .cta { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: var(--g-48); }
  .cta__body { position: relative; z-index: 2; }
}

/* --------------------------------------------------------------------------
   17. Карточки услуг, техники, категорий
   -------------------------------------------------------------------------- */
.cards { display: grid; gap: var(--g-16); }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }

/* На десктопе колонки фиксированные: одна-две карточки («Похожие машины»
   у малочисленных классов) занимают колонку, а не всю ширину */
@media (min-width: 900px) {
  .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--sh-md); }

.card__media { position: relative; overflow: hidden; }
.card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform var(--t-lg);
}
.card:hover .card__media img { transform: scale(1.04); }

.card__price {
  position: absolute;
  top: var(--g-12); left: var(--g-12);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.card__body { display: flex; flex-direction: column; gap: var(--g-8); flex: 1; padding: var(--pad-card-sm); }
.card__title { font-size: var(--fs-h4); font-weight: 700; }
.card__text { font-size: var(--fs-sm); color: var(--muted); }
.card__meta { display: flex; flex-wrap: wrap; gap: var(--g-8); margin-top: var(--g-4); }
.card__meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--g-12); margin-top: auto; padding-top: var(--g-16); }
.card__links { display: grid; gap: 6px; margin-top: var(--g-8); }
.card__links a { font-size: var(--fs-xs); color: var(--muted); transition: color var(--t), padding-left var(--t); }
.card__links a:hover { color: var(--accent); padding-left: 4px; }

/* Таблица характеристик */
.specs { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.specs__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--g-16);
  padding: var(--g-16) var(--pad-card-sm);
  font-size: var(--fs-sm);
}
.specs__row + .specs__row { border-top: 1px solid var(--line); }
.specs__row:nth-child(odd) { background: var(--surface); }
.specs__key { color: var(--muted); }
.specs__val { font-weight: 600; text-align: right; }

/* Шаги «Как заказать» — маршрутная нить как соединитель */
.steps { position: relative; display: grid; gap: var(--g-20); }
.steps__item { position: relative; padding-left: 56px; }
.steps__num {
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 800;
}
.steps__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px; top: 46px; bottom: -22px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--accent-100) 0 6px, transparent 6px 12px);
}
.steps__title { margin-bottom: var(--g-4); font-size: var(--fs-h4); font-weight: 700; }
.steps__text { font-size: var(--fs-sm); color: var(--muted); }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g-24); }
  .steps__item { padding-left: 0; padding-top: 56px; }
  .steps__item:not(:last-child)::before {
    left: 46px; right: -24px; top: 19px; bottom: auto;
    width: auto; height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent-100) 0 6px, transparent 6px 12px);
  }
}

/* --------------------------------------------------------------------------
   18. Прайс-таблица
   -------------------------------------------------------------------------- */
.ptable-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}
.ptable { min-width: 720px; font-size: var(--fs-sm); }
.ptable th, .ptable td { padding: var(--g-16) var(--g-20); text-align: left; }
.ptable thead th {
  position: sticky;
  top: 0;
  background: var(--ink);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ptable tbody tr + tr { border-top: 1px solid var(--line); }
.ptable tbody tr:hover { background: var(--surface); }
.ptable td:first-child { font-weight: 600; }
.ptable td:not(:first-child) { font-variant-numeric: tabular-nums; color: var(--muted); }
.ptable td.is-rate { color: var(--accent); font-weight: 700; }

.pnote {
  margin-top: var(--g-16);
  padding: var(--g-16) var(--g-20);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.pnote a { color: var(--accent); font-weight: 600; }

.tabpanel[hidden] { display: none; }
.tabpanel { margin-top: var(--g-24); }
.tabpanel__title { margin-bottom: var(--g-16); }

/* --------------------------------------------------------------------------
   19. Текстовый контент (SEO-блоки, правовая страница)
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--g-20); }
.prose h2 { margin-top: var(--g-40); font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; }
.prose h3 { margin-top: var(--g-32); font-size: var(--fs-h4); font-weight: 700; }
.prose p, .prose li { color: var(--muted); }
.prose ul { display: grid; gap: var(--g-8); }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 6px; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }

.textgrid { display: grid; gap: var(--g-32); }
@media (min-width: 1000px) {
  .textgrid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: var(--g-64); align-items: start; }
}

.aside-card {
  padding: var(--pad-card-md);
  border-radius: var(--r-xl);
  background: var(--surface);
}
.aside-card__title { margin-bottom: var(--g-16); font-size: var(--fs-h4); font-weight: 700; }
.aside-card__list { display: grid; gap: var(--g-12); font-size: var(--fs-sm); }
.aside-card__list li { display: flex; gap: var(--g-12); color: var(--muted); }
.aside-card__list .icon { color: var(--accent); }
@media (min-width: 1000px) { .aside-card { position: sticky; top: 96px; } }

/* --------------------------------------------------------------------------
   20. Контакты
   -------------------------------------------------------------------------- */
.contacts-grid { display: grid; gap: var(--g-16); }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--g-12);
  padding: var(--pad-card-md);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
  transition: border-color var(--t), transform var(--t);
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-card__icon {
  display: grid;
  place-content: center;
  width: 48px; height: 48px;
  border-radius: var(--r-xs);
  background: var(--accent-100);
  color: var(--accent);
}
.contact-card__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.contact-card__value { font-size: var(--fs-h4); font-weight: 700; word-break: break-word; }
.contact-card__note { font-size: var(--fs-sm); color: var(--muted); }

@media (min-width: 640px) { .contacts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .contacts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.map {
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
}
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

.reqtable { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.reqtable > div {
  display: grid;
  gap: var(--g-4);
  padding: var(--g-16) var(--pad-card-sm);
  font-size: var(--fs-sm);
}
.reqtable > div + div { border-top: 1px solid var(--line); }
.reqtable > div:nth-child(odd) { background: var(--surface); }
.reqtable dt { font-size: var(--fs-xs); color: var(--muted-2); }
.reqtable dd { font-weight: 600; }
@media (min-width: 640px) {
  .reqtable > div { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: baseline; gap: var(--g-16); }
}

/* --------------------------------------------------------------------------
   21. Служебные страницы: 404 и карта шаблонов
   -------------------------------------------------------------------------- */
.err {
  display: grid;
  gap: var(--g-32);
  padding-block: var(--g-48);
}
.err__code {
  font-size: clamp(4.5rem, 3rem + 12vw, 11rem);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.04em;
  color: var(--accent);
}
.err__title { margin-block: var(--g-20) var(--g-16); }
.err__text { margin-bottom: var(--g-28); color: var(--muted); max-width: 46ch; }
.err__links { display: grid; gap: var(--g-8); margin-top: var(--g-28); }
.err__links a { display: inline-flex; align-items: center; gap: var(--g-8); font-size: var(--fs-sm); color: var(--muted); transition: color var(--t), gap var(--t); }
.err__links a:hover { color: var(--accent); gap: var(--g-12); }
.err__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); }

@media (min-width: 900px) {
  .err { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: center; gap: var(--g-64); padding-block: var(--g-72); }
}

.smap { display: grid; gap: var(--g-16); }
.smap__group {
  padding: var(--pad-card-md);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
}
.smap__title { margin-bottom: var(--g-16); font-size: var(--fs-h4); font-weight: 700; }
.smap__list { display: grid; gap: var(--g-8); }
.smap__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--g-12);
  padding: var(--g-12) var(--g-16);
  border-radius: var(--r-xs);
  background: var(--surface);
  transition: background-color var(--t), transform var(--t);
}
.smap__item:hover { background: var(--accent-100); transform: translateX(3px); }
.smap__name { font-size: var(--fs-sm); font-weight: 600; }
.smap__file { font-size: var(--fs-xs); color: var(--muted-2); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }

@media (min-width: 700px) { .smap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .smap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   21b. Блог и статья
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.card__tag {
  align-self: flex-start;
  margin-bottom: var(--g-12);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-100);
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .03em;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--g-8);
  font-size: var(--fs-xs);
  color: var(--muted-2);
}
.card__foot--meta { flex-wrap: wrap; }

.article-cover img {
  width: 100%;
  aspect-ratio: 9 / 5;
  object-fit: cover;
  border-radius: var(--r-xl);
}

.callout {
  display: flex;
  gap: var(--g-12);
  padding: var(--g-20);
  border-radius: var(--r-md);
  border-left: 3px solid var(--accent);
  background: var(--accent-100);
}
.callout__icon { flex: none; margin-top: 2px; color: var(--accent); }
.prose .callout__text { font-size: var(--fs-sm); color: var(--ink); }

.toc { display: grid; gap: var(--g-8); counter-reset: toc; }
.toc li {
  position: relative;
  padding-left: 30px;
  counter-increment: toc;
  font-size: var(--fs-sm);
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0; top: 2px;
  font-size: var(--fs-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.toc a { color: var(--muted); transition: color var(--t); }
.toc a:hover { color: var(--accent); }

.aside-card__note {
  margin-top: var(--g-20);
  padding-top: var(--g-16);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   22. Футер
   -------------------------------------------------------------------------- */
.footer {
  margin-top: var(--g-48);
  padding-block: var(--g-40) var(--g-32);
  background: var(--ink);
  color: var(--muted-3);
  font-size: var(--fs-sm);
}

.footer__cta {
  display: grid;
  gap: var(--g-20);
  padding: var(--pad-card-md);
  margin-bottom: var(--g-40);
  border-radius: var(--r-xl);
  background:
    linear-gradient(to top right, transparent 0 48%, rgba(255, 255, 255, .08) 48% 100%),
    var(--ink-3);
}
.footer__cta-title { font-size: var(--fs-h3); font-weight: 700; line-height: 1.15; color: var(--white); max-width: 26ch; }
.footer__cta-actions { display: flex; flex-wrap: wrap; gap: var(--g-12); }

.footer__grid { display: grid; gap: var(--g-32); }
.footer__note { margin-block: var(--g-16) var(--g-24); max-width: 40ch; }

.footer__contacts { display: grid; gap: var(--g-12); }
.footer__contacts li { display: flex; gap: var(--g-12); }
.footer__contacts .icon { color: var(--accent); flex: none; }
.footer__contacts a { transition: color var(--t); }
.footer__contacts a:hover { color: var(--white); }

.footer__title {
  margin-bottom: var(--g-16);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--white);
}
.footer__list { display: grid; gap: var(--g-8); }
.footer__list a { transition: color var(--t), padding-left var(--t); }
.footer__list a:hover { color: var(--white); padding-left: 4px; }

.footer__requisites { margin-top: var(--g-40); padding-top: var(--g-24); border-top: 1px solid var(--line-dark); }
.footer__requisites dl { display: grid; gap: var(--g-16); }
.footer__requisites dt { font-size: var(--fs-xs); color: var(--muted-2); }
.footer__requisites dd { color: var(--white); font-weight: 600; }

/* Способы оплаты: строка бейджей в стилистике футера */
.footer__pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--g-12) var(--g-20);
  margin-top: var(--g-24);
}
.footer__pay-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--white);
}
.footer__pay-list { display: flex; flex-wrap: wrap; gap: var(--g-8); }
.footer__pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted-3);
  transition: color var(--t), border-color var(--t);
}
.footer__pay-badge:hover { color: var(--white); border-color: var(--muted-2); }
.footer__pay-badge .icon { color: var(--accent); }

.footer__bottom {
  display: grid;
  gap: var(--g-16);
  margin-top: var(--g-24);
  padding-top: var(--g-24);
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-xs);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--g-16); }
.footer__legal a { transition: color var(--t); }
.footer__legal a:hover { color: var(--white); }

@media (min-width: 640px) {
  .footer__requisites dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .footer { padding-block: var(--g-64) var(--g-40); }
  .footer__cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--g-40); }
  .footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--g-48); }
  .footer__bottom { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

/* --------------------------------------------------------------------------
   23. Кнопка «наверх»
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: var(--g-16);
  bottom: var(--g-16);
  z-index: 50;
  display: grid;
  place-content: center;
  width: 48px; height: 48px;
  border-radius: var(--r-xs);
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--sh-md);
  transition: background-color var(--t), transform var(--t);
}
.to-top:hover { background: var(--accent-700); transform: translateY(-2px); }
.to-top svg { width: 22px; height: 22px; }
.to-top[hidden] { display: none; }

@media (min-width: 900px) { .to-top { right: var(--g-32); bottom: var(--g-32); } }

/* --------------------------------------------------------------------------
   24. Появление при скролле
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-lg), transform var(--t-lg);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Сетки раскрываются каскадом: контейнер статичен, анимируются дети
   с нарастающей задержкой */
.cards[data-reveal], .steps[data-reveal], .adv[data-reveal], .promo[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}
.cards[data-reveal] > *, .steps[data-reveal] > *,
.adv[data-reveal] > *, .promo[data-reveal] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--t-lg), transform var(--t-lg);
}
.cards[data-reveal].is-visible > *, .steps[data-reveal].is-visible > *,
.adv[data-reveal].is-visible > *, .promo[data-reveal].is-visible > * {
  opacity: 1;
  transform: none;
}
[data-reveal].is-visible > :nth-child(2) { transition-delay: .07s; }
[data-reveal].is-visible > :nth-child(3) { transition-delay: .14s; }
[data-reveal].is-visible > :nth-child(4) { transition-delay: .21s; }
[data-reveal].is-visible > :nth-child(5) { transition-delay: .28s; }
[data-reveal].is-visible > :nth-child(n+6) { transition-delay: .35s; }

/* Без JS ничего не должно остаться скрытым */
.no-js [data-reveal], .no-js [data-reveal] > * { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   25. Уважение к настройкам пользователя
   -------------------------------------------------------------------------- */
/* Гасим только крупные движения (появление секций, декоративные анимации).
   Микро-переходы на ховерах и плавный скролл остаются — это осознанное
   требование заказчика к «плавному» сайту. */
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal] > * { opacity: 1; transform: none; transition: none; }
  .route-line path { animation: none; }
  .pulse { animation: none; }
  .nav.is-open { animation: none; }
  .modal__card { animation: none; }
}

@media print {
  .topbar, .header, .footer__cta, .to-top, .calc__form, .slider__nav { display: none; }
  body { color: #000; }
}
