.contacts-lead {
  max-width: 760px;
  margin: 16px auto 0;
  color: #53657a;
  font-size: 17px;
  line-height: 1.6;
}

.contacts-page {
  position: relative;
  z-index: 10;
  padding: 8px 0 64px;
  background: #f5f7fa;
}

.contacts-page__content {
  padding-top: 12px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  min-width: 0;
  min-height: 210px;
  padding: 24px;
  border: 1px solid #dbe3ec;
  border-top: 3px solid #0879e8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(27, 50, 78, 0.06);
}

.contact-card__icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #eaf4ff;
  color: #0879e8;
  font-size: 19px;
}

.contact-card h2,
.contacts-map h2,
.company-details__item h2 {
  margin: 16px 0 10px;
  color: #153250;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0;
}

.contact-card__primary,
.contact-card__secondary {
  display: block;
  width: fit-content;
  color: #086ed6;
  line-height: 1.7;
  text-decoration: none;
}

.contact-card__primary {
  font-size: 20px;
  font-weight: 700;
}

.contact-card__secondary {
  margin-top: 2px;
  font-size: 16px;
}

.contact-card__email {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.contact-card__note,
.contact-card address {
  display: block;
  margin-top: 8px;
  color: #617186;
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
}

.messenger-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.messenger-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #cbd8e6;
  border-radius: 5px;
  color: #174f82;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.messenger-links a:hover,
.messenger-links a:focus-visible {
  border-color: #0879e8;
  background: #f0f7ff;
  color: #086ed6;
}

.contacts-map {
  margin-top: 34px;
}

.contacts-map h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.contacts-map iframe {
  display: block;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #fff;
}

.company-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid #dbe3ec;
}

.company-details__item {
  min-width: 0;
}

.company-details__item h2 {
  margin-top: 0;
}

.company-details__item p {
  margin: 0 0 10px;
  color: #526277;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.contacts-response-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 26px;
  padding: 14px 16px;
  border-left: 3px solid #0879e8;
  background: #eaf4ff;
  color: #38536f;
  font-size: 14px;
  line-height: 1.6;
}

.contacts-response-note i {
  margin-top: 4px;
  color: #0879e8;
}

@media (max-width: 767px) {
  .contacts-lead {
    padding: 0 14px;
    font-size: 15px;
  }

  .contacts-page {
    padding-bottom: 44px;
  }

  .contacts-grid,
  .company-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-card {
    min-height: 0;
    padding: 20px;
  }

  .contact-card__primary {
    font-size: 18px;
  }

  .contacts-map iframe {
    height: 320px;
  }
}
