.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.page-loader.hidden {
  display: none;
}

.hero-section {
  background: linear-gradient(rgba(30, 41, 59, 0.85), rgba(30, 41, 59, 0.85)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&q=80&w=1920');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
}

.reviews-section {
  padding: 64px 0 80px;
  background: var(--bg-light);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  min-height: 260px;
}

.review-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 15px;
  box-shadow: 0 7px 21px rgba(15, 23, 42, 0.12);
}

.review-skeleton {
  min-height: 220px;
  border-color: #f1f5f9;
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: review-shimmer 1.4s ease-in-out infinite;
}

.review-skeleton-stars {
  width: 80px;
  height: 16px;
  margin-bottom: 24px;
  border-radius: 4px;
}

.review-skeleton-line {
  height: 14px;
  margin-bottom: 12px;
  border-radius: 4px;
}

.review-skeleton-line-long {
  width: 92%;
}

.review-skeleton-line-short {
  width: 68%;
  margin-bottom: 52px;
}

.review-skeleton-author {
  width: 42%;
  height: 14px;
  border-radius: 4px;
}

@keyframes review-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.review-stars {
  margin-bottom: 16px;
  color: var(--accent-color, #f59e0b);
  font-size: 0.9rem;
}

.review-message {
  flex: 1;
  margin: 0 0 24px;
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.see-more-review {
  align-self: flex-start;
  margin: -8px 0 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary-color);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.review-author {
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
}

.review-author strong {
  display: block;
  color: var(--text-main);
  font-size: 0.95rem;
}

.review-author span {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.reviews-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding-top: 40px;
}

.reviews-pagination[hidden],
.empty-state[hidden] {
  display: none;
}

.pagination-pages {
  display: flex;
  gap: 8px;
}

.pagination-button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: var(--text-main);
  cursor: pointer;
  font-weight: 600;
}

.pagination-button:hover:not(:disabled),
.pagination-button.active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: #fff;
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.review-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.review-modal.active {
  opacity: 1;
  visibility: visible;
}

.review-modal .modal-content {
  position: relative;
  width: min(680px, 100%);
  max-height: min(80vh, 700px);
  overflow-y: auto;
  padding: 32px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.review-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
}

.review-modal .modal-close:hover {
  color: var(--primary-color);
}

.review-modal .review-card {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.review-modal .review-message {
  display: block;
  overflow: visible;
}

@media (max-width: 700px) {
  .reviews-section {
    padding: 48px 0 64px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }
}
