.page-faq {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(74, 144, 226, 0.08) 0%, transparent 50%),
    var(--color-midnight);
  color: var(--color-text);
  padding: 32px 0 96px;
}

.page-faq::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 62, 92, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 62, 92, 0.3) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.page-faq .container {
  position: relative;
  z-index: 1;
}

.page-faq .breadcrumb {
  margin-bottom: 24px;
}

/* ── Hero ── */
.faq-hero {
  position: relative;
  border-bottom: 1px dashed var(--color-line);
  margin-bottom: 56px;
  padding-top: 16px;
}

.faq-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 4px;
  background: var(--color-orange);
}

.faq-hero__content {
  display: grid;
  gap: 24px;
}

@media (min-width: 992px) {
  .faq-hero__content {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 40px;
  }
}

.faq-hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
  max-width: 720px;
}

@media (min-width: 768px) {
  .faq-hero h1 {
    font-size: 36px;
  }
}

.faq-hero__lead {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 640px;
  margin: 0;
}

.faq-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (min-width: 992px) {
  .faq-hero__stats {
    grid-template-columns: repeat(3, auto);
    gap: 16px;
    justify-self: end;
  }
}

.faq-hero__stat {
  border: 1px solid var(--color-line);
  background: rgba(20, 44, 74, 0.6);
  padding: 14px 16px;
  position: relative;
}

.faq-hero__stat::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 12px;
  height: 3px;
  background: var(--color-orange);
}

.faq-hero__stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-orange);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
  .faq-hero__stat-num {
    font-size: 26px;
  }
}

.faq-hero__stat-label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

.faq-hero__visual {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-line);
  margin-top: 28px;
}

.faq-hero__visual::before {
  content: "X: 2019-2025 / Y: SEASON ARCHIVE";
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  background: rgba(10, 30, 60, 0.85);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
}

.faq-hero__visual::after {
  content: "FIG. 01 / FAQ-DATA-MAP";
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  background: rgba(10, 30, 60, 0.85);
  color: var(--color-orange);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
}

.faq-hero__img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .faq-hero__img {
    height: 250px;
  }
}

/* ── Layout ── */
.faq-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 992px) {
  .faq-layout {
    grid-template-columns: 240px 1fr;
    gap: 48px;
  }
}

/* ── Sidebar ── */
.faq-sidebar {
  min-width: 0;
}

.faq-sidebar__inner {
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .faq-sidebar__inner {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.faq-sidebar__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0 0 8px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@media (min-width: 992px) {
  .faq-sidebar__list {
    flex-direction: column;
    gap: 0;
    overflow: visible;
    padding: 0;
  }
}

.faq-sidebar__link {
  display: block;
  padding: 9px 16px;
  white-space: nowrap;
  border: 1px solid var(--color-line);
  background: rgba(10, 30, 60, 0.4);
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

@media (min-width: 992px) {
  .faq-sidebar__link {
    border-left: 3px solid var(--color-line);
    border-top: none;
    border-right: none;
    border-bottom: 1px solid var(--color-line);
    white-space: normal;
    padding: 12px 16px;
  }
}

.faq-sidebar__link:hover,
.faq-sidebar__link:focus {
  color: var(--color-orange);
  border-color: var(--color-orange);
}

.faq-sidebar__link.is-active {
  color: var(--color-text);
  background: var(--color-orange);
  border-color: var(--color-orange);
}

.faq-sidebar__note {
  margin-top: 24px;
  padding: 16px;
  border: 1px dashed var(--color-line);
  background: rgba(10, 30, 60, 0.5);
}

.faq-sidebar__note p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 10px 0 14px;
}

.faq-sidebar__btn {
  width: 100%;
  text-align: center;
}

/* ── FAQ Sections ── */
.faq-section {
  scroll-margin-top: calc(var(--header-h) + 24px);
  margin-bottom: 56px;
}

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

.faq-section__header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.faq-section__index {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-orange);
  letter-spacing: 0.05em;
}

.faq-section__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}

.faq-section__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-muted);
  white-space: nowrap;
}

/* ── Accordion Items ── */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: rgba(20, 44, 74, 0.55);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-line);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.faq-item[open] {
  background: rgba(20, 44, 74, 0.85);
  border-left-color: var(--color-orange);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-text);
  transition: color 0.2s;
}

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

.faq-item summary:hover,
.faq-item summary:focus-visible {
  color: var(--color-orange);
}

.faq-item summary:focus-visible,
.faq-sidebar__link:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
}

.faq-item__icon {
  flex-shrink: 0;
  position: relative;
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-orange);
  border-radius: 50%;
  transition: background 0.2s;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-orange);
}

.faq-item__icon::before {
  width: 10px;
  height: 2px;
}

.faq-item__icon::after {
  width: 2px;
  height: 10px;
  transition: opacity 0.2s;
}

.faq-item[open] .faq-item__icon::after {
  opacity: 0;
}

.faq-item__answer {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  border-top: 0 solid var(--color-line);
  transition: max-height 0.35s ease, padding 0.35s ease, border-top-width 0.35s ease;
}

.faq-item[open] .faq-item__answer {
  padding: 4px 18px 20px;
  max-height: 800px;
  border-top-width: 1px;
}

.faq-item__answer p {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.85;
}

.faq-item__answer strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ── Contact Block ── */
.faq-contact {
  margin-top: 72px;
}

.faq-contact__inner {
  display: grid;
  gap: 24px;
  border: 1px solid var(--color-orange);
  border-left: 4px solid var(--color-orange);
  background: rgba(20, 44, 74, 0.5);
  padding: 28px 24px;
}

@media (min-width: 768px) {
  .faq-contact__inner {
    padding: 32px;
  }
}

@media (min-width: 992px) {
  .faq-contact__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
  }
}

.faq-contact h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 8px 0 8px;
}

.faq-contact__content > p {
  margin: 0 0 4px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 520px;
}

.faq-contact__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.faq-contact__list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--color-line);
}

.faq-contact__list li:last-child {
  border-bottom: none;
}

.faq-contact__label {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-orange);
  letter-spacing: 0.04em;
}

.faq-contact__value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  word-break: break-word;
}

a.faq-contact__value {
  color: var(--color-orange);
  text-decoration: none;
  border-bottom: 1px dashed var(--color-orange);
}

a.faq-contact__value:hover,
a.faq-contact__value:focus-visible {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

.faq-contact__btn {
  margin-top: 16px;
}

.faq-contact__visual {
  border: 1px solid var(--color-line);
  overflow: hidden;
  position: relative;
}

.faq-contact__visual::after {
  content: "FIG. 02 / SUPPORT";
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  background: rgba(10, 30, 60, 0.85);
  color: var(--color-orange);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
}

.faq-contact__img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

@media (min-width: 992px) {
  .faq-contact__img {
    width: 300px;
    height: 200px;
  }
}
