input[type="date"].form-control,
input[type="time"].form-control,
input[type="datetime-local"].form-control,
input[type="month"].form-control {
  line-height: 20px !important;
}
label {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #888a91;
}
.filters-button .btn {
  height: 40px;
  font-weight: 500;
}
.filters-button .btn:first-child {
  margin-top: 28px;
}
.article-title .media-heading a:hover {
  text-decoration: none;
}
.fa-hand-point-right {
  font-size: 24px;
  vertical-align: middle;
}
.news__title {
  margin-left: 0;
}
.news__hits {
  color: #667;
  font-size: 0.8rem;
}

/* ==========================================================================
   МАКЕТ: КОМПАКТНЫЕ МЕДИА-КАРТОЧКИ (.news-media-category / .media-card)
   ========================================================================== */
/* Настройка сетки: выравниваем Bootstrap-колонки в одной строке строго по высоте */
.news-media-category,
.news-media-category .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

/* Сетка для макета компактных медиа-карточек */
.news-media-category .news__item {
  padding: 12px;
  display: flex;
  flex-direction: column;
  height: 100%; /* Элемент займет 100% высоты растянутой колонки */
  width: 100%; /* Защита от схлопывания по ширине */
}

/* Тело медиа-карточки */
.media-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: #ffffff;
  border: 1px solid #e3e9ef;
  border-radius: 0.75rem;
  box-sizing: border-box;
  text-align: center;
  width: 100%;
  height: 100%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* Эффект ховера */
.media-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(41, 67, 90, 0.08);
}

/* Зона для логотипа/изображения */
.media-card__media {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 140px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

/* Изображение внутри зоны */
.media-card__logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Логотип впишется в рамки без деформации пропорций */
  display: block;
}

/* Заглушка, если картинки нет */
.media-card__placeholder {
  font-size: 3.5rem;
  color: #b0bec5;
}

/* Контентная зона */
.media-card__content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

/* Заголовок медиа-карточки */
.media-card__title {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  color: #29435a;
  margin: 0;
  padding: 0 5px;
  text-align: center;
  white-space: normal;

  /*
   * Значение -webkit-box и box-orient являются международным CSS-стандартом
   * для включения режима ограничения строк. Без них line-clamp будет проигнорирован.
   */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  -webkit-line-clamp: 3; /* Плавно зажимаем длинные заголовки строго до лимит строк */
  overflow: hidden; /* Прячем текст, который не поместился в лимит строк */
  text-overflow: ellipsis; /* Троеточие в конце строки */
}

/*---------MEDIA QUERIES---------*/
@media (max-width: 1024px) {
  label {
    font-size: 12px;
  }
}
