.page-faq {
  --faq-line: rgba(192, 200, 208, 0.14);
  --faq-panel: #0d2138;
  --faq-yellow-soft: rgba(245, 197, 24, 0.12);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 6%, rgba(255, 127, 0, 0.08), transparent 24%),
    linear-gradient(135deg, var(--c-bg-deep) 0%, var(--c-bg) 55%, #112942 100%);
  color: var(--c-white);
}

.page-faq .faq-hero {
  position: relative;
  padding-top: 48px;
  overflow: hidden;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  z-index: 2;
  background: linear-gradient(90deg, transparent 8%, var(--c-orange) 42%, var(--c-yellow) 78%, transparent);
}

.page-faq .faq-hero::after {
  content: "FAQ";
  position: absolute;
  top: 40px;
  right: -34px;
  font-family: var(--font-number);
  font-size: clamp(130px, 22vw, 300px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: rgba(245, 197, 24, 0.04);
  pointer-events: none;
  user-select: none;
}

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

.page-faq .faq-hero__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-gray);
}

.page-faq .faq-hero__crumb a {
  color: var(--c-white);
  text-decoration: none;
  opacity: 0.8;
}

.page-faq .faq-hero__crumb a:hover {
  color: var(--c-yellow);
  opacity: 1;
}

.page-faq .faq-hero__eyebrow {
  margin: 0 0 8px;
  color: var(--c-yellow);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.page-faq .faq-hero__title {
  max-width: 900px;
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(30px, 5.2vw, 58px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.page-faq .faq-hero__desc {
  max-width: 720px;
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-gray);
}

.page-faq .faq-hero__search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  padding: 12px 16px 12px 18px;
  border: 1px solid var(--faq-line);
  border-radius: var(--radius-pill);
  background: rgba(6, 17, 36, 0.72);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-faq .faq-hero__search:focus-within {
  border-color: var(--c-yellow);
  box-shadow: 0 0 0 4px var(--faq-yellow-soft);
}

.page-faq .faq-hero__search-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--c-yellow);
}

.page-faq .faq-hero__search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 14px;
}

.page-faq .faq-hero__search-input::placeholder {
  color: var(--c-gray);
}

.page-faq .faq-hero__banner {
  position: relative;
  z-index: 1;
  margin: 30px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--faq-line);
}

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

.page-faq .faq-tabnav {
  display: flex;
  gap: 8px;
  padding: 16px 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-faq .faq-tabnav::-webkit-scrollbar {
  display: none;
}

.page-faq .faq-tabnav__link {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--faq-line);
  border-radius: var(--radius-pill);
  background: rgba(13, 33, 56, 0.6);
  color: var(--c-gray);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-faq .faq-tabnav__link:hover {
  color: var(--c-yellow);
  border-color: var(--c-yellow);
  background: var(--faq-yellow-soft);
}

.page-faq .faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: flex-start;
  padding-top: 28px;
  padding-bottom: 64px;
}

.page-faq .faq-sidebar__panel {
  padding: 24px;
  border: 1px solid var(--faq-line);
  border-radius: var(--radius-lg);
  background: rgba(13, 33, 56, 0.78);
  box-shadow: var(--shadow-sm);
}

.page-faq .faq-sidebar__eyebrow {
  margin: 0 0 6px;
  color: var(--c-orange);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.page-faq .faq-sidebar__title {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.3;
}

.page-faq .faq-sidebar__list {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.page-faq .faq-sidebar__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--c-gray);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.page-faq .faq-sidebar__list a span {
  min-width: 22px;
  font-family: var(--font-number);
  font-size: 12px;
  font-weight: 800;
  color: var(--c-yellow);
}

.page-faq .faq-sidebar__list a:hover {
  color: var(--c-white);
  background: var(--faq-yellow-soft);
}

.page-faq .faq-sidebar__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.page-faq .faq-sidebar__card {
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--c-yellow), var(--c-orange));
  color: var(--c-black);
}

.page-faq .faq-sidebar__card-title {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
}

