/* ==================== ДОВОЛЬНЫЕ ПОЛЬЗОВАТЕЛИ ==================== */
.happy-users-section {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: var(--spacing-6xl) 0;
}

.happy-users-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 80px;
}

.happy-users-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px;
  background-color: transparent;
  border: 1px solid #282828;
  border-radius: 100px;
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.32px;
  color: #DDDDDD;
}

.happy-users-title {
  font-family: 'Onest', sans-serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 44px;
  letter-spacing: -0.72px;
  text-align: center;
  margin: 0;
  max-width: 904px;
  background: linear-gradient(143deg, #FFFFFF 0%, #FFFFFF 36.92%, #FFFFFF 61.53%, #C9C9C9 86.15%, #979797 123.06%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.happy-users-carousel-wrapper {
  width: 100%;
  margin-left: 0;
  overflow: hidden;
  position: relative;
}

.happy-users-carousel {
  display: flex;
  gap: 20px;
  animation: scroll-users 60s linear infinite;
  width: fit-content;
}

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

@keyframes scroll-users {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.happy-user-device {
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease;
}

.happy-user-device:hover {
  transform: scale(1.02);
}

/* MacBook размеры */
.happy-user-device-laptop {
  width: 432px;
  height: 333px;
}

/* iPhone размеры */
.happy-user-device-mobile {
  width: 155.35px;
  height: 320px;
}

/* Изображение устройства */
.happy-user-device img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==================== RESPONSIVE: TABLET (768px - 1024px) ==================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .happy-users-title {
    font-size: 28px;
    line-height: 36px;
  }

  .happy-users-header {
    margin-bottom: 48px;
  }

  .happy-user-device-laptop {
    width: 350px;
    height: 270px;
  }

  .happy-user-device-mobile {
    width: 130px;
    height: 268px;
  }
}

/* ==================== RESPONSIVE: MOBILE (<768px) ==================== */
@media (max-width: 768px) {
  .happy-users-title {
    font-size: 28px;
    line-height: 36px;
    max-width: 90%;
  }

  .happy-users-header {
    margin-bottom: 40px;
  }

  .happy-user-device-mobile {
    width: 120px;
    height: 248px;
  }

  .happy-user-device-laptop {
    width: 335px;
    height: 258px;
  }

  @keyframes scroll-users {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
}
