.brands {
  position: relative;
  display: flex;
  flex-shrink: 0;
  gap: 10px;

  align-items: flex-start;
  justify-content: flex-start;

  flex-direction: row;
  flex-wrap: wrap;

  width: 100%;

  padding: 20px 40px;

  --brands-per-row: 5;
}

.brands-item {
  position: relative;
  display: flex;

  flex-direction: column;

  --brand-width: calc((100% - ((var(--brands-per-row) - 1) * 10px)) / var(--brands-per-row));

  width: var(--brand-width);
  max-width: var(--brand-width);
  min-width: var(--brand-width);

  outline: 0;

  opacity: 0.6;
  background: white;
  transition: 0.3s all ease-out;
}

.brands-item:focus,
.brands-item:hover {
  opacity: 1;
  box-shadow: 0 0 0 5px rgba(90, 90, 120, 0.1);
}

.brands-item-logo {
  position: relative;
  display: flex;

  flex-direction: row;

  width: 100%;
  height: 170px;

  border: 2px solid rgba(0, 0, 0, 0.05);
  border-bottom: 0;

  background: white;
}
.brands-item-logo img {
  position: relative;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;
}

.brands-item-name {
  position: relative;
  display: flex;

  align-items: center;
  justify-content: center;

  flex-direction: row;

  width: 100%;

  padding: 7px 20px;
  padding-top: calc(7px + 3px);

  font-size: 14px;
  font-weight: 600;

  text-align: center;

  fill: currentColor;
  color: rgba(0, 0, 0, 0.75);
  background: rgba(0, 0, 0, 0.05);
}
