/* ==========================================================================
   Gotcha — base theme design system
   Dark developer-console aesthetic. Motif: the "Gotcha!" moment an error is
   caught in the terminal. Token PROPERTY names are a stable contract consumed
   by later tasks (.container / .btn / .btn-primary / .prose + :root vars).
   ========================================================================== */

:root{
  /* --- contracted design tokens (names are the stable interface) --- */
  --bg:#0b0d11; --bg-elev:#14171d; --fg:#e6e9ef; --muted:#9aa4b2;
  --accent:#7b86ff; --accent-2:#7c5cff; --border:#232833;
  --grad-brand:linear-gradient(135deg,#3d7bff,#7c5cff); /* фирменный знак/акцент */
  --radius:10px; --maxw:1280px;
  --font-sans:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;

  /* --- refinements added by the frontend-design pass --- */
  --bg-code:#0f1319;
  --accent-ink:#0a0e28;          /* dark ink on the blue→violet accent/gradient */
  --accent-soft:rgba(96,120,255,.14);
  --danger:#f87171;              /* the error being "caught" */
  --warn:#f5c542;
  --radius-sm:6px;
  --ring:0 0 0 3px rgba(96,120,255,.42);
  --shadow:0 12px 40px -12px rgba(0,0,0,.6);
  --header-h:60px;

  /* fluid type scale (~1.24 ratio) */
  --fs-eyebrow:.72rem;
  --fs-small:.86rem;
  --fs-body:1.0625rem;
  --fs-h4:1.15rem;
  --fs-h3:clamp(1.35rem,1.1rem + 1vw,1.7rem);
  --fs-h2:clamp(1.7rem,1.3rem + 1.8vw,2.35rem);
  --fs-h1:clamp(2.1rem,1.5rem + 3vw,3.1rem);

  /* spacing scale */
  --space-1:.25rem; --space-2:.5rem; --space-3:.75rem; --space-4:1rem;
  --space-5:1.5rem; --space-6:2rem; --space-7:3rem; --space-8:4.5rem;
}

/* ---------------------------------------------------------------- reset */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--fg);
  font-family:var(--font-sans);font-size:var(--fs-body);line-height:1.6;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  min-height:100vh;display:flex;flex-direction:column;
}
main{flex:1 0 auto}
img{max-width:100%;height:auto}
::selection{background:var(--accent-soft);color:var(--fg)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--radius-sm)}

a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

/* headings — tight, confident, terminal-adjacent */
h1,h2,h3,h4{line-height:1.15;font-weight:700;letter-spacing:-.02em;margin:0 0 var(--space-4)}
h1{font-size:var(--fs-h1);letter-spacing:-.03em}
h2{font-size:var(--fs-h2)}
h3{font-size:var(--fs-h3)}
h4{font-size:var(--fs-h4)}

/* mono utility face carries the developer personality */
code,pre,kbd,samp{font-family:var(--font-mono)}
.eyebrow{
  font-family:var(--font-mono);font-size:var(--fs-eyebrow);font-weight:600;
  letter-spacing:.18em;text-transform:uppercase;color:var(--accent);
}

/* ------------------------------------------------------------- layout */
.container{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 20px}

/* ------------------------------------------------------------- buttons */
.btn{
  display:inline-flex;align-items:center;gap:.5em;
  padding:.7em 1.2em;border-radius:var(--radius);
  border:1px solid var(--border);background:var(--bg-elev);color:var(--fg);
  font:inherit;font-weight:600;cursor:pointer;
  transition:border-color .15s ease,background .15s ease,transform .05s ease,box-shadow .15s ease;
}
.btn:hover{border-color:var(--accent);text-decoration:none}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--grad-brand);color:var(--accent-ink);border-color:transparent;font-weight:700}
.btn-primary:hover{filter:brightness(1.07);box-shadow:0 10px 28px -10px rgba(96,120,255,.6);border-color:transparent}
.btn-ghost{background:transparent}

/* ------------------------------------------------- code blocks */
pre{
  background:var(--bg-code);border:1px solid var(--border);border-radius:var(--radius);
  padding:16px 18px;overflow-x:auto;font-size:var(--fs-small);line-height:1.5;
}
:not(pre) > code{
  background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius-sm);
  padding:.12em .4em;font-size:.9em;color:var(--fg);
}
pre code{background:none;border:0;padding:0;font-size:inherit}

/* ============================================================ site header
   A slim terminal-style status bar. Sticky, with a hairline signal border. */
