.page-faq {
  --faq-soft-line: rgba(57, 255, 20, 0.22);
  --faq-soft-hot: rgba(255, 75, 62, 0.2);
  background: var(--deep-blue);
  color: var(--text);
  overflow-x: hidden;
}

.page-faq .faq-hero {
  position: relative;
  padding-top: 56px;
  padding-bottom: 32px;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(57, 255, 20, 0.4), rgba(255, 75, 62, 0.3) 40%, transparent 80%);
}

.page-faq .faq-hero__grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

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

.page-faq .faq-hero__visual {
  position: relative;
  order: -1;
}

.page-faq .faq-hero__visual::before {
  content: "";
  position: absolute;
  top: 18px;
  right: -14px;
  bottom: -14px;
  left: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.16), rgba(255, 75, 62, 0.1) 60%);
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
  z-index: 0;
}

.page-faq .faq-hero__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow-lg);
}

.page-faq .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.page-faq .breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-faq .breadcrumb a:hover,
.page-faq .breadcrumb a:focus-visible {
  color: var(--accent);
}

.page-faq .breadcrumb [aria-current="page"] {
  color: var(--text);
}

.page-faq .faq-hero__title {
  margin: 0 0 16px;
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.page-faq .faq-hero__title-divider {
  color: var(--accent);
  font-size: 0.9em;
  padding-inline: 0.12em;
}

.page-faq .faq-hero__lead {
  margin: 0 0 22px;
  max-width: 54ch;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.75;
}

.page-faq .faq-hero__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-faq .faq-hero__facts li {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(57, 255, 20, 0.07);
  border: 1px solid rgba(57, 255, 20, 0.22);
  color: var(--text);
  letter-spacing: 0.02em;
}

.page-faq .faq-main {
  position: relative;
  padding: 44px 0 56px;
  background: repeating-linear-gradient(45deg, rgba(230, 234, 242, 0.012) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, var(--bg-2), var(--deep-blue));
}

.page-faq .faq-layout {
  display: grid;
  gap: 36px;
  align-items: start;
}

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

.page-faq .faq-sidebar .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 2px;
}

.page-faq .faq-sidebar h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.page-faq .faq-index {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-faq .faq-index__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-dim);
  text-decoration: none;
  background: rgba(16, 31, 69, 0.5);
  border: 1px solid transparent;
  border-left: 3px solid rgba(57, 255, 20, 0.3);
  border-radius: 8px;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.page-faq .faq-index__link:visited {
  color: var(--text-dim);
}

.page-faq .faq-index__link:hover,
.page-faq .faq-index__link:focus-visible {
  color: var(--text);
  background-color: rgba(16, 31, 69, 0.9);
  border-left-color: var(--accent);
  outline: none;
}

.page-faq .faq-index__link:active {
  transform: translateX(4px);
}

.page-faq .faq-sidebar__tip {
  margin: 0;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  border: 1px dashed var(--line);
  border-radius: 10px;
}

.page-faq .faq-groups,
.page-faq .faq-panels {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.page-faq .faq-group {
  scroll-margin-top: 140px;
  padding: 22px;
  background: rgba(16, 31, 69, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-faq .faq-group:target {
  animation: faq-target-flash 1.8s var(--ease-out) both;
}

@keyframes faq-target-flash {
  0% {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.12), 0 12px 32px rgba(0, 0, 0, 0.2);
  }
  100% {
    border-color: var(--line);
    box-shadow: none;
  }
}

.page-faq .faq-group__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.page-faq .faq-group__title::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-hot));
}

