/* =========================================================
   SECTION — FAQs (docs/sections/faqs.md)
   ========================================================= */

.faqs {
  padding: 72px 0 100px;
  background: var(--color-white);
}

.faqs__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.faqs__title {
  margin: 0 0 26px;
  font-size: 40px;
  line-height: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

/* Two independent columns → opening an item doesn't leave gaps next to it */
.faqs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  align-items: start;
}
.faqs__col { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Item (<details>) ---------- */
.faq-item {
  border: 1px solid #EBEAE6;
  border-radius: 14px;
  background: var(--color-white);
  transition: background-color .25s ease, border-color .25s ease;
}
.faq-item[open] { background: #F6F8FA; }

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 16px 22px 16px 24px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
  color: var(--color-dark);
  list-style: none;
  cursor: pointer;
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item[open] .faq-item__question { font-weight: 600; }
.faq-item__question:hover { color: var(--color-primary); }
.faq-item__question:focus-visible { outline: 2px solid var(--color-gold); outline-offset: -2px; border-radius: 14px; }

/* Round arrow: down when closed, up when open */
.faq-item__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #EBEAE6;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-dark);
  transition: transform .3s ease;
}
.faq-item[open] .faq-item__icon { transform: rotate(180deg); border-color: transparent; background: #ECEFF3; }

.faq-item__answer { padding: 0 24px 24px; }
.faq-item__answer p {
  max-width: 480px;
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: #5B6170;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .faqs__grid { grid-template-columns: 1fr; }
  .faq-item__answer p { max-width: none; }
}
@media (max-width: 767.98px) {
  .faqs { padding: 48px 0 64px; }
  .faqs__title { font-size: 30px; line-height: 36px; margin-bottom: 18px; }
  .faqs__grid, .faqs__col { gap: 12px; }
  .faq-item__question { min-height: 64px; padding: 14px 14px 14px 18px; font-size: 16px; line-height: 22px; }
  .faq-item__icon { width: 34px; height: 34px; }
  .faq-item__answer { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item, .faq-item__icon { transition: none; }
}

/* FAQs page search: no match */
.faqs__empty { margin: 24px 0 0; font-size: 16px; line-height: 24px; color: var(--color-slate); text-align: center; }
.faqs__empty[hidden] { display: none; }
.faqs__empty a { color: var(--color-primary); font-weight: 600; }
.faq-item[hidden] { display: none; }
