.kx-office-map {
  margin: 48px 0;
}

.kx-office-map__title {
  margin: 0 0 16px;
  color: #111111;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.05;
  font-family: "Euclid Square", sans-serif;
  font-weight: 700;
}

.kx-office-map__canvas {
  position: relative;
}

.kx-office-map__svg-wrap {
  position: relative;
}

.kx-office-map__svg,
.kx-office-map__image,
.kx-office-map__overlay {
  display: block;
  width: 100%;
  height: auto;
}

.kx-office-map__svg {
  overflow: visible;
}

.kx-office-map__overlay {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.kx-office-map__office {
  cursor: pointer;
  outline: none;
}

.kx-office-map__marker-hit {
  fill: transparent;
  pointer-events: all;
}

.kx-office-map__marker-ring {
  fill: rgba(255, 203, 34, 0.24);
  stroke: rgba(255, 203, 34, 0.55);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.kx-office-map__marker-dot {
  fill: #ffcb22;
  stroke: #ffffff;
  stroke-width: 4;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.kx-office-map__office:hover .kx-office-map__marker-dot,
.kx-office-map__office:focus .kx-office-map__marker-dot,
.kx-office-map__office.is-active .kx-office-map__marker-dot {
  transform: scale(1.08);
}

.kx-office-map__office:hover .kx-office-map__marker-ring,
.kx-office-map__office:focus .kx-office-map__marker-ring,
.kx-office-map__office.is-active .kx-office-map__marker-ring {
  opacity: 1;
  transform: scale(1.05);
}

.kx-office-map__tooltip {
  position: absolute;
  z-index: 10;
  display: none;
  width: min(280px, 42vw);
  padding: 16px 18px 14px;
  border-radius: 18px;
  background: rgba(43, 47, 56, 0.97);
  box-shadow: 0 18px 30px rgba(17, 24, 39, 0.22);
  color: #ffffff;
}

.kx-office-map__tooltip.is-visible {
  display: block;
}

.kx-office-map__tooltip::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: rgba(43, 47, 56, 0.97);
  transform: translateX(-50%) rotate(45deg);
}

.kx-office-map__tooltip.is-below::after {
  top: -7px;
  bottom: auto;
}

.kx-office-map__tooltip-country,
.kx-office-map__details-country {
  display: block;
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}

.kx-office-map__tooltip-city,
.kx-office-map__details-city {
  margin: 0 0 8px;
  color: #ffcb22 !important;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
}

.kx-office-map__tooltip-address,
.kx-office-map__details-address {
  display: block;
  margin: 0;
  padding: 0;
  color: #d7dde5;
  font-size: 0.95rem;
  line-height: 1.4;
}

.kx-office-map__tooltip-address-line,
.kx-office-map__details-address-line {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.08;
}

.kx-office-map__tooltip > p,
.kx-office-map__details > p,
.kx-office-map__tooltip-address br,
.kx-office-map__details-address br {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.kx-office-map__tooltip-phone,
.kx-office-map__details-phone {
  margin-top: 8px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
}

.kx-office-map__details {
  display: none;
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: 18px;
  background: #2b2f38;
  box-shadow: 0 14px 28px rgba(24, 39, 56, 0.12);
}

.kx-office-map__details.hidden,
.kx-office-map__details-phone.hidden,
.hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  .kx-office-map__tooltip {
    display: none !important;
  }

  .kx-office-map__details {
    display: block;
  }
}

@media (max-width: 767px) {
  .kx-office-map {
    margin: 36px 0;
  }

  .kx-office-map__details {
    padding: 18px 18px 16px;
  }

  .kx-office-map__details-city {
    font-size: 1.25rem;
  }
}