/* =====================================================================
   АВТОСПЕКТР — компонентные стили маркетингового сайта.
   Шрифтовые переменные и токены — в tokens.css (подключается раньше).
   CDN не используется.
   ===================================================================== */

/* Исходник: docs/design/design-system/project/ui_kits/marketing-site/styles.css
   Изменения: убран @import url('../../colors_and_type.css') — токены в tokens.css */

/* Page reset */
.as-page {
  background: var(--t-page);
  color: var(--t-text-1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background var(--dur-3) var(--ease-out), color var(--dur-3) var(--ease-out);
}

.as-container {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 var(--layout-pad-d);
  width: 100%;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* =================== BUTTONS =================== */
.as-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 700;
  border-radius: var(--r-2); border: 1px solid transparent;
  cursor: pointer; transition: all var(--dur-2) var(--ease-out);
  white-space: nowrap; line-height: 1;
}
.as-btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.as-btn--md { height: 44px; padding: 0 18px; font-size: 14px; }
.as-btn--lg { height: 52px; padding: 0 24px; font-size: 15px; }
/* C3-A #11: было --as-orange-500 (#F26A1F) → ratio 3.06, теперь --as-orange-700 (#C8520F) → 4.50:1
   (white на #C8520F = 4.497, округление до 2 знаков = 4.50 — граница WCAG AA для крупного/UI-текста). */
/* C3-C #2: hover/active темнее rest (orange-700), чтобы фидбэк был корректным (темнеет при нажатии) */
.as-btn--primary { background: var(--as-orange-700); color: #fff; }
.as-btn--primary:hover { background: var(--as-orange-700); filter: brightness(.92); }
.as-btn--primary:active { background: var(--as-orange-700); filter: brightness(.86); transform: translateY(1px); }
.as-btn--secondary { background: var(--as-navy-800); color: #fff; }
.as-btn--secondary:hover { background: var(--as-navy-900); }
.as-btn--outline { background: var(--t-surface); color: var(--t-text-1); border-color: var(--t-input-border); }
.as-btn--outline:hover { background: var(--t-surface-2); border-color: var(--as-navy-800); }
.as-btn--ghost { background: transparent; color: var(--t-text-1); }
.as-btn--ghost:hover { background: var(--as-blue-50); }
[data-theme="dark"] .as-btn--ghost:hover { background: rgba(255,255,255,.08); }
.as-w-full { width: 100%; }

/* =================== INPUTS =================== */
.as-input {
  height: 44px; border: 1px solid var(--t-input-border); border-radius: var(--r-2);
  padding: 0 14px; font-family: var(--font-sans); font-size: 15px; color: var(--t-input-text);
  background: var(--t-input-bg); transition: border-color var(--dur-2);
  /* Не давать длинным <option>/значениям диктовать min-content ширину
     родителя — иначе на узких экранах появляется горизонтальный скролл. */
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
}
.as-input::placeholder { color: var(--t-text-muted); }
.as-input:focus { outline: 2px solid var(--as-orange-500); outline-offset: 2px; border-color: var(--as-navy-800); }
.as-input--error { border-color: var(--as-danger-500); }
.as-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233D4A57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}

/* =================== HEADER =================== */
.as-header { position: sticky; top: 0; z-index: 50; background: var(--t-header-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--t-border); transition: background var(--dur-3), border-color var(--dur-3); }
.as-header__row { display: flex; align-items: center; gap: 20px; height: 72px; }
.as-logo { background: transparent; border: 0; padding: 0; display: flex; align-items: center; }
.as-logo img { filter: var(--t-logo-filter, none); }
[data-theme="dark"] .as-logo { --t-logo-filter: brightness(0) invert(1); }
.as-dirs { display: flex; gap: 6px; margin-left: 8px; }
.as-dir {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: var(--t-surface); border: 1px solid var(--t-border);
  font-weight: 600; font-size: 14px; color: var(--t-text-1);
  transition: all var(--dur-2);
}
.as-dir:hover { border-color: var(--as-navy-800); }
[data-theme="dark"] .as-dir:hover { border-color: #fff; }
.as-dir__icn { width: 28px; height: 28px; border-radius: 999px; background: var(--as-blue-50); display: inline-flex; align-items: center; justify-content: center; color: var(--as-navy-800); }
[data-theme="dark"] .as-dir__icn { background: rgba(255,255,255,.08); color: #fff; }
.as-dir--on .as-dir__icn { background: rgba(255,255,255,.18) !important; color: #fff !important; }
/* fix(2026-05-19): «Главная» (перед направлениями) и «Трекинг»/«Контакты»
   (после, мельче) — текст-ссылки в главном меню, без pill-фона и иконки. */
.as-dir--lite { background: transparent; border-color: transparent; padding: 8px 12px; }
.as-dir--lite:hover { border-color: transparent; color: var(--as-orange-500); }
.as-dir--sm { font-size: 12.5px; padding: 6px 10px; }
.as-header__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.as-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--t-text-1); white-space: nowrap; }
.as-burger { display: none; background: transparent; border: 0; padding: 8px; color: var(--t-text-1); }

.as-theme-toggle {
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--t-surface); border: 1px solid var(--t-border);
  color: var(--t-text-1); display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--dur-2);
}
.as-theme-toggle:hover { background: var(--t-surface-2); }

.as-subnav { border-bottom: 1px solid var(--t-border); background: var(--t-subnav-bg); transition: background var(--dur-3), border-color var(--dur-3); }
.as-subnav__row { display: flex; align-items: center; gap: 20px; height: 40px; font-size: 13px; }
.as-subnav__link { background: transparent; border: 0; padding: 0; color: var(--t-text-2); font-weight: 600; }
.as-subnav__link--on { color: var(--as-orange-500); }
.as-subnav__hours { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--t-text-3); font-size: 12px; }

/* =================== HERO — Live Ops (theme-aware) =================== */
.as-hero {
  position: relative;
  overflow: hidden;
  background: var(--t-hero-bg);
  color: var(--t-hero-text);
  padding: 56px 0 64px;
  transition: background var(--dur-3), color var(--dur-3);
}
.as-hero__bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(var(--t-hero-grid) 1px, transparent 1px),
    radial-gradient(circle at 100% 0%, var(--t-hero-glow-1), transparent 55%),
    radial-gradient(circle at 0% 100%, var(--t-hero-glow-2), transparent 50%);
  background-size: 28px 28px, auto, auto;
  pointer-events: none;
}
.as-hero__wrap { position: relative; }
.as-hero__grid { display: grid; grid-template-columns: 1.15fr 460px; gap: 56px; align-items: start; }

/* Live indicator */
.as-hero__live {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--t-panel); border: 1px solid var(--t-panel-border);
  font-size: 12px; font-weight: 600; color: var(--t-hero-text-2); letter-spacing: 0.01em;
}
.as-hero__live b { color: var(--t-hero-text); font-weight: 800; font-variant-numeric: tabular-nums; }
.as-hero__live-dot {
  width: 8px; height: 8px; border-radius: 999px; background: #3DD17C;
  box-shadow: 0 0 0 4px rgba(61,209,124,.18);
  animation: pulseDot 1.6s ease-in-out infinite;
}
.as-hero__live-dot--orange { background: var(--as-orange-500); box-shadow: 0 0 0 4px rgba(242,106,31,.22); }
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .65; transform: scale(.9); }
}

.as-hero__h {
  font-size: 68px; font-weight: 800; line-height: 1.02;
  letter-spacing: -0.025em; color: var(--t-hero-text);
  margin: 18px 0 18px;
}
.as-hero__p {
  font-size: 17px; color: var(--t-hero-text-2); line-height: 1.55;
  max-width: 540px; margin: 0 0 24px;
}

.as-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.as-hero__ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 0; color: var(--t-hero-text); font-weight: 600;
  font-size: 14px; height: 52px; padding: 0 6px;
}
.as-hero__ghost:hover { color: var(--as-orange-500); }
.as-hero__ghost--full {
  width: 100%; justify-content: center;
  background: var(--t-panel-fill); border: 1px solid var(--t-panel-border);
  border-radius: var(--r-2); padding: 0 14px; height: 44px;
  color: var(--t-panel-text);
}

.as-hero__trust {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  font-size: 12px; color: var(--t-hero-meta);
  padding-top: 20px; border-top: 1px solid var(--t-border);
}
.as-hero__trust b { color: var(--t-hero-text); font-weight: 700; }
.as-hero__trust-sep { width: 1px; height: 12px; background: var(--t-border); }

/* RIGHT — live ops panel */
.as-hero__live-panel {
  background: var(--t-panel);
  border: 1px solid var(--t-panel-border);
  border-radius: var(--r-3);
  padding: 22px;
  display: flex; flex-direction: column; gap: 18px;
  backdrop-filter: blur(8px);
  box-shadow: var(--t-panel-shadow, none);
  color: var(--t-panel-text);
}
[data-theme="dark"] .as-hero__live-panel { --t-panel-shadow: none; }
html:not([data-theme="dark"]) .as-hero__live-panel { --t-panel-shadow: 0 8px 32px rgba(11,61,99,.08); background: #fff; }
.as-hero__live-head { display: flex; align-items: center; gap: 12px; }
/* C3-A #8: orange-500 на rgba(orange,.14) = ratio 1.00.
   Светлая тема: navy-900 (#06283F) ~13:1 на тинтованном фоне.
   Тёмная тема: панель имеет тёмный фон → navy-900 невидим; используем #fff ~11:1. */
.as-hero__live-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(242,106,31,.14); border: 1px solid rgba(242,106,31,.4);
  font-size: 10px; font-weight: 800; color: var(--as-navy-900); letter-spacing: 0.1em;
}
/* В тёмной теме панель тёмная → белый текст. !important нужен для инлайн-стилей. */
html[data-theme="dark"] .as-hero__live-tag { color: #fff !important; }
/* light-theme remediation: live-tag sits on the always-dark hero/section
   band — color is container-driven, not theme-driven. */
.as-hero:not(.as-hero--map) .as-hero__live-tag,
.as-section--dark .as-hero__live-tag { color: #fff !important; }
.as-hero__live-title { font-size: 14px; font-weight: 700; color: var(--t-panel-text); }

/* Route diagram */
.as-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 8px 0; }
.as-route__port { display: flex; flex-direction: column; gap: 4px; min-width: 70px; }
.as-route__port--to { text-align: right; align-items: flex-end; }
.as-route__port-dot { width: 12px; height: 12px; border-radius: 999px; background: var(--t-port-dot); box-shadow: 0 0 0 4px var(--t-panel-fill); }
.as-route__port-dot--accent { background: var(--as-orange-500); box-shadow: 0 0 0 4px rgba(242,106,31,.22); }
.as-route__port-name { font-size: 14px; font-weight: 700; color: var(--t-panel-text); }
.as-route__port-meta { font-size: 10px; color: var(--t-panel-text-2); font-family: var(--font-mono); letter-spacing: 0.04em; }

.as-route__line { position: relative; height: 24px; flex: 1; }
.as-route__line svg { width: 100%; height: 100%; }
.as-route__line svg line { stroke: var(--t-route-line); }
.as-route__ferry {
  position: absolute; top: 50%; left: 0;
  transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--t-ferry-bg); color: var(--t-ferry-fg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  animation: ferryMove 6s ease-in-out infinite;
}
@keyframes ferryMove {
  0% { left: 0%; }
  45% { left: 100%; }
  50% { left: 100%; transform: translate(-50%, -50%) scaleX(-1); }
  95% { left: 0%; transform: translate(-50%, -50%) scaleX(-1); }
  100% { left: 0%; transform: translate(-50%, -50%) scaleX(1); }
}

/* ─── as-route--sea: премиум-вариант маршрута с двумя встречными паромами и 3 слоями волн ─── */
.as-route--sea { grid-template-columns: 1fr; align-items: stretch; gap: 8px; }
.as-route--sea .as-route__port { display: none; } /* порты теперь вынесены в port-row выше */
.as-route__sea {
  position: relative; height: 90px;
  margin: 4px -6px 0;
  overflow: hidden;
}
.as-route__sea-line {
  position: absolute; left: 24px; right: 24px; top: 36%;
  height: 1px; background: rgba(220,234,247,.18);
}
.as-route__sea-ferry {
  position: absolute; left: 0; top: 36%;
  transform: translate(-50%, -100%);
  color: #fff;
  animation: as-sea-fwd 16s linear infinite;
  will-change: left, opacity;
}
.as-route__sea-ferry--back {
  color: #5FB9F0;
  animation: as-sea-back 16s linear infinite;
  animation-delay: -8s;
}
@keyframes as-sea-fwd {
  0%   { left: 24px;              opacity: 0; }
  4%   { opacity: 1; }
  96%  { opacity: 1; }
  100% { left: calc(100% - 24px); opacity: 0; }
}
@keyframes as-sea-back {
  0%   { left: calc(100% - 24px); opacity: 0; transform: translate(-50%, -100%) scaleX(-1); }
  4%   { opacity: 1; }
  96%  { opacity: 1; }
  100% { left: 24px;              opacity: 0; transform: translate(-50%, -100%) scaleX(-1); }
}
.as-route__sea-waves { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }
.as-route__sea-wave { position: absolute; left: 0; right: 0; }
.as-route__sea-wave--3 { bottom: 0;   height: 30px; animation: as-sea-wave-fwd 7s linear infinite; }
.as-route__sea-wave--2 { bottom: 3px; height: 34px; opacity: .6; animation: as-sea-wave-back 12s linear infinite; }
.as-route__sea-wave--1 { bottom: 8px; height: 38px; opacity: .35; animation: as-sea-wave-fwd 18s linear infinite; }
.as-route__sea-wave svg { width: 100%; height: 100%; display: block; }
.as-route__sea-wave--3 path { fill: var(--as-navy-700); }
.as-route__sea-wave--2 path { fill: var(--as-navy-800); }
.as-route__sea-wave--1 path { fill: var(--as-navy-900); }
@keyframes as-sea-wave-fwd  { to { transform: translateX(-60px); } }
@keyframes as-sea-wave-back { to { transform: translateX(80px); } }

/* Port-row для нового компонента (отдельная сетка с двумя городами + точка-маркер) */
.as-port-row {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 18px; align-items: center;
  margin-bottom: 4px;
}
.as-port-row__port { display: flex; flex-direction: column; }
.as-port-row__port--to { align-items: flex-end; text-align: right; }
.as-port-row__name { font-size: 17px; font-weight: 800; color: #fff; line-height: 1.1; }
.as-port-row__meta { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: rgba(220,234,247,.45); margin-top: 4px; text-transform: uppercase; }
.as-port-row__dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--as-orange-500);
  box-shadow: 0 0 0 4px rgba(242,106,31,.22), 0 0 12px var(--as-orange-500);
  position: relative;
}
.as-port-row__dot::before {
  content: ""; position: absolute; inset: -6px;
  border: 1px solid var(--as-orange-500); border-radius: 50%;
  animation: as-port-ripple 2.4s ease-out infinite;
}
@keyframes as-port-ripple { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }

/* Mobile: live-panel сверху перед копией */
@media (max-width: 760px) {
  .as-hero--parom .as-hero__live-panel,
  .as-hero--avia .as-hero__live-panel,
  .as-hero--pereezd .as-hero__live-panel { order: -1; }
  .as-route__sea { height: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .as-route__sea-ferry,
  .as-route__sea-wave,
  .as-port-row__dot::before { animation: none !important; }
}

/* Next departure */
.as-departure {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--r-2);
  background: var(--t-tile-bg); border: 1px solid var(--t-tile-border);
}
.as-departure__ship { font-size: 13px; font-weight: 800; color: var(--t-tile-text); letter-spacing: 0.02em; }
.as-departure__date { font-size: 12px; color: var(--t-tile-text-2); margin-top: 3px; font-variant-numeric: tabular-nums; }
.as-departure__cnt { text-align: right; }
.as-departure__cnt-n { font-size: 32px; font-weight: 800; color: var(--as-orange-500); line-height: 1; font-variant-numeric: tabular-nums; }
.as-departure__cnt-l { font-size: 10px; color: var(--t-tile-text-2); line-height: 1.2; margin-top: 4px; letter-spacing: 0.02em; }

/* Recent activity */
/* ── Флот на линии: премиум-список судов с иконками и пульс-индикатором
   статуса. Используется в hero парома. Введено 2026-05-23. ─── */
.as-fleet-block { display: flex; flex-direction: column; gap: 8px; }
.as-fleet-block__head {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--t-panel-text-2);
}
.as-fleet { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.as-fleet__item {
  display: grid; grid-template-columns: 28px 1fr auto;
  gap: 12px; align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--t-border-2);
}
.as-fleet__item:first-child { border-top: 0; }
.as-fleet__icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--as-navy-800);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.as-fleet__icon svg { width: 14px; height: 14px; }
.as-fleet__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.as-fleet__name {
  font-size: 12px; font-weight: 700;
  color: var(--t-panel-text);
  line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.as-fleet__code {
  font-size: 9px;
  font-family: var(--font-mono, monospace);
  color: var(--t-panel-text-2);
  letter-spacing: .04em;
  line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.as-fleet__status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 7px;
  background: rgba(61,209,124,.14);
  border: 1px solid rgba(61,209,124,.32);
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  color: var(--as-success-700);
  white-space: nowrap;
}
.as-fleet__status-dot {
  position: relative;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--as-success-500);
  flex-shrink: 0;
}
.as-fleet__status-dot::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: var(--as-success-500);
  opacity: .55;
  animation: as-fleet-pulse 1.8s ease-out infinite;
}
@keyframes as-fleet-pulse {
  0%   { transform: scale(.5); opacity: .55; }
  100% { transform: scale(2.0); opacity: 0; }
}
/* На тёмных фонах (если когда-то попадёт в .as-section--dark) — белый текст */
.as-section--dark .as-fleet__status,
.as-hero:not(.as-hero--map) .as-fleet__status { color: var(--as-success-100); }
@media (prefers-reduced-motion: reduce) {
  .as-fleet__status-dot::after { animation: none; opacity: 0; }
}

