:root {
  --faq-surface: #ffffff;
  --faq-line: #dbe3f0;
}

.page-hero--faq {
  position: relative;
  background:
    linear-gradient(to right, rgba(5, 13, 28, 0.9) 0%, rgba(5, 13, 28, 0.4) 100%),
    url('../faq-hero.webp') center / cover no-repeat;
  color: #fff;
}
.page-hero--faq .page-hero__title,
.page-hero--faq .page-hero__lead { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25); }

.faq-search-wrap {
  max-width: 38rem;
  margin-top: 1.75rem;
}
.faq-search {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-search::placeholder { color: rgba(255, 255, 255, 0.7); }
.faq-search:focus {
  outline: none;
  border-color: var(--blue-sky);
  box-shadow: 0 0 0 4px rgba(41, 182, 246, 0.2);
}

.faq-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.faq-filter-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--slate);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-filter-btn:hover {
  border-color: var(--blue-electric);
  color: var(--blue-electric);
}
.faq-filter-btn.is-active {
  background: var(--blue-electric);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(26, 86, 255, 0.3);
}

.faq-shell {
  display: grid;
  gap: 1rem;
}

.faq-empty {
  text-align: center;
  color: var(--slate);
  padding: 3rem 1rem;
  font-size: 1.05rem;
}

.faq-item {
  background: var(--faq-surface);
  border: 1px solid var(--faq-line);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(5, 13, 28, 0.04);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.faq-item.is-hidden {
  display: none;
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: 0;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq-item__q:hover { color: var(--blue-electric); }

.faq-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(26, 86, 255, 0.08);
  color: var(--blue-electric);
  flex-shrink: 0;
  transition: transform 0.35s ease, background 0.2s ease;
}
.faq-item.is-open .faq-item__icon {
  transform: rotate(180deg);
  background: var(--blue-electric);
  color: #fff;
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.25s ease;
}
.faq-item__a p {
  margin: 0;
  padding: 0 1.5rem 1.5rem;
  color: var(--slate);
  line-height: 1.75;
}
.faq-item.is-open .faq-item__a {
  max-height: 25rem;
  opacity: 1;
}

.faq-cta { padding-block: 5rem; }
.faq-cta__inner {
  max-width: 48rem;
  text-align: center;
  color: #fff;
}
.faq-cta__inner h2 {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.4rem);
  margin-bottom: 0.85rem;
}
.faq-cta__inner p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
}

@media (max-width: 640px) {
  .faq-filters { justify-content: flex-start; }
  .faq-filter-btn { font-size: 0.8rem; padding: 0.45rem 0.9rem; }
  .faq-item__q { padding: 1.15rem; font-size: 0.98rem; }
  .faq-item__a p { padding: 0 1.15rem 1.15rem; }
}
