/* ================== CONTACTS ================== */
#contacts {
  scroll-margin-top: calc(var(--header-h) + var(--tabs-h) + 20px);
}

.contact-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(18, 18, 24, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 36px -18px rgba(0, 0, 0, 0.58),
    0 4px 14px rgba(0, 0, 0, 0.18);
}

.contact-card__item {
  min-width: 0;
  padding: 17px 18px;
}

.contact-card__item + .contact-card__item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-card .label,
.contact-map-card .label {
  color: rgba(255, 255, 255, 0.50);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-card .value {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
}

.contact-card__link {
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.contact-map-card {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(18, 18, 24, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 36px -18px rgba(0, 0, 0, 0.58),
    0 4px 14px rgba(0, 0, 0, 0.18);
}

.contact-map-card__frame {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #15151b;
}

.contact-map-card__frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.contact-map-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-map-card__title {
  margin-top: 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.contact-route-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid rgba(201, 162, 77, 0.34);
  border-radius: 14px;
  color: #d7ad4a;
  background: linear-gradient(
    180deg,
    rgba(72, 58, 20, 0.84) 0%,
    rgba(34, 28, 12, 0.80) 100%
  );
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 170, 0.16),
    0 8px 18px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.18s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.contact-route-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.contact-route-btn:active {
  transform: scale(0.985);
}

@media (hover: hover) and (pointer: fine) {
  .contact-card__link:hover {
    color: #d7ad4a;
  }

  .contact-route-btn:hover {
    color: #e8c66f;
    border-color: rgba(201, 162, 77, 0.52);
  }
}

@media (max-width: 430px) {
  .contact-map-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-route-btn {
    width: 100%;
  }
}

@media (min-width: 700px) {
  .contact-card {
    grid-template-columns: 1.35fr 1fr 1fr;
  }

  .contact-card__item {
    padding: 20px 22px;
  }

  .contact-card__item + .contact-card__item {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .contact-map-card {
    margin-top: 16px;
  }

  .contact-map-card__frame {
    height: 380px;
  }

  .contact-map-card__footer {
    padding: 16px 18px;
  }

  .contact-route-btn {
    min-height: 44px;
    padding-inline: 17px;
    font-size: 14px;
  }
}
