body,
html {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.carousel {
  --card-width: clamp(280px, 24vw, 380px);
  --card-height: clamp(430px, 62svh, 620px);
  --card-gap: clamp(22px, 3vw, 44px);

  width: 100vw;
  margin: clamp(28px, 6svh, 62px) calc(50% - 50vw) 0;
  overflow: hidden;
  position: relative;
}

.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(9vw, 120px);
  z-index: 3;
  pointer-events: none;
}

.carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.carousel::after {
  right: 0;
  background: linear-gradient(270deg, var(--blue), transparent);
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: opinions-marquee 42s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.group {
  display: flex;
  align-items: stretch;
  gap: var(--card-gap);
  padding-right: var(--card-gap);
  flex: 0 0 auto;
}

.card {
  flex: 0 0 var(--card-width);
  width: var(--card-width);
  height: var(--card-height);
  padding: clamp(16px, 2vw, 26px);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--green), var(--orange));
  box-shadow: 0 18px 38px rgba(26, 38, 62, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.26);
}

.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.opinion-text {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: 100%;
  padding: clamp(8px, 1.4vw, 18px);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: black;
  font-size: clamp(13px, 1.45svh, 16px);
  line-height: 1.32;
  overflow: hidden;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.8);
}

.card:nth-child(3) .opinion-text,
.card:nth-child(5) .opinion-text {
  font-size: clamp(11px, 1.28svh, 14px);
  line-height: 1.22;
}

@keyframes opinions-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

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

.carousel:hover .carousel-track {
  animation-play-state: paused;
}

@media (max-width: 760px) {
  .carousel {
    --card-width: min(78vw, 330px);
    --card-height: clamp(390px, 58svh, 520px);
    --card-gap: 18px;

    margin-top: 28px;
  }

  .carousel::before,
  .carousel::after {
    display: none;
  }

  .carousel-track {
    animation-duration: 34s;
  }

  .card {
    border-radius: 16px;
    padding: 14px;
  }

  .opinion-text {
    padding: 8px;
    font-size: clamp(12px, 3.25vw, 14px);
    line-height: 1.28;
  }

  .card:nth-child(3) .opinion-text,
  .card:nth-child(5) .opinion-text {
    font-size: clamp(10px, 2.75vw, 12px);
    line-height: 1.18;
  }
}
