/* ══════════════════════════════════════════════════════════
   ДЕАНОН.FUN — Design System v2
   Шрифты с полной поддержкой кириллицы
   ══════════════════════════════════════════════════════════ */

:root {
  --bg:          #08080d;
  --bg-soft:     #0b0b12;
  --surface:     #101019;
  --surface-2:   #14141f;
  --border:      rgba(255,255,255,0.065);
  --border-2:    rgba(255,255,255,0.032);
  --border-3:    rgba(255,255,255,0.10);

  --accent:      #e8c97a;
  --accent-2:    #f0dca8;
  --accent-dim:  rgba(232,201,122,0.13);
  --accent-glow: rgba(232,201,122,0.30);

  --text:        #ebe7dd;
  --text-2:      rgba(235,231,221,0.72);
  --text-muted:  rgba(235,231,221,0.46);
  --text-dim:    rgba(235,231,221,0.22);

  --himera:      #b89ff0;
  --himera-g:    rgba(184,159,240,0.09);
  --himera-b:    rgba(184,159,240,0.20);
  --sherlock:    #82bfed;
  --sherlock-g:  rgba(130,191,237,0.09);
  --sherlock-b:  rgba(130,191,237,0.20);
  --funstat:     #7de8aa;
  --funstat-g:   rgba(125,232,170,0.09);
  --funstat-b:   rgba(125,232,170,0.20);

  --ok:          #4ade80;
  --warn:        #f0b866;
  --bad:         #ef7a7a;

  --f-display: 'Oswald', 'Bebas Neue', Impact, sans-serif;
  --f-serif:   'Playfair Display', 'DM Serif Display', Georgia, serif;
  --f-body:    'Inter', 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --nav-h: 56px;
  --wrap:  880px;
  --r-sm:  10px;
  --r:     14px;
  --r-lg:  18px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent-dim); color: var(--accent-2); }

/* ── FILM GRAIN ─────────────────────────────────────────── */
body::after {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9998; opacity: .45;
}

/* ── BACKDROP ───────────────────────────────────────────── */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.0105) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.0105) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 100% 62% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 100% 62% at 50% 0%, #000 25%, transparent 78%);
}

.ambient {
  position: fixed; top: -30vh; left: 50%;
  transform: translateX(-50%);
  width: 130vw; height: 78vh;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 100% at 22% 0%, rgba(184,159,240,.055), transparent 68%),
    radial-gradient(ellipse 44% 100% at 50% 0%, rgba(130,191,237,.045), transparent 66%),
    radial-gradient(ellipse 46% 100% at 78% 0%, rgba(125,232,170,.042), transparent 68%);
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateX(-50%) translateY(0)     scale(1); }
  to   { transform: translateX(-50%) translateY(2.2vh) scale(1.05); }
}

/* ── SCROLL PROGRESS ────────────────────────────────────── */
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  z-index: 200; transform-origin: 0 0;
  background: linear-gradient(90deg, var(--himera), var(--sherlock), var(--funstat), var(--accent));
  transition: width .1s linear;
}

/* ── NAV ────────────────────────────────────────────────── */
nav.site-nav {
  position: sticky; top: 0; z-index: 150;
  height: var(--nav-h);
  background: rgba(8,8,13,.86);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border-bottom: 1px solid var(--border-2);
}

.nav-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 22px; height: 100%;
  display: flex; align-items: center; gap: 14px;
}

.nav-logo {
  font-family: var(--f-display);
  font-size: 21px; font-weight: 600; letter-spacing: .055em;
  color: var(--text); text-decoration: none;
  margin-right: auto; line-height: 1; flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  transition: opacity .18s;
}
.nav-logo:hover { opacity: .82; }
.nav-logo b { color: var(--accent); font-weight: 600; }

.nav-mark {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 11px var(--accent-glow);
  animation: pulse 2.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.45;transform:scale(.85)} }

.nav-links { display: flex; align-items: center; gap: 1px; list-style: none; }
.nav-links a {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  padding: 7px 11px; border-radius: 7px;
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--accent); background: var(--accent-dim); }

/* burger */
.nav-burger {
  display: none;
  width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: 9px;
  background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  flex-shrink: 0; transition: border-color .18s;
}
.nav-burger:hover { border-color: var(--border-3); }
.nav-burger i {
  display: block; width: 15px; height: 1.5px;
  background: var(--text-2); border-radius: 2px;
  transition: transform .26s var(--ease), opacity .2s;
}
body.menu-open .nav-burger i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .nav-burger i:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ── CONTAINER ──────────────────────────────────────────── */
.container {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: 0 auto; padding: 0 22px;
}

