.brands {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  width: 100%;
  padding: 100px 40px;
}

.brands-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.brands-badge {
  padding: 8px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 39px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  line-height: 2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.brands-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -1.8px;
  line-height: 1.1em;
  color: var(--color-text);
}

.brands-marquee {
  width: 100%;
  max-width: 1440px;
  height: 98px;
  padding: 0 10px;
  overflow: hidden;
}

.brands-track {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  width: max-content;
  animation: brands-marquee-scroll 45s linear infinite;
}

.brands-group {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
}

.brands-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 194px;
  height: 100%;
  padding: 14px 28px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
}

.brands-chip img {
  max-width: 100%;
  max-height: 71px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brands-chip-lg {
  padding: 2px 16px;
}

.brands-chip-lg img {
  max-height: 96px;
}

.brands-chip-xl {
  padding: 0 12px;
}

.brands-chip-xl img {
  max-height: 98px;
}

@keyframes brands-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .brands {
    padding: 70px 40px 80px;
  }

  .brands-title {
    font-size: 36px;
  }
}

@media (max-width: 600px) {
  .brands {
    gap: 30px;
    padding: 50px 20px;
  }

  .brands-title {
    font-size: 28px;
  }
}
