.faq-navbar {
  position: fixed;
  background: rgba(0, 0, 0, 0.94);
  border-bottom-color: rgba(242, 209, 0, 0.16);
}

.faq-navbar .nav-links a.active { color: var(--yellow); }
.faq-navbar .nav-links a.active::after { transform: scaleX(1); }
.faq-login { background: transparent; color: var(--yellow); border-color: var(--yellow); }

.faq-hero {
  position: relative;
  min-height: 460px;
  padding: 165px 0 92px;
  overflow: hidden;
  border-bottom: 1px solid #171717;
  background:
    radial-gradient(circle at 75% 42%, rgba(242, 209, 0, 0.12), transparent 27%),
    linear-gradient(145deg, #111 0%, #060606 55%, #000 100%);
}

.faq-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(242, 209, 0, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 209, 0, 0.09) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to right, transparent, #000 35%, #000);
}

.faq-radar {
  position: absolute;
  right: max(5vw, calc((100vw - 1200px) / 2));
  top: 125px;
  width: 270px;
  height: 270px;
  display: grid;
  place-items: center;
  color: rgba(242, 209, 0, 0.17);
  border: 1px solid rgba(242, 209, 0, 0.12);
  border-radius: 50%;
  font-size: 110px;
}

.faq-radar::before,
.faq-radar::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(242, 209, 0, 0.1);
  border-radius: 50%;
}
.faq-radar::before { inset: 38px; }
.faq-radar::after { inset: 82px; }

