.contacts {
  flex: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px;
  margin-top: 47px;
  margin-bottom: 120px;
  width: 100%;
}

.contacts-header {
  position: relative;
}

.contacts-title {
  text-align: left;
  font-size: 28px;
  font-family: Roboto !important;
  font-weight: 400 !important;
  margin-bottom: 8px;
  letter-spacing: 0;
  line-height: normal;
  padding: 0px 0px 0px 5px;
}

.contacts-meta {
  text-align: left;
  color: #64748b;
  margin-bottom: 40px;
  padding-left: 5px;
}

.contacts-tabs {
  display: flex;
  gap: 12px;
  width: 100%;
}

.contacts-tab {
  flex: 1;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgb(0 0 0 / 12%);
  color: #000000 !important;
  background: rgba(255,255,255,.6);
  font-size: 14px;
  cursor: pointer;

  transition: .2s ease;
}

.contacts-tab:hover {
  border-color: #00a943;
}

.contacts-tab.active {
  background: rgba(0,169,67,.12);
  border-color: #00a943;
  color: #00a943 !important;
  font-weight: 500;
  transform: scale(.97);
}

/* Сетка */
.contacts-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Карта */
.contacts-map {
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  min-height: 460px;
  border: 1px solid rgb(0 0 0 / 16%);
}

.contacts-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contacts-map-frame {
  width: 100%;
  height: 100%;
  border: 0;

  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

.contacts-map-frame.active {
  opacity: 1;
  pointer-events: auto;
}

/* Loader */
.contacts-map-loader {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;

  background: linear-gradient(
    120deg,
    rgba(255,255,255,.6),
    rgba(255,255,255,.35),
    rgba(255,255,255,.6)
  );
  backdrop-filter: blur(6px);

  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.contacts-map-loader.active {
  opacity: 1;
  pointer-events: auto;
}

.map-skeleton {
  width: 140px;
  height: 90px;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    #e5e7eb 25%,
    #f1f5f9 37%,
    #e5e7eb 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
}

.contacts-map-loader span {
  font-size: 14px;
  color: #64748b;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* Карта появляется плавно */
.contacts-map-frame {
  opacity: 0;
  transition: opacity .4s ease;
}

.contacts-map-frame.active {
  opacity: 1;
}

/* Правая колонка */
.contacts-info {
  order: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Карточки */
.contacts-block {
  display: none;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgb(0 0 0 / 16%);
  flex-direction: column;
  background: rgb(255 255 255 / 40%);
  backdrop-filter: blur(5px);
  transition: opacity .3s ease, transform .3s ease;
}

.contacts-block.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.contacts-requisites {
  display: flex;
}

.contacts-block h3 {
  font-size: 17px;
  font-weight: 500 !important;
  font-family: Roboto !important;
  margin-bottom: 14px;
}

.contacts-block p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.contacts-block p:last-child {
  margin-bottom: 0;
}

.contacts-block p strong {
  display: inline-block;
  margin-bottom: 2px;
  color: #0f172a;
}

.contacts-common {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgb(0 0 0 / 12%);
  background: rgba(0,169,67,.06);
}

.contacts-common h3 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 12px;
}

.contacts-common p {
  font-size: 14px;
  margin-bottom: 12px;
}

.contacts-phones {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contacts-phone {
  display: inline-flex;
  align-items: center;

  font-size: 18px;
  font-weight: 500;
  color: #00a943;
}

.contacts-phone span {
  font-size: 13px;
  color: #64748b;
}

/* Ссылки */
.contacts a {
  position: relative;
  color: #0f172a;
  transition: color .2s ease;
}

.contacts a:hover {
  color: #00a943;
}

/* подчёркивание снизу */
.contacts a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transition: .2s ease;
}

.contacts a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}


/* Адаптив */
@media (max-width: 900px) {

  .contacts {
    padding: 18px;
    margin-top: 30px;
  }

  .contacts-title {
    text-align: center;
    font-size: 24px;
    padding: 0;
  }

  .contacts-meta {
    text-align: center;
    padding: 0;
  }

  .contacts-content {
    padding: 20px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .contacts-info {
    order: 0;
  }

  .contacts-map {
    order: 1;
    min-height: 320px;
    margin-top: 20px;
  }

}
