.page-faq {
  --faq-gold: #D4A24E;
  --faq-orange: #FF6B00;
  --faq-purple: #8B30F5;
  --faq-cyan: #00D4FF;
  --faq-moon: #F5F6F8;
  --faq-fog: #B8C0CC;
  --faq-card-bg: rgba(10, 20, 40, 0.72);
  --faq-border: rgba(212, 162, 78, 0.16);
  scroll-padding-top: calc(var(--header-h, 76px) + 20px);
  background:
    repeating-linear-gradient(120deg, rgba(212, 162, 78, 0.035) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #0A1428 0%, #080E1C 50%, #05070D 100%);
}

.page-faq .faq-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  padding: 24px 0 46px;
}

.page-faq .faq-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--faq-gold) 40%, var(--faq-orange) 100%);
}

.page-faq .faq-hero h1 {
  margin: 12px 0 6px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--faq-moon);
}

.page-faq .faq-hero__lead {
  max-width: 64ch;
  margin: 0 0 22px;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.9;
  color: var(--faq-fog);
}

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

.page-faq .faq-hero__img {
  width: 100%;
  max-width: 280px;
  height: auto;
  justify-self: center;
  align-self: center;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 20px);
}

.page-faq .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  color: var(--faq-moon);
  background: rgba(245, 246, 248, 0.06);
  border: 1px solid rgba(245, 246, 248, 0.22);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.page-faq .tag--orange {
  color: #FF8A3D;
  background: rgba(255, 107, 0, 0.14);
  border-color: rgba(255, 107, 0, 0.38);
}

.page-faq .tag--gold {
  color: var(--faq-gold);
  background: rgba(212, 162, 78, 0.12);
  border-color: rgba(212, 162, 78, 0.4);
}

.page-faq .tag--purple {
  color: #A87BFF;
  background: rgba(139, 48, 245, 0.14);
  border-color: rgba(139, 48, 245, 0.4);
}

.page-faq .tag--cyan {
  color: var(--faq-cyan);
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.34);
}

.page-faq .faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  padding: 8px 0 72px;
}

@media (min-width: 960px) {
  .page-faq .faq-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }
}

.page-faq .faq-toc {
  position: relative;
}

@media (min-width: 960px) {
  .page-faq .faq-toc {
    position: sticky;
    top: calc(var(--header-h, 76px) + 28px);
  }
}

.page-faq .faq-toc__inner {
  padding: 22px 18px;
  background: var(--faq-card-bg);
  border: 1px solid var(--faq-border);
  border-left: 3px solid var(--faq-gold);
}

.page-faq .faq-toc__label {
  display: block;
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faq-fog);
}

.page-faq .faq-toc__label::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 9px;
  height: 9px;
  background: var(--faq-gold);
  transform: rotate(45deg);
}

.page-faq .toc__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px 12px 24px;
  font-size: 0.96rem;
  line-height: 1.4;
  color: var(--faq-fog);
  text-decoration: none;
  transition: color 0.2s;
}

.page-faq .toc__link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--faq-gold);
  transform: rotate(45deg);
  transition: background 0.2s, box-shadow 0.2s;
}

.page-faq .toc__link::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 27px;
  bottom: -6px;
  width: 1px;
  background: rgba(212, 162, 78, 0.16);
}

.page-faq .toc__link:last-child::after {
  display: none;
}

.page-faq .toc__link:hover,
.page-faq .toc__link.is-active {
  color: var(--faq-moon);
}

.page-faq .toc__link:hover::before,
.page-faq .toc__link.is-active::before {
  background: var(--faq-gold);
  box-shadow: 0 0 10px rgba(212, 162, 78, 0.55);
}

.page-faq .toc__num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--faq-gold);
}

.page-faq .faq-toc__note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed rgba(212, 162, 78, 0.24);
}

.page-faq .faq-toc__note p {
  margin: 12px 0 0;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--faq-fog);
}

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

.page-faq .faq-section {
  margin-bottom: 76px;
  padding-bottom: 28px;
  border-bottom: 1px dashed rgba(212, 162, 78, 0.14);
  scroll-margin-top: calc(var(--header-h, 76px) + 20px);
}

.page-faq .faq-section:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.page-faq .faq-section__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 26px;
}

.page-faq .faq-section__num {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 162, 78, 0.6);
  user-select: none;
}

