.contacts-section {
  padding: 82px 0;
  background: #f3f0eb;
}

.contacts-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  min-height: 570px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(181, 150, 106, 0.32);
  box-shadow: 0 26px 70px rgba(35, 30, 24, 0.1);
}

.contacts-photo-wrap {
  position: relative;
  min-height: 100%;
  background: #d9d3c8;
}

.contacts-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(31, 32, 32, 0.12));
  pointer-events: none;
}

.contacts-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.contacts-content {
  padding: 54px 58px 48px;
}

.contacts-content h2 {
  max-width: 680px;
  margin: 10px 0 18px;
  font-size: clamp(32px, 4vw, 52px);
}

.contacts-lead {
  max-width: 720px;
  margin: 0 0 30px;
  color: #5e5b56;
  font-size: 15px;
  line-height: 1.75;
}

.contacts-person {
  padding: 23px 0;
  border-top: 1px solid #e7e1d8;
}

.contacts-person h3,
.contacts-expert h3 {
  margin: 0 0 5px;
  color: #1f2020;
  font-size: 21px;
}

.contacts-person p,
.contacts-expert p {
  max-width: 690px;
  margin: 8px 0 0;
  color: #6a6762;
  font-size: 12px;
  line-height: 1.65;
}

.contacts-role {
  color: #9a794e !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.contacts-expert {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 17px;
  padding: 23px 24px;
  background: rgba(181, 150, 106, 0.1);
  border-left: 3px solid #b5966a;
}

.contacts-expert-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: #b5966a;
  border-radius: 50%;
  font-weight: 800;
}

.contacts-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
}

.contacts-actions p {
  max-width: 420px;
  margin: 0;
  color: #817d76;
  font-size: 10px;
  line-height: 1.55;
}

.lot-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.lot-actions > button,
.lot-details-link {
  flex: 1 1 0;
}

.lot-details-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 10px 12px;
  color: #1f2020;
  background: #b5966a;
  border: 1px solid #b5966a;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: filter 180ms ease, transform 180ms ease;
}

.lot-details-link:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .contacts-card {
    grid-template-columns: 1fr;
  }

  .contacts-photo-wrap {
    min-height: 420px;
  }

  .contacts-content {
    padding: 38px 28px 34px;
  }
}

@media (max-width: 520px) {
  .contacts-section {
    padding: 62px 0;
  }

  .contacts-photo-wrap {
    min-height: 350px;
  }

  .contacts-content {
    padding: 32px 20px 28px;
  }

  .contacts-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .lot-actions {
    flex-direction: column;
  }
}
