.page-faq {
  --faq-border: #E7ECF3;
  --faq-bg-soft: #F0F4FA;
  --faq-shadow: 0 12px 32px rgba(10, 31, 68, .08);
  --faq-yellow-gradient: linear-gradient(135deg, #FFD700 0%, #FFB800 100%);
  font-family: var(--font-body);
  background: var(--surface);
}

.page-faq .container {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.page-faq .breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 20px;
}

.page-faq .breadcrumb a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
}

.page-faq .breadcrumb a:hover {
  color: var(--yellow);
}

.faq-hero {
  position: relative;
  padding: 40px 0 0;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.faq-hero::after {
  content: '';
  position: absolute;
  right: -90px;
  top: 30px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 215, 0, .14) 0%, transparent 70%);
  pointer-events: none;
}

.faq-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 8px;
  background: var(--faq-yellow-gradient);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  z-index: 2;
}

.faq-hero__vision {
  position: absolute;
  right: 14px;
  bottom: 110px;
  z-index: 1;
  color: rgba(255, 255, 255, .4);
  font-size: 12px;
  letter-spacing: 3px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-transform: uppercase;
}

.faq-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: end;
  position: relative;
  z-index: 1;
}

.faq-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-headline);
  font-size: 32px;
  line-height: 1.22;
  letter-spacing: -.02em;
  max-width: 760px;
}

.faq-hero__lead {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .82);
  max-width: 640px;
}

.faq-hero__lead strong {
  color: var(--yellow);
  font-weight: 700;
}

.faq-search-guide {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: 14px;
  color: rgba(255, 255, 255, .88);
  max-width: 640px;
}

.faq-search-guide__icon {
  flex: 0 0 auto;
  color: var(--yellow);
}

.faq-search-guide__link {
  color: var(--yellow);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.faq-search-guide__link:hover {
  text-decoration: underline;
}

.faq-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.page-faq .faq-hero__tags .tag {
  text-decoration: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
}

.page-faq .tag--navy {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .28);
}

.faq-hero__media {
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(135deg, var(--navy-light), #16305F);
  line-height: 0;
}

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

.faq-qnav {
  padding: 28px 0 40px;
  background: var(--surface);
}

.faq-qnav__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
}

.faq-qnav__card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 20px 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--navy);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.faq-qnav__card:hover,
.faq-qnav__card.is-active {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--yellow);
}

.faq-qnav__card::after {
  content: '';
  position: absolute;
  right: -18px;
  top: -18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: .1;
  pointer-events: none;
}

.faq-qnav__num {
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gray);
}

.faq-qnav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--faq-bg-soft);
  color: var(--navy);
  margin-top: 2px;
}

.faq-qnav__card:nth-child(1) .faq-qnav__icon {
  background: rgba(30, 58, 110, .1);
}

.faq-qnav__card:nth-child(2) .faq-qnav__icon {
  background: rgba(0, 200, 83, .12);
  color: #0B8C44;
}

.faq-qnav__card:nth-child(3) .faq-qnav__icon {
  background: rgba(255, 215, 0, .2);
  color: #8A6D00;
}

.faq-qnav__card:nth-child(4) .faq-qnav__icon {
  background: rgba(255, 59, 48, .1);
  color: #C3271F;
}

.faq-qnav__title {
  font-family: var(--font-headline);
  font-size: 17px;
  font-weight: 800;
}

.faq-qnav__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray);
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 40px 0 64px;
}

.faq-sidebar {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--faq-border);
}

.faq-sidebar__vision {
  display: block;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--gray);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-transform: uppercase;
  position: absolute;
  right: 12px;
  top: 20px;
}

.faq-sidebar__toc {
  padding-right: 30px;
}

.faq-sidebar__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
}

.faq-sidebar__nav {
  display: grid;
  gap: 6px;
}

.faq-sidebar__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.faq-sidebar__link em {
  font-style: italic;
  color: var(--gray);
  font-size: 13px;
  transition: color .2s ease;
}