.site-header{
  position:sticky;top:0;z-index:50;
  background:color-mix(in srgb,var(--bg) 82%,transparent);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--border);
}
.site-header .nav{
  display:flex;align-items:center;gap:var(--space-5);
  min-height:var(--header-h);
}
.brand{
  font-family:var(--font-mono);font-weight:700;font-size:1.15rem;letter-spacing:-.03em;
  color:var(--fg);display:inline-flex;align-items:center;margin-right:auto;
}
.brand:hover{text-decoration:none;color:var(--fg)}
/* crosshair logo mark, colored from the theme tokens (purple accent) */
.brand-mark{width:30px;height:30px;flex:0 0 auto;margin-right:.5em}
/* the "Gotcha!" caret — a signal block blinking at the prompt */
.brand::after{
  content:"";display:inline-block;width:.5em;height:1.05em;margin-left:.14em;
  background:var(--accent);border-radius:1px;
  animation:caret-blink 1.15s steps(1) infinite;
}
@keyframes caret-blink{50%{opacity:0}}

.nav-links{display:flex;align-items:center;gap:var(--space-5)}
.nav-links a{
  color:var(--muted);font-size:var(--fs-small);font-weight:500;
  transition:color .15s ease;
}
.nav-links a:hover{color:var(--fg);text-decoration:none}
.nav-links a.lang{
  font-family:var(--font-mono);font-size:var(--fs-eyebrow);font-weight:600;
  letter-spacing:.04em;color:var(--accent-2);
  padding:.25em .6em;border:1px solid var(--border);border-radius:var(--radius-sm);
}
.nav-links a.lang:hover{border-color:var(--accent-2)}

/* burger (mobile only) — checkbox hack, no JS */
.burger{display:none;cursor:pointer;font-size:1.4rem;line-height:1;color:var(--fg);
  padding:.2em .3em;margin-left:auto;user-select:none}

/* ============================================================ site footer */
.site-footer{
  border-top:1px solid var(--border);background:var(--bg-elev);
  margin-top:var(--space-8);padding:var(--space-6) 0;
}
.site-footer .container{display:flex;flex-direction:column;gap:var(--space-3)}
.foot-links{display:flex;flex-wrap:wrap;gap:var(--space-5)}
.foot-links a{color:var(--muted);font-size:var(--fs-small)}
.foot-links a:hover{color:var(--fg)}
.foot-legal{
  font-family:var(--font-mono);font-size:var(--fs-eyebrow);letter-spacing:.02em;
  color:var(--muted);
}

/* ================================================================= prose
   Long-form content surface for docs, blog and generic pages. */
.prose{padding:var(--space-7) 0 var(--space-8);max-width:min(72ch,100%)}
.prose > *{margin-inline:auto}
.prose h1{margin-bottom:var(--space-5)}
.prose h2{margin-top:var(--space-7);padding-top:var(--space-2)}
.prose h3{margin-top:var(--space-6)}
.prose p,.prose ul,.prose ol,.prose pre,.prose table,.prose blockquote{margin:0 0 var(--space-4)}
.prose ol{padding-left:1.4em}
.prose li{margin-bottom:var(--space-2)}
.prose blockquote{
  margin-inline:0;padding:.4em 0 .4em var(--space-4);
  border-left:3px solid var(--accent);color:var(--muted);
}
.prose img{border-radius:var(--radius);border:1px solid var(--border)}
.prose hr{border:0;border-top:1px solid var(--border);margin:var(--space-6) 0}
.prose table{width:100%;border-collapse:collapse;font-size:var(--fs-small)}
.prose th,.prose td{border:1px solid var(--border);padding:.55em .75em;text-align:left;vertical-align:top}
.prose th{background:var(--bg-elev);font-weight:600}
/* Install page's "config variables" table: name | default | description.
   Fix the first two (data-light) columns narrow and give the text-heavy
   description column the rest; long code (DSNs) wraps within its column.
   Scoped to .prose-install so 2-column tables elsewhere are unaffected. */
.prose-install table{table-layout:fixed}
.prose-install th:nth-child(1),.prose-install td:nth-child(1){width:40%}
.prose-install th:nth-child(2),.prose-install td:nth-child(2){width:24%}
.prose-install table code{overflow-wrap:anywhere}
.prose ul{list-style:none;padding-left:0}
.prose ul li{position:relative;padding-left:1.4em}
.prose ul li::before{
  content:"›";position:absolute;left:.2em;color:var(--accent);font-weight:700;
}
.prose ol{padding-left:1.6em}
.prose ol li{padding-left:.2em}

