/* ==================== ОСНОВНЫЕ СТИЛИ БЛОКА ОТЗЫВЫ ==================== */
.reviews-section {
  max-width: 1250px;
  margin: 100px auto 0;
  background-color: #ffffff;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.reviews-title {
  color: var(--Heading, #24272C);
  font-family: Onest;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.reviews-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}

.reviewer-avatars {
  display: flex;
  align-items: center;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -10px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.reviewer-avatar:first-child {
  margin-left: 0;
}

.avatar-1 {
  background-image: url('../img/44.jpg');
}

.avatar-2 {
  background-image: url('../img/32.jpg');
}

.avatar-3 {
  background-image: url('../img/68.jpg');
}

.stars-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stars-row {
  display: flex;
  gap: 4px;
}

.star {
  width: 20px;
  height: 20px;
  background: #fbbf24;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.reviews-count {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 4px;
}

/* Контейнер карусели со стрелками */
.reviews-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Стрелки навигации - исходный размер */
.reviews-arrow {
  width: 44px;
  height: 44px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: 0.2s;
  flex-shrink: 0;
}

.reviews-arrow:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.reviews-arrow.left {
  left: -22px;
}

.reviews-arrow.right {
  right: -22px;
}

.reviews-arrow svg {
  width: 24px;
  height: 24px;
  fill: #1e293b;
}

.reviews-carousel-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  padding: 5px 0 20px;
}

.reviews-carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.reviews-grid {
  display: flex;
  gap: 30px;
  width: max-content;
}

.review-card {
  width: 395px;
  height: 345px;
  background: white;
  border-radius: 24px;
  border: 1px solid #e9eef3;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
/*
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}
*/
.review-text {
  color: var(--Heading, #24272C);
  font-family: Onest;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.review-divider {
  width: 100%;
  height: 1px;
  background: #e2e8f0;
  margin-top: auto;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.reviewer-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

.review-footer-stars {
  display: flex;
  gap: 4px;
  color: #FFC300;
}

.review-footer-star {
  width: 16px;
  height: 16px;
  background: #fbbf24;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.review-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E4E4E4;
  cursor: pointer;
  transition: 0.2s;
}

.review-dot.active {
  background: #fbbf24;
  transform: scale(1.2);
}

/* Кнопка "Все отзывы" для десктопа */
.all-reviews-btn {
  display: flex;
  width: 152px;
  height: 52px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  border: 1px solid var(--Line, #EDEDED);
  background-color: white;
  color: var(--Heading, #24272C);
  font-family: Onest;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  cursor: pointer;
  margin: 40px auto 0;
  transition: all 0.2s;
}

.all-reviews-btn:hover {
  background: #f5f5f5;
  border-color: #999;
}

.all-reviews-btn .arrow-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0.3);
}

/* ==================== АДАПТИВНЫЕ СТИЛИ БЛОКА ОТЗЫВЫ ==================== */

/* Для экранов 1280px - фиксим заголовок в одну строку и уменьшаем карточки */
@media (max-width: 1280px) {
  .reviews-section {
    max-width: 1070px;
    padding: 0 20px;
  }
  
  .reviews-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
  
  .reviews-title {
    font-size: 28px;
    flex-shrink: 0;
  }
  
  .reviews-stats {
    flex-shrink: 0;
  }
  
  .review-card {
    width: 335px;
    height: 320px;
    padding: 20px;
  }
  
  .review-text {
    font-size: 14px;
  }
  
  .reviewer-photo {
    width: 40px;
    height: 40px;
  }
  
  .reviewer-name {
    font-size: 14px;
  }
}

/* Для экранов 1024px - карточки еще меньше */
@media (max-width: 1024px) {
  .reviews-section {
    max-width: 95%;
    padding: 0 20px;
  }
  
  .review-card {
    width: 280px;
    height: 300px;
    padding: 18px;
  }
}

/* Для экранов до 768px - мобильные устройства (ваш блок, не трогаю) */
@media (max-width: 768px) {
  .reviews-section {
    margin: 60px auto 0;
    padding: 0 15px;
    max-width: 100%;
    position: relative;
  }
  
  .reviews-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    margin-bottom: 30px;
  }
  
  .reviews-title {
    font-size: 28px;
  }
  
  .reviews-stats {
    justify-content: center;
    gap: 15px;
  }
  
  .reviewer-avatars {
    display: flex;
    align-items: center;
  }
  
  .reviewer-avatar {
    width: 62.8px;
    height: 62.8px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -15px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .reviewer-avatar:first-child {
    margin-left: 0;
  }
  
  .stars-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .stars-row {
    display: flex;
    gap: 4px;
  }
  
  .stars-row .star {
    width: 18px;
    height: 18px;
  }
  
  .reviews-count {
    font-size: 14px;
    margin-top: 4px;
  }
  
  .reviews-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
  }
  
  .reviews-arrow {
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
  }
  
  .reviews-arrow.left {
    left: -10px;
  }
  
  .reviews-arrow.right {
    right: -10px;
  }
  
  .reviews-arrow svg {
    width: 20px;
    height: 20px;
    fill: #1e293b;
  }
  
  .reviews-carousel-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    padding: 5px 0 20px;
    scroll-snap-type: x mandatory;
  }
  
  .reviews-carousel-wrapper::-webkit-scrollbar {
    display: none;
  }
  
  .reviews-grid {
    display: flex;
    gap: 20px;
    width: 100%;
  }
  
  .review-card {
    width: calc(100% - 40px);
    min-width: calc(100% - 40px);
    height: auto;
    min-height: 300px;
    flex-shrink: 0;
    scroll-snap-align: center;
    margin: 0 20px;
    padding: 20px;
  }
  
  .review-text {
    font-size: 14px;
  }
  
  .review-footer {
    margin-top: 20px;
  }
  
  .reviewer-photo {
    width: 60px;
    height: 61px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
  }
  
  .reviewer-name {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
  }
  
  .review-footer-stars {
    gap: 3px;
  }
  
  .review-footer-star {
    width: 14px;
    height: 14px;
  }
  
  .reviews-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
  }
  
  .review-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E4E4E4;
    cursor: pointer;
    transition: 0.2s;
  }
  
  .review-dot.active {
    background: #fbbf24;
    transform: scale(1.2);
  }
  
  .all-reviews-btn {
    display: flex;
    width: 152px;
    height: 52px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 14px;
    border: 1px solid var(--Line, #EDEDED);
    background-color: white;
    color: var(--Heading, #24272C);
    font-family: Onest;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    cursor: pointer;
    margin: 30px auto 0;
    transition: all 0.2s;
  }
  
  .all-reviews-btn:hover {
    background: #f5f5f5;
    border-color: #999;
  }
  
  .all-reviews-btn .arrow-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0.3);
  }
}