/* Sekcja FAQ – ciemne tło z pomarańczową poświatą jak w Home */
.section--faq {
  position: relative;
  padding: clamp(56px, 7vw, 110px) var(--pad-x);
  min-height: 100vh;
  color: #f5f5f5;
  isolation: isolate;
  overflow: clip;

background:
    linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    radial-gradient(1200px 600px at 70% 30%, rgba(255,140,0,0.25), transparent 60%),
    url("../Images/QubitBG.png") center / cover no-repeat;
}

.faq {
  max-width: 1100px;
  margin: 0 auto;
}


.faq-subtitle {
  margin: 10px auto 28px;
  max-width: 760px;
  text-align: center;
  color: #e8e8e8;
  opacity: .95;
  font-size: clamp(16px, 2.2vw, 18px);
}

.faq-list {
  display: grid;
  gap: clamp(12px, 2vw, 16px);
}

.faq-item {
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow:
    0 8px 24px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}


.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: clamp(14px, 2.4vw, 18px) clamp(16px, 3vw, 22px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  position: relative;
  outline: none;
}
.faq-item summary::-webkit-details-marker { display: none; }



/* Ikona strzałki */
.faq-item .icon {
  width: 18px;
  height: 18px;
  position: relative;
}
.faq-item .icon::before,
.faq-item .icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 2px;
  background: #ffcc66;
  transform-origin: center;
  transition: transform .25s ease, background .25s ease;
}
.faq-item .icon::before { transform: rotate(45deg); }
.faq-item .icon::after  { transform: rotate(-45deg); }

.faq-item[open] .icon::before { transform: rotate(-45deg); }
.faq-item[open] .icon::after  { transform: rotate(45deg); }

/* Odpowiedź */
.faq-item .a {
  padding: 0 clamp(16px, 3vw, 22px) clamp(16px, 3vw, 22px);
  color: #f0f0f0;
  line-height: 1.6;
  font-size: 16px;
  border-top: 1px solid rgba(255,255,255,.08);

  /* 👇 kluczowe dla animacji */
  overflow: hidden;
  transition: height .28s ease;
  will-change: height;
  contain: layout;
}

.faq-item { scroll-margin-top: calc(var(--header-h) + 8px); }
.faq-item .a { overflow:hidden; transition:height .28s ease; will-change:height; contain:layout; }


/* Hover/Focus */
.faq-item:hover,
.faq-item:focus-within {
  border-color: rgba(255, 163, 26, .65);
  box-shadow:
    0 10px 28px rgba(0,0,0,.40),
    0 0 0 1px rgba(255, 163, 26, .15) inset;
}

/* CTA w stopce */
.faq-cta {
  margin-top: clamp(22px, 4vw, 36px);
  text-align: center;
}
.faq-cta .btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff8800, #ffcc33);
  color: #111;
  font-weight: 800;
  text-decoration: none;
  font-size: 17px;
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.faq-cta .btn:hover {
  background: linear-gradient(135deg, #ffcc33, #ff8800);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}




/* Dostępność */
.faq-item summary:focus-visible {
  outline: 2px solid #ffcc66;
  outline-offset: 2px;
  border-radius: 12px;
}

/* Preferuje mniej ruchu */
@media (prefers-reduced-motion: reduce) {
  .faq-title { animation: none; }
  .faq-item,
  .faq-cta .btn { transition: none; }
}

.faq-item {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.fb-fallback {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;          /* wysokość kafelka, żeby wyglądało spójnie */
  font-size: 1em;
  font-weight: 500;
  color: #333;
  background: #fff;
  border: 5px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #ffb347, #ff8c00) border-box;
  box-shadow: 0 0px 10px rgba(217, 94, 6, 0.6);
  text-align: center;
}