/* ── BREADCRUMBS ────────────────────────────────────────── */
.crumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  font-family: var(--f-mono); font-size: 9.5px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); padding: 18px 0 0; list-style: none;
}
.crumbs a { color: var(--text-muted); text-decoration: none; transition: color .18s; }
.crumbs a:hover { color: var(--accent); }
.crumbs li { display: flex; align-items: center; gap: 7px; }
.crumbs li:not(:last-child)::after { content: '/'; color: var(--text-dim); opacity: .55; }

/* ── HERO ───────────────────────────────────────────────── */
.hero { padding: 34px 0 0; animation: fadeUp .55s var(--ease) both; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono);
  font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 15px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

h1.hero-h1 {
  font-family: var(--f-serif);
  font-size: clamp(27px, 5.6vw, 44px);
  font-weight: 500; line-height: 1.14;
  letter-spacing: -.015em; color: var(--text);
  text-wrap: balance;
}
h1.hero-h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, #d9b978);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
}

.hero-sub {
  font-size: 15px; color: var(--text-2);
  margin-top: 15px; line-height: 1.72;
  max-width: 620px; font-weight: 400;
}

/* ── STAT STRIP ─────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-top: 26px;
  border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; background: var(--border-2);
}
.stat { background: var(--surface); padding: 15px 14px; text-align: center; }
.stat-n {
  font-family: var(--f-display); font-weight: 500;
  font-size: 24px; line-height: 1; letter-spacing: .01em;
  color: var(--accent); margin-bottom: 5px;
}
.stat-l {
  font-family: var(--f-mono); font-size: 8.5px;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-muted); line-height: 1.4;
}

/* ── SECTION PRIMITIVES ─────────────────────────────────── */
section { scroll-margin-top: calc(var(--nav-h) + 22px); }

.sec-label {
  font-family: var(--f-mono);
  font-size: 9px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 14px;
}

h2.sec-title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(24px, 4.4vw, 33px);
  letter-spacing: .012em; line-height: 1.14;
  color: var(--text); margin-bottom: 13px; text-wrap: balance;
}

.sub-title {
  font-family: var(--f-body); font-size: 16px; font-weight: 600;
  color: var(--text); margin: 26px 0 8px; letter-spacing: -.005em;
}

.mini-title {
  font-family: var(--f-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 22px 0 8px;
}

p.body-text { font-size: 14.5px; color: var(--text-2); line-height: 1.8; }
p.body-text + p.body-text { margin-top: 11px; }
strong.hl { color: var(--text); font-weight: 600; }
.body-text a, .prose a {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color .18s;
}
.body-text a:hover, .prose a:hover { border-bottom-color: var(--accent); }

.divider {
  height: 1px; margin: 52px 0;
  background: linear-gradient(90deg, transparent, var(--border) 22%, var(--border) 78%, transparent);
}

/* ── PROSE (content pages) ──────────────────────────────── */
.prose p { font-size: 14.5px; color: var(--text-2); line-height: 1.82; margin-bottom: 13px; }
.prose h2 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(22px, 4vw, 29px); letter-spacing: .012em;
  color: var(--text); margin: 40px 0 13px; line-height: 1.16;
  scroll-margin-top: calc(var(--nav-h) + 22px);
}
.prose h3 {
  font-size: 16.5px; font-weight: 600; color: var(--text);
  margin: 28px 0 9px; letter-spacing: -.005em;
  scroll-margin-top: calc(var(--nav-h) + 22px);
}
.prose ul, .prose ol { margin: 0 0 15px 0; padding-left: 21px; }
.prose li {
  font-size: 14.5px; color: var(--text-2);
  line-height: 1.75; margin-bottom: 7px;
}
.prose li::marker { color: var(--accent); }
.prose blockquote {
  border-left: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 14px 17px; margin: 20px 0;
  font-size: 14px; color: var(--text-2); line-height: 1.75;
}
.prose blockquote strong { color: var(--accent); }
.prose code {
  font-family: var(--f-mono); font-size: 12.5px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 5px; padding: 1.5px 6px; color: var(--accent-2);
}

