/* ===================================================================
   TESSERA — дизайн-система
   Токены, лейаут и все общие компоненты сайта в одном файле.
   =================================================================== */

/* ---------- 1. ТОКЕНЫ ---------- */
:root{
  color-scheme: dark;

  --bg:#08090C;
  --bg-raised:#0C0E13;
  --surface:#11141B;
  --surface-2:#171B24;
  --line:#232936;
  --line-soft:#1A1E28;

  --fg:#EEF1F6;
  --fg-mid:#98A2B6;
  --fg-dim:#616B7E;

  --accent:#C6F84E;
  --accent-text:#C6F84E;
  --accent-ink:#0B1300;
  --accent-soft:rgba(198,248,78,.10);
  --accent-line:rgba(198,248,78,.26);
  --accent-mark:#C6F84E;   /* тонкие линии и метки: на светлой теме лайм не читается */

  --violet:#9B8CFF;
  --violet-soft:rgba(155,140,255,.10);
  --violet-line:rgba(155,140,255,.28);

  --ok:#6EE7A8;
  --warn:#FFC24B;
  --err:#FF6F6F;
  --cyan:#5AD4FF;

  --shadow-lg:0 40px 90px -36px rgba(0,0,0,.82);
  --shadow-md:0 18px 44px -22px rgba(0,0,0,.65);
  --inner-hi:inset 0 1px 0 rgba(255,255,255,.045);

  --r-sm:8px; --r-md:12px; --r-lg:18px; --r-xl:26px;
  --wrap:1200px;

  --f-display:'Sora','Segoe UI',system-ui,sans-serif;
  --f-body:'Manrope','Segoe UI',system-ui,sans-serif;
  --f-mono:'IBM Plex Mono','Cascadia Mono',ui-monospace,monospace;
}
html[data-theme="light"]{
  color-scheme: light;
  --bg:#FAFAF7;
  --bg-raised:#FFFFFF;
  --surface:#F4F5F1;
  --surface-2:#ECEEE8;
  --line:#E1E3DC;
  --line-soft:#EDEFE9;

  --fg:#12141A;
  --fg-mid:#565E6D;
  --fg-dim:#7E8695;

  --accent:#C6F84E;
  --accent-text:#4B7300;
  --accent-ink:#111A00;
  --accent-soft:rgba(140,200,0,.13);
  --accent-line:rgba(120,175,0,.36);
  --accent-mark:#5E8F00;

  --violet:#6C5CE0;
  --violet-soft:rgba(108,92,224,.09);
  --violet-line:rgba(108,92,224,.26);

  --ok:#12996A; --warn:#A87000; --err:#D33A3A; --cyan:#0C7EA8;

  --shadow-lg:0 34px 70px -34px rgba(24,30,16,.26);
  --shadow-md:0 14px 34px -18px rgba(24,30,16,.20);
  --inner-hi:inset 0 1px 0 rgba(255,255,255,.9);
}