.faq-sidebar__link:hover {
  background: var(--surface);
  transform: translateX(2px);
}

.faq-sidebar__link.is-active {
  background: var(--navy);
  color: var(--yellow);
}

.faq-sidebar__link.is-active em {
  color: var(--yellow);
}

.faq-sidebar__card {
  margin-top: 24px;
  padding: 18px;
  background: var(--faq-bg-soft);
  border-radius: var(--radius-md);
}

.faq-sidebar__card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}

.faq-sidebar__card-text {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray);
}

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

.faq-section {
  margin-bottom: 48px;
  scroll-margin-top: 28px;
}

.faq-section__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.faq-section__num {
  flex: 0 0 auto;
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 800;
  color: var(--yellow);
  background: var(--navy);
  padding: 9px 18px 9px 14px;
  clip-path: polygon(0 0, 100% 0, 87% 100%, 0 100%);
  line-height: 1;
}

.faq-section__head h2 {
  margin: 4px 0 4px;
  font-family: var(--font-headline);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -.01em;
}

.faq-section__head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
}

.faq-section__bar {
  display: block;
  width: 52px;
  height: 6px;
  border-radius: 999px;
  background: var(--faq-yellow-gradient);
  margin-bottom: 6px;
}

.faq-section--migration .faq-section__bar {
  background: linear-gradient(135deg, var(--green), #00E676);
}

.faq-section--data .faq-section__bar {
  background: linear-gradient(135deg, #FFD700, #FFB800);
}

.faq-section--security .faq-section__bar {
  background: linear-gradient(135deg, var(--red), #FF6B5E);
}

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

.faq-item {
  background: var(--white);
  border: 1px solid var(--faq-border);
  border-left-width: 4px;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
  border-color: rgba(10, 31, 68, .14);
}

.faq-section--access .faq-item {
  border-left-color: var(--navy-light);
}

.faq-section--migration .faq-item {
  border-left-color: var(--green);
}

.faq-section--data .faq-item {
  border-left-color: var(--yellow);
}

.faq-section--security .faq-item {
  border-left-color: var(--red);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  color: var(--navy);
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  user-select: none;
}

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

.faq-item summary:hover {
  background: var(--faq-bg-soft);
}

.faq-item__icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.faq-item__icon::before {
  content: '+';
  font-weight: 400;
}

.faq-item[open] .faq-item__icon {
  background: var(--yellow);
  color: var(--navy);
  transform: rotate(45deg);
}

.faq-item__body {
  padding: 0 20px 18px;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.75;
}

.faq-item__body p {
  margin: 0;
}

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

.faq-figure {
  margin: 18px 0 4px;
}

.faq-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--faq-border);
  object-fit: cover;
}

.faq-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray);
  text-align: center;
}

.faq-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.faq-bottom::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, .16) 0%, transparent 70%);
  pointer-events: none;
}

.faq-bottom__slant {
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  background: var(--faq-yellow-gradient);
  color: var(--navy);
  padding: 6px 14px;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  text-transform: uppercase;
}

.faq-bottom__title {
  margin: 0 0 4px;
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 800;
}

.faq-bottom__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .75);
}

@media (min-width: 600px) {
  .faq-qnav__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 992px) {
  .faq-hero {
    padding: 56px 0 0;
  }

  .faq-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 40px;
  }

  .faq-hero h1 {
    font-size: 48px;
  }

  .faq-hero__lead {
    font-size: 16px;
  }

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

  .faq-sidebar {
    position: sticky;
    top: 24px;
  }

  .faq-main {
    max-width: 820px;
  }

  .faq-section__head h2 {
    font-size: 30px;
  }

  .faq-item summary {
    font-size: 17px;
    padding: 20px 22px;
  }

  .faq-item__body {
    padding: 0 22px 22px;
    font-size: 15px;
  }

  .faq-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
  }

  .faq-bottom__slant {
    margin-right: 8px;
  }
}
