/* === Rajnehtu.cz – FAQ boxy === */

.faq-wrapper {
  margin: 34px 0;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  box-sizing: border-box;
  font-size: 16px;
}

.faq-wrapper *,
.faq-wrapper *::before,
.faq-wrapper *::after {
  box-sizing: border-box;
}

/* Jednotlivé FAQ položky */
.faq-item {
  background: #ffffff;
  border: 1px solid #e6e0e4;
  border-radius: 0;
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

/* Skrytí checkboxu */
.faq-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Otázka */
.faq-item label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 15px 20px;
  margin: 0;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #42404f;
  line-height: 1.45;
  cursor: pointer;
  background: #ffffff;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-item label span {
  display: block;
  padding-right: 8px;
  color: inherit;
  font-size: 16px;
  font-weight: 600;
}

/* Hover otázky */
.faq-item label:hover {
  background: #fff4fa;
  color: #42404f;
}

/* Plus ikona */
.faq-item label::after {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background-image:
    linear-gradient(#C71C81, #C71C81),
    linear-gradient(#C71C81, #C71C81);
  background-size: 2px 100%, 100% 2px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.25s ease;
}

/* Otevřená otázka */
.faq-wrapper .faq-item input[type="checkbox"]:checked + label {
  background: #ffffff;
  color: #C71C81 !important;
}

.faq-wrapper .faq-item input[type="checkbox"]:checked + label span {
  color: #C71C81 !important;
}

.faq-wrapper .faq-item input[type="checkbox"]:checked + label::after {
  transform: rotate(45deg);
}

/* Zvýraznění otevřeného boxu */
.faq-wrapper .faq-item:has(input[type="checkbox"]:checked) {
  border-color: #C71C81;
}

/* Odpověď zavřená */
.faq-item label + div {
  display: none;
  padding: 0 20px 18px;
  background: #ffffff;
  color: #434343;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

/* Odpověď otevřená */
.faq-item input[type="checkbox"]:checked + label + div {
  display: block;
}

/* Text odpovědi */
.faq-item p {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.65;
}

.faq-item p:last-child {
  margin-bottom: 0;
}

.faq-item strong {
  color: #42404f;
  font-weight: 600;
}

/* Odkazy */
.faq-item a {
  color: #C71C81;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.faq-item a:hover {
  color: #a9166d;
}

/* Seznamy */
.faq-item ul,
.faq-item ol {
  padding-left: 20px;
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.65;
}

.faq-item li {
  margin-bottom: 6px;
  font-size: 16px;
}

.faq-item li::marker {
  color: #C71C81;
}

/* Přístupnost při ovládání klávesnicí */
.faq-item input[type="checkbox"]:focus-visible + label {
  outline: 2px solid #C71C81;
  outline-offset: -2px;
}

/* Mobil */
@media (max-width: 768px) {
  .faq-wrapper {
    margin: 26px 0;
    font-size: 15px;
  }

  .faq-item {
    border-radius: 0;
    margin-bottom: 8px;
  }

  .faq-item label {
    padding: 14px 16px;
    font-size: 15px;
    gap: 12px;
  }

  .faq-item label span {
    font-size: 15px;
  }

  .faq-item label::after {
    width: 12px;
    height: 12px;
  }

  .faq-item label + div {
    padding: 0 16px 16px;
    font-size: 15px;
    line-height: 1.6;
  }

  .faq-item p {
    font-size: 15px;
    line-height: 1.6;
  }

  .faq-item ul,
  .faq-item ol,
  .faq-item li {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .faq-item label {
    padding: 13px 14px;
    font-size: 15px;
  }

  .faq-item label span {
    font-size: 15px;
  }

  .faq-item label + div {
    padding: 0 14px 14px;
    font-size: 15px;
  }

  .faq-item p {
    font-size: 15px;
  }
}