.as-recent { display: flex; flex-direction: column; gap: 8px; }
.as-recent__head { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-panel-text-2); }
.as-recent__list { display: flex; flex-direction: column; gap: 4px; }
.as-recent__row {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: center;
  padding: 6px 0; font-size: 12px;
  border-top: 1px solid var(--t-border-2);
}
/* 2-колоночный вариант — когда no-колонка не нужна (например, список включённых услуг) */
.as-recent__row--2col { grid-template-columns: 1fr auto; }
/* 1-колоночный — для простого списка пунктов без бейджа */
.as-recent__row--1col { grid-template-columns: 1fr; }
/* Внутри 2col/1col текст не обрезается ellipsis — даём перенос строк */
.as-recent__row--2col .as-recent__what,
.as-recent__row--1col .as-recent__what { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }
.as-recent__row:first-child { border-top: 0; }
.as-recent__no { font-family: var(--font-mono); color: var(--t-panel-text-2); font-size: 11px; }
.as-recent__what { color: var(--t-panel-text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-recent__pill {
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.as-recent__pill--warn { background: #FFF705; color: #5C4500; }
/* C3-A #7: зелёный на зелёном прозрачном → success-700 (#0F5E3A) ~4.5:1 на белом */
.as-recent__pill--ok   { background: rgba(61,209,124,.18); color: var(--as-success-700); border: 1px solid rgba(61,209,124,.3); }
/* C3-A #13: синий на синем прозрачном → blue-600 (#1E70B8) ~4.6:1 на белом */
.as-recent__pill--info { background: rgba(61,143,212,.18); color: var(--as-blue-600); border: 1px solid rgba(61,143,212,.3); }
/* C3-A #7,#13 dark: панель тёмная → тёмный success-700/blue-600 невидим (~1.2–2.0).
   Светлые токены success-100/blue-100 дают ≥7.7:1 на тёмном тинтованном фоне.
   Селектор html[data-theme] специфичнее базового .as-recent__pill--* — без !important. */
html[data-theme="dark"] .as-recent__pill--ok   { color: var(--as-success-100); }
html[data-theme="dark"] .as-recent__pill--info { color: var(--as-blue-100); }
/* light-theme remediation: status pills sit only on the dark hero panel /
   dark section — lock pill text to the dark-theme value (was dark-on-dark
   in light theme → invisible). */
.as-hero:not(.as-hero--map) .as-recent__pill--ok,
.as-section--dark .as-recent__pill--ok { color: var(--as-success-100); }
.as-hero:not(.as-hero--map) .as-recent__pill--info,
.as-section--dark .as-recent__pill--info { color: var(--as-blue-100); }

/* =========== AVIA panel — scales / live calc =========== */
.as-avia__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.as-avia__tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 8px 10px; border-radius: var(--r-2);
  background: var(--t-tile-bg); border: 1px solid var(--t-tile-border);
  color: var(--t-tile-text-2); transition: all var(--dur-2);
}
.as-avia__tab:hover { background: var(--t-surface-2); }
.as-avia__tab.is-on {
  background: rgba(61,143,212,.16); border-color: rgba(61,143,212,.5);
  color: var(--t-tile-text);
}
.as-avia__tab-city { font-size: 11px; color: var(--t-tile-text-2); font-weight: 600; }
.as-avia__tab.is-on .as-avia__tab-city { color: #3D8FD4; }
.as-avia__tab-ap   { font-size: 14px; font-weight: 800; letter-spacing: 0.02em; }

.as-scales {
  background: var(--t-tile-bg); border: 1px solid var(--t-tile-border);
  border-radius: var(--r-2); padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.as-scales__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--t-tile-text-2);
}
/* C3-A #14: синий #3D8FD4 на rgba(blue,.14) = ratio ~1.00 → navy-800 (#0B3D63) ~9.7:1 на белом */
.as-scales__rate {
  color: var(--as-navy-800); font-weight: 800; font-variant-numeric: tabular-nums;
  background: rgba(61,143,212,.14); padding: 2px 8px; border-radius: 999px;
  font-size: 11px;
}
/* C3-A #14 dark: tile-фон тёмный → navy-800 на navy ~1.1 (невидим).
   blue-100 даёт ~8.2:1. Специфичнее базового .as-scales__rate — без !important. */
html[data-theme="dark"] .as-scales__rate { color: var(--as-blue-100); }
.as-scales__weight {
  display: flex; align-items: baseline; gap: 4px;
  font-variant-numeric: tabular-nums;
}
.as-scales__w-n {
  font-size: 44px; font-weight: 800; color: var(--t-tile-text);
  letter-spacing: -0.03em; line-height: 1;
}
.as-scales__w-u { font-size: 18px; color: var(--t-tile-text-2); font-weight: 600; }

.as-scales__slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; background: var(--t-slider-track);
  border-radius: 999px; margin: 8px 0 4px; outline: none;
}
.as-scales__slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 999px;
  background: #fff; border: 3px solid #3D8FD4;
  cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.as-scales__slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 999px;
  background: #fff; border: 3px solid #3D8FD4;
  cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.as-scales__ticks {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--t-text-muted); margin-top: -2px;
}
.as-scales__result {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 10px; margin-top: 6px;
  border-top: 1px dashed var(--t-tile-border);
}
.as-scales__result-lab {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--t-tile-text-2); font-weight: 700;
}
.as-scales__result-val {
  font-size: 28px; font-weight: 800; color: var(--t-tile-text);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  transition: color var(--dur-2);
}
.as-scales__result-val span { color: #3D8FD4; font-weight: 600; font-size: 18px; margin-left: 2px; }

.as-flights {
  display: flex; flex-direction: column; gap: 6px;
}
.as-flights__head {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--t-panel-text-2);
}
.as-flights__row {
  display: grid; grid-template-columns: 44px 1fr 60px auto;
  gap: 10px; align-items: center;
  padding: 6px 0; font-size: 12px;
  border-top: 1px solid var(--t-border-2);
}
.as-flights__row:nth-child(2) { border-top: 0; }
.as-flights__time {
  font-family: var(--font-mono); font-weight: 700; color: var(--t-panel-text);
  font-variant-numeric: tabular-nums;
}
.as-flights__to { color: var(--t-panel-text); font-weight: 600; }
.as-flights__no {
  font-family: var(--font-mono); font-size: 11px; color: var(--t-panel-text-2); text-align: right;
}

/* =========== PEREEZD panel — filling truck =========== */
.as-rooms {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.as-rooms__btn {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-radius: var(--r-2);
  background: var(--t-tile-bg); border: 1px solid var(--t-tile-border);
  color: var(--t-tile-text-2); transition: all var(--dur-2);
}
.as-rooms__btn:hover { background: var(--t-surface-2); }
.as-rooms__btn.is-on {
  background: rgba(242,106,31,.14); border-color: rgba(242,106,31,.5);
  color: var(--t-tile-text);
}
.as-rooms__btn-l { font-size: 14px; font-weight: 700; }
.as-rooms__btn-v {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--t-tile-text-2); font-variant-numeric: tabular-nums;
}
.as-rooms__btn.is-on .as-rooms__btn-v { color: var(--as-orange-500); }

.as-truck {
  background: var(--t-tile-bg); border: 1px solid var(--t-tile-border);
  border-radius: var(--r-2); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.as-truck__lab {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--t-tile-text-2); font-weight: 700;
}
.as-truck__svg { width: 100%; max-width: 100%; height: auto; display: block; margin: 0 auto; }
/* SVG body strokes flip with theme */
.as-truck__svg rect[stroke], .as-truck__svg path[stroke] { stroke: var(--t-panel-stroke); }
.as-truck__svg line { stroke: var(--t-panel-stroke); }
/* compact head: room label + price inline */
.as-truck__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.as-truck__price { display: inline-flex; align-items: baseline; gap: 6px; color: var(--t-tile-text, #fff); font-weight: 700; }
.as-truck__price .as-pereezd-price__lab { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--as-orange-500); color: #fff; padding: 2px 8px; border-radius: 999px; }
.as-truck__price .as-pereezd-price__val { font-size: 18px; font-weight: 800; color: var(--t-tile-text, #fff); font-variant-numeric: tabular-nums; }
.as-truck__price .as-pereezd-price__val span { color: var(--t-tile-text-2, #94A8BD); font-weight: 600; font-size: 14px; margin-left: 2px; }

.as-pereezd-price {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-2);
  background: rgba(242,106,31,.08); border: 1px solid rgba(242,106,31,.2);
}
.as-pereezd-price__lab {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--as-orange-500); font-weight: 800;
}
.as-pereezd-price__val {
  font-size: 28px; font-weight: 800; color: var(--t-tile-text);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  line-height: 1;
}
.as-pereezd-price__val span { color: var(--t-tile-text-2); font-weight: 600; font-size: 18px; margin-left: 2px; }
.as-pereezd-price__inc { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.as-pereezd-price__inc-row {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--t-tile-text-2);
}
.as-pereezd-price__inc-row svg { color: #3DD17C; flex-shrink: 0; }

/* fix(2026-05-21): унификация hero на 7 страницах переездов.
   - .as-hero--pereezd → flex-колонка, чтобы внутренний grid мог расти
     до всей высоты секции (с учётом min-height 650 ниже).
   - align-items:stretch на grid — правая панель ВЫСОТЫ копии (без зазора
     под панелью). Внутри панели контент остаётся естественной высоты,
     прижат к верху (флага flex:1 нет) — лучше «пусто внизу панели»,
     чем зияющая дыра в середине у разреженных страниц (pereezd-ts).
   - Исключение — pereezd.html: фура заполняет пустое место через flex:1.
   Min-height задаётся ниже на html[data-active-dir=pereezd]
   (специфичность выше .as-hero--pereezd). Скоуп точечный — паром/авиа не тронуты. */
.as-hero--pereezd { display: flex; flex-direction: column; }
.as-hero--pereezd .as-hero__wrap { flex: 1 1 auto; display: flex; flex-direction: column; }
.as-hero--pereezd .as-hero__grid { flex: 1 1 auto; align-items: stretch; }
/* pereezd.html: фура — единственный «гибкий» элемент панели, ей даём расти. */
.as-hero--pereezd .as-hero__live-panel > .as-truck { flex: 1 1 auto; }
/* fix(2026-05-21): фиксируем H1 на 3 строки. На 5 из 7 страниц первая часть
   заголовка переносится сама (длинный текст + font-size 68px); на pereezd
   и belarus умещается в 1 строку. Без min-height CTA и trust прыгают на 69px
   при листании. 3.06em = 3 строки × line-height 1.02. */
.as-hero--pereezd .as-hero__h { min-height: calc(3em * 1.02); }

/* fix(2026-05-21): тот же канон унификации hero для раздела «Паром»
   (7 страниц: parom, -tehnika, -sbornyy, -konteynery, -raspisanie, -priem, -tarify).
   См. memory project_avtospektr_hero_unification. */
.as-hero--parom { display: flex; flex-direction: column; }
.as-hero--parom .as-hero__wrap  { flex: 1 1 auto; display: flex; flex-direction: column; }
.as-hero--parom .as-hero__grid  { flex: 1 1 auto; align-items: stretch; }
.as-hero--parom .as-hero__h { min-height: calc(3em * 1.02); }

@media (max-width: 1100px) {
  .as-hero--parom .as-hero__grid { align-items: start; }
  html[data-active-dir="parom"] .as-hero:not(.as-hero--map) { min-height: 0; }
}

/* fix(2026-05-21): канон унификации hero для раздела «Авиа»
   (5 страниц: avia, -napravleniya, -tarify, -upakovka, -dokumenty).
   Live-tag синий (бренд-цвет авиа) — отступление от канона переездов/парома.
   См. memory project_avtospektr_hero_unification. */
.as-hero--avia { display: flex; flex-direction: column; }
.as-hero--avia .as-hero__wrap  { flex: 1 1 auto; display: flex; flex-direction: column; }
.as-hero--avia .as-hero__grid  { flex: 1 1 auto; align-items: stretch; }
.as-hero--avia .as-hero__h { min-height: calc(3em * 1.02); }

@media (max-width: 1100px) {
  .as-hero--avia .as-hero__grid { align-items: start; }
  html[data-active-dir="avia"] .as-hero:not(.as-hero--map) { min-height: 0; }
}

@media (max-width: 1100px) {
  .as-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .as-hero__h { font-size: 52px; }
  .as-hero--pereezd .as-hero__grid { align-items: start; }
  .as-hero--pereezd .as-hero__live-panel > .as-truck { flex: 0 0 auto; }
  /* Снимаем десктопный min-height — на одной колонке высоту диктует контент. */
  html[data-active-dir="pereezd"] .as-hero:not(.as-hero--map) { min-height: 0; }
}
/* ==========================================================================
   C3-B: Мобильная адаптация (аудит C1: №15, №18, M-1..M-5)
   ≤700px — компактный hero: паддинги, типографика, панель.
   Интерактив (табы авиа, слайдер, SVG-фургон, пульс-точка) СОХРАНЁН.
   Единый @media (max-width:700px) — старый дубль с мёртвым
   .as-hero__h{font-size:38px} (перебивался 32px) объединён сюда;
   .as-hero__trust{font-size:11px} перенесён к остальным trust-правилам.
   ========================================================================== */
@media (max-width: 700px) {
  /* M-1, M-2, №15: уменьшаем вертикальные паддинги hero-секции */
  .as-hero { padding: 20px 0 24px; }

  /* Уменьшаем gap грида между copy и panel (на ≤1100px был 32px) */
  .as-hero__grid { gap: 16px; }

  /* Heading — меньше margin сверху/снизу, чуть меньший шрифт */
  .as-hero__h { margin: 8px 0 8px; font-size: 32px; }

  /* Параграф — укорачиваем шрифт и отступ */
  .as-hero__p { font-size: 14px; margin-bottom: 10px; line-height: 1.45; }

  /* CTA — не заворачивать кнопки, уменьшить primary */
  .as-hero__cta {
    margin-bottom: 10px;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
  }
  /* Primary button — компактнее на мобайле */
  .as-hero__cta .as-btn--lg {
    height: 44px;
    padding: 0 16px;
    font-size: 14px;
    flex-shrink: 0;
  }
  /* Ghost link — только текст + стрелка, без минимальных паддингов */
  .as-hero__ghost {
    height: auto;
    font-size: 13px;
    padding: 0 2px;
    flex-shrink: 1;
  }

  /* Trust-block — меньший шрифт (перенесено из старого @media-дубля),
     скрыть разделители, уменьшить padding; контент оставлен */
  .as-hero__trust { font-size: 11px; padding-top: 10px; gap: 4px 8px; }
  .as-hero__trust-sep { display: none; }

  /* M-1: компактная hero live-панель — уменьшаем внутренние отступы и гапы */
  .as-hero__live-panel { padding: 14px; gap: 10px; }

  /* Индикатор LIVE */
  .as-hero__live { padding: 4px 10px; }

  /* Таб-ряд направлений авиа — 2 колонки вместо 4 (сохраняет интерактив) */
  .as-avia__tabs { grid-template-columns: 1fr 1fr; }

  /* Шкала веса — уменьшить крупное число */
  .as-scales__w-n { font-size: 32px; }

  /* Цена переезда */
  .as-pereezd-price__val { font-size: 22px; }

  /* «Вылеты сегодня» — скрыть на мобайле (вспомогательный блок);
     главное — интерактивный слайдер+табы выше. */
  .as-flights { display: none; }

  /* Departure tile (паром) */
  .as-departure__cnt-n { font-size: 24px; }

  /* Recent-список (флот) — уменьшить паддинг строк.
     :nth-child(4) скрывает 4-й корабль флота на мобайле
     (вспомогательная строка; разметка статична — селектор устойчив). */
  .as-recent__row { padding: 4px 0; }
  .as-recent__row:nth-child(4) { display: none; }

  /* Шкала — убрать лишние отступы */
  .as-scales { gap: 4px; padding: 12px; }
  .as-scales__slider { margin: 4px 0 2px; }
}

/* M-5: .as-military__split — 2 колонки → 1 на мобайле.
   design-system резерв, в HTML пока не используется (C1 M-5) —
   правило оставлено под будущую разметку калькулятора военных. */
@media (max-width: 640px) {
  .as-military__split {
    grid-template-columns: 1fr;
  }
}

/* =================== SECTION =================== */
.as-section { padding: 64px 0; background: var(--t-page); color: var(--t-text-1); transition: background var(--dur-3), color var(--dur-3); }
.as-section:nth-of-type(even) { background: var(--t-surface-2); }
.as-section--dark { background: var(--as-navy-800) !important; color: #fff; }
.as-section--dark .as-section__h { color: #fff; }
/* T12-B3: миграция инлайновых цветов тёмных секций index.html в таблицу стилей.
   Только цвет; раскладочные инлайны (margin/max-width/font-size) остаются в разметке. */
.as-section--dark .as-eyebrow,
.as-section--dark p.as-eyebrow,
.as-section--dark > .as-container > p.as-eyebrow { color: var(--as-orange-500) !important; }

/* Пилюли направлений — Паром/Авиа/Переезд (используются в таблицах и бейджах).
   См. reference_avtospektr_brand_colors. */
.as-dir-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #fff;
  line-height: 1.4;
}
.as-dir-pill--parom   { background: var(--as-navy-800); }
.as-dir-pill--avia    { background: var(--as-blue-500); }
.as-dir-pill--pereezd { background: var(--as-orange-500); }

/* ==========================================================================
   Унификация карточек главной — единый радиус и hover-эффект.
   Применяется к .as-step, .as-why__cell, .as-faq__i, .as-dir-card.
   ========================================================================== */
.as-step,
.as-why__cell,
.as-faq__i { border-radius: var(--r-3) !important; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2); }

.as-step:hover,
.as-why__cell:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11, 61, 99, .08); }
.as-section--dark .as-why__cell:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .35); border-color: rgba(255,255,255,.22); }

/* ==========================================================================
   fade-up — появление с лёгким смещением вверх (использует home.js)
   ========================================================================== */
[data-fadeup] { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
[data-fadeup].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-fadeup] { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Тонкая полоска прогресса скролла сверху страницы.
   Динамически добавляется home.js, transform: scaleX(p).
   ========================================================================== */
.as-scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 100;
  background: linear-gradient(90deg, var(--as-orange-500), var(--as-orange-700));
  transform: scaleX(0); transform-origin: 0 0;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(242,106,31,.45);
}
.as-section--dark .as-section__lead { color: var(--as-blue-100); }
/* C3-A: светлые карточки внутри .as-section--dark наследуют color:#fff, но имеют
   белый (light) или navy (dark) фон — исправляем через явный токен --as-ink-900.
   В тёмной теме --t-text-1=#fff, карточки navy — текст белый, всё ок. */
/* ⚠️ C3-C #4 ВАЖНО: при добавлении нового компонента внутрь .as-section--dark —
   ОБЯЗАТЕЛЬНО дописать его ниже в оба селектора: светлый (color:--as-ink-900)
   И тёмный [data-theme="dark"] (color:#fff). Иначе получится «белый текст на белой карточке». */
.as-section--dark .as-schedule-card,
.as-section--dark .as-customs-cat,
.as-section--dark .as-voennym-teaser,
.as-section--dark .as-service-item,
.as-section--dark .as-status-card,
.as-section--dark .as-map-placeholder { color: var(--as-ink-900); }
[data-theme="dark"] .as-section--dark .as-schedule-card,
[data-theme="dark"] .as-section--dark .as-customs-cat,
[data-theme="dark"] .as-section--dark .as-voennym-teaser,
[data-theme="dark"] .as-section--dark .as-service-item,
[data-theme="dark"] .as-section--dark .as-status-card,
[data-theme="dark"] .as-section--dark .as-map-placeholder { color: #fff; }
/* C3-A #16: реквизиты contacts.html в .as-section--dark —
   гарантируем читаемость меток и значений в тёмной теме */
.as-section--dark .as-requisites__label { color: var(--as-blue-100); }
.as-section--dark .as-requisites__value { color: #fff; }
/* C3-A #20: ячейки таблиц тарифов (.as-tariff-table td) внутри .as-section--dark —
   строки с var(--t-surface)/#FFFFFF фоном наследуют белый цвет текста → ratio 1.00.
   Фикс: явный --as-ink-900 для светлой темы; в тёмной теме --t-surface=#0B3D63, текст #fff — норм. */
.as-section--dark .as-tariff-table td { color: var(--as-ink-900); }
[data-theme="dark"] .as-section--dark .as-tariff-table td { color: var(--t-text-1); }
/* Аналогично для .as-tbl td внутри тёмных секций (если вдруг используется) */
.as-section--dark .as-tbl td { color: var(--as-ink-900); }
[data-theme="dark"] .as-section--dark .as-tbl td { color: var(--t-text-1); }
/* ===================================================================
   fix(2026-05-19) — display bugs (root-cause fixes)
   =================================================================== */

/* FIX 1 — Section/subpage hero is a DARK showcase band by design
   (dark .as-hero__bg grid, hardcoded #fff h1/p, dark .as-hero__live-panel).
   But base .as-hero is theme-aware: --t-hero-bg = #FFFFFF in the default
   LIGHT theme → hardcoded white h1/p rendered white-on-white, and the
   token-driven .as-hero__ghost/.as-hero__trust b rendered dark-on-dark.
   The homepage is unaffected (it uses the theme-aware .as-hero--map).
   Lock every NON-map hero to the dark palette by re-declaring the hero/
   panel/route design tokens to their dark-theme values (idempotent in
   dark theme). One scoped block — no per-page edits. */
.as-hero:not(.as-hero--map) {
  --t-hero-bg:     #06283F;
  --t-hero-grid:   rgba(61,143,212,.10);
  --t-hero-glow-1: rgba(30,112,184,.18);
  --t-hero-glow-2: rgba(242,106,31,.08);
  --t-hero-text:   #FFFFFF;
  --t-hero-text-2: #DCEAF7;
  --t-hero-meta:   #94A8BD;
  --t-panel:       rgba(255,255,255,.04);
  --t-panel-border:rgba(255,255,255,.1);
  --t-panel-text:  #FFFFFF;
  --t-panel-text-2:#94A8BD;
  --t-panel-fill:  rgba(255,255,255,.04);
  --t-panel-fill-2:rgba(255,255,255,.05);
  --t-panel-stroke:rgba(255,255,255,.2);
  --t-route-line:  rgba(255,255,255,.15);
  --t-port-dot:    #FFFFFF;
  --t-ferry-bg:    #FFFFFF;
  --t-ferry-fg:    #0B3D63;
  --t-border:      rgba(255,255,255,.1);
  --t-tile-bg:     rgba(255,255,255,.04);
  --t-tile-border: rgba(255,255,255,.08);
  --t-tile-text:   #FFFFFF;
  --t-tile-text-2: #94A8BD;
}
/* FIX 1b — `html:not([data-theme="dark"]) .as-hero__live-panel{background:#fff}`
   forces the right panel SOLID WHITE in light theme (intended for the
   theme-aware homepage hero). On the locked-dark section hero that yields
   white-panel-text on white. Restore the token-driven (now dark) panel bg
   for non-map heroes. Specificity (0,3,0) beats the (0,2,1) light rule. */
.as-hero:not(.as-hero--map) .as-hero__live-panel { background: var(--t-panel); }

/* FIX 2 — .as-section--dark is ALWAYS navy. Structural text (h3, intro <p>,
   .as-tariff-eff) DIRECTLY in the section container is inline-styled
   `color:var(--t-text-1)` (specificity 1,0,0,0). Surgical: only DIRECT
   children of .as-section--dark > .as-container get forced light with
   !important (beats inline). Light cards/tables nested deeper keep their
   own colors — NOT touched (avoids white-on-light-card regression). */
.as-section--dark > .as-container > h2,
.as-section--dark > .as-container > h3,
.as-section--dark > .as-container > h4,
.as-section--dark > .as-container > div,
.as-section--dark > .as-container > strong { color: #fff !important; }
.as-section--dark > .as-container > p,
.as-section--dark > .as-container > .as-tariff-eff { color: var(--as-blue-100) !important; }

/* FIX 2b — h3 inside .as-tariff-wrap (transparent wrapper) sits visually on
   the navy section; inline color:var(--t-text-1)/`--t-text-3` are dark in
   light theme → dark-on-dark. Force light, surgical to this nesting. */
.as-section--dark .as-tariff-wrap > h3 { color: #fff !important; }
.as-section--dark .as-tariff-wrap > h3 > span { color: var(--as-blue-100) !important; }

/* FIX 4 — Per-direction subnav groups: .as-subnav__grp is a plain <div>
   with no rule, breaking the original flat flex contract of
   .as-subnav__row (gap:20px between DIRECT link children). display:contents
   makes the group transparent so its <a> links become direct flex items
   again (restoring spacing); [hidden] must be re-asserted because
   display:contents would otherwise override the UA [hidden]{display:none}. */
.as-subnav__grp { display: contents; }
.as-subnav__grp[hidden] { display: none; }

.as-section__h { font-size: 36px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin: 0; color: var(--t-text-1); }
/* Mobile: уменьшаем H2 секций и вертикальный padding, чтобы длинные
   заголовки не уезжали в 4 строки и страница была компактнее (2026-05-23). */
@media (max-width: 640px) {
  .as-section { padding: 44px 0; }
  .as-section__h { font-size: 26px; line-height: 1.2; }
}
@media (max-width: 420px) {
  .as-section { padding: 38px 0; }
  .as-section__h { font-size: 24px; }
}

/* =================== TRUST BLOCK =================== */
.as-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.as-trust__cell { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--r-3); padding: 22px; color: var(--t-text-1); }
.as-trust__cell--dark { background: var(--as-navy-800); border-color: var(--as-navy-800); color: #fff; }
.as-trust__n { font-size: 36px; font-weight: 800; letter-spacing: -0.01em; line-height: 1; color: var(--t-text-1); font-variant-numeric: tabular-nums; }
.as-trust__cell--dark .as-trust__n { color: #fff; }
.as-trust__u { font-size: 16px; font-weight: 600; color: var(--t-text-2); margin-left: 6px; }
.as-trust__cell--dark .as-trust__u { color: var(--as-blue-100); }
.as-trust__l { font-size: 13px; color: var(--t-text-2); margin-top: 10px; white-space: pre-line; line-height: 1.4; }
.as-trust__cell--dark .as-trust__l { color: var(--as-blue-100); }

/* =================== SERVICE CARDS =================== */
.as-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.as-service { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--r-3); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3); }
.as-service:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.as-service__head { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; color: #fff; min-height: 130px; background-size: cover; background-position: center; }
.as-service__head--parom {
  background-image:
    linear-gradient(135deg, rgba(11,61,99,.78), rgba(6,40,63,.92)),
    url("../img/home/parom.jpg");
}
.as-service__head--avia {
  background-image:
    linear-gradient(135deg, rgba(30,112,184,.72), rgba(11,61,99,.92)),
    url("../img/home/avia.jpg");
}
.as-service__head--pereezd {
  background-image:
    linear-gradient(135deg, rgba(242,106,31,.72), rgba(200,82,15,.92)),
    url("../img/home/pereezd.jpg");
}
.as-service__tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: .85; }
.as-service__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.as-service__t { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; margin: 0; color: var(--t-text-1); }
.as-service__from { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--t-text-3); }
.as-service__from b { font-size: 20px; font-variant-numeric: tabular-nums; }
.as-service__desc { font-size: 14px; color: var(--t-text-2); line-height: 1.5; margin: 0; }
.as-service__route { font-size: 12px; color: var(--t-text-3); padding: 8px 0; border-top: 1px dashed var(--t-border); }
.as-service__cta { background: var(--t-surface); border: 1px solid; border-radius: var(--r-2); padding: 10px 14px; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }
/* C3-A #9,12: инлайн-цвета navy/blue ломаются в тёмной теме (navy-on-navy).
   Классы задают цвет для обоих режимов; инлайн style остаётся как fallback.
   В тёмной теме перекрываем принудительно через [data-theme] + !important. */
.as-service__cta--parom  { color: var(--as-navy-800); border-color: var(--as-navy-800); }
.as-service__cta--avia   { color: var(--as-blue-600);  border-color: var(--as-blue-600); }
.as-service__cta--pereezd { color: var(--as-orange-700); border-color: var(--as-orange-700); }
/* В тёмной теме фон карточки = --t-surface = navy-800 (#0B3D63):
   паром/авиа → blue-100 (#DCEAF7) = 9.21:1; переезд → тёплый светло-персиковый
   orange-100 (#FDE3D2) = 9.18:1 — сохраняет «тёплую» идентичность направления
   и визуально отличается от parom/avia. orange-500 на navy-800 даёт лишь 3.68:1
   (< 4.5 — 4.8 получалось бы только на navy-900), поэтому в dark не используется
   (C3-C #5, fix по спец-ревью). */
[data-theme="dark"] .as-service__cta--parom  { color: var(--as-blue-100) !important; border-color: rgba(220,234,247,.4) !important; }
[data-theme="dark"] .as-service__cta--avia   { color: var(--as-blue-100) !important; border-color: rgba(220,234,247,.4) !important; }
[data-theme="dark"] .as-service__cta--pereezd { color: var(--as-orange-100) !important; border-color: rgba(253,227,210,.4) !important; }

/* =================== TABLES =================== */
.as-tbl-wrap { overflow-x: auto; border: 1px solid var(--t-border); border-radius: var(--r-2); background: var(--t-surface); }
.as-tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1, 'lnum' 1; }
.as-tbl thead { background: var(--as-navy-800); color: #fff; }
.as-tbl th { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; text-align: left; padding: 12px 16px; }
.as-tbl th.num { text-align: right; }
.as-tbl td { padding: 12px 16px; font-size: 14px; color: var(--t-text-1); border-top: 1px solid var(--t-border); }
.as-tbl td.num { text-align: right; font-weight: 600; }
.as-tbl td.dim { color: var(--t-text-3); font-family: var(--font-mono); font-size: 12px; }
.as-tbl tbody tr:nth-child(even) { background: var(--t-surface-2); }
.as-tbl tbody tr:hover { background: var(--t-surface-3); }

/* =================== CALCULATOR =================== */
.as-calc { padding: 56px 0 72px; background: var(--as-surface-1); }
.as-calc__head { max-width: 720px; margin-bottom: 32px; }
.as-h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 8px 0 12px; color: var(--as-ink-900); }
.as-lead { font-size: 17px; color: var(--as-ink-600); margin: 0; line-height: 1.5; }
.as-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--as-blue-600); }
.as-calc__tabs { display: flex; gap: 10px; margin-top: 20px; }
.as-calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.as-calc__form { background: #fff; border: 1px solid var(--as-border-200); border-radius: var(--r-3); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.as-calc__form[hidden] { display: none; }
.as-calc__note { font-size: 12px; color: var(--as-ink-500); padding-top: 10px; border-top: 1px dashed var(--as-border-200); margin-top: 4px; }

.as-result {
  background: #D6EAFC;  /* небесно-голубой — sky blue, очень светлый */
  border: 1px solid #B8D5F0;
  color: var(--as-ink-900);
  border-radius: var(--r-3); padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  position: sticky; top: 130px;
}
.as-result__tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--as-orange-700); }
.as-result__title { font-size: 17px; font-weight: 700; margin-top: 4px; color: var(--as-ink-900); }
.as-result__sub { font-size: 13px; color: var(--as-ink-600); }
.as-result__price { font-size: 56px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; margin: 14px 0 4px; font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1, 'lnum' 1; color: var(--as-navy-800); }
.as-result__cur { font-size: 24px; font-weight: 600; color: var(--as-ink-600); margin-left: 6px; }
.as-result__kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; font-size: 13px; padding-top: 14px; margin-top: 6px; border-top: 1px dashed #B8D5F0; }
.as-result__kv > span { color: var(--as-ink-600); }
.as-result__kv > b { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; color: var(--as-ink-900); }
.as-result__legal { font-size: 11px; color: var(--as-ink-500); margin-top: 10px; }

