.home-contacts {
  padding: 40px 0 54px;
  background: #fff;
}

.home-contacts__title {
  margin: 0;
  color: #1a2332;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}

.home-contacts__subtitle {
  max-width: 850px;
  margin: 10px 0 26px;
  color: #64748b;
  font-size: 16px;
  line-height: 1.65;
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 28px;
}

.contacts-grid--single {
  grid-template-columns: minmax(0, 680px);
}

.contacts-card {
  display: flex;
  padding: 32px;
  flex-direction: column;
  gap: 18px;
  border: 1px solid #e1ecf4;
  border-radius: 24px;
  background: linear-gradient(145deg, #fff 0%, #f4fafd 100%);
  box-shadow: 0 16px 38px rgba(31, 55, 86, 0.08);
}

.contacts-list {
  display: grid;
  gap: 14px;
}

.contacts-item {
  display: flex;
  padding: 14px 18px;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid #e8eff5;
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.contacts-item:hover {
  border-color: #cfe1ec;
  box-shadow: 0 8px 20px rgba(31, 55, 86, 0.07);
  transform: translateY(-1px);
}

.contacts-item__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #e6f4fb 0%, #cbe6f4 100%);
  color: var(--smd-primary);
}

.contacts-item__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contacts-item__label {
  margin-bottom: 6px;
  color: #7b8997;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.contacts-item__value {
  color: #1a2332;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

.contacts-item__value a {
  transition: color 0.2s;
}

.contacts-item__value a:hover {
  color: var(--smd-primary);
}

.contacts-item__phones {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 2px;
}

.contacts-socials {
  display: flex;
  margin-top: 6px;
  align-items: center;
  gap: 10px;
}

.contacts-social {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 55, 86, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contacts-social:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(31, 55, 86, 0.18);
}

.contacts-social svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.contacts-social--phone {
  background: var(--smd-primary);
}

.contacts-social--phone svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contacts-social--telegram {
  background: #27a6e6;
}

.contacts-social--whatsapp {
  background: #25d366;
}

.contacts-map {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 24px;
  background: #eef6fb;
  box-shadow: 0 16px 38px rgba(31, 55, 86, 0.1);
}

.contacts-map__embed,
.contacts-map__embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.contacts-map__fallback {
  display: flex;
  min-height: 420px;
  padding: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: #4a5d70;
  text-align: center;
  line-height: 1.6;
}

.contacts-map__pin {
  font-size: 40px;
}

.contacts-map__button {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: inline-flex;
  min-height: 42px;
  padding: 7px 16px 7px 8px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(220, 229, 236, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1a2332;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(31, 55, 86, 0.12);
}

.contacts-map__button span {
  display: inline-flex;
  min-width: 28px;
  height: 28px;
  padding: 0 4px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffd54f;
  color: #1a2332;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .contacts-map,
  .contacts-map__embed,
  .contacts-map__embed iframe,
  .contacts-map__fallback {
    min-height: 320px;
  }
}

@media (max-width: 600px) {
  .home-contacts {
    padding: 30px 0 38px;
  }

  .home-contacts__title {
    font-size: 23px;
  }

  .home-contacts__subtitle {
    margin-bottom: 18px;
    font-size: 14px;
  }

  .contacts-grid {
    gap: 18px;
  }

  .contacts-card {
    padding: 16px;
    border-radius: 18px;
  }

  .contacts-item {
    padding: 12px;
    gap: 12px;
  }

  .contacts-item__icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .contacts-item__value {
    font-size: 14px;
  }

  .contacts-map {
    border-radius: 18px;
  }

  .contacts-map__button {
    top: 10px;
    right: 10px;
  }
}
