.page-faq {
  --faq-panel: #102340;
  --faq-panel-soft: rgba(16, 35, 64, 0.72);
}

.page-faq__hero {
  position: relative;
  padding: 24px 0 40px;
  overflow: hidden;
}

.page-faq__hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gk-orange) 0 30%, var(--gk-amber) 30% 55%, var(--gk-cyan) 55% 80%, transparent 80%);
}

.page-faq__hero::after {
  content: '';
  position: absolute;
  top: 48px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(123, 47, 247, 0.18) 0%, transparent 68%);
  pointer-events: none;
}

.page-faq__hero-inner {
  position: relative;
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.page-faq__hero-copy {
  max-width: 720px;
}

.page-faq__hero-copy .gk-kicker {
  margin-bottom: 10px;
}

.page-faq__hero-copy .gk-title--xl {
  font-size: clamp(28px, 4.6vw, 48px);
  line-height: 1.06;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}

.page-faq__hero-copy .gk-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gk-slate);
  margin: 0;
  max-width: 640px;
}

.page-faq__hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.page-faq__hero-media {
  position: relative;
  border: 1px solid var(--gk-border);
  background: linear-gradient(135deg, var(--gk-royal-blue) 0%, var(--gk-deep-blue) 100%);
  aspect-ratio: 3 / 1;
  overflow: hidden;
  max-width: 760px;
}

.page-faq__hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-faq__hero-media::after {
  content: '';
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 44px;
  height: 44px;
  background: var(--gk-orange);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.page-faq__layout {
  padding-top: 8px;
  padding-bottom: 80px;
}

.page-faq__toc {
  margin-bottom: 32px;
}

.page-faq__toc .gk-kicker {
  margin-bottom: 12px;
}

.page-faq__toc-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0 0 8px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-faq__toc-list::-webkit-scrollbar {
  display: none;
}

.page-faq__toc-list li {
  flex-shrink: 0;
}

.page-faq__toc-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--gk-border);
  background: var(--faq-panel-soft);
  color: var(--gk-moon);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.page-faq__toc-list a:hover {
  border-color: var(--gk-amber);
  color: var(--gk-amber);
}

.page-faq__toc-list a.is-active {
  border-color: var(--gk-orange);
  color: var(--gk-orange);
  background: rgba(255, 107, 44, 0.08);
}

.page-faq__toc-num {
  font-family: var(--gk-font-heading);
  font-size: 13px;
  color: var(--gk-amber);
}

.page-faq__toc-btn {
  display: inline-flex;
  margin-bottom: 12px;
}

.page-faq__toc-note {
  color: var(--gk-slate);
  line-height: 1.6;
  margin: 12px 0 0;
}

.page-faq__toc-note a {
  color: var(--gk-cyan);
  text-decoration: none;
  border-bottom: 1px dashed var(--gk-cyan);
}

.page-faq__toc-note a:hover {
  color: var(--gk-orange);
  border-bottom-color: var(--gk-orange);
}

.page-faq__content {
  min-width: 0;
}

.page-faq__section {
  scroll-margin-top: 96px;
  margin-bottom: 56px;
}

.page-faq__section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  position: relative;
}

.page-faq__section-num {
  font-family: var(--gk-font-heading);
  font-size: 30px;
  line-height: 1;
  color: var(--gk-orange);
  width: 48px;
  flex-shrink: 0;
  border-bottom: 3px solid var(--gk-orange);
  padding-bottom: 6px;
  letter-spacing: 0.03em;
}

.page-faq__section-head .gk-title--lg {
  font-size: 26px;
  line-height: 1.2;
  margin: 0;
}

.page-faq__section-desc {
  margin: 6px 0 0;
  color: var(--gk-slate);
  font-size: 14px;
  line-height: 1.7;
  max-width: 600px;
}

.page-faq__qa-list {
  display: grid;
  gap: 10px;
}

.page-faq__qa {
  position: relative;
  border: 1px solid var(--gk-border);
  background: linear-gradient(135deg, var(--faq-panel) 0%, rgba(11, 27, 51, 0.96) 100%);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.page-faq__qa::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 52px;
  height: 2px;
  background: var(--gk-orange);
}

.page-faq__qa::after {
  content: '';
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--gk-cyan);
  border-bottom: 2px solid var(--gk-cyan);
  opacity: 0.6;
}

.page-faq__qa:hover {
  border-color: rgba(255, 107, 44, 0.55);
  transform: translateX(2px);
}

.page-faq__qa summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 16px;
  cursor: pointer;
  list-style: none;
}

