.brands-section {
  padding: 90px 0;
  background: white;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 28px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 22px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.brand-card:hover {
  transform: translateY(-4px);
  border-color: #dcdfe3;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

.brand-logo {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.brand-card:hover .brand-logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.03);
}

@media (max-width: 991.98px) {
  .brands-section {
    padding: 70px 0;
  }

  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .brand-card {
    min-height: 120px;
    padding: 24px;
  }
}

@media (max-width: 767.98px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .brands-section {
    padding: 56px 0;
  }

  .brands-grid {
    gap: 16px;
  }

  .brand-card {
    min-height: 105px;
    padding: 20px;
    border-radius: 18px;
  }

  .brand-logo {
    max-height: 40px;
  }
}