/* ---------- FAQ (2026-10-20): sekcja na stronie głównej + podstrona faq.html ---------- */
/* treść pytań: 707-media/penthouse-faq/build_faq.py */

.faq-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.faq-layout .sec-head { position: sticky; top: 110px; margin-bottom: 0; }
.faq-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: var(--r); background: var(--bg2); border: 1px solid var(--border);
  transition: border-color .25s, background .25s; }
.faq-item:hover { border-color: var(--light); }
.faq-item[open] { border-color: var(--light); background: #F7F5F0; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 26px; cursor: pointer; list-style: none; border-radius: var(--r); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.faq-item summary h3 { font-size: 17px; font-weight: 700; line-height: 1.4; margin: 0; }

.faq-ic { position: relative; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg); transition: background .3s var(--ease), border-color .3s; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px;
  margin: -1px 0 0 -6px; border-radius: 2px; background: var(--deep); transition: transform .35s var(--ease), background .3s; }
.faq-ic::after { transform: rotate(90deg); }
.faq-item[open] .faq-ic { background: var(--primary); border-color: var(--primary); }
.faq-item[open] .faq-ic::before, .faq-item[open] .faq-ic::after { background: #fff; }
.faq-item[open] .faq-ic::after { transform: rotate(0deg); }

.faq-a { padding: 0 26px 24px; }
.faq-a p { font-size: 15px; line-height: 1.65; color: var(--ink-muted); max-width: 680px; }
.faq-a a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.faq-item[open] .faq-a { animation: faqIn .45s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* podstrona faq.html */
.faq-hero { padding-top: 148px; padding-bottom: 40px; background: var(--teal); color: #fff; }
.faq-hero .sec-head { max-width: 720px; margin-bottom: 30px; }
.faq-hero h1 { font-size: clamp(34px, 5vw, 52px); margin: 12px 0 16px; }
.faq-hero p { color: rgba(255,255,255,.72); }
.faq-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.faq-nav a { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.86); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16); border-radius: 100px; padding: 9px 17px;
  transition: background .2s, border-color .2s, color .2s; }
.faq-nav a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.faq-page { padding-top: 64px; }
.faq-page .wrap { max-width: 880px; }
.faq-cat { margin-bottom: 56px; scroll-margin-top: 96px; }
.faq-cat h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 20px; }
.faq-cta { margin-top: 24px; padding: 40px; border-radius: var(--r); text-align: center;
  background: var(--grad-cta); color: #fff; }
.faq-cta h2 { font-size: 26px; margin-bottom: 8px; }
.faq-cta p { font-size: 15px; color: rgba(255,255,255,.85); margin: 0 auto 22px; max-width: 560px; }
.faq-cta p a { color: #fff; font-weight: 700; }

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-layout .sec-head { position: static; }
}
@media (max-width: 560px) {
  .faq-item summary { padding: 18px 18px; gap: 14px; }
  .faq-item summary h3 { font-size: 16px; }
  .faq-a { padding: 0 18px 20px; }
  .faq-hero { padding-top: 122px; }
  .faq-cta { padding: 32px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item[open] .faq-a { animation: none; }
}
