/* АВТОСПЕКТР hero v7 — из claude.ai/design, очищено: без html/body/.page/.topbar/.tweaks (сайт даёт свой каркас и токены) */
/* ==========================================================================
   АВТОСПЕКТР — Hero v7 styles
   Hero is a rounded PANEL inside a 1240px page container.
   ========================================================================== */


/* ----- HERO PANEL ------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-4, 16px);
  min-height: 420px;
  /* фон hero — чуть голубее фона страницы (тонкий оттенок, без рамки и тени) */
  background: var(--t-surface);
  box-shadow: none;
  display: flex;
  flex-direction: column;
}


/* Inner: 2 columns (text left + map right). No visual divider between them. */
.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: stretch;
  padding: 52px 0 0 48px;
}


/* ----- LEFT COLUMN: text content ---------------------------------------- */

.hero__content {
  position: relative;
  z-index: 5;
  max-width: 520px;
  padding-right: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: center;
}


/* ----- RIGHT COLUMN: map — sits ABOVE the text where they overlap ------ */

.hero__map-col {
  position: relative;
  /* No overflow clip — let the map's left edge bleed over the text column
     so Калининград + Усть-Луга labels are never cut. Panel-level overflow
     still clips against the rounded corners. */
  overflow: visible;
  align-self: stretch;
  z-index: 10;
}

.hero__map {
  position: absolute;
  top: 0; bottom: 0;
  /* meet + полная ширина колонки: вся карта России помещается целиком,
     ничего не обрезается панелью. Лёгкий заход влево — хаб ближе к тексту. */
  /* исходная компоновка дизайна: крупная карта, фокус на западе/хабе,
     восток уходит за край («карта продолжается»). Дальние статик-подписи
     убраны из map-data → на крае нет обрезанных названий. */
  left: -120px;
  right: 0;
  pointer-events: none;
  transform: scale(1.18) translate(-12px, -22px);
  transform-origin: top left;
}


/* Veil removed — no visual divider between text and map columns. */
.hero__veil { display: none; }


/* ----- FOOTROW: full-width strip under both columns -------------------- */

.hero__footrow {
  position: relative;
  z-index: 5;
  margin: 0;
  padding: 12px 40px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  font: 500 12px/1.3 var(--font-sans);
  color: rgba(220,234,247,.78);
}