/* ================================================================= docs
   Two-column docs layout: a sticky nav sidebar driven by data/docsnav.yaml,
   plus the .prose article. Stacks to a single column on narrow viewports. */
.docs-layout{
  display:grid;grid-template-columns:220px minmax(0,1fr);
  gap:var(--space-7);align-items:start;
}
.docs-sidebar{
  position:sticky;top:calc(var(--header-h) + var(--space-5));
  padding:var(--space-6) 0;
}
.docs-sidebar nav ul{list-style:none;margin:0;padding:0}
.docs-sidebar nav li{margin:0}
.docs-sidebar nav a{
  display:block;padding:.4em var(--space-3);margin-bottom:2px;
  border-radius:var(--radius-sm);border-left:2px solid transparent;
  color:var(--muted);font-size:var(--fs-small);
  transition:color .15s ease,border-color .15s ease,background .15s ease;
}
.docs-sidebar nav a:hover{color:var(--fg);text-decoration:none}
.docs-sidebar nav a.active{
  color:var(--accent);border-left-color:var(--accent);
  background:var(--accent-soft);font-weight:600;
}
.docs-layout .prose{padding-top:var(--space-6);min-width:0}

@media (max-width:800px){
  .docs-layout{grid-template-columns:1fr}
  .docs-sidebar{
    position:static;padding:var(--space-4) 0;
    border-bottom:1px solid var(--border);margin-bottom:var(--space-2);
  }
  .docs-sidebar nav ul{
    display:flex;flex-wrap:wrap;gap:var(--space-2);
  }
  .docs-sidebar nav a{border-left:0;border-bottom:2px solid transparent;border-radius:var(--radius-sm)}
  .docs-sidebar nav a.active{border-left-color:transparent;border-bottom-color:var(--accent)}
  .docs-layout .prose{padding-top:var(--space-5)}
}

/* ================================================================= tabs
   SDK-language tab widget (see layouts/partials/sdk-tabs.html), used inside
   .prose on the SDK/Quickstart docs pages. Progressive enhancement: markup
   ships with every .tab-pane visible (no-JS fallback is fully readable —
   just a stack of labelled code blocks); assets/js/tabs.js toggles a
   `.active` class on click and on load. The collapse into an actual tab
   strip is pure CSS via :has(), keyed off a `.tab-btn.active` existing at
   all — which only happens once tabs.js has run, so browsers without JS
   (or with it disabled) simply see every panel, never a blank one. */
.tabs{margin:0 0 var(--space-4)}
.tab-row{display:flex;flex-wrap:wrap;gap:.4em;margin-bottom:.6em}
.tab-btn{
  padding:.45em .9em;border-radius:var(--radius-sm);
  border:1px solid var(--border);background:var(--bg-elev);color:var(--muted);
  font:inherit;font-family:var(--font-mono);font-size:var(--fs-small);
  font-weight:600;cursor:pointer;transition:color .15s ease,background .15s ease,border-color .15s ease;
}
.tab-btn:hover{color:var(--fg)}
.tab-btn.active{color:var(--accent-ink);background:var(--grad-brand);border-color:transparent}
.tab-pane{margin:0 0 .6em}
.tab-pane:last-child{margin-bottom:0}
.tab-row:has(.tab-btn.active) ~ .tab-pane:not(.active){display:none}

/* ================================================================== hero
   The landing opener: headline, subhead, CTAs and a "real terminal" block
   showing the three commands to first error. */
.hero{padding:var(--space-8) 0 var(--space-7);position:relative;overflow:clip}
.hero::before{
  content:"";position:absolute;inset:-20% -10% auto -10%;height:60%;
  background:radial-gradient(60% 100% at 30% 0%,var(--accent-soft),transparent 70%);
  pointer-events:none;z-index:-1;
}
.hero h1{max-width:19ch;font-family:var(--font-mono);letter-spacing:-.03em;line-height:1.12}
/* --- signature: the crosshair "captures" the payoff phrase on load --- */
.hero h1 .capture{
  position:relative;white-space:nowrap;
  background:var(--grad-brand);-webkit-background-clip:text;background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;
}
.hero h1 .capture::before,.hero h1 .capture::after{
  content:"";position:absolute;width:.4em;height:.4em;box-sizing:border-box;
  border:.11em solid var(--accent);opacity:0;
}
.hero h1 .capture::before{top:-.14em;left:-.2em;border-width:.11em 0 0 .11em;
  animation:cap-tl .55s .45s cubic-bezier(.2,.85,.25,1) forwards}