.page-faq__qa summary::-webkit-details-marker {
  display: none;
}

.page-faq__qa summary::after {
  content: '+';
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--gk-font-heading);
  font-size: 24px;
  line-height: 1;
  color: var(--gk-cyan);
  transition: transform 0.25s ease, color 0.25s ease;
}

.page-faq__qa[open] summary::after {
  transform: rotate(45deg);
  color: var(--gk-orange);
}

.page-faq__qa[open] .page-faq__qa-answer {
  animation: page-faq-fade 0.3s ease;
}

@keyframes page-faq-fade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-faq__qa-marker {
  font-family: var(--gk-font-heading);
  font-size: 16px;
  color: var(--gk-orange);
  letter-spacing: 0.04em;
  min-width: 30px;
  flex-shrink: 0;
  padding-top: 2px;
}

.page-faq__qa-question {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--gk-moon);
  padding-right: 6px;
}

.page-faq__qa-answer {
  padding: 0 16px 20px 58px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--gk-moon);
}

.page-faq__qa-answer p {
  margin: 0 0 10px;
}

.page-faq__qa-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__qa-answer ol {
  margin: 8px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.page-faq__qa-answer ol li::marker {
  color: var(--gk-cyan);
  font-family: var(--gk-font-heading);
}

.page-faq__qa-answer a {
  color: var(--gk-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-faq__qa-answer a:hover {
  color: var(--gk-orange);
}

.page-faq__ios-media {
  margin: 22px 0 6px;
  max-width: 480px;
  border: 1px solid var(--gk-border);
  background: var(--gk-deep-blue);
  padding: 8px;
  position: relative;
}

.page-faq__ios-media img {
  display: block;
  width: 100%;
  height: auto;
}

.page-faq__ios-media figcaption {
  padding: 10px 4px 2px;
  color: var(--gk-slate);
  line-height: 1.5;
}

.page-faq__contact {
  margin-top: 8px;
  border: 1px solid var(--gk-border);
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.4) 0%, rgba(11, 27, 51, 0.96) 64%);
  padding: 28px 24px 30px;
  position: relative;
  overflow: hidden;
}

.page-faq__contact::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 110px;
  height: 110px;
  background: var(--gk-violet);
  opacity: 0.16;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.page-faq__contact .gk-kicker {
  margin-bottom: 8px;
}

.page-faq__contact .gk-title--md {
  font-size: 22px;
  margin: 0 0 10px;
}

.page-faq__contact .gk-body {
  color: var(--gk-slate);
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 18px;
  max-width: 560px;
}

.page-faq__contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.page-faq__contact-mail {
  color: var(--gk-cyan);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px dashed var(--gk-cyan);
  padding-bottom: 2px;
}

.page-faq__contact-mail:hover {
  color: var(--gk-orange);
  border-bottom-color: var(--gk-orange);
}

.page-faq__contact-phone {
  color: var(--gk-slate);
  font-size: 14px;
}

@media (min-width: 768px) {
  .page-faq__hero {
    padding: 32px 0 48px;
  }

  .page-faq__hero-inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 32px;
    align-items: center;
    margin-top: 36px;
  }

  .page-faq__hero-media {
    aspect-ratio: 4 / 3;
    max-width: none;
  }

  .page-faq__hero-copy .gk-body {
    font-size: 16px;
  }

  .page-faq__section-head .gk-title--lg {
    font-size: 30px;
  }

  .page-faq__ios-media {
    margin-left: 58px;
  }
}

@media (min-width: 992px) {
  .page-faq__layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: start;
  }

  .page-faq__toc {
    position: sticky;
    top: 96px;
    margin-bottom: 0;
    padding-right: 16px;
    border-right: 1px solid var(--gk-border);
  }

  .page-faq__toc-list {
    flex-direction: column;
    gap: 4px;
    overflow: visible;
    padding: 0;
    margin-bottom: 24px;
  }

  .page-faq__toc-list li {
    flex-shrink: 1;
  }

  .page-faq__toc-list a {
    display: flex;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-left: 3px solid transparent;
    background: transparent;
    font-size: 15px;
    white-space: normal;
    border-radius: 0;
  }

  .page-faq__toc-list a:hover {
    border-left-color: var(--gk-amber);
    background: rgba(255, 165, 30, 0.06);
  }

  .page-faq__toc-list a.is-active {
    border-left-color: var(--gk-orange);
    background: rgba(255, 107, 44, 0.08);
    color: var(--gk-orange);
  }

  .page-faq__toc-btn {
    width: 100%;
  }

  .page-faq__section {
    margin-bottom: 64px;
  }
}
