.home-brand-marquee {
  margin: 0 0 var(--bottom-block-margin, 48px);
}

.home-brand-marquee__viewport {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
}

.home-brand-marquee__track {
  display: flex;
  width: max-content;
}

.home-brand-marquee__track.is-animated {
  animation: home-brand-marquee-scroll var(--home-brand-marquee-duration, 150s) linear infinite;
}

.home-brand-marquee__viewport:hover .home-brand-marquee__track,
.home-brand-marquee__viewport:focus-within .home-brand-marquee__track {
  animation-play-state: paused;
}

.home-brand-marquee__list {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-brand-marquee__item {
  flex: 0 0 220px;
  height: 104px;
}

.home-brand-marquee__link {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 14px 20px;
  border: 1px solid #cba480;
  border-radius: 20px;
  background: #fff;
  color: #1b1b1b;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-brand-marquee__link:hover {
  border-color: #9e734b;
  box-shadow: 0 8px 18px rgba(109, 75, 43, 0.16);
  transform: translateY(-2px);
}

.home-brand-marquee__link:focus-visible {
  outline: 3px solid #1b1b1b;
  outline-offset: 3px;
}

.home-brand-marquee__image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1);
}

.home-brand-marquee__label {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

@keyframes home-brand-marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 767px) {
  .home-brand-marquee__list {
    gap: 12px;
  }

  .home-brand-marquee__item {
    flex-basis: 168px;
    height: 80px;
  }

  .home-brand-marquee__link {
    padding: 10px 14px;
    border-radius: 16px;
  }

  .home-brand-marquee__label {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-brand-marquee__track.is-animated {
    animation: none;
  }

  .home-brand-marquee__link {
    transition: none;
  }
}