/* =================== TRACKING =================== */
.as-track { padding: 56px 0 72px; background: var(--t-page); }
.as-track__lookup { display: flex; gap: 10px; margin-top: 20px; max-width: 560px; }
.as-track__lookup .as-input { flex: 1; height: 52px; font-size: 16px; }
.as-track__card { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--r-3); padding: 24px; margin-top: 28px; box-shadow: var(--shadow-1); }
.as-track__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--t-border); }
.as-track__no { font-size: 18px; font-weight: 700; color: var(--t-text-1); }
.as-track__meta { font-size: 13px; color: var(--t-text-3); margin-top: 4px; }
.as-track__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--t-border); gap: 16px; }

.as-pipe { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.as-pipe__step { position: relative; padding-top: 50px; }
.as-pipe__dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--t-surface); border: 2px solid var(--t-input-border); color: var(--t-text-3); font-weight: 700; font-size: 13px; z-index: 1; }
.as-pipe__step.is-done .as-pipe__dot { background: var(--as-success-500); border-color: var(--as-success-500); color: #fff; }
.as-pipe__step.is-active .as-pipe__dot { background: var(--as-orange-500); border-color: var(--as-orange-500); color: #fff; box-shadow: 0 0 0 4px var(--as-orange-100); }
.as-pipe__bar { position: absolute; top: 17px; left: 50%; right: -50%; height: 2px; background: var(--t-border); z-index: 0; }
.as-pipe__step.is-done .as-pipe__bar { background: var(--as-success-500); }
.as-pipe__label { font-size: 14px; font-weight: 700; color: var(--t-text-1); text-align: center; }
.as-pipe__step.is-active .as-pipe__label { color: var(--as-orange-500); }
.as-pipe__step.is-done .as-pipe__label { color: var(--as-success-500); }
.as-pipe__date { font-size: 12px; color: var(--t-text-3); text-align: center; margin-top: 2px; font-variant-numeric: tabular-nums; }
.as-pipe__desc { font-size: 12px; color: var(--t-text-2); text-align: center; margin-top: 6px; line-height: 1.4; }

/* =================== MILITARY =================== */
.as-military { background: var(--as-navy-900); color: #fff; padding: 56px 0 72px; position: relative; overflow: hidden; }
.as-military::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px); background-size: 20px 20px; }
.as-military > * { position: relative; z-index: 1; }
.as-military__hero { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 40px; }
.as-military__shield { width: 96px; height: 96px; border-radius: var(--r-3); background: rgba(242,106,31,.15); color: var(--as-orange-500); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.as-military__row { display: flex; gap: 14px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.as-military__phone { color: #fff; font-size: 18px; font-weight: 700; }

.as-military__grid { display: grid; grid-template-columns: 1fr 420px; gap: 20px; }
.as-military__docs, .as-military__calc { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-3); padding: 24px; }
.as-military__docs h3, .as-military__calc h3 { color: #fff; }
.as-checklist { display: flex; flex-direction: column; gap: 10px; }
.as-checklist__row { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--as-blue-100); }
.as-checklist__tick { width: 22px; height: 22px; border-radius: 999px; background: var(--as-success-500); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.as-military__note { font-size: 12px; color: rgba(220,234,247,.7); margin-top: 16px; }
.as-military__calc .as-input { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
.as-military__calc label > span { color: var(--as-blue-100); }
.as-military__split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,.2); }
.as-military__split-lab { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--as-blue-100); }
.as-military__split-val { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 4px; color: #fff; }
.as-military__split-val.ok { color: #3DD17C; }

/* =================== REVIEWS =================== */
.as-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.as-review { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--r-3); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.as-review[hidden] { display: none !important; }  /* перекрывает display:flex для свёрнутых отзывов */

.as-review__head { display: flex; justify-content: space-between; align-items: baseline; }
.as-review__name { font-weight: 700; font-size: 14px; color: var(--t-text-1); }
.as-review__stars { color: var(--as-orange-500); letter-spacing: 1px; }
.as-review__text { font-size: 14px; line-height: 1.55; color: var(--t-text-2); margin: 0; }
.as-review__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--t-text-3); margin-top: auto; }
.as-review__src { background: var(--as-blue-50); color: var(--as-navy-700); font-size: 11px; padding: 3px 8px; border-radius: 999px; font-weight: 700; }
/* C3-C #6: жёсткий hex → токен --as-blue-500 (тот же визуально) */
[data-theme="dark"] .as-review__src { background: rgba(61,143,212,.16); color: var(--as-blue-500); }

/* =================== FOOTER =================== */
.as-footer { background: var(--as-navy-900); color: var(--as-blue-100); padding: 56px 0 24px; }
.as-footer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.as-footer__brand { display: flex; align-items: center; gap: 14px; }
.as-footer__name { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.as-footer__since { font-size: 13px; color: var(--as-blue-100); margin-top: 2px; }
.as-footer__phone { font-size: 22px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.as-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.as-footer__col-title { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.as-footer__link { display: block; font-size: 13px; padding: 5px 0; color: var(--as-blue-100); transition: color var(--dur-2); }
.as-footer__link:hover { color: var(--as-orange-500); }
.as-footer__bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; gap: 16px; flex-wrap: wrap; }
.as-footer__socials { display: flex; gap: 16px; }
.as-footer__socials a { color: var(--as-blue-100); font-size: 13px; }
.as-footer__socials a:hover { color: var(--as-orange-500); }

/* =================== FLOATING WIDGETS =================== */
.as-fab { position: fixed; bottom: 24px; right: 24px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.as-fab__btn { width: 56px; height: 56px; border-radius: 999px; background: var(--as-navy-800); color: #fff; border: 0; box-shadow: var(--shadow-3); display: flex; align-items: center; justify-content: center; }
.as-fab__tooltip { background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--r-3); box-shadow: var(--shadow-3); padding: 16px; width: 280px; color: var(--t-text-1); }
.as-fab__row { display: flex; flex-direction: column; gap: 6px; }
.as-fab__chan { padding: 8px 12px; border-radius: var(--r-2); font-size: 13px; font-weight: 700; color: #fff; }
.as-fab__chan--tg  { background: #2BA0E0; }
.as-fab__chan--wa  { background: #25D366; }
.as-fab__chan--max { background: #0B3D63; }

.as-sticky { display: none; }

/* =================== MOBILE =================== */
@media (max-width: 1100px) {
  .as-dirs { display: none; }
}
@media (max-width: 900px) {
  .as-calc__grid, .as-military__grid { grid-template-columns: minmax(0, 1fr); }
  .as-trust, .as-services, .as-reviews, .as-footer__grid { grid-template-columns: 1fr 1fr; }
  .as-dirs, .as-dirs, .as-subnav, .as-phone { display: none; }
  .as-header__right .as-btn { display: none; }
  .as-burger { display: inline-flex; }
  .as-result { position: static; }
  .as-pipe { grid-template-columns: 1fr; gap: 8px; }
  .as-pipe__step { padding-top: 0; padding-left: 50px; min-height: 50px; }
  .as-pipe__dot { left: 0; transform: none; top: 4px; }
  .as-pipe__bar { left: 17px; right: auto; top: 36px; bottom: -8px; width: 2px; height: auto; }
  .as-pipe__label, .as-pipe__date, .as-pipe__desc { text-align: left; }
  .as-sticky { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--t-surface); border-top: 1px solid var(--t-border); padding: 10px 16px; gap: 10px; z-index: 55; }
  .as-sticky__phone { display: inline-flex; align-items: center; gap: 6px; color: var(--t-text-1); font-weight: 700; font-size: 14px; padding: 0 14px; border: 1px solid var(--t-input-border); border-radius: var(--r-2); }
  .as-fab { bottom: 80px; }
}
@media (max-width: 600px) {
  .as-trust, .as-services, .as-reviews, .as-footer__grid { grid-template-columns: 1fr; }
}

/* ====== АВТОСПЕКТР: дополнения сверх design-system styles.css (mobile-nav drawer, FAB tooltip). Базовая часть выше — копия styles.css без CDN ====== */

/* Мобильный drawer-меню — открывается бургером (ui.js навешивает .is-open).
   В исходном styles.css бургер есть, но drawer для него не описан. */
.as-mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 49;
  background: var(--t-page);
  flex-direction: column;
  padding: 80px 24px 24px;
  gap: 8px;
  overflow-y: auto;
  border-top: 1px solid var(--t-border);
}
.as-mobile-nav.is-open { display: flex; }
.as-mobile-nav__link {
  display: block; padding: 14px 0;
  font-size: 20px; font-weight: 700; color: var(--t-text-1);
  border-bottom: 1px solid var(--t-border-2);
}
.as-mobile-nav__link:hover { color: var(--as-orange-500); }
.as-mobile-nav__phone {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; color: var(--t-text-1);
}

.as-mobile-nav__link--on { color: var(--as-orange-500); }

/* FAB tooltip: в исходнике видимость управлялась React-стейтом.
   В статике скрываем по умолчанию, показываем по классу .as-fab--open (ui.js).
   Каналы — block, чтобы кликабельная зона занимала всю ширину строки. */
.as-fab__tooltip { display: none; }
.as-fab--open .as-fab__tooltip { display: block; }
.as-fab__chan { display: block; }

/* FAB tooltip заголовок/подзаголовок — вместо инлайн-стилей,
   цвет подзаголовка через токен (корректно в тёмной теме). */
.as-fab__title { font-weight: 700; margin-bottom: 4px; }
.as-fab__subtitle { font-size: 12px; color: var(--t-text-3); margin-bottom: 8px; }

/* Состояние шапки после скролла — раньше инъектировалось из ui.js,
   теперь статически. */
.as-header.is-scrolled {
  background: var(--t-header-bg);
  box-shadow: 0 2px 12px rgba(15, 26, 36, .08);
}

/* Sticky bottom-bar (мобайл ≤900px, ~64px) не должен перекрывать низ футера —
   копирайт/соцсети должны оставаться видимыми над баром. */
@media (max-width: 900px) {
  .as-footer { padding-bottom: 76px; }
}

/* Видимый фокус с клавиатуры для кнопок формы заявки и модала. */
.as-btn:focus-visible,
.as-form-type-btn:focus-visible,
.as-modal__close:focus-visible {
  outline: 2px solid var(--as-orange-500);
  outline-offset: 2px;
}

/* Вкладки калькулятора — фирменные цвета по разделам.
   Паром = navy, Авиа = blue, Переезд = orange. См. reference_avtospektr_brand_colors. */
.as-calc__tab {
  background: var(--t-surface);
  color: var(--t-text-1);
  border: 1px solid var(--t-input-border);
}
.as-calc__tab[data-calc-dir="parom"]   { color: var(--as-navy-800);   border-color: var(--as-navy-800); }
.as-calc__tab[data-calc-dir="avia"]    { color: var(--as-blue-500);   border-color: var(--as-blue-500); }
.as-calc__tab[data-calc-dir="pereezd"] { color: var(--as-orange-500); border-color: var(--as-orange-500); }
.as-calc__tab:hover { filter: brightness(.96); }

/* Активная вкладка — заливка фирменным цветом раздела (.calc-dir--active навешивает calculator.js). */
.calc-dir--active { color: #fff !important; }
.as-calc__tab[data-calc-dir="parom"].calc-dir--active   { background: var(--as-navy-800)   !important; border-color: var(--as-navy-800)   !important; }
.as-calc__tab[data-calc-dir="avia"].calc-dir--active    { background: var(--as-blue-500)   !important; border-color: var(--as-blue-500)   !important; }
.as-calc__tab[data-calc-dir="pereezd"].calc-dir--active { background: var(--as-orange-500) !important; border-color: var(--as-orange-500) !important; }

/* Анимация результата калькулятора */
@keyframes calcResultIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.calc-result--animate {
  animation: calcResultIn var(--dur-3) var(--ease-out) both;
}

/* ==========================================================================
   Дополнения — добавлено при fix-сессии (качество B5)
   ========================================================================== */

/* П-2: двухколоночный грид с мобильным свёртыванием в 1 колонку */
.as-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 640px) {
  .as-two-col { grid-template-columns: 1fr; }
}

/* П-6: .as-customs-grid и .as-cargo-grid — перенесены из <style> в body (parom.html, avia.html) */
.as-customs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 640px) {
  .as-customs-grid { grid-template-columns: 1fr; }
}

.as-cargo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 640px) {
  .as-cargo-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Форма заявки и модал — перенесено из <style> в partials/form.html
   (re-review B5: <style> через инклюд попадал в <body> всех страниц).
   Используем только CSS Custom Properties из tokens.css + атомы из site.css
   ========================================================================== */

.as-form-section {
  padding: 56px 0 64px;
  background: var(--t-surface-2, var(--t-page));
}

/* Глобальный scroll-margin-top для якорных целей — чтобы заголовок секции
   не уезжал под sticky-хедер при клике по якорю (#faq, #request-form-section и т.п.). */
section[id], details[id], h1[id], h2[id], h3[id], .as-form-section {
  scroll-margin-top: 80px;
}

/* ── Premium 2-колоночный layout формы заявки (введено 2026-05-23):
   слева — navy-панель с контактами и гарантиями, справа — белая
   карточка с формой. Применяется ко ВСЕМ страницам, где включён
   partial form.html. ─── */
.as-form-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: stretch;
}
.as-form-panel {
  position: relative;
  background: var(--as-navy-800);
  color: #fff;
  border-radius: 20px;
  padding: 44px 38px;
  overflow: hidden;
  display: flex;
}
.as-form-panel::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(242,106,31,.22) 0%, transparent 65%);
  pointer-events: none;
}
.as-form-panel__inner {
  position: relative;
  display: flex; flex-direction: column;
  width: 100%;
}
.as-form-panel__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--as-orange-500); font-weight: 700;
  margin-bottom: 18px;
}
.as-form-panel__eyebrow::before {
  content: ''; width: 20px; height: 1px; background: var(--as-orange-500);
}
.as-form-panel__h {
  font-size: 32px; font-weight: 800; line-height: 1.1;
  margin: 0 0 12px; color: #fff;
}
.as-form-panel__h-accent { color: var(--as-orange-500); }
.as-form-panel__d {
  font-size: 15px; color: var(--as-blue-100);
  line-height: 1.6; margin: 0 0 32px;
}
.as-form-panel__contacts {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 28px;
}
.as-form-panel__contact {
  display: grid; grid-template-columns: 44px 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px 14px;
  background: rgba(255,255,255,.06);
  border-radius: var(--r-2);
  color: #fff; text-decoration: none;
  transition: background .2s;
}
.as-form-panel__contact:hover { background: rgba(255,255,255,.12); }
.as-form-panel__contact-icon {
  width: 44px; height: 44px; border-radius: var(--r-2);
  background: rgba(255,255,255,.10);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.as-form-panel__contact-body {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.as-form-panel__contact-label {
  font-size: 10px; color: var(--as-blue-100);
  letter-spacing: .08em; text-transform: uppercase;
}
.as-form-panel__contact-value {
  font-size: 14px; font-weight: 700; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.as-form-panel__contact-arrow {
  color: var(--as-blue-100);
  transition: color .2s, transform .2s;
}
.as-form-panel__contact:hover .as-form-panel__contact-arrow {
  color: var(--as-orange-500); transform: translateX(3px);
}
.as-form-panel__trust {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.as-form-panel__trust li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--as-blue-100);
}
.as-form-panel__trust svg {
  color: var(--as-orange-500); flex-shrink: 0;
}

/* Правая колонка — переопределяем .as-form-wrap внутри нового layout:
   убираем старое центрирование, превращаем в премиум-карточку. */
.as-form-layout .as-form-wrap {
  max-width: none;
  margin: 0;
  background: var(--t-surface);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 16px 48px rgba(11,61,99,.18);
}

/* Tablet — стек, сохраняем визуальную плотность */
@media (max-width: 960px) {
  .as-form-section { padding: 44px 0 52px; }
  .as-form-layout { grid-template-columns: 1fr; gap: 20px; }
  .as-form-panel { padding: 32px 26px; border-radius: 18px; }
  .as-form-panel::before { width: 240px; height: 240px; top: -90px; right: -90px; }
  .as-form-panel__h { font-size: 26px; }
  .as-form-panel__d { font-size: 14px; margin-bottom: 24px; }
  .as-form-panel__contacts { gap: 8px; margin-bottom: 22px; }
  .as-form-panel__trust { padding-top: 18px; }
  .as-form-layout .as-form-wrap { padding: 28px; border-radius: 18px; }
}

/* Phone — мелкие штрихи: padding меньше, размеры приходят в порядок */
@media (max-width: 480px) {
  .as-form-section { padding: 32px 0 44px; }
  .as-form-panel { padding: 26px 22px; border-radius: 16px; }
  .as-form-panel__h { font-size: 24px; }
  .as-form-panel__d { font-size: 14px; }
  .as-form-panel__contact { padding: 10px 12px; grid-template-columns: 40px 1fr auto; }
  .as-form-panel__contact-icon { width: 40px; height: 40px; }
  .as-form-panel__contact-value { font-size: 13px; }
  .as-form-layout .as-form-wrap { padding: 22px; border-radius: 16px; }
}

.as-form-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--t-text-1);
  margin-bottom: 12px;
}

.as-form-sub {
  font-size: 14px;
  color: var(--t-text-2);
  margin-bottom: 16px;
}

/* ── Переключатель типа услуги ── */
.as-form-type-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.as-form-type-btn {
  padding: 7px 14px;
  border-radius: var(--r-2, 8px);
  border: 1.5px solid var(--t-border);
  background: var(--t-surface);
  color: var(--t-text-1);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans, sans-serif);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

/* Цвета вкладок по типу заявки — Паром-техника/груз = navy; Авиа = blue; Переезд = orange; Военный = green.
   См. reference_avtospektr_brand_colors. */
.as-form-type-btn[data-form-type="parom-tehnika"] { color: var(--as-navy-800);   border-color: var(--as-navy-800); }
.as-form-type-btn[data-form-type="parom-gruz"]    { color: var(--as-navy-700);   border-color: var(--as-navy-700); }
.as-form-type-btn[data-form-type="avia"]          { color: var(--as-blue-500);   border-color: var(--as-blue-500); }
.as-form-type-btn[data-form-type="pereezd"]       { color: var(--as-orange-500); border-color: var(--as-orange-500); }
.as-form-type-btn[data-form-type="voennyy"]       { color: var(--as-success-500);border-color: var(--as-success-500); }

.as-form-type-btn:hover { filter: brightness(.96); }

.as-form-type-btn--active,
.as-form-type-btn[aria-pressed="true"] { color: #fff; }
.as-form-type-btn[data-form-type="parom-tehnika"].as-form-type-btn--active,
.as-form-type-btn[data-form-type="parom-tehnika"][aria-pressed="true"] { background: var(--as-navy-800);   border-color: var(--as-navy-800); }
.as-form-type-btn[data-form-type="parom-gruz"].as-form-type-btn--active,
.as-form-type-btn[data-form-type="parom-gruz"][aria-pressed="true"]    { background: var(--as-navy-700);   border-color: var(--as-navy-700); }
.as-form-type-btn[data-form-type="avia"].as-form-type-btn--active,
.as-form-type-btn[data-form-type="avia"][aria-pressed="true"]          { background: var(--as-blue-500);   border-color: var(--as-blue-500); }
.as-form-type-btn[data-form-type="pereezd"].as-form-type-btn--active,
.as-form-type-btn[data-form-type="pereezd"][aria-pressed="true"]       { background: var(--as-orange-500); border-color: var(--as-orange-500); }
.as-form-type-btn[data-form-type="voennyy"].as-form-type-btn--active,
.as-form-type-btn[data-form-type="voennyy"][aria-pressed="true"]       { background: var(--as-success-500);border-color: var(--as-success-500); }

/* ── Форма ── */
.as-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── fieldset ── */
/* Все блоки формы — карточки с рамкой и встроенным заголовком legend (native fieldset-стиль).
   Пример образца — блок «Документы МО» в военной заявке. */
.as-form-block {
  border: 1px solid var(--t-border);
  border-radius: var(--r-2, 8px);
  padding: 6px 16px 12px;
  margin: 0 0 12px 0;
  background: var(--t-surface);
}

.as-form-block[hidden] { display: none; }

.as-form-block__legend {
  padding: 0 6px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--as-orange-700);
}
.as-form-block__legend .as-form-hint { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--t-text-3, var(--t-text-2)); }

