body {
  background-repeat: repeat;
  background-size: clamp(40%, 6vw, 70%) auto;
  background-position: center;
  font-family: "Roboto", sans-serif;
}

/* CONTAINER */
.reviews-container {
  max-width: 90%;
  margin: 40px 5%;
  padding: 0 15px;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
}

/* CARD */
.review-card {
  width: 100%;
  min-height: 260px;
  max-height: 420px;

  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);

  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Header */
.review-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #555;
}

/* Text */
.review-text {
  flex: 1;
  overflow-y: auto;
  line-height: 1.5;
  color: #333;
  padding-right: 4px;
}

/* Stars */
.stars {
  font-size: 20px;
  color: #ff9800;
  letter-spacing: 2px;
  user-select: none;
}

/* SNAP CONTAINER */
.reviews-snap {
  display: flex;
  gap: 60px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  align-items: stretch;
}

.reviews-snap::-webkit-scrollbar {
  height: 10px;
}

.reviews-snap::-webkit-scrollbar-thumb {
  background: #ff9800;
  border-radius: 10px;
}

.snap-card {
  scroll-snap-align: center;
  flex: 0 0 320px;
}

@keyframes swipeHint {
  0% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-30px);
  }
  60% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(0);
  }
}

/* 📱 MOBILE */
@media (max-width: 768px) {
  .reviews-snap.hint {
    animation: swipeHint 1.5s ease-out 2;
  }

  .reviews-container {
    max-width: 100%;
    margin: 20px 0;
    padding: 0 12px;
  }

  .reviews-snap {
    gap: 14px;
    padding: 10px 0 20px;
  }

  /* ← КЛЮЧОВА ЧАСТИНА */
  .snap-card {
    flex: 0 0 96%;
  }

  .review-card {
    width: 90%;
    min-height: 260px;
    max-height: 70vh;
    padding: 14px;
    gap: 20px;
  }

  .stars {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .snap-card {
    flex: 0 0 92%;
  }

  .reviews-snap {
    gap: 45px;
  }
}
