.page-faq {
  --faq-icon-size: 48px;
  --faq-border: 1px solid rgba(255, 255, 255, 0.14);
  --faq-gold-dim: rgba(245, 197, 24, 0.55);
  --faq-cyan-dim: rgba(0, 212, 255, 0.4);
  padding-top: 72px;
  background:
    radial-gradient(circle at 90% 10%, rgba(106, 90, 205, 0.18), transparent 42%),
    linear-gradient(180deg, #0A1628 0%, #070F1E 100%);
  color: #F8FAFC;
  font-family: var(--font-body);
}

.page-faq .faq-hero {
  border-bottom: var(--faq-border);
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.92), rgba(7, 15, 30, 0.72));
}

.page-faq .faq-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 48px;
}

.page-faq .faq-hero__copy h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 16px 0 16px;
}

.page-faq .faq-hero__copy p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.8;
  max-width: 34rem;
}

.page-faq .faq-hero__visual {
  position: relative;
  width: 100%;
  max-width: 400px;
  align-self: flex-start;
  overflow: hidden;
  border: var(--faq-border);
  background:
    linear-gradient(135deg, rgba(245, 197, 24, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.04);
}

.page-faq .faq-hero__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-faq .faq-hero__grid-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 0;
}

.page-faq .faq-dashboard {
  padding-top: 48px;
  padding-bottom: 64px;
}

.page-faq .faq-dashboard__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-faq .faq-cats {
  border-left: 2px solid rgba(245, 197, 24, 0.4);
  padding-left: 16px;
}

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

.page-faq .faq-cats__item {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--color-muted);
  font-size: 0.78rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.24s var(--ease);
}

.page-faq .faq-cats__item:hover {
  color: #F8FAFC;
  border-color: var(--faq-gold-dim);
  box-shadow: inset 0 -2px 0 rgba(245, 197, 24, 0.4);
}

.page-faq .faq-cats__item--active {
  background: rgba(245, 197, 24, 0.12);
  border-color: rgba(245, 197, 24, 0.7);
  color: #F5C518;
}

.page-faq .faq-cats__hint {
  margin-top: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

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

.page-faq .faq-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  margin-bottom: 40px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.page-faq .faq-search:focus-within {
  border-color: rgba(245, 197, 24, 0.45);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.08);
}

.page-faq .faq-search__icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.page-faq .faq-search__input {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #F8FAFC;
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.page-faq .faq-search__input::-webkit-search-cancel-button {
  filter: grayscale(1) brightness(1.6);
}

.page-faq .faq-search__input::placeholder {
  color: #64748B;
}

.page-faq .faq-groups {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.page-faq .faq-group {
  scroll-margin-top: 96px;
}

.page-faq .faq-group__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
  margin-bottom: 8px;
}

.page-faq .faq-group__index {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(245, 197, 24, 0.8);
  letter-spacing: 0.06em;
}

.page-faq .faq-group__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  color: #F8FAFC;
}

.page-faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-faq .faq-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.2s var(--ease);
}

.page-faq .faq-item:hover {
  border-color: rgba(245, 197, 24, 0.5);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-2px);
}

.page-faq .faq-item[open] {
  border-color: rgba(245, 197, 24, 0.4);
}

.page-faq .faq-item__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
  color: #E2E8F0;
}

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

.page-faq .faq-item__q {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--faq-icon-size);
  height: var(--faq-icon-size);
  border: 1px solid rgba(245, 197, 24, 0.4);
  color: #F5C518;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-heading);
  background: rgba(245, 197, 24, 0.08);
}

.page-faq .faq-item__indicator {
  flex-shrink: 0;
  position: relative;
  width: 18px;
  height: 18px;
  margin-left: auto;
  border-right: 2px solid rgba(148, 163, 184, 0.8);
  border-bottom: 2px solid rgba(148, 163, 184, 0.8);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 0.28s var(--ease), border-color 0.25s var(--ease);
}

.page-faq .faq-item[open] .faq-item__indicator {
  transform: rotate(225deg);
  border-color: rgba(245, 197, 24, 0.7);
}

.page-faq .faq-item__answer {
  padding: 0 16px 16px 70px;
  font-size: 0.86rem;
  color: var(--color-muted);
  line-height: 1.8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-left: 14px;
  margin-right: 14px;
  padding-left: 0;
  padding-top: 14px;
}

.page-faq .faq-item__answer p {
  margin: 0;
}

.page-faq .faq-device-visual {
  margin-top: 32px;
  overflow: hidden;
  border: var(--faq-border);
  background: rgba(255, 255, 255, 0.03);
}

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

.page-faq .faq-contact {
  border-top: var(--faq-border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(245, 197, 24, 0.10);
}

.page-faq .faq-contact__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.page-faq .faq-contact__info .section-label {
  color: rgba(245, 197, 24, 0.7);
}

.page-faq .faq-contact__info h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  margin: 10px 0 8px;
  letter-spacing: -0.02em;
}

.page-faq .faq-contact__info p {
  max-width: 30rem;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

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

.page-faq .btn {
  --radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: 1px solid #F5C518;
  background: #F5C518;
  color: #0A1628;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  letter-spacing: 0.04em;
}

.page-faq .btn:hover {
  background: #ffd84d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.18);
}

.page-faq .btn--ghost {
  background: transparent;
  color: #F8FAFC;
  border-color: rgba(245, 197, 24, 0.6);
}

.page-faq .btn--ghost:hover {
  background: rgba(245, 197, 24, 0.1);
  box-shadow: none;
}

@media (min-width: 768px) {
  .page-faq .faq-dashboard {
    padding-top: 64px;
    padding-bottom: 80px;
  }

  .page-faq .faq-dashboard__layout {
    grid-template-columns: 200px 1fr;
    gap: 56px;
    align-items: start;
  }

  .page-faq .faq-cats {
    position: sticky;
    top: 104px;
    border-left-width: 2px;
    padding-left: 20px;
  }

  .page-faq .faq-cats__nav {
    flex-direction: column;
    gap: 4px;
  }

  .page-faq .faq-cats__item {
    padding: 8px 14px;
  }

  .page-faq .faq-cats__hint {
    margin-top: 20px;
  }

  .page-faq .faq-search__input {
    font-size: 0.95rem;
  }

  .page-faq .faq-item__answer {
    padding-left: 74px;
    padding-top: 14px;
  }

  .page-faq .faq-contact__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .page-faq .faq-hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    padding-top: 72px;
    padding-bottom: 64px;
  }

  .page-faq .faq-hero__visual {
    width: 400px;
    flex-shrink: 0;
  }

  .page-faq .faq-dashboard__layout {
    grid-template-columns: 240px 1fr;
    gap: 72px;
  }

  .page-faq .faq-board {
    max-width: 780px;
  }
}
