/* Strona „Pytania i odpowiedzi” — ładowana tylko na /pytania-i-odpowiedzi/ (functions.php).
   Kolory motywu: tekst #373339, róż #c11a84 (#f664bc tylko w logo i ozdobach bez tekstu), niebieski #41a9f2, fiolet #7851f6, szare tło #ebf0f3. */

.faq-page {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 40px;
  box-sizing: border-box;
  font-family: "Avenir Next LT Pro Regular", sans-serif;
  color: #373339;
}

.faq-page .entry-title {
  margin: 30px 0 30px;
  overflow-wrap: break-word;
}

.faq-page h2 {
  font-family: "Avenir Next LT Pro Bold", sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 20px;
  color: #373339;
}

.faq-page a {
  display: inline;
  color: #7851f6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-page a:hover {
  color: #b21879;
}

/* Link w ramce faktów leży na szarym tle (#ebf0f3) — ciemniejszy fiolet, kontrast 5,9:1 */
.faq-fact dd a {
  color: #5a3fd0;
}

.faq-fact dd a:hover {
  color: #b21879;
}

/* --- Ramka faktów --- */
.faq-facts {
  background: #ebf0f3;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 50px;
}

.faq-facts dl {
  margin: 0;
}

.faq-fact {
  padding: 14px 0;
  border-top: 1px solid rgba(55, 51, 57, 0.12);
}

.faq-fact:first-child {
  border-top: 0;
  padding-top: 0;
}

.faq-fact:last-child {
  padding-bottom: 0;
}

.faq-facts dt {
  font-family: "Avenir Next LT Pro Bold", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #373339;
  margin-bottom: 4px;
}

.faq-facts dd {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

@media (min-width: 700px) {
  .faq-fact {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 20px;
  }

  .faq-facts dt {
    margin-bottom: 0;
  }
}

/* --- Pytania (details / summary, działa bez JS) --- */
.faq-item {
  border-bottom: 2px solid #ebf0f3;
}

.faq-item summary {
  display: block;
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  font-family: "Avenir Next LT Pro Medium", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  color: #373339;
  overflow-wrap: break-word;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: "";
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  background: #c11a84;
  color: #fff;
  font-size: 22px;
  font-family: "Avenir Next LT Pro Medium", sans-serif;
}

.faq-item[open] summary::after {
  content: "\2212";
  background: #41a9f2;
}

.faq-item summary:hover {
  color: #c11a84;
}

.faq-item summary:focus-visible {
  outline: 3px solid #41a9f2;
  outline-offset: 2px;
  border-radius: 6px;
}

.faq-answer {
  padding: 0 44px 20px 0;
  font-size: 18px;
  line-height: 1.6;
}

.faq-answer p {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.6;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  list-style: disc;
  margin: 0 0 12px 20px;
}

.faq-answer li {
  margin-bottom: 6px;
}

/* --- Przycisk na końcu --- */
.faq-cta {
  margin-top: 50px;
  text-align: center;
}

.faq-page .faq-register {
  display: inline-block;
  height: 50px;
  line-height: 53px; /* wielkie litery Avenir na środku (pomiar 2026-11-20) */
  padding: 0 32px;
  border-radius: 15px;
  background: #c11a84;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Avenir Next LT Pro Medium", sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.faq-page .faq-register:hover {
  color: #fff;
  background: #b21879;
}

.faq-page .faq-register:focus-visible {
  outline: 3px solid #41a9f2;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .faq-facts {
    padding: 20px;
  }

  .faq-page h2 {
    font-size: 24px;
  }

  .faq-item summary {
    font-size: 18px;
    padding-right: 40px;
  }

  .faq-answer {
    padding-right: 0;
    font-size: 17px;
  }

  .faq-page .faq-register {
    height: auto;
    line-height: 1.3;
    padding: 14px 24px;
  }
}