/* ── Поле ── */
.as-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.as-form-field:last-child { margin-bottom: 0; }

.as-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

/* Компактные инпуты в форме заявки (глобальный .as-input = 44px великоват для длинной формы). */
.as-form .as-input { height: 36px; padding: 0 12px; font-size: 14px; }
.as-form .as-form-textarea { height: auto; min-height: 52px; padding: 6px 12px; }
.as-form .as-select { background-position: right 10px center; padding-right: 32px; }

.as-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--t-text-2);
}

.as-form-req {
  color: var(--as-danger-500, #d9534f);
  margin-left: 2px;
}

.as-form-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--t-text-3, var(--t-text-2));
  margin-left: 4px;
}

/* Ошибка — без зарезервированного места; появится только когда есть текст. */
.as-form-error {
  font-size: 12px;
  color: var(--as-danger-500, #d9534f);
  display: block;
}
.as-form-error:empty { display: none; }

/* textarea */
.as-form-textarea {
  height: auto;
  padding: 10px 14px;
  resize: vertical;
  font-family: var(--font-sans, sans-serif);
}

/* Чекбокс-строка */
.as-form-field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  margin-bottom: 12px;
}

.as-form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--t-text-1);
  cursor: pointer;
  line-height: 1.5;
}

.as-form-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--as-navy-800);
}

.as-form-link {
  color: var(--as-navy-800, #0B3D63);
  text-decoration: underline;
}

/* Блок документов МО */
.as-form-block--docs {
  background: var(--t-surface);
  border: 1px solid var(--t-border) !important;
  border-radius: var(--r-2, 8px);
  padding: 10px 14px !important;
  margin-top: 4px;
}
.as-form-block--docs .as-form-docs-list { gap: 6px; }

.as-form-docs-note {
  font-size: 13px;
  color: var(--t-text-2);
  margin-bottom: 12px;
}

.as-form-docs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Контакты — обычный fieldset (рамка идёт от .as-form-block). */

/* Ошибка на инпуте */
.as-input[aria-invalid="true"] {
  border-color: var(--as-danger-500, #d9534f);
  outline-color: var(--as-danger-500, #d9534f);
}

/* Футер формы */
.as-form-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

.as-form-footer-note {
  font-size: 12px;
  color: var(--t-text-2);
}

/* ── Модал ── */
.as-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.as-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.as-modal {
  background: var(--t-surface, #fff);
  border-radius: var(--r-3, 12px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.as-modal-overlay.is-open .as-modal {
  transform: translateY(0) scale(1);
}

.as-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--t-border);
}

.as-modal__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--t-text-1);
  margin: 0;
}

.as-modal__close {
  background: transparent;
  border: none;
  padding: 6px;
  color: var(--t-text-2);
  cursor: pointer;
  border-radius: var(--r-1, 6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
}

.as-modal__close:hover {
  background: var(--t-surface-2);
  color: var(--t-text-1);
}

.as-modal__body {
  padding: 20px 24px;
  flex: 1;
}

.as-modal__notice {
  font-size: 14px;
  color: var(--t-text-1);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--r-2, 8px);
  background: var(--as-blue-50, #EBF4FF);
  border-left: 3px solid var(--as-navy-800, #0B3D63);
}

[data-theme="dark"] .as-modal__notice {
  background: rgba(255,255,255,.06);
  border-left-color: var(--as-orange-500);
}

.as-modal__summary-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--t-text-2);
  margin-bottom: 12px;
}

.as-modal__data {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  font-size: 14px;
}

.as-modal__data dt {
  font-weight: 600;
  color: var(--t-text-2);
  white-space: nowrap;
}

.as-modal__data dd {
  color: var(--t-text-1);
  margin: 0;
  word-break: break-word;
}

.as-modal__footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--t-border);
  display: flex;
  justify-content: flex-end;
}

/* ── Адаптив формы/модала ── */
@media (max-width: 640px) {
  .as-form-section { padding: 40px 0 60px; }
  .as-form-heading { font-size: 22px; }
  .as-form-row { grid-template-columns: 1fr; }
  .as-form-footer { flex-direction: column; align-items: flex-start; }
  .as-form-type-btn { font-size: 13px; padding: 7px 12px; }
  .as-modal { max-height: 95vh; }
  .as-modal__data { grid-template-columns: 1fr; }
  .as-modal__data dt { margin-top: 6px; }
}

/* ==========================================================================
   Доводка B6: card-stack ячейки не должны клипаться/распирать карточку
   ========================================================================== */
/* В мобильном card-stack режиме длинный бейдж «Уточняется (П-2)» с
   white-space:nowrap выходил за границу .as-tariff-wrap и давал внутренний
   горизонтальный скролл карточки (клиент примет за баг вёрстки, а это
   намеренная заглушка). Разрешаем перенос содержимого ячейки и самого
   бейджа внутри card-stack. Селекторы специфичнее постраничных
   .as-badge-gate { white-space:nowrap }, поэтому переопределяют их
   независимо от порядка подключения стилей. */
