/* Основной контейнер блока отзывов */
.reviews-block {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Заголовок отзывов */
.reviews-title {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 40px;
  font-size: 40px;       /* 2.5rem → 40px (при базовом 16px) */
  font-weight: 600;
  line-height: 1.2;
}

/* Список отзывов */
.reviews-list {
  /* Обычный поток, без Grid */
}

/* Карточка отзыва */
.review-card {
  background: linear-gradient(to bottom, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 30px;
  color: white;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Верхняя строка карточки */
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.reviewer-name {
  font-weight: bold;
  font-size: 21px;       /* 1.3rem → 21px */
  color: #fff;
  line-height: 1.3;
}

.rating {
  font-size: 22px;       /* 1.4rem → 22px */
  color: #ffd700;
  display: flex;
  align-items: center;
}

/* Текст отзыва */
.review-text {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 25px;
  flex: 1;
}

/* Нижняя строка: дата и город */
.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;       /* 0.9rem → 14px */
  opacity: 0.85;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
}

.review-date {
  font-style: italic;
}

.review-city {
  font-weight: 500;
}

/* --- Кнопка «Добавить отзыв» (десктоп) --- */
.btn-review {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  width: auto;
  max-width: 80%;
  padding: 12px 24px;
  background: #ffffff;
  color: #333333;
  text-decoration: none;
  border: 1px solid #4a70d2;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(74, 112, 210, 0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: 16px;       /* 1rem → 16px */
}

.btn-review:hover {
  border-color: #335bbf;
  box-shadow: 0 6px 16px rgba(74, 112, 210, 0.3);
  transform: scale(1.02);
}

/* --- Адаптив: мобильные устройства --- */
@media (max-width: 768px) {
  .reviews-title {
    font-size: 32px;     /* 2rem → 32px */
  }

  .review-card {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .reviewer-name {
    font-size: 18px;     /* ~1.1rem → 18px */
  }
  
  .rating {
    display: flex;
    gap: 4px;
    font-size: 22px;
    color: #ffd700;
  }
  
  .star.empty {
    color: rgba(255, 255, 255, 0.6);
  }

  /* Уменьшенная кнопка для мобильных */
  .btn-review {
    padding: 10px 18px;
    font-size: 15px;     /* чуть меньше, чем 16px на ПК */
    max-width: 90%;
  }
}
