/* ==========================================================================
   UZEX AI — тёмная тема
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-2: #0f0f11;
  --card: #141417;
  --card-2: #1a1a1e;
  --card-3: #222227;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #6b6b75;

  --green: #55db9c;
  --green-2: #99e9c4;
  --yellow: #ffd731;
  --yellow-2: #ffefad;
  --violet: #e9ccff;
  --blue: #4da2ff;
  --blue-2: #dceeff;
  --purple: #7c6cf0;
  --orange: #fb4903;
  --red: #ff7a7a;

  --font-display: "Fira Sans Extra Condensed", "Arial Narrow", Impact, sans-serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-xl: 2.5rem;
  --r-l: 1.75rem;
  --r-m: 1.25rem;
  --r-s: .75rem;

  --ease: cubic-bezier(.65, .05, 0, 1);
  --ease-out: cubic-bezier(.32, .72, 0, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --nav-h: 64px;
  --ticker-h: 0px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--ticker-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--green); color: #06110b; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: #000; padding: 10px 16px; border-radius: 99px; font-weight: 700; transition: top .3s var(--ease); }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Типографика ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(44px, 7.4vw, 112px);
  line-height: .88;
  letter-spacing: -.005em;
  margin: 0;
}
.h-display em { display: block; font-style: italic; color: var(--green); }
.h-display--m { font-size: clamp(40px, 5.6vw, 84px); }
.kicker {
  display: inline-flex; align-items: center; gap: .5em;
  margin: 0 0 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--green); border-radius: 2px; }

.section-head { margin-bottom: clamp(32px, 5vw, 64px); }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head__lead { max-width: 640px; margin: 24px 0 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); }
.section-head__aside { max-width: 380px; margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Бегущая строка ---------- */
.ticker {
  position: relative; z-index: 2;
  height: 40px;
  background: var(--violet);
  color: #17121c;
  overflow: hidden;
  display: flex; align-items: center;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.ticker__track { display: flex; flex: none; width: max-content; animation: ticker 40s linear infinite; }
.ticker__track span { display: inline-flex; align-items: center; gap: 18px; padding-right: 18px; white-space: nowrap; }
.ticker__track span::after { content: "✦"; font-size: 9px; opacity: .55; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Навигация ---------- */
.nav {
  position: fixed; z-index: 40;
  top: calc(var(--ticker-h) + 12px); left: var(--gutter); right: var(--gutter);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__logo, .nav__links, .nav__right {
  display: flex; align-items: center; gap: 6px;
  padding: 6px;
  background: rgba(20, 20, 23, .72);
  border: 1px solid var(--line);
  border-radius: 99px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease);
}
.nav.is-scrolled .nav__logo, .nav.is-scrolled .nav__links, .nav.is-scrolled .nav__right { background: rgba(14, 14, 16, .88); border-color: var(--line-2); }
.nav__links { position: absolute; left: 50%; transform: translateX(-50%); }
.nav.is-hidden .nav__links { transform: translate(-50%, -140%); }
.nav__right { margin-left: auto; }
.nav__mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green);
  display: grid; place-items: center;
  transition: transform .8s var(--ease);
}
.nav__mark svg { width: 22px; height: 22px; fill: #08130d; }
.nav__logo:hover .nav__mark { transform: rotate(360deg); }
.nav__word { font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: .02em; }
.nav__word b { color: var(--green); margin-left: 2px; }
.pill-link {
  position: relative;
  padding: 10px 16px;
  border-radius: 99px;
  font-size: 14px; font-weight: 700;
  color: var(--muted);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.pill-link:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.pill-link.is-active { color: #0a0a0b; background: var(--text); }

.mode-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 99px;
  background: rgba(255, 215, 49, .1);
  color: var(--yellow);
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.mode-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ping 2.2s var(--ease-out) infinite; }
.mode-pill.is-live { background: rgba(85, 219, 156, .12); color: var(--green); }
.mode-pill--sm { padding: 6px 12px; font-size: 11px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

.lang { position: relative; display: flex; padding: 3px; background: var(--card-3); border-radius: 99px; }
.lang button { position: relative; z-index: 1; width: 46px; height: 34px; border-radius: 99px; font-size: 13px; font-weight: 800; color: var(--muted); transition: color .35s var(--ease); }
.lang button[aria-pressed="true"] { color: #0a0a0b; }
.lang__thumb { position: absolute; top: 3px; left: 3px; width: 46px; height: 34px; border-radius: 99px; background: var(--yellow); transition: transform .5s var(--ease); }
.lang[data-current="uz"] .lang__thumb { transform: translateX(46px); }

/* ---------- Кнопки ---------- */
.btn { --btn-bg: var(--yellow); --btn-fg: #0a0a0b; --btn-depth: #b39200; position: relative; display: inline-flex; border-radius: 99px; isolation: isolate; flex: none; }
.btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--btn-depth); transform: translateY(4px); z-index: -1; transition: transform .25s var(--ease); }
.btn__face {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 10px 0 22px;
  border-radius: inherit;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 800; font-size: 15px;
  transition: transform .25s var(--ease), background .3s var(--ease);
}
.btn:hover .btn__face { transform: translateY(-2px); }
.btn:hover::before { transform: translateY(5px); }
.btn:active .btn__face { transform: translateY(3px); }
.btn:active::before { transform: translateY(3px); }
.btn__arrow { position: relative; width: 34px; height: 34px; border-radius: 50%; background: #0a0a0b; overflow: hidden; display: grid; place-items: center; }
.btn__arrow svg { width: 18px; height: 18px; fill: var(--btn-bg); transition: transform .45s var(--ease); }
.btn__arrow::after { content: ""; position: absolute; inset: 0; background: center / 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd731' d='M5 12h12.17l-5.58-5.59L13 5l8 7-8 7-1.41-1.41L17.17 13H5z'/%3E%3C/svg%3E"); transform: translateX(-120%); transition: transform .45s var(--ease); }
.btn:hover .btn__arrow svg { transform: translateX(120%); }
.btn:hover .btn__arrow::after { transform: translateX(0); }
.btn[disabled] { pointer-events: none; }
.btn[disabled] .btn__face { background: var(--card-3); color: var(--dim); }
.btn[disabled]::before { background: #111; }
.btn[disabled] .btn__arrow svg { fill: var(--dim); }

.btn--ghost { --btn-bg: var(--card-3); --btn-fg: var(--text); --btn-depth: #0b0b0d; }
.btn--ghost .btn__face { height: 44px; padding: 0 18px; font-size: 14px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  font-size: 14px; font-weight: 600; line-height: 1.25;
  color: var(--text);
  text-align: left;
  transition: transform .35s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.chip:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .26); }
.chip:active { transform: translateY(0) scale(.98); }
.chip__lang { flex: none; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 3px 6px; border-radius: 6px; background: var(--card-3); color: var(--muted); }
.chip__lang--uz { background: rgba(77, 162, 255, .16); color: var(--blue); }
.chip__lang--ru { background: rgba(85, 219, 156, .14); color: var(--green); }
.chip--ghost { border-style: dashed; color: var(--muted); }
.chip--ghost b { color: var(--text); font-weight: 800; }

.link-btn { font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 10px; border-radius: 99px; transition: color .25s, background .25s; }
.link-btn:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card-3); transition: transform .4s var(--ease), background .3s; }
.icon-btn svg { width: 18px; height: 18px; fill: var(--text); }
.icon-btn:hover { transform: rotate(90deg); background: #2c2c33; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--ticker-h) + var(--nav-h) + 56px) var(--gutter) 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; will-change: transform; }
.glow--a { width: 46vw; height: 46vw; left: -12vw; top: 8%; background: radial-gradient(circle, rgba(85, 219, 156, .55), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.glow--b { width: 40vw; height: 40vw; right: -10vw; top: -6%; background: radial-gradient(circle, rgba(124, 108, 240, .55), transparent 65%); animation: drift 22s ease-in-out infinite alternate-reverse; }
.glow--c { width: 36vw; height: 36vw; left: 32%; bottom: -22%; background: radial-gradient(circle, rgba(255, 215, 49, .28), transparent 65%); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(6vw, 4vw, 0) scale(1.1); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  opacity: .55;
}

.hero__inner { position: relative; width: 100%; max-width: 980px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 28px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  background: rgba(255, 255, 255, .03);
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .84;
  font-size: clamp(52px, 12.4vw, 196px);
  letter-spacing: -.01em;
}
.hero__line { display: block; white-space: nowrap; }
.hero__line--accent { font-style: italic; color: var(--green); font-size: .62em; margin-top: .06em; }
.hero__line .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .02em .02em; margin: -.04em -.02em -.02em; }
.hero__line .ch { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 28ms + var(--base, 0ms)); }
.is-ready .hero__line .ch { transform: none; }

.hero__lead { margin: 28px 0 36px; max-width: 640px; font-size: clamp(17px, 1.9vw, 22px); font-weight: 500; color: #d4d4d8; line-height: 1.4; }

/* Плавающие жетоны */
.tokens { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.token {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate3d(calc(var(--px, 0) * var(--depth) * 1px), calc(var(--py, 0) * var(--depth) * 1px), 0) rotate(var(--r));
  transition: transform 1.2s var(--ease-out), opacity 1s var(--ease);
  padding: 12px 16px;
  border-radius: 18px;
  font-weight: 800; font-size: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  opacity: 0;
}
.is-ready .token { opacity: 1; }
.token::after { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--depth) * -2s); }
.token--sql { background: var(--card-2); border: 1px solid var(--line-2); font-family: var(--mono); font-weight: 500; font-size: 13px; text-align: left; line-height: 1.5; color: #d4d4d8; }
.token__k { color: var(--violet); font-weight: 600; }
.token--check { background: var(--green); color: #07140d; display: flex; align-items: center; gap: 8px; }
.token__dot { width: 18px; height: 18px; border-radius: 50%; background: #07140d; position: relative; }
.token__dot::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid var(--green); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.token--lang { background: var(--blue); color: #061321; font-family: var(--font-display); font-size: 26px; letter-spacing: .04em; padding: 8px 18px; }
.token--num { background: var(--yellow); color: #1a1500; font-family: var(--font-display); font-size: 30px; line-height: 1; text-align: left; }
.token--num small { display: block; font-family: var(--font); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.token--db { background: var(--violet); color: #1c1024; font-family: var(--mono); font-size: 13px; }

.hero__scroll { display: none; position: absolute; bottom: 28px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--line-2); border-radius: 99px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--text); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- Поле вопроса ---------- */
.askbox {
  position: relative;
  width: 100%; max-width: 820px;
  display: flex; align-items: flex-end; gap: 10px;
  padding: 10px 10px 10px 20px;
  border-radius: var(--r-l);
  background: rgba(22, 22, 26, .86);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color .3s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease);
}
.askbox::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, var(--green), var(--blue) 40%, var(--violet) 70%, var(--yellow));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease);
  pointer-events: none;
}
.askbox:focus-within { box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 0 6px rgba(85, 219, 156, .08); }
.askbox:focus-within::before { opacity: 1; }
.askbox.is-shake { animation: shake .45s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.askbox__icon { flex: none; align-self: center; width: 24px; height: 24px; }
.askbox__icon svg { width: 24px; height: 24px; fill: var(--dim); }
.askbox textarea {
  flex: 1; min-width: 0;
  min-height: 52px; max-height: 180px;
  padding: 14px 4px;
  border: 0; outline: 0; resize: none;
  background: transparent;
  font-size: clamp(16px, 1.7vw, 19px); font-weight: 500; line-height: 1.4;
  text-align: left;
  scrollbar-width: none;
}
.askbox textarea::-webkit-scrollbar { display: none; }
.askbox textarea::placeholder { color: var(--dim); }
.askbox__hint { margin: 14px 0 0; font-size: 13px; color: var(--dim); }
.askbox__sep { margin: 0 8px; }

.examples { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; max-width: 920px; }
.examples__label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-right: 4px; }
.examples__list { display: contents; }

/* ---------- Появление при скролле ---------- */
[data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(6px); transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------- WORKSPACE ---------- */
.workspace { position: relative; padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 8vw, 120px); background: var(--bg); }
.workspace::before { display: none; content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.ws-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.ws-main { min-width: 0; }

.history {
  position: sticky; top: calc(var(--ticker-h) + var(--nav-h) + 28px);
  padding: 20px;
  border-radius: var(--r-l);
  background: var(--card);
  border: 1px solid var(--line);
  max-height: calc(100vh - var(--ticker-h) - var(--nav-h) - 56px);
  display: flex; flex-direction: column;
}
.history__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.history__head h3 { margin: 0; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.history__count { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--card-3); font-size: 12px; display: inline-grid; place-items: center; color: var(--muted); }
.history__list { list-style: none; margin: 0 -8px; padding: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.history__empty { margin: 4px 0 0; font-size: 14px; color: var(--dim); }
.hist-item {
  width: 100%;
  display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 4px 12px; align-items: baseline;
  padding: 12px;
  border-radius: 14px;
  text-align: left;
  transition: background .25s var(--ease), transform .35s var(--ease);
  animation: histIn .6s var(--ease) both;
}
@keyframes histIn { from { opacity: 0; transform: translateX(14px); } }
.hist-item:hover { background: rgba(255, 255, 255, .05); }
.hist-item.is-active { background: rgba(85, 219, 156, .09); }
.hist-item__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); transform: translateY(-1px); }
.hist-item__dot--no_data { background: var(--yellow); }
.hist-item__dot--demo_miss, .hist-item__dot--error { background: var(--dim); }
.hist-item__q { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hist-item__meta { grid-column: 2; font-size: 12px; color: var(--dim); }

/* Карточки результата */
.card {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.result-enter { animation: cardIn .8s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.985); filter: blur(4px); } }

.empty { padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.empty__art { width: 112px; height: 112px; border-radius: 32px; background: var(--card-3); display: grid; place-items: center; position: relative; }
.empty__art span { position: absolute; border-radius: 10px; }
.empty__art span:nth-child(1) { width: 52px; height: 12px; background: var(--green); top: 30px; left: 22px; animation: barGrow 2.4s var(--ease) infinite alternate; }
.empty__art span:nth-child(2) { width: 68px; height: 12px; background: var(--violet); top: 50px; left: 22px; animation: barGrow 2.4s var(--ease) .3s infinite alternate; }
.empty__art span:nth-child(3) { width: 36px; height: 12px; background: var(--yellow); top: 70px; left: 22px; animation: barGrow 2.4s var(--ease) .6s infinite alternate; }
@keyframes barGrow { from { transform: scaleX(.4); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
.empty h3 { margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.15; }
.empty p { margin: 0; color: var(--muted); max-width: 520px; }

/* Загрузка */
.loading { padding: clamp(24px, 4vw, 44px); }
.loading__q { margin: 0 0 28px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; line-height: 1.25; }
.loading__q::before { content: "“"; color: var(--green); margin-right: 2px; }
.loading__q::after { content: "”"; color: var(--green); margin-left: 2px; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stage {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--card-2);
  border: 1px solid transparent;
  opacity: .4;
  transition: opacity .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
}
.stage__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card-3); position: relative; }
.stage__icon::before { content: attr(data-n); font-weight: 800; font-size: 14px; color: var(--muted); }
.stage__t { font-weight: 800; font-size: 16px; }
.stage__d { font-size: 13px; color: var(--muted); }
.stage__time { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.stage.is-active { opacity: 1; border-color: rgba(85, 219, 156, .35); background: rgba(85, 219, 156, .06); }
.stage.is-active .stage__icon::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(85, 219, 156, .25); border-top-color: var(--green); animation: spin .8s linear infinite; }
.stage.is-done { opacity: 1; }
.stage.is-done .stage__icon { background: var(--green); animation: pop .5s var(--ease-spring); }
.stage.is-done .stage__icon::before { content: ""; width: 7px; height: 13px; border: solid #07140d; border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(.6); } }
.progress { height: 4px; margin-top: 24px; border-radius: 4px; background: var(--card-3); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--blue), var(--violet)); transition: width .8s var(--ease); }
.loading__meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--dim); }
.loading__meta b { font-family: var(--mono); color: var(--muted); font-weight: 500; }

/* Ответ */
.answer { padding: clamp(22px, 4vw, 44px); }
.answer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 12px;
  border-radius: 99px;
  font-size: 12.5px; font-weight: 700;
  background: var(--card-3); color: var(--muted);
  white-space: nowrap;
}
.badge svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.badge--ok { background: rgba(85, 219, 156, .12); color: var(--green); }
.badge--warn { background: rgba(255, 215, 49, .12); color: var(--yellow); }
.badge--bad { background: rgba(255, 122, 122, .12); color: var(--red); }
.badge--lang { font-weight: 800; letter-spacing: .06em; }
.badge--time { font-family: var(--mono); font-weight: 500; }
.badge--demo { background: transparent; border: 1px dashed var(--line-2); color: var(--dim); }
.badge--ok.is-verified { animation: shine 2.4s var(--ease) .6s both; background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); background-size: 250% 100%; background-repeat: no-repeat; background-color: rgba(85, 219, 156, .12); }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }

.answer__q { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--muted); }
.answer__text {
  margin: 0;
  font-size: clamp(22px, 2.9vw, 36px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.01em;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.answer__text .num { color: var(--green); font-variant-numeric: tabular-nums; }
.answer__text--long { font-size: clamp(19px, 2.1vw, 26px); line-height: 1.35; }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(77, 162, 255, .08);
  border: 1px solid rgba(77, 162, 255, .22);
  font-size: 14px; color: var(--blue-2);
}
.notice b { color: #fff; }
.notice svg { width: 18px; height: 18px; fill: var(--blue); flex: none; margin-top: 1px; }

/* no_data */
.nodata { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.nodata__icon { width: 72px; height: 72px; border-radius: 24px; background: rgba(255, 215, 49, .12); display: grid; place-items: center; }
.nodata__icon svg { width: 36px; height: 36px; stroke: var(--yellow); fill: none; stroke-width: 2.2; stroke-linecap: round; }
.nodata__title { margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; line-height: 1.1; }
.nodata__answer { margin: 0 0 16px; color: #d4d4d8; font-size: 17px; }
.nodata__reason { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); font-size: 15px; }
.nodata__reason span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.nodata__note { margin: 0; font-size: 14px; color: var(--muted); max-width: 560px; }

/* Демо без ответа */
.miss__title { margin: 0 0 10px; font-size: clamp(24px, 3vw, 36px); font-weight: 800; line-height: 1.15; }
.miss__text { margin: 0 0 22px; color: var(--muted); max-width: 620px; }
.miss__h { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.miss__list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }

/* График */
.chart { margin-top: 28px; padding: 20px 20px 12px; border-radius: var(--r-m); background: var(--card-2); border: 1px solid var(--line); }
.chart__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.chart__title { margin: 0; font-size: 14px; font-weight: 800; }
.chart__sub { font-size: 12px; color: var(--dim); }
.chart__box { position: relative; height: clamp(220px, 32vw, 320px); }

/* Доказательства */
.evidence { border-top: 1px solid var(--line); }
.evidence__sum {
  list-style: none;
  display: flex; align-items: center; gap: 16px;
  padding: 20px clamp(22px, 4vw, 44px);
  cursor: pointer;
  transition: background .3s var(--ease);
}
.evidence__sum::-webkit-details-marker { display: none; }
.evidence__sum:hover { background: rgba(255, 255, 255, .025); }
.evidence__ico { width: 42px; height: 42px; flex: none; border-radius: 14px; background: var(--violet); display: grid; place-items: center; }
.evidence__ico svg { width: 22px; height: 22px; fill: #1c1024; }
.evidence__t { display: block; font-size: 17px; font-weight: 800; }
.evidence__c { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.evidence__chev { margin-left: auto; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--card-3); display: grid; place-items: center; transition: transform .5s var(--ease), background .3s; }
.evidence__chev svg { width: 18px; height: 18px; fill: var(--text); }
.evidence[open] .evidence__chev { transform: rotate(180deg); background: var(--text); }
.evidence[open] .evidence__chev svg { fill: #0a0a0b; }
.evidence__body { padding: 4px clamp(22px, 4vw, 44px) clamp(22px, 4vw, 40px); display: grid; gap: 14px; }
.evidence__body.is-anim { animation: evIn .6s var(--ease) both; }
@keyframes evIn { from { opacity: 0; transform: translateY(-8px); } }

.ev-block { border-radius: var(--r-m); background: var(--card-2); border: 1px solid var(--line); padding: 18px; min-width: 0; }
.ev-block__h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; font-weight: 800; }
.ev-block__n { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--card-3); color: var(--muted); flex: none; }
.ev-block__tag { margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.tag--llm { background: rgba(233, 204, 255, .14); color: var(--violet); }
.tag--code { background: rgba(85, 219, 156, .12); color: var(--green); }
.tag--search { background: rgba(77, 162, 255, .14); color: var(--blue); }
.tag--db { background: rgba(255, 215, 49, .12); color: var(--yellow); }
.tag--io { background: var(--card-3); color: var(--muted); }
.ev-block__sub { margin: -6px 0 14px 34px; font-size: 13px; color: var(--dim); }

.kv { display: flex; flex-wrap: wrap; gap: 8px; }
.kv__i { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 12px; border-radius: 10px; background: var(--card-3); font-size: 13px; }
.kv__k { color: var(--dim); font-weight: 600; }
.kv__v { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.check-line { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(85, 219, 156, .07); font-size: 14px; }
.check-line--bad { background: rgba(255, 215, 49, .08); }
.check-line svg { width: 18px; height: 18px; flex: none; fill: var(--green); margin-top: 1px; }
.check-line--bad svg { fill: var(--yellow); }
.check-line q { color: #e4e4e7; quotes: "«" "»"; }

.ents { display: flex; flex-wrap: wrap; gap: 8px; }
.ent { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--card-3); font-size: 14px; font-weight: 600; max-width: 100%; }
.ent__type { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 99px; flex: none; }
.ent__type--product { background: var(--green); color: #07140d; }
.ent__type--region { background: var(--blue); color: #061321; }
.ent__type--company { background: var(--yellow); color: #1a1500; }
.ent__type--broker { background: var(--violet); color: #1c1024; }
.ent__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ent__filter { display: block; margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--dim); overflow-wrap: anywhere; }

.code { position: relative; border-radius: 14px; background: #0c0c0e; border: 1px solid var(--line); }
.code pre { margin: 0; padding: 18px 18px 18px 18px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.65; color: #d4d4d8; tab-size: 2; scrollbar-width: thin; }
.code__copy {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border-radius: 99px;
  background: var(--card-3);
  font-size: 12px; font-weight: 700; color: var(--muted);
  transition: background .25s, color .25s, transform .3s var(--ease);
}
.code__copy svg { width: 14px; height: 14px; fill: currentColor; }
.code__copy:hover { background: #2c2c33; color: var(--text); }
.code__copy:active { transform: scale(.95); }
.code__copy.is-done { background: var(--green); color: #07140d; }
.code .k { color: #c9a7ff; font-weight: 600; }
.code .f { color: var(--blue); }
.code .s { color: var(--green-2); }
.code .n { color: var(--yellow); }
.code .o { color: var(--dim); }
.code .c { color: var(--dim); font-style: italic; }
.code pre { padding-right: 120px; }

.tbl-wrap { border-radius: 14px; border: 1px solid var(--line); overflow: auto; max-height: 380px; scrollbar-width: thin; background: #0c0c0e; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th { position: sticky; top: 0; z-index: 1; background: var(--card-3); text-align: left; padding: 10px 14px; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, .035); }
.tbl .is-num { text-align: right; font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text); }
.tbl th.is-num { text-align: right; }
.tbl .is-null { color: var(--dim); font-style: italic; }
.tbl-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--dim); }

.issues { margin: 10px 0 0; padding-left: 20px; font-size: 14px; color: #e4e4e7; }

/* ---------- HOW ---------- */
.how { padding: clamp(80px, 11vw, 160px) 0; background: var(--bg-2); border-radius: var(--r-xl) var(--r-xl) 0 0; position: relative; }
.how .h-display em { color: var(--violet); }
.pipeline { list-style: none; margin: 0 0 clamp(48px, 6vw, 80px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step {
  position: relative;
  padding: 24px;
  border-radius: var(--r-l);
  background: var(--card);
  border: 1px solid var(--line);
  min-height: 210px;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
  overflow: hidden;
}
.step:hover { transform: translateY(-4px); border-color: var(--line-2); }
.step::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .06), transparent 40%);
  opacity: 0; transition: opacity .4s;
}
.step:hover::before { opacity: 1; }
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.step__n { font-family: var(--font-display); font-weight: 900; font-size: 46px; line-height: .8; color: var(--text); }
.step__t { margin: 0 0 8px; font-size: 19px; font-weight: 800; line-height: 1.2; }
.step__d { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.step__exit { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--yellow); }
.step__exit::before { content: ""; width: 14px; height: 2px; background: currentColor; border-radius: 2px; }
.step::after {
  content: ""; position: absolute; right: -1px; top: 50%; width: 0; height: 0;
}
.step--llm .step__bar { background: var(--violet); }
.step--code .step__bar { background: var(--green); }
.step--search .step__bar { background: var(--blue); }
.step--db .step__bar { background: var(--yellow); }
.step--io .step__bar { background: var(--text); }
.step__bar { position: absolute; left: 0; top: 0; height: 3px; width: 0; transition: width 1.2s var(--ease); transition-delay: calc(var(--d, 0ms) + 300ms); }
.step.is-in .step__bar { width: 100%; }
.step__arrow { position: absolute; right: 18px; bottom: 18px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--card-3); opacity: .7; }
.step__arrow svg { width: 14px; height: 14px; fill: var(--muted); }
.step:last-child .step__arrow { display: none; }
.step--final { background: var(--green); border-color: transparent; color: #07140d; }
.step--final .step__d { color: #0c2a1b; }
.step--final .step__n { color: rgba(7, 20, 13, .16); -webkit-text-stroke: 0; }
.step--final.is-in .step__n { color: rgba(7, 20, 13, .3); }
.step--final .ev-block__tag { background: rgba(7, 20, 13, .12); color: #07140d; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); color: #0a0a0b; min-height: 280px; display: flex; flex-direction: column; transition: transform .6s var(--ease); }
.stat:hover { transform: translateY(-6px) rotate(-.6deg); }
.stat--yellow { background: var(--yellow); }
.stat--green { background: var(--green); }
.stat--violet { background: var(--violet); }
.stat__num { font-family: var(--font-display); font-weight: 900; font-size: clamp(88px, 10vw, 148px); line-height: .82; letter-spacing: -.02em; display: flex; align-items: baseline; gap: .06em; }
.stat__num small { font-size: .45em; }
.stat__label { margin: auto 0 8px; padding-top: 24px; font-size: clamp(18px, 1.8vw, 22px); font-weight: 800; line-height: 1.2; }
.stat__sub { margin: 0; font-size: 14px; font-weight: 600; opacity: .7; }

/* ---------- DATA ---------- */
.data { padding: clamp(80px, 11vw, 160px) 0; background: var(--bg-2); }
.fake-pill { margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 99px; background: rgba(251, 73, 3, .12); color: #ffb08f; font-size: 14px; font-weight: 700; }
.fake-pill span:first-child { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font-weight: 900; font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; overflow: hidden;
  padding: 26px;
  border-radius: var(--r-l);
  background: var(--card);
  border: 1px solid var(--line);
  min-height: 200px;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), border-color .4s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--line-2); }
[data-glow]::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(85, 219, 156, .12), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
[data-glow]:hover::before { opacity: 1; }
.tile--wide { grid-column: span 4; min-height: 260px; display: grid; grid-template-columns: 1fr 1.1fr; grid-template-rows: auto auto 1fr; column-gap: 32px; }
.tile--wide .tile__num { font-size: clamp(76px, 11vw, 170px); }
.tile--wide .tile__bars { grid-column: 2; grid-row: 1 / span 3; }
.tile__num { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(52px, 5.4vw, 80px); line-height: .9; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tile__label { margin: 10px 0 0; font-size: 18px; font-weight: 800; }
.tile__sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.tile__bars { display: flex; align-items: flex-end; gap: 6px; height: 100%; min-height: 140px; }
.tile__bars i { font-style: normal; flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--green), rgba(85, 219, 156, .15)); transform: scaleY(0); transform-origin: bottom; transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 60ms + 200ms); position: relative; }
.tile__bars i span { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.tile__bars i b { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--dim); }
.tile.is-in .tile__bars i { transform: scaleY(1); }
.tile__bars-wrap { padding-bottom: 24px; }

.traps__title { margin: clamp(56px, 7vw, 96px) 0 20px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; }
.traps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.trap { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 18px; border-radius: var(--r-m); border: 1px solid var(--line); background: rgba(255, 255, 255, .015); transition: background .3s, border-color .3s; }
.trap:hover { background: var(--card); border-color: var(--line-2); }
.trap__n { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--card-3); font-weight: 800; font-size: 14px; color: var(--green); }
.trap__t { margin: 0 0 4px; font-weight: 800; font-size: 15px; }
.trap__d { margin: 0; font-size: 13.5px; color: var(--muted); }
.trap__d code { font-family: var(--mono); font-size: 12px; background: var(--card-3); padding: 1px 6px; border-radius: 6px; color: #e4e4e7; }

/* ---------- CTA BAND ---------- */
.band { padding: clamp(40px, 6vw, 80px) 0; overflow: hidden; background: var(--bg); }
.band__tilt { transform: rotate(-3deg); padding: 24px 0; }
.band__row { display: flex; width: max-content; gap: 14px; animation: band 60s linear infinite; }
.band__row:hover { animation-play-state: paused; }
.band__item {
  flex: none;
  padding: .12em .42em .04em;
  border-radius: 24px;
  font-family: var(--font-display); font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(48px, 8vw, 120px); line-height: 1;
  transition: transform .5s var(--ease);
}
.band__item:nth-child(4n+1) { background: var(--yellow); color: #1a1500; }
.band__item:nth-child(4n+2) { background: var(--card-2); color: var(--text); border: 1px solid var(--line-2); }
.band__item:nth-child(4n+3) { background: var(--green); color: #07140d; }
.band__item:nth-child(4n+4) { background: var(--violet); color: #1c1024; }
.band__item:hover { transform: rotate(2deg) scale(1.03); }
@keyframes band { to { transform: translateX(-50%); } }

/* ---------- FOOTER ---------- */
.footer { padding: clamp(56px, 7vw, 96px) 0 40px; border-top: 1px solid var(--line); background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand { margin: 0 0 8px; font-family: var(--font-display); font-weight: 900; font-size: clamp(56px, 7vw, 96px); line-height: .85; }
.footer__brand b { color: var(--green); }
.footer__muted { margin: 0; color: var(--muted); font-size: 14px; }
.footer__h { margin: 6px 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: #d4d4d8; }
.footer__legal { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* ---------- DRAWER ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .4s var(--ease) both; }
.drawer__panel {
  position: absolute; top: 12px; right: 12px; bottom: 12px;
  width: min(560px, calc(100% - 24px));
  display: flex; flex-direction: column;
  padding: 24px;
  border-radius: var(--r-l);
  background: var(--card);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
  animation: slideIn .6s var(--ease) both;
}
.drawer.is-closing .drawer__panel { animation: slideOut .4s var(--ease) both; }
.drawer.is-closing .drawer__backdrop { animation: fade .4s var(--ease) reverse both; }
@keyframes fade { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(105%); } }
@keyframes slideOut { to { transform: translateX(105%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer__head h3 { margin: 0; font-size: 22px; font-weight: 800; }
.drawer__sub { margin: 6px 0 18px; font-size: 14px; color: var(--muted); }
.drawer__tools { display: grid; gap: 10px; margin-bottom: 14px; }
.drawer__search { height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card-2); outline: 0; font-size: 15px; transition: border-color .25s; }
.drawer__search:focus { border-color: var(--green); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { height: 34px; padding: 0 14px; border-radius: 99px; background: var(--card-3); font-size: 13px; font-weight: 700; color: var(--muted); transition: background .25s, color .25s; }
.seg button[aria-pressed="true"] { background: var(--text); color: #0a0a0b; }
.drawer__list { list-style: none; margin: 0 -8px; padding: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.drawer__item { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; padding: 12px; border-radius: 12px; text-align: left; font-size: 14.5px; font-weight: 600; line-height: 1.35; transition: background .2s; }
.drawer__item:hover { background: rgba(255, 255, 255, .05); }
.drawer__item small { grid-column: 2; font-size: 12px; font-weight: 600; color: var(--dim); }
.drawer__item small.is-nd { color: var(--yellow); }

/* ---------- TOAST ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, calc(100% + 48px)); opacity: 0; padding: 12px 18px; border-radius: 99px; background: var(--text); color: #0a0a0b; font-size: 14px; font-weight: 700; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); transition: transform .5s var(--ease), opacity .3s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ==========================================================================
   Адаптивность
   ========================================================================== */
@media (min-height: 960px) and (min-width: 721px) { .hero__scroll { display: block; } }
@media (max-width: 1100px) {
  .tokens .token--sql, .tokens .token--db { display: none; }
  .ws-grid { grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .ws-grid { grid-template-columns: 1fr; }
  .history { position: static; max-height: none; }
  .history__list { max-height: 360px; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide { grid-column: span 2; grid-template-columns: 1fr; }
  .tile--wide .tile__bars { grid-column: 1; grid-row: auto; min-height: 120px; margin: 36px 0 22px; }
  .traps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .tokens { display: none; }
  .hero { padding-top: calc(var(--ticker-h) + var(--nav-h) + 40px); padding-bottom: 80px; min-height: auto; }
  .hero__title { font-size: clamp(48px, 17vw, 120px); }
  .hero__line--accent { font-size: .6em; }
  .hero__scroll { display: none; }
  .askbox { flex-wrap: wrap; padding: 8px 8px 8px 16px; border-radius: 22px; }
  .askbox__icon { display: none; }
  .askbox textarea { flex-basis: 100%; padding: 12px 4px 6px; min-height: 76px; }
  .btn--send { width: 100%; }
  .btn--send .btn__face { width: 100%; justify-content: space-between; }
  .askbox__sep, .askbox__hint span:first-child { display: none; }
  .examples { justify-content: flex-start; }
  .examples__label { width: 100%; }
  .chip { font-size: 13.5px; }
  .empty { grid-template-columns: 1fr; }
  .empty__art { width: 88px; height: 88px; border-radius: 26px; transform: scale(.85); transform-origin: left; }
  .nodata { grid-template-columns: 1fr; gap: 16px; }
  .nodata__icon { width: 56px; height: 56px; border-radius: 18px; }
  .card { border-radius: var(--r-l); }
  .stage { grid-template-columns: 36px 1fr; padding: 12px; }
  .stage__icon { width: 36px; height: 36px; }
  .stage__time { display: none; }
  .code pre { padding-right: 18px; padding-top: 52px; }
  .answer { padding: 20px 18px; }
  .evidence__sum { padding: 18px; gap: 12px; }
  .evidence__body { padding: 0 12px 16px; }
  .ev-block { padding: 14px; border-radius: 16px; }
  .ev-block__sub { margin-left: 0; }
  .chart { padding: 14px 10px 8px; }
  .chart__head { padding: 0 6px; }
  .chart__sub { display: none; }
  .notice { font-size: 13px; }
  .pipeline { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step__arrow { transform: rotate(90deg); }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 18px; min-height: 150px; border-radius: var(--r-m); }
  .tile--wide { padding: 22px; }
  .tile__num { font-size: clamp(36px, 11vw, 56px); }
  .tile__label { font-size: 15px; }
  .tile__sub { font-size: 12.5px; }
  .traps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .mode-pill:not(.mode-pill--sm) span { display: none; }
  .mode-pill:not(.mode-pill--sm) { padding: 9px; }
  .nav { left: 12px; right: 12px; top: calc(var(--ticker-h) + 10px); }
  .nav__logo { padding-right: 12px; }
  .nav__mark { width: 36px; height: 36px; }
  .lang button, .lang__thumb { width: 42px; height: 32px; }
  .lang[data-current="uz"] .lang__thumb { transform: translateX(42px); }
  .drawer__panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 86vh; animation-name: slideUp; }
  .drawer.is-closing .drawer__panel { animation-name: slideDown; }
}
@keyframes slideUp { from { transform: translateY(105%); } }
@keyframes slideDown { to { transform: translateY(105%); } }
@media (max-width: 400px) {
  :root { --nav-h: 56px; }
  .nav__word { font-size: 19px; }
  .tile__num { font-size: 34px; }
  .answer__meta .badge { height: 28px; font-size: 12px; padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .hero__line .ch { transform: none; }
}
