/* ================================================================
   Q&A — «База ответов» — расширения над ../css/styles.css и blog.css
   Использует существующие переменные (--acid, --cyan, --font-display,
   --font-mono, --bg-*, --line-*, --text-*)
   ================================================================ */

/* ---------- HERO ---------- */
.qa-hero {
  min-height: 68svh;
  position: relative;
  padding: clamp(28px, 4vh, 42px) 0 clamp(42px, 6vh, 64px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.qa-hero .hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 8.4vw, 148px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 500;
  margin: clamp(20px, 3vh, 30px) 0 clamp(18px, 2.6vh, 26px);
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
.qa-hero .hero-h1 > span { display: block; }
.qa-hero .hero-h1 .l-1 { color: var(--text-primary); }
.qa-hero .hero-h1 .l-2 { color: var(--acid); text-shadow: 0 0 40px rgba(201,255,61,0.28); }
.qa-hero .hero-h1 .l-3 { color: var(--text-primary); }
.qa-hero .hero-h1 .l-3 em {
  font-style: normal;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.68em;
  letter-spacing: -0.02em;
  vertical-align: 0.05em;
  padding-left: 0.1em;
}
@media (max-width: 480px) {
  .qa-hero .hero-h1 { font-size: clamp(34px, 11vw, 58px); line-height: 1; }
}
@media (max-width: 360px) {
  .qa-hero .hero-h1 { font-size: 30px; }
}
.qa-hero .hero-subtitle {
  color: var(--text-secondary);
  font-size: clamp(16px, 1.6vw, 20px);
  max-width: 820px;
  margin-bottom: clamp(24px, 4vh, 40px);
}

/* ---------- SEARCH + FILTERS ---------- */
.qa-searchbar {
  position: relative;
  margin: 8px 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 720px) {
  .qa-searchbar { grid-template-columns: 1fr; }
}
.qa-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface-1);
  border: 1px solid var(--line-hard);
  transition: border-color .18s ease, background .18s ease;
}
.qa-search-input-wrap:focus-within {
  border-color: var(--acid);
  background: var(--bg-surface-2);
  box-shadow: 0 0 0 1px var(--acid) inset;
}
.qa-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 16px;
  pointer-events: none;
}
.qa-search-input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 20px);
  padding: 20px 20px 20px 48px;
  letter-spacing: -0.005em;
}
.qa-search-input::placeholder { color: var(--text-muted); font-weight: 400; }
.qa-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid var(--line-mid);
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: none;
}
.qa-search-clear.is-visible { display: inline-block; }
.qa-search-clear:hover { color: var(--text-primary); border-color: var(--acid); }

.qa-search-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 20px;
  background: var(--bg-surface-1);
  border: 1px solid var(--line-mid);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 180px;
}
.qa-search-meta .count {
  color: var(--acid);
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1;
  margin-top: 6px;
  font-family: var(--font-display);
}

/* Category filter chips */
.qa-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 6px;
}
.qa-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--line-mid);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
.qa-filter:hover { border-color: var(--line-hard); color: var(--text-primary); }
.qa-filter-dot {
  width: 8px; height: 8px;
  background: currentColor;
  border-radius: 0;
  flex-shrink: 0;
}
.qa-filter-count {
  opacity: 0.55;
  font-size: 10px;
  padding-left: 4px;
}
.qa-filter.is-active {
  background: var(--filter-color, var(--acid));
  color: var(--bg-void);
  border-color: var(--filter-color, var(--acid));
}
.qa-filter.is-active .qa-filter-count { opacity: 0.85; }

/* ---------- HOT CARDS (top-9 в hero-области) ---------- */
.qa-hot-section {
  padding: clamp(30px, 4vh, 50px) 0 clamp(20px, 3vh, 30px);
}
.qa-hot-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-mid);
}
.qa-hot-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.qa-hot-head h2 em { font-style: normal; color: var(--acid); text-shadow: 0 0 24px rgba(201,255,61,0.25); }
.qa-hot-head .mono {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.qa-hot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1180px) { .qa-hot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .qa-hot-grid { grid-template-columns: 1fr; } }