/* ── TOC ────────────────────────────────────────────────── */
.toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px 20px; margin: 26px 0;
}
.toc-t {
  font-family: var(--f-mono); font-size: 9px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 11px;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.toc li { counter-increment: t; margin-bottom: 7px; display: flex; gap: 10px; }
.toc li:last-child { margin-bottom: 0; }
.toc li::before {
  content: counter(t, decimal-leading-zero);
  font-family: var(--f-mono); font-size: 9.5px;
  color: var(--accent); opacity: .6; flex-shrink: 0; margin-top: 3px;
}
.toc a {
  font-size: 13.5px; color: var(--text-2);
  text-decoration: none; transition: color .18s; line-height: 1.5;
}
.toc a:hover { color: var(--accent); }

/* ── BOT CARDS (live links) ─────────────────────────────── */
#bots-grid { display: none; flex-direction: column; gap: 11px; }

.bot-card {
  position: relative; overflow: hidden; display: block;
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); padding: 21px 19px 18px;
  text-decoration: none;
  transition: transform .24s var(--ease), border-color .24s, box-shadow .24s;
  animation: fadeUp .55s var(--ease) both;
}
.bot-card::before {
  content: ''; position: absolute; inset: 0;
  opacity: 0; transition: opacity .3s var(--ease); pointer-events: none;
}
.bot-card.hi::before { background: radial-gradient(ellipse 88% 62% at 0% 0%, var(--himera-g),   transparent 72%); }
.bot-card.sh::before { background: radial-gradient(ellipse 88% 62% at 0% 0%, var(--sherlock-g), transparent 72%); }
.bot-card.fu::before { background: radial-gradient(ellipse 88% 62% at 0% 0%, var(--funstat-g),  transparent 72%); }
.bot-card:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,.46); }
.bot-card:hover::before { opacity: 1; }
.bot-card.hi:hover { border-color: var(--himera-b); }
.bot-card.sh:hover { border-color: var(--sherlock-b); }
.bot-card.fu:hover { border-color: var(--funstat-b); }
.bot-card:active { transform: translateY(-1px) scale(.995); }

.card-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; }

.bot-icon {
  width: 50px; height: 50px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.hi .bot-icon { background: var(--himera-g);   border: 1px solid var(--himera-b); }
.sh .bot-icon { background: var(--sherlock-g); border: 1px solid var(--sherlock-b); }
.fu .bot-icon { background: var(--funstat-g);  border: 1px solid var(--funstat-b); }

.bot-info { flex: 1; min-width: 0; }
.bot-name {
  font-family: var(--f-display); font-weight: 500;
  font-size: 23px; letter-spacing: .03em; line-height: 1.05; margin-bottom: 5px;
}
.hi .bot-name { color: var(--himera); }
.sh .bot-name { color: var(--sherlock); }
.fu .bot-name { color: var(--funstat); }
.bot-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }

.bot-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.bot-tag {
  font-family: var(--f-mono); font-size: 8.5px;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 100px;
}
.hi .bot-tag { background: rgba(184,159,240,.07); color: var(--himera);   border: 1px solid rgba(184,159,240,.15); }
.sh .bot-tag { background: rgba(130,191,237,.07); color: var(--sherlock); border: 1px solid rgba(130,191,237,.15); }
.fu .bot-tag { background: rgba(125,232,170,.07); color: var(--funstat);  border: 1px solid rgba(125,232,170,.15); }

.bot-handle { font-family: var(--f-mono); font-size: 10px; color: var(--text-dim); margin-top: 9px; }

.card-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--f-mono); font-size: 8px;
  letter-spacing: .13em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 100px;
}
.hi .card-badge { background: rgba(184,159,240,.09); color: var(--himera);   border: 1px solid rgba(184,159,240,.16); }
.sh .card-badge { background: rgba(130,191,237,.09); color: var(--sherlock); border: 1px solid rgba(130,191,237,.16); }
.fu .card-badge { background: rgba(125,232,170,.09); color: var(--funstat);  border: 1px solid rgba(125,232,170,.16); }

.card-arrow {
  flex-shrink: 0; width: 33px; height: 33px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  transition: transform .24s var(--ease);
}
.hi .card-arrow { background: rgba(184,159,240,.07); color: var(--himera); }
.sh .card-arrow { background: rgba(130,191,237,.07); color: var(--sherlock); }
.fu .card-arrow { background: rgba(125,232,170,.07); color: var(--funstat); }
.bot-card:hover .card-arrow { transform: translate(3px,-3px); }

