.page-faq {
  --faq-mono: "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, Menlo, monospace;
  background: var(--phx-night);
  color: var(--phx-text);
}

.page-faq .phx-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--faq-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
}

.page-faq .phx-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-faq .phx-breadcrumb a:hover,
.page-faq .phx-breadcrumb a:focus-visible {
  color: var(--phx-flame);
  outline: none;
}

.page-faq .phx-breadcrumb__sep {
  opacity: 0.5;
}

.page-faq .faq-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--faq-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--phx-gold);
}

.page-faq .faq-kicker::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  background: var(--phx-flame);
  transform: skewX(-35deg);
}

.page-faq .faq-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 96px;
  color: #fff;
  background:
    radial-gradient(1000px 400px at 88% -20%, rgba(255, 90, 31, 0.22), transparent 60%),
    linear-gradient(135deg, var(--phx-night) 0%, var(--phx-night-blue) 70%);
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56%;
  height: 8px;
  background: var(--phx-flame);
  clip-path: polygon(0 0, 100% 0, calc(100% - 30px) 100%, 0 100%);
  z-index: 1;
}

.page-faq .faq-hero__img {
  position: absolute;
  top: 60px;
  right: -30px;
  width: 280px;
  height: auto;
  opacity: 0.15;
  pointer-events: none;
  transform: rotate(-4deg);
  z-index: 0;
}

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

.page-faq .faq-hero__grid {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-top: 12px;
}

.page-faq .faq-hero h1 {
  margin: 14px 0 16px;
  font-family: var(--phx-font-headline);
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: #fff;
}

.page-faq .faq-hero .phx-lead {
  margin: 0;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.page-faq .faq-search {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--phx-glass-border);
  border-radius: var(--phx-radius-md);
  padding: 14px 16px 12px;
  backdrop-filter: blur(10px);
}

.page-faq .faq-search__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.page-faq .faq-search__bar:focus-within {
  border-bottom-color: var(--phx-flame);
}

.page-faq .faq-search__bar svg {
  flex: 0 0 auto;
  color: var(--phx-flame);
}

.page-faq .faq-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--phx-font-body);
  font-size: 16px;
  padding: 8px 0;
}

.page-faq .faq-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.page-faq .faq-search__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
  padding-top: 8px;
  font-family: var(--faq-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.page-faq .faq-search__hint {
  color: rgba(255, 255, 255, 0.42);
}

.page-faq .faq-workspace {
  position: relative;
  background: var(--phx-night);
  padding: 0 0 72px;
}

.page-faq .faq-terminal {
  position: relative;
  z-index: 2;
  margin-top: -56px;
  overflow: hidden;
  border: 1px solid var(--phx-glass-border);
  border-radius: var(--phx-radius-md);
  background: linear-gradient(180deg, rgba(16, 35, 63, 0.96), rgba(10, 20, 40, 0.98));
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.45);
}

.page-faq .faq-terminal__titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid var(--phx-glass-border);
}

.page-faq .faq-terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.page-faq .faq-terminal__dot.is-red { background: #FF5A5A; }
.page-faq .faq-terminal__dot.is-yellow { background: #F5C04C; }
.page-faq .faq-terminal__dot.is-green { background: #2ECC71; }

.page-faq .faq-terminal__path {
  margin-left: 12px;
  font-family: var(--faq-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.page-faq .faq-terminal__body {
  display: flex;
  flex-direction: column;
}

.page-faq .faq-index {
  display: flex;
  gap: 2px;
  padding: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--phx-glass-border);
  background: rgba(255, 255, 255, 0.04);
  scrollbar-width: none;
}

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

.page-faq .faq-index a {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--faq-mono);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-faq .faq-index a:hover,
.page-faq .faq-index a:focus-visible {
  background: rgba(255, 90, 31, 0.14);
  color: #fff;
  outline: none;
}

.page-faq .faq-index__mark {
  color: var(--phx-flame);
  font-weight: 900;
}

.page-faq .faq-index__num {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.page-faq .faq-panels {
  flex: 1;
  min-width: 0;
  padding: 24px 16px 36px;
}

.page-faq .faq-cat {
  margin-bottom: 28px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  scroll-margin-top: 96px;
}

.page-faq .faq-cat:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.page-faq .faq-cat__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 0 10px 14px;
  border-left: 3px solid var(--phx-flame);
  border-radius: 4px 8px 8px 4px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease;
}

.page-faq .faq-cat:target .faq-cat__heading {
  background: rgba(255, 90, 31, 0.08);
}

.page-faq .faq-cat__heading h2 {
  margin: 0;
  font-family: var(--phx-font-headline);
  font-size: 24px;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 0.01em;
}

.page-faq .faq-cat__code {
  font-family: var(--faq-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

.page-faq .faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.page-faq .faq-item:last-child {
  border-bottom: none;
}

.page-faq .faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 8px 17px 0;
  cursor: pointer;
  list-style: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.page-faq .faq-item summary:hover,
.page-faq .faq-item summary:focus-visible {
  color: #fff;
  outline: none;
}

.page-faq .faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--faq-mono);
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  color: var(--phx-flame);
  transition: transform 0.25s ease;
}

.page-faq .faq-item[open] summary::after {
  transform: rotate(45deg);
}

.page-faq .faq-item__q {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 90, 31, 0.14);
  color: var(--phx-flame);
  font-family: var(--faq-mono);
  font-size: 12px;
  font-weight: 700;
}

.page-faq .faq-item__a {
  padding: 2px 8px 20px 46px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.75;
}

.page-faq .faq-item__a p {
  max-width: 64em;
  margin: 0 0 10px;
}

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

.page-faq .faq-item__code {
  margin: 12px 0 4px;
  padding: 12px 14px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-family: var(--faq-mono);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  white-space: pre;
}

.page-faq .faq-connect {
  position: relative;
  background: var(--phx-cream);
  padding: 72px 0 80px;
}

.page-faq .faq-connect::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--phx-flame) 0%, var(--phx-flame-soft) 45%, var(--phx-gold) 100%);
}

