
.page-template-page-industries h2{
  margin-bottom: 30px;
}
/* --- Стили для секции "Отрасли" --- */
.industries {
  padding: 0 0 80px;
  /* Внешние отступы для секции */
  font-family: 'Inter', sans-serif;
  /* Пример шрифта, предполагается, что он подключен глобально */
}

/* Стили для заголовка секции */
.industries__title {
  font-size: 34px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 40px;
  color: #fff;
}
.industries__text{
  margin-bottom: 60px;
}

/* Контейнер для карточек (Grid-сетка) */
.industries__grid {
  display: grid; 
  /* 4 колонки на больших экранах */
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  /* Расстояние между карточками */
}

/* --- Стили для отдельной карточки --- */
.industry-card {
  position: relative;
  display: block;
  border-radius: 30px;
  /* Скругление углов */
  overflow: hidden;
  /* Обрезаем все, что выходит за рамки */
  text-decoration: none;
  color: white;
  height: 250px;
  /* Фиксированная высота для карточек */
}

.industry-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  /* Градиент для затемнения нижней части изображения, чтобы текст был читаемым */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
  transition: opacity 0.3s ease;
}


/* Обертка для изображения для управления анимацией */
.industry-card__image-wrapper {
  width: 100%;
  height: 100%;
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Изображение полностью покрывает блок, сохраняя пропорции */
  transition: transform 0.4s ease;
  /* Плавный переход для анимации увеличения */
}

/* Контент карточки (заголовок и стрелка) */
.industry-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  /* Размещаем контент поверх градиента */
}

/* Заголовок карточки */
.info_page h3.industry-card__title {
  font-size: 21px;
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
  color: #fff;
}

/* Стрелка */
.industry-card__arrow {
  flex-shrink: 0;
  /* Запрещаем стрелке сжиматься */
  margin-left: 10px;
  transition: transform 0.3s ease;
  /* Анимация движения стрелки */
}

/* --- Анимации при наведении --- */
.industry-card:hover img {
  transform: scale(1.05);
  /* Увеличиваем изображение */
}

.industry-card:hover .industry-card__arrow {
  transform: translateX(5px);
  /* Сдвигаем стрелку вправо */
}

/* --- Адаптивность --- */

/* Планшеты (до 992px) */
@media (max-width: 992px) {
  .industries__grid {
    /* 2 колонки */
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Мобильные устройства (до 576px) */
@media (max-width: 576px) {
  .industries {
    padding: 40px 0;
  }

  .industries__title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .industries__grid {
    /* 1 колонка */
    grid-template-columns: 1fr;
  }

  .industry-card {
    height: 380px;
    /* Уменьшаем высоту на мобильных */
  }
}