/* =========================
   CONTACTS PAGE
   /pages/contacts/contacts.html
   ========================= */

.contacts-page {
  padding: 0 0 40px;
}

/* Заголовок секции */
.contacts__title {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
  color: var(--ink);
}

/* Две карточки по горизонтали */
.contacts__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

/* Карточка контакта */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;

  padding: 20px 22px;
  background: #fff;
  border: 1px solid rgba(0, 44, 95, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(2, 44, 95, 0.06);

  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(2, 44, 95, 0.1);
  border-color: rgba(0, 108, 255, 0.12);
}

.contact-card__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--blue);
}

.contact-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-card__label {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.contact-card__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

a.contact-card__value:hover {
  color: var(--blue);
}

/* Широкая карточка (адрес) */
.contact-card--wide {
  margin-bottom: 18px;
}

.contact-card__link {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  margin-top: 4px;
}

.contact-card__link:hover {
  text-decoration: underline;
}

/* Карточка Бухгалтерия */
.contact-card--buh {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
}

.contact-card--buh .contact-card__label {
  width: 100%;
}

.contact-card__icon--large {
  width: 32px;
  height: 32px;
  margin-right: 4px;
}

.contact-card__items {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  width: 100%;
}

.contact-card__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-card__item-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--blue);
}

.contact-card__item-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Блок карты */
.contacts--map .contacts__title {
  margin-bottom: 18px;
}

.contacts__map-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 16px;
  overflow: hidden;
  background: #f0f4f8;
}

.contacts__map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
}

/* Адаптив */
@media (max-width: 700px) {
  .contacts__row {
    grid-template-columns: 1fr;
  }

  .contact-card--buh {
    flex-direction: column;
  }

  .contact-card__items {
    flex-direction: column;
    gap: 14px;
  }
}
