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

.reviews-section {
  margin: 52px 0;
}

.reviews-section__title {
  margin: 0 0 26px;

  color: #f8f8f8;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

/* ==============================
   Reviews Grid
============================== */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

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

.review-card {
  position: relative;
  overflow: hidden;

  height: 100%;
  min-height: 360px;
  padding: 26px;

  display: flex;
  flex-direction: column;

  border-radius: 24px;
  border: 1px solid rgba(246, 189, 59, 0.18);

  background: radial-gradient(circle at 100% 0%, rgba(246, 189, 59, 0.06), transparent 32%), linear-gradient(180deg, #111315 0%, #070809 100%);

  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 2px;

  background: linear-gradient(90deg, transparent, #f6bd3b, #ffe18a, #f6bd3b, transparent);

  opacity: 0.78;
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: rgba(246, 189, 59, 0.42);

  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.42),
    0 0 30px rgba(246, 189, 59, 0.08);
}

/* ==============================
   Review Header
============================== */

.review-card__top {
  display: flex;
  align-items: center;
  gap: 14px;

  margin-bottom: 20px;
}

.review-card__avatar {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  border-radius: 18px;
  border: 1px solid rgba(255, 230, 145, 0.45);

  background: linear-gradient(135deg, #ffe8a2, #f6bd3b);

  color: #120d05;
  font-size: 22px;
  font-weight: 900;

  box-shadow: 0 12px 26px rgba(246, 189, 59, 0.16);
}

.review-card__avatar img {
  width: 100%;
  height: 100%;
  margin: 0;

  display: block;
  object-fit: cover;

  border-radius: inherit;
}

.review-card__author {
  min-width: 0;
  flex: 1;
}

.review-card h3 {
  margin: 0 0 5px;

  color: #f8f8f8;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.2;
}

/* ==============================
   Review Meta
============================== */

.review-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;

  color: rgba(255, 255, 255, 0.46);
  font-size: 13px;
}

.review-card__meta span + span::before {
  content: '•';
  margin-right: 10px;
  color: #f6bd3b;
}

.review-card__verified {
  flex: 0 0 auto;

  padding: 6px 10px;

  border-radius: 999px;
  border: 1px solid rgba(246, 189, 59, 0.18);

  background: rgba(246, 189, 59, 0.08);

  color: #ffe18a;
  font-size: 11px;
  font-weight: 800;
}

/* ==============================
   Review Text
============================== */

.review-card p {
  flex: 1;

  margin: 0 0 20px;

  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  line-height: 1.7;
}

/* ==============================
   Review Rating
============================== */

.review-card__rating {
  margin-top: auto;
  padding-top: 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  border-top: 1px solid rgba(246, 189, 59, 0.12);
}

.review-card__stars {
  position: relative;

  display: inline-block;

  color: rgba(246, 189, 59, 0.18);
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 1;
}

.review-card__stars::before {
  content: '★★★★★';

  position: absolute;
  inset: 0;

  width: var(--rating);
  overflow: hidden;

  color: #f6bd3b;
}

.review-card__rating strong {
  color: #ffe18a;
  font-size: 18px;
  font-weight: 950;
}

/* ==============================
   Tablet Responsive
============================== */

@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    min-height: auto;
  }

  .review-card p {
    flex: initial;
  }

  .review-card__rating {
    margin-top: 18px;
  }
}

/* ==============================
   Mobile Responsive
============================== */

@media (max-width: 560px) {
  .reviews-section {
    margin: 36px 0;
  }

  .review-card {
    padding: 22px;
    border-radius: 20px;
  }

  .review-card__avatar {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 16px;
  }

  .review-card h3 {
    font-size: 18px;
  }

  .review-card__verified {
    padding: 5px 8px;
    font-size: 10px;
  }

  .review-card p {
    font-size: 14px;
  }
}
