.svc-map {
  padding: 64px 0;
}

.svc-map__title {
  text-align: center;
  margin-bottom: 36px;
}

.svc-map__img-wrap {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  line-height: 0;
}

.svc-map__img {
  display: block;
  width: 100%;
  height: auto;
}

.svc-map__routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.svc-map__arc {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2;
  stroke-dasharray: 11 11;
  vector-effect: non-scaling-stroke;
}

.svc-map__reveal {
  fill: none;
  stroke: #fff;
  stroke-width: 24;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}

.svc-map.is-animated .svc-map__reveal {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.45, 0, 0.2, 1) var(--delay, 0s);
}

.svc-map.is-animated.is-inview .svc-map__reveal {
  stroke-dashoffset: 0;
}

.svc-map__dot {
  position: absolute;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: var(--yellow);
  line-height: var(--lh-normal);
  cursor: default;
  outline: none;
}

.svc-map__dot--hub {
  z-index: 2;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  box-shadow: 0 0 0 4px rgba(254, 204, 0, 0.25);
}

.svc-map__dot--hub::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--yellow);
  animation: svc-map-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes svc-map-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

.svc-map.is-animated .svc-map__dot {
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.35s ease var(--delay, 0s), transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) var(--delay, 0s);
}

.svc-map.is-animated.is-inview .svc-map__dot {
  opacity: 1;
  transform: none;
}

.svc-map__tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--text-main);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  pointer-events: none;
}

.svc-map__dot--edge-left .svc-map__tip {
  left: -6px;
  transform: translate(0, 4px);
}

.svc-map__dot--edge-right .svc-map__tip {
  left: auto;
  right: -6px;
  transform: translate(0, 4px);
}

.svc-map__dot:hover .svc-map__tip,
.svc-map__dot:focus-visible .svc-map__tip,
.svc-map__dot:focus .svc-map__tip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.svc-map__dot--edge-left:hover .svc-map__tip,
.svc-map__dot--edge-left:focus .svc-map__tip,
.svc-map__dot--edge-right:hover .svc-map__tip,
.svc-map__dot--edge-right:focus .svc-map__tip {
  transform: none;
}

.svc-map__dot:focus-visible {
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--dark);
}

.svc-map__btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 36px;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .svc-map__dot--hub::after {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .svc-map {
    padding: 40px 0;
  }

  .svc-map__title {
    text-align: left;
    margin-bottom: 24px;
  }

  .svc-map__arc {
    stroke-width: 1.5;
    stroke-dasharray: 6 6;
  }

  .svc-map__dot {
    width: 9px;
    height: 9px;
    margin: -4.5px 0 0 -4.5px;
  }

  .svc-map__dot--hub {
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    box-shadow: 0 0 0 3px rgba(254, 204, 0, 0.25);
  }

  .svc-map__tip {
    bottom: calc(100% + 8px);
    padding: 4px 10px;
    font-size: var(--text-xs);
  }

  .svc-map__btns {
    flex-direction: column;
    align-items: stretch;
    padding-top: 24px;
  }
}

@media (max-width: 480px) {
  .svc-map__arc {
    stroke-width: 1.2;
    stroke-dasharray: 4 4;
  }

  .svc-map__dot {
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
  }

  .svc-map__dot--hub {
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
  }
}