.page-faq .faq-item {
  margin-bottom: 14px;
  background: var(--faq-card-bg);
  border: 1px solid var(--faq-border);
  border-left-width: 3px;
  border-left-style: solid;
  border-left-color: rgba(212, 162, 78, 0.34);
  transition: background 0.2s, border-color 0.2s;
}

.page-faq .faq-item:hover {
  background: rgba(16, 30, 60, 0.8);
}

.page-faq .faq-item[open] {
  background: rgba(15, 30, 60, 0.88);
  border-left-color: var(--faq-gold);
}

.page-faq .faq-item__q {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.page-faq .faq-item__q::-webkit-details-marker,
.page-faq .faq-item__q::marker {
  display: none;
  content: '';
}

.page-faq .faq-item__icon {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border: 1.5px solid rgba(212, 162, 78, 0.7);
  transform: rotate(45deg);
  transition: background 0.2s;
}

.page-faq .faq-item[open] .faq-item__icon {
  background: var(--faq-gold);
}

.page-faq .faq-item__title {
  flex: 1 1 auto;
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--faq-moon);
}

.page-faq .faq-item__toggle {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.page-faq .faq-item__toggle::before,
.page-faq .faq-item__toggle::after {
  content: '';
  position: absolute;
  background: var(--faq-gold);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.page-faq .faq-item__toggle::before {
  width: 14px;
  height: 2px;
  top: 9px;
  left: 3px;
}

.page-faq .faq-item__toggle::after {
  width: 2px;
  height: 14px;
  top: 3px;
  left: 9px;
}

.page-faq .faq-item[open] .faq-item__toggle::after {
  opacity: 0;
  transform: rotate(90deg);
}

.page-faq .faq-item__a {
  padding: 4px 22px 24px 44px;
  color: var(--faq-fog);
  font-size: 0.96rem;
  line-height: 1.9;
}

.page-faq .faq-item__a p {
  margin: 8px 0;
}

.page-faq .faq-item__a ol,
.page-faq .faq-item__a ul {
  margin: 10px 0;
  padding-left: 18px;
}

.page-faq .faq-item__a li {
  margin: 6px 0;
  padding-left: 2px;
}

.page-faq .faq-inlink {
  color: var(--faq-cyan);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 212, 255, 0.42);
}

.page-faq .faq-inlink:hover {
  color: var(--faq-moon);
  border-bottom-color: var(--faq-moon);
}

.page-faq .faq-contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 40px;
  border: 1px solid rgba(212, 162, 78, 0.42);
  background: linear-gradient(135deg, rgba(139, 48, 245, 0.1), rgba(10, 20, 40, 0.92) 46%, rgba(5, 7, 13, 0.96));
}

.page-faq .faq-contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(120deg, rgba(212, 162, 78, 0.05) 0 1px, transparent 1px 16px);
}

.page-faq .faq-contact-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-faq .faq-contact-card__body {
  position: relative;
  padding: 28px 22px 34px;
}

.page-faq .faq-contact-card__body .kicker {
  color: var(--faq-gold);
}

.page-faq .faq-contact-card__title {
  margin: 8px 0 6px;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.3;
  font-weight: 900;
  color: var(--faq-moon);
}

.page-faq .faq-contact-card__lead {
  max-width: 52ch;
  margin: 0 0 22px;
  color: var(--faq-fog);
  line-height: 1.8;
}

.page-faq .faq-contact-card__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 24px;
}

.page-faq .faq-contact-card__row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 14px;
  background: rgba(5, 7, 13, 0.36);
  border-left: 2px solid var(--faq-gold);
}

.page-faq .faq-contact-card__row dt {
  color: var(--faq-gold);
  font-size: 0.9rem;
  font-weight: 700;
}

.page-faq .faq-contact-card__row dd {
  margin: 0;
  color: var(--faq-moon);
  font-size: 0.95rem;
  line-height: 1.6;
  word-break: break-all;
}

@media (max-width: 620px) {
  .page-faq .faq-item__q .tag {
    display: none;
  }
}

@media (min-width: 640px) {
  .page-faq .faq-contact-card__list {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 720px) {
  .page-faq .faq-hero {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: center;
  }

  .page-faq .faq-hero__img {
    max-width: none;
  }
}

@media (min-width: 860px) {
  .page-faq .faq-contact-card {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .page-faq .faq-contact-card__img {
    height: 100%;
    min-height: 340px;
  }

  .page-faq .faq-contact-card__body {
    padding: 36px 40px 40px;
  }
}
