.contacts-main {
  display: flex;
  flex-direction: column;
  gap: 44px;
  width: 100%;
  max-width: 1736px;
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 48px;
}

.contacts-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}

.contacts-info-card {
  background: #fff;
  border-radius: 16px 0 0 16px;
  padding: 52px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contacts-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 57px;
  padding: 16px 32px;
  border: 1px solid #242424;
  border-radius: 40px;
  background: transparent;
  color: #242424;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
}

.contacts-title {
  margin-top: 42px;
  margin-bottom: 28px;
  color: var(--text);
  font-size: clamp(38px, 2.4vw, 40px);
  line-height: 1.15;
  font-weight: 400;
  max-width: 680px;
}

.contacts-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text);
  font-size: 20px;
  line-height: normal;
}

.contacts-text--compact {
  margin-top: 48px;
  gap: 16px;
}

.contacts-text a {
  color: #19407e;
  text-decoration: none;
}

.contacts-text--compact p:first-child {
  color: var(--text);
}

.contacts-social {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contacts-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contacts-social img {
  width: 48px;
  height: 48px;
  display: block;
}

.contacts-info-divider {
  margin-top: 0;
  height: 1px;
  width: 100%;
  background: rgba(25, 64, 126, 0.12);
}

.contacts-map-card {
  margin: 0;
  border-radius: 0 16px 16px 0;
  overflow: hidden;
  min-width: 0;
}

.contacts-map-card picture,
.contacts-map-card img {
  display: block;
  width: 100%;
  height: 100%;
    border-radius: 16px;

}

.contacts-map-card img {
  min-height: 544px;
  object-fit: cover;
  object-position: center;
}

.contacts-details-card {
  background: #fff;
  border-radius: 16px;
  padding: 52px;
}

.contacts-details-card h2 {
  margin: 0 0 48px;
  color: #242424;
  font-size: clamp(32px, 2.3vw, 40px);
  line-height: normal;
  font-weight: 400;
}

.contacts-details-list {
  margin: 0;
}

.contacts-details-row {
  display: grid;
  grid-template-columns: minmax(280px, 34%) minmax(0, 1fr);
  column-gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid rgba(25, 64, 126, 0.12);
}

.contacts-details-row dt {
  margin: 0;
  color: #19407e;
  font-size: 20px;
  line-height: normal;
}

.contacts-details-row dd {
  margin: 0;
  color: #2c2c2c;
  font-size: 20px;
  line-height: 1.35;
  text-align: right;
  cursor: pointer;
  position: relative;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.contacts-details-row dd:focus-visible {
  outline: 2px solid rgba(25, 64, 126, 0.28);
  outline-offset: 3px;
}

.contacts-details-row dd::after {
  content: 'Скопировано';
  position: absolute;
  top: -34px;
  right: 0;
  padding: 4px 8px;
  border-radius: 6px;
  background: #242424;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.contacts-details-row dd.is-copied::after {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1720px) {
  .contacts-text,
  .contacts-details-row dt,
  .contacts-details-row dd {
    font-size: 20px;
  }
}

@media (max-width: 1280px) {
  .contacts-main {
    gap: 32px;
    padding-top: 32px;
  }

  .contacts-info-card,
  .contacts-details-card {
    padding: 34px;
  }

  .contacts-title {
    margin-top: 28px;
    margin-bottom: 22px;
    font-size: clamp(32px, 3vw, 42px);
  }

  .contacts-text,
  .contacts-details-row dt,
  .contacts-details-row dd {
    font-size: 18px;
  }

  .contacts-map-card img {
    min-height: 430px;
  }

  .contacts-details-card h2 {
    font-size: 38px;
  }
}

@media (max-width: 900px) {
  .contacts-main {
    padding: 32px 16px;
    gap: 24px;
  }

  .contacts-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contacts-info-card,
  .contacts-map-card,
  .contacts-details-card {
    border-radius: 12px;
  }

  .contacts-info-card,
  .contacts-details-card {
    padding: 24px 16px;
  }

  .contacts-outline-btn {
    min-height: 41px;
    padding: 12px 24px;
    font-size: 17px;
    border-radius: 28px;
  }

  .contacts-title {
    margin-top: 22px;
    margin-bottom: 18px;
    font-size: 32px;
    line-height: 1.16;
  }

  .contacts-text {
    gap: 14px;
    font-size: 18px;
    line-height: 1.4;
  }

  .contacts-text--compact {
    margin-top: 18px;
    font-size: 20px;
    gap: 10px;
  }

  .contacts-social {
    margin-top: 22px;
    gap: 10px;
  }

  .contacts-social img {
    width: 42px;
    height: 42px;
  }

  .contacts-info-divider {
    display: none;
  }

  .contacts-map-card img {
    min-height: 390px;
  }

  .contacts-details-card h2 {
    margin-bottom: 10px;
    font-size: 42px;
  }

  .contacts-details-row {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    padding: 14px 0;
  }

  .contacts-details-row dt,
  .contacts-details-row dd {
    font-size: 18px;
    line-height: 1.45;
  }

  .contacts-details-row dd {
    text-align: left;
  }

  .contacts-details-row dd::after {
    right: auto;
    left: 0;
  }
}

@media (max-width: 480px) {
  .contacts-title {
    font-size: 24px;
  }

  .contacts-text,
  .contacts-details-row dt,
  .contacts-details-row dd {
    font-size: 16px;
  }

  .contacts-details-card h2 {
    font-size: 24px;
  }
}