/* ── LOADING / STATUS ───────────────────────────────────── */
#bots-loading {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 0; color: var(--text-dim);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em;
}
.dots span {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); animation: dotPulse 1.2s ease-in-out infinite both;
}
.dots span:nth-child(2) { animation-delay: .2s; }
.dots span:nth-child(3) { animation-delay: .4s; }

#updated-badge {
  display: none; align-items: center; gap: 7px;
  font-family: var(--f-mono); font-size: 9px; color: var(--text-dim);
  padding: 5px 11px; border: 1px solid var(--border);
  border-radius: 100px; margin-top: 13px;
}
.upd-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ok); animation: blink 2s ease-in-out infinite;
}
#err-notice {
  display: none; font-family: var(--f-mono);
  font-size: 10.5px; color: rgba(239,122,122,.6); padding: 9px 0;
}

/* ── CTA BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-body); font-size: 14px; font-weight: 600;
  padding: 13px 22px; border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #d9b56a);
  color: #12100a; box-shadow: 0 6px 22px rgba(232,201,122,.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(232,201,122,.24); }
.btn-ghost { background: var(--surface); border-color: var(--border-3); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent-dim); color: var(--accent); }
.btn-hi { background: var(--himera-g);   border-color: var(--himera-b);   color: var(--himera); }
.btn-sh { background: var(--sherlock-g); border-color: var(--sherlock-b); color: var(--sherlock); }
.btn-fu { background: var(--funstat-g);  border-color: var(--funstat-b);  color: var(--funstat); }
.btn-hi:hover, .btn-sh:hover, .btn-fu:hover { transform: translateY(-2px); filter: brightness(1.22); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ── CTA PANEL ──────────────────────────────────────────── */
.cta-panel {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); padding: 28px 24px;
  margin-top: 30px; text-align: center;
}
.cta-panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, var(--accent-dim), transparent 70%);
  opacity: .5;
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-h {
  font-family: var(--f-display); font-weight: 500;
  font-size: 25px; letter-spacing: .015em; color: var(--text); margin-bottom: 9px;
}
.cta-p { font-size: 14px; color: var(--text-2); line-height: 1.7; max-width: 480px; margin: 0 auto; }
.cta-panel .btn-row { justify-content: center; }

/* ── FEATURE GRID (3 col) ───────────────────────────────── */
.bot-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }

.bfg-col {
  border-radius: var(--r); border: 1px solid var(--border);
  background: var(--surface); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .22s, transform .22s var(--ease);
}
.bfg-col:hover { transform: translateY(-2px); }
.hi-col:hover { border-color: var(--himera-b); }
.sh-col:hover { border-color: var(--sherlock-b); }
.fu-col:hover { border-color: var(--funstat-b); }