.page-faq .faq-sidebar__card-text {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.page-faq .faq-sidebar__card .btn {
  margin-right: 8px;
  background: rgba(6, 17, 36, 0.14);
  border-color: transparent;
  color: var(--c-black);
}

.page-faq .faq-sidebar__card .btn:hover {
  background: rgba(6, 17, 36, 0.24);
}

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

.page-faq .faq-item {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 96px;
  border: 1px solid var(--faq-line);
  border-radius: var(--radius-lg);
  background: rgba(13, 33, 56, 0.6);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.page-faq .faq-item:has(.faq-item__input:checked) {
  border-color: rgba(245, 197, 24, 0.5);
  background: var(--faq-panel);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.page-faq .faq-item__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.page-faq .faq-item__heading {
  margin: 0;
}

.page-faq .faq-item__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 14px;
  padding: 16px 18px;
  border-left: 3px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.page-faq .faq-item__input:checked + .faq-item__heading .faq-item__head {
  border-left-color: var(--c-yellow);
  background: linear-gradient(90deg, var(--faq-yellow-soft), transparent 65%);
}

.page-faq .faq-item__index {
  padding: 4px 7px;
  border-radius: 6px;
  font-family: var(--font-number);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--c-yellow);
  background: rgba(245, 197, 24, 0.12);
}

.page-faq .faq-item__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-white);
}

.page-faq .faq-item__tags {
  display: none;
  gap: 4px;
  justify-content: flex-end;
}

.page-faq .faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.page-faq .faq-item__icon::before,
.page-faq .faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--c-gray);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-faq .faq-item__icon::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  transform: translateY(-50%);
}

.page-faq .faq-item__icon::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
}

.page-faq .faq-item__input:checked + .faq-item__heading .faq-item__icon::before {
  background: var(--c-yellow);
}

.page-faq .faq-item__input:checked + .faq-item__heading .faq-item__icon::after {
  transform: scaleY(0);
}

.page-faq .faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-faq .faq-item__input:checked ~ .faq-item__panel {
  grid-template-rows: 1fr;
}

.page-faq .faq-item__inner {
  min-height: 0;
  overflow: hidden;
}

.page-faq .faq-item__body {
  padding: 0 18px 20px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-gray);
}

.page-faq .faq-item__body p {
  margin: 0 0 14px;
}

.page-faq .faq-item__body p:last-child {
  margin-bottom: 0;
}

.page-faq .faq-item__body strong {
  color: var(--c-white);
}

.page-faq .faq-item__body a {
  color: var(--c-yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(245, 197, 24, 0.4);
}

.page-faq .faq-item__body a:hover {
  color: var(--c-orange);
  text-decoration-color: var(--c-orange);
}

.page-faq .faq-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.page-faq .faq-stat {
  flex: 1 1 100px;
  padding: 12px 14px;
  border: 1px solid var(--faq-line);
  border-radius: var(--radius-md);
  background: rgba(6, 17, 36, 0.5);
}

.page-faq .faq-stat__num {
  display: block;
  font-family: var(--font-number);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--c-yellow);
}

.page-faq .faq-stat__label {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-gray);
}

.page-faq .faq-item__figure {
  margin: 20px 0 4px;
  overflow: hidden;
  border: 1px solid var(--faq-line);
  border-radius: var(--radius-md);
  background: rgba(6, 17, 36, 0.4);
}

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

.page-faq .faq-item__figure figcaption {
  padding: 8px 12px;
  font-family: var(--font-number);
  font-size: 12px;
  color: var(--c-gray);
}

.page-faq .faq-bottom {
  padding: 48px 0;
  border-top: 1px solid rgba(245, 197, 24, 0.2);
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 127, 0, 0.14), transparent 26%),
    linear-gradient(120deg, #061124, var(--c-bg) 58%, #0d2138);
}

.page-faq .faq-bottom__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.page-faq .faq-bottom__copy h2 {
  margin: 6px 0 8px;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.2;
}

.page-faq .faq-bottom__copy p:last-of-type {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-gray);
}

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

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-item__panel,
  .page-faq .faq-item__icon::before,
  .page-faq .faq-item__icon::after {
    transition: none;
  }
}

@media (min-width: 640px) {
  .page-faq .faq-item__head {
    grid-template-columns: auto 1fr auto auto;
    padding: 18px 22px;
  }

  .page-faq .faq-item__tags {
    display: flex;
  }

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

  .page-faq .faq-item__body {
    padding: 0 22px 22px 28px;
  }

  .page-faq .faq-bottom__inner {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .page-faq .faq-hero {
    padding-top: 56px;
  }

  .page-faq .faq-hero__title {
    max-width: 980px;
  }

  .page-faq .faq-layout {
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding-top: 36px;
  }

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