.page-faq {
  --faq-gold: #D4AF37;
  --faq-gold-bright: #F0D060;
  --faq-navy: #0A1F44;
  --faq-navy-deep: #071326;
  --faq-red: #8B0000;
  --faq-bg: #F4F6F9;
  --faq-bg-alt: #E8ECF1;
  --faq-line: rgba(212, 175, 55, 0.35);
  --faq-clip: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  background: var(--faq-bg);
}

.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--faq-navy-deep) 0%, var(--faq-navy) 55%, #12315E 100%);
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -18%;
  width: 60%;
  height: 180%;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255, 255, 255, 0.035) 14px 15px);
  transform: rotate(8deg);
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  right: 5%;
  bottom: -44px;
  width: 170px;
  height: 170px;
  border: 2px solid var(--faq-line);
  transform: rotate(12deg);
  clip-path: polygon(0 0, 82% 0, 100% 50%, 82% 100%, 0 100%);
  pointer-events: none;
}

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

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

.page-faq .faq-hero .eyebrow {
  margin-bottom: 10px;
}

.page-faq .faq-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.page-faq .faq-hero__lead {
  max-width: 640px;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.page-faq .faq-hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.page-faq .faq-hero .meta-tag--red {
  border-radius: 0;
}

.page-faq .faq-hero__quick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.page-faq .faq-hero__quick > .mono-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.72);
}

.page-faq .faq-hero__keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-faq .faq-hero .index-key {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(240, 208, 96, 0.5);
  background: rgba(240, 208, 96, 0.1);
  color: var(--faq-gold-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-faq .faq-hero .index-key:hover,
.page-faq .faq-hero .index-key:focus {
  background: rgba(240, 208, 96, 0.24);
  border-color: rgba(240, 208, 96, 0.9);
  color: #fff;
}

.page-faq .faq-search {
  padding: 28px 0 4px;
}

.page-faq .faq-search__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--faq-line);
  box-shadow: 0 18px 36px -22px rgba(10, 31, 68, 0.45);
  clip-path: var(--faq-clip);
  overflow: hidden;
}

.page-faq .faq-search__field {
  padding: 28px 20px 24px;
}

.page-faq .faq-search__label {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--faq-navy);
}

.page-faq .faq-search__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--faq-gold);
  background: var(--faq-bg);
  color: var(--color-text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.page-faq .faq-search__input:focus {
  border-color: var(--faq-gold-bright);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.page-faq .faq-search__hint {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text);
}

.page-faq .faq-search__fig {
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  background: linear-gradient(135deg, #E8ECF1, #F4F6F9);
  border-top: 1px solid var(--faq-line);
}

.page-faq .faq-search__fig::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--faq-gold) 45%, transparent 46%);
  opacity: 0.55;
}

.page-faq .faq-search__img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
}

.page-faq .faq-layout {
  padding: 32px 0 52px;
}

.page-faq .faq-layout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.page-faq .faq-toc__title {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--faq-navy);
}

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

.page-faq .faq-toc__list li {
  flex: 0 0 auto;
}

.page-faq .faq-toc__list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--faq-bg-alt);
  color: var(--faq-navy);
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid var(--faq-gold);
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-faq .faq-toc__list a:hover,
.page-faq .faq-toc__list a:focus {
  background: #fff;
  color: var(--faq-gold);
}

.page-faq .faq-toc__num {
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-faq .faq-toc__more {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

.page-faq .faq-cat {
  position: relative;
  background: #fff;
  clip-path: var(--faq-clip);
  border-top: 3px solid var(--faq-gold);
  box-shadow: 0 10px 30px -22px rgba(10, 31, 68, 0.4);
  padding: 24px 18px 10px;
  margin-bottom: 36px;
}

.page-faq .faq-cat::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, transparent 45%, rgba(212, 175, 55, 0.28) 46%, rgba(212, 175, 55, 0.28) 100%);
  pointer-events: none;
}

