/* Spytrend blog — server-rendered pages. Mirrors the spy-web marketing shell:
   Space Grotesk on #0a0a12, #8B5CF6 accents, #0f0f18 cards (see spy-web
   LandingHeader/FooterSection — this file is their static twin). */
:root {
  --bg: #0a0a12;
  --card: #0f0f18;
  --card-border: #1f2937;
  --line: rgba(139, 92, 246, 0.1);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --dim: #6b7280;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-light: #a78bfa;
}
* { box-sizing: border-box; }
/* The linked app CSS (Tailwind base, shipped with the shell export) sets
   html/body/#root to height:100dvh + overflow:hidden for the SPA's inner
   scroll model — on the blog the WINDOW scrolls. Re-open it (this sheet
   cascades after the app CSS) and keep a permanent scrollbar so the header
   doesn't shift horizontally between the landing and the blog. */
html {
  height: auto;
  overflow: visible;
  overflow-y: scroll;
}
body {
  margin: 0;
  height: auto;
  overflow: visible;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* Ambient brand glow (anchored, doesn't scroll) — gives the dark canvas
     depth so the translucent header overlays something, not a flat fill. */
  background:
    radial-gradient(900px 480px at 50% -8%, rgba(139, 92, 246, 0.13), transparent 62%),
    radial-gradient(760px 440px at 100% 2%, rgba(128, 0, 255, 0.08), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.6;
  /* No -webkit-font-smoothing override: the SPA renders with `auto`
     (subpixel) — `antialiased` draws Space Grotesk ~8% narrower, shifting
     the shared header's nav between the landing and the blog. */
}
a { color: inherit; text-decoration: none; }
/* Padding mirrors the SPA header content box (max-w-7xl + px-4 sm:px-6 lg:px-8)
   so the blog content edge aligns with the header logo at every breakpoint. */
.wrap { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .wrap { padding: 0 2rem; } }
.wrap-narrow { max-width: 48rem; }
.wrap-mid { max-width: 64rem; }
.wrap-post { max-width: 70rem; }
html { scroll-behavior: smooth; }

/* ── Header (solid variant of the landing header) ── */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: all 0.3s;
}
/* Bar metrics mirror the SPA landing header exactly: h-16, px-4/sm:px-6/
   lg:px-8, text-lg logo (1.75rem line), text-sm nav (1.25rem line). */
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 4rem; padding: 0 1rem; }
@media (min-width: 640px) { .site-header .bar { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .site-header .bar { padding: 0 2rem; } }
.logo { display: flex; align-items: center; }
.logo svg.brandmark { height: 1.5rem; width: auto; display: block; }
.logo .spy { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); transition: color 0.2s; }
.site-nav a:hover { color: #fff; }
.site-nav a.active { color: #fff; font-weight: 500; }
.header-cta { display: flex; align-items: center; gap: 0.75rem; }
.btn-ghost {
  border: 1px solid #374151;
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d1d5db;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: #6b7280; color: #fff; }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-hover); }

/* Mobile menu (CSS-only: CSP on this site disallows inline JS) */
.nav-toggle { display: none; }
.nav-burger { display: none; padding: 0.5rem; color: var(--muted); cursor: pointer; }
.nav-burger:hover { color: #fff; }
.nav-burger svg { width: 1.5rem; height: 1.5rem; display: block; }
.mobile-menu { display: none; }
@media (max-width: 767px) {
  .site-nav, .header-cta .btn-ghost, .header-cta .btn-primary { display: none; }
  .nav-burger { display: block; }
  .nav-toggle:checked ~ .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem 2.5rem;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 10, 18, 0.98);
  }
  .mobile-menu a { color: #d1d5db; }
  .mobile-menu a:hover { color: #fff; }
  .mobile-menu .btn-primary { display: inline-block; padding: 0.75rem 2rem; color: #fff; }
}

/* ── React-exported shell (single source of truth) ──
   The fragment ships with the SPA's Tailwind classes and is styled by the
   built app CSS (linked before this <style>, so these overrides win).
   The SPA header is fixed+transparent (hero overlay); on blog pages it must
   be sticky and opaque. */
/* The exported shell header keeps its SPA classes (fixed top-0
   bg-transparent transition-all) — same floating behavior as the landing:
   transparent at the top, solid + blur once scrolled. share.js toggles
   .scrolled past the same 40px threshold as useHeaderScroll; values mirror
   Tailwind bg-[#0a0a12]/95 backdrop-blur-md shadow-lg shadow-black/20.
   The blur of the shell header sits on ::before, not on the header itself:
   backdrop-filter makes an element the containing block of its position:fixed
   descendants, and the mobile drawer (fixed inset-0 inside the header) then
   shrank to the 64px bar — the menu items hung transparent over the article
   once the page was scrolled (02.10.2026, phone report). */
header[data-shell="header"].scrolled,
.site-header.scrolled {
  background: rgba(10, 10, 18, 0.95);
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.2),
    0 4px 6px -4px rgb(0 0 0 / 0.2);
}
.site-header.scrolled { backdrop-filter: blur(12px); }
header[data-shell="header"].scrolled::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(12px);
  pointer-events: none;
}
/* Open shell drawer covers the screen: the page under it must not scroll away
   (the fallback .mobile-menu below stays in flow and keeps the page scrolling). */
html:has(header[data-shell="header"] #nav-toggle:checked) { overflow: hidden; }

/* ── Content ── */
/* padding-top: the floating header is fixed (out of flow) — reserve its
   4rem height so content starts below it, like the SPA pages do.
   padding-bottom: breathing room between the last content block (cta-panel
   on the index, read-next on posts) and the footer. */
main { flex: 1; padding-top: 4rem; padding-bottom: 5rem; }
.breadcrumbs { font-size: 0.875rem; color: var(--dim); margin: 3.5rem 0 0; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: #374151; }
.page-title { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: #fff; margin: 1rem 0 0; overflow-wrap: break-word; }
.page-title .accent { color: var(--accent); }
.page-subtitle { max-width: 42rem; font-size: 1.125rem; color: var(--muted); margin: 1rem 0 0; }
.post-author { font-size: 0.9375rem; color: var(--dim); margin-top: 0.75rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; font-size: 0.875rem; color: var(--dim); margin-top: 1rem; }

.post-list { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.post-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  transition: border-color 0.2s;
}
.post-card:hover { border-color: rgba(139, 92, 246, 0.5); }

/* Every card has a visual: the cover image when present, otherwise the
   title centered on near-black (TrendTrack pattern). A broken image simply
   reveals the fallback underneath — no JS involved. */
.cover-box {
  position: relative;
  width: 100%;
  height: 100%;
  background: #050508;
  overflow: hidden;
}
.cover-box .cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 600;
  color: #fff;
  /* Scales with viewport so long titles fit the fixed-aspect box on mobile */
  font-size: clamp(0.8125rem, 2.2vw, 1rem);
  line-height: 1.35;
  overflow: hidden;
}
.cover-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent; /* hide broken-image alt artifacts over the fallback */
}
/* 16:6 = the 8:3 banner covers, same as .post-cover and .featured-cover: a 2:1
   box cropped the logo and headline off the banner edges on narrow cards. */
.grid-cover {
  aspect-ratio: 16 / 6;
  border-radius: 0.5rem;
  border: 1px solid var(--card-border);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.grid-cover .cover-box { border-radius: 0.5rem; }
.post-card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--dim); }
.chip {
  display: inline-block;
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-light);
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
/* Whole-card click without wrapping the card in one <a>: the title link
   stretches over the card, so the card can still hold links of its own (the
   language codes below) — an <a> inside an <a> is invalid HTML. The link's
   name stays the title instead of the whole card's text. */
.post-card { position: relative; }
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 0.75rem;
}
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--accent-light); outline-offset: 2px; }

