.page-faq {
  --faq-glow: 0 0 0 1px rgba(0, 255, 157, 0.12), 0 10px 34px rgba(0, 0, 0, 0.32);
  --faq-grid: linear-gradient(rgba(0, 212, 255, 0.055) 1px, transparent 1px),
               linear-gradient(90deg, rgba(0, 212, 255, 0.055) 1px, transparent 1px);
}

.page-faq .bi-faq-hero {
  position: relative;
  overflow: hidden;
  padding-top: 34px;
  padding-bottom: 0;
}
.page-faq .bi-faq-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 30px;
  background-image: var(--faq-grid);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 72%);
  pointer-events: none;
}
.page-faq .bi-faq-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  align-items: center;
}
.page-faq .bi-faq-hero__content {
  max-width: 620px;
}
.page-faq .bi-faq-hero__title {
  display: inline-block;
  margin: 10px 0 18px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
}
.page-faq .bi-faq-hero__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 76px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green), transparent);
}
.page-faq .bi-faq-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.page-faq .bi-faq-hero__media {
  position: relative;
}
.page-faq .bi-faq-hero__media::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -12px;
  width: 64px;
  height: 64px;
  border-right: 2px solid var(--accent-green);
  border-bottom: 2px solid var(--accent-green);
  opacity: 0.65;
  z-index: -1;
  pointer-events: none;
}
.page-faq .bi-faq-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.page-faq .bi-faq-metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 36px;
  padding: 18px;
  background: rgba(17, 23, 46, 0.72);
  border: 1px solid var(--border-blue);
}
.page-faq .bi-faq-metrics::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 30px;
  height: 30px;
  border-top: 3px solid var(--accent-green);
  border-left: 3px solid var(--accent-green);
  pointer-events: none;
}
.page-faq .bi-faq-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 6px 8px 14px;
  border-left: 2px solid var(--border-blue);
}
.page-faq .bi-faq-metric__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(20px, 3.5vw, 30px);
  line-height: 1.1;
  color: var(--accent-green);
}
.page-faq .bi-faq-metric__label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
}

.page-faq .bi-faq-hot {
  padding-top: 56px;
}
.page-faq .bi-faq-hot__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 28px;
}
.page-faq .bi-faq-hot__item {
  position: relative;
  display: block;
  padding: 22px 18px 18px 52px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-blue);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.page-faq .bi-faq-hot__item:hover {
  border-color: var(--accent-green);
  box-shadow: var(--faq-glow);
  transform: translateY(-2px);
}
.page-faq .bi-faq-hot__item::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 27px;
  width: 14px;
  height: 14px;
  background: var(--accent-green);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  opacity: 0.85;
}
.page-faq .bi-faq-hot__num {
  position: absolute;
  right: 16px;
  top: 13px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(0, 212, 255, 0.55);
}
.page-faq .bi-faq-hot__question {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 6px;
  padding-right: 34px;
}
.page-faq .bi-faq-hot__answer {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.page-faq .bi-faq-catalog {
  position: relative;
  padding-top: 56px;
}
.page-faq .bi-faq-catalog::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--faq-grid);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
}
.page-faq .bi-faq-catalog .bi-container {
  position: relative;
  z-index: 1;
}
.page-faq .bi-faq-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 32px;
}
.page-faq .bi-faq-cats__item {
  position: relative;
  padding: 10px 20px 10px 26px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--border-blue);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.page-faq .bi-faq-cats__item::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 5px;
  height: 14px;
  background: var(--accent-green);
  transform: skewX(-20deg) translateY(-50%);
}
.page-faq .bi-faq-cats__item:hover,
.page-faq .bi-faq-cats__item:focus {
  color: var(--accent-green);
  border-color: var(--border-glow);
  background: rgba(0, 255, 157, 0.06);
}

