/* RELOAD23 — центр помощи: зелёная тема в структуре Project446 */

body.page-faq { background: #0b100c; }
.page-faq.content-page { padding-bottom: 0; }
.faq-page { background: #0b100c; color: #c7d5e0; }

.faq-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(124, 194, 66, 0.14);
  background:
    radial-gradient(ellipse at 15% -10%, rgba(124, 194, 66, 0.16), transparent 55%),
    linear-gradient(180deg, #151f18, #0b100c);
}
.faq-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(124, 194, 66, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 194, 66, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}
.faq-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px 24px 44px;
}
.faq-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #8b929a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.faq-eyebrow span { display: block; width: 32px; height: 1px; background: #7cc242; }
.faq-hero h1 {
  margin: 20px 0 0;
  color: #fff;
  font-size: clamp(38px, 5.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
.faq-lead {
  max-width: 60ch;
  margin: 16px 0 0;
  color: #a3aab2;
  font-size: 16px;
  line-height: 1.7;
}
.faq-hero__search {
  position: relative;
  display: block;
  max-width: 760px;
  margin-top: 28px;
}
.faq-hero__search svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  color: #67707b;
  transform: translateY(-50%);
  pointer-events: none;
}
.faq-hero__search input {
  width: 100%;
  height: 54px;
  padding: 0 16px 0 48px;
  border: 0;
  border-radius: 10px;
  background: #0f1712;
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.16), 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  color: #fff;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: box-shadow 150ms ease;
}
.faq-hero__search input:focus {
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.6), 0 0 0 3px rgba(124, 194, 66, 0.1);
}
.faq-hero__search input::placeholder { color: #5d6670; }
.faq-stats { margin: 12px 0 0; color: #67707b; font-size: 12px; }

.faq-shell { padding: 34px 0 82px; }
.faq-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.faq-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}
.faq-sidebar {
  position: sticky;
  top: calc(var(--header-h, 64px) + 20px);
  display: grid;
  gap: 16px;
}
.faq-nav {
  padding: 14px;
  border: 1px solid rgba(124, 194, 66, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, #0f1712, #0d1410);
}
.faq-nav__kicker {
  margin: 0 0 8px;
  color: #67707b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.faq-nav__list { display: grid; gap: 2px; }
.faq-nav__link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 8px;
  color: #9aa2ab;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.faq-nav__link:hover,
.faq-nav__link.is-active {
  color: #fff;
  background: rgba(124, 194, 66, 0.12);
  box-shadow: inset 0 0 0 1px rgba(124, 194, 66, 0.16);
}
.faq-nav__icon { display: flex; flex: 0 0 auto; color: #7cc242; }
.faq-nav__icon svg { width: 16px; height: 16px; }
.faq-nav__label { flex: 1; min-width: 0; }
.faq-nav__count { color: #67707b; font-size: 11px; font-variant-numeric: tabular-nums; }

.faq-help {
  padding: 16px;
  border: 1px solid rgba(124, 194, 66, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, #0f1712, #0d1410);
}
.faq-help__title { margin: 0; color: #fff; font-size: 14px; font-weight: 700; }
.faq-help__text { margin: 6px 0 12px; color: #8b929a; font-size: 12px; line-height: 1.55; }
.faq-help__btn {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(124, 194, 66, 0.18);
  border-radius: 7px;
  background: #18241e;
  color: #dcdedf;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.faq-help__btn + .faq-help__btn { margin-top: 8px; }
.faq-help__btn:hover { border-color: rgba(124, 194, 66, 0.32); background: #203028; color: #fff; }
.faq-help__btn--primary { border-color: #3d9c4a; background: #3d9c4a; color: #fff; }
.faq-help__btn--primary:hover { border-color: #46b356; background: #46b356; }

.faq-main { display: grid; gap: 30px; min-width: 0; }
.faq-cat { scroll-margin-top: calc(var(--header-h, 64px) + 24px); }
.faq-cat[hidden] { display: none; }
.faq-cat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(124, 194, 66, 0.14);
}
.faq-cat__icon {
  display: flex;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(124, 194, 66, 0.2);
  border-radius: 9px;
  background: rgba(124, 194, 66, 0.1);
  color: #7cc242;
}
.faq-cat__icon svg { width: 20px; height: 20px; }
.faq-cat__title { margin: 0; color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.faq-cat__count { margin-left: auto; color: #67707b; font-size: 12px; font-variant-numeric: tabular-nums; }
.faq-cat__list { display: grid; }
.faq-entry { border-bottom: 1px solid rgba(124, 194, 66, 0.1); }
.faq-entry:last-child { border-bottom: 0; }
.faq-entry[hidden] { display: none; }
.faq-entry__q {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 2px;
  color: #d4d8dc;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}
.faq-entry__q::-webkit-details-marker { display: none; }
.faq-entry__q:hover { color: #fff; }
.faq-entry__text { flex: 1; min-width: 0; }
.faq-entry__icon {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid rgba(124, 194, 66, 0.22);
  border-radius: 50%;
  transition: background 150ms ease, border-color 150ms ease, transform 200ms ease;
}
.faq-entry__icon::before,
.faq-entry__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: #7cc242;
  transform: translate(-50%, -50%);
  transition: opacity 150ms ease, transform 200ms ease;
}
.faq-entry__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-entry[open] .faq-entry__icon { border-color: rgba(124, 194, 66, 0.45); background: rgba(124, 194, 66, 0.1); transform: rotate(180deg); }
.faq-entry[open] .faq-entry__icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(0); }
.faq-entry__a { padding: 0 0 18px; color: #9aa2ab; font-size: 14px; line-height: 1.75; }
.faq-entry__a p { margin: 0; }
.faq-entry__a p + p { margin-top: 7px; }
.faq-entry__a a { color: #9adf5a; text-decoration: none; border-bottom: 1px solid rgba(154, 223, 90, 0.3); }
.faq-entry__a a:hover { color: #fff; border-bottom-color: #7cc242; }
.faq-entry__a strong { color: #eaffea; }
.faq-entry__a code { color: #c8e178; }

.faq-empty-state {
  padding: 48px 24px;
  border: 1px dashed rgba(124, 194, 66, 0.2);
  border-radius: 12px;
  color: #8b929a;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.faq-empty-state strong { display: block; margin-bottom: 6px; color: #fff; font-size: 16px; }

@media (max-width: 1024px) {
  .faq-grid { grid-template-columns: 1fr; gap: 18px; }
  .faq-sidebar { position: static; }
  .faq-nav { padding: 10px; }
  .faq-nav__list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .faq-nav__list::-webkit-scrollbar { display: none; }
  .faq-nav__link { flex: 0 0 auto; padding: 8px 11px; border: 1px solid rgba(124, 194, 66, 0.14); border-radius: 999px; }
  .faq-nav__count { padding-left: 2px; }
}
@media (max-width: 720px) {
  .faq-hero__inner { padding: 42px 16px 32px; }
  .faq-lead { font-size: 14px; }
  .faq-container { padding: 0 16px; }
  .faq-shell { padding: 26px 0 64px; }
  .faq-cat__head { gap: 10px; }
  .faq-cat__icon { width: 36px; height: 36px; }
  .faq-cat__title { font-size: 19px; }
  .faq-entry__q { padding: 15px 0; font-size: 15px; }
  .faq-entry__a { font-size: 13px; }
}