@media (max-width: 640px) {
  .as-tariff-table.card-stack td {
    min-width: 0;
    /* overflow-wrap (не word-break) — переносим по словам, а длинные
       неразрывные строки бьём только при необходимости; обычные русские
       слова не рвём посреди буквы. */
    overflow-wrap: anywhere;
  }
  .as-tariff-table.card-stack td .as-badge-gate {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  /* Колонка-значение в card-stack тоже не должна распирать карточку:
     постранично .num задан white-space:nowrap. */
  .as-tariff-table.card-stack td.num {
    white-space: normal;
  }
}

/* ==========================================================================
   B7: Hero-анимация авиа/переездов — дополнения к дизайн-системе
   Источник: docs/design/design-system/project/ui_kits/marketing-site/
             components/HeroPanel.jsx  +  styles.css
   ========================================================================== */

/* Анимация заполнения фургона (переезды) — НЕ через CSS-transition:
   Firefox не анимирует CSS-переходы на геометрических presentation-
   атрибутах SVG (y/height у <rect>). Поэтому анимация полностью
   выполняется через requestAnimationFrame в ui.js (секция 10).
   .as-scales__result-val { transition: color } уже задан в базе (~стр.349) —
   здесь дубль убран. */

/* CLS-фикс главной: панели направлений (parom/avia/pereezd) имеют разную
   высоту контента — при переключении страница «прыгала». Фиксируем
   минимальную высоту панели по самой высокой. Не влияет на анимацию.
   Десктоп: самая высокая панель ≈560px. Узкий экран (390px): после B8
   панели стали интерактивными и выше — паром 359 / переезды 520 /
   авиа 555 (контент) → с паддингами hero-панель = 601px на самой
   высокой (авиа). Ставим 601px, чтобы переключение направлений не
   двигало нижний контент (CLS=0). */
#hero-panel { min-height: 560px; }
@media (max-width: 1100px) {
  #hero-panel { min-height: 601px; }
}
/* C3-B (фикс регресса B8): на мобайле ≤700px компактные панели имеют
   разную высоту (паром ≈337 / авиа ≈455 / переезды ≈519 при 390px).
   Без min-height переключение направлений на index.html двигало
   контент под hero на +118…+182px (CLS). Фиксируем по самой высокой
   мобильной панели (переезды 519px) + 1px буфер → CLS=0, при этом
   значительно меньше десктопных 601px (нет чрезмерной пустоты). */
@media (max-width: 700px) {
  #hero-panel { min-height: 520px; }
}

/* --- Обязательный инлайн-дисклеймер у живой цены в hero-панели ---
   Требование README дизайн-системы (раздел Inline disclaimers, стр. 94–95):
   «Тарифы ознакомительные, не являются публичной офертой» под любым
   ценовым блоком. В HeroPanel.jsx он отсутствовал — добавляем для
   консистентности с остальным сайтом. Мелкий, не ломает вёрстку. */
.as-hero__panel-disc {
  font-size: 11px;
  line-height: 1.4;
  color: var(--t-panel-text-2);
  margin-top: -6px;
}

/* --- GATE-бейдж «Уточняется (П-N)» ---
   Консолидировано из инлайн-<style> страниц index/avia/pereezd
   (там был трижды продублирован идентичный блок). Значения 1:1,
   computed-стиль не меняется. Мобильный card-stack override для
   .as-tariff-table остаётся постранично (он привязан к табличной
   разметке avia/pereezd, см. секцию «Доводка B6»). */
/* C3-A #6: orange-500 (#F26A1F) на rgba(orange,.1) = ratio 1.00.
   Светлая тема: navy-900 (#06283F) ~13:1 на тинтованном фоне.
   Тёмная тема: поверхность тёмная (navy-800) → navy-900 невидим; используем #fff ~11:1. */
/* Бейджи as-badge-gate — внутренние маркеры команды (П-N / А-N / Р-N / О-N).
   Скрыты на проде, остаются в HTML для поиска через grep. Чтобы временно
   показать — добавьте на html[data-gates="on"] (через DevTools). */
.as-badge-gate { display: none; }
html[data-gates="on"] .as-badge-gate {
  display: inline-block;
  background: rgba(242,106,31,.1); color: var(--as-navy-900);
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: var(--r-1); letter-spacing: .04em; white-space: nowrap;
}
/* Специфичность html[attr]+class > class > любые постраничные .as-badge-gate — !important не нужен (C3-C #3) */
html[data-theme="dark"] .as-badge-gate { color: #fff; }
/* Light mode: badge inside a dark section — navy text invisible on dark bg */
.as-section--dark .as-badge-gate{color:#fff}

/* Phase 3 — GATE badge color is container-driven (not theme-driven):
   (a) badge on the dark hero band → white;
   (b) badge inside a LIGHT CARD within a dark section → keep base navy
       (the section-level `color:#fff` over-applies otherwise → invisible). */
.as-hero:not(.as-hero--map) .as-badge-gate { color: #fff; }
.as-section--dark .as-tariff-wrap .as-badge-gate,
.as-section--dark .as-tariff-disc .as-badge-gate,
.as-section--dark .as-tariff-table .as-badge-gate,
.as-section--dark .as-schedule-card .as-badge-gate,
.as-section--dark .as-customs-cat .as-badge-gate,
.as-section--dark .as-service-item .as-badge-gate,
.as-section--dark .as-doc-block .as-badge-gate,
.as-section--dark .as-legal-note .as-badge-gate,
.as-section--dark .as-status-card .as-badge-gate,
.as-section--dark .as-requisites .as-badge-gate,
.as-section--dark .as-map-placeholder .as-badge-gate { color: var(--as-navy-900); }

/* fix(2026-05-21) — единая высота hero на 7 страницах переездов.
   Значение 650px = ceil(самая высокая копия (voennym, 522px) + padding hero
   56+64=120 = 642 → 650 с небольшим запасом на вариативность шрифта).
   ui.js выставляет html[data-active-dir="pereezd"] на всех pereezd-* страницах,
   что вместе с .as-hero--pereezd (см. выше) даёт двойную страховку. */
html[data-active-dir="pereezd"] .as-hero:not(.as-hero--map) { min-height: 650px; }
/* Аналогично для парома (см. memory project_avtospektr_hero_unification). */
html[data-active-dir="parom"] .as-hero:not(.as-hero--map) { min-height: 650px; }
/* Аналогично для авиа (см. memory project_avtospektr_hero_unification). */
html[data-active-dir="avia"] .as-hero:not(.as-hero--map) { min-height: 650px; }

/* --- prefers-reduced-motion: отключить все анимации hero ---
   Пульс, движение парома, заполнение фургона, переходы кнопок. */
@media (prefers-reduced-motion: reduce) {
  .as-hero__live-dot,
  .as-route__ferry {
    animation: none;
  }
  /* Фургон: rAF в ui.js сам проверяет prefers-reduced-motion и ставит
     конечное значение мгновенно (без CSS-transition здесь). */
  .as-avia__tab,
  .as-rooms__btn,
  .as-scales__result-val {
    transition: none;
  }
}

/* ===== Hero map (generated partial heromap.html) — Task 2 ===== */
.as-hero--map{position:relative;overflow:hidden;
  background:radial-gradient(130% 100% at 50% 32%,#0e1c2c 0%,#0a131f 52%,#05080f 100%)}
.as-hero--map .as-hero__map{position:absolute;inset:0;z-index:0}
.as-hero--map .as-hero__map svg.hm{width:100%;height:100%;display:block}
.hm-glow{fill:none;stroke:#F2761F;stroke-width:5;stroke-linejoin:round;opacity:.95;
  filter:drop-shadow(0 0 9px #F26A1F) drop-shadow(0 0 22px #F2761F) drop-shadow(0 0 52px rgba(242,118,31,.65))}
.hm-glowB{fill:none;stroke:#F28A3A;stroke-width:3;stroke-linejoin:round;opacity:.85;
  filter:drop-shadow(0 0 7px #F26A1F) drop-shadow(0 0 18px rgba(242,118,31,.6))}
.hm-land{fill:#0b1824;stroke:rgba(255,176,90,.5);stroke-width:.8}
.hm-blr{fill:#0d1d2b;stroke:rgba(255,176,90,.45);stroke-width:.8}
.hm-flow{fill:none;stroke-width:1.6;stroke-dasharray:2 8;opacity:.55;animation:hm-flow 8s linear infinite}
@keyframes hm-flow{to{stroke-dashoffset:-120}}
.hm-hubPulse{fill:none;stroke:#F26A1F;stroke-width:2.4;transform-box:fill-box;transform-origin:center;animation:hm-hp 3s ease-out infinite}
@keyframes hm-hp{0%{opacity:.75;r:7}75%{opacity:0;r:40}100%{opacity:0}}
.hm-hub{fill:#FFC07A;filter:drop-shadow(0 0 9px #F26A1F)}
.hm-dot{fill:#F26A1F;filter:drop-shadow(0 0 5px #F2761F)}
.hm-ring{fill:#F26A1F;transform-box:fill-box;transform-origin:center;animation:hm-pp 2.6s ease-out infinite}
@keyframes hm-pp{0%{opacity:.6;r:5}70%{opacity:0;r:20}100%{opacity:0}}
.hm-lbl{fill:#FFD9B3;font:700 13px 'Manrope',sans-serif;paint-order:stroke;
  stroke:#05080f;stroke-width:3.4px;stroke-linejoin:round}
.hm-lbl--hub{fill:#FFE6CC}
.hm-spark{offset-rotate:0deg;filter:drop-shadow(0 0 5px #F2761F);
  animation-name:hm-run;animation-timing-function:linear;animation-iteration-count:infinite}
.hm-veh{offset-rotate:auto;filter:drop-shadow(0 3px 6px rgba(0,0,0,.55));
  animation-name:hm-run;animation-timing-function:linear;animation-iteration-count:infinite}
@keyframes hm-run{0%{offset-distance:0%;opacity:0}8%{opacity:1}92%{opacity:1}100%{offset-distance:100%;opacity:0}}
@media (prefers-reduced-motion:reduce){
  .hm-flow{animation:none}
  .hm-ring,.hm-hubPulse{animation:none;opacity:0}
  .hm-veh,.hm-spark{animation:none;offset-distance:50%}
}

/* ===== Hero v6 layout — Task 3 ===== */
.as-hero--map .as-hero__h{color:#fff}
.as-hero--map .as-hero__p{max-width:360px}
.as-hero__legend{list-style:none;display:flex;flex-wrap:wrap;gap:14px 18px;margin:18px 0 0;padding:0;
  font-size:12px;color:#9FB3C6}
.as-hero__legend li{display:flex;align-items:center;gap:6px}
.as-hero__legend-i{width:9px;height:9px;border-radius:50%;display:inline-block}
.as-hero__calc-card{background:rgba(255,255,255,.98);border-radius:var(--r-3);
  box-shadow:0 28px 70px -14px rgba(0,0,0,.7),0 0 0 1px rgba(255,255,255,.05);padding:20px 22px}
[data-theme="dark"] .as-hero__calc-card{background:var(--t-surface)}

/* ===== Steps — Task 5 ===== */
.as-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.as-step{position:relative;background:var(--t-surface);border:1px solid var(--t-border);
  border-radius:var(--r-2);padding:22px 18px}
.as-step__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.as-step__n{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;
  border-radius:50%;background:var(--as-orange-500,#F26A1F);color:#fff;font-weight:800;font-size:15px}
.as-step__icn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;
  border-radius:50%;background:var(--as-blue-50);color:var(--as-navy-800)}
[data-theme="dark"] .as-step__icn{background:rgba(255,255,255,.08);color:#fff}
.as-step__t{margin:0 0 6px;font-size:16px;font-weight:700;color:var(--t-text-1)}
.as-step__p{margin:0;font-size:13.5px;line-height:1.5;color:var(--t-text-2)}
@media (max-width:860px){.as-steps{grid-template-columns:1fr}}
.as-steps--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .as-steps--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .as-steps--5 { grid-template-columns: 1fr; } }

/* ===== Why-us — Task 6 ===== */
.as-why{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.as-why__cell{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.12);
  border-radius:var(--r-2);padding:20px}
.as-why__t{margin:0 0 6px;font-size:16px;font-weight:700;color:#fff}
.as-why__p{margin:0;font-size:13.5px;line-height:1.5;color:var(--as-blue-100,#AFC4D6)}
@media (max-width:860px){.as-why{grid-template-columns:1fr}}

/* ===== Routes table — Task 7 ===== */
.as-rt-wrap{overflow-x:auto}
.as-rt{width:100%;border-collapse:collapse;font-size:14px;min-width:560px}
.as-rt th,.as-rt td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--t-border)}
.as-rt th{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--t-text-3);font-weight:800}
.as-rt td:last-child{font-weight:800;color:var(--as-navy-800,#0B3D63);font-variant-numeric:tabular-nums;white-space:nowrap}
[data-theme="dark"] .as-rt td:last-child{color:var(--as-blue-100,#AFC4D6)}
.as-rt tbody tr:hover{background:rgba(242,106,31,.05)}
.as-rt-disc{margin:14px 0 0;font-size:12px;color:var(--t-text-3)}

/* ===== Geography — Task 8 ===== */
.as-geo{list-style:none;margin:0;padding:0;display:grid;gap:12px;max-width:760px}
.as-geo li{font-size:14px;line-height:1.55;color:var(--as-blue-100,#AFC4D6);
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.12);
  border-radius:var(--r-2);padding:14px 16px}
.as-geo b{color:#fff}

/* ===== FAQ — Task 9 ===== */
.as-faq{display:grid;gap:10px;max-width:820px}
/* FAQ + sticky-карточка контактов справа (на десктопе) */
.as-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .as-faq-grid { grid-template-columns: 1fr; } }
.as-faq-help {
  position: sticky; top: 88px;
  background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--r-3);
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.as-faq-help__t { margin: 0; font-size: 17px; font-weight: 700; color: var(--t-text-1); }
.as-faq-help__p { margin: 0 0 4px; font-size: 13px; color: var(--t-text-2); line-height: 1.5; }
.as-faq-help__row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-2);
  background: var(--t-surface-2, var(--as-blue-50)); color: var(--t-text-1);
  text-decoration: none; transition: background var(--dur-2);
}
.as-faq-help__row:hover { background: var(--as-blue-50); }
.as-faq-help__row svg { flex-shrink: 0; color: var(--as-orange-500); }
.as-faq-help__row span { display: flex; flex-direction: column; font-weight: 700; font-size: 14px; line-height: 1.3; }
.as-faq-help__row small { font-weight: 400; font-size: 11.5px; color: var(--t-text-3); margin-top: 2px; }

/* Что НЕ возим — горизонтальный список с красными крестами */
.as-noship__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .as-noship__list { grid-template-columns: 1fr; } }
.as-noship__item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--r-3);
  padding: 14px 16px;
}
.as-noship__icn {
  flex-shrink: 0; width: 32px; height: 32px;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(179, 38, 30, .1); color: var(--as-danger-500, #B3261E);
}
.as-noship__item b { display: block; font-size: 14px; font-weight: 700; color: var(--t-text-1); margin-bottom: 2px; }
.as-noship__item span { font-size: 13px; line-height: 1.45; color: var(--t-text-2); }

/* Оплата и документы — 3 карточки клиентских типов */
.as-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .as-pay { grid-template-columns: 1fr; } }
.as-pay__card {
  background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--r-3);
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.as-pay__card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11, 61, 99, .08); }
.as-pay__head { display: flex; align-items: center; gap: 10px; }
.as-pay__icn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--as-orange-50, #FFF3EA); color: var(--as-orange-700);
}
.as-pay__t { margin: 0; font-size: 17px; font-weight: 700; color: var(--t-text-1); }
.as-pay__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.as-pay__list li {
  font-size: 13.5px; line-height: 1.5; color: var(--t-text-2);
  padding-left: 18px; position: relative;
}
.as-pay__list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--as-orange-500);
}

/* CTA-блок на calculator.html — после результата расчёта */
.calc-cta {
  margin-top: 28px; padding: 24px 28px;
  background: linear-gradient(135deg, var(--as-navy-800), var(--as-navy-900));
  border-radius: var(--r-3); color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
}
@media (max-width: 720px) {
  .calc-cta { grid-template-columns: 1fr; padding: 20px; }
}
.calc-cta__t { margin: 0 0 6px; font-size: 20px; font-weight: 700; color: #fff; }
.calc-cta__p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--as-blue-100); max-width: 480px; }
.calc-cta__actions { display: flex; flex-direction: column; gap: 8px; min-width: 240px; }
@media (max-width: 720px) { .calc-cta__actions { width: 100%; } }
.calc-cta__actions .as-btn { width: 100%; justify-content: center; }
.calc-cta__actions .as-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.calc-cta__actions .as-btn--outline:hover { background: rgba(255,255,255,.08); border-color: #fff; }

/* Визуальная схема маршрута — 4 шага со стрелками между ними */
.as-route-steps {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  position: relative;
}
@media (max-width: 880px) { .as-route-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .as-route-steps { grid-template-columns: 1fr; } }
.as-route-step {
  position: relative;
  background: var(--t-surface); border: 1px solid var(--t-border); border-radius: var(--r-3);
  padding: 16px 16px 14px; display: flex; gap: 12px;
}
.as-route-step__icn {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--as-orange-50, #FFF3EA); color: var(--as-orange-700);
}
.as-route-step__n {
  position: absolute; top: -8px; right: -8px;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--as-orange-500); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; line-height: 1;
}
.as-route-step b { display: block; font-size: 14px; font-weight: 700; color: var(--t-text-1); margin-bottom: 2px; }
.as-route-step span:not([class]) { font-size: 12.5px; line-height: 1.4; color: var(--t-text-2); }
/* Стрелочка-разделитель между шагами (только на широком экране) */
@media (min-width: 881px) {
  .as-route-step:not(:last-child)::after {
    content: ""; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
    width: 8px; height: 8px;
    border-top: 2px solid var(--as-orange-500); border-right: 2px solid var(--as-orange-500);
    transform: translateY(-50%) rotate(45deg);
    z-index: 1;
  }
}

.as-faq__i{background:var(--t-surface);border:1px solid var(--t-border);
  border-radius:var(--r-2);padding:4px 18px}
.as-faq__i summary{cursor:pointer;list-style:none;padding:14px 0;font-size:15px;font-weight:700;
  color:var(--t-text-1);display:flex;justify-content:space-between;gap:12px;align-items:center}
.as-faq__i summary::after{content:"+";font-size:20px;color:var(--as-orange-500);font-weight:400}
.as-faq__i[open] summary::after{content:"–"}
.as-faq__i summary::-webkit-details-marker{display:none}
.as-faq__i p{margin:0 0 14px;font-size:14px;line-height:1.55;color:var(--t-text-2)}
.as-faq__i summary:focus-visible{outline:2px solid var(--as-orange-500);outline-offset:2px;border-radius:4px}

/* ===== Final CTA — Task 10 ===== */
.as-cta-final{background:linear-gradient(135deg,#0B3D63,#06283F) !important}
/* T12-B3: миграция инлайновых цветов финального CTA в таблицу стилей (только цвет). */
.as-cta-final .as-section__h{color:#fff}
.as-cta-final__lead{color:var(--as-blue-100)}
.as-cta-final__row{display:flex;align-items:center;justify-content:space-between;gap:28px;flex-wrap:wrap}
.as-cta-final__act{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.as-cta-final__phone{font-size:18px;font-weight:800;color:#fff;text-decoration:none;font-variant-numeric:tabular-nums}
.as-cta-final__tg{font-size:14px;font-weight:700;color:#F2A878;text-decoration:none}
.as-cta-final__phone:focus-visible,.as-cta-final__tg:focus-visible{outline:2px solid #F2A878;outline-offset:3px}
@media (max-width:760px){.as-cta-final__row{flex-direction:column;align-items:flex-start}}

/* ===== Subnav home link — Task 11 (T12-B2 contrast) ===== */
.as-subnav__link--home{font-weight:800}
/* T12-B2: активный пункт сабнава должен проходить WCAG AA на обоих фонах сабнава.
   Светлый фон --t-subnav-bg #F5F7FA: navy #0B3D63 ≈ 10.45:1 (было orange ≈ 3.34:1, FAIL).
   Тёмный фон --t-subnav-bg #06283F: blue-100 #DCEAF7 ≈ 12.62:1.
   Подчёркивание (::after) наследует currentColor — остаётся видимым на обоих темах. */
.as-subnav__link--on{color:var(--as-navy-800);position:relative}
.as-subnav__link--on::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;
  background:currentColor}
[data-theme="dark"] .as-subnav__link--on{color:var(--as-blue-100)}

/* ===== Hero responsive — Task 13 ===== */
@media (max-width:900px){
  .as-hero--map .as-hero__grid{grid-template-columns:1fr}
  .as-hero--map .as-hero__map{opacity:.45}
  .as-hero__calc-card{width:100%}
  .as-hero--map .as-hero__copy{margin-bottom:20px}
}
@media (max-width:560px){
  .as-hero--map .as-hero__map{opacity:.32}
  .hm-lbl{font-size:11px}
}
.as-hero__calc-card{min-height:430px}
@media (max-width:900px){.as-hero__calc-card{min-height:auto}}

/* ===== FIX: hero calculator overflow — #calc-root рассчитан на широкую секцию,
   а grid-колонка hero = 460px (внутр. .as-calc__grid имеет 420px-колонку → перелом).
   Решение: hero на главной — одноколоночный; калькулятор-карточка во всю ширину
   (его исходный рабочий контекст, как в прежней standalone-секции). ===== */
.as-hero--map .as-hero__grid{grid-template-columns:1fr;gap:32px}
.as-hero--map .as-hero__calc-card{width:100%;max-width:960px}
.as-hero--map .as-hero__copy{max-width:760px}
@media (max-width:680px){
  .as-hero--map .as-hero__calc-card .as-calc__grid{grid-template-columns:1fr}
}

/* ===== Логотип АЗИМУТ ЛОГИСТИК (ребренд, бренд-нейм) ===== */
.as-logo--azimut{display:inline-flex;align-items:center;gap:10px;text-decoration:none}
.as-logo--azimut img{display:block;flex:0 0 auto}
.as-logo__wm{display:flex;flex-direction:column;line-height:1}
.as-logo__wm-name{font:800 19px/1 var(--font-sans);letter-spacing:.04em;color:var(--as-navy-800)}
[data-theme="dark"] .as-logo__wm-name{color:#fff}
.as-logo__wm-sub{font:700 11px/1 var(--font-sans);letter-spacing:.22em;color:var(--as-orange-700);margin-top:4px;text-transform:uppercase}
[data-theme="dark"] .as-logo__wm-sub{color:var(--as-orange-500)}
@media (max-width:560px){.as-logo__wm-sub{font-size:9.5px;letter-spacing:.18em;margin-top:3px}.as-logo__wm-name{font-size:17px}}


/* ===== Tariff / schedule / sub-card components (extracted from parom* inline <style>, 2026-05-19) ===== */
    /* ─── Тарифные таблицы: tabular-nums, sticky-шапка ─── */
    .as-tariff-table { width: 100%; border-collapse: collapse; font-size: 14px; }
    .as-tariff-table thead th {
      position: sticky; top: 0; z-index: 2;
      background: var(--as-navy-800); color: #fff;
      padding: 10px 12px; text-align: left; font-weight: 600;
      white-space: nowrap;
    }
    .as-tariff-table tbody tr:nth-child(odd)  { background: var(--t-surface); }
    .as-tariff-table tbody tr:nth-child(even) { background: var(--t-surface-2); }
    .as-tariff-table td { padding: 10px 12px; vertical-align: top; }
    .as-tariff-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
    .as-tariff-wrap { overflow-x: auto; border-radius: var(--r-2); border: 1px solid var(--t-border); }
    .as-tariff-eff { font-size: 12px; color: var(--t-text-3); margin-bottom: 8px; }
    .as-tariff-disc {
      font-size: 12px; color: var(--t-text-2);
      margin-top: 8px; padding: 8px 12px;
      background: var(--t-surface-2); border-radius: var(--r-2);
      border: 1px solid var(--t-border);
    }
    /* fix(2026-05-19): .as-tariff-disc has its OWN light box bg (--t-surface-2);
       inside .as-section--dark it must use DARK text (like .as-tariff-table td),
       not light blue-100 (that produced light-on-light). Dark theme → white. */
    .as-section--dark > .as-container > .as-tariff-disc { color: var(--as-ink-900) !important; }
    [data-theme="dark"] .as-section--dark > .as-container > .as-tariff-disc { color: var(--t-text-1) !important; }
    /* Modifier --summary: сводная плашка под заголовком, без фона и рамки.
       На тёмной секции — белый текст. Введено 2026-05-23. */
    .as-tariff-disc--summary {
      background: transparent !important;
      border: 0 !important;
      padding: 0 !important;
      color: var(--t-text-2);
    }
    .as-section--dark > .as-container > .as-tariff-disc--summary { color: #fff !important; }
    /* Мобильный card-stack для широких таблиц.
       2026-05-23: вертикальный stack — лейбл сверху мелким UPPERCASE-капшеном,
       значение под ним. Премиум-паттерн, согласован с price-card.
       Внешняя обёртка .as-tariff-wrap на мобиле — без рамки/фона. */
    @media (max-width: 640px) {
      .as-tariff-wrap {
        border: 0;
        border-radius: 0;
        background: transparent;
        overflow: visible;
      }
      .as-tariff-table.card-stack thead { display: none; }
      .as-tariff-table.card-stack tr {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 12px;
        border: 1px solid var(--t-border); border-radius: var(--r-3);
        background: var(--t-surface);
        padding: 16px 18px;
      }
      .as-tariff-table.card-stack td {
        display: flex;
        flex-direction: column;
        gap: 3px;
        padding: 0;
        border: 0;
        font-size: 14px;
        color: var(--t-text-1);
        line-height: 1.4;
      }
      .as-tariff-table.card-stack td::before {
        content: attr(data-label);
        font-size: 10px;
        font-weight: 700;
        color: var(--t-text-3);
        text-transform: uppercase;
        letter-spacing: .06em;
      }
      .as-tariff-table.card-stack td.num {
        font-variant-numeric: tabular-nums;
        font-weight: 600;
      }
      /* 2-колоночная сетка карточек — модификатор для коротких/однородных таблиц
         (например «Типы контейнеров»). Введено 2026-05-24. */
      .as-tariff-table.card-stack.card-stack--2col tbody {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
      }
      .as-tariff-table.card-stack.card-stack--2col tr {
        margin-bottom: 0;
        padding: 14px 14px;
      }
      .as-tariff-table.card-stack.card-stack--2col td { font-size: 13px; }
      .as-tariff-table.card-stack.card-stack--2col td:first-child:not(.num) { font-size: 15px; }
      /* Первая ячейка (обычно Тип) — выделяется как заголовок карточки */
      .as-tariff-table.card-stack td:first-child {
        padding-bottom: 8px;
        border-bottom: 1px solid var(--t-border);
        margin-bottom: 2px;
      }
      .as-tariff-table.card-stack td:first-child::before {
        font-size: 10px;
      }
      .as-tariff-table.card-stack td:first-child:not(.num) {
        font-size: 16px;
        font-weight: 700;
      }
    }
    /* Блок «Что включено» */
    .as-include-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
    .as-include-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
    .as-include-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--as-orange-500); }

    /* ── «Что перевозим / что запрещено»: контрастные панели ──────────
       Две карточки (зелёная «принимаем» / красная «не принимаем») +
       полоса весовых ограничений. Светлая секция; есть dark-тема override.
       Введено 2026-06-18 для avia.html (выбранный заказчиком вариант). ── */
    .as-cargo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .as-cargo-card {
      border: 1px solid var(--t-border); border-radius: var(--r-3);
      background: var(--t-surface); overflow: hidden;
    }
    .as-cargo-card--ok { border-top: 3px solid var(--as-success-500); }
    .as-cargo-card--no { border-top: 3px solid var(--as-danger-500); }
    .as-cargo-card__head {
      display: flex; align-items: center; gap: 12px;
      padding: 15px 20px; font-weight: 700; font-size: 15px;
    }
    .as-cargo-card--ok .as-cargo-card__head { background: var(--as-success-100); color: var(--as-success-700); }
    .as-cargo-card--no .as-cargo-card__head { background: var(--as-danger-100); color: var(--as-danger-700); }
    .as-cargo-card__badge {
      width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center; color: #fff;
    }
    .as-cargo-card--ok .as-cargo-card__badge { background: var(--as-success-500); }
    .as-cargo-card--no .as-cargo-card__badge { background: var(--as-danger-500); }
    .as-cargo-card__list { list-style: none; margin: 0; padding: 8px 20px 16px; display: flex; flex-direction: column; }
    .as-cargo-card__list li {
      display: flex; align-items: flex-start; gap: 11px;
      padding: 10px 0; font-size: 14px; color: var(--t-text-1); line-height: 1.45;
      border-bottom: 1px dashed var(--t-border);
    }
    .as-cargo-card__list li:last-child { border-bottom: none; }
    .as-cargo-card__list li svg { flex-shrink: 0; margin-top: 2px; }
    .as-cargo-card--ok .as-cargo-card__list li svg { color: var(--as-success-500); }
    .as-cargo-card--no .as-cargo-card__list li svg { color: var(--as-danger-500); }

    .as-cargo-weights { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
    .as-cargo-weight {
      display: flex; align-items: center; gap: 15px;
      background: var(--as-blue-50); border: 1px solid var(--t-border);
      border-radius: var(--r-3); padding: 16px 20px;
    }
    .as-cargo-weight__ic {
      width: 46px; height: 46px; border-radius: var(--r-2); flex-shrink: 0;
      background: #fff; border: 1px solid var(--t-border);
      display: flex; align-items: center; justify-content: center; color: var(--as-navy-800);
    }
    .as-cargo-weight__big { font-size: 22px; font-weight: 800; color: var(--as-navy-800); font-variant-numeric: tabular-nums; line-height: 1; }
    .as-cargo-weight__lab { font-size: 13px; color: var(--t-text-2); margin-top: 4px; }

    /* Dark-тема: карточки на navy-фоне страницы; плашки веса — в тон тёмной
       секции (иначе светло-голубой фон гасит подпись). Заголовки-плашки
       зелёный/красный сохраняем — читаются как акцент. */
    [data-theme="dark"] .as-cargo-card--ok .as-cargo-card__list li svg { color: #5FD39B; }
    [data-theme="dark"] .as-cargo-card--no .as-cargo-card__list li svg { color: #FF8A82; }
    [data-theme="dark"] .as-cargo-weight { background: var(--t-surface-2); }
    [data-theme="dark"] .as-cargo-weight__ic { background: var(--t-surface); color: var(--as-blue-100); }
    [data-theme="dark"] .as-cargo-weight__big { color: #fff; }

    @media (max-width: 760px) {
      .as-cargo-split, .as-cargo-weights { grid-template-columns: 1fr; }
    }

    /* ── «Передача груза и оплата»: иконочные карточки способов ─────────
       Две группы (заголовок-лейбл + стопка карточек icon/заголовок/описание).
       Светлая секция; есть [data-theme=dark] override.
       Введено 2026-06-18 для avia.html (выбран заказчиком, вариант 1). ── */
    .as-method-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
    .as-method-h {
      display: flex; align-items: center; gap: 10px;
      font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
      color: var(--as-navy-800); margin: 0 0 14px;
    }
    .as-method-h__ic {
      width: 26px; height: 26px; border-radius: var(--r-1); flex-shrink: 0;
      background: var(--as-orange-50); color: var(--as-orange-500);
      display: flex; align-items: center; justify-content: center;
    }
    .as-method-card {
      display: flex; align-items: flex-start; gap: 14px;
      border: 1px solid var(--t-border); border-radius: var(--r-3); background: var(--t-surface);
      padding: 16px 18px; margin-bottom: 12px; transition: box-shadow .25s, border-color .25s;
    }
    .as-method-card:last-child { margin-bottom: 0; }
    .as-method-card:hover { border-color: var(--as-border-300); box-shadow: 0 8px 24px rgba(11,61,99,.08); }
    .as-method-card__ic {
      width: 44px; height: 44px; border-radius: var(--r-2); flex-shrink: 0;
      background: var(--as-blue-50); color: var(--as-navy-800);
      display: flex; align-items: center; justify-content: center;
    }
    .as-method-card__t { font-size: 14.5px; font-weight: 700; color: var(--t-text-1); line-height: 1.3; margin-bottom: 3px; }
    .as-method-card__d { font-size: 13px; color: var(--t-text-2); line-height: 1.5; }

    /* Dark-тема: navy-карточки, чипы-иконки в тон, заголовок группы — светлый
       (иначе navy-текст и светло-голубой чип выпадают на тёмном фоне). */
    [data-theme="dark"] .as-method-h { color: var(--as-blue-100); }
    [data-theme="dark"] .as-method-h__ic { background: rgba(242,106,31,.18); }
    [data-theme="dark"] .as-method-card__ic { background: var(--t-surface-2); color: var(--as-blue-100); }
    [data-theme="dark"] .as-method-card:hover { border-color: rgba(255,255,255,.22); box-shadow: 0 8px 20px rgba(0,0,0,.35); }

    @media (max-width: 760px) { .as-method-cols { grid-template-columns: 1fr; gap: 22px; } }

    /* ── «Требования»: карточки-колонки с чек-листами ──────────────────
       Категории требований в ряд: иконка-заголовок + чек-лист пунктов.
       Светлая секция; есть [data-theme=dark] override.
       Введено 2026-06-18 для avia-upakovka.html (выбран вариант 1). ── */
    .as-req-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .as-req-card { border: 1px solid var(--t-border); border-radius: var(--r-3); background: var(--t-surface); padding: 24px 22px; }
    .as-req-card__head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--t-border); }
    .as-req-card__ic {
      width: 42px; height: 42px; border-radius: var(--r-2); flex-shrink: 0;
      background: var(--as-blue-50); color: var(--as-navy-800);
      display: flex; align-items: center; justify-content: center;
    }
    .as-req-card__t { font-size: 15px; font-weight: 700; color: var(--t-text-1); line-height: 1.3; }
    .as-req-card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
    .as-req-card__list li { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; color: var(--t-text-2); line-height: 1.5; }
    .as-req-card__list li svg { flex-shrink: 0; margin-top: 2px; color: var(--as-orange-500); }
    [data-theme="dark"] .as-req-card__ic { background: var(--t-surface-2); color: var(--as-blue-100); }
    @media (max-width: 860px) { .as-req-cards { grid-template-columns: 1fr; } }

    /* Режим работы */
    .as-schedule-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 12px; }
    .as-schedule-card {
      border: 1px solid var(--t-border); border-radius: var(--r-2);
      padding: 14px 16px; background: var(--t-surface);
    }
    .as-schedule-card__t { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
    .as-schedule-card__h { font-variant-numeric: tabular-nums; font-size: 15px; color: var(--t-text-1); }
    .as-schedule-card__brk { font-size: 12px; color: var(--t-text-3); }

    /* ── Расписание с иконками (модификатор для тёмных секций):
       иконка слева, заголовок и содержимое — справа от иконки.
       Введено 2026-05-23 для секции «Режим работы» на парома главной. ─── */
    .as-section--dark .as-schedule-card.as-schedule-card--icon {
      background: rgba(255,255,255,.06);
      border-color: rgba(255,255,255,.10);
      padding: 18px 20px;
      display: grid;
      grid-template-columns: 36px 1fr;
      gap: 14px;
      align-items: start;
      color: var(--as-blue-100);
    }
    .as-schedule-card--icon .as-schedule-card__icon {
      width: 36px; height: 36px; border-radius: var(--r-2);
      background: var(--as-orange-500);
      display: flex; align-items: center; justify-content: center;
      color: #fff; margin-bottom: 0;
    }
    .as-schedule-card--icon .as-schedule-card__body {
      display: flex; flex-direction: column; gap: 4px;
      min-width: 0;
    }
    .as-section--dark .as-schedule-card.as-schedule-card--icon .as-schedule-card__t {
      color: #fff; font-weight: 700; font-size: 15px; margin: 0;
    }
    .as-section--dark .as-schedule-card.as-schedule-card--icon .as-schedule-card__h {
      color: #fff; font-variant-numeric: tabular-nums; font-size: 14px;
    }
    .as-section--dark .as-schedule-card.as-schedule-card--icon .as-schedule-card__brk {
      color: rgba(255,255,255,.55); font-size: 12px; margin-top: 2px;
    }
    /* Light-секции: тот же icon-left layout, но на белом фоне */
    .as-section:not(.as-section--dark) .as-schedule-card.as-schedule-card--icon {
      display: grid;
      grid-template-columns: 36px 1fr;
      gap: 14px;
      align-items: start;
      padding: 18px 20px;
    }
    .as-section:not(.as-section--dark) .as-schedule-card--icon .as-schedule-card__icon {
      width: 36px; height: 36px; border-radius: var(--r-2);
      background: var(--as-orange-500);
      display: flex; align-items: center; justify-content: center;
      color: #fff; margin-bottom: 0;
      flex-shrink: 0;
    }
    .as-section:not(.as-section--dark) .as-schedule-card--icon .as-schedule-card__body {
      display: flex; flex-direction: column; gap: 4px;
      min-width: 0;
    }
    .as-section:not(.as-section--dark) .as-schedule-card.as-schedule-card--icon .as-schedule-card__t {
      color: var(--t-text-1); font-weight: 700; font-size: 15px; margin: 0;
    }
    .as-section:not(.as-section--dark) .as-schedule-card.as-schedule-card--icon .as-schedule-card__h {
      color: var(--t-text-1); font-variant-numeric: tabular-nums; font-size: 14px;
    }
    .as-section:not(.as-section--dark) .as-schedule-card.as-schedule-card--icon .as-schedule-card__brk {
      color: var(--t-text-3); font-size: 12px; margin-top: 2px;
    }

    /* ── Аккордеон на native <details>: для тёмных секций.
       Используется в «Режим работы и условия приёма» — 2026-05-23. ─── */
    .as-acc { display: flex; flex-direction: column; gap: 10px; }
    .as-acc details {
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.10);
      border-radius: var(--r-3);
      overflow: hidden;
      transition: background .2s;
    }
    .as-acc details[open] { background: rgba(255,255,255,.06); }
    .as-acc summary {
      display: flex; align-items: center; gap: 12px;
      padding: 18px 22px;
      cursor: pointer;
      font-size: 16px; font-weight: 700; color: #fff;
      list-style: none;
      user-select: none;
    }
    .as-acc summary::-webkit-details-marker { display: none; }
    .as-acc summary::after {
      content: '';
      width: 11px; height: 11px;
      border-right: 2px solid var(--as-orange-500);
      border-bottom: 2px solid var(--as-orange-500);
      transform: rotate(45deg);
      margin-left: auto;
      transition: transform .25s ease;
    }
    .as-acc details[open] summary::after { transform: rotate(-135deg); }
    .as-acc summary:hover { background: rgba(255,255,255,.06); }
    .as-acc__icon {
      width: 32px; height: 32px; border-radius: var(--r-2);
      background: rgba(255,255,255,.12);
      display: inline-flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .as-acc__body {
      padding: 16px 22px 22px;
      border-top: 1px solid rgba(255,255,255,.08);
    }
    .as-acc__body > *:last-child { margin-bottom: 0; }

    /* Light-секции (не .as-section--dark): аккордеон на белом фоне, тёмный текст */
    .as-section:not(.as-section--dark) .as-acc details {
      background: var(--t-surface);
      border-color: var(--t-border);
    }
    .as-section:not(.as-section--dark) .as-acc details[open] {
      background: var(--t-surface);
      box-shadow: 0 4px 16px rgba(11,61,99,.06);
    }
    .as-section:not(.as-section--dark) .as-acc summary { color: var(--t-text-1); }
    .as-section:not(.as-section--dark) .as-acc summary:hover { background: var(--t-surface-2); }
    .as-section:not(.as-section--dark) .as-acc__body { border-top-color: var(--t-border); }
    .as-section:not(.as-section--dark) .as-acc__icon { background: rgba(242,106,31,.12); }
    .as-section:not(.as-section--dark) .as-acc .as-include-list li { color: var(--t-text-2); }
    .as-section:not(.as-section--dark) .as-acc .as-include-list li svg { color: var(--as-orange-500); }

    /* ── Horizontal flow: 4 шага в линию с двусторонним коннектором.
       Анимация: шаги fade-in со стаггером, линия растёт, arrowhead появляется.
       Используется в «Схема доставки сборного груза». Введено 2026-05-23. ─── */
    .as-flow-header {
      display: inline-flex; align-items: center; gap: 10px;
      padding: 10px 16px;
      background: rgba(242,106,31,.14);
      border: 1px solid rgba(242,106,31,.40);
      border-radius: 999px;
      color: var(--as-orange-500);
      font-size: 13px; font-weight: 700;
      margin-bottom: 22px;
    }
    .as-flow-header svg { animation: as-flow-pulse-arrow 2.2s ease-in-out infinite; }
    @keyframes as-flow-pulse-arrow {
      0%, 100% { transform: translateX(0); opacity: 1; }
      50%      { transform: translateX(3px); opacity: .65; }
    }
    .as-flow {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    }
    .as-flow__step {
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.10);
      border-radius: var(--r-3);
      padding: 22px;
      position: relative;
      display: flex; flex-direction: column; gap: 8px;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity .6s ease-out, transform .6s ease-out;
    }
    .as-flow__head {
      display: flex; align-items: flex-start; gap: 14px;
      margin-bottom: 2px;
    }
    .as-flow__head-text {
      display: flex; flex-direction: column; gap: 4px;
      padding-top: 4px;
    }
    .as-flow__step + .as-flow__step { margin-left: 26px; }
    .as-flow.is-visible .as-flow__step { opacity: 1; transform: none; }
    .as-flow.is-visible .as-flow__step:nth-child(1) { transition-delay: 0s; }
    .as-flow.is-visible .as-flow__step:nth-child(2) { transition-delay: .15s; }
    .as-flow.is-visible .as-flow__step:nth-child(3) { transition-delay: .30s; }
    .as-flow.is-visible .as-flow__step:nth-child(4) { transition-delay: .45s; }
    .as-flow__step::after {
      content: '';
      position: absolute;
      right: -22px; top: 50%;
      width: 18px; height: 2px;
      background: var(--as-orange-500);
      transform: translateY(-50%) scaleX(0);
      transform-origin: left;
      transition: transform .5s ease-out;
    }
    .as-flow__step::before {
      content: '';
      position: absolute;
      right: -22px; top: 50%;
      width: 18px; height: 12px;
      transform: translate(0, -50%);
      background:
        linear-gradient(135deg, var(--as-orange-500) 50%, transparent 50%) left center / 6px 12px no-repeat,
        linear-gradient(225deg, var(--as-orange-500) 50%, transparent 50%) right center / 6px 12px no-repeat;
      opacity: 0;
      transition: opacity .35s ease-out;
    }
    .as-flow.is-visible .as-flow__step::after { transform: translateY(-50%) scaleX(1); }
    .as-flow.is-visible .as-flow__step::before { opacity: 1; }
    .as-flow.is-visible .as-flow__step:nth-child(1)::after { transition-delay: .15s; }
    .as-flow.is-visible .as-flow__step:nth-child(1)::before { transition-delay: .50s; }
    .as-flow.is-visible .as-flow__step:nth-child(2)::after { transition-delay: .30s; }
    .as-flow.is-visible .as-flow__step:nth-child(2)::before { transition-delay: .65s; }
    .as-flow.is-visible .as-flow__step:nth-child(3)::after { transition-delay: .45s; }
    .as-flow.is-visible .as-flow__step:nth-child(3)::before { transition-delay: .80s; }
    .as-flow__step:last-child::after,
    .as-flow__step:last-child::before { display: none; }
    .as-flow__num {
      width: 36px; height: 36px; border-radius: 50%;
      background: var(--as-orange-500); color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: 15px; font-weight: 800;
    }
    .as-flow__cities {
      font-size: 11px; color: var(--as-orange-500); font-weight: 700;
      letter-spacing: .04em; text-transform: uppercase;
    }
    .as-flow__t { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; }
    .as-flow__d { font-size: 13px; color: var(--as-blue-100); line-height: 1.5; }
    @media (max-width: 880px) {
      .as-flow { grid-template-columns: 1fr 1fr; gap: 14px; }
      .as-flow__step + .as-flow__step { margin-left: 0; }
      .as-flow__step::after,
      .as-flow__step::before { display: none; }
    }
    @media (max-width: 480px) {
      .as-flow { grid-template-columns: 1fr; }
    }
    @media (prefers-reduced-motion: reduce) {
      .as-flow__step { opacity: 1 !important; transform: none !important; transition: none !important; }
      .as-flow__step::after { transform: translateY(-50%) scaleX(1) !important; transition: none !important; }
      .as-flow__step::before { opacity: 1 !important; transition: none !important; }
      .as-flow-header svg { animation: none; }
    }

    /* ── Bento-сетка преимуществ: один акцентный hero + малые карточки.
       Малые: иконка слева, заголовок и описание справа. Hero — orange-градиент.
       Используется в «Преимущества сборного груза». Введено 2026-05-23. ─── */
    .as-bento {
      display: grid;
      grid-template-columns: 1.3fr 1fr 1fr;
      grid-template-rows: auto auto;
      gap: 14px;
    }
    .as-bento__card {
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.10);
      border-radius: var(--r-3);
      padding: 20px 22px;
      display: grid;
      grid-template-columns: 44px 1fr;
      gap: 14px;
      align-items: start;
      transition: background .25s, border-color .25s;
    }
    .as-bento__card:hover {
      background: rgba(255,255,255,.10);
      border-color: rgba(242,106,31,.4);
    }
    .as-bento__icon {
      width: 44px; height: 44px; border-radius: var(--r-2);
      background: rgba(242,106,31,.18);
      display: flex; align-items: center; justify-content: center;
      color: var(--as-orange-500);
      flex-shrink: 0;
    }
    .as-bento__icon svg { width: 22px; height: 22px; }
    .as-bento__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
    .as-bento__t { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; }
    .as-bento__d { font-size: 13px; color: var(--as-blue-100); line-height: 1.5; }
    .as-bento__card--hero {
      grid-column: 1; grid-row: 1 / span 2;
      background: linear-gradient(135deg, var(--as-orange-500) 0%, var(--as-orange-700) 100%);
      color: #fff;
      padding: 28px;
      display: flex; flex-direction: column;
      justify-content: center;
      gap: 18px;
    }
    .as-bento__card--hero:hover {
      background: linear-gradient(135deg, var(--as-orange-600) 0%, var(--as-orange-700) 100%);
      border-color: transparent;
    }
    .as-bento__hero-top {
      display: grid;
      grid-template-columns: 72px 1fr;
      gap: 18px;
      align-items: center;
    }
    .as-bento__card--hero .as-bento__icon {
      width: 72px; height: 72px;
      background: rgba(255,255,255,.18);
      color: #fff;
    }
    .as-bento__card--hero .as-bento__icon svg {
      width: 36px; height: 36px;
    }
    .as-bento__hero-big {
      font-size: 38px; font-weight: 800; line-height: 1.05;
      font-variant-numeric: tabular-nums;
    }
    .as-bento__hero-sub { font-size: 16px; font-weight: 700; }
    .as-bento__hero-d { font-size: 14px; color: rgba(255,255,255,.92); line-height: 1.55; }
    @media (max-width: 880px) {
      .as-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
      }
      .as-bento__card--hero {
        grid-column: 1 / -1;
        grid-row: auto;
        padding: 24px;
      }
      .as-bento__hero-big { font-size: 32px; }
    }
    @media (max-width: 540px) {
      .as-bento { grid-template-columns: 1fr; }
      .as-bento__card--hero { padding: 22px; }
      .as-bento__hero-big { font-size: 30px; }
    }

    /* Bento на light-секциях: малые карточки на белом surface,
       тёмный текст. Hero сохраняет оранжевый по умолчанию. */
    .as-section:not(.as-section--dark) .as-bento__card:not(.as-bento__card--hero) {
      background: var(--t-surface);
      border-color: var(--t-border);
    }
    .as-section:not(.as-section--dark) .as-bento__card:not(.as-bento__card--hero):hover {
      background: var(--t-surface);
      border-color: var(--as-border-300);
      box-shadow: 0 8px 24px rgba(11,61,99,.08);
    }
    .as-section:not(.as-section--dark) .as-bento__t { color: var(--t-text-1); }
    .as-section:not(.as-section--dark) .as-bento__d { color: var(--t-text-2); }
    .as-section:not(.as-section--dark) .as-bento__icon {
      background: var(--as-blue-50);
      color: var(--as-navy-800);
    }

    /* Hero-модификатор navy (альтернатива оранжевому) */
    .as-bento__card--hero-navy {
      background: linear-gradient(135deg, var(--as-navy-800) 0%, var(--as-navy-700) 100%);
    }
    .as-bento__card--hero-navy:hover {
      background: linear-gradient(135deg, var(--as-navy-900) 0%, var(--as-navy-700) 100%);
      border-color: transparent;
    }
    .as-bento__card--hero-navy .as-bento__icon {
      background: rgba(255,255,255,.18); color: #fff;
    }
    .as-bento__card--hero-navy .as-bento__hero-big { color: var(--as-orange-500); }
    .as-bento__card--hero-navy .as-bento__hero-sub { color: #fff; }
    .as-bento__card--hero-navy .as-bento__hero-d { color: var(--as-blue-100); }

    /* ── Stat-карточки: иконка → большое число → заголовок → описание.
       Используется для блоков «сроки» / «факты». Введено 2026-05-24. ─── */
    .as-stat-cards {
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }
    .as-stat-card {
      background: var(--t-surface);
      border: 1px solid var(--t-border);
      border-radius: var(--r-3);
      padding: 28px 26px;
      display: flex; flex-direction: column; gap: 14px;
      position: relative; overflow: hidden;
      transition: box-shadow .25s;
    }
    .as-stat-card:hover { box-shadow: 0 8px 24px rgba(11,61,99,.08); }
    .as-stat-card::before {
      content: '';
      position: absolute;
      top: -30px; right: -30px;
      width: 100px; height: 100px;
      background: radial-gradient(circle, rgba(242,106,31,.10) 0%, transparent 65%);
      pointer-events: none;
    }
    .as-stat-card__top {
      display: grid;
      grid-template-columns: 64px 1fr;
      gap: 18px;
      align-items: center;
    }
    .as-stat-card__icon {
      width: 64px; height: 64px; border-radius: var(--r-3);
      background: var(--as-blue-50);
      display: flex; align-items: center; justify-content: center;
      color: var(--as-navy-800);
      flex-shrink: 0;
    }
    .as-stat-card__icon svg { width: 32px; height: 32px; }
    .as-stat-card__big {
      font-size: 30px; font-weight: 800;
      color: var(--as-orange-500);
      line-height: 1.05; font-variant-numeric: tabular-nums;
    }
    .as-stat-card__t { font-size: 15px; font-weight: 700; color: var(--t-text-1); margin-top: 4px; }
    .as-stat-card__d { font-size: 13px; color: var(--t-text-2); line-height: 1.55; }
    /* Dark-секции: переопределяем фон карточек и цвета */
    .as-section--dark .as-stat-card {
      background: rgba(255,255,255,.06);
      border-color: rgba(255,255,255,.10);
    }
    .as-section--dark .as-stat-card__icon {
      background: rgba(242,106,31,.18);
      color: var(--as-orange-500);
    }
    .as-section--dark .as-stat-card__t { color: #fff; }
    .as-section--dark .as-stat-card__d { color: var(--as-blue-100); }
    @media (max-width: 880px) {
      .as-stat-cards { grid-template-columns: 1fr; }
    }
    /* Анимация fade-up со стаггером для stat-карточек.
       Активируется через IntersectionObserver — см. home.js initStatCardsAnim. */
    .as-stat-cards .as-stat-card {
      opacity: 0;
      transform: translateY(10px);
      transition: opacity .55s ease-out, transform .55s ease-out;
    }
    .as-stat-cards.is-visible .as-stat-card { opacity: 1; transform: none; }
    .as-stat-cards.is-visible .as-stat-card:nth-child(1) { transition-delay: 0s; }
    .as-stat-cards.is-visible .as-stat-card:nth-child(2) { transition-delay: .12s; }
    .as-stat-cards.is-visible .as-stat-card:nth-child(3) { transition-delay: .24s; }
    .as-stat-cards.is-visible .as-stat-card:nth-child(4) { transition-delay: .36s; }
    @media (prefers-reduced-motion: reduce) {
      .as-stat-cards .as-stat-card { opacity: 1 !important; transform: none !important; transition: none !important; }
    }

    /* Schedule-grid fade-up: применяется при наличии .as-schedule-grid--anim
       (только там где этого хотим — не на всех страницах сразу).
       Введено 2026-05-24. */
    .as-schedule-grid--anim .as-schedule-card {
      opacity: 0;
      transform: translateY(10px);
      transition: opacity .55s ease-out, transform .55s ease-out;
    }
    .as-schedule-grid--anim.is-visible .as-schedule-card { opacity: 1; transform: none; }
    .as-schedule-grid--anim.is-visible .as-schedule-card:nth-child(1) { transition-delay: 0s; }
    .as-schedule-grid--anim.is-visible .as-schedule-card:nth-child(2) { transition-delay: .10s; }
    .as-schedule-grid--anim.is-visible .as-schedule-card:nth-child(3) { transition-delay: .20s; }
    .as-schedule-grid--anim.is-visible .as-schedule-card:nth-child(4) { transition-delay: .30s; }
    @media (prefers-reduced-motion: reduce) {
      .as-schedule-grid--anim .as-schedule-card { opacity: 1 !important; transform: none !important; transition: none !important; }
    }

    /* ── Process-flow: 2-колоночный блок «шаги (timeline) + price-карточка»
       Используется в секции «Таможенное оформление». Правый блок растягивается
       по высоте левого. Анимация по IntersectionObserver — см. home.js
       initProcessFlowAnim. Введено 2026-05-23. ─── */
    .as-process-flow {
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 32px;
      align-items: stretch;
    }
    @media (max-width: 880px) {
      .as-process-flow { grid-template-columns: 1fr; }
    }

    /* Timeline (вертикальный): соединительная линия — на каждом шаге кроме
       последнего, чтобы она обрывалась ровно на центре последнего кружка. */
    .as-timeline {
      list-style: none; margin: 0; padding: 0;
    }
    .as-timeline__step {
      display: grid;
      grid-template-columns: 44px 1fr;
      gap: 18px;
      position: relative;
      padding-bottom: 24px;
    }
    .as-timeline__step:last-child { padding-bottom: 0; }
    .as-timeline__step:not(:last-child)::before {
      content: '';
      position: absolute;
      left: 21px;
      top: 22px;
      bottom: -22px;
      width: 2px;
      background: var(--as-border-200);
      transform: scaleY(0);
      transform-origin: top;
      transition: transform .5s ease-out;
    }
    .as-timeline__num {
      width: 44px; height: 44px; border-radius: 50%;
      background: var(--as-orange-500); color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: 18px; font-weight: 800;
      font-variant-numeric: tabular-nums;
      position: relative; z-index: 1;
    }
    .as-timeline__body { padding-top: 4px; }
    .as-timeline__t {
      font-size: 16px; font-weight: 700;
      color: var(--t-text-1);
      margin-bottom: 4px;
    }
    .as-timeline__d {
      font-size: 14px; color: var(--t-text-2);
      line-height: 1.55;
    }

    /* Price card (callout с ценой + список включений с тематическими иконками) */
    .as-price-card {
      background: var(--as-navy-800);
      color: #fff;
      border-radius: var(--r-3);
      padding: 26px 28px;
      display: flex; flex-direction: column;
      gap: 20px; justify-content: space-between;
      box-shadow: 0 8px 24px rgba(11,61,99,.16);
    }
    .as-price-card__main { display: flex; flex-direction: column; gap: 4px; }
    .as-price-card__label {
      font-size: 12px; color: var(--as-blue-100);
      letter-spacing: .05em; text-transform: uppercase;
    }
    .as-price-card__amount {
      font-size: 36px; font-weight: 800;
      font-variant-numeric: tabular-nums;
      line-height: 1.05;
    }
    .as-price-card__sub {
      font-size: 13px; color: var(--as-blue-100);
      margin-top: 6px;
    }
    .as-price-card__incl {
      list-style: none; margin: 0; padding: 0;
      display: flex; flex-direction: column; gap: 14px;
    }
    .as-price-card__incl li {
      display: flex; align-items: center; gap: 14px;
      font-size: 14px; color: var(--as-blue-100);
    }
    .as-price-card__incl-icon {
      width: 38px; height: 38px;
      border-radius: var(--r-2);
      background: rgba(255,255,255,.08);
      display: inline-flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      transition: background .25s ease;
    }
    .as-price-card__incl-icon svg {
      width: 18px; height: 18px;
      color: var(--as-orange-500);
    }
    .as-price-card__incl li:hover .as-price-card__incl-icon {
      background: rgba(255,255,255,.14);
    }

    /* ── Docs-panel: navy-карточка со списком документов.
       Используется вместе с .as-process-flow + .as-timeline (правая колонка).
       Введено 2026-05-24. ─── */
    .as-docs-panel {
      background: var(--as-navy-800);
      color: #fff;
      border-radius: var(--r-3);
      padding: 28px 30px;
      box-shadow: 0 8px 24px rgba(11,61,99,.16);
    }
    .as-docs-panel__h {
      display: flex; align-items: center; gap: 12px;
      font-size: 17px; font-weight: 800; color: #fff;
      margin: 0 0 16px;
    }
    .as-docs-panel__icon {
      width: 36px; height: 36px; border-radius: var(--r-2);
      background: rgba(242,106,31,.22);
      color: var(--as-orange-500);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .as-docs-panel__list {
      list-style: none; padding: 0; margin: 0;
      display: flex; flex-direction: column; gap: 10px;
    }
    .as-docs-panel__list li {
      display: flex; align-items: flex-start; gap: 10px;
      font-size: 14px; color: var(--as-blue-100); line-height: 1.55;
    }
    .as-docs-panel__list li svg {
      flex-shrink: 0; color: var(--as-orange-500); margin-top: 4px;
    }

    /* Animation: timeline шаги, price-card/docs-panel и пункты списков появляются со стаггером */
    .as-process-flow .as-timeline__step,
    .as-process-flow .as-price-card,
    .as-process-flow .as-docs-panel,
    .as-process-flow .as-price-card__incl li,
    .as-process-flow .as-docs-panel__list li {
      opacity: 0;
      transition: opacity .55s ease-out, transform .55s ease-out;
    }
    .as-process-flow .as-timeline__step { transform: translateY(8px); }
    .as-process-flow .as-price-card,
    .as-process-flow .as-docs-panel { transform: translateX(14px); }
    .as-process-flow .as-price-card__incl li,
    .as-process-flow .as-docs-panel__list li { transform: translateX(8px); }
    .as-process-flow.is-visible .as-timeline__step,
    .as-process-flow.is-visible .as-price-card,
    .as-process-flow.is-visible .as-docs-panel,
    .as-process-flow.is-visible .as-price-card__incl li,
    .as-process-flow.is-visible .as-docs-panel__list li {
      opacity: 1; transform: none;
    }
    .as-process-flow.is-visible .as-timeline__step:nth-child(1) { transition-delay: 0s; }
    .as-process-flow.is-visible .as-timeline__step:nth-child(2) { transition-delay: .12s; }
    .as-process-flow.is-visible .as-timeline__step:nth-child(3) { transition-delay: .24s; }
    .as-process-flow.is-visible .as-timeline__step:nth-child(4) { transition-delay: .36s; }
    .as-process-flow.is-visible .as-price-card,
    .as-process-flow.is-visible .as-docs-panel { transition-delay: .2s; }
    .as-process-flow.is-visible .as-price-card__incl li:nth-child(1),
    .as-process-flow.is-visible .as-docs-panel__list li:nth-child(1) { transition-delay: .40s; }
    .as-process-flow.is-visible .as-price-card__incl li:nth-child(2),
    .as-process-flow.is-visible .as-docs-panel__list li:nth-child(2) { transition-delay: .48s; }
    .as-process-flow.is-visible .as-price-card__incl li:nth-child(3),
    .as-process-flow.is-visible .as-docs-panel__list li:nth-child(3) { transition-delay: .56s; }
    .as-process-flow.is-visible .as-price-card__incl li:nth-child(4),
    .as-process-flow.is-visible .as-docs-panel__list li:nth-child(4) { transition-delay: .64s; }
    .as-process-flow.is-visible .as-docs-panel__list li:nth-child(5) { transition-delay: .72s; }
    .as-process-flow.is-visible .as-docs-panel__list li:nth-child(6) { transition-delay: .80s; }
    .as-process-flow.is-visible .as-docs-panel__list li:nth-child(7) { transition-delay: .88s; }
    /* Линия тайм-лайна — растёт сегментами под каждый шаг кроме последнего */
    .as-process-flow.is-visible .as-timeline__step:not(:last-child)::before {
      transform: scaleY(1);
    }
    .as-process-flow.is-visible .as-timeline__step:nth-child(1)::before { transition-delay: .08s; }
    .as-process-flow.is-visible .as-timeline__step:nth-child(2)::before { transition-delay: .20s; }
    .as-process-flow.is-visible .as-timeline__step:nth-child(3)::before { transition-delay: .32s; }
    @media (prefers-reduced-motion: reduce) {
      .as-process-flow .as-timeline__step,
      .as-process-flow .as-price-card,
      .as-process-flow .as-price-card__incl li {
        opacity: 1; transform: none; transition: none;
      }
      .as-process-flow .as-timeline__step:not(:last-child)::before { transform: scaleY(1); transition: none; }
    }
    /* Структура цены */
    .as-price-struct { display: flex; flex-direction: column; gap: 12px; }
    .as-price-struct__item { display: flex; gap: 14px; align-items: flex-start; }
    .as-price-struct__num {
      flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
      background: var(--as-navy-800); color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: 14px; font-weight: 700;
    }
    .as-price-struct__text { font-size: 14px; line-height: 1.5; }
    .as-price-struct__text b { color: var(--t-text-1); }

    /* ── Стек-бар структуры цены: горизонтальная полоса с долями + расшифровка.
       Используется на главной парома (секция «Из чего складывается цена»).
       Анимация при появлении в viewport (см. home.js → initPriceStackAnim):
         класс .is-visible раскрывает сегменты из 0 до целевых долей со
         стаггером, и плавно проявляет строки легенды.
       Введено 2026-05-23. ─── */
    .as-price-stack { width: 100%; }
    .as-price-stack__bar {
      display: flex; height: 56px;
      background: var(--as-surface-3);
      border-radius: var(--r-3);
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(11,61,99,.12);
      margin-bottom: 28px;
    }
    .as-price-stack__seg {
      display: flex; align-items: center; justify-content: center;
      color: #fff; font-size: 13px; font-weight: 700;
      white-space: nowrap; overflow: hidden;
      flex-grow: 0; flex-basis: 0;
      transition: flex-grow 1.1s cubic-bezier(.22,.61,.36,1), filter .2s;
    }
    .as-price-stack__seg:hover { filter: brightness(1.08); }
    .as-price-stack__seg--1 { background: var(--as-navy-800); }
    .as-price-stack__seg--2 { background: var(--as-blue-500); }
    .as-price-stack__seg--3 { background: var(--as-orange-500); }
    .as-price-stack.is-visible .as-price-stack__seg--1 { flex-grow: 60; transition-delay: 0s; }
    .as-price-stack.is-visible .as-price-stack__seg--2 { flex-grow: 25; transition-delay: .25s; }
    .as-price-stack.is-visible .as-price-stack__seg--3 { flex-grow: 15; transition-delay: .5s; }
    .as-price-stack__legend { display: flex; flex-direction: column; gap: 14px; }
    .as-price-stack__row {
      display: grid; grid-template-columns: 24px 1fr;
      gap: 16px; align-items: flex-start;
      opacity: 0; transform: translateY(6px);
      transition: opacity .6s ease-out, transform .6s ease-out;
    }
    .as-price-stack.is-visible .as-price-stack__row { opacity: 1; transform: translateY(0); }
    .as-price-stack.is-visible .as-price-stack__row:nth-child(1) { transition-delay: .25s; }
    .as-price-stack.is-visible .as-price-stack__row:nth-child(2) { transition-delay: .5s; }
    .as-price-stack.is-visible .as-price-stack__row:nth-child(3) { transition-delay: .75s; }
    .as-price-stack__dot {
      width: 14px; height: 14px; border-radius: 50%; margin-top: 6px;
    }
    .as-price-stack__dot--1 { background: var(--as-navy-800); }
    .as-price-stack__dot--2 { background: var(--as-blue-500); }
    .as-price-stack__dot--3 { background: var(--as-orange-500); }
    .as-price-stack__t {
      font-size: 16px; font-weight: 700; color: var(--t-text-1);
      line-height: 1.3; margin-bottom: 4px;
    }
    .as-price-stack__d { font-size: 14px; color: var(--t-text-2); line-height: 1.55; }
    .as-price-stack__note {
      font-size: 12px; color: var(--t-text-3); margin-top: 6px;
      font-style: italic;
    }
    @media (max-width: 760px) {
      .as-price-stack__bar { height: 44px; }
      .as-price-stack__seg { font-size: 11px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .as-price-stack__seg,
      .as-price-stack__row { transition: none; }
      .as-price-stack__seg--1 { flex-grow: 60; }
      .as-price-stack__seg--2 { flex-grow: 25; }
      .as-price-stack__seg--3 { flex-grow: 15; }
      .as-price-stack__row { opacity: 1; transform: none; }
    }
    /* Подуслуги hero-карточки */
    .as-sub-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 16px; }
    .as-sub-card {
      border: 1px solid var(--t-border); border-radius: var(--r-3);
      padding: 20px; background: var(--t-surface);
      display: flex; flex-direction: column; gap: 10px;
    }
    .as-sub-card__icon {
      width: 40px; height: 40px; border-radius: var(--r-2);
      background: var(--as-navy-800); display: flex; align-items: center; justify-content: center;
    }
    .as-sub-card__t { font-weight: 700; font-size: 16px; }
    .as-sub-card__d { font-size: 13px; color: var(--t-text-2); line-height: 1.5; }
    .as-sub-card__price { font-size: 13px; font-variant-numeric: tabular-nums; }

    /* ── Карточка с CTA: иконка+заголовок в одну строку, CTA внизу
       Используется на главных страницах направлений (паром/авиа/переезд)
       для блока «Что перевозим» — введено 2026-05-23. ─── */
    .as-sub-card--cta { padding-bottom: 18px; }
    .as-sub-card--cta .as-sub-card__head {
      display: flex; align-items: center; gap: 14px; margin-bottom: 4px;
    }
    .as-sub-card--cta .as-sub-card__icon {
      width: 48px; height: 48px; flex-shrink: 0;
    }
    .as-sub-card--cta .as-sub-card__icon svg { width: 24px; height: 24px; }
    .as-sub-card--cta .as-sub-card__head .as-sub-card__t {
      font-size: 18px; line-height: 1.2;
    }
    .as-sub-card--cta .as-sub-card__cta {
      margin-top: auto; padding-top: 12px;
    }
    .as-sub-card--cta .as-sub-card__cta .as-btn { width: 100%; }

    /* ── Лента справочников: 3 пилла в ряд, на ховере заливаются navy.
       Используется под блоком «Что перевозим» — введено 2026-05-23. ─── */
    .as-ref-strip {
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 12px; margin-top: 24px;
    }
    .as-ref-pill {
      display: flex; align-items: center; gap: 14px;
      padding: 14px 18px;
      background: var(--t-surface-2);
      border: 1px solid var(--t-border);
      border-radius: var(--r-3);
      color: var(--t-text-1);
      text-decoration: none;
      transition: background .2s, color .2s, border-color .2s;
    }
    .as-ref-pill:hover {
      background: var(--as-navy-800); color: #fff; border-color: var(--as-navy-800);
    }
    .as-ref-pill__icon {
      width: 36px; height: 36px;
      border-radius: var(--r-2);
      background: var(--as-blue-100);
      display: flex; align-items: center; justify-content: center;
      color: var(--as-navy-800);
      flex-shrink: 0;
      transition: background .2s, color .2s;
    }
    .as-ref-pill:hover .as-ref-pill__icon {
      background: rgba(255,255,255,.18); color: #fff;
    }
    .as-ref-pill__body {
      min-width: 0; flex: 1;
      display: flex; flex-direction: column;
    }
    .as-ref-pill__t {
      display: block; font-size: 14px; font-weight: 700; line-height: 1.2;
    }
    .as-ref-pill__d {
      display: block; font-size: 12px;
      color: var(--t-text-2); line-height: 1.3; margin-top: 4px;
    }
    .as-ref-pill:hover .as-ref-pill__d { color: rgba(255,255,255,.75); }
    .as-ref-pill__arrow {
      flex-shrink: 0; color: var(--t-text-3);
      transition: color .2s, transform .2s;
    }
    .as-ref-pill:hover .as-ref-pill__arrow {
      color: var(--as-orange-500); transform: translateX(3px);
    }
    @media (max-width: 760px) {
      .as-ref-strip { grid-template-columns: 1fr; }
    }

/* ===== Doc-block / legal-note / service components (extracted from voennym inline <style>, 2026-05-19) ===== */
    /* ─── Блок документов (юридически значимый) ─── */
    .as-doc-block {
      border: 1px solid var(--t-border); border-radius: var(--r-3);
      background: var(--t-surface);
      overflow: hidden;
    }
    .as-doc-block__head {
      padding: 14px 20px;
      background: var(--as-navy-800); color: #fff;
      font-weight: 700; font-size: 15px;
      display: flex; align-items: center; gap: 10px;
    }
    .as-doc-block__body { padding: 20px; }
    .as-doc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
    .as-doc-list li {
      display: flex; align-items: flex-start; gap: 12px;
      font-size: 14px; line-height: 1.5; padding-bottom: 10px;
      border-bottom: 1px solid var(--t-border);
    }
    .as-doc-list li:last-child { border-bottom: none; padding-bottom: 0; }
    .as-doc-list__num {
      flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
      background: var(--as-orange-500); color: var(--as-navy-900);
      display: flex; align-items: center; justify-content: center;
      font-size: 12px; font-weight: 700; margin-top: 1px;
    }

    /* ─── Цитата-предупреждение ─── */
    .as-legal-note {
      border-left: 4px solid var(--as-orange-500);
      background: rgba(242,106,31,.06);
      border-radius: 0 var(--r-2) var(--r-2) 0;
      padding: 14px 16px; font-size: 13px;
      color: var(--t-text-2); line-height: 1.6;
    }

    /* ─── Что входит в услугу ─── */
    .as-service-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 12px; }
    .as-service-item {
      display: flex; align-items: flex-start; gap: 10px;
      border: 1px solid var(--t-border); border-radius: var(--r-2);
      padding: 12px 14px; background: var(--t-surface);
      font-size: 13px; line-height: 1.5;
    }
    .as-service-item svg { flex-shrink: 0; margin-top: 2px; color: var(--as-orange-500); }

/* =====================================================================
   КОМПОНЕНТ: МЕСТОПОЛОЖЕНИЕ ПАРОМОВ ОНЛАЙН (as-vessel-*)
   Вкладки по судам + карта MarineTraffic (iframe, lazy-load).
   Используется на parom-onlayn.html внутри тёмной секции (as-section--dark).
   Фирменный navy раздела «Паром» (--as-navy-800), акцент orange (--as-orange-500).
   ===================================================================== */
.as-vessel-map { margin-top: 4px; }

/* — Вкладки судов — */
.as-vessel-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.as-vessel-tab {
  appearance: none; cursor: pointer; font: inherit;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.as-vessel-tab:hover { background: rgba(255,255,255,.16); }
.as-vessel-tab.is-active { background: var(--as-orange-500); border-color: var(--as-orange-500); color: #fff; }
.as-vessel-tab--zone { background: rgba(255,255,255,.04); border-style: dashed; }
.as-vessel-tab--zone.is-active { background: var(--as-orange-500); border-style: solid; }
.as-vessel-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* — Контейнер карты — */
.as-vessel-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  min-height: 340px; border-radius: 14px; overflow: hidden;
  background: var(--as-navy-800); border: 1px solid rgba(255,255,255,.14);
}
.as-vessel-frame__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.as-vessel-frame__skeleton {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: rgba(220,234,247,.75); font-size: 13px; font-weight: 600;
  background: var(--as-navy-800);
}
.as-vessel-frame__skeleton[hidden] { display: none; }
.as-vessel-frame__spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.2); border-top-color: var(--as-orange-500);
  animation: as-vessel-spin .8s linear infinite;
}
@keyframes as-vessel-spin { to { transform: rotate(360deg); } }

/* — Подвал: ссылка-фолбэк + дисклеймер — */
.as-vessel-foot { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.as-vessel-foot__link {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  color: #fff; font-size: 13px; font-weight: 700; text-decoration: none;
  padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.22);
}
.as-vessel-foot__link:hover { background: rgba(255,255,255,.1); }
.as-vessel-foot__disc { font-size: 12.5px; line-height: 1.55; color: var(--as-blue-100); margin: 0; max-width: 72ch; }

/* — Мобильная вёрстка: вкладки в горизонтальный скролл, карта повыше — */
@media (max-width: 640px) {
  .as-vessel-tabs {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin: 0 -16px 14px; padding: 0 16px 6px; scrollbar-width: none;
  }
  .as-vessel-tabs::-webkit-scrollbar { display: none; }
  .as-vessel-tab { flex: 0 0 auto; }
  .as-vessel-frame { aspect-ratio: auto; height: 62vh; min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .as-vessel-frame__spinner { animation: none; }
}

/* Фолбэк-оверлей карты судов: показывается, если внешний embed не загрузился
   (X-Frame-Options/блокировка/таймаут). Ссылка «открыть в новой вкладке»
   работает всегда, т.к. не подчиняется политике фрейминга. */
.as-vessel-frame__fallback {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 24px;
  background: var(--as-navy-800); color: var(--as-blue-100);
}
.as-vessel-frame__fallback[hidden] { display: none; }
.as-vessel-frame__fallback p { margin: 0; font-size: 14px; line-height: 1.5; max-width: 38ch; }
.as-vessel-frame__fallback svg { color: rgba(220,234,247,.6); }


/* =====================================================================
   КОМПОНЕНТ: «Табло вылетов» — блок «Тарифы по направлениям» (авиа).
   Самодостаточный, тёмная секция-табло; класс .as-fb-*. CSS здесь (не инлайн),
   чтобы редактор CMS не срезал стиль при правке текста.
   ===================================================================== */
.as-fb-board{
      --as-fb-navy:#06283F;
      --as-fb-navy-2:#0B3D63;
      --as-fb-line:rgba(220,234,247,.10);
      --as-fb-line-2:rgba(220,234,247,.16);
      --as-fb-blue:#3D8FD4;
      --as-fb-blue-2:#1E70B8;
      --as-fb-ink-1:#FFFFFF;
      --as-fb-ink-2:#DCEAF7;
      --as-fb-ink-3:#94A8BD;
      --as-fb-amber:#3D8FD4;
      font-family:var(--font-sans, 'Manrope', system-ui, sans-serif);
      background:
        radial-gradient(1200px 420px at 12% -10%, rgba(61,143,212,.20), transparent 60%),
        radial-gradient(900px 360px at 110% 120%, rgba(30,112,184,.16), transparent 60%),
        linear-gradient(180deg, #06283F 0%, #082F49 55%, #06283F 100%);
      color:var(--as-fb-ink-1);
      padding:64px 24px;
      position:relative;
      isolation:isolate;
      overflow:hidden;
    }
    .as-fb-board::before{
      content:"";
      position:absolute; inset:0;
      background-image:
        linear-gradient(var(--as-fb-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--as-fb-line) 1px, transparent 1px);
      background-size:44px 44px;
      mask-image:radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 85%);
      opacity:.5; z-index:-1; pointer-events:none;
    }
    .as-fb-board *{box-sizing:border-box;}
    .as-fb-wrap{max-width:1080px; margin:0 auto;}

    /* ---------- header ---------- */
    .as-fb-head{
      display:flex; align-items:flex-end; justify-content:space-between;
      gap:24px; flex-wrap:wrap; margin-bottom:22px;
    }
    .as-fb-head__lead{max-width:680px;}
    .as-fb-eyebrow{
      display:inline-flex; align-items:center; gap:8px;
      font-family:var(--font-mono, monospace);
      font-size:11px; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
      color:var(--as-fb-blue); margin-bottom:12px;
    }
    .as-fb-dot{
      width:8px; height:8px; border-radius:50%;
      background:var(--as-fb-blue);
      box-shadow:0 0 0 0 rgba(61,143,212,.6);
      animation:as-fb-pulse 2.2s var(--ease-out, ease-out) infinite;
    }
    @keyframes as-fb-pulse{
      0%{box-shadow:0 0 0 0 rgba(61,143,212,.55);}
      70%{box-shadow:0 0 0 9px rgba(61,143,212,0);}
      100%{box-shadow:0 0 0 0 rgba(61,143,212,0);}
    }
    .as-fb-title{
      margin:0; font-size:clamp(26px,4vw,40px); line-height:1.06;
      font-weight:800; letter-spacing:-.02em; color:#fff;
    }
    .as-fb-sub{
      margin:10px 0 0; font-size:15px; line-height:1.55; color:var(--as-fb-ink-2); max-width:600px;
    }
    .as-fb-sub b{color:#fff; font-weight:700;}
    .as-fb-clock{
      display:flex; flex-direction:column; align-items:flex-end; gap:4px;
      padding:10px 14px; border:1px solid var(--as-fb-line-2); border-radius:10px;
      background:rgba(255,255,255,.03);
    }
    .as-fb-clock__lbl{
      font-family:var(--font-mono, monospace); font-size:10px; letter-spacing:.14em;
      text-transform:uppercase; color:var(--as-fb-ink-3);
    }
    .as-fb-clock__time{
      font-family:var(--font-mono, monospace); font-size:18px; font-weight:700;
      color:var(--as-fb-blue); letter-spacing:.04em;
    }

    /* ---------- board panel ---------- */
    .as-fb-panel{
      border:1px solid var(--as-fb-line-2); border-radius:16px;
      background:linear-gradient(180deg, rgba(11,61,99,.55), rgba(6,40,63,.65));
      box-shadow:0 24px 60px -28px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.05);
      overflow:hidden;
    }

    .as-fb-row{
      display:grid;
      grid-template-columns:128px minmax(190px,1fr) 132px minmax(220px,1.15fr) 110px;
      align-items:center; gap:18px;
      padding:16px 22px;
      border-top:1px solid var(--as-fb-line);
      position:relative;
      transition:background var(--dur-2,.15s) ease;
    }
    .as-fb-row:first-child{border-top:0;}
    .as-fb-row:not(.as-fb-row--th):hover{background:rgba(61,143,212,.07);}

    .as-fb-row--th{
      padding-top:13px; padding-bottom:13px;
      background:rgba(0,0,0,.22);
    }
    .as-fb-th{
      font-family:var(--font-mono, monospace);
      font-size:10px; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
      color:var(--as-fb-ink-3);
    }
    .as-fb-th--from,.as-fb-th--status{text-align:left;}

    /* ---- IATA code (split-flap) ---- */
    .as-fb-code{display:inline-flex; gap:4px;}
    .as-fb-flap{
      width:34px; height:42px;
      display:flex; align-items:center; justify-content:center;
      font-family:var(--font-mono, monospace);
      font-size:22px; font-weight:700; color:#fff;
      background:linear-gradient(180deg,#0a3556 0%,#072c47 50%,#0a3556 100%);
      border:1px solid rgba(61,143,212,.28);
      border-radius:6px;
      position:relative;
      box-shadow:inset 0 -1px 0 rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
      text-shadow:0 1px 1px rgba(0,0,0,.5);
    }
    .as-fb-flap::after{
      content:""; position:absolute; left:4px; right:4px; top:50%;
      height:1px; background:rgba(0,0,0,.5);
      box-shadow:0 1px 0 rgba(255,255,255,.05);
    }
    .as-fb-flap--dim{
      width:26px; height:34px; font-size:16px;
      color:var(--as-fb-ink-2);
      border-color:rgba(220,234,247,.18);
      background:linear-gradient(180deg,#0c3a5d,#082f49);
    }

    /* ---- route ---- */
    .as-fb-route{display:flex; flex-direction:column; gap:4px; min-width:0;}
    .as-fb-route__line{display:flex; align-items:center; gap:9px;}
    .as-fb-route__org,.as-fb-route__dst{
      font-family:var(--font-mono, monospace);
      font-size:13px; font-weight:700; letter-spacing:.06em; color:var(--as-fb-ink-2);
    }
    .as-fb-route__dst{color:var(--as-fb-blue);}
    .as-fb-route__dst--rus{color:var(--as-fb-ink-2);}
    .as-fb-route__plane{width:42px; height:14px; color:var(--as-fb-blue); flex:0 0 auto;}
    .as-fb-route__plane line{stroke:currentColor; stroke-width:1.4; stroke-dasharray:3 3; opacity:.6;}
    .as-fb-route__name{
      font-size:15px; font-weight:600; color:#fff; line-height:1.25;
      overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    }

    /* ---- from price ---- */
    .as-fb-from{display:flex; align-items:baseline; gap:5px; flex-wrap:wrap;}
    .as-fb-from__pre{font-size:12px; color:var(--as-fb-ink-3);}
    .as-fb-from__val{
      font-family:var(--font-mono, monospace);
      font-size:30px; font-weight:700; line-height:1; color:#fff;
      letter-spacing:-.01em;
    }
    .as-fb-from__unit{font-family:var(--font-mono, monospace); font-size:11px; color:var(--as-fb-ink-3); letter-spacing:.04em;}
    .as-fb-from--ind{align-items:center;}
    .as-fb-from__ind{
      font-size:13px; font-weight:600; color:var(--as-fb-blue); line-height:1.3;
    }

    /* ---- weight grid ---- */
    .as-fb-grid{
      display:flex; align-items:stretch; gap:6px; flex-wrap:wrap;
      position:relative; padding-bottom:2px;
    }
    .as-fb-seg{
      flex:1 1 0; min-width:62px;
      display:flex; flex-direction:column; gap:3px;
      padding:7px 9px;
      border:1px solid var(--as-fb-line-2); border-radius:8px;
      background:rgba(255,255,255,.03);
    }
    .as-fb-seg__w{
      font-family:var(--font-mono, monospace);
      font-size:9.5px; letter-spacing:.04em; color:var(--as-fb-ink-3); white-space:nowrap;
    }
    .as-fb-seg__p{
      font-family:var(--font-mono, monospace);
      font-size:17px; font-weight:700; color:#fff; line-height:1;
    }
    .as-fb-seg__p::after{content:" ₽"; font-size:10px; font-weight:500; color:var(--as-fb-ink-3);}
    .as-fb-seg--best{border-color:rgba(220,234,247,.20);}
    .as-fb-seg--min{
      border-color:var(--as-fb-blue);
      background:linear-gradient(180deg, rgba(61,143,212,.20), rgba(30,112,184,.14));
      position:relative;
      animation:as-fb-flick 4.5s steps(1,end) infinite;
    }
    .as-fb-seg--min .as-fb-seg__p{color:#fff;}
    .as-fb-seg--min .as-fb-seg__w{color:var(--as-fb-blue);}
    .as-fb-seg--min::before{
      content:"мин."; position:absolute; top:-8px; right:7px;
      font-family:var(--font-mono, monospace); font-size:8px; letter-spacing:.1em;
      text-transform:uppercase; font-weight:700; color:#06283F;
      background:var(--as-fb-blue); padding:1px 5px; border-radius:4px;
    }
    @keyframes as-fb-flick{
      0%,96%,100%{box-shadow:0 0 0 0 rgba(61,143,212,0);}
      97%{box-shadow:0 0 14px 1px rgba(61,143,212,.55);}
      98%{box-shadow:0 0 0 0 rgba(61,143,212,0);}
      99%{box-shadow:0 0 14px 1px rgba(61,143,212,.45);}
    }
    .as-fb-drop{
      flex:0 0 100%;
      font-family:var(--font-mono, monospace);
      font-size:10px; letter-spacing:.04em; color:var(--as-fb-blue);
      margin-top:2px;
    }
    .as-fb-seg--req{
      flex:1 1 100%;
      border-style:dashed; border-color:var(--as-fb-line-2);
      background:rgba(255,255,255,.02);
      justify-content:center;
    }
    .as-fb-seg__reqtxt{font-family:var(--font-sans); font-size:12.5px; color:var(--as-fb-ink-2); line-height:1.4;}

    /* ---- status ---- */
    .as-fb-status{display:flex;}
    .as-fb-status__t{
      font-family:var(--font-mono, monospace);
      font-size:10.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
      padding:5px 9px; border-radius:6px; white-space:nowrap;
    }
    .as-fb-status__t--ok{
      color:#7FE0AE; background:rgba(23,125,77,.18); border:1px solid rgba(23,125,77,.4);
    }
    .as-fb-status__t--req{
      color:var(--as-fb-blue); background:rgba(61,143,212,.14); border:1px solid rgba(61,143,212,.4);
    }

    .as-fb-row--other{
      background:repeating-linear-gradient(135deg, rgba(255,255,255,.012) 0 10px, transparent 10px 20px);
    }
    .as-fb-row--other::before{
      content:""; position:absolute; left:0; top:0; bottom:0; width:3px;
      background:linear-gradient(180deg,var(--as-fb-blue),var(--as-fb-blue-2));
    }

    /* ---------- footer ---------- */
    .as-fb-foot{
      display:grid; grid-template-columns:1.55fr 1fr; gap:18px; margin-top:18px;
    }
    .as-fb-incl,.as-fb-facts{
      border:1px solid var(--as-fb-line-2); border-radius:14px;
      background:rgba(255,255,255,.025); padding:18px 20px;
    }
    .as-fb-incl__lbl{
      display:block; font-family:var(--font-mono, monospace);
      font-size:10px; letter-spacing:.14em; text-transform:uppercase;
      color:var(--as-fb-ink-3); margin-bottom:12px;
    }
    .as-fb-incl__list{
      list-style:none; margin:0; padding:0;
      display:flex; flex-wrap:wrap; gap:7px;
    }
    .as-fb-incl__list li{
      font-family:var(--font-mono, monospace);
      font-size:11.5px; font-weight:500; letter-spacing:.02em; color:var(--as-fb-ink-2);
      padding:5px 10px;
      border:1px solid var(--as-fb-line-2); border-radius:6px;
      background:linear-gradient(180deg, rgba(11,61,99,.5), rgba(6,40,63,.55));
      box-shadow:inset 0 -1px 0 rgba(0,0,0,.3);
    }
    .as-fb-incl__note{margin:12px 0 0; font-size:12px; color:var(--as-fb-ink-3);}

    .as-fb-facts{display:flex; flex-direction:column; gap:0;}
    .as-fb-fact{
      display:flex; align-items:baseline; justify-content:space-between; gap:12px;
      padding:10px 0; border-top:1px solid var(--as-fb-line);
    }
    .as-fb-fact:first-child{border-top:0; padding-top:2px;}
    .as-fb-fact:last-child{padding-bottom:2px;}
    .as-fb-fact__v{
      font-family:var(--font-mono, monospace);
      font-size:19px; font-weight:700; color:#fff; letter-spacing:-.01em; flex:0 0 auto;
    }
    .as-fb-fact__k{font-size:12px; color:var(--as-fb-ink-3); text-align:right; line-height:1.3;}

    .as-fb-disc{
      margin:16px 0 0; font-size:11.5px; line-height:1.5; color:var(--as-fb-ink-3);
      max-width:760px;
    }

    /* ---------- responsive ---------- */
    @media (max-width:880px){
      .as-fb-row{
        grid-template-columns:96px 1fr;
        grid-template-areas:
          "code route"
          "code from"
          "grid grid"
          "status status";
        gap:10px 16px; padding:18px;
      }
      .as-fb-row--th{display:none;}
      .as-fb-code{grid-area:code; align-self:start;}
      .as-fb-route{grid-area:route;}
      .as-fb-from{grid-area:from;}
      .as-fb-grid{grid-area:grid; margin-top:4px;}
      .as-fb-status{grid-area:status;}
      .as-fb-from__val{font-size:26px;}
      .as-fb-foot{grid-template-columns:1fr;}
    }
    @media (max-width:640px){
      .as-fb-board{padding:48px 16px;}
      .as-fb-head{gap:16px;}
      .as-fb-clock{align-items:flex-start;}
      .as-fb-row{grid-template-columns:84px 1fr; padding:16px;}
      .as-fb-flap{width:26px; height:34px; font-size:17px;}
      .as-fb-flap--dim{width:20px; height:28px; font-size:13px;}
      .as-fb-route__name{white-space:normal;}
      .as-fb-seg{min-width:0; flex:1 1 30%; padding:6px 7px;}
      .as-fb-seg__w{font-size:9px;}
      .as-fb-seg__p{font-size:15px;}
      .as-fb-fact{flex-wrap:wrap; gap:2px;}
      .as-fb-fact__k{text-align:left;}
    }

    /* ---------- a11y: motion ---------- */
    @media (prefers-reduced-motion:reduce){
      .as-fb-dot{animation:none;}
      .as-fb-seg--min{animation:none; box-shadow:0 0 0 1px rgba(61,143,212,.4);}
    }
    .as-fb-board a:focus-visible,
    .as-fb-board [tabindex]:focus-visible{
      outline:2px solid var(--as-orange-500, #F26A1F); outline-offset:2px; border-radius:6px;
    }
