* {
  box-sizing: border-box;
}

.reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem 3rem;
  background-color: #fff;
  color: #242424;

  user-select: none; /* 🔥 выключаем выделение текста */
}

.reviews__title {
  text-align: center;
  margin: 2rem 0;
}

.reviews__title h2 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  color: #242424;
}

.reviews__title h4 {
  font-weight: normal;
  color: #555;
  font-size: 1.1rem;
}

/* === Горизонтальная лента отзывов === */
.reviews__customers {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* плавная прокрутка на iOS */
  padding-bottom: 1rem;
  width: 100%;
}

/* скрываем скроллбар к чёрту */
.reviews__customers::-webkit-scrollbar {
  display: none;
}
.reviews__customers {
  scrollbar-width: none;
}

/* === Карточки отзывов === */
.reviews__customers-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.5rem;
  background-color: rgba(255, 249, 175, 1);
  border-radius: 1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.reviews__customers-card h5 {
  font-weight: normal;
  color: #242424;
  line-height: 1.6rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.reviews__customers-card-profile {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.reviews__customers-card-profile h4 {
  font-size: 1rem;
  color: #242424;
}

.fa-star {
  font-size: 22px;
  color: #ffcc00;
}

.reviews__customers-card-service {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.reviews__customers-card-service h5 {
  color: #242424;
  font-weight: normal;
}

.reviews__customers-card-service a h5 {
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}

.reviews__customers {
  cursor: grab;
  cursor: -webkit-grab;
  user-select: none; /* 🔥 выключаем выделение текста */
  scroll-behavior: smooth;
}

.reviews__customers.active {
  cursor: grabbing;
  cursor: -webkit-grabbing;
}






.reviews button {
  margin-top: 1rem;
  display: inline-block;
  padding: 12px 48px;
  background: #000;
  color: #fff;
  border-radius: 80px;
  font-size: 1.5rem;
  font-weight: bold;
  border: 2px solid #000;
  text-decoration: none;


  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.reviews button:hover, .reviews button:focus {
  transform: scale(1.05);
  background: transparent;
  color: #1d4ed8;
  border-color: #000;
}






/* ---------- адаптация ---------- */

@media (max-width: 1024px) {
  .reviews__customers-card {
    flex: 0 0 280px;
  }
}

@media (max-width: 768px) {
  .reviews {
    padding: 0 1rem 2rem;
  }

  .reviews__title h2 {
    font-size: 1.6rem;
  }

  .reviews__title h4 {
    font-size: 1rem;
  }

  .reviews__customers {
    gap: 1rem;
  }

  .reviews__customers-card {
    flex: 0 0 260px;
    padding: 1.2rem;
  }

  .fa-star {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .reviews__title h2 {
    font-size: 1.4rem;
  }

  .reviews__customers-card {
    flex: 0 0 240px;
    padding: 1rem;
    border-radius: 0.8rem;
  }

  .reviews__customers-card-profile h4 {
    font-size: 0.9rem;
  }

  .reviews__customers-card h5 {
    font-size: 0.9rem;
    line-height: 1.4rem;
  }
}