/* brands page */
.brands-page .bl-line {
  width: 100%;
  border-bottom: 1px solid #d1d1d1;
}

/* сетка */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 0 24px;
}

/* планшеты/десктоп */
@media (min-width: 576px) {
  .brands-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .brands-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* карточка */
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  min-height: 160px; /* чтобы плитка была ровнее */
}

.brand-card:hover {
  border-color: #d12c24;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.brand-card__img {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.brand-card__img img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
  display: block;
}

.brand-card__name {
  width: 100%;
  text-align: center;
  font: 14px/18px Arial, Helvetica, sans-serif;
  color: #010101;
  word-break: break-word;
}

/* чуть приятнее на больших экранах */
@media (min-width: 992px) {
  .brand-card { min-height: 180px; padding: 14px; }
  .brand-card__img { height: 110px; }
  .brand-card__img img { max-height: 110px; }
}
