.brands__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 46rem;
  margin-bottom: 40px;
}

.brands__intro {
  font-size: clamp(1.0625rem, 0.95rem + 0.3vw, 1.25rem);
  color: var(--text);
}

.brands__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .3s ease, box-shadow .3s ease;
}

.brand-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--brand-color, var(--light));
}

.brand-card__media img {
  position: absolute;
  top: 10%;
  left: 15%;
  width: 70%;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.22));
  transition: transform .4s ease;
}

.brand-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 10px;
  padding: 24px 24px 28px;
}

.brand-card__tag {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-card__name { font-size: clamp(1.375rem, 1rem + 0.9vw, 1.75rem); }

.brand-card__text { color: var(--text); }

@media (min-width: 600px) and (max-width: 899px) {
  .brand-card__media { aspect-ratio: 16 / 10; }
}

@media (min-width: 900px) {
  .brands__header { margin-bottom: 56px; }
  .brands__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .brand-card__media { aspect-ratio: 1 / 1; }
  .brand-card__body { padding: 28px 28px 32px; }
}

@media (hover: hover) {
  .brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(13, 40, 70, 0.12);
  }
  .brand-card:hover .brand-card__media img { transform: scale(1.04); }
}