/* ============================================
   ГРАНДШИНА — Review Cards
   Customer testimonials for tire store
   ============================================ */

/* ============================================
   Reviews Section
   ============================================ */

.reviews-section {
  --reviews-bg: #f8f9fa;
  --reviews-padding-y: 60px;
  --reviews-padding-x: 30px;
  --reviews-max-width: 1200px;

  background-color: var(--reviews-bg);
  padding: var(--reviews-padding-y) 0;
}

.reviews-container {
  max-width: var(--reviews-max-width);
  margin: 0 auto;
  padding: 0 var(--reviews-padding-x);
}

/* Section Header */
.reviews-header {
  text-align: center;
  margin-bottom: 40px;
}

.reviews-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px 0;
}

.reviews-subtitle {
  font-size: 16px;
  color: #666666;
  margin: 0;
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* ============================================
   Review Card
   ============================================ */

.review-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

/* Card Header: Avatar + Name + Stars */
.review-card__header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

/* Avatar */
.review-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e8e8e8;
}

/* Placeholder avatar (no image) */
.review-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0066cc 0%, #0044aa 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  border: none;
}

/* Client Info */
.review-client {
  flex: 1;
  min-width: 0;
}

.review-name {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-date {
  font-size: 13px;
  color: #999999;
  margin: 0;
}

/* Stars */
.review-stars {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.review-star {
  width: 18px;
  height: 18px;
  color: #ffc107;
}

.review-star--empty {
  color: #e0e0e0;
}

/* Review Text */
.review-text {
  font-size: 15px;
  line-height: 1.7;
  color: #555555;
  margin: 0;
  padding-left: 75px; /* Align with text after avatar */
}

/* Product purchased tag */
.review-product {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background-color: #f0f4f8;
  border-radius: 20px;
  font-size: 12px;
  color: #666666;
  padding-left: 75px;
}

/* ============================================
   Tablet Styles (768px – 1024px)
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --reviews-padding-x: 20px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .review-text {
    padding-left: 0;
  }

  .review-product {
    padding-left: 0;
  }
}

/* ============================================
   Mobile Styles (<768px)
   ============================================ */

@media (max-width: 768px) {
  :root {
    --reviews-padding-y: 40px;
    --reviews-padding-x: 15px;
  }

  .reviews-title {
    font-size: 26px;
  }

  .reviews-subtitle {
    font-size: 14px;
  }

  .review-card {
    padding: 20px;
  }

  .review-avatar {
    width: 50px;
    height: 50px;
  }

  .review-avatar--placeholder {
    font-size: 20px;
  }

  .review-name {
    font-size: 15px;
  }

  .review-text {
    font-size: 14px;
  }
}

/* ============================================
   2GIS Widget Container
   ============================================ */

.reviews-2gis-container {
  margin-top: 50px;
  text-align: center;
}

.reviews-2gis__title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 20px 0;
}

.reviews-2gis__widget {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.reviews-2gis__widget iframe {
  width: 100%;
  max-width: 100%;
  border: none;
  border-radius: 8px;
}

/* ============================================
   Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .review-card {
    transition: none;
  }

  .review-card:hover {
    transform: none;
  }
}
