.contacts-hero {
  min-height: clamp(620px, 84vh, 980px);
  display: flex;
  align-items: flex-start;
  padding-top: clamp(28px, 6vh, 82px);
  padding-bottom: clamp(48px, 8vh, 110px);
  background-color: #e9e9e9;
  background-image: url("../../img/contacts/contacts-hero-pen.png");
  background-position: 72% center;
  background-repeat: no-repeat;
  background-size: cover;
}

.contacts-hero-container {
  text-align: left;
}

.contacts-hero-title {
  margin: 0;
  max-width: 32ch;
  color: #0f0f0f;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.14;
  text-wrap: balance;
}

.contacts-hero-text {
  margin: 20px 0 0;
  max-width: 56ch;
  color: var(--brand-gray-500);
  font-size: clamp(16px, 1.2vw, 21px);
  line-height: 1.55;
}

.contacts-hero-cta {
  margin-top: 20px;
  color: #ffffff;
  background: #229ed9;
  box-shadow: 0 10px 24px rgba(34, 158, 217, 0.35);
}

.contacts-hero-cta:hover {
  color: #ffffff;
  background: #1d8fc6;
}

.contacts-hero-cta-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.contacts-hero-details {
  margin-top: clamp(96px, 20vh, 240px);
  width: min(1280px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(260px, 360px);
  justify-content: space-between;
  align-items: start;
  gap: 22px;
}

.contacts-detail-column {
  display: grid;
  gap: 12px;
}

.contacts-detail-column-right {
  justify-items: end;
}

.contacts-detail-item {
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
  max-width: 360px;
}

.contacts-detail-label {
  margin: 0 0 6px;
  color: #0f0f0f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contacts-detail-value {
  margin: 0;
  display: grid;
  gap: 4px;
  color: #1f2940;
  font-size: 16px;
  line-height: 1.45;
}

.contacts-detail-value a {
  width: fit-content;
  color: #1f2940;
  text-decoration: none;
}

.contacts-detail-value a:hover {
  color: #0f0f0f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 760px) {
  .contacts-hero {
    min-height: 540px;
    padding-top: 22px;
    padding-bottom: 34px;
    background-position: 62% center;
  }

  .contacts-hero-title {
    max-width: 24ch;
    font-size: clamp(26px, 8vw, 40px);
  }

  .contacts-hero-text {
    margin-top: 14px;
    font-size: 15px;
  }

  .contacts-hero-cta {
    margin-top: 16px;
  }

  .contacts-hero-details {
    margin-top: 40px;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .contacts-detail-item {
    padding: 0;
    max-width: none;
  }

  .contacts-detail-column-right {
    justify-items: start;
  }

  .contacts-detail-value {
    font-size: 15px;
  }
}

