.faq-page {
  --faq-black: #050608;
  --faq-ink: #0d0f14;
  --faq-card: #121118;
  --faq-panel: rgba(18, 16, 22, 0.95);
  --faq-border: rgba(220, 38, 38, 0.22);
  --faq-border-strong: rgba(239, 68, 68, 0.38);
  --faq-red: #dc2626;
  --faq-red-soft: #ef4444;
  --faq-red-glow: rgba(220, 38, 38, 0.34);
  --faq-gold: #d6a85f;
  --faq-gold-soft: rgba(214, 168, 95, 0.32);
  --faq-text: #f4ede2;
  --faq-muted: #b9ab9b;
  --faq-shadow: 0 26px 70px rgba(0, 0, 0, 0.46);
  max-width: 1220px;
  margin: 0 auto;
  padding: 48px 20px 72px;
  color: var(--faq-text);
}

.faq-hero,
.faq-stat,
.faq-panel,
.faq-card,
.faq-empty {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.faq-hero::after,
.faq-stat::after,
.faq-panel::after,
.faq-card::after,
.faq-empty::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 224, 182, 0.18), rgba(255, 224, 182, 0.18)) left 16px top 14px / 42px 1px no-repeat,
    linear-gradient(180deg, rgba(255, 224, 182, 0.18), rgba(255, 224, 182, 0.18)) left 14px top 16px / 1px 26px no-repeat,
    linear-gradient(270deg, rgba(255, 224, 182, 0.14), rgba(255, 224, 182, 0.14)) right 16px top 14px / 36px 1px no-repeat,
    linear-gradient(180deg, rgba(255, 224, 182, 0.14), rgba(255, 224, 182, 0.14)) right 14px top 16px / 1px 26px no-repeat,
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 6px);
  opacity: 0.68;
}

.faq-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--faq-border);
  background:
    linear-gradient(135deg, rgba(214, 168, 95, 0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(220, 38, 38, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 236, 208, 0.05), transparent 30%),
    linear-gradient(180deg, rgba(7, 6, 9, 0.98) 0%, rgba(16, 13, 19, 0.97) 100%);
  box-shadow: var(--faq-shadow);
}

.faq-eyebrow,
.faq-panel__eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faq-gold);
}

.faq-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  line-height: 0.94;
  color: #fff7ed;
  text-shadow: 0 0 26px rgba(220, 38, 38, 0.18);
}

.faq-lead {
  max-width: 52rem;
  margin: 18px 0 0;
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--faq-muted);
}

.faq-hero__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.faq-stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 110px;
  padding: 18px 20px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  background:
    linear-gradient(180deg, rgba(28, 18, 20, 0.42) 0%, rgba(18, 16, 22, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 230, 0.05),
    inset 0 0 0 1px rgba(214, 168, 95, 0.08);
}

.faq-stat strong {
  font-size: 2rem;
  line-height: 1;
  color: #fff;
}

.faq-stat span {
  margin-top: 8px;
  color: var(--faq-muted);
}

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.faq-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(220, 38, 38, 0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(24, 20, 24, 0.94) 0%, rgba(17, 19, 24, 0.9) 100%);
  color: var(--faq-text);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.faq-tab small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 236, 208, 0.06);
  color: #d9c8b5;
  font-size: 0.82rem;
}

.faq-tab:hover,
.faq-tab:focus-visible,
.faq-tab.is-active {
  border-color: var(--faq-border-strong);
  background: linear-gradient(180deg, rgba(46, 15, 18, 0.96) 0%, rgba(24, 18, 25, 0.96) 100%);
  box-shadow: 0 14px 26px rgba(220, 38, 38, 0.18);
  outline: none;
  transform: translateY(-1px);
}

.faq-tab.is-active {
  color: #fff;
}

.faq-tab.is-active small {
  background: var(--faq-red);
  color: #fff;
  box-shadow: 0 0 14px var(--faq-red-glow);
}

.faq-panels {
  margin-top: 24px;
}

.faq-panel {
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--faq-border);
  background:
    linear-gradient(135deg, rgba(214, 168, 95, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(15, 12, 18, 0.98) 0%, rgba(18, 16, 22, 0.95) 100%);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 236, 208, 0.03);
}

.js .faq-panel {
  display: none;
}

.js .faq-panel.is-active {
  display: block;
}

.faq-panel__intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.faq-panel__intro h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.2;
  color: #fff;
}

.faq-panel__count {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(214, 168, 95, 0.24);
  border-radius: 999px;
  background: rgba(214, 168, 95, 0.12);
  color: #ffe6bc;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, 0.06);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.faq-card {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(220, 38, 38, 0.12);
  background:
    linear-gradient(135deg, rgba(214, 168, 95, 0.06), transparent 18%),
    linear-gradient(180deg, rgba(21, 18, 24, 0.97) 0%, rgba(14, 13, 18, 0.97) 100%);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 236, 208, 0.025);
}

.faq-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.78) 0%, rgba(220, 38, 38, 0.2) 100%);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.1);
}

.faq-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(214, 168, 95, 0.22);
  border-radius: 999px;
  background: rgba(214, 168, 95, 0.12);
  color: #ffe2b2;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.faq-card h3 {
  margin: 16px 0 10px;
  font-size: 1.18rem;
  line-height: 1.35;
  color: #fff;
}

.faq-card__answer p {
  margin: 0 0 12px;
  color: var(--faq-muted);
  line-height: 1.72;
}

.faq-card__answer p:last-child {
  margin-bottom: 0;
}

.faq-empty {
  margin-top: 24px;
  padding: 34px 28px;
  border: 1px solid rgba(220, 38, 38, 0.24);
  background:
    linear-gradient(135deg, rgba(214, 168, 95, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(18, 16, 22, 0.92) 0%, rgba(17, 19, 24, 0.88) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 208, 0.03),
    0 14px 36px rgba(0, 0, 0, 0.24);
}

.faq-empty h2 {
  margin: 0 0 10px;
  color: #fff;
}

.faq-empty p {
  margin: 0;
  color: var(--faq-muted);
}

@media (max-width: 960px) {
  .faq-hero,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-panel__intro {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .faq-page {
    padding: 28px 14px 52px;
  }

  .faq-hero,
  .faq-panel {
    padding: 22px 18px;
  }

  .faq-tab {
    width: 100%;
    justify-content: space-between;
  }

  .faq-card {
    padding: 18px;
  }
}
