/* ===== investor stories (testimonials) ===== */
.investor-stories {
  /* если хочешь общий фон секции — добавь тут */
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--white) 100%);
}

.investor-stories__panel {
  /* background: var(--blue-dark);  */
  border-radius: 16px;
}

.investor-stories__inner {
  width: 100%;
  max-width: 1280px; 
  margin: 0 auto;

}

.investor-stories__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* карточка */
.testimonial-card {
  background: rgba(255, 255, 255, 0.92); 
      box-shadow: 0 5px 15px rgb(0 0 0 / 18%);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.testimonial-card__stars {
  height: 20px;
  width: auto;
  display: block;
}

.testimonial-card__text {
  margin: 20px 0 0;
  padding-bottom: 20px;
  flex-grow: 1;
  color: rgba(13, 59, 102, 0.75); /* аналог text-primary-medium */
  border-bottom: 1px solid rgba(13, 59, 102, 0.1);
  line-height: 1.7;
}

.testimonial-card__footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
}

.testimonial-card__avatar {
  width: 64px;
  height: 64px;
  margin-left: 20px; /* RTL: вместо mr-5 */
  flex-shrink: 0;
  border-radius: 999px;
  overflow: hidden;
}

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

.testimonial-card__meta {
  min-width: 0;
}

.testimonial-card__name {
  font-weight: 800;
  color: rgba(13, 59, 102, 0.95); /* аналог text-primary-darker */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-card__amount {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 16px;
  border-radius: 6px;
  background-color: #1c85fb; /* аналог bg-primary-main */
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

/* ===== responsive ===== */
@media (min-width: 640px) {
  .testimonial-card {
    padding: 28px; /* sm:p-7 */
  }

  .testimonial-card__avatar {
    width: 80px;
    height: 80px; /* sm:w-20 sm:h-20 */
  }

  .testimonial-card__name {
    font-size: 18px; /* sm:text-lg */
  }
}

@media (min-width: 1024px) {
  .investor-stories__inner {
    /* padding: 80px 16px; */
  }

  .investor-stories__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* lg:grid-cols-3 */
    gap: 28px; /* lg:gap-7 */
  }
}
