@font-face { font-family: Onest; src: url(/fonts/onest-cyrillic-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; src: url(/fonts/onest-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-mono-cyrillic-wght-normal.woff2) format('woff2'); font-weight: 100 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2'); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+2500-257F, U+25A0-25FF, U+2713, U+FEFF, U+FFFD; }

:root {
  --bg: #0e0f11; --surface: #15171a; --raised: #1c1f23; --line: #272b30; --line-strong: #3b4047;
  --text: #e9e7e2; --muted: #9c9c95; --faint: #6d6f6a;
  --accent: #ffd60a; --accent-ink: #15130a; --accent-text: #ffd60a; --accent-soft: rgba(255, 214, 10, .1);
  --ok: #3ddc84; --warn: #ffb020; --bad: #ff5d5d;
  --code-bg: #090a0b; --code-text: #e4e2dc; --code-line: #22262a; --tile: #f3f1eb;
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, .75);
  --font: Onest, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}
[data-theme='light'] {
  --bg: #f5f4ef; --surface: #ffffff; --raised: #faf9f5; --line: #e1dfd6; --line-strong: #c6c3b7;
  --text: #17181a; --muted: #5f615c; --faint: #8b8d86;
  --accent-text: #6f5400; --accent-soft: rgba(255, 214, 10, .3);
  --ok: #0f8a45; --warn: #a86400; --bad: #cf3030;
  --code-bg: #17191c; --code-line: #2a2e33; --tile: #f3f1eb;
  --shadow: 0 30px 60px -36px rgba(40, 36, 20, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, dl, dd, pre, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.022em; line-height: 1.12; }
code, kbd, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { max-width: 1224px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.label { font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { font: 700 18px/1 var(--mono); letter-spacing: -.03em; display: inline-flex; align-items: center; gap: 3px; }
.brand i { width: 9px; height: 18px; background: var(--accent); animation: blink 1.15s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav { display: flex; gap: 2px; align-self: stretch; }
.nav a { display: flex; align-items: center; padding: 0 12px; font-size: 14.5px; color: var(--muted); position: relative; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav a[aria-current] { color: var(--text); }
.nav a[aria-current]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--accent); }
.top__side { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.kbtn { display: flex; align-items: center; gap: 9px; height: 36px; min-width: 232px; padding: 0 8px 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--faint); font-size: 14px; background: var(--surface); }
.kbtn:hover { border-color: var(--line-strong); color: var(--muted); }
.kbtn kbd { margin-left: auto; font-size: 11px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
[data-theme='dark'] .icon-btn .i-moon, [data-theme='light'] .icon-btn .i-sun { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: border-color .12s, background .12s; }
.btn:hover { border-color: var(--text); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn--accent:hover { background: #ffe24d; border-color: #ffe24d; }
.btn--small { height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn--plain { border-color: transparent; color: var(--muted); padding: 0 8px; }
.btn--plain:hover { color: var(--text); border-color: transparent; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--muted); white-space: nowrap; }
.more:hover { color: var(--accent-text); }
.more .i { width: 16px; height: 16px; transition: transform .15s; }
.more:hover .i { transform: translateX(3px); }

/* первый экран */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; align-items: center; padding: 76px 0 64px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--accent); }
.hero h1 { font-size: clamp(38px, 5.1vw, 66px); line-height: 1.02; letter-spacing: -.04em; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
[data-theme='light'] .hero h1 em { color: inherit; background: linear-gradient(transparent 60%, var(--accent) 60%, var(--accent) 92%, transparent 92%); }
.hero__lead { margin-top: 24px; max-width: 34em; font-size: 18.5px; line-height: 1.5; color: var(--muted); }
.find { display: flex; align-items: center; margin-top: 34px; height: 58px; padding: 0 7px 0 18px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; }
.find:focus-within { border-color: var(--accent); }
.find .i { color: var(--faint); width: 20px; height: 20px; }
.find input { flex: 1; min-width: 0; height: 100%; padding: 0 14px; background: none; border: 0; outline: 0; font-size: 17px; }
.find input::placeholder { color: var(--faint); }
.find .btn { height: 44px; }
.tries { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 14px; font-size: 14px; color: var(--faint); align-items: center; }
.tries a { padding: 3px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); }
.tries a:hover { color: var(--text); border-color: var(--line-strong); }

.term { background: var(--code-bg); border: 1px solid var(--code-line); border-radius: 12px; box-shadow: var(--shadow); color: var(--code-text); overflow: hidden; }
.term__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--code-line); font: 12px/1 var(--mono); color: #7d7f79; }
.term__bar b { width: 10px; height: 10px; border-radius: 50%; background: #2c3035; }
.term__bar span { margin-left: 8px; }
.term__bar button { margin-left: auto; color: #8f918a; display: inline-flex; gap: 6px; align-items: center; font: 12px/1 var(--mono); }
.term__bar button:hover { color: var(--accent); }
.term__bar .i { width: 14px; height: 14px; }
.term pre { padding: 18px 20px 22px; font-size: 13px; line-height: 1.75; overflow-x: auto; }
.term .p { color: var(--accent); }
.term .g { color: #3ddc84; }
.term .d { color: #74766f; }

/* выбор агента */
.agents .label { white-space: nowrap; }
.agents { display: flex; align-items: center; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.agents__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 7px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--muted); background: var(--surface); }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed='true'], .chip[aria-selected='true'] { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.chip .logo { --s: 22px; }
.agents__note { margin-left: auto; font-size: 13.5px; color: var(--faint); }

/* цифры */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 26px 24px 24px 0; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats b { display: block; font: 500 34px/1 var(--mono); letter-spacing: -.04em; }
.stats span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }

/* секции */
.sec { padding: 72px 0 0; }
.sec:last-of-type { padding-bottom: 96px; }
.sec__head { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.sec__head > div { flex: 1; }
.sec__no { display: block; margin-bottom: 12px; }
.sec__head h2 { font-size: clamp(26px, 3vw, 34px); }
.sec__head p { margin-top: 10px; max-width: 44em; color: var(--muted); }

/* логотип */
.logo { --s: 40px; width: var(--s); height: var(--s); flex: none; display: grid; place-items: center; border-radius: calc(var(--s) * .24); background: var(--tile); overflow: hidden; font: 700 calc(var(--s) * .3)/1 var(--mono); letter-spacing: -.03em; color: #15130a; }
.logo img { width: 72%; height: 72%; object-fit: contain; }

/* связки */
.recipes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.recipe { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .12s; }
.recipe:hover { border-color: var(--line-strong); }
.recipe__body { padding: 22px 22px 18px; flex: 1; display: block; }
.chain { display: flex; align-items: center; gap: 7px; margin-bottom: 20px; }
.chain .logo { --s: 38px; }
.chain span:not(.logo) { font: 14px/1 var(--mono); color: var(--faint); }
.recipe h3 { font-size: 19.5px; }
.recipe p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.recipe__result { display: flex; gap: 8px; margin-top: 16px; font-size: 14px; }
.recipe__result .i { color: var(--accent-text); margin-top: 2px; width: 16px; height: 16px; }
.cmdline { display: flex; align-items: center; gap: 10px; padding: 11px 12px 11px 22px; border-top: 1px dashed var(--line); font: 12.5px/1.4 var(--mono); color: var(--muted); }
.cmdline code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdline code::before { content: '$ '; color: var(--faint); }

.copy { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; color: var(--faint); flex: none; }
.copy:hover { color: var(--text); background: var(--raised); }
.copy .i { width: 16px; height: 16px; }
.copy .i-check, .copy.is-done .i-copy { display: none; }
.copy.is-done .i-check { display: block; color: var(--ok); }

/* рейтинг */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs button, .tabs a { position: relative; padding: 11px 14px; font-size: 14.5px; color: var(--muted); }
.tabs button:hover, .tabs a:hover { color: var(--text); }
.tabs [aria-selected='true'] { color: var(--text); }
.tabs [aria-selected='true']::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--accent); }
.board li { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 34px 40px minmax(0, 1fr) minmax(0, 1.6fr) 176px 132px; align-items: center; gap: 16px; padding: 13px 10px 13px 4px; }
.row:hover { background: var(--surface); }
.row__no { font: 13px/1 var(--mono); color: var(--faint); text-align: right; }
.row__name { font-weight: 600; font-size: 16px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__by { font-size: 13px; color: var(--faint); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__what { font-size: 14.5px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row .tags { justify-content: flex-end; flex-wrap: nowrap; }

.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font: 500 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); white-space: nowrap; }
.tag--own { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent-text) 45%, transparent); }
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.st::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.st--online::before { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.st--auth::before, .st--cert::before { background: var(--warn); }
.st--offline::before { background: var(--bad); }
.st--local::before, .st--stdio::before { background: none; border: 1.5px solid var(--muted); }

/* рубрики */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cats a { display: flex; align-items: center; gap: 12px; padding: 20px; background: var(--bg); font-size: 15.5px; font-weight: 500; }
.cats a:hover { background: var(--surface); }
.cats a .i { width: 21px; height: 21px; color: var(--faint); }
.cats a:hover .i { color: var(--accent-text); }
.cats a span { margin-left: auto; font: 13px/1 var(--mono); color: var(--faint); }
.cats .cats__all { grid-column-end: -1; color: var(--muted); }
.cats .cats__all .i { order: 2; width: 17px; height: 17px; }
.cats .cats__all span { order: 3; }

/* панели */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 30px; }
.panel h2, .panel h3 { font-size: 24px; }
.panel > p { margin-top: 10px; color: var(--muted); max-width: 36em; }
.panel .term { margin-top: 22px; box-shadow: none; }
.panel__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.checkform { display: flex; gap: 8px; margin-top: 22px; }
.checkform input { flex: 1; min-width: 0; }
.ticks { margin-top: 22px; display: grid; gap: 10px; font-size: 14.5px; color: var(--muted); }
.ticks li { display: flex; gap: 10px; }
.ticks .i { color: var(--ok); width: 17px; height: 17px; margin-top: 3px; }
.hubtools { margin-top: 22px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.hubtools li { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 12px 14px; background: var(--bg); font-size: 14px; }
.hubtools code { font-size: 13px; color: var(--accent-text); }
.hubtools span { color: var(--muted); }

/* поля */
.input, .select, .textarea { width: 100%; height: 44px; padding: 0 13px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px; outline: 0; font-size: 15px; }
.textarea { height: auto; min-height: 150px; padding: 11px 13px; font: 13px/1.6 var(--mono); resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); }
.select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 19px, calc(100% - 14px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input--mono { font: 13.5px/1 var(--mono); }
.field { display: block; margin-top: 16px; }
.field > span { display: block; margin-bottom: 7px; font-size: 13.5px; color: var(--muted); }
.field small { display: block; margin-top: 6px; font-size: 13px; color: var(--faint); }
.note { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 8px; font-size: 14.5px; background: var(--surface); }
.note--ok { border-left-color: var(--ok); }
.note--bad { border-left-color: var(--bad); }
.note ul { margin-top: 6px; list-style: disc; padding-left: 20px; color: var(--muted); }

/* каталог */
.phead { padding: 48px 0 28px; }
.crumbs { display: flex; gap: 8px; font: 12.5px/1 var(--mono); color: var(--faint); margin-bottom: 18px; }
.crumbs a:hover { color: var(--text); }
.phead h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.035em; }
.phead p { margin-top: 12px; max-width: 46em; font-size: 17.5px; color: var(--muted); }
.phead p.label { margin-top: 20px; font-size: 11.5px; color: var(--faint); }
.cat { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 40px; padding-bottom: 96px; align-items: start; }
.facets { position: sticky; top: 84px; display: grid; gap: 26px; }
.facets h2 { margin-bottom: 8px; }
.facets a { display: flex; align-items: center; gap: 9px; padding: 6px 8px; margin: 0 -8px; border-radius: 6px; font-size: 14.5px; color: var(--muted); }
.facets a:hover { background: var(--surface); color: var(--text); }
.facets a::before { content: ''; width: 9px; height: 9px; border: 1.5px solid var(--line-strong); border-radius: 2px; flex: none; }
.facets a[aria-current] { color: var(--text); }
.facets a[aria-current]::before { background: var(--accent); border-color: var(--accent); }
.facets a span { margin-left: auto; font: 12.5px/1 var(--mono); color: var(--faint); }
.facets a.is-empty { opacity: .45; }
.facets__reset { font-size: 13.5px; color: var(--faint); text-decoration: underline; text-underline-offset: 3px; }
.catbar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.catbar .find { margin: 0; height: 46px; flex: 1; border-radius: 10px; padding-left: 14px; }
.catbar .find input { font-size: 15.5px; padding: 0 10px; }
.sorts { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sorts a { padding: 0 13px; height: 44px; display: flex; align-items: center; font-size: 14px; color: var(--muted); }
.sorts a + a { border-left: 1px solid var(--line); }
.sorts a[aria-current] { background: var(--surface); color: var(--text); }
.count { font: 13px/1 var(--mono); color: var(--faint); margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .12s; min-width: 0; }
.card:hover { border-color: var(--line-strong); }
.card__top { display: flex; gap: 13px; align-items: center; min-width: 0; }
.card__top .logo { --s: 44px; }
.card__id { min-width: 0; flex: 1; }
.card__id b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__id span { display: block; font-size: 13px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.card__foot { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font: 12px/1 var(--mono); color: var(--faint); }
.card__foot .st { margin-left: auto; font-family: var(--font); }
.empty { padding: 56px 24px; border: 1px dashed var(--line-strong); border-radius: 12px; text-align: center; color: var(--muted); }
.empty b { display: block; font-size: 19px; color: var(--text); margin-bottom: 6px; }

/* карточка */
.ihead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: start; padding: 44px 0 34px; }
.ihead .logo { --s: 76px; }
.ihead h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.035em; }
.ihead__by { margin-top: 8px; font-size: 14.5px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.ihead__what { margin-top: 14px; font-size: 19px; line-height: 1.45; color: var(--muted); max-width: 40em; }
.ihead .tags { margin-top: 18px; }
.ihead__act { display: flex; gap: 8px; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 48px; padding-bottom: 96px; align-items: start; }
.item__main > * + * { margin-top: 44px; }
.block h2 { font-size: 22px; margin-bottom: 16px; display: flex; align-items: baseline; gap: 12px; }
.block h2 small { font: 12px/1 var(--mono); color: var(--faint); font-weight: 400; letter-spacing: 0; }
.aside { position: sticky; top: 84px; display: grid; gap: 22px; }
.facts { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.facts div { padding: 13px 16px; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { margin-bottom: 6px; }
.facts dd { font-size: 14.5px; overflow-wrap: anywhere; }
.facts dd a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.facts dd a:hover { text-decoration-color: var(--accent); }
.facts dd code { font-size: 12.5px; }
.aside__list a { display: flex; gap: 11px; align-items: center; padding: 9px 0; font-size: 14.5px; }
.aside__list a:hover b { color: var(--accent-text); }
.aside__list .logo { --s: 32px; }
.aside__list b { font-weight: 500; display: block; }
.aside__list span:not(.logo) { font-size: 12.5px; color: var(--faint); display: block; }
.aside h2 { margin-bottom: 6px; }

/* настройщик */
.cfg { border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); overflow: hidden; }
.cfg__agents { display: flex; gap: 6px; padding: 12px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.cfg__agents .chip { background: none; flex: none; }
.cfg__agents .chip[aria-selected='true'] { background: var(--accent-soft); }
.cfg__opts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { height: 34px; padding: 0 12px; font-size: 13.5px; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-selected='true'] { background: var(--raised); color: var(--text); }
.cfg__key { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--faint); }
.cfg__key:focus-within { border-color: var(--accent); }
.cfg__key input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: 0; font: 13px/1 var(--mono); color: var(--text); }
.cfg__key .i { width: 16px; height: 16px; }
.cfg__steps { padding: 4px 18px 20px; counter-reset: step; }
.cfg__steps > li { position: relative; padding: 18px 0 0 38px; counter-increment: step; }
.cfg__steps > li::before { content: counter(step); position: absolute; left: 0; top: 17px; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font: 12px/1 var(--mono); color: var(--muted); }
.cfg__steps h3 { font-size: 15.5px; font-weight: 500; letter-spacing: 0; margin-bottom: 10px; line-height: 1.5; }
.cfg__steps h3 code { font-size: 13px; padding: 2px 6px; background: var(--raised); border-radius: 5px; overflow-wrap: anywhere; }
.cfg__steps p { font-size: 14.5px; color: var(--muted); }
.cfg__foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--faint); }
.cfg__foot .btn { margin-left: auto; }
.cfg [hidden] { display: none !important; }

.code { position: relative; background: var(--code-bg); border: 1px solid var(--code-line); border-radius: 10px; color: var(--code-text); }
.code + .code { margin-top: 8px; }
.code pre { padding: 14px 52px 14px 16px; font-size: 13px; line-height: 1.65; overflow-x: auto; white-space: pre; }
.code--wrap pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.code .copy { position: absolute; top: 8px; right: 8px; color: #8f918a; }
.code .copy:hover { background: #1f2327; color: #fff; }
.code__cap { padding: 9px 16px; border-bottom: 1px solid var(--code-line); font: 12px/1.3 var(--mono); color: #8f918a; overflow-wrap: anywhere; }
.code__cap + pre + .copy, .code__cap ~ .copy { top: 40px; }

.tools { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tools li { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 18px; padding: 11px 16px; font-size: 14.5px; }
.tools li + li { border-top: 1px solid var(--line); }
.tools code { font-size: 13px; overflow-wrap: anywhere; }
.tools span { color: var(--muted); }
.tools__more { padding: 11px 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); width: 100%; text-align: left; }
.tools__more:hover { color: var(--text); background: var(--surface); }
.tools.is-short li:nth-child(n+9) { display: none; }

.before { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.before div { padding: 16px 18px; background: var(--bg); }
.before p { margin-top: 8px; font-size: 15px; }

.prose { font-size: 16.5px; line-height: 1.65; max-width: 46em; }
.prose > * + * { margin-top: 16px; }
.prose > :first-child { margin-top: 0; }
.block .prose h2 { font-size: 18.5px; margin-top: 30px; }
.prose h2 { font-size: 23px; margin-top: 40px; }
.prose h3 { font-size: 18.5px; margin-top: 28px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 7px; }
.prose ul { list-style: none; }
.prose ul li { position: relative; }
.prose ul li::before { content: ''; position: absolute; left: -18px; top: .72em; width: 6px; height: 6px; background: var(--accent); }
.prose ol { list-style: decimal; }
.prose ol li::marker { font: 13px var(--mono); color: var(--faint); }
.prose a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose code { font-size: .86em; padding: 2px 6px; background: var(--raised); border: 1px solid var(--line); border-radius: 5px; }
.prose pre { padding: 14px 16px; background: var(--code-bg); border: 1px solid var(--code-line); border-radius: 10px; color: var(--code-text); font-size: 13px; line-height: 1.65; overflow-x: auto; }
.prose pre code { padding: 0; background: none; border: 0; font-size: inherit; }
.prose strong { font-weight: 600; }

/* связка */
.parts { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.parts a { display: grid; grid-template-columns: 44px minmax(0, 190px) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px; }
.parts a + a { border-top: 1px solid var(--line); }
.parts a:hover { background: var(--surface); }
.parts b { font-weight: 600; }
.parts span:not(.logo) { font-size: 14.5px; color: var(--muted); }
.parts .i { color: var(--faint); }
.steps { counter-reset: s; display: grid; gap: 2px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 13px/1.9 var(--mono); color: var(--faint); }

/* установка cli */
.os-tabs { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.inst { margin-top: 14px; }
[data-os-pane] > .inst:first-child { margin-top: 0; }
.inst__label { font-size: 14px; color: var(--muted); margin-bottom: 7px; }
[data-os-pane][hidden] { display: none; }

/* гайд */
.guide { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-bottom: 96px; align-items: start; }
.toc { position: sticky; top: 84px; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }
.toc h2 { margin-bottom: 12px; }
.glist a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 22px 6px; border-bottom: 1px solid var(--line); }
.glist a:first-child { border-top: 1px solid var(--line); }
.glist a:hover { background: var(--surface); }
.glist a > span:first-child { font: 13px/1 var(--mono); color: var(--faint); }
.glist b { font-size: 20px; font-weight: 600; letter-spacing: -.015em; display: block; }
.glist p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.glist em { font: normal 12.5px/1 var(--mono); color: var(--faint); white-space: nowrap; }

/* проверка */
.narrow { max-width: 860px; padding-bottom: 96px; }
.checkbox { padding: 24px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.checkbox .checkform { margin-top: 0; }
.checkbox details { margin-top: 14px; font-size: 14px; color: var(--muted); }
.checkbox summary { cursor: pointer; width: fit-content; }
.checkbox details .duo { margin-top: 12px; gap: 8px; grid-template-columns: 200px 1fr; }
.verdict { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; }
.verdict b { font-size: 21px; font-weight: 600; display: block; letter-spacing: -.015em; }
.verdict span { color: var(--muted); font-size: 14.5px; overflow-wrap: anywhere; }
.verdict::before { content: ''; width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--faint); }
.verdict--online::before { background: var(--ok); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 20%, transparent); }
.verdict--auth::before, .verdict--cert::before { background: var(--warn); box-shadow: 0 0 0 5px color-mix(in srgb, var(--warn) 20%, transparent); }
.verdict--offline::before, .verdict--refused::before { background: var(--bad); box-shadow: 0 0 0 5px color-mix(in srgb, var(--bad) 20%, transparent); }
.probe { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.probe li { display: grid; grid-template-columns: 26px 220px minmax(0, 1fr); gap: 12px; padding: 13px 16px; font-size: 14.5px; align-items: baseline; }
.probe li + li { border-top: 1px solid var(--line); }
.probe li > span:first-child { font: 14px/1 var(--mono); }
.probe .is-ok > span:first-child { color: var(--ok); }
.probe .is-bad > span:first-child { color: var(--bad); }
.probe .is-skip { color: var(--faint); }
.probe li > span:last-child { color: var(--muted); overflow-wrap: anywhere; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 9px 12px 9px 0; font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.table td.mono { font-size: 12.5px; }

/* кабинет */
.hubin { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; padding-top: 56px; padding-bottom: 96px; align-items: start; }
.hubin h1 { font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -.035em; }
.hubin > div > p { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 34em; }
.auth { padding: 26px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.auth .tabs { margin: -6px -6px 6px; }
.auth .btn { width: 100%; margin-top: 20px; height: 44px; }
.cab { padding-top: 40px; padding-bottom: 96px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.cab__head { display: flex; align-items: center; gap: 16px; }
.cab__head h1 { font-size: 34px; letter-spacing: -.03em; flex: 1; }
.token { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font: 14px/1.4 var(--mono); overflow-wrap: anywhere; }
.token code { flex: 1; min-width: 0; }
.token--fresh { border-color: var(--accent); background: var(--accent-soft); }
.conn { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 18px; }
.conn li { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 300px) auto; gap: 16px; align-items: center; padding: 13px 16px; background: var(--bg); }
.conn li + li { border-top: 1px solid var(--line); }
.conn b { display: block; font-weight: 600; }
.conn .is-direct .logo { opacity: .75; }
.conn span:not(.logo) { font-size: 13.5px; color: var(--muted); display: block; }
.conn form { display: flex; gap: 6px; }
.conn .input { height: 36px; font: 12.5px/1 var(--mono); }
.switch { width: 46px; height: 26px; border-radius: 99px; background: var(--line-strong); position: relative; transition: background .15s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); transition: transform .15s; }
.switch[aria-pressed='true'] { background: var(--accent); }
.switch[aria-pressed='true']::after { transform: translateX(20px); background: var(--accent-ink); }

/* поиск по Ctrl+K */
.pal { position: fixed; inset: 0; z-index: 80; background: rgba(5, 6, 7, .62); display: grid; justify-items: center; align-items: start; padding: 11vh 16px 0; }
.pal[hidden] { display: none; }
.pal__box { width: min(660px, 100%); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.pal__in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.pal__in input { flex: 1; height: 58px; background: none; border: 0; outline: 0; font-size: 17.5px; }
.pal__in .i { color: var(--faint); }
.pal__list { max-height: 54vh; overflow-y: auto; padding: 6px; }
.pal__list a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 8px; }
.pal__list a.is-on { background: var(--raised); }
.pal__list .logo { --s: 34px; }
.pal__list b { display: block; font-weight: 600; font-size: 15px; }
.pal__list span:not(.logo) { display: block; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal__none { padding: 26px; text-align: center; color: var(--muted); }
.pal__foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); font: 11.5px/1 var(--mono); color: var(--faint); }

/* подвал */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14.5px; }
.foot__in { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot p { margin-top: 14px; color: var(--muted); max-width: 30em; }
.foot h2 { margin-bottom: 14px; }
.foot li + li { margin-top: 9px; }
.foot li a { color: var(--muted); }
.foot li a:hover { color: var(--text); }
.foot__end { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font: 12.5px/1.4 var(--mono); color: var(--faint); }

@media (max-width: 1080px) {
  .kbtn { min-width: 0; }
  .kbtn span { display: none; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 52px 0 48px; }
  .recipes, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .row { grid-template-columns: 30px 40px minmax(0, 1fr) minmax(0, 1.3fr) 124px; }
  .row .tags { display: none; }
  .item { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .hubin { grid-template-columns: 1fr; gap: 32px; }
  .conn li { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .conn li > :nth-child(3) { grid-column: 2 / -1; grid-row: 2; }
  .conn li > :nth-child(4) { grid-column: 3; grid-row: 1; }
}
@media (max-width: 820px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .top__in { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 0 14px; }
  .nav { order: 3; width: calc(100% + 36px); margin: 8px -18px 0; padding: 0 6px; overflow-x: auto; height: 42px; scrollbar-width: none; border-top: 1px solid var(--line); }
  .nav a { padding: 0 9px; font-size: 13.5px; }
  .nav a[aria-current]::after { left: 9px; right: 9px; }
  .top__side .btn { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div { padding: 20px 16px 18px 0; }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats b { font-size: 28px; }
  .agents { flex-direction: column; align-items: flex-start; gap: 12px; }
  .agents__note { margin: 0; }
  .sec { padding-top: 56px; }
  .sec__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .recipes, .duo, .grid, .grid--3, .before { grid-template-columns: minmax(0, 1fr); }
  .cats { grid-template-columns: 1fr 1fr; }
  .cats a { padding: 16px 14px; font-size: 14.5px; }
  .row { grid-template-columns: 24px 36px minmax(0, 1fr) auto; gap: 12px; padding-right: 4px; }
  .row__what { display: none; }
  .row .st { font-size: 0; gap: 0; }
  .cat { grid-template-columns: 1fr; gap: 20px; }
  .facets { position: static; gap: 10px; min-width: 0; }
  .facets > div { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; }
  .facets > div::-webkit-scrollbar, .nav::-webkit-scrollbar, .cfg__agents::-webkit-scrollbar { display: none; }
  .facets h2 { margin: 0 6px 0 0; flex: none; }
  .facets a { flex: none; margin: 0; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; white-space: nowrap; }
  .facets a::before { display: none; }
  .facets a[aria-current] { border-color: var(--accent); background: var(--accent-soft); }
  .facets a span { margin-left: 2px; }
  .catbar { flex-direction: column; align-items: stretch; }
  .catbar .find { flex: none; }
  .sorts a { flex: 1; justify-content: center; }
  .ihead { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding-top: 30px; }
  .ihead .logo { --s: 56px; }
  .ihead__act { grid-column: 1 / -1; }
  .ihead__what { font-size: 17px; }
  .aside { grid-template-columns: 1fr; }
  .tools li, .probe li { grid-template-columns: 1fr; gap: 3px; }
  .probe li { grid-template-columns: 22px 1fr; }
  .probe li > span:last-child { grid-column: 2; }
  .parts a { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .parts a span:not(.logo) { grid-column: 2 / -1; }
  .guide { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .glist a { grid-template-columns: 34px minmax(0, 1fr); }
  .glist em { display: none; }
  .cab__head { flex-wrap: wrap; gap: 8px 16px; }
  .cab__head h1 { flex: 1 0 100%; font-size: 28px; }
  .checkform { flex-direction: column; }
  .checkform input { flex: none; }
  .checkbox details .duo { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .foot__in > div:first-child { grid-column: 1 / -1; }
  .panel { padding: 22px; }
  .hubtools li { grid-template-columns: 1fr; gap: 4px; }
  .term pre { font-size: 11.5px; padding: 14px; }
  .conn li { grid-template-columns: 36px minmax(0, 1fr) auto; }
}
@media (prefers-reduced-motion: reduce) {
  .brand i { animation: none; }
  * { transition: none !important; }
}