/* Availability row of a card shown in another language than the page: the
   outline pill of the old «English only» chip, now naming every language the
   article exists in, each code a link above the card's stretched link. Codes
   get a 24px hit area (WCAG 2.5.8) without looking bigger. */
.lang-avail {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 1.5rem;
  padding: 0 0.3125rem 0 0.625rem;
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--dim);
}
.lang-avail-label { margin-right: 0.125rem; }
.lang-avail-sep { opacity: 0.6; }
.lang-code {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.15s, background-color 0.15s;
}
.lang-code:hover { color: #fff; background: rgba(139, 92, 246, 0.15); }
.lang-code:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 1px; }
.read-body .lang-avail { margin-bottom: 0.5rem; }

/* Language versions of the article, under the title: the version being read
   is the tinted chip, the others are outline pills that link to them. */
.lang-versions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.875rem;
  font-size: 0.8125rem;
}
.lang-versions-label { color: var(--dim); }
.lang-versions ul { display: flex; flex-wrap: wrap; gap: 0.375rem; list-style: none; margin: 0; padding: 0; }
.lang-version {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0 0.75rem;
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  line-height: 1;
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s;
}
a.lang-version:hover { color: #fff; border-color: rgba(139, 92, 246, 0.5); }
a.lang-version:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.lang-version[aria-current] {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-light);
  font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
  .lang-code, .lang-version { transition: none; }
}
.post-card h2 { font-size: 1.5rem; font-weight: 600; color: #fff; margin: 0.75rem 0 0; transition: color 0.2s; }
.post-card:hover h2 { color: var(--accent); }
.post-card p { color: var(--muted); margin: 0.75rem 0 0; }
.post-card .more { display: inline-block; margin-top: 1rem; font-size: 0.875rem; font-weight: 500; color: var(--accent); }
.empty-state {
  margin-top: 3.5rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
}

.cover { width: 100%; border-radius: 0.75rem; border: 1px solid var(--card-border); margin-top: 2rem; }
/* Post hero: image or the same title-on-black fallback as cards (TrendTrack) */
.post-cover { aspect-ratio: 16 / 6; overflow: hidden; }
.post-cover .cover-fallback { font-size: clamp(1rem, 3vw, 1.5rem); padding: clamp(1rem, 4vw, 2.5rem); }

/* ── Featured card + grid (listing) ── */
.featured-card { display: block; margin-top: 3rem; padding: 0; overflow: hidden; }
.featured-card .featured-cover { aspect-ratio: 16 / 6; }
.featured-card .featured-cover .cover-fallback { font-size: clamp(1rem, 3.2vw, 1.75rem); padding: clamp(1rem, 4vw, 2.5rem); }
.featured-card .featured-body { padding: 2rem; }
.featured-card h2 { font-size: 1.875rem; }
.post-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
/* The cover bleeds to the card edge (no padding, no frame of its own; the card clips it
   to its radius), like the featured card and Read next (owner via Ges #85); text keeps
   the card's 1.5rem inset. */
.post-grid .post-card { height: 100%; padding: 0; overflow: hidden; }
.post-grid .grid-cover { border: 0; border-radius: 0; margin-bottom: 0; }
.post-grid .post-card > :not(.grid-cover) { margin-inline: 1.5rem; }
.post-grid .post-card > .grid-cover + * { margin-top: 1.25rem; }
.post-grid .post-card > :last-child { margin-bottom: 1.5rem; }
.post-grid h2 { font-size: 1.25rem; }

/* ── Article two-column layout: sticky TOC + share ── */
.article-layout { margin-top: 1rem; }
.article-side { display: none; }
.toc-mobile {
  margin-top: 2rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}
.toc-mobile summary { cursor: pointer; font-weight: 600; color: #fff; }
.toc-mobile ul { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.toc-mobile li { margin-top: 0.5rem; }
.toc-mobile a { font-size: 0.875rem; color: var(--muted); }
.toc-mobile .toc-l3 { padding-left: 1rem; }
@media (min-width: 1024px) {
  .article-layout {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
  }
  .article-side { display: block; position: sticky; top: 5.5rem; }
  .toc-mobile { display: none; }
}
.toc h2 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--card-border); }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 0.375rem 0 0.375rem 0.875rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s;
}
.toc a:hover { color: #fff; }
.toc a.active { color: var(--accent-light); border-left-color: var(--accent); }
.toc .toc-l2 a { color: #d1d5db; font-weight: 500; }
.toc .toc-l3 a { padding-left: 1.75rem; font-size: 0.8125rem; color: var(--muted); font-weight: 400; }

.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.5rem; }
/* Label on its own line (TrendTrack "SHARE ARTICLE") — the icon row never
   wraps awkwardly in the narrow sidebar. */
.share-label {
  flex-basis: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-bottom: 0.25rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.share-btn svg { width: 1rem; height: 1rem; display: block; }
.share-btn:hover { color: #fff; border-color: rgba(139, 92, 246, 0.5); }
.share-btn .icon-check { display: none; }
.share-btn.copied { color: var(--accent-light); border-color: var(--accent); }
.share-btn.copied .icon-link { display: none; }
.share-btn.copied .icon-check { display: block; }
.share-bottom { margin-top: 3rem; }

/* Read-next: the banner cover bleeds to the card edge (no padding, no frame of its
   own; the card clips it to its radius). It keeps the 16:6 box of .grid-cover so the
   8:3 covers are never cropped: on phones it sits on top at full width, on wider
   screens it is a top-aligned thumbnail on the left (Ges #85). */
.read-next .post-card.read-card { display: flex; align-items: flex-start; gap: 0; padding: 0; overflow: hidden; }
.read-thumb { flex: 0 0 20rem; aspect-ratio: 16 / 6; overflow: hidden; }
.read-thumb .cover-fallback { font-size: 0.75rem; padding: 0.75rem; }
.read-body { min-width: 0; align-self: center; padding: 0.75rem 1.5rem; }
.read-body h3, .read-body p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
@media (max-width: 639px) {
  .read-next .post-card.read-card { flex-direction: column; align-items: stretch; }
  .read-thumb { flex: none; width: 100%; }
  .read-thumb .cover-fallback { font-size: clamp(0.8125rem, 3.4vw, 1rem); padding: 1rem; }
  .read-body { align-self: auto; padding: 1rem 1.25rem 1.25rem; }
  .read-body h3, .read-body p { display: block; overflow: visible; }
}

/* Article body: publisher HTML (h2/h3, lists, tables, inline images) */
/* Break long unbroken strings (URLs, tokens) so arbitrary publisher prose
   can't push past the viewport on mobile. */
.article-body { margin-top: 2rem; overflow-wrap: break-word; }
/* TOC anchor jumps must land below the sticky header, not under it. Шапка
   занимает 64px, при 5.5rem заголовок приземлялся в 24px под ней — почти
   впритык. 7rem дают 48px воздуха. */
.article-body [id] { scroll-margin-top: 7rem; }
.article-body h2 { font-size: 1.5rem; font-weight: 600; color: #fff; margin: 2.5rem 0 0; }
.article-body h3 { font-size: 1.25rem; font-weight: 600; color: #fff; margin: 2rem 0 0; }
.article-body h4 { font-size: 1.125rem; font-weight: 600; color: #fff; margin: 1.5rem 0 0; }
.article-body p { color: #d1d5db; margin: 1rem 0 0; }
/* Explicit list styles: the linked app CSS carries Tailwind preflight which
   zeroes list-style — restate the browser defaults for article content. */
.article-body ul, .article-body ol { color: #d1d5db; margin: 1rem 0 0; padding-left: 1.5rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-top: 0.5rem; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body a:hover { color: var(--accent-light); }
.article-body blockquote {
  margin: 1.5rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}
.article-body code {
  background: #1a1a26;
  border-radius: 0.25rem;
  padding: 0.125rem 0.375rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875em;
  color: var(--accent-light);
}
.article-body pre {
  margin: 1.5rem 0 0;
  padding: 1rem;
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  font-size: 0.875rem;
}
.article-body pre code { background: none; padding: 0; }
.article-body img { max-width: 100%; height: auto; border-radius: 0.75rem; border: 1px solid var(--card-border); margin-top: 1.5rem; }
.article-body hr { border: 0; border-top: 1px solid var(--card-border); margin: 2.5rem 0 0; }
/* Wide comparison tables scroll inside their own container on narrow screens
   instead of widening the page (which would drag the fixed header sideways).
   The table keeps width:100% so it still fills the column on desktop. */
.table-scroll { margin: 1.5rem 0 0; max-width: 100%; overflow-x: auto; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0; font-size: 0.875rem; text-align: left; color: #d1d5db; }
.article-body th { border-bottom: 1px solid rgba(139, 92, 246, 0.25); padding: 0.5rem 0.75rem; font-weight: 600; color: #fff; }
.article-body td { border-bottom: 1px solid rgba(139, 92, 246, 0.125); padding: 0.5rem 0.75rem; }

/* Групповая строка широкой таблицы: подзаголовок внутри неё, а не обычная
   строка данных. Без правила три таких строки читались как строки сравнения
   с пустыми колонками. */
.article-body tr.grp td {
  background: rgba(139, 92, 246, 0.07);
  padding-top: 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
}

/* Сноска под графиком: поясняет, как читать цифры на нём. Тем же кеглем, что
   основной текст, она спорит с абзацами и тянет на себя внимание. */
.article-body .svgnote {
  margin: -0.125rem 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

/* CTA panel + read-next (mirror of the React blog post page) */
.cta-panel {
  margin-top: 4rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(to bottom right, rgba(139, 92, 246, 0.1), transparent);
}
.cta-panel h2 { font-size: 1.5rem; font-weight: 600; color: #fff; margin: 0; }
.cta-panel p { max-width: 28rem; margin: 0.75rem auto 0; color: var(--muted); }
.cta-panel .btn-primary { margin-top: 1.5rem; padding: 0.75rem 2rem; font-size: 1rem; }
.read-next { margin-top: 4rem; }
.read-next h2 { font-size: 1.25rem; font-weight: 600; color: #fff; margin: 0; }
.read-next ul { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.read-next .post-card { padding: 1.25rem; }
.read-next .post-card h3 { font-size: 1rem; font-weight: 600; color: #fff; margin: 0; transition: color 0.2s; }
.read-next .post-card:hover h3 { color: var(--accent); }
.read-next .post-card p { font-size: 0.875rem; margin: 0.5rem 0 0; }
.back-link { display: inline-block; margin-top: 3rem; padding-top: 1.5rem; color: var(--accent); }
.back-link:hover { text-decoration: underline; }
.footer-rule { border-top: 1px solid var(--card-border); margin-top: 3rem; }

/* Full-width conversion band closing the article. Breaks out of the narrow
   prose column so the CTA reads as a page-level section (not a panel stuck in
   the column), filling the dead space above the footer. .article-page drops
   main's bottom padding so the band sits close to the footer. */
.article-page { padding-bottom: 0; }
.article-cta {
  margin-top: 5rem;
  padding: 5rem 0 5.5rem;
  border-top: 1px solid var(--card-border);
  background: radial-gradient(900px 380px at 50% 0%, rgba(139, 92, 246, 0.14), transparent 70%);
  text-align: center;
}
.article-cta h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.01em; color: #fff; margin: 0; }
.article-cta p { max-width: 38rem; margin: 1rem auto 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.6; }
.article-cta .btn-primary { margin-top: 2rem; padding: 0.9rem 2.5rem; font-size: 1.0625rem; }
@media (max-width: 640px) {
  .article-cta { margin-top: 3.5rem; padding: 3.5rem 0 4rem; }
  .article-cta h2 { font-size: 1.5rem; }
}

/* ── Footer (static twin of FooterSection) ── */
.site-footer { margin-top: 4rem; border-top: 1px solid rgba(139, 92, 246, 0.2); background: #08080c; padding: 4rem 0; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(5, 1fr); } }
.footer-brand .logo svg.brandmark { height: 1.75rem; }
.footer-brand .desc { margin-top: 0.75rem; font-size: 0.875rem; color: var(--dim); }
.footer-brand .fine { margin-top: 0.5rem; font-size: 0.75rem; color: #4b5563; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.pay-badges span { background: #1f2937; border-radius: 0.25rem; padding: 0.25rem 0.5rem; font-size: 0.75rem; color: var(--muted); }
.footer-col h4 { margin: 0 0 1rem; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-top: 0.5rem; }
.footer-col a { font-size: 0.875rem; color: var(--dim); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-follow { margin-top: 1.5rem; }
.footer-follow h4 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.footer-follow a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(34, 158, 217, 0.1);
  color: #229ed9;
  transition: background 0.2s, color 0.2s;
}
.footer-follow a:hover { background: #229ed9; color: #fff; }
.footer-follow svg { width: 1.25rem; height: 1.25rem; }
.footer-company { margin-top: 2rem; font-size: 0.75rem; color: #4b5563; }
.footer-company p { margin: 0.125rem 0; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #1f2937;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #4b5563;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom .links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-bottom a { color: #4b5563; transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }

/* Footer language switcher: the footer button is hydrated into a dropdown by
   /blog/lang.js (the menu is inline-styled in that script). No CSS needed. */

@media (max-width: 640px) {
  .page-title { font-size: 2rem; }
  .post-card { padding: 1.5rem; }
  /* On phones the featured card reads as a regular grid card: full-bleed cover on top,
     the text under it with the grid card's 1.5rem inset (the desktop 2rem body padding
     squeezed it into a narrow column under a 30px title). */
  .featured-card { padding: 0; }
  .featured-card .featured-body { padding: 1.25rem 1.5rem 1.5rem; }
  .featured-card h2 { font-size: 1.375rem; }
}

/* Listing pagination (audit P1-2). */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.pager a {
  color: var(--accent-light);
  text-decoration: none;
}
.pager a:hover { color: var(--accent); }
.pager-state { color: var(--dim); }

/* ── Rich-article components ────────────────────────────────────────────
   Долгие разборы (сравнения, перепроверки чужих тестов) не укладываются в
   h2/p/ul: им нужны цитата оппонента, наш ответ, вывод, врезка, крупные
   цифры и подписанный скриншот. Классы общие — любая статья может их взять,
   разметка приходит в body_html от паблишера. Палитра только из переменных
   выше, поэтому блоки живут в теме блога, а не спорят с ней. */

/* Вводка под заголовком */
.article-body .post-lede { font-size: 1.125rem; color: #e5e7eb; }

/* «Коротко» — итог статьи первым экраном */
.article-body .post-tldr {
  margin: 2rem 0 0;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(to bottom right, rgba(139, 92, 246, 0.1), transparent);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 1rem;
}
.article-body .post-tldr ul { margin: 0; padding-left: 1.25rem; list-style: none; }
.article-body .post-tldr li { margin-top: 0.625rem; color: #e5e7eb; position: relative; }
.article-body .post-tldr li:first-child { margin-top: 0; }
.article-body .post-tldr li::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 0.625rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Оглавление-таблица «что разбираем по пунктам» */
.article-body .post-index {
  margin: 2rem 0 0;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
}
.article-body .post-index h3 { margin: 0 0 0.75rem; font-size: 1rem; color: #fff; }
.article-body .post-index table { margin: 0; }
.article-body .post-index td { border-bottom: 1px solid var(--card-border); vertical-align: top; }
.article-body .post-index tr:last-child td { border-bottom: 0; }
.article-body .post-index td:first-child { width: 42%; }
.article-body .post-index a { color: var(--accent-light); text-decoration: none; font-weight: 600; }
.article-body .post-index a:hover { text-decoration: underline; }

/* Мелкая плашка-подпись над блоком */
.article-body .post-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* Цитата чужого исследования: читается как вставленный чужой документ */
.article-body .post-quote {
  margin: 2rem 0 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--dim);
}
.article-body .post-quote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-style: normal;
}
.article-body .post-quote blockquote p { margin: 0 0 0.625rem; color: inherit; }
.article-body .post-quote blockquote p:last-child { margin-bottom: 0; }

/* Скриншот-цитата: длинный кадр листается внутри рамки, а не тянет страницу */
.article-body .post-shot { margin: 1.25rem 0 0; }
.article-body .post-shot-frame {
  /* Высота кадра зависит от ширины колонки: фиксированный потолок на широком
     экране резал картинку ровно по строке и она читалась как битая. */
  max-height: min(32rem, 60vh);
  overflow-y: auto;
  border-radius: 0.5rem;
  background: #fff;
  /* Без overscroll-behavior: contain. С ним кадр дочитывался до конца и гасил
     прокрутку страницы — колесо над картинкой переставало листать статью, и
     чтобы поехать дальше, приходилось уводить курсор в сторону. По умолчанию
     прокрутка передаётся дальше: сперва листается кадр, потом страница. */
}
/* Растворённая кромка только у кадров, которые реально листаются: на узком
   экране картинка влезает целиком, и безусловная маска читалась как обрез. */
.article-body .post-shot-frame.is-scrollable {
  mask-image: linear-gradient(to bottom, #000 calc(100% - 2.5rem), transparent);
}
.article-body .post-shot-frame img {
  margin: 0;
  border: 0;
  border-radius: 0;
  display: block;
  width: 100%;
  /* Белый лист чужой статьи на почти чёрном фоне слепит; на наведении и в
     полном размере отдаём как есть. */
  filter: brightness(0.84) contrast(1.03);
  transition: filter 0.2s;
}
.article-body .post-shot-frame:hover img,
.article-body .post-shot-frame a:focus-visible img { filter: none; }
.article-body .post-shot figcaption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.article-body .post-shot figcaption a { color: var(--accent); }

/* Наш ответ на пункт */
.article-body .post-answer { margin-top: 1.5rem; }

/* График: подложка карточки, чтобы SVG не висел на голом фоне */
.article-body .post-figure {
  margin: 1.5rem 0 0;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
}
.article-body .post-figure { overflow-x: auto; }
.article-body .post-figure svg { display: block; width: 100%; height: auto; }
@media (max-width: 40rem) {
  /* viewBox 900px, ужатый в 326px, даёт подписи в 4px. Лучше горизонтальный
     скролл, чем нечитаемая картинка. */
  .article-body .post-figure svg { min-width: 34rem; }
}

/* Вывод по пункту — самый заметный блок разбора */
.article-body .post-verdict {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to bottom right, rgba(139, 92, 246, 0.14), transparent);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-left: 3px solid var(--accent);
  border-radius: 0 1rem 1rem 0;
}
.article-body .post-verdict { color: #e5e7eb; }
.article-body .post-verdict p { margin: 0; color: inherit; }
.article-body .post-verdict b { color: #fff; }
.article-body .post-verdict-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}

/* Врезка от редакции/команды */
.article-body .post-callout {
  margin: 1.75rem 0 0;
  padding: 1.5rem 1.75rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
}
.article-body .post-callout-who {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.article-body .post-callout h3 { margin: 0.5rem 0 0; font-size: 1.125rem; }
.article-body .post-callout > :first-child { margin-top: 0; }

/* Крупные цифры в строку */
.article-body .post-stats {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.article-body .post-stats div {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 1.125rem 1.25rem;
}
.article-body .post-stats b {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.03em;
}
.article-body .post-stats span {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Блок «данные открыты» — инструкция проверить нас самому */
.article-body .post-open {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.5rem;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-left: 3px solid var(--accent);
  border-radius: 0 0.75rem 0.75rem 0;
}
.article-body .post-open > :first-child { margin-top: 0; }

/* Подсветка нашей колонки в сравнительной таблице */
.article-body .post-win { color: var(--accent-light); font-weight: 600; }

/* Числовые колонки сравнительных таблиц выравниваются по разряду */
.article-body td.post-num, .article-body th.post-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Длинный разбор даёт длинное оглавление: у этой статьи 27 пунктов, столбик
   перерастает экран и его хвост становится недостижим — sticky-блок выше
   вьюпорта не доскроллить. Ограничиваем высоту и листаем внутри. */
@media (min-width: 1024px) {
  .article-side {
    max-height: calc(100dvh - 7rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--card-border) transparent;
  }
}

/* Границы пунктов в длинном разборе. Паблишер оборачивает каждый пункт в
   <section>; без разделителя конец вывода и заголовок следующего пункта
   отличались на 40px — новый раздел читался как соседний абзац. */
.article-body section + section {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--card-border);
}
.article-body section > h2:first-child { margin-top: 0; font-size: 1.75rem; font-weight: 700; }

/* Длина строки. 760px при 16px дают 93 знака, комфортный предел 70-75.
   Ограничиваем только текст: таблицы и графики остаются во всю колонку.
   Не в ch: единица считается по ширине нуля, в Space Grotesk это 11.5px
   против 8.15px у средней строчной кириллицы, и 60ch давали 85 знаков. */
.article-body p,
.article-body ul,
.article-body ol { max-width: 38rem; }

/* Подвал статьи: источники и правовая сноска. Без правил он шёл тем же кеглем
   и цветом, что основной текст, и читался как продолжение разбора. */
.article-body footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.875rem;
  color: var(--muted);
}
.article-body footer p { margin: 0.75rem 0 0; color: inherit; max-width: 44rem; }
.article-body footer p:first-child { margin-top: 0; }

/* Кадр кликабелен целиком (ссылку навешивает share.js) */
.article-body .post-shot-frame a { display: block; cursor: zoom-in; }

/* Увеличенный кадр поверх статьи (share.js). Окно во весь экран, кадр по
   ширине экрана, но не крупнее исходного; высокий кадр листается внутри окна.
   Фон страницы при этом не прокручивается. */
html.shot-lightbox-open { overflow: hidden; }
.shot-lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 3.5rem 1rem 2rem;
  border: 0;
  background: transparent;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.shot-lightbox::backdrop { background: rgba(5, 5, 10, 0.9); }
.shot-lightbox img {
  display: block;
  max-width: min(100%, 1840px);
  height: auto;
  margin: 0 auto;
  border-radius: 0.5rem;
  border: 1px solid var(--card-border);
  cursor: zoom-out;
}
.shot-lightbox-close {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.shot-lightbox-close:hover { border-color: rgba(139, 92, 246, 0.5); color: #fff; }
.shot-lightbox-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Заголовок блока-призыва в теле статьи бывает абзацем. Общее ограничение
   длины строки (38rem) сужало его и прижимало к левому краю: подпись
   уезжала влево от кнопки. Внутри панели абзацы центруем по оси панели. */
.article-body .cta-panel p { margin-left: auto; margin-right: auto; }

/* Мобильный аккордеон оглавления: 27 пунктов дают простыню выше экрана, а
   строка в 31px меньше минимальной цели касания в 44px. */
.toc-mobile ul { max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; }
.toc-mobile a { display: block; padding: 0.625rem 0; }

/* Сравнительная таблица — такая же подложка, как у графика: рядом всё лежит в
   карточках, и только она висела на голом фоне. */
.article-body .table-scroll {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  padding: 0.25rem 1rem 0.75rem;
}
.article-body .table-scroll thead th { background: rgba(255, 255, 255, 0.03); }
@media (max-width: 40rem) {
  /* Три колонки в 358px ломают ячейки на 4-6 строк, а контейнер скроллится на
     9px — это дребезг, а не приглашение листать. Двум колонкам ширина экрана
     хватает: с min-width значения уезжали за край на 360–390 px. */
  .article-body .table-scroll table:has(tr > :nth-child(3)) { min-width: 34rem; }
}

/* Кикер над заголовком пункта: повторяет подпись из оглавления, чтобы переход
   по ссылке не выглядел промахом — читатель видит то, что выбрал. */
.article-body .post-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}
.article-body section > .post-kicker:first-child + h2 { margin-top: 0; }

/* Финальный вывод — итог всей статьи, а не ещё один вывод по пункту. */
.article-body .post-verdict.is-final {
  background: linear-gradient(to bottom right, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0.06));
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-left: 3px solid var(--accent);
  border-radius: 0 1rem 1rem 0;
}

/* Признак горизонтального скролла у графиков и таблиц. Содержимое шире
   контейнера на ~220px и обрывалось ровно по кромке карточки: у графика за
   кадром оставались главные подписи, у сравнительной таблицы — вся колонка
   «Остальные четыре». Тень рисуется фоном и гаснет сама, когда скроллить
   нечего: слои с `local` прокручиваются вместе с содержимым и закрывают
   градиент у соответствующего края. */
.article-body .post-figure,
.article-body .table-scroll {
  background-image:
    linear-gradient(to right, var(--card), rgba(15, 15, 24, 0)),
    linear-gradient(to left, var(--card), rgba(15, 15, 24, 0)),
    linear-gradient(to right, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0)),
    linear-gradient(to left, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0));
  background-position: left center, right center, left center, right center;
  background-repeat: no-repeat;
  background-size: 2.5rem 100%, 2.5rem 100%, 1rem 100%, 1rem 100%;
  background-attachment: local, local, scroll, scroll;
}

/* Колонка «Пункт» в итоговой таблице: подпись «к пункту 6» переносилась по
   слогам в 77px и растягивала строку до 84px. */
.article-body .table-scroll td:last-child,
.article-body .table-scroll th:last-child { white-space: nowrap; }

/* Заголовок с кикером: кикер стоит на 26px выше самого заголовка, к которому
   ведёт якорь, и при общем отступе уезжал под шапку. Добавляем его высоту,
   чтобы воздух над блоком был такой же, как у заголовков без кикера. */
.article-body .post-kicker + h2 { scroll-margin-top: 8.5rem; }

/* Телефон (жалоба 01.10.2026 «с телефона криво»):
   - длинный кадр листался внутри рамки: палец над картинкой крутил рамку, а не
     статью. На узком экране кадр показываем целиком, крупно — по тапу;
   - крошки повторяли заголовок целиком, 2–4 строки прямо над тем же H1;
   - поля врезок (1.75rem с каждой стороны) рассчитаны на десктоп и съедали
     56px из 358. */
@media (max-width: 40rem) {
  .article-body .post-shot-frame { max-height: none; overflow: visible; }
  .article-body .post-shot-frame.is-scrollable { mask-image: none; }
  .breadcrumbs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .article-body .post-tldr,
  .article-body .post-index,
  .article-body .post-callout,
  .article-body .post-verdict,
  .article-body .post-open { padding: 1rem 1.125rem; }
}

/* Data reports above the articles (Mell's SEO audit 07.11): their own type, no cover/date. */
.report-list { margin: 0 0 2.5rem; }
.report-list-title { font-size: 1.25rem; margin: 0 0 1rem; }
.report-card { position: relative; display: block; background: var(--card); border: 1px solid var(--card-border); border-radius: 0.75rem; padding: 1.25rem 1.5rem; transition: border-color 0.2s; }
.report-card:hover { border-color: var(--accent, var(--card-border)); }
.report-card h3 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.report-card p { margin: 0; color: var(--muted, inherit); }
