.office-location {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 50px;
}
.office-location__map-canvas {
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 60vh;
}
@media (max-width: 991px) {
  .office-location__map-canvas .ymaps3--controls_bottom.ymaps3--controls_left {
    top: 0;
    bottom: auto;
  }
}
.office-location__image {
  position: relative;
  margin: 0;
}
@media (max-width: 991px) {
  .office-location__image {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
  }
}
.office-location__image-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 20px 16px;
  background: linear-gradient(to top, rgba(44, 47, 49, 0.85) 0%, rgba(44, 47, 49, 0.6) 50%, rgba(44, 47, 49, 0) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.office-location__image img {
  display: block;
  margin: 0;
}

.office-map-marker {
  position: absolute;
  width: 36px;
  height: 46px;
  transform: translate(-50%, -100%);
}
.office-map-marker__pin {
  position: relative;
  z-index: 1;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(44, 47, 49, 0.35));
}
.office-map-marker__pin path {
  fill: #00338a;
}
.office-map-marker__pin circle {
  fill: #fff;
}
.office-map-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 20px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 89, 1, 0.45);
  transform: translateX(-50%);
  animation: office-marker-pulse 2s ease-out infinite;
}

@keyframes office-marker-pulse {
  0% {
    transform: translateX(-50%) scale(0.6);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(2.4);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .office-map-marker::after {
    animation: none;
  }
}
.office-map-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 320px;
  padding: 12px 16px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(44, 47, 49, 0.2);
  color: #2c2f31;
  font-size: 14px;
  line-height: 1.35;
}
.office-map-card a {
  margin-top: 4px;
  color: #00338a;
  font-weight: 700;
}
.office-map-card a:visited {
  color: #00338a;
}
.office-map-card a:hover, .office-map-card a:focus-visible {
  color: #ff5901;
}
.office-map-card--bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  width: max-content;
  max-width: 280px;
  transform: translateX(-50%);
  align-items: center;
  text-align: center;
}
.office-map-card--bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  border: 8px solid transparent;
  border-top-color: #fff;
  transform: translateX(-50%);
}

.office-map-card--bubble {
  display: none;
}

@media (min-width: 992px) {
  .office-map-card--bubble {
    display: flex;
  }
  .office-map-card--bottom {
    display: none;
  }
}
@media (min-width: 992px) {
  .office-location {
    display: grid;
    grid-template-columns: 2fr 1fr;
  }
  .office-location__map {
    position: relative;
  }
  .office-location__map-canvas {
    position: absolute;
    inset: 0;
    height: auto;
    aspect-ratio: auto;
    max-height: none;
  }
  .office-location__image img {
    width: 100%;
    height: auto;
  }
}
