.fy-partners {
  position: relative;
  z-index: 9;
  background: var(--fy-secondary);
  color: #ffffff;
  padding-block: 118px 54px;
  overflow: hidden;
  isolation: isolate;
}

.fy-partners::before {
  content: "";
  position: absolute;
  inset-inline: -2px;
  top: 0;
  height: 2px;
  background: #ffffff;
  z-index: 3;
  pointer-events: none;
}

.fy-partners__curve {
  position: absolute;
  left: 50%;
  top: -142px;
  width: 138%;
  height: 250px;
  max-width: none;
  background: #ffffff;
  border: 0;
  outline: 0;
  box-shadow: none;
  border-radius: 0 0 50% 50% / 0 0 75% 75%;
  z-index: 1;
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-transform: translateX(-50%) translateZ(0);
  transform: translateX(-50%) translateZ(0);
}

.fy-partners__curve::before {
  content: "";
  position: absolute;
  inset-inline: -3px;
  top: -3px;
  height: 70%;
  background: #ffffff;
  pointer-events: none;
}

.fy-partners__inner {
  position: relative;
  z-index: 2;
}

.fy-partners__head {
  width: 100%;
  max-width: none;
  margin: 0 auto 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fy-partners__head .fy-section-kicker {
  color: #ffffff;
  text-align: center;
  margin-inline: auto;
}

.fy-partners__head .fy-section-title {
  color: #ffffff;
  text-align: center;
  margin-inline: auto;
  margin-block-end: 0;
}

.fy-partners__viewport {
  width: 100%;
  overflow: hidden;
  direction: ltr;
  padding-block: 8px 6px;
  -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%
  );
}

.fy-partners__track {
  display: flex;
  width: max-content;
  animation: fyPartnersMarquee 56s linear infinite;
  will-change: transform;
}

.fy-partners__group {
  display: flex;
  align-items: center;
  gap: 86px;
  flex: 0 0 auto;
  padding-inline-end: 86px;
}

.fy-partners__logo {
  flex: 0 0 auto;
  width: 196px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fy-partners__logo img {
  display: block;
  max-width: 100%;
  max-height: 78px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 1;
  user-select: none;
  pointer-events: none;
  transition: transform var(--fy-transition);
}

.fy-partners__logo:hover img {
  transform: translateY(-2px);
}

@keyframes fyPartnersMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fy-partners__track {
    animation: none;
  }
}

@media (max-width: 992px) {
  .fy-partners {
    padding-block: 108px 48px;
  }

  .fy-partners__curve {
    top: -112px;
    width: 160%;
    height: 200px;
  }

  .fy-partners__head {
    margin-block-end: 26px;
  }

  .fy-partners__group {
    gap: 64px;
    padding-inline-end: 64px;
  }

  .fy-partners__logo {
    width: 188px;
    height: 76px;
  }

  .fy-partners__logo img {
    max-height: 76px;
  }
}

@media (max-width: 680px) {
  .fy-partners {
    padding-block: 96px 42px;
  }

  .fy-partners__head {
    margin-block-end: 24px;
  }

  .fy-partners__group {
    gap: 46px;
    padding-inline-end: 46px;
  }

  .fy-partners__logo {
    width: 168px;
    height: 70px;
  }

  .fy-partners__logo img {
    max-height: 70px;
  }
}

@media (max-width: 480px) {
  .fy-partners {
    padding-block: 86px 38px;
  }

  .fy-partners__curve {
    top: -100px;
    width: 190%;
    height: 178px;
  }

  .fy-partners__group {
    gap: 34px;
    padding-inline-end: 34px;
  }

  .fy-partners__logo {
    width: 148px;
    height: 64px;
  }

  .fy-partners__logo img {
    max-height: 64px;
  }
}