.qa-card {
  --card-accent: var(--acid);
  position: relative;
  background: var(--bg-surface-1);
  border: 1px solid var(--line-mid);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  overflow: hidden;
  transition: border-color .22s, transform .22s, background .22s;
  text-decoration: none;
  color: inherit;
}
.qa-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.qa-card:hover {
  border-color: var(--card-accent);
  background: var(--bg-surface-2);
  transform: translateY(-2px);
}
.qa-card:hover::before { opacity: 0.28; }
.qa-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.qa-card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--card-accent);
  letter-spacing: 0.12em;
}
.qa-card-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 5px 9px;
  border: 1px solid var(--line-mid);
}
.qa-card-cat-dot {
  width: 6px; height: 6px;
  background: var(--card-accent);
  flex-shrink: 0;
}
.qa-card-q-mark {
  position: absolute;
  right: -8px;
  bottom: -32px;
  font-family: var(--font-display);
  font-size: 200px;
  line-height: 1;
  color: var(--card-accent);
  opacity: 0.06;
  pointer-events: none;
  font-weight: 700;
  transition: opacity .32s ease, transform .32s ease;
}
.qa-card:hover .qa-card-q-mark { opacity: 0.14; transform: translate(-4px, -6px); }
.qa-card-title {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 20px 0 12px;
  position: relative;
  z-index: 1;
  text-wrap: pretty;
  font-weight: 500;
  flex-grow: 1;
}
.qa-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-mid);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.qa-card-cta {
  color: var(--card-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s ease;
}
.qa-card:hover .qa-card-cta { gap: 10px; }

/* Small variant (for related/similar block) */
.qa-card--sm { min-height: 200px; padding: 18px 20px 16px; }
.qa-card--sm .qa-card-title { font-size: 16px; line-height: 1.28; margin: 14px 0 10px; }
.qa-card--sm .qa-card-q-mark { font-size: 150px; bottom: -20px; }

/* ---------- CATEGORY SECTIONS (плотный список) ---------- */
.qa-catalog {
  padding: clamp(30px, 5vh, 60px) 0 clamp(60px, 8vh, 100px);
}
.qa-cat-block {
  margin-bottom: 44px;
  scroll-margin-top: 80px;
}
.qa-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line-hard);
  border-bottom: 1px solid var(--line-mid);
  position: relative;
}
.qa-cat-head::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 60px;
  height: 3px;
  background: var(--cat-color, var(--acid));
}
.qa-cat-head-left {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.qa-cat-head h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--text-primary);
}
.qa-cat-head .qa-cat-num {
  font-family: var(--font-mono);
  color: var(--cat-color, var(--acid));
  font-size: 13px;
  letter-spacing: 0.14em;
}
.qa-cat-head .mono {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.qa-list {
  border-top: 1px solid var(--line-soft);
}
.qa-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
  transition: background .16s ease, padding .18s ease;
  position: relative;
}
.qa-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--row-color, var(--cat-color, var(--acid)));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .2s ease;
}
.qa-row:hover {
  background: var(--bg-surface-1);
  padding-left: 12px;
}
.qa-row:hover::before { transform: scaleY(1); }
.qa-row-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.qa-row-q {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.35;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.qa-row:hover .qa-row-q { color: var(--row-color, var(--cat-color, var(--acid))); }
.qa-row-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .16s ease, gap .18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.qa-row:hover .qa-row-cta { color: var(--row-color, var(--cat-color, var(--acid))); gap: 10px; }
@media (max-width: 640px) {
  .qa-row { grid-template-columns: 40px minmax(0, 1fr); padding: 12px 4px; }
  .qa-row-cta { display: none; }
  .qa-row-q { font-size: 15px; }
}

.qa-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  border: 1px dashed var(--line-mid);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  display: none;
}
.qa-empty.is-visible { display: block; }

/* Highlighting for search matches */
.qa-hi {
  background: color-mix(in oklab, var(--acid) 30%, transparent);
  color: var(--text-primary);
  padding: 0 2px;
}