.page-faq .bi-faq-lists {
  max-width: 920px;
  margin-inline: auto;
}
.page-faq .bi-faq-category {
  scroll-margin-top: 130px;
  margin-bottom: 48px;
  transition: background 0.4s;
}
.page-faq .bi-faq-category:target {
  animation: page-faq-flash 1s ease-out;
}
@keyframes page-faq-flash {
  0% {
    background: rgba(0, 255, 157, 0.1);
  }
  100% {
    background: transparent;
  }
}
.page-faq .bi-faq-category__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-blue);
  transition: border-color 0.3s;
}
.page-faq .bi-faq-category:target .bi-faq-category__head {
  border-bottom-color: var(--accent-green);
}
.page-faq .bi-faq-category__index {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--accent-green);
}
.page-faq .bi-faq-category__head h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--text-primary);
}
.page-faq .bi-faq-category__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.page-faq .bi-faq-item {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(17, 23, 46, 0.85), rgba(17, 23, 46, 0.45));
  border: 1px solid var(--border-blue);
  border-left: 3px solid var(--accent-green);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.page-faq .bi-faq-item[open] {
  border-color: rgba(0, 255, 157, 0.45);
  box-shadow: var(--faq-glow);
  background: rgba(17, 23, 46, 0.92);
}
.page-faq .bi-faq-item:target {
  border-color: var(--accent-green);
  box-shadow: var(--faq-glow);
}
.page-faq .bi-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px 14px;
}
.page-faq .bi-faq-item summary::-webkit-details-marker {
  display: none;
}
.page-faq .bi-faq-item summary:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}
.page-faq .bi-faq-item__q {
  flex: 0 0 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 157, 0.12);
  color: var(--accent-green);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.page-faq .bi-faq-item__question {
  flex: 1;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  color: var(--text-primary);
}
.page-faq .bi-faq-item__toggle {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-right: 2px solid var(--accent-green);
  border-bottom: 2px solid var(--accent-green);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s;
}
.page-faq .bi-faq-item[open] .bi-faq-item__toggle {
  transform: rotate(225deg) translate(-1px, 2px);
}
.page-faq .bi-faq-item__answer {
  padding: 0 20px 18px 34px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.page-faq .bi-faq-item__answer p {
  margin: 0;
}

.page-faq .bi-faq-contact {
  padding-top: 48px;
}
.page-faq .bi-faq-contact__panel {
  position: relative;
  display: grid;
  gap: 26px;
  padding: clamp(22px, 5vw, 44px);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), transparent 42%), var(--bg-elevated);
  border: 1px solid var(--border-blue);
  overflow: hidden;
}
.page-faq .bi-faq-contact__panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(0, 212, 255, 0.12);
  pointer-events: none;
}
.page-faq .bi-faq-contact__info {
  position: relative;
  z-index: 1;
}
.page-faq .bi-faq-contact__intro {
  margin: 14px 0 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.page-faq .bi-faq-contact__list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.page-faq .bi-faq-contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.page-faq .bi-faq-contact__list li::before {
  content: "";
  flex: 0 0 20px;
  height: 2px;
  margin-top: 10px;
  background: var(--accent-green);
  transform: skewX(-30deg);
}
.page-faq .bi-faq-contact__list strong {
  color: var(--text-primary);
  font-weight: 600;
}
.page-faq .bi-faq-contact__actions {
  margin-top: 26px;
}
.page-faq .bi-faq-contact__media {
  position: relative;
  z-index: 1;
}
.page-faq .bi-faq-contact__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

@media (min-width: 720px) {
  .page-faq .bi-faq-metrics {
    grid-template-columns: repeat(4, 1fr);
    padding: 22px 24px;
  }
  .page-faq .bi-faq-hot__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 980px) {
  .page-faq .bi-faq-hero__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
  }
  .page-faq .bi-faq-hero__actions {
    margin-top: 32px;
  }
  .page-faq .bi-faq-hot__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .page-faq .bi-faq-cats {
    margin-bottom: 42px;
  }
  .page-faq .bi-faq-category__head h3 {
    font-size: 28px;
  }
  .page-faq .bi-faq-contact__panel {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 34px;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .page-faq .bi-faq-hot__grid {
    gap: 22px;
  }
}