.bfg-header { padding: 16px 15px 12px; border-bottom: 1px solid var(--border); }
.bfg-name {
  font-family: var(--f-display); font-weight: 500;
  font-size: 19px; letter-spacing: .03em; line-height: 1.05; margin-bottom: 4px;
}
.hi-col .bfg-name { color: var(--himera); }
.sh-col .bfg-name { color: var(--sherlock); }
.fu-col .bfg-name { color: var(--funstat); }
.bfg-sub {
  font-family: var(--f-mono); font-size: 8px;
  letter-spacing: .13em; text-transform: uppercase; color: var(--text-dim);
}
.bfg-items { padding: 13px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bfg-item {
  font-size: 12.5px; color: var(--text-2); line-height: 1.45;
  display: flex; gap: 8px; align-items: flex-start;
}
.bfg-dot { width: 4px; height: 4px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.hi-col .bfg-dot { background: var(--himera); }
.sh-col .bfg-dot { background: var(--sherlock); }
.fu-col .bfg-dot { background: var(--funstat); }

.bfg-foot { padding: 0 15px 15px; }
.bfg-link {
  font-family: var(--f-mono); font-size: 9px;
  letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s;
}
.bfg-link:hover { gap: 10px; }
.hi-col .bfg-link { color: var(--himera); }
.sh-col .bfg-link { color: var(--sherlock); }
.fu-col .bfg-link { color: var(--funstat); }

/* ── INFO GRID ──────────────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.info-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px 16px;
  transition: border-color .22s, transform .22s var(--ease);
}
.info-card:hover { border-color: var(--border-3); transform: translateY(-2px); }
.info-card-icon { font-size: 18px; margin-bottom: 9px; }
.info-card-title { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.info-card-text { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }

/* ── HIGHLIGHT / SCORING CARD ───────────────────────────── */
.hl-card {
  border-radius: var(--r); padding: 22px 20px; margin-top: 18px;
  background: var(--surface); border: 1px solid var(--border);
}
.hl-card.hi-tint { border-color: var(--himera-b); }
.hl-card.sh-tint { border-color: var(--sherlock-b); }
.hl-card.fu-tint { border-color: var(--funstat-b); }
.hl-card.gold    { border-color: var(--accent-dim); }
.hl-title {
  font-family: var(--f-display); font-weight: 500;
  font-size: 20px; letter-spacing: .02em; margin-bottom: 10px; line-height: 1.1;
}
.hi-tint .hl-title { color: var(--himera); }
.sh-tint .hl-title { color: var(--sherlock); }
.fu-tint .hl-title { color: var(--funstat); }
.gold .hl-title    { color: var(--accent); }
.hl-text { font-size: 13.5px; color: var(--text-2); line-height: 1.75; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.chip {
  font-family: var(--f-mono); font-size: 8.5px;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 100px;
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid rgba(232,201,122,.15);
}
.hi-tint .chip { background: rgba(184,159,240,.07); color: var(--himera);   border-color: rgba(184,159,240,.15); }
.sh-tint .chip { background: rgba(130,191,237,.07); color: var(--sherlock); border-color: rgba(130,191,237,.15); }
.fu-tint .chip { background: rgba(125,232,170,.07); color: var(--funstat);  border-color: rgba(125,232,170,.15); }

/* ── COMPARE TABLE ──────────────────────────────────────── */
.compare-wrap {
  margin-top: 18px; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface);
}
table.compare { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.compare th {
  font-family: var(--f-mono); font-size: 8.5px;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 400;
  padding: 14px 11px; text-align: left;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.compare th:first-child { padding-left: 17px; }
table.compare td {
  padding: 13px 11px; color: var(--text-2);
  border-bottom: 1px solid var(--border-2);
  vertical-align: middle; line-height: 1.45;
}
table.compare td:first-child {
  padding-left: 17px; font-family: var(--f-display);
  font-weight: 500; font-size: 16px; letter-spacing: .03em; white-space: nowrap;
}
table.compare tbody tr:nth-child(1) td:first-child { color: var(--himera); }
table.compare tbody tr:nth-child(2) td:first-child { color: var(--sherlock); }
table.compare tbody tr:nth-child(3) td:first-child { color: var(--funstat); }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare tbody tr { transition: background .18s; }
table.compare tbody tr:hover { background: rgba(255,255,255,.014); }
.ck { font-size: 14px; }
.ck-hi { color: var(--himera); }
.ck-sh { color: var(--sherlock); }
.ck-fu { color: var(--funstat); }
.cx { color: rgba(239,122,122,.34); font-size: 14px; }

/* ── TIPS / STEPS ───────────────────────────────────────── */
.tips-list { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.tip-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--r-sm); padding: 14px 16px;
  transition: border-color .2s, transform .2s var(--ease);
}
.tip-item:hover { border-color: var(--border); transform: translateX(2px); }
.tip-num {
  font-family: var(--f-mono); font-size: 10px; font-weight: 500;
  color: var(--accent); flex-shrink: 0; margin-top: 2px; opacity: .8;
}
.tip-text { font-size: 13.5px; color: var(--text-2); line-height: 1.68; }
.tip-text strong { color: var(--text); font-weight: 600; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list { margin-top: 18px; display: flex; flex-direction: column; gap: 3px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--r-sm);
  overflow: hidden; background: var(--surface);
  transition: border-color .2s;
}
.faq-item.open { border-color: var(--accent-dim); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text);
  font-family: var(--f-body); font-size: 14px; font-weight: 500;
  padding: 15px 17px; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 13px; transition: color .18s; line-height: 1.45;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--border); display: flex;
  align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-dim); line-height: 1;
  transition: transform .28s var(--ease), color .18s, border-color .18s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); border-color: var(--accent-dim); }
.faq-a {
  max-height: 0; overflow: hidden; padding: 0 17px;
  font-size: 13.5px; color: var(--text-2); line-height: 1.78;
  transition: max-height .38s var(--ease), padding .38s var(--ease);
}
.faq-item.open .faq-a { max-height: 460px; padding: 0 17px 16px; }
.faq-a a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-dim); }

