.page-faq {
  --gold-line: rgba(212, 175, 55, 0.28);
  background-color: var(--black);
  color: var(--white);
  padding-bottom: clamp(64px, 10vw, 110px);
}

.faq-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 0 40px;
  border-bottom: 1px solid var(--gold-line);
}

.faq-hero::before {
  content: "";
  position: absolute;
  right: -16%;
  top: 0;
  width: 58%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0) 56%);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.faq-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

.faq-hero__eyebrow {
  margin: 18px 0 0;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.faq-hero h1 {
  margin: 12px 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.02em;
}

.faq-hero__lead {
  margin: 0 0 20px;
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 42em;
}

.faq-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq-hero__badges .tag {
  background: var(--charcoal);
  border: 1px solid var(--gold-line);
  color: var(--silver);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
}

.faq-hero__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

.faq-hero__visual {
  position: relative;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  background: linear-gradient(135deg, var(--charcoal), #262626);
  border: 1px solid var(--gold-line);
}

.faq-hero__visual::after {
  content: "SUPPORT";
  position: absolute;
  top: 14px;
  right: 14px;
  color: rgba(212, 175, 55, 0.6);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
}

.faq-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.faq-topicbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 30px auto;
  padding: 12px 16px;
  background: rgba(26, 26, 26, 0.7);
  border: 1px solid var(--gold-line);
}

.faq-topicbar__label {
  margin-right: 2px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.faq-topicbar__pill {
  padding: 6px 14px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 999px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}

.faq-topicbar__pill:hover,
.faq-topicbar__pill:focus {
  color: var(--black);
  background: var(--gold);
  border-color: var(--gold);
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.faq-toc {
  background: var(--charcoal);
  border-left: 2px solid var(--gold);
  padding: 24px 18px;
}

.faq-toc__title {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold-line);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.faq-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.faq-toc__list li {
  flex-shrink: 0;
  white-space: nowrap;
  margin-bottom: 0;
}

.faq-toc__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  background: none;
  border: none;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 0;
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out);
}

.faq-toc__list a:hover,
.faq-toc__list a:focus {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
}

.faq-toc__no {
  min-width: 1.8em;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

.faq-toc__card {
  display: none;
  margin-top: 22px;
  border: 1px solid var(--gold-line);
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0));
  padding: 16px;
}

.faq-toc__card p {
  margin: 0 0 12px;
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.65;
}

.faq-toc__contact {
  margin-top: 14px;
  font-size: 0.82rem;
  line-height: 1.8;
}

.faq-content {
  min-width: 0;
}

.faq-section {
  margin-bottom: 38px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  scroll-margin-top: 96px;
}

.faq-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.faq-section__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.faq-section__no {
  color: rgba(212, 175, 55, 0.85);
  font-family: var(--font-heading);
  font-size: clamp(44px, 8vw, 62px);
  line-height: 1;
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.55);
}

.faq-section__title {
  margin: 0;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 900;
}

.faq-item {
  margin-bottom: 10px;
  background: var(--charcoal);
  border: 1px solid rgba(212, 175, 55, 0.18);
  transition: background 250ms var(--ease-out), border-color 250ms var(--ease-out);
}

.faq-item[open] {
  background: var(--charcoal-soft);
  border-color: rgba(212, 175, 55, 0.55);
}

.faq-item summary {
  position: relative;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 16px 22px;
  cursor: pointer;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.55;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  opacity: 0.5;
}

.faq-item[open] summary::before {
  opacity: 1;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 250ms var(--ease-out);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item__q {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
}

.faq-item__qn {
  flex-shrink: 0;
  padding: 3px 8px;
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.faq-item__body {
  padding: 14px 20px 16px 22px;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.8;
}

.faq-item__body p {
  margin: 0 0 10px;
}

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

.faq-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-content a:hover,
.faq-content a:focus {
  color: var(--amber);
}

.faq-flow {
  margin: 24px 0 0;
  background: var(--charcoal);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.faq-flow img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.faq-flow figcaption {
  padding: 8px 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 0.8rem;
}

@media (min-width: 640px) {
  .faq-hero__inner {
    grid-template-columns: 1.3fr 0.9fr;
  }
}

@media (min-width: 960px) {
  .faq-hero {
    padding: 42px 0 66px;
  }

  .faq-topicbar {
    margin: 36px auto 52px;
  }

  .faq-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .faq-toc {
    position: sticky;
    top: 104px;
  }

  .faq-toc__list {
    display: block;
    overflow: visible;
    padding-bottom: 0;
  }

  .faq-toc__list li {
    white-space: normal;
    margin-bottom: 2px;
  }

  .faq-toc__list a {
    display: flex;
    align-items: flex-start;
    white-space: normal;
    padding: 9px 8px;
    border: 0;
    border-bottom: 0;
    border-radius: 0 6px 6px 0;
    background: none;
  }

  .faq-toc__card {
    display: block;
  }

  .faq-section__head {
    margin-bottom: 24px;
  }
}
