.testimonials-section {
  background: #ffffff;
  padding: 30px 20px 50px;
}

.testimonials-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  /*border: 3px solid #1087e0;*/
  background: #c5c5c5;
  border-radius: 70px;
  padding: 30px 30px 40px;
}

.testimonials-title {
  display: block;
  width: min(930px, 92%);
  margin: 0 auto 35px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 36px;
  justify-items: center;
}

/* makes last 2 center nicely on desktop */
.testimonial-card:nth-child(4) {
  grid-column: 1 / 2;
  justify-self: end;
}

.testimonial-card:nth-child(5) {
  grid-column: 2 / 4;
  justify-self: start;
}

.testimonial-card{
  width:100%;
  max-width:355px;
  position:relative;
}

.testimonial-bg{
  width:100%;
  display:block;
  border-radius:34px;
}

.testimonial-content{
  position:absolute;
  inset:0;
  padding:0px 0px 0px;
  color:#fff;
  text-align:center;
}

.testimonial-name{
  padding-top:8px;
  line-height:1;
}

.testimonial-name span{
  display:block;
  font-size:14px;
  font-weight:300;
}

.testimonial-name strong{
  display:block;
  font-size:28px;
  font-weight:300;
}

.testimonial-quote{
  position:relative;
  margin-top:8px;
}

.quote-mark{
  position:absolute;
  left:8px;
  top:0;
  font-size:44px;
  font-weight:700;
}

.testimonial-quote p{
  margin:0 auto;
  max-width:280px;
  font-size:6px;
  line-height:1.18;
}

.testimonial-top {
  margin-bottom: 0;
  padding-top: 8px;
}

.testimonial-name {
  text-align: center;
  color: white;
  line-height: 1;
  padding-top: 38px;
  padding-bottom: 10px;
}

.testimonial-name span {
  display: block;
  font-size: 24px;
  font-weight: 300;
}

.testimonial-name strong {
  display: block;
  font-size: 28px;
  font-weight: 300;
}

.testimonial-quote {
  min-height: 250px;
  padding: 4px 6px 6px;
  color: white;
  position: relative;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.quote-mark {
  position: absolute;
  left: 2px;
  top: 2px;
  font-size: 52px;
  line-height: 1;
  font-weight: 700;
  color: white;
}

.testimonial-quote p {
  margin: 0;
  font-size: 14px;
  line-height: 1.18;
  text-align: center;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-stars {
  text-align: center;
  margin-top: 12px;
  color: #f36db3;
  font-size: 46px;
  letter-spacing: 6px;
  line-height: 1;
}

/* tablet */
@media (max-width: 1100px) {
  .testimonials-wrapper {
    padding: 4px 20px 34px;
    border-radius: 50px;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 24px;
  }

  .testimonial-card:nth-child(4),
  .testimonial-card:nth-child(5) {
    grid-column: auto;
    justify-self: center;
  }

  .testimonial-card {
    max-width: 340px;
  }
}

/* mobile */
@media (max-width: 700px) {
  .testimonials-section {
    padding: 20px 10px 34px;
  }

  .testimonials-wrapper {
    border-radius: 34px;
    padding: 18px 14px 24px;
  }

  .testimonials-title {
    width: min(760px, 98%);
    margin-bottom: 22px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .testimonial-card {
    max-width: 350px;
  }

  .testimonial-name {
    padding-top: 28px;
  }

  .testimonial-name span {
    font-size: 22px;
  }

  .testimonial-name strong {
    font-size: 26px;
  }

  .testimonial-quote {
    min-height: 300px;
    padding: 4px 20px 24px;
    border-radius: 28px;
  }

  .quote-mark {
    left: 18px;
    top: 46px;
    font-size: 44px;
  }

  .testimonial-quote p {
    font-size: 15px;
    max-width: 230px;
  }

  .testimonial-stars {
    font-size: 40px;
    letter-spacing: 4px;
  }
}