/* ================================================================
   ARTICLE (страница вопроса)
   ================================================================ */
.qa-article-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-l) 0 calc(var(--space-l) + 58px);
  position: relative;
}
@media (max-width: 720px) { .qa-article-shell { padding: 0 20px; } }

.qa-article-breadcrumbs {
  padding: 80px 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 6px;
  align-items: center;
}
.qa-article-breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.qa-article-breadcrumbs a:hover { color: var(--acid); }
.qa-article-breadcrumbs .sep { color: var(--text-dim); padding: 0 2px; }
.qa-article-breadcrumbs .current { color: var(--text-primary); }

.qa-article-topmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  padding: 10px 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-mid);
}
.qa-cat-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line-mid);
}
.qa-cat-chip .dot { width: 6px; height: 6px; }
.qa-article-topmeta .divider { width: 1px; height: 12px; background: var(--line-mid); }
.qa-article-topmeta .back-to-qa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line-mid);
  color: var(--text-muted);
  text-decoration: none;
  transition: color .18s, border-color .18s;
  margin-left: auto;
}
.qa-article-topmeta .back-to-qa:hover { color: var(--acid); border-color: var(--acid); }
@media (max-width: 640px) {
  .qa-article-topmeta { gap: 8px 14px; font-size: 10px; letter-spacing: 0.1em; }
  .qa-article-topmeta .divider { display: none; }
  .qa-article-topmeta .back-to-qa { margin-left: 0; width: 100%; justify-content: center; }
}

/* Article header — the QUESTION */
.qa-article-header {
  padding: 34px 0 34px;
  border-bottom: 1px solid var(--line-mid);
  position: relative;
}
.qa-article-eyebrow {
  color: var(--cat-color, var(--cyan));
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.qa-article-eyebrow::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--cat-color, var(--cyan));
  color: var(--bg-void);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
}
.qa-article-h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  max-width: 980px;
  text-wrap: balance;
  font-weight: 500;
  overflow-wrap: normal;
  word-break: normal;
}
@media (max-width: 640px) {
  .qa-article-h1 { font-size: 25px; line-height: 1.14; letter-spacing: -0.02em; }
  .qa-article-header { padding: 24px 0 26px; }
}

/* Author card */
.qa-author {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 26px 0 0;
  padding: 16px 20px;
  background: var(--bg-surface-1);
  border: 1px solid var(--line-mid);
}
.qa-author-avatar {
  width: 56px;
  height: 56px;
  background: var(--bg-surface-2);
  border: 1px solid var(--line-hard);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
}
.qa-author-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(201,255,61,0.06), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(255,255,255,0.02) 5px 6px);
  pointer-events: none;
}
.qa-author-name {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 4px;
  font-weight: 500;
}
.qa-author-name a { color: inherit; border-bottom: 1px dotted var(--line-hard); text-decoration: none; }
.qa-author-name a:hover { color: var(--acid); border-color: var(--acid); }
.qa-author-role {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.qa-author-dates {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-align: right;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .qa-author { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 14px 14px; }
  .qa-author-avatar { width: 48px; height: 48px; font-size: 18px; }
  .qa-author-dates { grid-column: 1 / -1; text-align: left; padding-top: 4px; border-top: 1px dashed var(--line-mid); }
}

/* Article body — one column, no TOC (answers are short) */
.qa-article-body {
  padding: 40px 0 30px;
  font-size: 17px;
  line-height: 1.72;
  color: var(--text-primary);
}
.qa-article-body p {
  margin-bottom: 18px;
  color: var(--text-primary);
  max-width: 820px;
}
.qa-article-body strong, .qa-article-body b { color: var(--text-primary); font-weight: 700; }
.qa-article-body a {
  color: var(--acid);
  border-bottom: 1px solid rgba(201,255,61,0.35);
  text-decoration: none;
  transition: color .18s, border-color .18s;
}
.qa-article-body a:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}
@media (max-width: 640px) {
  .qa-article-body { font-size: 16px; line-height: 1.68; padding: 28px 0 22px; }
}

