#map {
  width: 100%;
  height: 600px;
  z-index: 0;
}
#map .ymaps-2-1-79-map {
  width: 100%;
}
#map .ymaps-2-1-79-balloon {
  border: none;
  border-radius: 10px;
}
#map .ymaps-2-1-79-balloon__layout {
  border-radius: 10px;
}
#map .ymaps-2-1-79-balloon__content .map__link {
  display: none;
}
#map .ymaps-2-1-79-balloon_to_top .ymaps-2-1-79-balloon__tail {
  transform: none;
  z-index: 1;
}
#map .ymaps-2-1-79-balloon__tail:after {
  background: url("/local/templates/ricoco_05.2023/assets/img/icons/map-pin.svg") center center/contain no-repeat;
  background-color: transparent;
  width: 30px;
  height: 30px;
}

.map-wrapper {
  width: 100%;
}
.map-wrapper.container {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column-reverse;
  gap: 20px;
}
.map__square {
  max-width: 345px;
  z-index: 1;
  width: 100%;
  padding: 30px;
  background-color: rgb(128, 144, 124);
  border-radius: 10px;
  color: white;
}
.map__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
  cursor: pointer;
}
.map__item span {
  cursor: pointer;
}
.map__link {
  text-decoration: underline;
}
.map__title {
  font-weight: 600;
}

@media (min-width: 760px) {
  #map {
    width: calc(100% - 375px);
  }
  .map {
    height: 500px;
  }
  .map-wrapper.container {
    flex-direction: row-reverse;
  }
}
@media (min-width: 1290px) {
  .map {
    height: 500px;
  }
  .map__square {
    max-width: 520px;
  }
}