/* Contacts Section */

.contacts {
  padding: 40px 0 64px;
}

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

/* Row 2: requisites (1 col) + map (3 cols) */
.contacts__card--requisites {
  grid-column: 1 / 3;
}

.contacts__map {
  grid-column: 3 / 5;
  overflow: hidden;
  border: 1px solid #D9DDDE;
}

.contacts__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
}

/* Card */

.contacts__card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid #D9DDDE;
  background: #fff;
}

.contacts__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.contacts__card-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 130%;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contacts__card-subtitle {
  font-weight: 600;
  font-size: 16px;
  line-height: 130%;
  text-transform: uppercase;
  margin-top: 16px;
  margin-bottom: 8px;
}

.contacts__dept {
  font-size: 12px;
  line-height: 130%;
  color: #A4A4A4;
  margin-bottom: 4px;
}

.contacts__phone {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 150%;
  margin-bottom: 2px;
}

.contacts__phone:hover {
  color: var(--color-red);
}

.contacts__socials {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.contacts__social {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.contacts__social:hover {
  opacity: 0.8;
}

.contacts__email {
  font-size: 14px;
  line-height: 150%;
}

.contacts__email:hover {
  color: var(--color-red);
}

.contacts__address {
  font-size: 14px;
  line-height: 150%;
  margin-bottom: 4px;
}

.contacts__hours {
  font-size: 14px;
  line-height: 150%;
}

.contacts__requisites {
  font-size: 13px;
  line-height: 160%;
}

.contacts__requisites p {
  margin-bottom: 4px;
}

/* Tablet — 1080px */
@media (max-width: 1080px) {
  .contacts__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts__card--requisites {
    grid-column: 1 / 2;
  }

  .contacts__map {
    grid-column: 2 / 3;
  }
}

/* Mobile — 768px */
@media (max-width: 768px) {
  .contacts {
    padding: 24px 0 40px;
  }

  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contacts__card--requisites,
  .contacts__map {
    grid-column: 1 / 2;
  }

  .contacts__map iframe {
    min-height: 220px;
  }
}