.hero h1 .capture::after{bottom:-.14em;right:-.2em;border-width:0 .11em .11em 0;
  animation:cap-br .55s .45s cubic-bezier(.2,.85,.25,1) forwards}
@keyframes cap-tl{0%{opacity:0;transform:translate(-.5em,-.5em)}100%{opacity:1;transform:none}}
@keyframes cap-br{0%{opacity:0;transform:translate(.5em,.5em)}100%{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  .hero h1 .capture::before,.hero h1 .capture::after{animation:none;opacity:1;transform:none}
}
.hero .lede{
  margin:var(--space-4) 0 0;max-width:56ch;
  font-size:var(--fs-h4);color:var(--muted);font-weight:400;
}
.hero-cta{display:flex;flex-wrap:wrap;gap:var(--space-4);margin:var(--space-6) 0 var(--space-7)}
.hero-cta .btn{font-size:var(--fs-body)}

/* the terminal — an elevated console surface with a titlebar and dots */
.terminal{
  position:relative;max-width:640px;margin:0;
  background:var(--bg-code);border:1px solid var(--border);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:calc(var(--space-6) + var(--space-2)) var(--space-5) var(--space-5);
  overflow-x:auto;
}
.terminal::before{
  content:"";position:absolute;top:var(--space-3);left:var(--space-4);
  width:.7em;height:.7em;border-radius:50%;
  background:var(--danger);
  box-shadow:1.4em 0 0 var(--warn), 2.8em 0 0 var(--accent);
}
.terminal code{
  display:block;color:var(--fg);font-size:var(--fs-small);line-height:1.9;white-space:pre;
}
.terminal-note{
  margin:var(--space-4) 0 0;color:var(--muted);font-size:var(--fs-small);max-width:56ch;
}
.terminal-note::before{content:"› ";color:var(--accent)}

/* ============================================================ screenshots
   Reusable feature-screenshot partial: real image or captioned placeholder. */
.shot{
  display:block;width:100%;border-radius:var(--radius);
  border:1px solid var(--border);box-shadow:var(--shadow);
}
.shot-placeholder{
  display:flex;align-items:center;justify-content:center;gap:.5em;
  aspect-ratio:16/10;background:var(--bg-elev);
  color:var(--muted);font-family:var(--font-mono);font-size:var(--fs-small);
  text-align:center;padding:var(--space-4);
}
/* clickable screenshots → fullscreen lightbox (lightbox.js, home only) */
.feature-shot img.shot{cursor:zoom-in;transition:border-color .15s ease}
.feature-shot img.shot:hover,
.feature-shot img.shot:focus-visible{border-color:var(--accent);outline:none}
.lightbox{
  position:fixed;inset:0;z-index:100;display:none;
  align-items:center;justify-content:center;padding:24px;
  background:rgba(5,7,10,.88);cursor:zoom-out;
}
.lightbox.open{display:flex}
.lightbox img{
  max-width:min(1600px,96vw);max-height:94vh;width:auto;height:auto;
  border-radius:var(--radius);border:1px solid var(--border);
  box-shadow:0 24px 80px rgba(0,0,0,.6);cursor:default;
}
.lightbox-close{
  position:absolute;top:14px;right:20px;
  color:var(--fg);background:none;border:0;font-size:26px;line-height:1;
  cursor:pointer;opacity:.7;transition:opacity .15s ease;
}
.lightbox-close:hover{opacity:1}

@media (max-width:560px){
  .hero-cta{flex-direction:column;align-items:stretch}
  .hero-cta .btn{justify-content:center}
}

/* ============================================================== features
   8 data-driven feature sections. Two-column grid (copy + screenshot),
   alternating sides for scan-rhythm on wide viewports; hairline dividers
   read as a continuous "spec sheet" down the page. */
.feature{padding:var(--space-8) 0;border-top:1px solid var(--border)}
.feature:first-of-type{border-top:0}
.feature-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:var(--space-7);
  align-items:center;
}
.feature:nth-of-type(even) .feature-copy{order:2}
.feature:nth-of-type(even) .feature-shot{order:1}

