.contacts-page {
  min-height: 0;
}

.contacts-main {
  position: relative;
  width: 1828px;
  height: 883px;
  margin: 0 auto;
}

.contacts-section {
  position: relative;
  width: 100%;
  height: 883px;
}

.contacts-breadcrumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 135.43px;
  height: 19.6px;
  color: var(--header-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 19.6px;
  letter-spacing: -0.42px;
}

.contacts-breadcrumb__home,
.contacts-breadcrumb__current {
  position: absolute;
  top: 0;
  height: 19.6px;
}

.contacts-breadcrumb__home {
  left: 0;
  width: 51.804px;
}

.contacts-breadcrumb__dot {
  position: absolute;
  top: 6.5px;
  left: 59.29px;
  width: 6px;
  height: 6px;
  border-radius: 6px;
  background: rgb(27 27 27 / 20%);
}

.contacts-breadcrumb__current {
  left: 74.49px;
  opacity: 0.5;
}

.contacts-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 1828px;
  height: 842.38px;
  overflow: hidden;
  border-radius: 40px;
  background: #fff;
}

.contacts-card__details {
  position: absolute;
  inset: 0;
}

.contacts-card__title {
  position: absolute;
  top: 60px;
  left: 40px;
  display: flex;
  width: 508.02px;
  height: 108px;
  align-items: center;
  margin: 0;
  color: var(--header-ink);
  font-size: 120px;
  font-weight: 600;
  line-height: 108px;
  letter-spacing: -7.2px;
}