/* ---------- 2. БАЗА ---------- */
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:96px; -webkit-text-size-adjust:100%; }
body{
  background:var(--bg); color:var(--fg);
  font-family:var(--f-body); font-size:16px; line-height:1.6;
  font-weight:400; letter-spacing:-0.005em;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden;
  transition:background .35s ease, color .35s ease;
}
a{ color:inherit; text-decoration:none; }
img,svg{ display:block; max-width:100%; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
input,select,textarea{ font:inherit; color:inherit; }
:focus-visible{ outline:2px solid var(--accent-text); outline-offset:3px; border-radius:6px; }
::selection{ background:var(--accent); color:var(--accent-ink); }
/* точечная сетка на фоне всего документа */
body::before{
  content:""; position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0);
  background-size:24px 24px; opacity:.55;
  mask-image:radial-gradient(ellipse 75% 55% at 50% 0%, #000 8%, transparent 68%);
  -webkit-mask-image:radial-gradient(ellipse 75% 55% at 50% 0%, #000 8%, transparent 68%);
}
/* лёгкое зерно поверх — убирает «плоскость» тёмного фона */
body::after{
  content:""; position:fixed; inset:0; z-index:1; pointer-events:none; opacity:.032;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="light"] body::after{ opacity:.05; }

/* ---------- 3. ЛЕЙАУТ ---------- */
.wrap{ width:100%; max-width:var(--wrap); margin:0 auto; padding:0 28px; position:relative; z-index:2; }
.wrap-narrow{ max-width:820px; }
main{ position:relative; z-index:2; display:block; }
section{ padding:104px 0; position:relative; }
.sec-tight{ padding:64px 0; }
.sec-line{ border-top:1px solid var(--line); }
.grid{ display:grid; gap:24px; }
.g2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.g3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.g4{ grid-template-columns:repeat(4,minmax(0,1fr)); }
.row{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }

/* ---------- 4. ТИПОГРАФИКА ---------- */
h1,h2,h3,h4{ font-family:var(--f-display); font-weight:600; letter-spacing:-0.028em; line-height:1.08; }
h1{ font-size:clamp(2.5rem,5.4vw,4.15rem); }
h2{ font-size:clamp(1.85rem,3.2vw,2.6rem); line-height:1.12; }
h3{ font-size:1.14rem; letter-spacing:-0.02em; line-height:1.3; }
h4{ font-size:.98rem; letter-spacing:-0.01em; }
.grad{
  background:linear-gradient(96deg,var(--accent-text) 0%,var(--violet) 52%,var(--accent-text) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.mono{ font-family:var(--f-mono); }
.lead{ color:var(--fg-mid); font-size:1.1rem; line-height:1.62; }
.muted{ color:var(--fg-mid); }
.dim{ color:var(--fg-dim); }
.tiny{ font-size:.78rem; }
.sec-head{ max-width:640px; margin-bottom:52px; }
.sec-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.sec-head h2{ margin-bottom:16px; }
.sec-head p{ color:var(--fg-mid); font-size:1.04rem; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-family:var(--f-mono);
  font-size:.74rem; letter-spacing:.1em; text-transform:uppercase;
  color:var(--accent-text); margin-bottom:16px;
}
.eyebrow::before{ content:""; width:18px; height:1px; background:var(--accent-line); }
/* ---------- 5. КНОПКИ, ПИЛЮЛИ ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--f-body); font-size:.9rem; font-weight:600; letter-spacing:-0.01em;
  padding:11px 18px; border-radius:var(--r-sm); border:1px solid var(--line);
  background:var(--bg-raised); color:var(--fg); white-space:nowrap;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.btn:hover{ border-color:var(--fg-dim); transform:translateY(-1px); }
.btn:active{ transform:translateY(0); }
.btn-accent{
  background:var(--accent); border-color:var(--accent); color:var(--accent-ink);
  box-shadow:0 8px 24px -10px rgba(198,248,78,.5);
}
.btn-accent:hover{ background:#D6FF6E; border-color:#D6FF6E; box-shadow:0 12px 30px -10px rgba(198,248,78,.6); }
.btn-violet{ background:var(--violet); border-color:var(--violet); color:#0B0A16; }
html[data-theme="light"] .btn-violet{ color:#fff; }
.btn-ghost{ background:transparent; }
.btn-lg{ padding:14px 24px; font-size:.96rem; border-radius:10px; }
.btn-sm{ padding:7px 13px; font-size:.82rem; }
.btn-block{ width:100%; }
.btn[aria-disabled="true"]{ opacity:.45; pointer-events:none; }
.btn .arw{ transition:transform .18s ease; }
.btn:hover .arw{ transform:translateX(3px); }

.pill{
  display:inline-flex; align-items:center; gap:9px; font-family:var(--f-mono);
  font-size:.75rem; padding:6px 13px; border-radius:100px;
  border:1px solid var(--accent-line); background:var(--accent-soft); color:var(--accent-text);
}
.pill-violet{ border-color:var(--violet-line); background:var(--violet-soft); color:var(--violet); }
.pill .dot{ width:6px; height:6px; border-radius:50%; background:currentColor; animation:blip 2.2s ease-in-out infinite; }
@keyframes blip{ 0%,100%{opacity:1} 50%{opacity:.2} }

.tag{
  display:inline-flex; align-items:center; gap:6px; font-family:var(--f-mono); font-size:.7rem;
  font-weight:500; padding:3px 8px; border-radius:5px; letter-spacing:.03em;
  background:var(--surface-2); color:var(--fg-mid); border:1px solid var(--line-soft);
}
.tag-ok{ background:rgba(110,231,168,.12); color:var(--ok); border-color:rgba(110,231,168,.25); }
.tag-warn{ background:rgba(255,194,75,.12); color:var(--warn); border-color:rgba(255,194,75,.25); }
.tag-err{ background:rgba(255,111,111,.12); color:var(--err); border-color:rgba(255,111,111,.25); }
.tag-get{ background:var(--accent-soft); color:var(--accent-text); border-color:var(--accent-line); }
.tag-post{ background:var(--violet-soft); color:var(--violet); border-color:var(--violet-line); }

.kbd{
  font-family:var(--f-mono); font-size:.68rem; padding:2px 6px; border-radius:4px;
  border:1px solid var(--line); background:var(--surface-2); color:var(--fg-mid); line-height:1.5;
}
/* ---------- 6. ШАПКА ---------- */
.site-header{
  position:sticky; top:0; z-index:60;
  background:color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter:blur(14px) saturate(150%);
  border-bottom:1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)){ .site-header{ background:var(--bg); } }
.header-row{ display:flex; align-items:center; justify-content:space-between; gap:20px; height:64px; }
.brand{ display:flex; align-items:center; gap:11px; flex-shrink:0; }
.brand-name{
  font-family:var(--f-display); font-weight:700; font-size:1.06rem;
  letter-spacing:-0.04em; text-transform:lowercase;
}
.brand-mark{ display:grid; grid-template-columns:repeat(2,1fr); gap:2.5px; width:19px; height:19px; flex-shrink:0; }
.brand-mark i{ border-radius:2.5px; background:var(--fg-dim); transition:background .3s ease, transform .3s ease; }
.brand-mark i:nth-child(1){ background:var(--accent); box-shadow:0 0 10px var(--accent-line); }
.brand-mark i:nth-child(4){ background:var(--violet); }
.brand:hover .brand-mark i{ animation:tileflip 1.1s ease-in-out; }
.brand:hover .brand-mark i:nth-child(2){ animation-delay:.08s; }
.brand:hover .brand-mark i:nth-child(3){ animation-delay:.16s; }
.brand:hover .brand-mark i:nth-child(4){ animation-delay:.24s; }
@keyframes tileflip{ 50%{ transform:scale(.55) rotate(45deg); background:var(--accent); } }

.main-nav{ display:flex; gap:4px; margin-left:8px; }
.main-nav a{
  font-size:.9rem; font-weight:500; color:var(--fg-mid);
  padding:7px 12px; border-radius:7px; transition:color .15s ease, background .15s ease;
}
.main-nav a:hover{ color:var(--fg); background:var(--surface); }
.main-nav a.active{ color:var(--fg); background:var(--surface); box-shadow:var(--inner-hi); }
.main-nav a.active::after{
  content:""; display:block; height:2px; margin:5px auto -8px; width:16px;
  border-radius:2px; background:var(--accent-mark);
}
/* текущая страница в мобильном меню и в подвале */
.nav-sheet a.sheet-link.active, .foot-col a.active{ color:var(--accent-text); }
.header-actions{ display:flex; align-items:center; gap:9px; flex-shrink:0; }
.icon-btn{
  display:inline-flex; align-items:center; gap:7px; height:34px; padding:0 10px;
  border:1px solid var(--line); border-radius:8px; background:var(--bg-raised);
  color:var(--fg-mid); transition:color .15s ease, border-color .15s ease;
}
.icon-btn:hover{ color:var(--fg); border-color:var(--fg-dim); }
.icon-btn svg{ width:15px; height:15px; }
.scroll-progress{
  position:absolute; left:0; bottom:-1px; height:2px; width:0;
  background:linear-gradient(90deg,var(--accent),var(--violet)); transition:width .1s linear;
}
/* бургер + мобильное меню */
.burger{ display:none; width:34px; height:34px; border:1px solid var(--line); border-radius:8px; position:relative; }
.burger i{
  position:absolute; left:9px; width:14px; height:1.5px; background:var(--fg); border-radius:2px;
  transition:transform .22s ease, opacity .18s ease;
}
.burger i:nth-child(1){ top:12px; } .burger i:nth-child(2){ top:16.5px; } .burger i:nth-child(3){ top:21px; }
.burger[aria-expanded="true"] i:nth-child(1){ transform:translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2){ opacity:0; }
.burger[aria-expanded="true"] i:nth-child(3){ transform:translateY(-4.5px) rotate(-45deg); }
.nav-sheet{
  position:fixed; inset:64px 0 0; z-index:55; background:var(--bg);
  border-top:1px solid var(--line); padding:26px 28px 40px; overflow-y:auto;
  animation:sheetIn .22s ease;
}
@keyframes sheetIn{ from{ opacity:0; transform:translateY(-8px); } }
.nav-sheet[hidden]{ display:none; }
.nav-sheet a.sheet-link{
  display:flex; align-items:center; justify-content:space-between;
  padding:15px 2px; border-bottom:1px solid var(--line-soft);
  font-family:var(--f-display); font-size:1.28rem; font-weight:600; letter-spacing:-0.02em;
}
.nav-sheet a.sheet-link span{ font-family:var(--f-mono); font-size:.7rem; color:var(--fg-dim); font-weight:400; }
.nav-sheet .sheet-foot{ margin-top:26px; display:flex; gap:10px; flex-wrap:wrap; }

@media (max-width:1080px){
  .main-nav{ display:none; }
  .burger{ display:block; }
  .icon-btn.cmdk-btn{ display:none; }
}
@media (min-width:1081px){ .nav-sheet{ display:none !important; } }

/* ---------- 7. КАРТОЧКИ И ПАНЕЛИ ---------- */
.card{
  background:var(--bg-raised); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:26px; box-shadow:var(--inner-hi);
  transition:border-color .2s ease, transform .2s ease, background .2s ease;
  position:relative; overflow:hidden;
}
.card-hover:hover{ border-color:var(--fg-dim); transform:translateY(-3px); }
.card h3{ margin-bottom:9px; }
.card p{ color:var(--fg-mid); font-size:.93rem; }
.card-glow::before{
  content:""; position:absolute; top:-60%; right:-30%; width:260px; height:260px; border-radius:50%;
  background:var(--accent); filter:blur(90px); opacity:.14; pointer-events:none;
}
.panel{
  background:var(--bg-raised); border:1px solid var(--line); border-radius:var(--r-lg);
  overflow:hidden; box-shadow:var(--shadow-md);
}
.panel-head{
  display:flex; align-items:center; gap:10px; padding:12px 16px;
  border-bottom:1px solid var(--line); background:var(--surface);
  font-family:var(--f-mono); font-size:.76rem; color:var(--fg-mid);
}
.panel-body{ padding:20px; }
.ibox{
  width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  background:var(--accent-soft); border:1px solid var(--accent-line); color:var(--accent-text);
  margin-bottom:18px; flex-shrink:0;
}
.ibox svg{ width:18px; height:18px; }
.ibox-violet{ background:var(--violet-soft); border-color:var(--violet-line); color:var(--violet); }

/* бенто-сетка */
.bento{ display:grid; grid-template-columns:repeat(6,1fr); gap:18px; }
.b-3{ grid-column:span 3; } .b-2{ grid-column:span 2; } .b-4{ grid-column:span 4; } .b-6{ grid-column:span 6; }
@media (max-width:900px){ .bento{ grid-template-columns:repeat(2,1fr); } .b-3,.b-2,.b-4,.b-6{ grid-column:span 2; } }

/* ---------- 8. КОД, ТАБЫ, КОПИРОВАНИЕ ---------- */
.code{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
  font-family:var(--f-mono); font-size:.82rem; line-height:1.72; overflow:hidden; position:relative;
}
.code pre{ margin:0; padding:18px 20px; overflow-x:auto; }
.code pre code{ display:block; white-space:pre; }
.code-bar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:9px 12px 9px 16px; border-bottom:1px solid var(--line); background:var(--surface-2);
  font-size:.74rem; color:var(--fg-dim);
}
.tabs{ display:flex; gap:2px; overflow-x:auto; scrollbar-width:none; }
.tabs::-webkit-scrollbar{ display:none; }
.tab{
  font-family:var(--f-mono); font-size:.75rem; padding:5px 11px; border-radius:6px;
  color:var(--fg-dim); white-space:nowrap; transition:color .15s ease, background .15s ease;
}
.tab:hover{ color:var(--fg-mid); }
.tab[aria-selected="true"]{ color:var(--accent-ink); background:var(--accent); font-weight:600; }
.copy-btn{
  display:inline-flex; align-items:center; gap:6px; font-family:var(--f-mono); font-size:.7rem;
  padding:4px 9px; border-radius:6px; border:1px solid var(--line); color:var(--fg-dim);
  background:var(--bg-raised); transition:color .15s, border-color .15s;
}
.copy-btn:hover{ color:var(--fg); border-color:var(--fg-dim); }
.copy-btn.done{ color:var(--accent-text); border-color:var(--accent-line); }

/* подсветка синтаксиса */
.tk-key{ color:var(--cyan); } .tk-str{ color:var(--accent-text); } .tk-num{ color:var(--violet); }
.tk-bool{ color:var(--warn); } .tk-null{ color:var(--fg-dim); } .tk-punc{ color:var(--fg-dim); }
.tk-kw{ color:var(--violet); font-weight:500; } .tk-fn{ color:var(--cyan); }
.tk-com{ color:var(--fg-dim); font-style:italic; } .tk-prop{ color:var(--fg); }
.tk-prompt{ color:var(--accent-text); } .tk-flag{ color:var(--fg-mid); }
/* ---------- 9. ТАБЛИЦЫ ---------- */
.table-wrap{ border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; background:var(--bg-raised); }
.table-scroll{ overflow-x:auto; }
table.tbl{ width:100%; border-collapse:collapse; font-size:.88rem; min-width:560px; }
table.tbl th{
  text-align:left; font-family:var(--f-mono); font-size:.7rem; font-weight:500;
  letter-spacing:.08em; text-transform:uppercase; color:var(--fg-dim);
  padding:13px 18px; border-bottom:1px solid var(--line); background:var(--surface); white-space:nowrap;
}
table.tbl th.sortable{ cursor:pointer; user-select:none; transition:color .15s ease; }
table.tbl th.sortable:hover{ color:var(--fg); }
table.tbl th .sarrow{ opacity:.3; margin-left:5px; }
table.tbl th[aria-sort] .sarrow{ opacity:1; color:var(--accent-text); }
table.tbl td{ padding:13px 18px; border-bottom:1px solid var(--line-soft); color:var(--fg-mid); vertical-align:middle; }
table.tbl tbody tr:last-child td{ border-bottom:0; }
table.tbl tbody tr{ transition:background .14s ease; }
table.tbl tbody tr:hover{ background:var(--surface); }
table.tbl td strong,table.tbl td b{ color:var(--fg); font-weight:600; }
table.tbl td.num,table.tbl th.num{ text-align:right; font-family:var(--f-mono); }
table.tbl col.hi,table.tbl .hi-col{ background:var(--accent-soft); }

/* ---------- 10. БЕГУЩАЯ СТРОКА, МЕТРИКИ ---------- */
.marquee{
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  overflow:hidden; padding:15px 0; position:relative; z-index:2; background:var(--bg-raised);
}
.marquee::before,.marquee::after{
  content:""; position:absolute; top:0; bottom:0; width:120px; z-index:2; pointer-events:none;
}
.marquee::before{ left:0; background:linear-gradient(90deg,var(--bg-raised),transparent); }
.marquee::after{ right:0; background:linear-gradient(270deg,var(--bg-raised),transparent); }
.marquee-track{ display:flex; gap:0; width:max-content; animation:slide 42s linear infinite; }
.marquee:hover .marquee-track{ animation-play-state:paused; }
@keyframes slide{ to{ transform:translateX(-50%); } }
.marquee-item{
  display:flex; align-items:center; gap:9px; padding:0 22px;
  font-family:var(--f-mono); font-size:.76rem; color:var(--fg-dim); white-space:nowrap;
}
.marquee-item b{ color:var(--fg-mid); font-weight:500; }
.marquee-item i{ width:5px; height:5px; border-radius:50%; background:var(--accent); flex-shrink:0; }

.stat-band{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; }
.stat{ background:var(--bg-raised); padding:28px 24px; }
.stat b{ display:block; font-family:var(--f-display); font-size:clamp(1.7rem,3vw,2.35rem); font-weight:600; letter-spacing:-0.04em; line-height:1; margin-bottom:8px; }
.stat > span{ font-family:var(--f-mono); font-size:.74rem; color:var(--fg-dim); }
@media (max-width:820px){ .stat-band{ grid-template-columns:repeat(2,1fr); } }
/* ---------- 11. АККОРДЕОН, ВЫНОСКИ ---------- */
details.acc{
  border:1px solid var(--line); border-radius:var(--r-md); background:var(--bg-raised);
  margin-bottom:10px; overflow:hidden; transition:border-color .18s ease;
}
details.acc[open]{ border-color:var(--accent-line); }
details.acc summary{
  display:flex; align-items:center; gap:14px; padding:17px 20px; cursor:pointer;
  font-family:var(--f-display); font-weight:600; font-size:1rem; letter-spacing:-0.015em;
  list-style:none; transition:background .15s ease;
}
details.acc summary::-webkit-details-marker{ display:none; }
details.acc summary:hover{ background:var(--surface); }
details.acc summary .chev{ margin-left:auto; color:var(--fg-dim); transition:transform .22s ease; flex-shrink:0; }
details.acc[open] summary .chev{ transform:rotate(180deg); color:var(--accent-text); }
details.acc summary .num{ font-family:var(--f-mono); font-size:.72rem; color:var(--accent-text); font-weight:400; }
details.acc .acc-body{ padding:0 20px 20px 20px; color:var(--fg-mid); font-size:.93rem; }
details.acc .acc-body > *+*{ margin-top:12px; }

.callout{
  border:1px solid var(--line); border-left:3px solid var(--accent); border-radius:var(--r-md);
  background:var(--surface); padding:16px 18px; font-size:.9rem; color:var(--fg-mid); margin:20px 0;
}
.callout b{ color:var(--fg); display:block; margin-bottom:4px; font-family:var(--f-display); font-size:.92rem; }
.callout-warn{ border-left-color:var(--warn); }
.callout-violet{ border-left-color:var(--violet); }

/* ---------- 12. ФОРМЫ ---------- */
.field{ display:block; margin-bottom:16px; }
.field > label,.lbl{
  display:block; font-family:var(--f-mono); font-size:.72rem; letter-spacing:.06em;
  text-transform:uppercase; color:var(--fg-dim); margin-bottom:7px;
}
.inp,.sel,.ta{
  width:100%; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-sm);
  padding:10px 13px; font-size:.9rem; color:var(--fg);
  transition:border-color .16s ease, background .16s ease;
}
.inp::placeholder,.ta::placeholder{ color:var(--fg-dim); }
.inp:focus,.sel:focus,.ta:focus{ outline:none; border-color:var(--accent-line); background:var(--bg-raised); }
.ta{ font-family:var(--f-mono); font-size:.8rem; line-height:1.7; resize:vertical; min-height:88px; }
.sel{ appearance:none; cursor:pointer; padding-right:34px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398A2B6' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center;
}
.inline-form{ display:flex; gap:9px; }
.inline-form .inp{ flex:1; min-width:0; }
/* ползунок */
input[type="range"]{
  -webkit-appearance:none; appearance:none; width:100%; height:22px; background:transparent; cursor:pointer;
}
input[type="range"]::-webkit-slider-runnable-track{
  height:4px; border-radius:3px;
  background:linear-gradient(90deg,var(--accent) var(--fill,50%),var(--line) var(--fill,50%));
}
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none; width:16px; height:16px; border-radius:50%; margin-top:-6px;
  background:var(--bg-raised); border:2px solid var(--accent); box-shadow:0 0 0 4px var(--accent-soft);
  transition:transform .14s ease;
}
input[type="range"]:hover::-webkit-slider-thumb{ transform:scale(1.12); }
input[type="range"]::-moz-range-track{ height:4px; border-radius:3px; background:var(--line); }
input[type="range"]::-moz-range-progress{ height:4px; border-radius:3px; background:var(--accent); }
input[type="range"]::-moz-range-thumb{
  width:14px; height:14px; border-radius:50%; background:var(--bg-raised); border:2px solid var(--accent);
}

