.page-faq {
  position: relative;
  overflow-x: clip;
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
}

.page-faq .faq-hero {
  position: relative;
  padding: 28px 0 52px;
  background: linear-gradient(118deg, var(--color-bg-deep) 0%, var(--color-bg) 58%, var(--color-grad-end) 135%);
  overflow: hidden;
}

.page-faq .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent 0 16px, rgba(0, 212, 255, 0.05) 16px 32px);
  pointer-events: none;
}

.page-faq .faq-hero::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -180px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.35), rgba(255, 106, 0, 0) 64%);
  pointer-events: none;
}

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

.page-faq .faq-hero__grid {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.page-faq .faq-hero__content {
  padding: 8px 0;
}

.page-faq .faq-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-electric);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-faq .faq-hero__kicker::after {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--color-accent);
  transform: skewX(-24deg);
}

.page-faq .faq-hero h1 {
  margin: 14px 0 12px;
  font-family: var(--font-headline);
  font-size: clamp(30px, 7vw, 52px);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.page-faq .faq-hero p {
  max-width: 60ch;
  color: var(--color-text-sub);
  font-size: 16px;
  line-height: 1.7;
}

.page-faq .faq-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
}

.page-faq .faq-hero__meta span {
  color: var(--color-text-sub);
  font-size: 13px;
  line-height: 1.2;
}

.page-faq .faq-hero__meta i {
  font-family: var(--font-headline);
  font-style: normal;
  color: var(--color-accent);
  font-size: 26px;
  margin-right: 3px;
}

.page-faq .faq-hero__visual {
  position: relative;
  margin: 0;
  height: 240px;
}

.page-faq .faq-hero__visual::after {
  content: "";
  position: absolute;
  inset: 10px -8px -8px 10px;
  border: 1px dashed rgba(0, 212, 255, 0.5);
  pointer-events: none;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.page-faq .faq-hero__visual img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.page-faq .faq-hero__rail {
  display: none;
}

.page-faq .faq-area {
  padding: 72px 0 80px;
}

.page-faq .faq-layout {
  display: grid;
  gap: 32px;
  margin-top: 36px;
}

.page-faq .faq-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.page-faq .faq-filter__title {
  flex: 0 0 100%;
  margin: 0 0 6px;
  font-family: var(--font-headline);
  font-size: 24px;
  line-height: 1.2;
  color: var(--color-white);
}

.page-faq .faq-filter .filter-btn {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-sub);
  border: 1px solid var(--color-border);
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background var(--ease-fast), color var(--ease-fast), border-color var(--ease-fast), transform var(--ease-fast);
}

.page-faq .faq-filter .filter-btn:hover,
.page-faq .faq-filter .filter-btn:focus-visible {
  border-color: var(--color-electric);
  color: var(--color-white);
  transform: translateY(-2px);
}

.page-faq .faq-filter .filter-btn.is-active {
  background: linear-gradient(90deg, var(--color-accent), #ff8a32);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.page-faq .faq-list {
  display: grid;
  gap: 16px;
}

.page-faq .faq-item {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(26, 58, 110, 0.35));
  border: 1px solid var(--color-border);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition: border-color var(--ease-fast), background var(--ease-fast);
}

.page-faq .faq-item[open] {
  border-color: rgba(255, 106, 0, 0.65);
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.08), rgba(26, 58, 110, 0.28));
}

.page-faq .faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-electric), var(--color-accent));
  opacity: 0;
  transition: opacity var(--ease-fast);
  clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  pointer-events: none;
}

.page-faq .faq-item[open]::before {
  opacity: 1;
}

.page-faq .faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 50px 18px 16px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--color-white);
  user-select: none;
}

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

.page-faq .faq-item__q {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-faq .faq-item__mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--color-border);
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}

.page-faq .faq-item summary::before {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background: var(--color-electric);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transition: transform var(--ease-base), background var(--ease-base);
}

.page-faq .faq-item[open] summary::before {
  transform: translateY(-50%) rotate(180deg);
  background: var(--color-accent);
}

.page-faq .faq-item__a {
  margin: 0 18px 18px 40px;
  padding: 16px 12px 4px 18px;
  border-left: 1px dashed rgba(0, 212, 255, 0.45);
  color: var(--color-text-sub);
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.page-faq .faq-item__a p + p {
  margin-top: 12px;
}

.page-faq .faq-item__a a {
  color: var(--color-electric);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.page-faq .faq-contact__panel {
  display: grid;
  gap: 28px;
  padding: 32px 22px;
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.08), transparent 45%),
    linear-gradient(315deg, rgba(255, 106, 0, 0.12), transparent 40%),
    var(--color-bg-deep);
  border: 1px solid var(--color-border);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.page-faq .faq-contact__content h2 {
  margin: 16px 0 10px;
  font-family: var(--font-headline);
  font-size: 30px;
  line-height: 1.15;
}

.page-faq .faq-contact__content > p {
  max-width: 52ch;
  color: var(--color-text-sub);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

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

.page-faq .faq-contact__list li {
  position: relative;
  padding: 16px 18px 16px 46px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--color-electric);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.page-faq .faq-contact__list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background: var(--color-accent);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.page-faq .faq-contact__label {
  display: block;
  color: var(--color-electric);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-faq .faq-contact__value {
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-all;
}

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

.page-faq .faq-contact__visual {
  position: relative;
  margin: 0;
  min-height: 220px;
}

.page-faq .faq-contact__visual::after {
  content: "";
  position: absolute;
  inset: 12px -6px -6px 12px;
  border: 1px solid rgba(255, 106, 0, 0.45);
  pointer-events: none;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.page-faq .faq-contact__visual img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

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

.page-faq .faq-item[open] .faq-item__a {
  animation: page-faq-reveal 0.25s ease-out;
}

@media (min-width: 860px) {
  .page-faq .faq-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: end;
  }

  .page-faq .faq-hero__visual {
    height: 280px;
  }

  .page-faq .faq-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .page-faq .faq-filter {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    flex-direction: column;
    align-items: stretch;
  }

  .page-faq .faq-filter .filter-btn {
    text-align: left;
    padding: 12px 18px;
  }

  .page-faq .faq-contact__panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    padding: 44px 40px;
  }

  .page-faq .faq-contact__visual,
  .page-faq .faq-contact__visual img {
    min-height: 300px;
  }
}

@media (min-width: 1200px) {
  .page-faq .faq-hero__visual {
    height: 320px;
  }

  .page-faq .faq-hero__rail {
    display: block;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: var(--font-headline);
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.28);
    font-size: 13px;
    pointer-events: none;
    z-index: 2;
  }

  .page-faq .faq-area {
    padding: 88px 0 96px;
  }
}
