.sponsors {
  overflow: hidden;
  padding: 95px 0 85px;
  background: #f4f1ed;
}

.sponsors-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 45px;
  margin-bottom: 35px;
}

.sponsors-heading h2 {
  margin: 0;
}

.sponsors-heading > p {
  max-width: 440px;
  margin: 0 0 7px;
  color: var(--grey);
  font-size: 13px;
  line-height: 1.7;
}

.sponsors-window {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px 0 14px;
}

.sponsors-window::before,
.sponsors-window::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: clamp(35px, 8vw, 130px);
  pointer-events: none;
}

.sponsors-window::before {
  left: 0;
  background: linear-gradient(90deg,#f4f1ed,rgba(244,241,237,0));
}

.sponsors-window::after {
  right: 0;
  background: linear-gradient(-90deg,#f4f1ed,rgba(244,241,237,0));
}

.sponsors-track {
  display: flex;
  width: max-content;
  animation: sponsors-scroll 48s linear infinite;
  will-change: transform;
}

.sponsors-window:hover .sponsors-track,
.sponsors-window:focus-within .sponsors-track {
  animation-play-state: paused;
}

.sponsors-set {
  display: flex;
  gap: 18px;
  padding-right: 18px;
}

.sponsor-card {
  display: grid;
  place-items: center;
  width: clamp(260px, 26vw, 350px);
  height: 190px;
  padding: 25px 30px;
  border: 1px solid #e5dfda;
  border-radius: 12px;
  background: #fff;
  transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}

.sponsor-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 14px 30px rgba(21,21,21,.08);
}

.sponsor-card img {
  display: block;
  width: 100%;
  max-width: 290px;
  height: 128px;
  object-fit: contain;
}

.sponsor-card--wide {width:clamp(360px,34vw,455px)}
.sponsor-card--wide img {max-width:395px;height:138px}
.sponsor-card--portrait img {max-width:210px;height:142px}

@keyframes sponsors-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 767px) {
  .sponsors {
    padding: 72px 0 68px;
  }
  .sponsors-heading {
    display: block;
    margin-bottom: 27px;
  }
  .sponsors-heading > p {
    margin-top: 18px;
  }
  .sponsor-card {
    width: 250px;
    height: 165px;
    padding: 20px 24px;
  }
  .sponsor-card img {
    height: 112px;
  }
  .sponsor-card--wide {width:340px}
  .sponsor-card--wide img {height:118px}
  .sponsor-card--portrait img {height:122px}
}

@media (prefers-reduced-motion: reduce) {
  .sponsors-window {
    overflow-x: auto;
  }
  .sponsors-track {
    animation: none;
  }
}