.faq-hero-content { position: relative; z-index: 1; }
.faq-hero h1 {
  max-width: 800px;
  margin: 0 0 22px;
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.faq-hero p { max-width: 680px; color: #aaa; font-size: 1.08rem; line-height: 1.8; }

.faq-search-wrap {
  position: relative;
  width: min(100%, 760px);
  margin-top: 38px;
}
.faq-search-wrap > i {
  position: absolute;
  top: 50%;
  left: 22px;
  z-index: 1;
  color: var(--yellow);
  transform: translateY(-50%);
}
.faq-search-wrap input {
  width: 100%;
  height: 62px;
  padding: 0 150px 0 54px;
  border: 1px solid #292929;
  border-radius: 2px;
  outline: 0;
  background: rgba(8, 8, 8, 0.92);
  color: #fff;
  font: 500 0.98rem var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-search-wrap input:focus { border-color: var(--yellow); box-shadow: 0 0 28px rgba(242, 209, 0, 0.09); }
.faq-search-wrap input::placeholder { color: #666; }
.faq-count {
  position: absolute;
  top: 50%;
  right: 18px;
  color: #777;
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.faq-content-section { min-height: 420px; padding: 76px 0 110px; background: #050505; }
.faq-list { display: grid; gap: 14px; max-width: 980px; margin: 0 auto; }
.faq-item { border: 1px solid #1d1d1d; background: #0c0c0c; transition: border-color 0.22s, background 0.22s; }
.faq-item:hover,
.faq-item[open] { border-color: rgba(242, 209, 0, 0.42); background: #0f0f0f; }
.faq-item summary {
  min-height: 86px;
  display: grid;
  grid-template-columns: 54px 1fr 38px;
  align-items: center;
  gap: 18px;
  padding: 20px 26px;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-number {
  font-family: var(--font-title);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--yellow);
  opacity: 0.72;
}
.faq-question-wrap { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.faq-category { color: var(--yellow); font-family: var(--font-label); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.faq-question { font-family: var(--font-title); font-size: 0.92rem; font-weight: 650; line-height: 1.55; letter-spacing: 0.025em; }
.faq-toggle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 1px solid #303030;
  color: var(--yellow);
  transition: transform 0.25s, background 0.25s;
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--yellow); color: #000; border-color: var(--yellow); }
.faq-answer { padding: 0 26px 28px 98px; animation: faqOpen 0.25s ease-out; }
.faq-answer-text { max-width: 780px; padding-top: 23px; border-top: 1px solid #202020; color: #bdbdbd; line-height: 1.85; }

.faq-attachments-title {
  margin: 28px 0 12px;
  color: #777;
  font-family: var(--font-label);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.faq-attachments-title i { margin-right: 7px; color: var(--yellow); }
.faq-attachments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 780px; }
.faq-attachment {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #242424;
  border-radius: 2px;
  background: #131313;
  color: #fff;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.faq-attachment:hover { border-color: var(--yellow); background: #171717; color: #fff; transform: translateY(-2px); }
.faq-attachment-icon { width: 40px; height: 40px; display: grid; place-items: center; background: rgba(242, 209, 0, 0.1); color: var(--yellow); }
.faq-attachment-icon.video { background: var(--yellow); color: #000; }
.faq-attachment-info { min-width: 0; display: flex; flex-direction: column; }
.faq-attachment-info strong { overflow: hidden; font-size: 0.84rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.faq-attachment-info small { color: #666; font-size: 0.72rem; }
.faq-attachment-action { color: #666; font-size: 0.78rem; }
.faq-attachment:hover .faq-attachment-action { color: var(--yellow); }

.faq-message,
.faq-no-results {
  max-width: 980px;
  min-height: 150px;
  margin: 0 auto;
  padding: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1px dashed #292929;
  color: #777;
  text-align: left;
}
.faq-message > i,
.faq-no-results > i { color: var(--yellow); font-size: 2rem; }
.faq-message div,
.faq-no-results { flex-direction: column; }
.faq-message strong,
.faq-no-results strong { display: block; color: #fff; font-family: var(--font-title); font-size: 0.85rem; }
.faq-message span,
.faq-message-error label,
.faq-no-results span { display: block; margin-top: 5px; font-size: 0.86rem; }
.faq-message-error { border-color: rgba(255, 51, 51, 0.36); }
.faq-message-error > i { color: var(--red); }
.faq-no-results[hidden] { display: none; }

.faq-video-modal { position: fixed; inset: 0; z-index: 4000; display: none; align-items: center; justify-content: center; padding: 24px; }
.faq-video-modal.open { display: flex; }
.faq-video-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(10px); }
.faq-video-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1000px);
  padding: 30px;
  border: 1px solid rgba(242, 209, 0, 0.38);
  background: #0d0d0d;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.8);
}
.faq-video-dialog h2 { margin: 0 50px 22px 0; font-family: var(--font-title); font-size: clamp(1.1rem, 2.5vw, 1.7rem); line-height: 1.4; }
.faq-video-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid #333;
  background: #111;
  color: #fff;
  cursor: pointer;
}
.faq-video-close:hover { border-color: var(--yellow); color: var(--yellow); }
.faq-video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.faq-video-frame video,
.faq-video-frame iframe { width: 100%; height: 100%; display: block; border: 0; object-fit: contain; }
.faq-video-frame [hidden] { display: none; }

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .faq-hero { min-height: 420px; padding: 138px 0 72px; }
  .faq-radar { right: -80px; top: 110px; width: 230px; height: 230px; opacity: 0.6; }
  .faq-search-wrap input { padding-right: 54px; }
  .faq-count { display: none; }
  .faq-content-section { padding: 50px 0 75px; }
  .faq-item summary { grid-template-columns: 36px 1fr 32px; gap: 10px; min-height: 76px; padding: 17px 16px; }
  .faq-question { font-size: 0.82rem; }
  .faq-answer { padding: 0 16px 22px 62px; }
  .faq-attachments { grid-template-columns: 1fr; }
  .faq-video-dialog { padding: 22px 16px 16px; }
  .faq-video-close { top: 14px; right: 14px; }
}

@media (max-width: 480px) {
  .faq-hero h1 { font-size: 2.15rem; }
  .faq-hero p { font-size: 0.94rem; }
  .faq-number { display: none; }
  .faq-item summary { grid-template-columns: 1fr 32px; }
  .faq-answer { padding-left: 16px; }
  .faq-attachment { grid-template-columns: 38px minmax(0, 1fr) 16px; padding: 11px; }
  .faq-message { flex-direction: column; text-align: center; }
}
