.faq-page {
  padding: 54px 0 var(--section-space);
}

.faq-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: clamp(38px, 5vw, 72px);
  align-items: start;
}

.faq-content {
  min-width: 0;
  max-width: 900px;
}

.faq-hero {
  max-width: 760px;
  margin-bottom: 58px;
}

.faq-eyebrow {
  margin-bottom: 11px;
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.faq-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 3.7vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.faq-hero > p:last-child {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.75;
}



/* Sidebar */

.faq-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 26px);
  max-height: calc(100vh - var(--header-height) - 52px);
  overflow-y: auto;
}

.faq-sidebar nav {
  padding-right: 18px;
  display: grid;
  gap: 5px;
  border-right: 1px solid var(--line);
}

.faq-nav-title {
  margin: 0 0 19px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.faq-sidebar a {
  padding: 3px 0;
  color: var(--muted-strong);
  font-size: 0.78rem;
}

.faq-sidebar a:hover {
  color: var(--accent-strong);
}


/* Groups */

.faq-group {
  padding: 52px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.faq-group:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.faq-group-header {
  margin-bottom: 22px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.faq-group-header p {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.faq-group-header h2 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}


/* Questions */

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  min-height: 64px;
  padding: 20px 42px 20px 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.45;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  transition:
    color var(--ease),
    transform var(--ease);
}

.faq-item summary:hover {
  color: var(--accent-strong);
}

.faq-item summary:hover::after {
  color: var(--accent-strong);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--accent-strong);
}


/* Answers */

.faq-answer {
  max-width: 760px;
  padding: 0 42px 24px 0;
}

.faq-answer p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.72;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--accent-strong);
}

.faq-answer a:hover {
  text-decoration: underline;
}


/* Mobile */

@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .faq-sidebar nav {
    padding: 0 0 18px;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .faq-nav-title {
    flex: none;
    margin: 0;
  }

  .faq-sidebar a {
    flex: none;
    white-space: nowrap;
  }
}

@media (max-width: 700px) {
  .faq-hero {
    margin-bottom: 42px;
  }

  .faq-group {
    padding: 42px 0;
  }

  .faq-item summary {
    min-height: 58px;
    padding: 17px 36px 17px 0;
  }

  .faq-answer {
    padding-right: 20px;
  }
}