.contacts {
  padding-block: clamp(3rem, calc(80 / var(--design-width) * 100vw), 5rem);
}

.contacts__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, calc(48 / var(--design-width) * 100vw), 3rem);
  align-items: stretch;
}

.contacts__map {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: clamp(16rem, calc(400 / var(--design-width) * 100vw), 25rem);
  border-radius: clamp(1rem, calc(20 / var(--design-width) * 100vw), 1.25rem);
  overflow: hidden;
  background-color: #e8e2da;
}

.contacts__map iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contacts__title {
  font-size: var(--text-hero-title);
  font-weight: 600;
  line-height: 1.15;
  color: #2b2b2b;
}

.contacts__list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, calc(28 / var(--design-width) * 100vw), 1.75rem);
  margin-top: clamp(1.5rem, calc(40 / var(--design-width) * 100vw), 2.5rem);
}

.contacts__item {
  display: flex;
  flex-direction: column;
  gap: clamp(0.25rem, calc(6 / var(--design-width) * 100vw), 0.375rem);
}

.contacts__label,
.contacts__value {
  margin: 0;
  font-size: clamp(1rem, calc(18 / var(--design-width) * 100vw), 1.125rem);
  font-weight: 600;
  line-height: 1.45;
  color: #2b2b2b;
}

.contacts__value a {
  color: inherit;
  transition: opacity 0.2s ease;
}

.contacts__value a:hover {
  opacity: 0.75;
}

.contacts__cta {
  align-self: flex-start;
  margin-top: clamp(1.5rem, calc(40 / var(--design-width) * 100vw), 2.5rem);
  background: linear-gradient(90deg, #c9a96e, #d8c3a5);
}

.contacts__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.25rem, calc(32 / var(--design-width) * 100vw), 2rem);
  margin-top: auto;
  padding-top: clamp(1.5rem, calc(40 / var(--design-width) * 100vw), 2.5rem);
  list-style: none;
}

.contacts__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2rem, calc(40 / var(--design-width) * 100vw), 2.5rem);
  height: clamp(2rem, calc(40 / var(--design-width) * 100vw), 2.5rem);
  transition: opacity 0.2s ease;
}

.contacts__social-link:hover {
  opacity: 0.8;
}

.contacts__social-link[aria-label="MAX"] {
  display: none;
}

.contacts__social-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 900px) {
  .contacts__layout {
    grid-template-columns: 1fr;
  }

  .contacts__map {
    width: min(100%, clamp(16rem, calc(400 / var(--design-width) * 100vw), 25rem));
    aspect-ratio: 1 / 1;
    margin-inline: auto;
  }

  .contacts__social {
    margin-top: clamp(1.5rem, calc(40 / var(--design-width) * 100vw), 2.5rem);
  }
}

@media (max-width: 700px) {
  .contacts__map {
    display: none;
  }
}
