.hero__companies {
  width: 90%;
  max-width: 1920px;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  height: 100px;
}

.hero__companies:before,
.hero__companies:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  z-index: 1;
  pointer-events: none;
}

.hero__companies:before {
  left: 0;
  background: linear-gradient(to right, #fff, #fff0);
}

.hero__companies:after {
  right: 0;
  background: linear-gradient(to left, #fff, #fff0);
}

.hero__logos {
  display: flex;
  gap: var(--logo-gap);
  width: calc((100px + var(--logo-gap)) * 2 * var(--logos-length));
  animation: scrollLeft var(--animation-speed) linear infinite;
}

.company-logo {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.company-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@keyframes scrollLeft {
  0% {
    transform: translate(0);
  }
  to {
    transform: translate(-50%);
  }
}

@media (max-width: 1024px) {
  .hero__companies {
    margin-top: 45px;
  }
}

@media (max-width: 767px) {
  .hero__companies {
    margin-top: 16px;
  }
}