/**
 * Маршрут по секциям главной — тонкая ось слева.
 */

.home-route {
  --route-center: 22px;
  --dot-size: 9px;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 120px;
  z-index: 45;
  pointer-events: none;
  overflow: visible;
}

@media (min-width: 961px) {
  .home-route {
    display: block;
  }
}

.home-route__line {
  position: absolute;
  left: var(--route-center);
  top: 100px;
  bottom: 48px;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(212, 176, 74, 0.35) 10%,
    rgba(212, 176, 74, 0.22) 90%,
    transparent
  );
}

.home-route__stops {
  position: absolute;
  left: 0;
  top: 100px;
  bottom: 48px;
  width: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: auto;
  overflow: visible;
}

.home-route__stop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  /* кружок по центру линии: center − half(dot) */
  padding: 0 8px 0 calc(var(--route-center) - var(--dot-size) / 2);
  min-height: 24px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  overflow: visible;
}

.home-route__dot {
  flex: 0 0 auto;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  border: 1px solid rgba(212, 176, 74, 0.5);
  background: rgba(10, 31, 20, 0.85);
  box-shadow: 0 0 0 3px rgba(10, 31, 20, 0.55);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  transform-origin: center center;
}

.home-route__name {
  flex: 0 0 auto;
  opacity: 0;
  transform: translateX(-4px);
  white-space: nowrap;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.7);
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
  pointer-events: none;
  text-shadow:
    0 0 8px rgba(6, 26, 16, 0.95),
    0 1px 2px rgba(6, 26, 16, 0.9);
}

.home-route__stop:hover .home-route__name,
.home-route__stop.is-active .home-route__name {
  opacity: 1;
  transform: translateX(0);
}

.home-route__stop:hover .home-route__dot {
  border-color: rgba(232, 204, 106, 0.9);
}

.home-route__stop.is-active .home-route__dot {
  background: rgba(212, 176, 74, 0.95);
  border-color: rgba(255, 248, 220, 0.9);
  box-shadow:
    0 0 0 3px rgba(10, 31, 20, 0.65),
    0 0 12px rgba(212, 176, 74, 0.45);
  transform: scale(1.2);
}

.home-route__stop.is-active .home-route__name {
  color: rgba(212, 176, 74, 0.95);
}

@media (max-width: 1100px) {
  .home-route {
    --route-center: 16px;
    width: 56px;
  }
  .home-route__stops {
    width: 56px;
  }
  .home-route__name {
    font-size: 0.58rem;
  }
}
