
/* ==========================================
   FAQ — REPRODUKTOLOG LVIV
   ========================================== */

.rp-faq {
  --faq-teal: #079c98;
  --faq-ink: #153349;
  --faq-muted: #718493;

  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 90px 24px 100px;
  background: #f7faf8;
  box-sizing: border-box;
}

.rp-faq *,
.rp-faq *::before,
.rp-faq *::after {
  box-sizing: border-box;
}

.rp-faq__container {
  max-width: 1040px;
  margin: 0 auto;
}

/* HEADER */

.rp-faq__header {
  max-width: 840px;
  margin: 0 auto 45px;
  text-align: center;
}

.rp-faq__eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--faq-teal);
  font: 700 12px/1.5 Arial, sans-serif;
  letter-spacing: 2.4px;
}

.rp-faq__header h2 {
  margin: 0 0 18px;
  color: var(--faq-ink);
  font-family: Georgia, serif;
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.6px;
}

.rp-faq__header h2 em {
  color: var(--faq-teal);
  font-style: normal;
}

.rp-faq__header p {
  margin: 0;
  color: var(--faq-muted);
  font-size: 16px;
  line-height: 1.7;
}

/* ACCORDION */

.rp-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rp-faq__item {
  margin: 0;
  overflow: hidden;
  border: 1px solid #e3ede8;
  border-radius: 17px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.rp-faq__item[open] {
  border-color: #b6e4da;
  box-shadow: 0 8px 26px rgba(21, 51, 73, .04);
}

.rp-faq__item summary {
  position: relative;
  display: block;
  padding: 24px 65px 24px 28px;
  color: var(--faq-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.rp-faq__item summary::-webkit-details-marker {
  display: none;
}

.rp-faq__item summary::marker {
  content: "";
}

/* PLUS / MINUS */

.rp-faq__item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e6f7f2;
  color: var(--faq-teal);
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}

.rp-faq__item[open] summary::after {
  content: "−";
  background: var(--faq-teal);
  color: #fff;
}

.rp-faq__item summary:focus-visible {
  outline: 3px solid var(--faq-teal);
  outline-offset: -4px;
  border-radius: 15px;
}

.rp-faq__answer {
  padding: 0 65px 25px 28px;
}

.rp-faq__answer p {
  margin: 0;
  color: #607780;
  font-size: 15px;
  line-height: 1.8;
}

/* FOOTER */

.rp-faq__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
  margin-top: 45px;
  text-align: center;
}

.rp-faq__footer p {
  margin: 0;
  color: #607780;
  font-size: 16px;
}

.rp-faq__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 56px;
  padding: 16px 30px;
  border-radius: 50px;
  background: #0aaea7;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none !important;
  transition: background .2s, transform .2s;
}

.rp-faq__button:hover {
  background: #078e89;
  transform: translateY(-2px);
}

.rp-faq__button:focus-visible {
  outline: 3px solid var(--faq-ink);
  outline-offset: 3px;
}

.rp-faq__button span {
  font-size: 21px;
  line-height: 1;
}

/* MOBILE */

@media (max-width: 650px) {
  .rp-faq {
    padding: 60px 16px 75px;
  }

  .rp-faq__header {
    margin-bottom: 32px;
  }

  .rp-faq__header h2 {
    font-size: clamp(32px, 8vw, 40px);
  }

  .rp-faq__header p {
    font-size: 15px;
  }

  .rp-faq__list {
    gap: 10px;
  }

  .rp-faq__item {
    border-radius: 14px;
  }

  .rp-faq__item summary {
    padding: 19px 55px 19px 18px;
    font-size: 15px;
  }

  .rp-faq__item summary::after {
    right: 15px;
    width: 28px;
    height: 28px;
  }

  .rp-faq__answer {
    padding: 0 18px 22px;
  }

  .rp-faq__answer p {
    font-size: 14px;
    line-height: 1.75;
  }

  .rp-faq__footer {
    margin-top: 35px;
  }

  .rp-faq__button {
    width: 100%;
    padding: 15px 20px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-faq__item,
  .rp-faq__button {
    transition: none;
  }
}
