.reviews-section {
  background-color: var(--color-red);
  padding: 60px 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.reviews-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  color: white;
  font-size: 36px;
  margin-bottom: 10px;
}

.section-subtitle {
  color: white;
  font-size: 18px;
  margin-bottom: 40px;
}

.reviews-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.review-card {
  flex: 0 0 calc(33.333% - 20px);
  margin-right: 22px;
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.review-content {
  flex-grow: 1;
  overflow-y: auto;
}

.review-header {
  margin-bottom: 15px;
}

.reviewer-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.reviewer-location {
  font-size: 14px;
  color: var(--color-text-muted);
}

.review-rating {
  color: #FFD700;
  font-size: 20px;
}

.review-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.review-date {
  font-size: 12px;
  /* Same step as .reviewer-location: at 12px the lighter --color-text-subtle stays below AA. */
  color: var(--color-text-muted);
  margin-top: auto;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.carousel-control {
  background-color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 10px;
  transition: background-color 0.3s;
}

.carousel-control:hover {
  background-color: var(--color-yellow);
}

.carousel-control svg {
  width: 36px;
  height: 36px;
}

.carousel-control-prev::after,
.carousel-control-next::after {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  background-size: contain;
  background-repeat: no-repeat;
  transition: opacity 0.3s, transform 0.3s;
}

.carousel-control-prev::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E");
}

.carousel-control-next::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'%3E%3C/polyline%3E%3C/svg%3E");
}

.carousel-control:hover::after {
  transform: scale(1.1);
}



@media (max-width: 1024px) {
  .review-card {
    flex: 0 0 calc(50% - 20px); /* Две карточки в ряд для планшетов */
  }
}

@media (max-width: 768px) {
  .review-card {
    flex: 0 0 100%; /* Одна карточка в ряд для мобильных */
  }
}