.map-scroll {
  overflow: auto;
  border-radius: 0;
  -ms-overflow-style: none;
  /* Internet Explorer 10+ */
  scrollbar-width: none;
  /* Firefox, Safari 18.2+, Chromium 121+ */
}

.map-stage svg text.map-label,
.map-stage svg text.map-label tspan {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
  fill: #000 !important;
  font-size: 12.4px !important;
}

.map-scroll::-webkit-scrollbar {
  display: none;
  /* Older Safari and Chromium */
}


.map-stage {
  position: relative;
  min-width: 960px;
  isolation: isolate;
}



@media screen and (max-width: 960px) {
  .map-stage {
    min-width: 1280px;
  }

  .map-scroll {
    margin-bottom: -100px;
  }
}

.map-stage>svg {
  display: block;
  width: 100%;
  height: auto;
}

.section-stripes {
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.section-stripes.is-hovered,
.section-stripes.is-active {
  opacity: 1;
}

.section-hit {
  cursor: pointer;
  outline: none;
}

.section-hit:focus-visible {
  stroke: white;
  stroke-width: 3;
  stroke-dasharray: 7 5;
}

.map-dimmer {
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.map-stage.has-selection .map-dimmer {
  opacity: 1;
}

.section-card {
  position: absolute;
  z-index: 2;
  width: 334px;
  max-width: calc(100% - 24px);
  min-height: 84px;
  padding: 16px 38px 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #470c89;
  border-radius: 24px 0 24px 24px;
  box-shadow: 0 12px 28px #13002926;
}



.section-card[hidden] {
  display: none;
}

.section-card__logo {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: bold;
}

@media screen and (max-width: 767px) {
  .section-card__logo {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }
}

.section-card__logo.is-mts {
  position: relative;
  display: block;
}

.is-mts span {
  position: absolute;
}

.is-mts span:nth-child(1) {
  left: 4px;
  top: 1px;
}

.is-mts span:nth-child(2) {
  right: 4px;
  top: 1px;
}

.is-mts span:nth-child(3) {
  right: 4px;
  bottom: 0;
}

.section-card__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 400;
}

.section-card__category {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #c89ce9;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.section-card__category::before {
  content: '';
  width: 13px;
  height: 13px;
  background: #cb6aff;
  flex-shrink: 0;
}

.section-card__close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #e6c9ff;
  cursor: pointer;
  font-size: 22px;
}

.section-card__close:focus-visible {
  outline: 2px solid white;
  border-radius: 6px;
}

.map-hint {
  color: #c5afd9;
  font-size: 13px;
  line-height: 1.6;
  margin: 18px 8px 0;
}

@media (prefers-reduced-motion: reduce) {

  .section-stripes,
  .map-dimmer {
    transition: none;
  }
}

/* Decorations must not intercept clicks on the actual section contours. */
.map-stage>svg>* {
  pointer-events: none;
}

.map-stage>svg>.section-hit,
.map-stage>svg>[data-obstacle] {
  pointer-events: auto;
}

.section-card__category::before {
  background: var(--section-color, #cb6aff);
}

.section-card__title {
  line-height: 1.3;
}

/* SVG assets are local and retain the original brand artwork. */
.section-card__logo:not(.is-mts) {
  width: 82px;
  flex-basis: 82px;
  height: 56px;
  padding: 5px;
  background: transparent;
}

.section-card__logo.is-dark {
  background: transparent;
}

.section-card__logo img {
  display: block;
  width: 100%;
  height: 46px;
  object-fit: contain;
}

.section-card__logo.is-pair {
  gap: 3px;
}

.section-card__logo.is-pair img {
  height: 22px;
}

.section-card__logo[hidden] {
  display: none;
}

.map-stage>svg>.map-legend-label {
  pointer-events: auto;
  user-select: text;
  cursor: text;
}

.section-card__logo img {
  filter: grayscale(1);
}

/* Dark monochrome marks become white on the purple card, without a tile. */
.section-card__logo:not(.is-dark) img {
  filter: grayscale(1) invert(1);
}

.section-card__logo.is-mts {
  background: #eee;
  color: #080808;
}

.section-card__logo img[src="logos/yandex.svg"] {
  filter: none;
}

.section-card__logo.is-mts {
  background: transparent;
}

.section-card__logo.is-mts>svg {
  display: block;
}

@media screen and (max-width: 767px) {
  .section-card {
    gap: 12px;
    width: 280px;
  }

  .section-card__category {
    font-size: 10px;
  }
}

.map-scroll-dock {
  margin-top: 100px;
  position: sticky;
  bottom: 10px;
  z-index: 20;
  height: 48px;
  padding: 10px 24px;
  background: #190536;
  border-radius: 24px;
  box-sizing: border-box;
}

.map-scroll-dock[hidden] {
  display: none;
}

.map-scroll-slider {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  touch-action: none;
}

.map-scroll-slider::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 8px;
  background: #201430;
}

.map-scroll-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: var(--thumb-width, 60px);
  height: 5px;
  margin-top: 1px;
  border: 0;
  border-radius: 8px;
  background: #941bff;
}

.map-scroll-slider::-moz-range-track {
  height: 7px;
  border-radius: 8px;
  background: #201430;
}

.map-scroll-slider::-moz-range-thumb {
  width: var(--thumb-width, 60px);
  height: 5px;
  border: 0;
  border-radius: 8px;
  background: #941bff;
}

.map-scroll-slider:focus-visible {
  outline: 2px solid #c98aff;
  outline-offset: 2px;
  border-radius: 8px;
}

@media (hover: hover) and (pointer: fine) {
  .section-card__close {
    display: none;
  }
}