body.page-contacts {
  background: #f3f5f9;
}

.page-contacts main {
  background: transparent;
}

.page-contacts .breadcrumbs {
  margin-top: 22px;
}

.contacts-hero {
  padding: 18px 0 24px;
}

.contacts-hero__eyebrow {
  margin: 0 0 10px;
  color: #6f7687;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.contacts-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px, 5.2vw, 72px);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 800;
}

.contacts-hero p {
  margin: 12px 0 0;
  max-width: 760px;
  color: #677088;
  font-size: 20px;
  line-height: 1.45;
}

.contacts-page {
  display: grid;
  gap: 24px;
  padding-bottom: 74px;
}


.contacts-page,
.contacts-panel,
.contacts-slider-viewport,
.contacts-slider-track,
.contacts-map {
  max-width: 100%;
  min-width: 0;
}

.contacts-panel--offices,
.contacts-panel--map {
  overflow: hidden;
}

.contacts-panel {
  padding: 24px;
  border: 1px solid rgba(165, 178, 204, .34);
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 42px rgba(14, 33, 71, .06);
}

.contacts-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.contacts-panel__head--compact {
  align-items: center;
}

.contacts-panel__head h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.contacts-panel__head p {
  margin: 10px 0 0;
  max-width: 760px;
  color: #6a7388;
  font-size: 15px;
  line-height: 1.5;
}

.contacts-slider-controls {
  display: inline-flex;
  gap: 10px;
  flex-shrink: 0;
}

.contacts-slider-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid #d9e0ee;
  border-radius: 50%;
  background: #eff3fb;
  color: var(--blue-dark);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, opacity .2s ease;
}

.contacts-slider-arrow.is-next {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.contacts-slider-arrow:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #bcc9df;
}

.contacts-slider-arrow.is-next:hover:not(:disabled) {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.contacts-slider-arrow:disabled {
  opacity: .42;
  cursor: default;
}

.contacts-slider-arrow svg {
  width: 22px;
  height: 22px;
}

.contacts-slider-viewport {
  overflow: hidden;
}

.contacts-slider-track {
  display: flex;
  gap: 22px;
  will-change: transform;
  transition: transform .28s ease;
}

.office-card {
  display: block;
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #dde5f1;
  border-radius: 22px;
  background: #fff;
  color: inherit;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(14, 33, 71, .04);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.office-card:hover,
.office-card:focus-visible,
.office-card.is-active {
  transform: translateY(-2px);
  border-color: #8ba6e4;
  box-shadow: 0 14px 30px rgba(26, 53, 120, .12);
}

.office-card__media {
  position: relative;
  display: block;
  width: 100%;
  height: 260px;
  min-height: 260px;
  margin: 0;
  padding: 0;
  line-height: 0;
  background: #e8edf7;
  overflow: hidden;
}

.office-card__media img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.office-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f80eb, #3260ce);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(51, 106, 191, .26);
}

.office-card__body {
  padding: 18px 18px 20px;
}

.office-card h3 {
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: -.04em;
}


.office-card__eyebrow {
  margin: 0 0 8px;
  color: #6d7690;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.office-card__row--stack {
  align-items: start;
}

.office-card__line {
  display: block;
}

.office-card__note {
  display: block;
  margin-top: 2px;
  color: #7b8399;
  font-size: 12px;
  line-height: 1.4;
}

.office-card__meta {
  display: grid;
  gap: 12px;
}

.office-card__row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: flex-start;
  color: #5f687e;
  font-size: 14px;
  line-height: 1.45;
}

.office-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.office-card__icon svg {
  width: 18px;
  height: 18px;
}

.contacts-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.contacts-slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ccd5e8;
  transition: transform .2s ease, background .2s ease;
}

.contacts-slider-dot.is-active {
  background: var(--blue);
  transform: scale(1.15);
}

.contacts-route-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  flex: 0 0 auto;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 760;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(51, 106, 191, .18);
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.contacts-route-button:hover,
.contacts-route-button:focus-visible {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(51, 106, 191, .24);
}

.contacts-route-button__icon,
.contacts-route-button__arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.contacts-route-button__icon {
  display: inline-flex;
}

.contacts-route-button__icon svg {
  width: 18px;
  height: 18px;
}

.contacts-map {
  height: 560px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(97, 158, 255, .14), transparent 18%),
    linear-gradient(180deg, #f2f6fb, #eef3f8);
  border: 1px solid #e2e8f3;
}

.contacts-map.is-fallback {
  display: grid;
  place-items: center;
  padding: 24px;
  color: #5f687e;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1199px) {
  .contacts-panel__head,
  .contacts-panel__head--compact {
    flex-direction: column;
    align-items: stretch;
  }

  .office-card {
    flex-basis: calc((100% - 22px) / 2);
  }

  .contacts-map {
    height: 500px;
  }
}

