/* Марки: все логотипы сеткой карточек (модуль «Марки» на главной и «Ремонт иномарок» в тексте материалов).
   Лента js/slider.js не прокручивается: всё видно сразу, точки слайдер прячет сам. */
.brands .carousel--brands, .brands-module .carousel--brands {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: var(--space-sm);
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;

  @media (width < 1200px) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  @media (width < 960px) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

:is(.brands, .brands-module) .carousel--brands > * {
  display: grid;
  gap: var(--space-xs);
  width: auto;
  margin: 0;
  padding: var(--space-sm);
  border-radius: var(--radius-control);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  color: var(--color-ink);
  text-decoration: none;
  transition: box-shadow var(--dur-short) var(--ease-out);
}

:is(.brands, .brands-module) .carousel--brands > *:hover {
  box-shadow: var(--shadow-float);
  color: var(--color-ink);
}

:is(.brands, .brands-module) .carousel--brands img {
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: contain;
  border-radius: 0;
  mix-blend-mode: multiply;
}

:is(.brands, .brands-module) .carousel__caption {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  text-align: center;
}

:is(.brands, .brands-module) .carousel-dots {
  display: none;
}

.moduletable.brands {
  margin-top: var(--space-xl);
}
