/* olala.glenn.ru — светлая тема */

:root {
    --bg:          #f7f8fc;
    --surface:     #ffffff;
    --surface-2:   #f2f4fa;
    --ink:         #1d2233;
    --ink-2:       #3a4154;
    --muted:       #677089;
    --line:        #e5e8f1;
    --line-2:      #d8dce8;

    --accent:      #5a5bd8;
    --accent-ink:  #4546b8;
    --accent-soft: #eeefff;
    --mint:        #1b9a73;
    --mint-soft:   #e6f6ef;
    --peach:       #d86a34;
    --peach-soft:  #fff0e6;
    --sky:         #2f7fc1;
    --sky-soft:    #e7f2fc;

    --code-bg:     #f7f8fd;
    --radius:      16px;
    --radius-sm:   10px;
    --shadow:      0 1px 2px rgba(29, 34, 51, .04), 0 8px 24px -12px rgba(29, 34, 51, .12);
    --shadow-lg:   0 2px 4px rgba(29, 34, 51, .04), 0 24px 48px -24px rgba(58, 60, 140, .22);

    --font:        "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono:        "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --wrap:        1160px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.65 var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent-ink); text-decoration-color: rgba(90, 91, 216, .35); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700; font-size: 15px; line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 20px -8px rgba(90, 91, 216, .6);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { color: #fff; background: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(90, 91, 216, .7); }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: var(--surface); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent); }
.btn--small { padding: 10px 16px; font-size: 14px; box-shadow: none; }

/* ---------- шапка ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247, 248, 252, .82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}
.topbar.is-scrolled, .is-inner .topbar { border-bottom-color: var(--line); }
.topbar__in { display: flex; align-items: center; gap: 24px; height: 68px; }

.logo {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--ink); text-decoration: none;
    font-weight: 800; font-size: 21px; letter-spacing: -.02em;
}
.logo:hover { color: var(--ink); }
.logo__mark {
    width: 34px; height: 34px; border-radius: 50%;
    box-shadow: 0 0 0 2px #fff, 0 4px 12px -4px rgba(90, 91, 216, .55);
}

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
    padding: 8px 14px; border-radius: 999px;
    color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current] { background: var(--accent-soft); color: var(--accent-ink); }
.nav__short { display: none; }

/* переключатель языка RU | EN */
.langs { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.langs a {
    padding: 6px 7px; border-radius: 8px;
    color: var(--muted); text-decoration: none;
}
.langs a:hover { color: var(--ink); background: var(--surface-2); }
.langs a[aria-current] { color: var(--accent-ink); background: var(--accent-soft); }
.langs__sep { color: var(--line-2); font-weight: 400; }

/* ---------- главная: hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before, .hero::after {
    content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .75;
}
.hero::before { width: 560px; height: 560px; left: -160px; top: -220px; background: #e4e3ff; }
.hero::after  { width: 520px; height: 520px; right: -140px; top: 40px; background: #dff4ec; }
.hero__blob { position: absolute; z-index: -1; width: 380px; height: 380px; left: 42%; bottom: -220px; border-radius: 50%; background: #ffe9dc; filter: blur(80px); opacity: .7; }

.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }

.pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--ink-2); font-size: 13.5px; font-weight: 600;
}
.pill b { padding: 2px 8px; border-radius: 999px; background: var(--mint-soft); color: var(--mint); font-weight: 700; }

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800;
}
.hl {
    background: linear-gradient(100deg, #5a5bd8 10%, #3aa88e 90%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin: 0 0 30px; max-width: 540px; font-size: 18.5px; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__install {
    display: flex; align-items: center; gap: 10px; margin-top: 26px; max-width: 540px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--line);
    font: 13.5px/1.5 var(--mono); color: var(--ink-2); overflow-x: auto; white-space: nowrap;
}
.hero__install span { color: var(--muted); user-select: none; }

.hero__art { position: relative; isolation: isolate; justify-self: center; width: 100%; max-width: 540px; }
.hero__art::before {
    content: ""; position: absolute; z-index: -1; inset: 14% 6% 2% 6%; border-radius: 50%;
    background: radial-gradient(circle at 50% 42%, #fff4ec 0%, #efeaff 55%, rgba(239, 234, 255, 0) 72%);
}
.hero__lady { display: block; width: 100%; height: auto; }
.hero__bubble {
    position: absolute; right: -4px; top: 6%; margin: 0;
    padding: 12px 18px; border-radius: 20px;
    background: var(--surface); box-shadow: var(--shadow-lg);
    font-weight: 800; font-size: 20px; line-height: 1.2; letter-spacing: -.01em;
    transform: rotate(3deg);
}
.hero__bubble::before {
    content: ""; position: absolute; left: -9px; top: 22px;
    border: 9px solid transparent; border-right-color: var(--surface); border-left: 0;
}
.hero__bubble small { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; font-weight: 600; letter-spacing: 0; }

/* ---------- цифры ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.stat { background: var(--surface); padding: 22px 24px; }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* ---------- секции ---------- */
.section { padding: 96px 0 0; }
.section__head { max-width: 680px; margin-bottom: 40px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.section h2 { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; }
.section__head p { margin: 0; color: var(--ink-2); font-size: 17.5px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
    padding: 30px 28px 28px; border-radius: var(--radius);
    background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.feature__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 20px; }
.feature__icon svg { width: 24px; height: 24px; }
.feature--light .feature__icon { background: var(--accent-soft); color: var(--accent); }
.feature--fast  .feature__icon { background: var(--peach-soft);  color: var(--peach); }
.feature--mvc   .feature__icon { background: var(--mint-soft);   color: var(--mint); }
.feature h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.02em; }
.feature p { margin: 0 0 16px; color: var(--ink-2); }
.feature ul { margin: 0; padding: 0; list-style: none; border-top: 1px dashed var(--line-2); padding-top: 14px; }
.feature li { position: relative; padding-left: 22px; margin: 6px 0; font-size: 15px; color: var(--ink-2); }
.feature li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .25; }
.feature--light li::before { color: var(--accent); opacity: .6; }
.feature--fast  li::before { color: var(--peach);  opacity: .6; }
.feature--mvc   li::before { color: var(--mint);   opacity: .6; }

/* URL -> код */
.urlmap {
    padding: 36px; border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f4ff 100%);
    box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.urlmap__url { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; font: 500 clamp(20px, 3vw, 30px)/1 var(--mono); }
.urlmap__host { color: var(--muted); padding-top: 8px; }
.urlmap__seg { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.urlmap__seg > span:first-child { padding: 8px 12px; border-radius: 10px; }
.urlmap__seg small { font: 600 12.5px var(--font); letter-spacing: .08em; text-transform: uppercase; }
.urlmap__slash { color: var(--line-2); padding-top: 8px; }
.seg-m > span:first-child { background: var(--accent-soft); color: var(--accent-ink); } .seg-m small { color: var(--accent); }
.seg-c > span:first-child { background: var(--mint-soft);   color: var(--mint); }       .seg-c small { color: var(--mint); }
.seg-a > span:first-child { background: var(--peach-soft);  color: var(--peach); }      .seg-a small { color: var(--peach); }

.urlmap__rows { display: grid; gap: 10px; margin-top: 30px; }
.urlmap__row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: baseline; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px var(--line); }
.urlmap__row span { color: var(--muted); font-size: 14px; font-weight: 600; }
.urlmap__row code { font: 14.5px var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.urlmap__row .m { color: var(--accent-ink); } .urlmap__row .c { color: var(--mint); } .urlmap__row .a { color: var(--peach); }

/* путь запроса */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: flow; }
.flow__step {
    position: relative; padding: 22px 18px 20px; border-radius: var(--radius);
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.flow__step::before {
    counter-increment: flow; content: counter(flow);
    display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 14px;
    border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; font-size: 13px;
}
.flow__step:not(:last-child)::after {
    content: "→"; position: absolute; right: -14px; top: 26px; width: 14px; text-align: center; color: var(--line-2); font-weight: 700;
}
.flow__step b { display: block; margin-bottom: 6px; font-size: 16px; }
.flow__step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.flow__step code { font: 12.5px var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }

/* структура + модули */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.tree {
    margin: 0; padding: 26px 28px; border-radius: var(--radius);
    background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
    font: 14px/1.9 var(--mono); color: var(--ink); overflow-x: auto;
}
.tree .d { color: var(--accent-ink); font-weight: 500; }
.tree .x { color: var(--muted); }

.mods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mod {
    display: block; padding: 16px 18px; border-radius: 14px;
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
    color: inherit; text-decoration: none; transition: box-shadow .15s ease, transform .15s ease;
}
.mod:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--shadow), inset 0 0 0 1px var(--line-2); }
.mod code { font: 500 14px var(--mono); color: var(--accent-ink); }
.mod p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* CTA */
.cta {
    margin: 96px 0 0; padding: 56px 48px; border-radius: 28px; text-align: center;
    background:
        radial-gradient(600px 240px at 15% 0%, #e7e6ff 0%, transparent 70%),
        radial-gradient(600px 240px at 90% 100%, #dcf3ea 0%, transparent 70%),
        var(--surface);
    box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.cta h2 { margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.03em; line-height: 1.12; }
.cta p { margin: 0 auto 28px; max-width: 560px; color: var(--ink-2); font-size: 17.5px; }
.cta__steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; padding: 0; list-style: none; counter-reset: s; }
.cta__steps li { counter-increment: s; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14.5px; }
.cta__steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; }

/* вайбкодинг / ИИ */
.ai {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center;
    padding: 44px; border-radius: 28px;
    background:
        radial-gradient(520px 260px at 0% 0%, #eceaff 0%, transparent 70%),
        radial-gradient(520px 260px at 100% 100%, #e3f5ee 0%, transparent 70%),
        var(--surface);
    box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.ai h2 { margin-bottom: 16px; }
.ai__lead { margin: 0 0 22px; color: var(--ink-2); font-size: 17.5px; }
.ai__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ai__list li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ai__list li::before {
    content: "✓"; position: absolute; left: 0; top: 2px;
    display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
    background: var(--mint-soft); color: var(--mint); font-size: 12px; font-weight: 800;
}
.ai__list b { color: var(--ink); }
.ai__side .code { margin: 16px 0 0; }
.ai__side .code pre { white-space: pre-wrap; }
.ai__meter { padding: 22px 24px; border-radius: 18px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px var(--line); }
.ai__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-bottom: 16px; }
.ai__row span { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.ai__row b { font-size: 15px; }
.ai__row i {
    grid-column: 1 / -1; height: 10px; border-radius: 999px; background: var(--surface-2); position: relative; overflow: hidden;
}
.ai__row i::after {
    content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit;
    background: linear-gradient(90deg, #8f8cf5, #43b7a0);
}
.ai__note { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

@media (max-width: 1020px) {
    .ai { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 720px) {
    .ai { padding: 26px 18px; border-radius: 22px; }
    .ai__lead { font-size: 16.5px; }
}

/* ---------- блоки кода ---------- */
.code {
    margin: 22px 0; border-radius: 14px; overflow: hidden;
    background: var(--code-bg); box-shadow: inset 0 0 0 1px var(--line);
}
.code__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .7);
}
.code__file { font: 500 12.5px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code__copy {
    visibility: hidden; flex: none;
    padding: 4px 10px; border: 0; border-radius: 8px; background: transparent;
    color: var(--muted); font: 600 12.5px var(--font); cursor: pointer;
}
.js .code__copy { visibility: visible; }
.code__copy:hover { background: var(--surface-2); color: var(--ink); }
.code__copy.is-done { color: var(--mint); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 13.5px/1.7 var(--mono); color: var(--ink); tab-size: 4; }
.code code { font: inherit; }

.t-c   { color: #8a92a6; font-style: italic; }
.t-s   { color: #1d8a64; }
.t-k   { color: #7a3fc2; }
.t-v   { color: #b64f1e; }
.t-n   { color: #c0356b; }
.t-f   { color: #2f68c1; }
.t-cls { color: #0f7f8f; }
.t-t   { color: #9a6200; }
.t-tg  { color: #2f68c1; }
.t-a   { color: #7a3fc2; }

/* ---------- документация ---------- */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 40px; }
.docs__side { position: relative; }
.sidenav { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; padding-bottom: 20px; }
.sidenav summary { display: none; }
.sidenav__group { margin: 22px 0 6px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sidenav__group:first-of-type { margin-top: 0; }
.sidenav ul { margin: 0; padding: 0; list-style: none; }
.sidenav a {
    display: block; padding: 6px 12px; margin-left: -12px; border-radius: 8px;
    color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none;
}
.sidenav a:hover { background: var(--surface-2); color: var(--ink); }
.sidenav a[aria-current] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }

.prose { max-width: 780px; min-width: 0; }
.prose__crumb { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.prose__crumb a { color: var(--muted); text-decoration: none; }
.prose__crumb a:hover { color: var(--accent); }
.prose__crumb span { margin: 0 6px; color: var(--line-2); }
.prose h1 { margin: 0 0 12px; font-size: clamp(32px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -.035em; font-weight: 800; }
.prose .lead { margin: 0 0 36px; color: var(--ink-2); font-size: 19px; line-height: 1.6; }
.prose h2 {
    margin: 52px 0 14px; padding-top: 28px; border-top: 1px solid var(--line);
    font-size: 26px; line-height: 1.25; letter-spacing: -.02em;
}
.prose h3 { margin: 32px 0 10px; font-size: 19px; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose :not(pre) > code {
    padding: 2px 6px; border-radius: 6px;
    background: var(--surface-2); color: var(--ink);
    font: .88em var(--mono); overflow-wrap: anywhere;
}
.prose h2 a.anchor, .prose h3 a.anchor { margin-left: 8px; color: var(--line-2); text-decoration: none; opacity: 0; transition: opacity .15s; }
.prose h2:hover a.anchor, .prose h3:hover a.anchor { opacity: 1; }

.steps { list-style: none; padding: 0 !important; counter-reset: step; }
.steps > li { position: relative; padding-left: 48px; margin: 0 0 28px !important; counter-increment: step; }
.steps > li::before {
    content: counter(step); position: absolute; left: 0; top: 0;
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; font-size: 14px;
}
.steps > li > h3 { margin-top: 3px; }

.note {
    margin: 22px 0; padding: 16px 18px 16px 50px; position: relative;
    border-radius: 14px; background: var(--sky-soft); color: var(--ink-2);
}
.note::before {
    content: "i"; position: absolute; left: 16px; top: 16px;
    display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    background: var(--sky); color: #fff; font: 700 13px/1 var(--font);
}
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note b:first-child { color: var(--ink); }
.note--tip  { background: var(--mint-soft); }  .note--tip::before  { content: "✓"; background: var(--mint); }
.note--warn { background: var(--peach-soft); } .note--warn::before { content: "!"; background: var(--peach); }

.table { margin: 22px 0; overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td { color: var(--ink-2); }
.table td:first-child { white-space: nowrap; }
.table td code { font: 13px var(--mono); color: var(--ink); background: none !important; padding: 0 !important; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager__link {
    display: block; padding: 16px 18px; border-radius: 14px;
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
    color: var(--ink); font-weight: 700; text-decoration: none;
}
.pager__link:hover { color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent); }
.pager__link small { display: block; margin-bottom: 2px; color: var(--muted); font-weight: 600; font-size: 13px; }
.pager__link--next { text-align: right; grid-column: 2; }

/* оглавление /howto */
.toc { padding: 56px 0 24px; }
.toc__head { max-width: 680px; margin-bottom: 44px; }
.toc__head h1 { margin: 0 0 12px; font-size: clamp(34px, 4.6vw, 48px); letter-spacing: -.035em; line-height: 1.08; }
.toc__head p { margin: 0; color: var(--ink-2); font-size: 18.5px; }
.toc__group { margin: 0 0 40px; }
.toc__group h2 { margin: 0 0 16px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.toc__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.toc__card {
    display: block; padding: 20px 22px; border-radius: var(--radius);
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
    color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.toc__card:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--shadow), inset 0 0 0 1px var(--line-2); }
.toc__card b { display: block; margin-bottom: 6px; font-size: 17px; }
.toc__card:hover b { color: var(--accent-ink); }
.toc__card span { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.toc__card--main { background: linear-gradient(135deg, #f1f0ff, #ffffff 70%); box-shadow: inset 0 0 0 1px #dcdbff; }

/* 404 */
.notfound { padding: 96px 24px 64px; text-align: center; }
.notfound__code { margin: 0; font-size: 96px; font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(100deg, #8f8cf5, #43b7a0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { margin: 16px 0 10px; font-size: 30px; letter-spacing: -.02em; }
.notfound p { color: var(--ink-2); }

/* ---------- подвал ---------- */
.footer { margin-top: 96px; border-top: 1px solid var(--line); background: var(--surface); }
.footer__in { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; padding-top: 40px; padding-bottom: 40px; }
.footer__brand p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; }
.footer__nav a { color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; }
.footer__nav a:hover { color: var(--accent); }
.footer__copy { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- адаптив ---------- */
@media (max-width: 1020px) {
    .hero__in { grid-template-columns: minmax(0, 1fr); gap: 64px; }
    .features, .toc__grid { grid-template-columns: 1fr 1fr; }
    .flow { grid-template-columns: 1fr 1fr; }
    .flow__step::after { display: none; }
    .split { grid-template-columns: 1fr; }
    .docs { grid-template-columns: 1fr; gap: 8px; padding-top: 24px; }
    .sidenav { position: static; max-height: none; overflow: visible; padding: 0; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
    .sidenav summary { display: flex; justify-content: space-between; padding: 14px 18px; font-weight: 700; cursor: pointer; list-style: none; }
    .sidenav summary::-webkit-details-marker { display: none; }
    .sidenav summary::after { content: "+"; color: var(--muted); font-weight: 600; }
    .sidenav[open] summary::after { content: "–"; }
    .sidenav[open] { padding-bottom: 14px; }
    .sidenav__group, .sidenav ul { padding: 0 18px 0 30px; }
    .sidenav__group:first-of-type { margin-top: 4px; }
}

@media (max-width: 720px) {
    .wrap { padding: 0 16px; }
    .topbar__in { height: 60px; gap: 12px; }
    .topbar__cta, .nav__hide-sm { display: none; }
    .nav a { padding: 7px 8px; font-size: 14px; white-space: nowrap; }
    .langs a { padding: 6px 4px; }
    .logo { font-size: 19px; gap: 8px; }
    .logo__mark { width: 30px; height: 30px; }
    .hero { padding: 44px 0 56px; }
    .hero__bubble { right: 0; top: 2%; font-size: 17px; padding: 10px 14px; }
    .hero__lead { font-size: 17px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat { padding: 18px; }
    .stat b { font-size: 25px; }
    .section { padding-top: 72px; }
    .features, .toc__grid, .flow, .mods { grid-template-columns: 1fr; }
    .urlmap { padding: 22px 18px; }
    .urlmap__row { grid-template-columns: 1fr; gap: 2px; }
    .cta { margin-top: 72px; padding: 40px 20px; border-radius: 22px; }
    .prose .lead { font-size: 17.5px; }
    .prose h2 { font-size: 23px; margin-top: 40px; }
    .code pre { font-size: 12.5px; padding: 14px; }
    .pager { grid-template-columns: 1fr; }
    .pager__link--next { grid-column: 1; }
    .footer { margin-top: 72px; }
    .footer__in { grid-template-columns: 1fr; }
}

/* узкие телефоны: короткие подписи меню, в переключателе — только другой язык */
@media (max-width: 480px) {
    .topbar__in { gap: 8px; }
    .nav { gap: 0; }
    .nav a { padding: 7px 6px; }
    .nav__full, .langs a[aria-current], .langs__sep { display: none; }
    .nav__short { display: inline; }
}

/* в примерах кода символы должны быть видны как есть: -> и => без лигатур */
code, pre, .tree, .hero__install, .urlmap { font-variant-ligatures: none !important; font-feature-settings: "liga" 0, "calt" 0 !important; }
