/* TRUSTED PARTNERS */

.trusted-partners {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: #080808;
  color: #ffffff;
  border-top: 1px solid #202020;
  border-bottom: 1px solid #202020;
}

.trusted-partners__title {
  margin: 0 0 36px;
  color: #ffffff;
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.trusted-partners__marquee {
  position: relative;
  display: flex;
  width: 100%;
  overflow: hidden;
  gap: 14px;
  padding: 4px 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}

.trusted-partners__track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  min-width: max-content;
  animation: trusted-marquee 46s linear infinite;
}

.trusted-partners__marquee:hover .trusted-partners__track {
  animation-play-state: paused;
}

.trusted-logo {
  width: 174px;
  min-height: 138px;
  flex: 0 0 auto;
  padding: 16px 14px 14px;
  border-radius: 24px;
  background: #121212;
  border: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.trusted-logo img {
  max-width: 100%;
  height: 62px;
  display: block;
  object-fit: contain;
  filter: grayscale(1) brightness(1.2);
  opacity: 0.82;
  transition:
    filter 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

.trusted-logo span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.trusted-logo:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 25, 32, 0.44);
  background: #151515;
}

.trusted-logo:hover img {
  filter: grayscale(0) brightness(1);
  opacity: 1;
  transform: scale(1.03);
}

.trusted-logo:hover span {
  color: #ffffff;
}

@keyframes trusted-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - 14px));
  }
}

/* TABLET */

@media (min-width: 768px) {
  .trusted-partners {
    padding: 88px 0;
  }

  .trusted-partners__title {
    margin-bottom: 44px;
    max-width: 940px;
    font-size: clamp(3rem, 5.6vw, 5rem);
    line-height: 1.02;
  }

  .trusted-logo {
    width: 194px;
    min-height: 152px;
    padding: 18px 16px 16px;
    border-radius: 28px;
  }

  .trusted-logo img {
    height: 72px;
  }

  .trusted-logo span {
    font-size: 0.82rem;
  }
}

/* DESKTOP */

@media (min-width: 1120px) {
  .trusted-partners {
    padding: 108px 0;
  }

  .trusted-partners__title {
    margin-bottom: 50px;
    font-size: clamp(3.4rem, 4.8vw, 5.6rem);
  }

  .trusted-partners__track {
    gap: 18px;
    animation-duration: 52s;
  }

  .trusted-logo {
    width: 220px;
    min-height: 166px;
    padding: 22px 20px 18px;
    border-radius: 32px;
  }

  .trusted-logo img {
    height: 82px;
  }

  .trusted-logo span {
    font-size: 0.86rem;
  }

  @keyframes trusted-marquee {
    from {
      transform: translateX(0);
    }

    to {
      transform: translateX(calc(-100% - 18px));
    }
  }
}

/* MOBILE */

@media (max-width: 767px) {
  .trusted-partners {
    padding: 56px 0;
  }

  .trusted-partners__title {
    margin-bottom: 26px;
    font-size: clamp(1.65rem, 8vw, 2.25rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .trusted-partners__marquee {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 6%,
      #000 94%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 6%,
      #000 94%,
      transparent 100%
    );
  }

  .trusted-logo {
    width: 144px;
    min-height: 118px;
    padding: 13px 12px 12px;
    border-radius: 20px;
    gap: 10px;
  }

  .trusted-logo img {
    height: 54px;
  }

  .trusted-logo span {
    font-size: 0.72rem;
  }

  .trusted-partners__track {
    animation-duration: 38s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trusted-partners__track {
    animation: none;
  }

  .trusted-partners__marquee {
    overflow-x: auto;
    padding-bottom: 8px;
  }
}