.contacts-card__office {
  position: absolute;
  top: 208.41px;
  left: 40px;
  display: flex;
  width: 601px;
  height: 80px;
  padding: 0 20px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 20px;
  background: var(--header-background);
  color: var(--header-ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 33.6px;
  letter-spacing: -0.72px;
}

.contacts-card__office > span,
.contacts-card__office a {
  position: static;
}

.contacts-card__office > span {
  min-width: 0;
}

.contacts-card__office > span:last-child,
.contacts-card__office a {
  color: var(--brand-blue);
  text-align: right;
}

.contacts-card__email {
  position: absolute;
  top: 417.94px;
  left: 40px;
  display: flex;
  width: 407.56px;
  height: 32.5px;
  align-items: center;
  color: var(--brand-blue);
  font-size: 24px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.72px;
  transform: translateY(-50%);
}

.contacts-card__spb-address {
  position: absolute;
  top: 448.94px;
  left: 40px;
  display: flex;
  width: 512.76px;
  height: 27.5px;
  align-items: center;
  color: rgb(27 27 27 / 70%);
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.6px;
  transform: translateY(-50%);
  white-space: nowrap;
}

.contacts-channel {
  position: absolute;
  left: 40px;
  display: flex;
  width: 804px;
  height: 34px;
  align-items: center;
  color: rgb(0 0 0 / 70%);
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.6px;
}

.contacts-channel--telegram {
  top: 503.41px;
  padding-left: 44px;
}

.contacts-channel--max {
  top: 547.41px;
  padding-left: 46px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contacts-channel--social {
  gap: 10px;
  padding-left: 0;
  text-decoration: none;
}

.contacts-channel__social-icon,
.contacts-channel__social-icon img {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.contacts-channel__icon,
.contacts-channel__max-icon {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
}

.contacts-channel__icon {
  border-radius: 34px;
  background: var(--header-button-disc);
}

.contacts-channel__icon img {
  width: 13.333px;
  height: 12.222px;
  opacity: 0.7;
}

.contacts-card__kaliningrad-address {
  position: absolute;
  top: 580px;
  left: 84px;
  display: flex;
  width: 480px;
  height: 57.03px;
  align-items: center;
  color: rgb(0 0 0 / 70%);
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.6px;
}

.contacts-card__location-icon {
  position: absolute;
  top: 11px;
  left: -44px;
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 34px;
  place-items: center;
  background: var(--header-button-disc);
}

.contacts-card__location-icon img {
  width: 15px;
  height: 20px;
  opacity: 0.7;
}

.contacts-map {
  position: absolute;
  top: 60px;
  right: 40px;
  width: 854px;
  height: 722.38px;
  overflow: hidden;
  border-radius: 40px;
  background: #fff;
}

.contacts-map__embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contacts-map__grid {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 600px;
  overflow: hidden;
  background-image: url("assets/contacts/map-grid.webp");
  background-position: top left;
  background-size: 16px 16px;
}

.contacts-map__controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 37px;
  height: 314px;
}

.contacts-map__button {
  position: absolute;
  left: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 3px;
  place-items: center;
  background: #fff;
  box-shadow: 0 1px 2px 1px rgb(0 0 0 / 15%), 0 2px 5px -3px rgb(0 0 0 / 15%);
}

.contacts-map__button img {
  width: 26px;
  height: 26px;
}

.contacts-map__button--plus {
  top: 108px;
}

.contacts-map__button--minus {
  top: 286px;
}

.contacts-map__slider {
  position: absolute;
  top: 136px;
  left: 21px;
  width: 6px;
  height: 150px;
  border-right: 1px solid rgb(0 0 0 / 20%);
  border-left: 1px solid rgb(0 0 0 / 20%);
  background: rgb(255 255 255 / 40%);
  box-shadow: 1px 0 0 rgb(0 0 0 / 15%), -1px 0 0 rgb(0 0 0 / 15%);
}

.contacts-map__slider > span {
  position: absolute;
  top: 58px;
  left: -12px;
  display: grid;
  width: 28px;
  height: 15px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 3px;
  place-items: center;
  background: #fff;
  box-shadow: 0 1px 2px 1px rgb(0 0 0 / 15%), 0 2px 5px -3px rgb(0 0 0 / 15%);
}

.contacts-map__slider img {
  width: 10px;
  height: 5px;
}

.contacts-map__attribution {
  position: absolute;
  right: 3px;
  bottom: 5px;
  left: 513.56px;
  height: 24px;
}

.contacts-map__terms {
  position: absolute;
  top: 5.5px;
  right: 134px;
  width: 203.44px;
  height: 15px;
  padding-left: 4px;
  border-radius: 3px;
  background: rgb(255 255 255 / 75%);
  color: #000;
  font: 400 11px/14px "Inter", sans-serif;
  white-space: nowrap;
}

.contacts-map__logo {
  position: absolute;
  top: 1px;
  right: 0;
  width: 120px;
  height: 24px;
  opacity: 0.7;
}

.contacts-breadcrumb a:focus-visible,
.contacts-card a:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

@media (max-width: 1819px) {
  .contacts-main {
    width: calc(100% - 32px);
    height: auto;
    margin: 32px auto 0;
  }

  .contacts-section {
    height: auto;
  }

  .contacts-breadcrumb {
    position: relative;
    top: auto;
    left: auto;
  }

  .contacts-card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: 780px;
    margin-top: 20px;
    border-radius: 28px;
  }

  .contacts-map {
    top: 48px;
    right: 40px;
    width: min(46%, 854px);
  }

  .contacts-card__title {
    top: 56px;
    font-size: clamp(74px, 8.4vw, 120px);
    line-height: 0.9;
    letter-spacing: -0.06em;
  }

  .contacts-card__office {
    top: 190px;
  }

  .contacts-card__email {
    top: 392px;
  }

  .contacts-card__spb-address {
    top: 423px;
  }

  .contacts-channel--telegram {
    top: 478px;
  }

  .contacts-channel--max {
    top: 522px;
  }

  .contacts-card__kaliningrad-address {
    top: 555px;
  }
}

@media (max-width: 900px) {
  .contacts-card {
    height: 1120px;
  }

  .contacts-map {
    top: 510px;
    right: 40px;
    left: 40px;
    width: auto;
  }
}

@media (max-width: 760px) {
  .contacts-main {
    width: calc(100% - 24px);
    margin-top: 20px;
  }

  .contacts-card {
    height: 980px;
    margin-top: 16px;
    border-radius: 24px;
  }

  .contacts-card__title {
    top: 36px;
    left: 24px;
    width: calc(100% - 48px);
    height: auto;
    font-size: clamp(58px, 18vw, 78px);
    line-height: 0.9;
  }

  .contacts-card__office {
    top: 132px;
    right: 12px;
    left: 12px;
    width: auto;
    height: 70px;
    border-radius: 18px;
    font-size: 18px;
    line-height: 25px;
    gap: 16px;
  }

  .contacts-card__office > span,
  .contacts-card__office a {
    position: static;
  }

  .contacts-card__email {
    top: 244px;
    left: 24px;
    width: calc(100% - 48px);
    font-size: 20px;
  }

  .contacts-card__spb-address {
    top: 278px;
    left: 24px;
    width: calc(100% - 48px);
    height: auto;
    align-items: flex-start;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.04em;
    white-space: normal;
  }

  .contacts-channel {
    left: 24px;
    width: calc(100% - 48px);
    font-size: 18px;
  }

  .contacts-channel--telegram {
    top: 344px;
  }

  .contacts-channel--max {
    top: 388px;
  }

  .contacts-card__kaliningrad-address {
    top: 418px;
    left: 68px;
    width: calc(100% - 92px);
    height: 50px;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.04em;
  }

  .contacts-card__location-icon {
    top: 8px;
  }

  .contacts-map {
    top: 500px;
    right: 12px;
    left: 12px;
    width: auto;
    height: 456px;
    border-radius: 24px;
  }

  .contacts-map__grid {
    height: 390px;
  }

  .contacts-map__button--plus {
    top: 66px;
  }

  .contacts-map__slider {
    top: 94px;
  }

  .contacts-map__button--minus {
    top: 244px;
  }

  .contacts-map__attribution {
    right: 0;
    bottom: 3px;
    left: auto;
    width: 300px;
    transform: scale(0.8);
    transform-origin: right bottom;
  }
}