@media (max-width: 767px) {
  .contacts-route-button {
    width: 100%;
  }

  .contacts-hero p {
    font-size: 17px;
  }

  .contacts-page {
    gap: 18px;
    padding-bottom: 54px;
  }

  .contacts-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .contacts-slider-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .office-card {
    flex-basis: 100%;
  }

  .office-card h3 {
    font-size: 26px;
  }

  .contacts-map {
    height: 420px;
    border-radius: 20px;
  }
}


@media (max-width: 991px) {
  .office-card__media {
    height: 230px;
    min-height: 230px;
  }
}

@media (max-width: 767px) {
  .office-card__media {
    height: 220px;
    min-height: 220px;
  }
}

/* v8: custom dynamic pins and collision-free moving labels over Yandex Map. */
.contacts-map {
  position: relative;
}

.contacts-map-overlays {
  position: absolute;
  inset: 0;
  z-index: 850;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.contacts-map-custom-pin {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transition: scale .18s ease;
  will-change: left, top;
}

.contacts-map-custom-pin__dot {
  display: block;
  width: 20px;
  height: 20px;
  border: 5px solid #2f63d5;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(24, 50, 112, .24);
  transition: width .18s ease, height .18s ease, border-color .18s ease, box-shadow .18s ease;
  pointer-events: none;
}

.contacts-map-custom-pin:hover .contacts-map-custom-pin__dot,
.contacts-map-custom-pin:focus-visible .contacts-map-custom-pin__dot,
.contacts-map-custom-pin.is-active .contacts-map-custom-pin__dot {
  width: 24px;
  height: 24px;
  border-color: #26378d;
  box-shadow: 0 5px 14px rgba(25, 45, 107, .34);
}

.contacts-map-custom-pin:hover,
.contacts-map-custom-pin:focus-visible,
.contacts-map-custom-pin.is-active {
  z-index: 7;
  scale: 1.06;
}

.contacts-map-custom-label {
  position: absolute;
  z-index: 5;
  min-width: 150px;
  max-width: 240px;
  min-height: 42px;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid #34429b;
  border-radius: 12px;
  background: rgba(255,255,255,.97);
  color: #151a29;
  box-shadow: 0 6px 16px rgba(21, 39, 89, .12);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  transition: border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
  will-change: left, top;
}

.contacts-map-custom-label:hover,
.contacts-map-custom-label:focus-visible,
.contacts-map-custom-label.is-active {
  z-index: 8;
  border-color: #26347f;
  background: #fff;
  color: #26347f;
  box-shadow: 0 9px 22px rgba(32, 49, 114, .18);
}

.contacts-map-pin-leader,
.contacts-map-label-leader {
  position: absolute;
  z-index: 2;
  height: 1px;
  pointer-events: none;
  transform-origin: 0 50%;
  will-change: left, top, width, transform;
}

.contacts-map-pin-leader {
  border-top: 1px dashed rgba(52, 66, 155, .38);
}

.contacts-map-label-leader {
  z-index: 3;
  height: 2px;
  background: #34429b;
  opacity: .72;
}

@media (max-width: 767px) {
  .contacts-map-custom-pin {
    width: 28px;
    height: 28px;
  }

  .contacts-map-custom-label {
    min-width: 120px;
    max-width: 180px !important;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 12px;
  }
}

/* Circle markers remain centered exactly on geographic coordinates. */
.contacts-map-pin-leader {
  display: none !important;
}

/* Keep these shared panels identical despite the two site typography roots. */
.contacts-page.shell {
  width: min(1280px, calc(100% - 64px));
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -.01em;
}
.contacts-page, .contacts-page * { font-family: Arial, Helvetica, sans-serif !important; }
.contacts-page .contacts-panel__head h2 {
  font-weight: 700 !important;
  line-height: 1.06 !important;
  letter-spacing: -.04em !important;
}
.contacts-page .contacts-panel__head p {
  line-height: 1.5 !important;
  letter-spacing: -.01em !important;
}
.contacts-page .office-card h3 {
  font-weight: 700 !important;
  line-height: 1.02 !important;
  letter-spacing: -.04em !important;
}
.contacts-page .office-card__eyebrow {
  line-height: 1.45 !important;
  letter-spacing: .14em !important;
}
.contacts-page strong { font-weight: 700; }
.contacts-page button { letter-spacing: inherit !important; }
@media (max-width: 1360px) {
  .contacts-page.shell { width: min(1280px, calc(100% - 48px)); }
}
@media (max-width: 1220px) {
  .contacts-page.shell { width: min(1120px, calc(100% - 48px)); }
}
@media (max-width: 980px) {
  .contacts-page.shell { width: min(900px, calc(100% - 40px)); }
}
@media (max-width: 700px) {
  .contacts-page.shell { width: calc(100% - 24px); }
}