.feature-copy h2{
  font-family:var(--font-mono);font-size:var(--fs-h3);letter-spacing:-.01em;
  display:flex;align-items:center;gap:.55em;
}
/* live-signal marker — each feature is a telemetry stream */
.feature-copy h2::before{
  content:"";flex:0 0 auto;width:.5em;height:.5em;border-radius:50%;
  background:var(--grad-brand);box-shadow:0 0 0 .16em var(--accent-soft);
}
.feature-copy p{margin:0 0 var(--space-4);color:var(--muted);max-width:48ch}
.feature-copy ul{list-style:none;margin:0;padding:0}
.feature-copy li{
  position:relative;padding:.3em 0 .3em 1.4em;font-size:var(--fs-small);
  border-top:1px solid var(--border);
}
.feature-copy li:first-child{border-top:0}
.feature-copy li::before{
  content:"›";position:absolute;left:0;color:var(--accent);font-weight:700;
}

.feature-shot{min-width:0}

@media (max-width:800px){
  .feature{padding:var(--space-7) 0}
  .feature-grid{grid-template-columns:1fr;gap:var(--space-5)}
  .feature:nth-of-type(even) .feature-copy,
  .feature:nth-of-type(even) .feature-shot{order:initial}
}

/* ======================================================== architecture
   "How it works" — a single-column statement section, quieter than the
   feature grid: mono eyebrow-weight heading, one paragraph of fact. */
.arch{padding:var(--space-8) 0;border-top:1px solid var(--border)}
.arch h2{font-family:var(--font-mono);font-size:var(--fs-h3);letter-spacing:-.01em}
.arch p{margin:0;color:var(--muted);max-width:64ch;font-size:var(--fs-body)}

/* ========================================================= system requirements
   Two-tier spec (minimum vs recommended) as side-by-side cards; the
   recommended tier is emphasised with the brand accent. */
.req{padding:var(--space-8) 0;border-top:1px solid var(--border)}
.req h2{font-family:var(--font-mono);font-size:var(--fs-h3);letter-spacing:-.01em}
.req-intro{margin:0 0 var(--space-6);color:var(--muted);max-width:64ch;font-size:var(--fs-body)}
.req-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-5);max-width:52ch}
.req-tier{
  display:flex;flex-direction:column;gap:var(--space-2);
  padding:var(--space-5);background:var(--bg-elev);
  border:1px solid var(--border);border-radius:var(--radius);
}
.req-tier--rec{border-color:var(--accent);background:var(--accent-soft)}
.req-label{
  font-family:var(--font-mono);font-size:var(--fs-small);
  letter-spacing:.04em;text-transform:uppercase;color:var(--accent)}
.req-spec{font-size:var(--fs-body);font-weight:600;color:var(--fg);line-height:1.4}
.req-hint{font-size:var(--fs-small);color:var(--muted)}
.req-os{margin:var(--space-5) 0 var(--space-5);color:var(--muted);font-size:var(--fs-small)}

@media (max-width:560px){
  .req-grid{grid-template-columns:1fr;max-width:none}
}

/* ============================================================ open source
   License + stack statement with links out to the two code hosts. */
.oss{padding:var(--space-8) 0;border-top:1px solid var(--border);background:var(--bg-elev)}
.oss h2{font-family:var(--font-mono);font-size:var(--fs-h3);letter-spacing:-.01em}
.oss p{margin:0 0 var(--space-5);color:var(--muted);max-width:64ch}
.oss p:has(.btn){display:flex;gap:var(--space-4);flex-wrap:wrap;margin-bottom:0}

/* ================================================================ cta-foot
   Closing call to action: primary install CTA plus a modest, secondary
   Cloud-waitlist stub (mailto: — no backend in v1). */
.cta-foot{padding:var(--space-8) 0;border-top:1px solid var(--border);text-align:center}
.cta-foot .container{display:flex;flex-direction:column;align-items:center;gap:var(--space-7)}
.cta-foot > .container > .btn-primary{font-size:var(--fs-h4);padding:.85em 1.6em}

.waitlist{
  width:100%;max-width:46ch;padding:var(--space-6);
  background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius);
}
.waitlist h3{font-size:var(--fs-h4);margin-bottom:var(--space-2)}
.waitlist p{margin:0 0 var(--space-4);color:var(--muted);font-size:var(--fs-small)}

@media (max-width:560px){
  .oss p:has(.btn){flex-direction:column;align-items:stretch}
  .oss p:has(.btn) .btn{justify-content:center}
}

/* ================================================================ pricing
   Two-section stub page: self-hosted (primary) and a modest Cloud waitlist
   note. Reuses .prose spacing; h2 gets the mono-eyebrow treatment used by
   the other section headings on the landing page. */