.hero__footrow-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hero__footrow-item b {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hero__footrow-item .lg {
  flex: 0 0 auto;
}

.lg {
  width: 9px; height: 9px; border-radius: 50%;
  display: inline-block;
}

.lg--parom    { background: #5FB9F0; box-shadow: 0 0 6px #5FB9F0; }

.lg--avia     { background: #FFFFFF; box-shadow: 0 0 6px rgba(255,255,255,.7); }

.lg--pereezd  { background: #F26A1F; box-shadow: 0 0 6px #F26A1F; }


.hero__eyebrow {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 11px/1 var(--font-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #F2A046;
  padding: 7px 14px;
  border: 1px solid rgba(242,160,70,.32);
  border-radius: 999px;
  background: rgba(242,106,31,.08);
}

.hero__eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #F26A1F;
  box-shadow: 0 0 8px #F26A1F;
}


.hero__h1 {
  margin: 4px 0 0;
  font: 800 clamp(32px, 3.6vw, 48px)/1.06 var(--font-sans);
  letter-spacing: -.025em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(5,8,15,.7);
}

.hero__h1 em {
  font-style: normal;
  background: linear-gradient(95deg, #5FB9F0 0%, #FFFFFF 50%, #F2A046 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   HERO MAIN — унифицированная структура .as-hero с live-панелью компаса
   ========================================================================== */
.as-hero--main { background: var(--as-navy-800); }
.as-hero--main .as-hero__bg {
  background:
    radial-gradient(circle at 22% 30%, rgba(30,112,184,.22) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(242,106,31,.10) 0%, transparent 60%);
}

/* Live-panel с компасом — без фона и border, чтобы анимация лежала прямо на hero */
.as-hero__live-panel--compass {
  display: flex; flex-direction: column; gap: 12px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  backdrop-filter: none !important;
}
.cmp-wrap {
  position: relative;
  width: 100%; max-width: 460px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}
.cmp-svg {
  width: 100%; height: 100%;
  animation: cmp-spin 90s linear infinite;
}

/* Кнопки CTA опущены чуть ниже относительно ротатора */
.as-hero--main .as-hero__cta--mt { margin-top: 24px; }

/* Trust-полоса, распределённая на всю ширину hero под grid */
.as-hero__trust--wide {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 12px 24px;
  padding: 18px 0 4px;
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  font: 500 13px/1.4 var(--font-sans);
  color: rgba(220,234,247,.78);
}
.as-hero__trust--wide > span { display: inline-flex; align-items: baseline; gap: 6px; }
.as-hero__trust--wide b { color: #fff; font-weight: 700; }
.as-hero__trust--wide i { font-style: normal; color: rgba(220,234,247,.6); }
.as-hero__trust--wide i::before { content: "·\00a0"; opacity: .5; padding-right: 4px; }

/* Mobile: 2×2 сетка ровных плиток */
@media (max-width: 560px) {
  .as-hero__trust--wide {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px 14px 4px;
    margin-top: 18px;
    border-top: 1px solid rgba(255,255,255,.10);
  }
  .as-hero__trust--wide > span {
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    line-height: 1.25;
    align-items: stretch;
  }
  .as-hero__trust--wide b {
    font-size: 12px; font-weight: 800; color: #fff;
  }
  .as-hero__trust--wide i {
    font-size: 11px; font-weight: 400; color: rgba(220,234,247,.65);
  }
  .as-hero__trust--wide i::before { content: ""; padding: 0; }
}

/* ----- Кинетическая типографика ----- */
.hero__h1--kinetic { display: flex; flex-direction: column; gap: 4px; }
.hero__row { display: block; overflow: hidden; line-height: 1.06; }
.hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%);
  animation: hero-rise .7s cubic-bezier(.2,.7,.2,1) forwards;
  will-change: transform, opacity;
}
.hero__row--1 .hero__word { animation-delay: .15s; }
.hero__row--2 .hero__word { animation-delay: .55s; }
.hero__row--3 .hero__word { animation-delay: 1.05s; }
@keyframes hero-rise { to { opacity: 1; transform: translateY(0); } }

/* 3 цветных слова под H1 */
.hero__rotator {
  margin-top: 6px;
  display: flex; flex-wrap: wrap; gap: 14px;
  font: 800 26px/1 var(--font-sans); letter-spacing: -.01em;
}
.hero__rotator-w {
  opacity: 0;
  transform: translateY(40%) scale(.96);
  animation: hero-word-pop .6s cubic-bezier(.2,.7,.2,1) forwards;
  text-shadow: 0 2px 18px rgba(5,8,15,.6);
  will-change: transform, opacity;
}
.hero__rotator-w--sea  { color: #5FB9F0; animation-delay: 1.55s; }
.hero__rotator-w--air  { color: #FFFFFF; animation-delay: 1.85s; }
.hero__rotator-w--road { color: #F26A1F; animation-delay: 2.15s; }
@keyframes hero-word-pop { to { opacity: 1; transform: translateY(0) scale(1); } }

/* CTA-кнопки появляются после слов */
.hero--centered .hero__actions {
  opacity: 0;
  animation: hero-fade .55s ease-out forwards;
  animation-delay: 2.6s;
}
@keyframes hero-fade { to { opacity: 1; } }

/* Уважаем prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero__word, .hero__rotator-w, .hero--centered .hero__actions {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
}
@keyframes cmp-spin { to { transform: rotate(360deg); } }

/* Компоненты компаса */
.cmp-ring { fill: none; stroke: rgba(220,234,247,.15); stroke-width: 1.2; }
.cmp-ring--dash { stroke: rgba(220,234,247,.10); stroke-dasharray: 2 6; }
.cmp-tick { stroke: rgba(220,234,247,.22); stroke-width: 1; }
.cmp-tick--major { stroke: rgba(255,255,255,.55); stroke-width: 1.6; }
.cmp-label { fill: rgba(220,234,247,.55); font: 700 13px/1 var(--font-sans); letter-spacing: .18em; }

.cmp-ray { fill: none; stroke-width: 1.5; stroke-dasharray: 3 7; opacity: .6; }
.cmp-ray--moskva { stroke: #FFFFFF; }
.cmp-ray--minsk  { stroke: var(--as-orange-500, #F26A1F); }
.cmp-ray--spb    { stroke: #5FB9F0; }

.cmp-city { font: 700 11px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; }
.cmp-city--moskva { fill: rgba(255,255,255,.85); }
.cmp-city--minsk  { fill: rgba(242,160,70,.95); }
.cmp-city--spb    { fill: rgba(95,185,240,.95); }

/* Частицы, бегущие по лучам */
.cmp-particle {
  offset-rotate: auto;
  filter: drop-shadow(0 0 8px currentColor);
  animation: cmp-fly 5s linear infinite;
}
.cmp-particle--moskva { offset-path: path("M 200 200 L 370 80");  color: #FFFFFF; }
.cmp-particle--minsk  { offset-path: path("M 200 200 L 340 340"); color: #F26A1F; animation-delay: -1.6s; }
.cmp-particle--spb    { offset-path: path("M 200 200 L 60 100");  color: #5FB9F0; animation-delay: -3.2s; }
@keyframes cmp-fly {
  0%   { offset-distance: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* Контр-вращение стрелки и хаба, чтобы не крутились вместе с кольцом */
.cmp-needle, .cmp-hub {
  transform-origin: 200px 200px;
  animation: cmp-counter-spin 90s linear infinite;
}
@keyframes cmp-counter-spin { to { transform: rotate(-360deg); } }
.cmp-needle { animation: cmp-counter-spin 90s linear infinite, cmp-needle-wobble 7s ease-in-out infinite; }
@keyframes cmp-needle-wobble {
  0%, 100% { transform: rotate(-360deg) rotate(-8deg); }
  50%      { transform: rotate(-360deg) rotate(8deg); }
}
/* Хаб-точка пульсирует */
.cmp-hub { transform: translate(200px, 200px) rotate(0); }
.cmp-hub > circle:nth-child(1) {
  animation: cmp-pulse 2.6s ease-out infinite;
  transform-origin: 0 0;
}
.cmp-hub > circle:nth-child(2) {
  animation: cmp-pulse 2.6s ease-out infinite;
  animation-delay: 1.3s;
  transform-origin: 0 0;
}
@keyframes cmp-pulse {
  0%   { transform: scale(0.6); opacity: .9; }
  100% { transform: scale(2.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cmp-svg, .cmp-needle, .cmp-hub, .cmp-hub > circle, .cmp-particle {
    animation: none !important;
  }
}


.hero__sub {
  margin: 0;
  max-width: 560px;
  font: 400 17px/1.5 var(--font-sans);
  color: rgba(220,234,247,.82);
}

.hero__sub b { color: #fff; font-weight: 600; }


/* ----- BUTTONS ---------------------------------------------------------- */

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 6px;
}

.hero__btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  font: 700 15px/1 var(--font-sans);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}

.hero__btn--primary {
  background: linear-gradient(180deg, #F26A1F 0%, #E55D17 100%);
  color: #fff;
  box-shadow:
    0 8px 24px rgba(242,106,31,.38),
    0 1px 0 rgba(255,255,255,.18) inset,
    0 -1px 0 rgba(0,0,0,.2) inset;
}

.hero__btn--primary:hover { box-shadow: 0 10px 28px rgba(242,106,31,.55), 0 1px 0 rgba(255,255,255,.2) inset; }

.hero__btn--primary:active { transform: translateY(1px); }

.hero__btn--ghost {
  background: rgba(255,255,255,.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
}

.hero__btn--ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }


/* ----- TRUST LINE ------------------------------------------------------- */

.hero__trust {
  margin-top: 4px;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 16px;
  font: 500 13px/1.4 var(--font-sans);
  color: rgba(220,234,247,.68);
}

.hero__trust b {
  color: #fff; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hero__trust-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,.25);
}


/* ----- THE MAP LAYERS --------------------------------------------------- */

/* Russia silhouette */
.russia--glow {
  fill: none;
  stroke: #F2761F;
  stroke-width: 6;
  opacity: 0.55;
  filter: blur(10px);
}

.russia--fill {
  fill: #0b1d2e;
  stroke: none;
}

.russia--stroke {
  fill: none;
  stroke: rgba(255,180,100,.78);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.exclave--glow   { fill: none; stroke: #FFC07A; stroke-width: 3; filter: blur(6px); opacity: .7; }

.exclave--fill   { fill: #102232; }

.exclave--stroke { fill: none; stroke: rgba(255,200,140,.85); stroke-width: 1.1; }


.vein {
  fill: none;
  stroke: rgba(255,176,90,.13);
  stroke-width: 1;
}


/* Static eastern lights (empty in v7 but kept for future) */
.static-city { fill: #FFC388; opacity: .55; }

.static-city--ring { fill: none; stroke: rgba(255,176,90,.22); stroke-width: .8; }

.static-label {
  fill: rgba(255,217,179,.42);
  font: 600 10px var(--font-sans);
  paint-order: stroke;
  stroke: rgba(8,18,30,.85);
  stroke-width: 2.5;
}


/* Routes — dashed flowing pipes */
/* Transport is hidden per earlier request; routes + sparks visible. */
#lyr-transport { display: none; }


.route {
  fill: none;
  stroke-width: 1.9;
  stroke-dasharray: 2 8;
  opacity: .85;
  stroke-linecap: round;
  animation: dash-flow 5s linear infinite;
}

.route--parom   { stroke: #5FB9F0; }
                /* голубой — море */
.route--avia    { stroke: #FFFFFF; opacity: .95; }
  /* белый  — воздух */
.route--pereezd { stroke: #F26A1F; }
                /* оранжевый — земля */

@keyframes dash-flow { to { stroke-dashoffset: -200; } }


/* Sparks */
.spark {
  fill: #fff;
  opacity: 0;
  offset-rotate: 0deg;
  animation: spark-flow 6.5s linear infinite;
  will-change: offset-distance, opacity;
}

.spark--parom   { fill: #B5DDF6; }

.spark--avia    { fill: #FFFFFF; }

.spark--pereezd { fill: #FFB87A; }

@keyframes spark-flow {
  0%   { offset-distance: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}


/* Transports */
.transport {
  offset-rotate: auto;
  animation: transport-flow 16s linear infinite;
  will-change: offset-distance, opacity;
  opacity: 0;
}

.transport--rev {
  animation-direction: reverse;
  offset-rotate: auto 180deg;
}

.transport--ferry .icon { color: #8FCEEF; }

.transport--plane .icon { color: #FFFFFF; }

.transport--truck .icon { color: #F7A661; }

.transport .icon {
  display: block;
  filter: drop-shadow(0 0 6px currentColor);
}

@keyframes transport-flow {
  0%   { offset-distance: 0%;   opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}


/* City pulse + dot + label */
.city__dot {
  fill: #F26A1F;
  filter: drop-shadow(0 0 4px rgba(242,106,31,.7));
}

.city__ring {
  fill: none;
  stroke: #F26A1F;
  stroke-width: 1.4;
  opacity: 0;
  animation: pulse-ring 2.6s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes pulse-ring {
  0%   { r: 4;  opacity: .6; }
  100% { r: 22; opacity: 0; }
}

.city__label {
  fill: #FFD9B3;
  font: 700 12px var(--font-sans);
  paint-order: stroke;
  stroke: rgba(6,16,28,.95);
  stroke-width: 4;
  stroke-linejoin: round;
}

.city--far .city__label {
  fill: rgba(255,217,179,.7);
  font-size: 10.5px;
  font-weight: 600;
  stroke-width: 3;
}

.city--far .city__dot { r: 3; filter: drop-shadow(0 0 3px rgba(242,106,31,.55)); }

.city--far .city__ring { stroke-width: 1.1; }


/* HUB — Kaliningrad */
.hub__dot { fill: #FFC07A; filter: drop-shadow(0 0 10px rgba(255,180,90,.9)); }

.hub__ring, .hub__ring-2 {
  fill: none;
  stroke: #FFC07A;
  stroke-width: 1.6;
  opacity: 0;
  animation: hub-pulse 3s ease-out infinite;
}

.hub__ring-2 { animation-delay: 1.4s; }

@keyframes hub-pulse {
  0%   { r: 6;  opacity: .8; }
  100% { r: 42; opacity: 0; }
}

.hub__label {
  fill: #FFE5C5;
  font: 800 14px var(--font-sans);
  letter-spacing: .02em;
  paint-order: stroke;
  stroke: rgba(6,16,28,.95);
  stroke-width: 4;
}

.hub__sub {
  fill: rgba(255,217,179,.6);
  font: 600 10px var(--font-sans);
  paint-order: stroke;
  stroke: rgba(6,16,28,.9);
  stroke-width: 3;
  letter-spacing: .12em;
  text-transform: uppercase;
}


/* ----- TWEAK-CONTROLLED STATES ------------------------------------------ */

html { --anim-speed: 1; --map-glow: 1; }


.route       { animation-duration: calc(8s / var(--anim-speed)); }

.spark       { animation-duration: calc(6.5s / var(--anim-speed)); }

.city__ring  { animation-duration: calc(2.6s / var(--anim-speed)); }

.hub__ring,
.hub__ring-2 { animation-duration: calc(3s / var(--anim-speed)); }

.transport   { animation-duration: calc(var(--t-dur, 16s) / var(--anim-speed)); }


.russia--glow { opacity: calc(0.55 * var(--map-glow)); }

.exclave--glow { opacity: calc(0.7 * var(--map-glow)); }

.city__dot { filter: drop-shadow(0 0 calc(4px * var(--map-glow)) rgba(242,106,31,.7)); }

.hub__dot { filter: drop-shadow(0 0 calc(10px * var(--map-glow)) rgba(255,180,90,.9)); }


html.no-labels .city__label,
html.no-labels .static-label,
html.no-labels .hub__label,
html.no-labels .hub__sub { display: none; }

html.no-transport #lyr-transport { display: none; }

html.no-static #lyr-static { display: none; }


html.paused .route,
html.paused .spark,
html.paused .transport,
html.paused .city__ring,
html.paused .hub__ring,
html.paused .hub__ring-2 { animation-play-state: paused !important; }


html[data-dash="tight"]  .route { stroke-dasharray: 2 5; }

html[data-dash="normal"] .route { stroke-dasharray: 2 8; }

html[data-dash="loose"]  .route { stroke-dasharray: 2 14; }


/* ----- LIGHT THEME ------------------------------------------------------ */

html[data-theme="light"] body { background: #F5F7FA; color: #0F1A24; }


/* Hero panel — flip to a clean light surface */
html[data-theme="light"] .hero {
  /* светлая тема: едва голубой оттенок над белым фоном страницы */
  background: var(--as-blue-50);
  box-shadow: none;
}

/* Hero главной (.as-hero--main) light-theme — тёмный H1 акцент адаптируется */
html[data-theme="light"] .as-hero--main .hero__h1--kinetic em {
  background: linear-gradient(95deg, #5FB9F0 0%, #FFFFFF 50%, #F2A046 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

html[data-theme="light"] .hero__eyebrow {
  background: #FFF3EA;
  border-color: #FDE3D2;
  color: #C8520F;
}

html[data-theme="light"] .hero__h1 {
  color: #0F1A24;
  text-shadow: none;
}

html[data-theme="light"] .hero__h1 em {
  background: linear-gradient(95deg, #1E70B8 0%, #0B3D63 45%, #F26A1F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .hero__sub { color: var(--as-ink-600); }

html[data-theme="light"] .hero__sub b { color: #0F1A24; }

html[data-theme="light"] .hero__btn--ghost {
  background: #fff;
  color: #0F1A24;
  border-color: var(--as-border-200);
}

html[data-theme="light"] .hero__btn--ghost:hover {
  background: var(--as-surface-1);
  border-color: var(--as-border-300);
}

html[data-theme="light"] .hero__footrow {
  border-top-color: var(--as-border-200);
  color: var(--as-ink-600);
}

html[data-theme="light"] .hero__footrow-item b { color: #0F1A24; }


/* Map layers — recolor for a light backdrop */
html[data-theme="light"] .russia--glow {
  stroke: #F26A1F;
  opacity: calc(0.18 * var(--map-glow));
  filter: blur(12px);
}

html[data-theme="light"] .russia--fill   { fill: #FFFFFF; }

html[data-theme="light"] .russia--stroke {
  stroke: rgba(11,61,99,.45);
  stroke-width: 1.1;
}

html[data-theme="light"] .exclave--glow   { stroke: #F26A1F; opacity: .35; }

html[data-theme="light"] .exclave--fill   { fill: var(--as-surface-1); }

html[data-theme="light"] .exclave--stroke { stroke: rgba(11,61,99,.55); }

html[data-theme="light"] .vein            { stroke: rgba(11,61,99,.08); }


html[data-theme="light"] .static-city       { fill: #F26A1F; opacity: .55; }

html[data-theme="light"] .static-city--ring { stroke: rgba(242,106,31,.22); }

html[data-theme="light"] .static-label {
  fill: rgba(11,61,99,.5);
  stroke: rgba(255,255,255,.95);
  stroke-width: 2.5;
}


/* Routes — keep brand colors, slightly more saturated for white bg */
html[data-theme="light"] .route--parom   { stroke: #1E70B8; opacity: .65; }

html[data-theme="light"] .route--avia    { stroke: #0B3D63; opacity: .55; }

html[data-theme="light"] .route--pereezd { stroke: #F26A1F; opacity: .65; }


html[data-theme="light"] .spark--parom    { fill: #1E70B8; }

html[data-theme="light"] .spark--avia     { fill: #0B3D63; }

html[data-theme="light"] .spark--pereezd  { fill: #F26A1F; }


html[data-theme="light"] .city__dot {
  fill: #F26A1F;
  filter: drop-shadow(0 0 calc(3px * var(--map-glow)) rgba(242,106,31,.55));
}

html[data-theme="light"] .city__ring { stroke: #F26A1F; }

html[data-theme="light"] .city__label {
  fill: #0B3D63;
  stroke: rgba(255,255,255,.95);
  stroke-width: 3.5;
}

html[data-theme="light"] .city--far .city__label {
  fill: rgba(11,61,99,.7);
  stroke-width: 3;
}


html[data-theme="light"] .hub__dot {
  fill: #F26A1F;
  filter: drop-shadow(0 0 calc(8px * var(--map-glow)) rgba(242,106,31,.75));
}

html[data-theme="light"] .hub__ring,
html[data-theme="light"] .hub__ring-2 { stroke: #F26A1F; }

html[data-theme="light"] .hub__label {
  fill: #0B3D63;
  stroke: rgba(255,255,255,.95);
  stroke-width: 4;
}


/* ----- REDUCED MOTION --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .route, .spark, .transport, .city__ring, .hub__ring, .hub__ring-2 {
    animation: none !important;
  }
  .route { opacity: .55; }
  .spark, .transport { display: none; }
  .city__ring { opacity: 0 !important; }
}


/* ----- RESPONSIVE ------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero { min-height: 480px; }
  .hero__inner { padding: 44px 0 0 36px; }
  .hero__footrow { padding: 16px 36px; gap: 8px 14px; font-size: 12px; }
}


@media (max-width: 860px) {
  .hero {
    border-radius: 12px;
    min-height: 0;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 28px 0 0;
  }
  .hero__content {
    padding: 0 24px;
    max-width: none;
    align-self: stretch;
  }
  .hero__map-col {
    height: 260px;
    margin-top: 20px;
  }
  .hero__h1 { font-size: clamp(28px, 7vw, 40px); }
  .hero__sub { font-size: 15px; }
  .hero__footrow {
    padding: 16px 24px;
    justify-content: flex-start;
    gap: 8px 14px;
    font-size: 12px;
  }
}


@media (max-width: 480px) {
  .hero__inner { padding: 22px 0 0; }
  .hero__content { padding: 0 18px; }
  .hero__map-col { height: 220px; }
  .hero__footrow { padding: 14px 18px; font-size: 11.5px; gap: 6px 12px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__btn { justify-content: center; }
}

/* ===== Фон страницы главной = фон hero (бесшовно со всех сторон).
   hero.css грузится только на index.html → правило не затрагивает др. страницы.
   Зеркалит .hero: light = var(--as-blue-50) #EEF5FC, dark = var(--t-surface) #0B3D63. ===== */
.as-page { background: var(--t-surface); }
html[data-theme="light"] .as-page { background: var(--as-blue-50); }

/* ===== Компоновка hero: ЦЕНТР + ФОН-КАРТА (выбор заказчика) ===== */
.hero--centered{
  display:flex; flex-direction:column; align-items:center;
  text-align:center; min-height:400px; position:relative; overflow:hidden;
  padding:36px 24px 0;
}
.hero--centered .hero__map-bg{
  position:absolute;
  /* боковые отступы — правый край не обрезан вплотную; верхний меньше нижнего — карта приподнята */
  inset: 4px 22px 40px 22px;
  z-index:0; pointer-events:none; opacity:.34;
  border-radius:24px;
  overflow:hidden;                 /* клипуем slice'нутый svg под скруглённый контур */
  -webkit-mask-image:-webkit-radial-gradient(white,black); /* фикс radius+overflow в Safari */
}
[data-theme="dark"] .hero--centered .hero__map-bg{ opacity:.5; }
/* размер карты не уменьшаем: svg по-прежнему заполняет контейнер целиком (slice) */
.hero--centered .hero__map{ position:absolute; inset:0; width:100%; height:100%; }
.hero--centered .hero__center{
  position:relative; z-index:1; margin:auto 0;
  display:flex; flex-direction:column; align-items:center; gap:20px;
  max-width:780px;
}
.hero--centered .hero__eyebrow{ align-self:center; }
.hero--centered .hero__h1{ margin:0; }
.hero--centered .hero__sub{ max-width:620px; margin:0 auto; }
.hero--centered .hero__actions{ justify-content:center; margin-top:4px; }
.hero--centered .hero__footrow{
  position:relative; z-index:1; width:100%; margin-top:auto;
  justify-content:center;
}
/* Mobile: компас на главной должен идти ПЕРЕД текстом */
@media (max-width: 860px) {
  .as-hero--main .as-hero__live-panel--compass { order: -1; }
}

@media (max-width:560px){
  /* Скрываем липкую панель снизу с телефоном и «Рассчитать» (по запросу заказчика) */
  .as-sticky { display: none !important; }

  /* Hero компактнее — чтобы помещался в один экран мобильного */
  .as-hero--main { padding-top: 14px !important; padding-bottom: 12px !important; }
  .as-hero--main .as-hero__grid { gap: 0; }
  .as-hero--main .as-hero__cta--mt { margin-top: 16px; }

  /* Компас компактный и частично наезжает на текст (z-index ниже) */
  .as-hero--main .cmp-wrap {
    max-width: 240px;
    margin-bottom: -54px;
    position: relative; z-index: 1;
  }
  /* Текст поверх компаса — увеличенная тень для читаемости */
  .as-hero--main .as-hero__copy { position: relative; z-index: 2; }
  .as-hero--main .as-hero__h { font-size: clamp(26px, 8vw, 30px); line-height: 1.08; text-shadow: 0 2px 18px rgba(5,8,15,.75); }

  /* H1 и ротатор для нового hero главной */
  .hero__rotator { font-size: 20px; gap: 8px; margin-top: 2px; text-shadow: 0 2px 14px rgba(5,8,15,.7); }

  /* Eyebrow компактнее */
  .as-hero--main .as-eyebrow { font-size: 11px; margin-bottom: 6px !important; }
}