.page-faq .faq-item {
  margin-bottom: 10px;
  background: rgba(11, 27, 58, 0.75);
  border: 1px solid rgba(30, 50, 97, 0.8);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-faq .faq-item[open] {
  border-color: rgba(57, 255, 20, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.page-faq .faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  color: var(--text);
  transition: background-color 0.2s ease;
}

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

.page-faq .faq-item > summary:hover {
  background: rgba(57, 255, 20, 0.03);
}

.page-faq .faq-item > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: var(--radius-md);
}

.page-faq .faq-item[open] > summary {
  border-bottom: 1px solid rgba(30, 50, 97, 0.7);
}

.page-faq .faq-item__q {
  font-weight: 700;
  font-style: italic;
  font-size: 16px;
  line-height: 1.45;
}

.page-faq .faq-item__icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--accent);
  opacity: 0.8;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.page-faq .faq-item[open] .faq-item__icon {
  transform: rotate(180deg);
  opacity: 1;
}

.page-faq .faq-item__body {
  padding: 16px 20px 18px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}

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

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

.page-faq .faq-step-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  counter-reset: faq-step;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-faq .faq-step-list li {
  counter-increment: faq-step;
  position: relative;
  padding-left: 44px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

.page-faq .faq-step-list li::before {
  content: counter(faq-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.2);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.page-faq .faq-item__body > .faq-step-list:last-child {
  margin-bottom: 0;
}

.page-faq .faq-more {
  margin-top: 4px;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: rgba(11, 27, 58, 0.5);
}

.page-faq .faq-more p {
  flex: 0 0 100%;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

.page-faq .faq-more a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.page-faq .faq-more a:hover,
.page-faq .faq-more a:focus-visible {
  color: var(--accent);
  border-color: rgba(57, 255, 20, 0.5);
  background: rgba(57, 255, 20, 0.06);
}

.page-faq .faq-steps {
  padding: 56px 0 28px;
}

.page-faq .faq-steps__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.page-faq .faq-steps__content .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 6px;
}

.page-faq .faq-steps h2 {
  margin: 0 0 24px;
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
}

.page-faq .faq-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-faq .faq-steps__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(30, 50, 97, 0.5);
}

.page-faq .faq-steps__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-faq .faq-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.25);
  border-radius: 8px;
}

.page-faq .faq-steps__copy h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

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

.page-faq .faq-steps__visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1000px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow-lg);
}

.page-faq .faq-contact {
  padding: 40px 0 72px;
}

.page-faq .faq-contact__card {
  position: relative;
  overflow: hidden;
  padding: 44px 28px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.05), transparent 45%),
    linear-gradient(315deg, rgba(255, 75, 62, 0.07), transparent 45%),
    var(--bg-2);
}

.page-faq .faq-contact__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot) 60%, transparent);
}

.page-faq .faq-contact h2 {
  margin: 0 0 10px;
  font-family: var(--font-headline);
  font-style: italic;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
}

.page-faq .faq-contact p {
  margin: 0 auto 24px;
  max-width: 52ch;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}

.page-faq .faq-contact__btn {
  display: inline-flex;
  min-width: 170px;
  justify-content: center;
}

@media (min-width: 768px) {
  .page-faq .faq-hero {
    padding-top: 72px;
    padding-bottom: 48px;
  }

  .page-faq .faq-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }

  .page-faq .faq-hero__text {
    order: 1;
  }

  .page-faq .faq-hero__visual {
    order: 2;
  }

  .page-faq .faq-hero__title {
    font-size: 46px;
  }

  .page-faq .faq-steps__grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .page-faq .faq-steps h2 {
    font-size: 32px;
  }
}

@media (min-width: 900px) {
  .page-faq .faq-layout {
    grid-template-columns: 244px minmax(0, 1fr);
    gap: 56px;
  }

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

  .page-faq .faq-main {
    padding: 64px 0 80px;
  }

  .page-faq .faq-panels {
    gap: 32px;
  }

  .page-faq .faq-group {
    padding: 28px;
  }
}

@media (min-width: 1100px) {
  .page-faq .faq-hero__lead {
    font-size: 17px;
  }

  .page-faq .faq-steps {
    padding-top: 72px;
  }

  .page-faq .faq-step-list li {
    font-size: 15px;
  }
}