.page-faq .faq-connect .faq-kicker {
  color: var(--phx-flame);
}

.page-faq .faq-connect__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-faq .faq-connect__text h2 {
  margin: 12px 0 12px;
  font-family: var(--phx-font-headline);
  font-size: 34px;
  line-height: 1.2;
  color: var(--phx-text);
}

.page-faq .faq-connect__text .phx-lead {
  color: var(--phx-text-2);
}

.page-faq .faq-connect__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-faq .faq-connect__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: var(--phx-radius-md);
  box-shadow: 0 2px 12px rgba(26, 26, 26, 0.05);
}

.page-faq .faq-connect__label {
  font-family: var(--faq-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--phx-text-2);
}

.page-faq .faq-connect__mail {
  font-weight: 700;
  color: var(--phx-flame);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 2px solid rgba(255, 90, 31, 0.3);
  word-break: break-all;
  transition: border-color 0.2s ease;
}

.page-faq .faq-connect__mail:hover,
.page-faq .faq-connect__mail:focus-visible {
  border-bottom-color: var(--phx-flame);
  outline: none;
}

.page-faq .faq-connect__note {
  font-size: 12px;
  color: var(--phx-success);
  background: rgba(46, 125, 50, 0.1);
  padding: 3px 8px;
  border-radius: 999px;
}

.page-faq .faq-connect__phone,
.page-faq .faq-connect__addr {
  font-weight: 700;
  color: var(--phx-text);
}

.page-faq .faq-connect__visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--phx-radius-lg);
}

.page-faq .faq-connect__visual img {
  display: block;
  width: 100%;
  height: auto;
}

.page-faq .faq-connect__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 90, 31, 0.3);
  border-radius: var(--phx-radius-lg);
  pointer-events: none;
}

.page-faq .faq-jump {
  background: var(--phx-night);
  padding: 40px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-faq .faq-jump__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-faq .faq-jump__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-faq .faq-jump__link::before {
  content: "→";
  color: var(--phx-flame);
}

.page-faq .faq-jump__link:hover,
.page-faq .faq-jump__link:focus-visible {
  color: #fff;
  border-color: var(--phx-flame);
  background: rgba(255, 90, 31, 0.08);
  outline: none;
}

@media (min-width: 768px) {
  .page-faq .faq-hero {
    padding: 64px 0 112px;
  }

  .page-faq .faq-hero h1 {
    font-size: 56px;
  }

  .page-faq .faq-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
  }

  .page-faq .faq-search {
    padding: 20px;
  }

  .page-faq .faq-terminal__body {
    flex-direction: row;
    align-items: stretch;
  }

  .page-faq .faq-index {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 16px 10px;
    border-right: 1px solid var(--phx-glass-border);
    border-bottom: none;
    gap: 4px;
    min-width: 220px;
  }

  .page-faq .faq-index a {
    justify-content: flex-start;
    padding: 12px 14px;
  }

  .page-faq .faq-panels {
    padding: 28px 28px 40px;
  }

  .page-faq .faq-cat__heading h2 {
    font-size: 26px;
  }

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

  .page-faq .faq-connect__visual img {
    max-height: 340px;
    object-fit: cover;
  }
}

@media (min-width: 1024px) {
  .page-faq .faq-hero h1 {
    font-size: 72px;
  }

  .page-faq .faq-hero__img {
    top: 80px;
    right: -20px;
    width: 520px;
    opacity: 0.2;
  }

  .page-faq .faq-index {
    min-width: 240px;
  }

  .page-faq .faq-item__a {
    padding-right: 40px;
  }
}