/* переключатель-сегмент */
.seg{ display:inline-flex; padding:3px; gap:2px; border:1px solid var(--line); border-radius:9px; background:var(--surface); }
.seg button{
  font-family:var(--f-mono); font-size:.76rem; padding:6px 14px; border-radius:6px;
  color:var(--fg-dim); transition:all .16s ease; white-space:nowrap;
}
.seg button[aria-pressed="true"]{ background:var(--bg-raised); color:var(--fg); box-shadow:var(--shadow-md); }
.seg button .save{ color:var(--accent-text); }

/* ---------- 13. ТОСТЫ ---------- */
.toast-host{ position:fixed; z-index:200; right:22px; bottom:22px; display:flex; flex-direction:column; gap:9px; align-items:flex-end; pointer-events:none; }
.toast{
  display:flex; align-items:center; gap:10px; max-width:340px;
  background:var(--bg-raised); border:1px solid var(--line); border-left:3px solid var(--accent);
  border-radius:10px; padding:11px 15px; font-size:.86rem; color:var(--fg);
  box-shadow:var(--shadow-lg); animation:toastIn .26s cubic-bezier(.2,.9,.3,1);
}
.toast.out{ animation:toastOut .22s ease forwards; }
.toast svg{ width:15px; height:15px; color:var(--accent-text); flex-shrink:0; }
@keyframes toastIn{ from{ opacity:0; transform:translateY(12px) scale(.96); } }
@keyframes toastOut{ to{ opacity:0; transform:translateX(24px); } }
@media (max-width:560px){ .toast-host{ left:16px; right:16px; align-items:stretch; } .toast{ max-width:none; } }
/* ---------- 14. КОМАНДНАЯ ПАНЕЛЬ (⌘K) ---------- */
.cmdk{ position:fixed; inset:0; z-index:180; display:flex; align-items:flex-start; justify-content:center; padding:12vh 20px 20px; }
.cmdk[hidden]{ display:none; }
.cmdk-veil{ position:absolute; inset:0; background:rgba(4,5,8,.7); backdrop-filter:blur(6px); animation:fadeIn .18s ease; }
html[data-theme="light"] .cmdk-veil{ background:rgba(30,35,25,.35); }
@keyframes fadeIn{ from{ opacity:0; } }
.cmdk-box{
  position:relative; width:100%; max-width:600px; background:var(--bg-raised);
  border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow-lg); overflow:hidden;
  animation:cmdkIn .2s cubic-bezier(.2,.9,.3,1);
}
@keyframes cmdkIn{ from{ opacity:0; transform:translateY(-10px) scale(.98); } }
.cmdk-search{ display:flex; align-items:center; gap:11px; padding:15px 18px; border-bottom:1px solid var(--line); }
.cmdk-search svg{ width:16px; height:16px; color:var(--fg-dim); flex-shrink:0; }
.cmdk-search input{ flex:1; background:none; border:0; outline:none; font-size:.98rem; color:var(--fg); min-width:0; }
.cmdk-search input::placeholder{ color:var(--fg-dim); }
.cmdk-list{ max-height:min(56vh,420px); overflow-y:auto; padding:8px; }
.cmdk-group{ font-family:var(--f-mono); font-size:.66rem; letter-spacing:.1em; text-transform:uppercase; color:var(--fg-dim); padding:10px 10px 6px; }
.cmdk-item{
  display:flex; align-items:center; gap:12px; width:100%; text-align:left;
  padding:9px 11px; border-radius:9px; color:var(--fg-mid); font-size:.9rem;
}
.cmdk-item .ci-ico{ width:26px; height:26px; border-radius:7px; background:var(--surface-2); border:1px solid var(--line-soft); display:flex; align-items:center; justify-content:center; color:var(--fg-dim); flex-shrink:0; }
.cmdk-item .ci-ico svg{ width:13px; height:13px; }
.cmdk-item .ci-sub{ font-family:var(--f-mono); font-size:.7rem; color:var(--fg-dim); margin-left:auto; }
.cmdk-item[data-active="true"]{ background:var(--accent-soft); color:var(--fg); }
.cmdk-item[data-active="true"] .ci-ico{ background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
.cmdk-empty{ padding:34px 16px; text-align:center; color:var(--fg-dim); font-size:.88rem; }
.cmdk-foot{
  display:flex; align-items:center; gap:16px; padding:10px 16px; border-top:1px solid var(--line);
  background:var(--surface); font-family:var(--f-mono); font-size:.68rem; color:var(--fg-dim);
}
.cmdk-foot span{ display:flex; align-items:center; gap:5px; }

/* скроллбары */
*::-webkit-scrollbar{ width:9px; height:9px; }
*::-webkit-scrollbar-track{ background:transparent; }
*::-webkit-scrollbar-thumb{ background:var(--line); border-radius:6px; border:2px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover{ background:var(--fg-dim); }
/* ---------- 15. ПОДВАЛ ---------- */
.site-footer{ border-top:1px solid var(--line); padding:64px 0 34px; position:relative; z-index:2; margin-top:20px; }
.foot-top{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:36px; margin-bottom:48px; }
.foot-col h4{ font-family:var(--f-mono); font-size:.7rem; letter-spacing:.1em; text-transform:uppercase; color:var(--fg-dim); font-weight:500; margin-bottom:16px; }
.foot-col ul{ list-style:none; display:flex; flex-direction:column; gap:10px; }
.foot-col a{ font-size:.9rem; color:var(--fg-mid); transition:color .15s ease; }
.foot-col a:hover{ color:var(--fg); }
.foot-brand p{ color:var(--fg-mid); font-size:.9rem; max-width:290px; margin:14px 0 20px; }
.foot-bottom{
  display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap;
  padding-top:26px; border-top:1px solid var(--line-soft);
  font-family:var(--f-mono); font-size:.74rem; color:var(--fg-dim);
}
.foot-bottom .fb-links{ display:flex; gap:18px; flex-wrap:wrap; }
.foot-status{ display:inline-flex; align-items:center; gap:8px; }
.foot-status i{ width:7px; height:7px; border-radius:50%; background:var(--ok); box-shadow:0 0 8px var(--ok); }
.wordmark{
  font-family:var(--f-display); font-weight:700; letter-spacing:-0.06em; line-height:.8;
  font-size:clamp(3.4rem,15vw,11rem); color:transparent;
  -webkit-text-stroke:1px var(--line); margin:8px 0 -14px; user-select:none; text-transform:lowercase;
}
@media (max-width:880px){ .foot-top{ grid-template-columns:1fr 1fr; gap:32px; } }
@media (max-width:520px){ .foot-top{ grid-template-columns:1fr; } }

/* ---------- 15b. ДЕКОР: СВЕЧЕНИЕ И МОЗАИКА ---------- */
.decor{ position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0; }
.glow{ position:absolute; border-radius:50%; filter:blur(110px); opacity:.4; }
.glow-a{ width:520px; height:420px; background:var(--accent); top:-190px; left:-120px; opacity:.16; }
.glow-b{ width:460px; height:460px; background:var(--violet); top:-140px; right:-140px; opacity:.14; }
html[data-theme="light"] .glow-a{ opacity:.4; } html[data-theme="light"] .glow-b{ opacity:.22; }

.tile-grid{ display:grid; grid-template-columns:repeat(var(--cols,16),1fr); gap:3px; }
.tile-grid i.tile{
  aspect-ratio:1; border-radius:2px; background:var(--line);
  transition:background .5s ease, box-shadow .5s ease;
}
.tile-grid i.tile.lit{ background:var(--accent); animation:tileGlow 4.6s ease-in-out infinite; }
.tile-grid i.tile.lit.alt{ background:var(--violet); }
@keyframes tileGlow{
  0%,100%{ opacity:.22; box-shadow:none; }
  45%{ opacity:1; box-shadow:0 0 9px currentColor; }
}
.tile-grid i.tile.on{ background:var(--accent); opacity:var(--o,1); box-shadow:0 0 6px var(--accent-line); }

/* соединительная линия для пошаговых блоков */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; position:relative; }
.steps::before{
  content:""; position:absolute; top:19px; left:6%; right:6%; height:1px;
  background:linear-gradient(90deg,var(--line),var(--accent-line),var(--line));
}
.step{ position:relative; }
.step .snum{
  width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-family:var(--f-mono); font-size:.82rem; font-weight:600;
  background:var(--bg); border:1px solid var(--accent-line); color:var(--accent-text);
  margin-bottom:20px; position:relative; z-index:2;
}
.step h3{ margin-bottom:8px; }
.step p{ color:var(--fg-mid); font-size:.93rem; }
@media (max-width:800px){ .steps{ grid-template-columns:1fr; gap:30px; } .steps::before{ display:none; } }

/* мини-диаграмма из полос */
.bars{ display:flex; flex-direction:column; gap:11px; margin-top:18px; }
.bar-row{ display:grid; grid-template-columns:112px 1fr auto; align-items:center; gap:12px; font-family:var(--f-mono); font-size:.74rem; color:var(--fg-mid); }
.bar-track{ height:10px; border-radius:5px; background:var(--surface-2); box-shadow:inset 0 0 0 1px var(--line-soft); overflow:hidden; }
.bar-fill{ height:100%; border-radius:5px; width:0; background:var(--fg-dim); transition:width 1.1s cubic-bezier(.2,.8,.3,1); }
.rv.in .bar-fill, .bar-fill.grow{ width:var(--w,10%); }
.bar-row.hi .bar-fill{ background:linear-gradient(90deg,var(--accent),#E9FFA8); }
.bar-row.hi{ color:var(--fg); }

/* ---------- 15c. ГЕРОЙ И ОБЩИЕ БЛОКИ СТРАНИЦ ---------- */
.hero{ position:relative; padding:96px 0 76px; }
.hero-grid{ display:grid; grid-template-columns:1.04fr .96fr; gap:56px; align-items:center; }
.hero h1{ margin-bottom:22px; }
.hero .lead{ max-width:500px; margin-bottom:32px; }
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:34px; }
.hero-meta{ display:flex; gap:30px; flex-wrap:wrap; font-family:var(--f-mono); font-size:.76rem; color:var(--fg-dim); }
.hero-meta b{ display:block; color:var(--fg); font-size:1.28rem; font-family:var(--f-display); letter-spacing:-0.03em; margin-bottom:2px; }
@media (max-width:1000px){ .hero-grid{ grid-template-columns:1fr; gap:44px; } .hero{ padding-top:64px; } }

.page-hero{ padding:64px 0 48px; position:relative; }
.page-hero h1{ font-size:clamp(2.1rem,4.4vw,3.2rem); margin-bottom:18px; }
.page-hero .lead{ max-width:620px; }
.crumbs{ display:flex; align-items:center; gap:8px; font-family:var(--f-mono); font-size:.72rem; color:var(--fg-dim); margin-bottom:18px; }
.crumbs a:hover{ color:var(--accent-text); }

/* консоль деплоя */
.console{ background:var(--bg-raised); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-lg); }
.console-bar{ display:flex; align-items:center; gap:7px; padding:11px 15px; border-bottom:1px solid var(--line); background:var(--surface); }
.console-bar i{ width:9px; height:9px; border-radius:50%; background:var(--line); }
.console-bar i:nth-child(1){ background:#FF6F6F55; } .console-bar i:nth-child(2){ background:#FFC24B55; } .console-bar i:nth-child(3){ background:#6EE7A855; }
.console-bar span{ margin-left:6px; font-family:var(--f-mono); font-size:.72rem; color:var(--fg-dim); }
.console-body{ padding:18px 18px 14px; font-family:var(--f-mono); font-size:.79rem; line-height:1.85; min-height:172px; }
.cline{ display:flex; gap:9px; color:var(--fg-mid); white-space:pre-wrap; word-break:break-word; }
.cline .ok{ color:var(--accent-text); } .cline .vt{ color:var(--violet); } .cline .dm{ color:var(--fg-dim); }
.cline b{ color:var(--fg); font-weight:500; }
.caret{ display:inline-block; width:7px; height:1.05em; background:var(--accent); vertical-align:text-bottom; animation:caret 1s step-start infinite; }
@keyframes caret{ 50%{ opacity:0; } }
.console-foot{ border-top:1px solid var(--line); padding:13px 16px; display:flex; align-items:center; justify-content:space-between; gap:14px; font-family:var(--f-mono); font-size:.7rem; color:var(--fg-dim); }
.console .tile-grid{ --cols:26; padding:14px 16px 0; }

/* цитаты */
.quote{ background:var(--bg-raised); border:1px solid var(--line); border-radius:var(--r-lg); padding:26px; box-shadow:var(--inner-hi); }
.quote p{ font-size:1rem; color:var(--fg); line-height:1.62; margin-bottom:20px; }
.quote p::before{ content:"«"; color:var(--accent-text); } .quote p::after{ content:"»"; color:var(--accent-text); }
.quote footer{ display:flex; align-items:center; gap:12px; }
.qav{ width:36px; height:36px; border-radius:10px; background:var(--surface-2); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-family:var(--f-display); font-weight:600; font-size:.86rem; color:var(--accent-text); flex-shrink:0; }
.quote footer b{ display:block; font-size:.88rem; } .quote footer span{ font-family:var(--f-mono); font-size:.72rem; color:var(--fg-dim); }

/* большой CTA */
.cta-block{ position:relative; overflow:hidden; border:1px solid var(--line); border-radius:var(--r-xl); background:var(--bg-raised); padding:56px 44px; text-align:center; }
.cta-block h2{ margin-bottom:16px; } .cta-block p{ color:var(--fg-mid); max-width:520px; margin:0 auto 28px; }
.cta-block .hero-actions{ justify-content:center; margin-bottom:0; }
@media (max-width:640px){ .cta-block{ padding:40px 22px; } }

/* ---------- 15d. СХЕМА ПУТИ ЗАПРОСА (platform.html) ---------- */
.flow{ display:grid; grid-template-columns:1fr 38px 1fr 38px 1fr 38px 1fr 38px 1fr; align-items:stretch; }
.fnode{
  background:var(--bg-raised); border:1px solid var(--line); border-radius:var(--r-md);
  padding:17px 15px; box-shadow:var(--inner-hi); position:relative;
}
.fnode.hi{ border-color:var(--accent-line); }
.fnode.hi::before{ content:""; position:absolute; inset:0; border-radius:inherit; background:linear-gradient(180deg,var(--accent-soft),transparent 65%); pointer-events:none; }
.fico{
  width:30px; height:30px; border-radius:8px; display:flex; align-items:center; justify-content:center;
  background:var(--surface-2); border:1px solid var(--line); color:var(--fg-mid); margin-bottom:14px;
}
.fico svg{ width:15px; height:15px; }
.fnode.hi .fico{ background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
.fnode h4{ margin-bottom:5px; font-size:.92rem; position:relative; }
.fnode p{ font-size:.78rem; color:var(--fg-mid); line-height:1.5; position:relative; }
.fms{ display:inline-block; margin-top:12px; font-family:var(--f-mono); font-size:.72rem; color:var(--accent-text); position:relative; }
.fconn{ position:relative; }
.fconn::before{
  content:""; position:absolute; left:2px; right:2px; top:50%; height:1px;
  background:repeating-linear-gradient(90deg,var(--line) 0 4px,transparent 4px 9px);
}
.fconn i{
  position:absolute; top:50%; margin-top:-3px; width:6px; height:6px; border-radius:50%;
  background:var(--accent); box-shadow:0 0 9px var(--accent); animation:travelX 2.8s linear infinite;
}
@keyframes travelX{ 0%{ left:-3px; opacity:0 } 15%{opacity:1} 85%{opacity:1} 100%{ left:calc(100% - 3px); opacity:0 } }
.flow > .fconn:nth-child(4) i{ animation-delay:.35s; }
.flow > .fconn:nth-child(6) i{ animation-delay:.7s; }
.flow > .fconn:nth-child(8) i{ animation-delay:1.05s; }
@media (max-width:980px){
  .flow{ grid-template-columns:1fr; }
  .fconn{ height:30px; }
  .fconn::before{ left:50%; right:auto; top:3px; bottom:3px; height:auto; width:1px;
    background:repeating-linear-gradient(180deg,var(--line) 0 4px,transparent 4px 9px); }
  .fconn i{ left:50%; margin-left:-3px; top:auto; animation-name:travelY; }
  @keyframes travelY{ 0%{ top:0; opacity:0 } 15%{opacity:1} 85%{opacity:1} 100%{ top:calc(100% - 6px); opacity:0 } }
}

/* ---------- 15e. ПЕСОЧНИЦА ---------- */
.pg{ display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:18px; align-items:start; }
.pg-col{ display:flex; flex-direction:column; gap:18px; min-width:0; }
.pane{
  border:1px solid var(--line); border-radius:var(--r-lg); background:var(--bg-raised);
  overflow:hidden; min-width:0;
}
.pane-head{
  display:flex; align-items:center; gap:10px; padding:11px 14px; border-bottom:1px solid var(--line);
  background:var(--surface); font-family:var(--f-mono); font-size:.72rem; letter-spacing:.06em;
  text-transform:uppercase; color:var(--fg-dim); flex-wrap:wrap;
}
.pane-head .sp{ flex:1 1 auto; }
.pane-head b{ color:var(--fg-mid); font-weight:600; }
.pane-body{ padding:14px; }
.pane-body.tight{ padding:0; }

/* редактор */
.ed{ position:relative; display:grid; grid-template-columns:44px minmax(0,1fr); background:var(--bg); }
.ed-gutter{
  padding:14px 0; text-align:right; user-select:none; border-right:1px solid var(--line-soft);
  font-family:var(--f-mono); font-size:.78rem; line-height:1.65; color:var(--fg-dim); opacity:.55;
  overflow:hidden;
}
.ed-gutter i{ display:block; padding-right:10px; font-style:normal; }
.ed-wrap{ position:relative; min-width:0; }
.ed-hl, .ed-ta{
  margin:0; padding:14px 16px; font-family:var(--f-mono); font-size:.78rem; line-height:1.65;
  white-space:pre; tab-size:2; border:0; overflow:auto;
}
.ed-hl{ position:absolute; inset:0; pointer-events:none; color:var(--fg-mid); overflow:hidden; }
.ed-ta{
  position:relative; display:block; width:100%; height:var(--ed-h,392px); resize:vertical;
  background:transparent; color:transparent; caret-color:var(--accent); outline:none;
}
.ed-ta::selection{ background:rgba(198,248,78,.20); }
.ed-ta:focus-visible{ outline:none; box-shadow:inset 0 0 0 1px var(--accent-line); }
.ed-hint{
  display:flex; gap:14px; flex-wrap:wrap; padding:9px 14px; border-top:1px solid var(--line-soft);
  font-family:var(--f-mono); font-size:.68rem; color:var(--fg-dim); background:var(--surface);
}
.ed-hint span{ display:inline-flex; align-items:center; gap:6px; }

/* набор пресетов */
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  appearance:none; cursor:pointer; font:inherit; font-family:var(--f-mono); font-size:.72rem;
  padding:6px 12px; border-radius:100px; border:1px solid var(--line);
  background:var(--surface); color:var(--fg-mid); transition:.18s;
}
.chip:hover{ border-color:var(--accent-line); color:var(--fg); }
.chip[aria-pressed="true"]{ background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
/* конструктор запроса */
.rq{ display:grid; gap:12px; }
.rq-row{ display:grid; grid-template-columns:104px minmax(0,1fr); gap:10px; }
.rq-row.solo{ grid-template-columns:minmax(0,1fr); }
.lbl{
  font-family:var(--f-mono); font-size:.68rem; letter-spacing:.06em; text-transform:uppercase;
  color:var(--fg-dim); margin-bottom:6px; display:block;
}
.rq .inp, .rq .sel, .rq .ta{
  font-family:var(--f-mono); font-size:.78rem; background:var(--bg); padding:9px 11px; border-radius:var(--r-sm);
}
.rq .inp:focus, .rq .sel:focus, .rq .ta:focus{ box-shadow:0 0 0 3px var(--accent-soft); }
.rq .ta{ min-height:74px; line-height:1.6; white-space:pre; }
.rq .sel{ padding-right:30px; background-position:right 10px center; }
.hdr-list{ display:grid; gap:8px; }
.hdr-row{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) 32px; gap:8px; align-items:center; }
.xbtn{
  appearance:none; cursor:pointer; width:32px; height:32px; border-radius:var(--r-sm); border:1px solid var(--line);
  background:var(--surface); color:var(--fg-dim); display:grid; place-items:center; transition:.18s; padding:0;
}
.xbtn:hover{ color:var(--err); border-color:var(--err); }
.xbtn svg{ width:13px; height:13px; }

/* результат */
.res-head{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.badge{
  display:inline-flex; align-items:center; gap:7px; font-family:var(--f-mono); font-size:.72rem;
  padding:4px 10px; border-radius:100px; border:1px solid var(--line); background:var(--surface); color:var(--fg-mid);
}
.badge.st-ok{ color:var(--ok); border-color:rgba(110,231,168,.34); background:rgba(110,231,168,.09); }
.badge.st-err{ color:var(--err); border-color:rgba(255,111,111,.34); background:rgba(255,111,111,.09); }
.badge.st-warn{ color:var(--warn); border-color:rgba(255,194,75,.34); background:rgba(255,194,75,.09); }
.badge .dt{ width:6px; height:6px; border-radius:50%; background:currentColor; }
.out{
  margin:0; padding:14px 16px; background:var(--bg); border-top:1px solid var(--line);
  font-family:var(--f-mono); font-size:.78rem; line-height:1.65; white-space:pre-wrap; word-break:break-word;
  overflow:auto; max-height:340px; min-height:150px; color:var(--fg-mid);
}
.out:empty::before{ content:'— пусто —'; color:var(--fg-dim); }
.log-line{ display:block; padding:1px 0; }
.log-line .lv{ color:var(--fg-dim); }
.log-line.l-warn{ color:var(--warn); } .log-line.l-error{ color:var(--err); }
.log-line.l-info{ color:var(--cyan); }
/* тайминги */
.tm{ display:grid; gap:9px; }
.tm-row{ display:grid; grid-template-columns:132px minmax(0,1fr) 62px; gap:10px; align-items:center;
  font-family:var(--f-mono); font-size:.74rem; }
.tm-row .nm{ color:var(--fg-mid); }
.tm-row .vl{ text-align:right; color:var(--fg); }
.tm-bar{ height:8px; border-radius:100px; background:var(--surface-2); overflow:hidden;
  box-shadow:inset 0 0 0 1px var(--line-soft); }
.tm-bar i{ display:block; height:100%; border-radius:100px; background:var(--fg-dim);
  transition:width .5s cubic-bezier(.2,.7,.3,1); }
.tm-row.t-net .tm-bar i{ background:var(--cyan); }
.tm-row.t-cpu .tm-bar i{ background:var(--accent); }
.tm-row.t-kv  .tm-bar i{ background:var(--violet); }
.tm-row.t-tot .tm-bar i{ background:var(--fg-mid); }

/* карта точек в песочнице */
.pop-pick{ display:flex; flex-wrap:wrap; gap:7px; }
.pop-pick button{
  appearance:none; cursor:pointer; font:inherit; font-family:var(--f-mono); font-size:.7rem;
  padding:5px 10px; border-radius:var(--r-sm); border:1px solid var(--line);
  background:var(--surface); color:var(--fg-dim); transition:.18s;
}
.pop-pick button:hover{ color:var(--fg); border-color:var(--accent-line); }
.pop-pick button[aria-pressed="true"]{
  background:var(--accent-soft); border-color:var(--accent-line); color:var(--accent-text);
}
.run-row{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.spin{
  width:13px; height:13px; border-radius:50%; border:2px solid var(--accent-line);
  border-top-color:var(--accent); animation:spin .7s linear infinite; display:inline-block;
}
@keyframes spin{ to{ transform:rotate(360deg) } }
@media (max-width:1080px){ .pg{ grid-template-columns:minmax(0,1fr); } }

/* ---------- 15f. ДОКУМЕНТАЦИЯ ---------- */
.doc{ display:grid; grid-template-columns:236px minmax(0,1fr); gap:44px; align-items:start; }
.doc-side{ position:sticky; top:92px; max-height:calc(100vh - 120px); overflow:auto; padding-right:6px; }
.doc-search{ position:relative; margin-bottom:16px; }
.doc-search .inp{ padding-left:32px; font-size:.76rem; }
.doc-search svg{ position:absolute; left:11px; top:50%; margin-top:-6.5px; width:13px; height:13px; color:var(--fg-dim); }
.doc-nav{ list-style:none; margin:0; padding:0; display:grid; gap:1px; }
.doc-nav .gr{
  font-family:var(--f-mono); font-size:.66rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--fg-dim); padding:14px 0 6px;
}
.doc-nav a{
  display:block; padding:6px 10px; border-radius:var(--r-sm); font-size:.86rem;
  color:var(--fg-mid); border-left:2px solid transparent; transition:.18s;
}
.doc-nav a:hover{ color:var(--fg); background:var(--surface); }
.doc-nav a.cur{ color:var(--accent-text); background:var(--accent-soft); border-left-color:var(--accent); }
.doc-nav li.hide{ display:none; }
.doc-body{ min-width:0; max-width:840px; }
.doc-sec{ padding-bottom:56px; scroll-margin-top:96px; }
.doc-sec.hide{ display:none; }
.doc-sec h2{ font-size:clamp(1.5rem,2.4vw,2rem); margin:0 0 6px; }
.doc-sec h3{ font-size:1.05rem; margin:30px 0 10px; }
.doc-sec p{ color:var(--fg-mid); line-height:1.75; margin:0 0 12px; }
.doc-sec ul, .doc-sec ol{ color:var(--fg-mid); line-height:1.8; margin:0 0 14px; padding-left:22px; }
.doc-sec li::marker{ color:var(--fg-dim); }
.doc-sec .code{ margin:14px 0; }
.doc-empty{ display:none; padding:32px 0; color:var(--fg-dim); font-family:var(--f-mono); font-size:.8rem; }
.doc-empty.on{ display:block; }
.doc-sec .table-wrap{ margin:14px 0; }
.doc-sec .callout{ margin:18px 0; }
.doc-sec h2 + p{ margin-top:10px; }
.page-hero-tight{ padding:56px 0 28px; }
/* подчёркнутые ссылки внутри текста */
.doc-sec p a, .callout a, .page-hero .lead a{
  color:var(--accent-text); border-bottom:1px solid var(--accent-line); padding-bottom:1px;
  transition:border-color .15s ease;
}
.doc-sec p a:hover, .callout a:hover, .page-hero .lead a:hover{ border-bottom-color:var(--accent); }
@media (max-width:1000px){
  .doc{ grid-template-columns:minmax(0,1fr); gap:22px; }
  .doc-side{ position:static; max-height:none; }
  .doc-side .doc-nav{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .doc-nav .gr{ grid-column:1/-1; }
}
/* ---------- 15g. ТАРИФЫ ---------- */
.plans{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; align-items:start; }
.plan{
  position:relative; border:1px solid var(--line); border-radius:var(--r-xl); background:var(--bg-raised);
  padding:26px 24px 24px; display:flex; flex-direction:column; gap:16px; min-width:0;
}
.plan.hi{ border-color:var(--accent-line); background:linear-gradient(180deg,var(--accent-soft),transparent 42%),var(--bg-raised); }
.plan .tag{
  position:absolute; top:-11px; left:24px; font-family:var(--f-mono); font-size:.66rem;
  letter-spacing:.08em; text-transform:uppercase; padding:4px 11px; border-radius:100px;
  background:var(--accent); color:var(--accent-ink);
}
.plan h3{ font-size:1.15rem; margin:0; }
.plan .pd{ color:var(--fg-dim); font-size:.86rem; margin:-10px 0 0; line-height:1.6; }
.price{ display:flex; align-items:flex-end; gap:7px; font-family:var(--f-display); }
.price .amt{ font-size:2.5rem; font-weight:700; letter-spacing:-.03em; line-height:1; }
.price .per{ font-family:var(--f-mono); font-size:.76rem; color:var(--fg-dim); padding-bottom:5px; }
.price .old{ font-family:var(--f-mono); font-size:.8rem; color:var(--fg-dim); text-decoration:line-through; padding-bottom:6px; }
.plan ul{ list-style:none; margin:0; padding:0; display:grid; gap:10px; flex:1 1 auto; }
.plan li{ display:flex; gap:10px; font-size:.88rem; color:var(--fg-mid); line-height:1.55; }
.plan li svg{ width:14px; height:14px; flex-shrink:0; margin-top:3px; color:var(--accent-text); }
.plan li.no{ color:var(--fg-dim); }
.plan li.no svg{ color:var(--fg-dim); }

/* калькулятор */
.calc{ display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:20px; align-items:start; }
.calc-panel{ border:1px solid var(--line); border-radius:var(--r-lg); background:var(--bg-raised); padding:22px; }
.rng{ padding:14px 0; border-bottom:1px solid var(--line-soft); }
.rng:last-of-type{ border-bottom:0; }
.rng-top{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:8px; }
.rng-top .nm{ font-size:.88rem; color:var(--fg-mid); }
.rng-top .vl{ font-family:var(--f-mono); font-size:.9rem; color:var(--fg); font-weight:500; }
.rng-note{ font-family:var(--f-mono); font-size:.66rem; color:var(--fg-dim); margin-top:6px; }
.bill{ display:grid; gap:1px; }
.bill-row{ display:flex; justify-content:space-between; gap:14px; padding:11px 0; border-bottom:1px solid var(--line-soft); font-size:.86rem; }
.bill-row .nm{ color:var(--fg-mid); }
.bill-row .nm small{ display:block; font-family:var(--f-mono); font-size:.66rem; color:var(--fg-dim); margin-top:3px; }
.bill-row .vl{ font-family:var(--f-mono); color:var(--fg); white-space:nowrap; }
.bill-row.free .vl{ color:var(--ok); }
.bill-row.warn .vl{ color:var(--warn); }
.bill-total{ display:flex; justify-content:space-between; align-items:flex-end; gap:14px; padding-top:16px; }
.bill-total .nm{ font-size:.94rem; color:var(--fg-mid); }
.bill-total .vl{ font-family:var(--f-display); font-size:2rem; font-weight:700; letter-spacing:-.03em; line-height:1; }
.rec{
  margin-top:16px; padding:13px 15px; border-radius:var(--r-md); border:1px solid var(--accent-line);
  background:var(--accent-soft); font-size:.85rem; color:var(--fg-mid); line-height:1.6;
}
.rec b{ color:var(--accent-text); }

/* ползунки */
.rng input[type=range]{
  -webkit-appearance:none; appearance:none; width:100%; height:5px; margin:0; padding:0;
  border-radius:100px; background:var(--surface-2); outline:none; cursor:pointer;
  background-image:linear-gradient(var(--accent-mark),var(--accent-mark)); background-repeat:no-repeat;
  background-size:var(--fill,0%) 100%;
}
.rng input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none; width:16px; height:16px; border-radius:50%;
  background:var(--fg); border:3px solid var(--accent); box-shadow:0 0 0 4px rgba(198,248,78,.12);
  cursor:grab; transition:transform .12s ease;
}
.rng input[type=range]::-webkit-slider-thumb:active{ transform:scale(1.14); cursor:grabbing; }
.rng input[type=range]::-moz-range-thumb{
  width:12px; height:12px; border-radius:50%; background:var(--fg);
  border:3px solid var(--accent); cursor:grab;
}
.rng input[type=range]::-moz-range-progress{ height:5px; border-radius:100px; background:var(--accent-mark); }
.rng input[type=range]::-moz-range-track{ height:5px; border-radius:100px; background:var(--surface-2); }
.rng input[type=range]:focus-visible{ box-shadow:0 0 0 3px var(--accent-soft); }
.calc-panel > h3{ font-size:1.02rem; margin:0 0 4px; }
.calc-panel > .sub{ font-family:var(--f-mono); font-size:.7rem; color:var(--fg-dim); margin:0 0 10px; }
.calc-head{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:18px; }
@media (max-width:1000px){ .plans{ grid-template-columns:minmax(0,1fr); } .calc{ grid-template-columns:minmax(0,1fr); } }
/* ---------- 15h. СТАТУС ---------- */
.st-banner{
  display:flex; align-items:center; gap:18px; padding:22px 26px; border-radius:var(--r-xl);
  border:1px solid rgba(110,231,168,.3); background:linear-gradient(180deg,rgba(110,231,168,.08),transparent),var(--bg-raised);
  flex-wrap:wrap;
}
.st-banner .orb{ position:relative; width:14px; height:14px; border-radius:50%; background:var(--ok); flex-shrink:0; }
.st-banner .orb::after{
  content:''; position:absolute; inset:-6px; border-radius:50%; border:1px solid var(--ok);
  animation:orbPulse 2.4s ease-out infinite;
}
@keyframes orbPulse{ 0%{ transform:scale(.6); opacity:.9 } 100%{ transform:scale(1.5); opacity:0 } }
.st-banner h2{ font-size:1.32rem; margin:0; }
.st-banner p{ margin:4px 0 0; color:var(--fg-dim); font-size:.85rem; font-family:var(--f-mono); }
.st-banner .sp{ flex:1 1 auto; }
/* тот же баннер, но когда есть отклонения */
.st-banner.deg{ border-color:rgba(255,194,75,.32); background:linear-gradient(180deg,rgba(255,194,75,.08),transparent),var(--bg-raised); }
.st-banner.deg .orb{ background:var(--warn); }
.st-banner.deg .orb::after{ border-color:var(--warn); }

.svc{ display:grid; gap:0; }
.svc-row{ display:grid; grid-template-columns:minmax(140px,1.1fr) minmax(0,2.2fr) 78px; gap:18px;
  align-items:center; padding:16px 0; border-bottom:1px solid var(--line-soft); }
.svc-row:last-child{ border-bottom:0; }
.svc-row .nm{ font-size:.94rem; display:flex; align-items:center; gap:9px; }
.svc-row .nm i{ width:7px; height:7px; border-radius:50%; background:var(--ok); flex-shrink:0; font-style:normal; }
.svc-row .nm i.deg{ background:var(--warn); } .svc-row .nm i.down{ background:var(--err); }
.svc-row .up{ font-family:var(--f-mono); font-size:.84rem; text-align:right; color:var(--fg-mid); }
.strip{ display:flex; gap:2px; height:30px; align-items:stretch; min-width:0; }
.strip i{ flex:1 1 0; min-width:1px; border-radius:2px; background:var(--ok); opacity:.62; transition:.18s;
  position:relative; }
.strip i:hover{ opacity:1; transform:scaleY(1.14); }
.strip i.w{ background:var(--warn); opacity:.85; }
.strip i.d{ background:var(--err); opacity:.9; }
.strip i::after{
  content:attr(data-t); position:absolute; bottom:calc(100% + 8px); left:50%; transform:translateX(-50%);
  background:var(--surface-2); border:1px solid var(--line); color:var(--fg); padding:5px 9px;
  border-radius:6px; font-family:var(--f-mono); font-size:.66rem; white-space:nowrap;
  opacity:0; pointer-events:none; transition:.16s; z-index:5;
}
.strip i:hover::after{ opacity:1; }
.strip-legend{ display:flex; justify-content:space-between; font-family:var(--f-mono);
  font-size:.66rem; color:var(--fg-dim); margin-top:8px; }

/* график задержки */
.chart{ position:relative; }
.chart svg{ display:block; width:100%; height:210px; overflow:visible; }
.chart .gl{ stroke:var(--line-soft); stroke-width:1; }
.chart .ln{ fill:none; stroke:var(--accent-mark); stroke-width:2; stroke-linejoin:round; stroke-linecap:round; }
.chart .ln2{ stroke:var(--violet); stroke-dasharray:4 4; stroke-width:1.6; }
.chart .ar{ fill:url(#gA); }
.chart .yl{ font-family:var(--f-mono); font-size:9px; fill:var(--fg-dim); }
.legend{ display:flex; gap:18px; flex-wrap:wrap; font-family:var(--f-mono); font-size:.7rem; color:var(--fg-dim); }
.legend span{ display:inline-flex; align-items:center; gap:7px; }
.legend i{ width:14px; height:2px; border-radius:2px; background:var(--accent-mark); }
.legend i.v{ background:var(--violet); }

/* инциденты */
.inc{ display:grid; gap:0; }
.inc-item{ display:grid; grid-template-columns:118px minmax(0,1fr); gap:20px; padding:20px 0;
  border-bottom:1px solid var(--line-soft); }
.inc-item:last-child{ border-bottom:0; }
.inc-item .dt{ font-family:var(--f-mono); font-size:.74rem; color:var(--fg-dim); padding-top:3px; }
.inc-item h4{ font-size:1rem; margin:0 0 7px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.inc-item p{ margin:0 0 10px; color:var(--fg-mid); font-size:.88rem; line-height:1.7; }
.inc-steps{ list-style:none; margin:0; padding:0; display:grid; gap:7px; border-left:1px solid var(--line);
  padding-left:16px; }
.inc-steps li{ font-family:var(--f-mono); font-size:.74rem; color:var(--fg-dim); line-height:1.6; }
.inc-steps li b{ color:var(--fg-mid); font-weight:500; }
@media (max-width:760px){
  /* название и аптайм в одну строку, полоса за 90 дней — во вторую */
  .svc-row{ grid-template-columns:minmax(0,1fr) 78px; gap:10px 14px; }
  .svc-row .nm{ grid-area:1 / 1; }
  .svc-row .up{ grid-area:1 / 2; }
  .svc-row .strip{ grid-area:2 / 1 / 3 / -1; gap:1px; height:26px; }
  .inc-item{ grid-template-columns:minmax(0,1fr); gap:8px; }
}
/*__PG__*/

/* ---------- 16. ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ ---------- */
.rv{ opacity:0; transform:translateY(18px); transition:opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
.rv.in{ opacity:1; transform:none; }
.rv-d1{ transition-delay:.07s; } .rv-d2{ transition-delay:.14s; } .rv-d3{ transition-delay:.21s; } .rv-d4{ transition-delay:.28s; }

/* ---------- 17. УТИЛИТЫ ---------- */
.hr{ height:1px; background:var(--line); border:0; margin:0; }
.center{ text-align:center; }
.mt0{ margin-top:0 } .mt8{ margin-top:8px } .mt12{ margin-top:12px } .mt16{ margin-top:16px }
.mt24{ margin-top:24px } .mt32{ margin-top:32px } .mt48{ margin-top:48px }
.mb0{ margin-bottom:0 } .mb8{ margin-bottom:8px } .mb16{ margin-bottom:16px } .mb24{ margin-bottom:24px }
.nowrap{ white-space:nowrap; }
.w100{ width:100%; justify-content:center; }
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.stub-note{
  display:inline-flex; align-items:center; gap:8px; font-family:var(--f-mono); font-size:.7rem;
  color:var(--fg-dim); border:1px dashed var(--line); border-radius:100px; padding:5px 12px;
}
@media (max-width:900px){ .g4{ grid-template-columns:repeat(2,minmax(0,1fr)); } .g3{ grid-template-columns:1fr; } }
@media (max-width:700px){ .g2,.g4{ grid-template-columns:1fr; } section{ padding:72px 0; } .wrap{ padding:0 18px; } }
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  .rv{ opacity:1; transform:none; }
}

