@keyframes yandex-map-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.yandex-map {
  position: static;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  border: none;
  background: #f3f6fb;
  overflow: hidden;
}

.yandex-map__container {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.yandex-map__container.loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(93.76deg, rgba(104, 185, 212, 0.15) 7.39%, rgba(84, 160, 186, 0.15) 93.7%);
  z-index: 1;
}

.yandex-map__container.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  margin-left: -20px;
  border: 4px solid #54a0ba;
  border-top-color: transparent;
  border-radius: 50%;
  z-index: 2;
  animation: yandex-map-loader-spin .8s linear infinite;
}

.yandex-map-placemark {
  position: absolute;
  display: block;
  width: max-content;
  padding: 12px 20px;
  border-radius: 30px;
  background: var(--color-green2);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  box-sizing: border-box;
  
  @media (max-width: 1281px) {
    max-width: 400px;
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 14px;
  }
  
  @media (max-width: 767px) {
    max-width: 270px;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 400;
  }
}

.yandex-map-placemark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: var(--color-green2);
  transform: translateX(-50%) rotate(45deg);
  aspect-ratio: 1;
  z-index: -1;
}

.yandex-map [class*="ymaps-2-1"][class*="-ground-pane"] {
  filter: none;
}

.yandex-map [class*="ymaps-2-1"][class*="-zoom__button"] {
  left: 0;
}

.yandex-map--variable-aspect-ratio {
  --aspectRatio: var(--aspectRatioDesktop, auto);
  aspect-ratio: var(--aspectRatio);
}