/* TL;DR lead — «главное» */
.qa-lead {
  position: relative;
  padding: 26px 30px 24px;
  background: linear-gradient(135deg, rgba(201,255,61,0.06), rgba(0,240,255,0.04));
  border: 1px solid var(--line-hard);
  border-left: 3px solid var(--cat-color, var(--acid));
  margin: 0 0 30px;
}
.qa-lead::before {
  content: '';
  position: absolute;
  top: -1px; right: -1px;
  width: 12px; height: 12px;
  background: var(--cat-color, var(--acid));
  box-shadow: 0 0 20px var(--cat-color, var(--acid));
}
.qa-lead-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cat-color, var(--acid));
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.qa-lead-head .arr { color: var(--cyan); }
.qa-lead p {
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: none;
}
@media (max-width: 640px) {
  .qa-lead { padding: 20px 18px; }
  .qa-lead p { font-size: 15px; }
}

/* Bottom disclaimer (обязательный по инструкции) */
.qa-disclaimer {
  margin: 30px 0 40px;
  padding: 22px 26px;
  background: var(--bg-surface-1);
  border: 1px solid var(--line-mid);
  border-top: 2px solid var(--text-dim);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.qa-disclaimer strong {
  color: var(--text-secondary);
  font-weight: 600;
}
.qa-disclaimer-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow, #FFC93D);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.qa-disclaimer-head::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: var(--yellow, #FFC93D);
  color: var(--bg-void);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
}
@media (max-width: 640px) {
  .qa-disclaimer { padding: 18px 16px; font-size: 12px; }
}

/* Prev / Next navigation */
.qa-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 40px 0 0;
}
.qa-prevnext a {
  display: block;
  padding: 16px 18px;
  background: var(--bg-surface-1);
  border: 1px solid var(--line-mid);
  color: inherit;
  text-decoration: none;
  transition: border-color .18s, background .18s;
  min-height: 90px;
}
.qa-prevnext a:hover {
  border-color: var(--acid);
  background: var(--bg-surface-2);
}
.qa-prevnext-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.qa-prevnext-title {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-primary);
  font-weight: 500;
}
.qa-prevnext .next { text-align: right; }
.qa-prevnext a.disabled {
  opacity: 0.35;
  pointer-events: none;
}
@media (max-width: 640px) {
  .qa-prevnext { grid-template-columns: 1fr; }
  .qa-prevnext .next { text-align: left; }
}

/* Related section (4 карточки из той же категории) */
.qa-related {
  padding: 70px 0 50px;
  position: relative;
  overflow: hidden;
}
.qa-related::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(201, 255, 61, 0.05), transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(0, 240, 255, 0.06), transparent 55%),
    linear-gradient(180deg, transparent, var(--bg-surface-1) 40%, transparent);
  z-index: 0;
  pointer-events: none;
}
.qa-related-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-l) 0 calc(var(--space-l) + 58px);
}
@media (max-width: 720px) { .qa-related-inner { padding: 0 20px; } }
.qa-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-mid);
}
.qa-related-head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1;
  font-weight: 500;
}
.qa-related-head h2 em {
  font-style: normal;
  color: var(--acid);
  text-shadow: 0 0 24px rgba(201,255,61,0.25);
}
.qa-related-head .mono {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.qa-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1180px) { .qa-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .qa-related-grid { grid-template-columns: 1fr; } }

/* ---------- Trust bar (переопределение) --- */
.qa-hero .trust-bar { margin-top: clamp(28px, 4vh, 44px); }

/* ================================================================
   TOP NAV + FOOTER (перенесены сюда из blog.css, чтобы qa/ был
   самодостаточен и не зависел от blog/css/blog.css)
   ================================================================ */
