/* Очень сильный селектор для hero-секции */
body .cover, body header.cover, .bg-top.cover {
  min-height: 75vh !important;
  height: auto !important; /* убираем возможную фиксированную высоту */
}

/* Стили для карточек услуг */
.service-card {
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  border-radius: 8px; /* скругление для красоты */
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.service-card .card-bg {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 250px; /* фиксированная минимальная высота для единообразия */
}

.service-card .card-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.service-card .card-content {
  position: relative;
  z-index: 2;
  color: white;
  text-shadow: 1px 1px 3px black;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit; /* чтобы контент прижимался к низу */
}

/* Добавим отступ между hero-секцией и плитками */
.flex-wrap.justify-center.pa4 {
  margin-top: 2rem;
}

/* Заставляем затемнение занимать всю высоту hero-секции */
header.cover .bg-black-60 {
  min-height: inherit;  /* наследуем min-height от родителя (75vh) */
  display: flex;
  flex-direction: column;
}