#section-5.section-5 {
  position: relative;
  display: block;
  width: 100%;
  padding: clamp(80px, 8vw, 160px) clamp(20px, 5vw, 80px);
  background: var(--bg);
  overflow: hidden;
  box-sizing: border-box;
  font-size: initial;
  font-weight: 400;
  line-height: normal;
  text-align: left;
}

.section-5__head {
  text-align: center;
  margin-bottom: clamp(48px, 5vw, 96px);
}

#section-5 .section-5__title {
  font-size: clamp(32px, 3.8vw, 64px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 clamp(12px, 1vw, 20px);
}

#section-5 .section-5__subtitle {
  font-size: clamp(15px, 1.1vw, 22px);
  font-weight: 400;
  color: var(--muted);
  margin: 0;
}

.section-5__logo-wall {
  position: relative;
  width: 100%;
  max-width: min(1280px, 92vw);
  margin: 0 auto clamp(60px, 6vw, 100px);
  height: clamp(360px, 38vw, 560px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.section-5__logo-loop {
  display: flex;
  flex-direction: column;
  width: 100%;
  will-change: transform;
  animation: section-5-logo-scroll 50s linear infinite;
}

@keyframes section-5-logo-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

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

.section-5__logo-wall:hover .section-5__logo-loop {
  animation-play-state: paused;
}

.section-5__logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1vw, 20px);
  width: 100%;
  flex-shrink: 0;
}

.section-5__logo-card {
  width: 100%;
  height: clamp(70px, 6vw, 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFDE6;
  border: 1px solid rgba(10,20,40,.04);
  border-radius: clamp(10px, .8vw, 14px);
  padding: clamp(12px, 1vw, 18px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.section-5__logo-card:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(10,20,40,.08);
}

.section-5__logo-card img {
  max-width: 85%;
  max-height: 100%;
  object-fit: contain;
  opacity: .55;
  filter: grayscale(.35);
  transition: opacity .35s var(--ease), filter .35s var(--ease);
}

.section-5__logo-card:hover img {
  opacity: 1;
  filter: grayscale(0);
}

.section-5__cta-area {
  text-align: center;
}

.section-5__cta-area .section-5__cta {
  min-width: clamp(220px, 18vw, 320px);
  height: clamp(56px, 4vw, 72px);
  padding: 0 clamp(28px, 2.4vw, 48px);
  background: #FFFFFF;
  color: var(--main);
  border: 1px solid var(--main);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-size: clamp(15px, 1vw, 19px);
  font-weight: 500;
  text-decoration: none;
}

.section-5__cta-area .section-5__cta .cta-mask {
  position: absolute;
  inset: 0;
  background: var(--main);
  transform: translateX(-101%);
  transition: transform .55s var(--ease);
  border-radius: inherit;
}

.section-5__cta-area .section-5__cta:hover .cta-mask {
  transform: translateX(0);
}

.section-5__cta-area .section-5__cta .cta-text {
  position: relative;
  z-index: 2;
  transition: color .3s var(--ease);
}

.section-5__cta-area .section-5__cta:hover .cta-text {
  color: #FFFFFF;
}

@media (max-width: 1023px) {
  #section-5.section-5 {
    padding: clamp(60px, 14vw, 120px) clamp(16px, 5vw, 28px);
  }

  #section-5 .section-5__title {
    font-size: clamp(26px, 7vw, 36px);
  }

  #section-5 .section-5__subtitle {
    font-size: clamp(13px, 3.6vw, 17px);
  }

  .section-5__logo-wall {
    height: clamp(280px, 60vw, 400px);
    max-width: calc(100% - clamp(20px, 5vw, 32px));
  }

  .section-5__logo-grid {
    gap: clamp(10px, 2.4vw, 16px);
  }

  .section-5__logo-card {
    height: clamp(54px, 14vw, 80px);
  }

  .section-5__cta-area .section-5__cta {
    min-width: clamp(180px, 60vw, 280px);
    height: clamp(50px, 14vw, 64px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-5__logo-loop {
    animation: none;
  }

  .section-5__logo-card,
  .section-5__logo-card img,
  .section-5__cta-area .section-5__cta .cta-mask,
  .section-5__cta-area .section-5__cta .cta-text {
    transition: none !important;
  }
}