.page-faq .faq-cat__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.page-faq .faq-cat__tag {
  margin: 0;
  padding: 4px 8px;
  background: var(--faq-navy);
  color: var(--faq-gold-bright);
  letter-spacing: 0.08em;
  font-size: 11px;
  line-height: 1.6;
}

.page-faq .faq-cat__head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.3;
  color: var(--faq-navy);
}

.page-faq .faq-cat__wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-faq .faq-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 16px;
  background: var(--faq-bg);
  transition: background 0.2s ease, transform 0.2s ease;
}

.page-faq .faq-item:hover {
  background: #fff;
  transform: translateX(2px);
}

.page-faq .faq-item--alt {
  background: var(--faq-bg-alt);
}

.page-faq .faq-item--alt:hover {
  background: #fff;
}

.page-faq .faq-item__no {
  margin: 0;
  color: var(--faq-gold);
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.page-faq .faq-item__body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--faq-navy);
}

.page-faq .faq-item__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
}

.page-faq .faq-fig {
  margin: 0 0 16px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(10, 31, 68, 0.08), rgba(212, 175, 55, 0.14));
  border-left: 3px solid var(--faq-gold);
}

.page-faq .faq-fig img {
  display: block;
  width: 100%;
  height: auto;
}

.page-faq .faq-more {
  margin-top: 14px;
}

.page-faq .faq-more__panel {
  clip-path: var(--faq-clip);
  padding: 28px 20px;
  position: relative;
  overflow: hidden;
}

.page-faq .faq-more__panel::before {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  border: 2px solid rgba(212, 175, 55, 0.35);
  transform: rotate(12deg);
  clip-path: polygon(0 0, 82% 0, 100% 50%, 82% 100%, 0 100%);
  pointer-events: none;
}

.page-faq .faq-more__panel .mono-label {
  margin-bottom: 8px;
  display: inline-block;
  color: var(--faq-gold-bright);
}

.page-faq .faq-more__panel h2 {
  margin: 6px 0 8px;
  font-family: var(--font-head);
  font-size: 24px;
  line-height: 1.3;
}

.page-faq .faq-more__panel > p {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  max-width: 560px;
}

.page-faq .faq-more__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (min-width: 768px) {
  .page-faq .faq-search {
    padding-top: 36px;
  }

  .page-faq .faq-search__panel {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .page-faq .faq-search__field {
    padding: 34px 28px 30px;
  }

  .page-faq .faq-search__fig {
    min-height: 280px;
    border-top: 0;
    border-left: 1px solid var(--faq-line);
  }

  .page-faq .faq-cat {
    padding: 32px 26px 12px;
  }

  .page-faq .faq-item {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 20px 18px;
  }

  .page-faq .faq-more__panel {
    padding: 36px 32px;
  }

  .page-faq .faq-more__panel h2 {
    font-size: 28px;
  }
}

@media (min-width: 992px) {
  .page-faq .faq-layout__grid {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .page-faq .faq-toc {
    position: sticky;
    top: 88px;
    align-self: start;
  }

  .page-faq .faq-toc__list {
    flex-direction: column;
    gap: 0;
    overflow: visible;
  }

  .page-faq .faq-toc__list a {
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    background: transparent;
    border-bottom: 1px solid var(--faq-line);
    transition: background 0.2s ease, padding-left 0.2s ease;
  }

  .page-faq .faq-toc__list a:hover,
  .page-faq .faq-toc__list a:focus {
    background: #fff;
    padding-left: 16px;
  }

  .page-faq .faq-toc__more {
    margin-top: 8px;
  }

  .page-faq .faq-cat__head h2 {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq [data-scroll-reveal],
  .page-faq [data-scroll-reveal-delay] {
    transition: none !important;
    animation: none !important;
  }

  .page-faq .faq-item,
  .page-faq .faq-hero .index-key,
  .page-faq .faq-search__input {
    transition: none !important;
  }

  .page-faq .faq-item:hover {
    transform: none;
  }
}
