/* =========================================================
   STAKE KZ — REVIEWS
========================================================= */

.reviews-section {
  width: 100%;
  margin: 30px 0 36px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(132, 186, 217, 0.11);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(19, 51, 68, 0.96) 0%, rgba(15, 43, 58, 0.99) 100%);
  box-shadow: 0 8px 24px rgba(2, 17, 25, 0.06);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.review-card__top {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 16px 16px 0;
}

.review-card__avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(111, 184, 228, 0.18);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(47, 137, 201, 0.18), rgba(22, 67, 91, 0.38));
  color: #8dcef5;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.review-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.review-card__avatar span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #8dcef5;
}

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

.review-card__title {
  overflow: hidden;
  color: #f3f7fa;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  min-width: 0;
  margin-top: 4px;
  color: #829dab;
  font-size: 10.5px;
  line-height: 1.35;
}

.review-card__meta span {
  color: inherit;
}

.review-card__meta span + span::before {
  margin: 0 6px;
  color: #4f7285;
  content: '•';
}

.review-card__verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(75, 197, 151, 0.18);
  border-radius: 999px;
  background: rgba(48, 168, 122, 0.08);
  color: #7bd2ae;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 750;
  white-space: nowrap;
}

.review-card__verified::before {
  flex: 0 0 13px;
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #48ba8d;
  content: '✓';
  color: #fff;
  font-size: 9px;
  line-height: 13px;
  text-align: center;
}

.review-card > p {
  flex: 1;
  margin: 0 !important;
  padding: 17px 16px 20px;
  color: #b3c6d1;
  font-size: 13px;
  line-height: 1.65;
}

.review-card__rating {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  padding: 0 16px;
  border-top: 1px solid rgba(139, 188, 215, 0.075);
  background: rgba(5, 25, 35, 0.2);
}

.review-card__stars {
  position: relative;
  display: inline-block;
  color: transparent;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, #f5ad3d 0%, #f5ad3d var(--rating), rgba(135, 157, 169, 0.3) var(--rating), rgba(135, 157, 169, 0.3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.review-card__rating strong {
  color: #edf4f7;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .review-card:hover {
    border-color: rgba(101, 179, 226, 0.18);
    background: linear-gradient(180deg, rgba(21, 57, 76, 0.98) 0%, rgba(16, 46, 62, 1) 100%);
    box-shadow: 0 12px 30px rgba(2, 17, 25, 0.1);
    transform: translateY(-2px);
  }
}

@media (max-width: 1160px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .reviews-section {
    margin: 24px 0 30px;
  }

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

  .review-card {
    min-height: 0;
    border-radius: 9px;
  }

  .review-card__top {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px 14px 0;
  }

  .review-card__avatar {
    width: 42px;
    height: 42px;
  }

  .review-card__title {
    font-size: 13.5px;
  }

  .review-card__verified {
    min-height: 22px;
    padding: 0 7px;
    font-size: 9px;
  }

  .review-card > p {
    padding: 15px 14px 17px;
    font-size: 12.5px;
    line-height: 1.62;
  }

  .review-card__rating {
    min-height: 45px;
    padding: 0 14px;
  }
}

@media (max-width: 420px) {
  .review-card__top {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
  }

  .review-card__avatar {
    width: 40px;
    height: 40px;
  }

  .review-card__verified {
    grid-column: 2 / 3;
    justify-self: start;
    margin-top: 2px;
  }

  .review-card > p {
    padding-top: 14px;
  }
}

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