﻿.testimonials h2 {
  text-align: center;
  margin-bottom: 38px;
  font-size: clamp(28px, 3vw, 38px);
}

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

blockquote {
  display: grid;
  margin: 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

blockquote::before {
  content: "";
  width: 70px;
  height: 70px;
  margin-bottom: 16px;
  background: url("cudzyslowie.png") center / contain no-repeat;
}

.testimonial-layer {
  grid-area: 2 / 1;
  transition: opacity 1s ease, filter 1s ease;
}

.testimonial-stars { display: flex; gap: 5px; margin-top: 16px; }
.testimonial-stars img { width: 15px; height: 15px; }

.is-resetting .testimonial-layer { transition: none; }

.testimonial-next { opacity: 0; filter: blur(3px) contrast(.94); }

.is-dissolving .testimonial-current {
  opacity: 0;
  filter: blur(3px) contrast(.94);
}

.is-dissolving .testimonial-next {
  opacity: 1;
  filter: blur(0) contrast(1);
}

blockquote p { font-style: italic; }

cite {
  display: block;
  margin-top: 16px;
  color: var(--green-dark);
  font-style: normal;
  font-weight: 800;
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 24px 34px;
  border-radius: 8px;
  background: #fbefee;
}

.cta-icon {
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

.cta-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: center;
  column-gap: 18px;
  text-align: left;
  place-self: center;
}

.cta-band h2 {
  grid-column: 2;
  margin-bottom: 4px;
  font-size: clamp(19px, 2vw, 26px);
  white-space: nowrap;
}

.cta-band p {
  grid-column: 2;
  margin-bottom: 0;
  font-size: 15px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  align-self: center;
  width: 100%;
  gap: 16px;
}

.cta-band .btn-ghost { background: transparent; }

.cta-band .btn { min-width: 210px; padding-inline: 22px; }

.cta-band .btn-ghost svg { color: var(--green); }

.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.faq h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 28px;
  padding-left: 18px;
  text-align: left;
}

.faq-list { display: grid; gap: 10px; }
.faq-content { display: flex; flex-direction: column; }

details {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--hero-bg);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  z-index: 1;
}

details:hover { border-color: rgba(188, 91, 91, .28); background: #fffaf8; box-shadow: 0 9px 22px rgba(63, 95, 66, .07); transform: translateY(-2px); }

details[open] {
  border-color: rgba(63, 95, 66, .22);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 8px 22px rgba(63, 95, 66, .08);
  z-index: 20;
}

summary {
  position: relative;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
  padding-right: 44px;
  transition: color .25s ease, padding-left .25s ease;
}

details:hover summary { color: var(--green-dark); padding-left: 22px; }

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--green-dark);
  transform: translateY(-45%) rotate(-90deg);
  transition: border-top-color .25s ease, transform .25s ease;
}

details:hover summary::after { border-top-color: var(--rose); transform: translateY(-45%) rotate(-90deg) scale(1.12); }

details[open] summary::after { transform: translateY(-45%) rotate(0deg); }

details[open]:hover summary::after { transform: translateY(-45%) rotate(0deg) scale(1.12); }

.faq-answer {
  position: absolute;
  top: calc(100% - 1px);
  left: -1px;
  right: -1px;
  padding: 0 18px 16px;
  border: 1px solid rgba(63, 95, 66, .22);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: var(--hero-bg);
  box-shadow: 0 10px 24px rgba(63, 95, 66, .08);
  transform-origin: top center;
  animation: faq-answer-in .34s cubic-bezier(.2, .75, .25, 1) both;
}

.faq-answer::before {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin: 0 0 14px;
  background: var(--rose);
}

.faq-answer p { margin: 0; color: var(--muted); font-size: 14px; }

.faq .faq-image {
  width: 100%;
  height: var(--faq-image-height, 420px);
  object-fit: cover;
  box-shadow: 0 7px 18px rgba(63, 95, 66, .09), 0 2px 7px rgba(36, 48, 37, .06);
}

@keyframes faq-answer-in {
  0% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    filter: blur(3px);
    transform: translateY(-8px) scaleY(.94);
  }

  70% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