.page h2{font-family:var(--font-mono);font-size:var(--fs-h3);letter-spacing:-.01em}

/* ================================================================== blog
   List: a stack of dated post teasers, hairline-divided like .feature.
   Single: post date sits as a small mono label under the title. */
.post-item{padding:var(--space-5) 0;border-top:1px solid var(--border)}
.post-item:first-of-type{border-top:0}
.post-item h2{margin:var(--space-2) 0 var(--space-2);font-size:var(--fs-h4)}
.post-item p{margin:0;color:var(--muted)}

.post-date{
  display:block;font-family:var(--font-mono);font-size:var(--fs-eyebrow);
  font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);
}
.post-item .post-date{margin-bottom:var(--space-1)}
article.prose > .post-date{margin:calc(-1 * var(--space-3)) 0 var(--space-5)}

/* ------------------------------------------------------------ responsive */
@media (max-width:720px){
  .burger{display:inline-block}
  .nav-links{
    position:absolute;left:0;right:0;top:var(--header-h);
    flex-direction:column;align-items:flex-start;gap:var(--space-4);
    padding:var(--space-5) 20px;
    background:var(--bg-elev);border-bottom:1px solid var(--border);
    box-shadow:var(--shadow);
    display:none;
  }
  #nav-toggle:checked ~ .nav-links{display:flex}
}

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001ms !important;animation-iteration-count:1 !important;
    transition-duration:.001ms !important;scroll-behavior:auto !important}
  .brand::after{animation:none;opacity:1}
}

/* ---------------------------------------------------- cookie consent + misc
   Body scroll-lock while the lightbox is open — a class (not an inline style),
   so a strict CSP with style-src 'self' never blocks it. */
.lb-open{overflow:hidden}

/* Cookie-consent banner: fixed bottom bar shown by consent.js until the user
   accepts/declines analytics (Yandex.Metrica loads only on accept). */
.cookie-consent{
  position:fixed;left:0;right:0;bottom:0;z-index:90;
  display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-4);
  padding:var(--space-4) var(--space-5);
  background:var(--bg-elev);border-top:1px solid var(--border);
  box-shadow:0 -8px 30px rgba(0,0,0,.4);
}
.cookie-consent[hidden]{display:none}
.cookie-consent__text{margin:0;flex:1 1 320px;color:var(--fg);font-size:var(--fs-small)}
.cookie-consent__actions{display:flex;gap:var(--space-3);flex:0 0 auto}
.cookie-consent__actions .btn{padding:.5em 1.1em}
@media (max-width:560px){
  .cookie-consent{flex-direction:column;align-items:stretch}
  .cookie-consent__actions{width:100%}
  .cookie-consent__actions .btn{flex:1;text-align:center}
}

/* "Support" (donate) button — a distinct warm accent, fills on hover. */
.btn-donate{border-color:var(--accent-2);color:var(--accent-2)}
.btn-donate:hover{background:var(--accent-2);color:var(--bg);text-decoration:none}

/* ============================================================ intro lede
   Цитируемое определение продукта сразу под hero (для поиска и AI-движков). */
.intro{padding:var(--space-7) 0}
.intro-lede{margin:0;max-width:72ch;font-size:var(--fs-h4);line-height:1.65;color:var(--fg)}

/* ==================================================================== FAQ
   Вопрос-ответ на главной; текст ответов в DOM (доступен краулерам),
   соответствует разметке FAQPage. */
.faq{padding:var(--space-8) 0;border-top:1px solid var(--border)}
.faq h2{font-family:var(--font-mono);font-size:var(--fs-h3);letter-spacing:-.01em;margin:0 0 var(--space-5)}
.faq-item{border-bottom:1px solid var(--border)}
.faq-item summary{cursor:pointer;padding:var(--space-4) 0;font-weight:600;font-size:var(--fs-h4);list-style:none;display:flex;justify-content:space-between;gap:var(--space-4);align-items:baseline}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";color:var(--muted);font-weight:400;flex:0 0 auto}
.faq-item[open] summary::after{content:"\2013"}
.faq-item p{margin:0 0 var(--space-4);color:var(--muted);max-width:72ch;font-size:var(--fs-body);line-height:1.65}

/* Дата обновления doc-страницы (сигнал свежести). */
.doc-date{display:block;color:var(--muted);font-size:var(--fs-small);margin:0 0 var(--space-5)}