.blog-topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 14, 11, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-mid);
}
.blog-topnav-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 14px var(--space-l) 14px calc(var(--space-l) + 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .blog-topnav-inner { padding: 12px 20px; }
}
.blog-topnav-left {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
}
.blog-topnav-left .brand {
  color: var(--text-primary);
  letter-spacing: 0.1em;
}
.blog-topnav-left .brand em {
  font-style: normal;
  color: var(--acid);
}
.blog-topnav-right {
  display: flex;
  gap: 8px;
  align-items: center;
}
.blog-topnav-right a {
  color: var(--text-secondary);
  padding: 6px 10px;
  border: 1px solid transparent;
  transition: color .18s, border-color .18s;
  text-decoration: none;
}
.blog-topnav-right a:hover, .blog-topnav-right a.is-active {
  color: var(--acid);
  border-color: var(--line-hard);
}
.blog-topnav-cta {
  color: var(--acid) !important;
  border-color: var(--acid) !important;
}
.blog-topnav-cta:hover {
  background: var(--acid);
  color: var(--bg-void) !important;
}
@media (max-width: 640px) {
  .blog-topnav-right a:not(.blog-topnav-cta) { display: none; }
}

.blog-footer {
  border-top: 1px solid var(--line-mid);
  padding: 60px 0 40px;
  margin-top: 80px;
  position: relative;
  z-index: 2;
}
.blog-footer-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--space-l) 0 calc(var(--space-l) + 58px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .blog-footer-inner { grid-template-columns: 1fr; padding: 0 20px; }
}
.blog-footer-brand p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; margin-top: 12px; max-width: 560px; }
.blog-footer-brand .title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.blog-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}
.blog-footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color .18s;
  text-decoration: none;
}
.blog-footer-links a:hover { color: var(--acid); }
.blog-footer-bottom {
  max-width: 1680px;
  margin: 40px auto 0;
  padding: 30px var(--space-l) 0 calc(var(--space-l) + 58px);
  border-top: 1px solid var(--line-mid);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .blog-footer-bottom { padding: 30px 20px 0; flex-wrap: wrap; }
}


/* ================================================================
   TOP NAV (copied from blog.css so QA works standalone)
   ================================================================ */
.blog-topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 14, 11, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-mid);
}
.blog-topnav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px var(--space-l) 14px calc(var(--space-l) + 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .blog-topnav-inner { padding: 12px 20px; }
}
.blog-topnav-left {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
}
.blog-topnav-left .brand {
  color: var(--text-primary);
  letter-spacing: 0.1em;
}
.blog-topnav-left .brand em {
  font-style: normal;
  color: var(--acid);
}
.blog-topnav-right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.blog-topnav-right a {
  color: var(--text-secondary);
  padding: 6px 10px;
  border: 1px solid transparent;
  transition: color .18s, border-color .18s;
  text-decoration: none;
}
.blog-topnav-right a:hover,
.blog-topnav-right a.is-active {
  color: var(--acid);
  border-color: var(--line-hard);
}
.blog-topnav-cta {
  color: var(--acid) !important;
  border-color: var(--line-hard) !important;
}
@media (max-width: 640px) {
  .blog-topnav-right a:not(.blog-topnav-cta) { display: none; }
}

/* ================================================================
   FOOTER (copied from blog.css)
   ================================================================ */
.blog-footer {
  border-top: 1px solid var(--line-mid);
  padding: 60px 0 40px;
  margin-top: 80px;
  position: relative;
  z-index: 2;
  background: var(--bg-base);
}
.blog-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-l) 0 calc(var(--space-l) + 58px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .blog-footer-inner { grid-template-columns: 1fr; padding: 0 20px; }
}
.blog-footer-brand p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 560px;
}
.blog-footer-brand .title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.blog-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}
.blog-footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color .18s;
  text-decoration: none;
}
.blog-footer-links a:hover { color: var(--acid); }
.blog-footer-bottom {
  max-width: 1400px;
  margin: 40px auto 0;
  padding: 30px var(--space-l) 0 calc(var(--space-l) + 58px);
  border-top: 1px solid var(--line-mid);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .blog-footer-bottom { padding: 30px 20px 0; flex-wrap: wrap; }
}
