.page-faq {
  --faq-hero-bg: var(--ink);
  --faq-hero-text: var(--white);
  --faq-line: var(--pearl);
  --faq-open-line: var(--gold);
  --faq-item-bg: var(--white);
}

.page-faq .faq-hero {
  background: var(--faq-hero-bg);
  color: var(--faq-hero-text);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
  padding: 40px 0 68px;
  position: relative;
  overflow: hidden;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 56%;
  height: 8px;
  background: linear-gradient(90deg, var(--crimson) 0 60%, var(--gold) 60% 100%);
  opacity: .9;
}

.page-faq .faq-hero__inner {
  display: grid;
  gap: 28px;
  align-items: center;
}

.page-faq .faq-hero__eyebrow {
  color: var(--gold);
}

.page-faq .faq-hero__title {
  font-family: var(--font-head);
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1.12;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 10px 0 18px;
  color: var(--faq-hero-text);
}

.page-faq .faq-hero__lead {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .82);
  max-width: 560px;
  margin-bottom: 24px;
}

.page-faq .faq-hero__accent {
  color: var(--gold);
  font-weight: 600;
}

.page-faq .faq-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-faq .faq-hero__figure {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 0 100%);
  border: 1px solid rgba(255, 255, 255, .22);
  background: var(--teal);
}

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

.page-faq .faq-topic-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--faq-line);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 5;
}

.page-faq .faq-topic-nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-faq .faq-topic-nav__intro {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--teal);
  text-transform: uppercase;
  white-space: nowrap;
}

.page-faq .faq-topic-nav__list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
  flex: 1;
}

.page-faq .faq-topic-nav__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--faq-line);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  white-space: nowrap;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: border-color .24s ease, color .24s ease, background .24s ease;
}

.page-faq .faq-topic-nav__item:hover,
.page-faq .faq-topic-nav__item:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  outline: none;
}

.page-faq .faq-topic-nav__item .status-dot {
  background: var(--amber);
}

.page-faq .faq-topic-nav__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--crimson);
  background: rgba(192, 57, 43, .08);
  padding: 2px 6px;
  border-radius: 999px;
}

.page-faq .faq-section {
  padding: 44px 0 12px;
}

.page-faq .faq-section__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 18px;
}

.page-faq .faq-section__num {
  flex: 0 0 auto;
  width: 56px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  background: var(--crimson);
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
}

.page-faq .faq-section__heading {
  flex: 1;
}

.page-faq .faq-section__heading .section-title {
  font-size: 28px;
  line-height: 1.2;
  margin: 2px 0 4px;
}

.page-faq .faq-section__heading .section-subtitle {
  font-size: 14px;
  color: var(--teal);
  line-height: 1.6;
}

.page-faq .faq-list {
  display: grid;
  gap: 12px;
}

.page-faq .faq-item {
  background: var(--faq-item-bg);
  border-left: 5px solid var(--teal);
  box-shadow: 0 2px 0 rgba(16, 24, 32, .04);
  transition: border-color .28s ease, box-shadow .28s ease;
}

.page-faq .faq-item[open] {
  border-left-color: var(--faq-open-line);
  box-shadow: 0 10px 26px rgba(16, 24, 32, .08);
}

.page-faq .faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 18px 20px;
}

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

.page-faq .faq-item summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.page-faq .faq-item__q {
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
  flex: 1;
}

.page-faq .faq-item__icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--faq-line);
  position: relative;
  transition: background .26s ease, border-color .26s ease, transform .26s ease;
}

.page-faq .faq-item__icon::before,
.page-faq .faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--teal);
  border-radius: 1px;
  transition: background .26s ease, transform .26s ease, opacity .26s ease;
}

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

.page-faq .faq-item__icon::after {
  width: 2px;
  height: 13px;
}

.page-faq .faq-item[open] .faq-item__icon {
  background: var(--crimson);
  border-color: var(--crimson);
  transform: rotate(180deg);
}

.page-faq .faq-item[open] .faq-item__icon::before,
.page-faq .faq-item[open] .faq-item__icon::after {
  background: var(--white);
}

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

.page-faq .faq-item__a {
  padding: 0 20px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink);
  max-width: 860px;
  animation: faqReveal .28s ease;
}

.page-faq .faq-item__a p + p {
  margin-top: 10px;
}

.page-faq .faq-item__a a {
  color: var(--crimson);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-faq .faq-item__a a:hover {
  color: var(--gold);
}

.page-faq .faq-item__path {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  background: var(--paper);
  border-left: 3px solid var(--gold);
  padding: 8px 12px;
  margin-top: 14px !important;
}

.page-faq .faq-bottom {
  background: var(--ink);
  color: var(--white);
  clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%);
  padding: 72px 0 48px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.page-faq .faq-bottom::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 48px solid rgba(212, 168, 69, .12);
}

.page-faq .faq-bottom__inner {
  display: grid;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.page-faq .faq-bottom__eyebrow {
  color: var(--gold);
}

.page-faq .faq-bottom__title {
  color: var(--white);
  font-size: 34px;
  line-height: 1.18;
  margin: 8px 0 12px;
}

.page-faq .faq-bottom__text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .8);
  max-width: 600px;
  margin-bottom: 22px;
}

.page-faq .faq-bottom__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-faq .faq-bottom__figure {
  border: 1px solid rgba(212, 168, 69, .35);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), 0 100%);
  background: var(--teal);
}

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

@keyframes faqReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .page-faq .faq-hero {
    padding: 56px 0 88px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
  }

  .page-faq .faq-hero__inner {
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
  }

  .page-faq .faq-hero__lead {
    font-size: 17px;
  }

  .page-faq .faq-topic-nav {
    position: static;
  }

  .page-faq .faq-topic-nav__inner {
    display: block;
  }

  .page-faq .faq-topic-nav__intro {
    display: block;
    margin-bottom: 12px;
  }

  .page-faq .faq-topic-nav__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    overflow: visible;
  }

  .page-faq .faq-topic-nav__item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 14px 16px;
    font-size: 14px;
  }

  .page-faq .faq-section {
    padding-top: 56px;
  }

  .page-faq .faq-section__head {
    align-items: center;
    gap: 22px;
  }

  .page-faq .faq-section__num {
    width: 68px;
    height: 54px;
    font-size: 20px;
  }

  .page-faq .faq-section__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
  }

  .page-faq .faq-section__heading .section-title {
    font-size: 34px;
  }

  .page-faq .faq-section__heading .section-subtitle {
    font-size: 15px;
    text-align: right;
  }

  .page-faq .faq-list {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
  }

  .page-faq .faq-item__q {
    font-size: 18px;
  }

  .page-faq .faq-item__a {
    font-size: 15px;
  }

  .page-faq .faq-bottom {
    padding: 88px 0 56px;
    margin-top: 80px;
  }

  .page-faq .faq-bottom__inner {
    grid-template-columns: 1fr .8fr;
    gap: 52px;
  }

  .page-faq .faq-bottom__title {
    font-size: 42px;
  }
}