/* ── RELATED / NEXT LINKS ───────────────────────────────── */
.rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.rel-card {
  display: block; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 17px 16px;
  transition: border-color .22s, transform .22s var(--ease), box-shadow .22s;
}
.rel-card:hover {
  border-color: var(--accent-dim); transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.rel-kicker {
  font-family: var(--f-mono); font-size: 8.5px;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 7px;
}
.rel-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 5px; line-height: 1.35; }
.rel-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }

/* ── FOOTER ─────────────────────────────────────────────── */
footer.site-footer { margin-top: 56px; border-top: 1px solid var(--border-2); }
.foot-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 34px 22px env(safe-area-inset-bottom, 26px);
}
.foot-cols {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 26px; margin-bottom: 28px;
}
.foot-brand-name {
  font-family: var(--f-display); font-weight: 600;
  font-size: 19px; letter-spacing: .05em; color: var(--text); margin-bottom: 9px;
}
.foot-brand-name b { color: var(--accent); }
.foot-brand-text { font-size: 12.5px; color: var(--text-muted); line-height: 1.7; max-width: 260px; }
.foot-h {
  font-family: var(--f-mono); font-size: 8.5px;
  letter-spacing: .19em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 12px;
}
.foot-list { list-style: none; padding: 0; margin: 0; }
.foot-list li { margin-bottom: 8px; }
.foot-list a {
  font-size: 12.5px; color: var(--text-muted);
  text-decoration: none; transition: color .18s;
}
.foot-list a:hover { color: var(--accent); }
.foot-bottom {
  border-top: 1px solid var(--border-2); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.foot-legal {
  font-family: var(--f-mono); font-size: 9.5px;
  color: var(--text-dim); line-height: 1.9; letter-spacing: .03em;
}

/* ── DISCLAIMER ─────────────────────────────────────────── */
.disclaimer {
  margin-top: 26px; border-radius: var(--r-sm);
  border: 1px solid rgba(240,184,102,.16);
  background: rgba(240,184,102,.032);
  padding: 15px 17px;
  display: flex; gap: 12px; align-items: flex-start;
}
.disclaimer-icon { font-size: 15px; flex-shrink: 0; line-height: 1.4; }
.disclaimer-text { font-size: 12.5px; color: var(--text-2); line-height: 1.7; }
.disclaimer-text strong { color: var(--warn); font-weight: 600; }

/* ── BACK TO TOP ────────────────────────────────────────── */
#totop {
  position: fixed; bottom: 22px; right: 22px; z-index: 120;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(16,16,25,.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-3); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; visibility: hidden;
  transform: translateY(9px);
  transition: opacity .26s, visibility .26s, transform .26s var(--ease), color .18s, border-color .18s;
}
#totop.show { opacity: 1; visibility: visible; transform: none; }
#totop:hover { color: var(--accent); border-color: var(--accent-dim); }

/* ── REVEAL ─────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ── KEYFRAMES ──────────────────────────────────────────── */
@keyframes fadeUp   { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }
@keyframes dotPulse { 0%,80%,100%{transform:scale(0);opacity:.3} 40%{transform:scale(1);opacity:1} }
@keyframes blink    { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .bot-feat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(8,8,13,.97);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--border);
    padding: 12px 18px 18px;
    transform: translateY(-8px); opacity: 0;
    visibility: hidden; pointer-events: none;
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  body.menu-open .nav-links {
    transform: none; opacity: 1; visibility: visible; pointer-events: auto;
  }
  .nav-links a { font-size: 11.5px; padding: 12px 13px; letter-spacing: .11em; }
}

@media (max-width: 620px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .info-grid, .rel-grid { grid-template-columns: 1fr; }
  .divider { margin: 42px 0; }
}

@media (max-width: 520px) {
  body { font-size: 14.5px; }
  .container, .nav-inner, .foot-inner { padding-left: 18px; padding-right: 18px; }
  .bot-card { padding: 18px 15px 16px; }
  .card-inner { gap: 13px; }
  .bot-icon { width: 43px; height: 43px; font-size: 19px; }
  .bot-name { font-size: 21px; }
  .card-badge { display: none; }
  .card-arrow { display: none; }
  .foot-cols { grid-template-columns: 1fr; gap: 22px; }
  .foot-brand-text { max-width: none; }
  table.compare { min-width: 520px; }
  .cta-panel { padding: 24px 18px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  #totop { bottom: 16px; right: 16px; }
}

/* ── A11Y ───────────────────────────────────────────────── */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--accent); color: #12100a;
  padding: 10px 16px; font-size: 13px; font-weight: 600;
  border-radius: 0 0 var(--r-sm) 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
