.testimonials {
  border-top: 1px solid var(--line);
}

.testimonials-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 38px;
  align-items: end;
  margin-bottom: 30px;
}

.testimonials-head h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.05em;
  margin: 0;
}

.testimonials-head > div > p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 18px 0 0;
}

.instagram-cta {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  min-width: 250px;
  padding: 17px 20px;
  color: white;
  border-radius: 12px;
  background: linear-gradient(135deg, #d81f2a 0%, #8d1024 48%, #121417 100%);
  box-shadow: 8px 8px 0 var(--yellow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.instagram-cta:hover {
  transform: translateY(-3px);
  box-shadow: 8px 11px 0 var(--yellow);
}

.instagram-cta > span {
  grid-row: 1 / 3;
  font-size: 2.4rem;
  line-height: 1;
}

.instagram-cta small {
  color: #f3cfd3;
  font-weight: 700;
}

.instagram-cta strong {
  font-size: 1.05rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.testimonial-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  border-radius: 12px;
  background: var(--paper);
}

.testimonial-card.featured {
  border-top-color: var(--yellow);
  background: var(--ink);
  color: white;
  transform: translateY(-8px);
}

.quote-mark {
  color: var(--red);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: .7;
}

.testimonial-card.featured .quote-mark {
  color: var(--yellow);
}

.testimonial-card > p {
  margin: 22px 0 28px;
  font-size: 1.08rem;
  font-weight: 700;
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding: 0;
  background: none;
  color: inherit;
}

.testimonial-card footer small {
  color: var(--muted);
}

.testimonial-card.featured footer small {
  color: #bfc3c9;
}

.testimonial-submit {
  display: inline-block;
  margin-top: 25px;
  font-weight: 900;
  border-bottom: 2px solid var(--yellow);
}

@media (max-width: 900px) {
  .testimonials-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .instagram-cta {
    width: fit-content;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card.featured {
    transform: none;
  }
}

@media (max-width: 600px) {
  .instagram-cta {
    width: 100%;
    min-width: 0;
  }

  .testimonial-card {
    min-height: 210px;
  }
}
