/* MirrorTheme network design layer */
.mt-bar,.mt-foot,.mt-page,.mt-docs{
  --bg:#f6f7fb;--surface:#fff;--surface-2:#f0f2f9;--ink:#0e1126;--muted:#586079;--line:#e4e7f1;
  --brand:#4338ca;--brand-ink:#fff;--brand-2:#0891b2;--ring:rgba(67,56,202,.45);
  --shadow:0 1px 2px rgba(14,17,38,.06),0 8px 24px -8px rgba(14,17,38,.14);
  --g1:#4338ca;--g2:#0891b2;--r:18px;--font:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-family:var(--font);color:var(--ink);line-height:1.6;-webkit-font-smoothing:antialiased;
}
@media (prefers-color-scheme:dark){
  .mt-bar,.mt-foot,.mt-page,.mt-docs{--bg:#0a0c16;--surface:#12152a;--surface-2:#181c36;--ink:#eceefc;--muted:#a3a9c6;--line:#252a47;--g1:#a5a0ff;--g2:#22d3ee;--brand:#8b85ff;--brand-ink:#0a0c16;--brand-2:#22d3ee;--ring:rgba(139,133,255,.55);--shadow:0 1px 2px rgba(0,0,0,.4),0 12px 32px -10px rgba(0,0,0,.6)}
}
.mt-bar *,.mt-foot *,.mt-page *,.mt-docs *{box-sizing:border-box}
.mt-bar a,.mt-foot a,.mt-page a,.mt-docs a{color:inherit}
.mt-bar :focus-visible,.mt-foot :focus-visible,.mt-page :focus-visible,.mt-docs :focus-visible{outline:3px solid var(--ring);outline-offset:2px;border-radius:8px}
.mt-skip{position:absolute;left:12px;top:-60px;z-index:100000;background:#4338ca;color:#fff;padding:10px 16px;border-radius:10px;text-decoration:none;font:600 14px Inter,sans-serif}
.mt-skip:focus{top:12px}

/* ---------- top bar ---------- */
.mt-bar{position:relative;z-index:99990;background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:saturate(1.6) blur(14px);-webkit-backdrop-filter:saturate(1.6) blur(14px);border-bottom:1px solid var(--line)}
.mt-bar.mt-sticky{position:sticky;top:0}
.mt-in{max-width:1240px;margin:0 auto;padding:0 clamp(16px,3vw,32px);height:64px;display:flex;align-items:center;gap:20px}
.mt-brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:800;font-size:18px;letter-spacing:-.02em}
.mt-logo{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:#fff;font-weight:800;background:linear-gradient(135deg,#4338ca,#0891b2);box-shadow:0 6px 16px -6px #4338ca}
.mt-nav{display:flex;align-items:center;gap:4px;margin-left:auto}
.mt-nav>a,.mt-dd>button{font:500 15px var(--font);color:var(--ink);background:none;border:0;padding:9px 14px;border-radius:999px;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:background .2s}
.mt-nav>a.mt-cta:hover{background:var(--brand)}.mt-nav>a:not(.mt-cta):hover,.mt-dd>button:hover,.mt-dd.open>button{background:var(--surface-2)}
.mt-nav a[aria-current],.mt-nav button[aria-current]{background:var(--surface-2);font-weight:600}
.mt-dd{position:static}
.mt-dd>button svg{width:12px;height:12px;transition:transform .2s}
.mt-dd.open>button svg{transform:rotate(180deg)}
.mt-nav>a.mt-cta,.mt-cta{margin-left:8px;background:var(--brand);color:var(--brand-ink)!important;font:600 14px var(--font);padding:10px 18px;border-radius:999px;text-decoration:none;transition:transform .2s,box-shadow .2s}
.mt-cta:hover{transform:translateY(-1px);box-shadow:0 8px 20px -8px var(--brand)}
.mt-mega{position:absolute;left:0;right:0;top:100%;background:var(--surface);border-bottom:1px solid var(--line);box-shadow:var(--shadow);display:none;max-height:calc(100vh - 80px);overflow:auto}
.mt-dd.open .mt-mega{display:block;animation:mt-in .18s ease-out}
@keyframes mt-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.mt-mega-in{max-width:1240px;margin:0 auto;padding:28px clamp(16px,3vw,32px) 32px;display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.mt-col h3{margin:0 0 4px;font-size:15px;letter-spacing:-.01em}
.mt-col h3 a{text-decoration:none;display:inline-flex;gap:8px;align-items:center}
.mt-col h3 a:hover{color:var(--brand)}
.mt-col p{margin:0 0 12px;color:var(--muted);font-size:13px}
.mt-col h4{margin:14px 0 4px;font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.mt-col ul{list-style:none;margin:0;padding:0;columns:2;column-gap:14px}
.mt-col li{break-inside:avoid}
.mt-col li a{display:block;padding:5px 8px;margin:0 -8px;border-radius:8px;text-decoration:none;font-size:14px;color:var(--ink)}
.mt-col li a:hover{background:var(--surface-2);color:var(--brand)}
.mt-col.mt-here h3::after{content:"you are here";font:600 10px var(--font);letter-spacing:.06em;text-transform:uppercase;background:var(--brand);color:var(--brand-ink);padding:2px 8px;border-radius:99px;margin-left:8px}
.mt-burger{display:none;margin-left:auto;width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:var(--surface);cursor:pointer;color:var(--ink);align-items:center;justify-content:center}
.mt-burger svg{width:22px;height:22px}
@media (max-width:900px){
  .mt-burger{display:inline-flex}
  .mt-nav{display:none;position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:stretch;background:var(--surface);border-bottom:1px solid var(--line);padding:12px 16px 20px;max-height:calc(100vh - 64px);overflow:auto;margin:0;box-shadow:var(--shadow)}
  .mt-bar.mt-open .mt-nav{display:flex}
  .mt-nav>a,.mt-dd>button{padding:14px;font-size:16px;width:100%;justify-content:space-between;border-radius:12px}
  .mt-mega{position:static;display:none;box-shadow:none;border:0;max-height:none}
  .mt-mega-in{grid-template-columns:1fr;padding:6px 6px 14px;gap:18px}
  .mt-col ul{columns:1}
  .mt-cta{margin:8px 0 0;text-align:center}
}

/* ---------- footer ---------- */
.mt-foot{background:var(--surface);border-top:1px solid var(--line);margin-top:0;position:relative;z-index:2;clear:both}
.mt-foot-in{max-width:1240px;margin:0 auto;padding:48px clamp(16px,3vw,32px) 28px}
.mt-foot-grid{display:grid;grid-template-columns:1.1fr repeat(3,1fr);gap:32px}
.mt-foot h3{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 12px;font-weight:700}
.mt-foot ul{list-style:none;margin:0;padding:0}
.mt-foot li a{display:inline-block;padding:4px 0;text-decoration:none;font-size:14.5px}
.mt-foot li a:hover{color:var(--brand);text-decoration:underline}
.mt-foot p{color:var(--muted);font-size:14px;margin:12px 0 0;max-width:34ch}
.mt-foot-bot{margin-top:36px;padding-top:20px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:12px 24px;justify-content:space-between;color:var(--muted);font-size:13.5px}
.mt-foot-bot a{text-decoration:none}.mt-foot-bot a:hover{text-decoration:underline}
@media (max-width:860px){.mt-foot-grid{grid-template-columns:1fr 1fr}.mt-foot-grid>:first-child{grid-column:1/-1}}
@media (max-width:480px){.mt-foot-grid{grid-template-columns:1fr}}

/* ---------- own pages ---------- */
body.mt-body{margin:0;background:var(--bg,#f6f7fb)}
.mt-page{background:var(--bg);min-height:60vh}
.mt-wrap{max-width:1240px;margin:0 auto;padding:0 clamp(16px,3vw,32px)}
.mt-crumbs{padding:22px 0 0;font-size:13.5px;color:var(--muted)}
.mt-crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.mt-crumbs li+li::before{content:"/";margin-right:6px;opacity:.5}
.mt-crumbs a{text-decoration:none}.mt-crumbs a:hover{color:var(--brand);text-decoration:underline}
.mt-hero{padding:clamp(40px,7vw,96px) 0 clamp(32px,5vw,64px);position:relative;overflow:hidden}
.mt-hero::before{content:"";position:absolute;inset:-20% -10% auto auto;width:640px;height:640px;background:radial-gradient(closest-side,rgba(67,56,202,.28),transparent);filter:blur(10px);z-index:0;pointer-events:none}
.mt-hero::after{content:"";position:absolute;left:-12%;top:30%;width:520px;height:520px;background:radial-gradient(closest-side,rgba(8,145,178,.22),transparent);z-index:0;pointer-events:none}
.mt-hero .mt-wrap{position:relative;z-index:1;display:grid;grid-template-columns:1.25fr .75fr;gap:48px;align-items:center}
.mt-kicker{display:inline-flex;align-items:center;gap:8px;font:600 13px var(--font);color:var(--brand);background:color-mix(in srgb,var(--brand) 12%,transparent);padding:7px 14px;border-radius:99px;margin:0 0 20px}
.mt-kicker i{width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block}
.mt-hero h1{font-size:clamp(36px,5.6vw,72px);line-height:1.04;letter-spacing:-.035em;margin:0 0 20px;font-weight:800;text-wrap:balance}
.mt-hero h1 em{font-style:normal;background:linear-gradient(100deg,var(--g1),var(--g2));-webkit-background-clip:text;background-clip:text;color:transparent}
.mt-lead{font-size:clamp(17px,1.5vw,20px);color:var(--muted);max-width:56ch;margin:0 0 30px;text-wrap:pretty}
.mt-btns{display:flex;flex-wrap:wrap;gap:12px}
.mt-btn{display:inline-flex;align-items:center;gap:8px;font:600 15px var(--font);text-decoration:none;padding:14px 24px;border-radius:14px;transition:transform .2s,box-shadow .2s,background .2s;border:1px solid var(--line);background:var(--surface);color:var(--ink)}
.mt-btn:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.mt-btn.pri{background:var(--brand);color:var(--brand-ink);border-color:transparent}
.mt-stats{display:grid;gap:14px}
.mt-stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:20px 22px;box-shadow:var(--shadow);display:flex;align-items:center;gap:18px}
.mt-stat b{font-size:38px;letter-spacing:-.03em;line-height:1;background:linear-gradient(100deg,var(--g1),var(--g2));-webkit-background-clip:text;background-clip:text;color:transparent;min-width:2.4ch}
.mt-stat span{color:var(--muted);font-size:14.5px}
@media (max-width:860px){.mt-hero .mt-wrap{grid-template-columns:1fr}.mt-stats{grid-template-columns:repeat(3,1fr)}.mt-stat{flex-direction:column;align-items:flex-start;gap:6px;padding:16px}.mt-stat b{font-size:30px}}
.mt-sec{padding:clamp(28px,4vw,56px) 0}
.mt-sec h2{font-size:clamp(26px,3vw,38px);letter-spacing:-.025em;margin:0 0 8px;line-height:1.15;text-wrap:balance}
.mt-sec>.mt-wrap>p.sub{margin:0 0 28px;color:var(--muted);max-width:60ch}
.mt-bento{display:grid;grid-template-columns:repeat(6,1fr);gap:18px}
.mt-card{grid-column:span 2;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:26px;box-shadow:var(--shadow);position:relative;display:flex;flex-direction:column;gap:10px;transition:transform .25s,border-color .25s}
.mt-card:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--brand) 45%,var(--line))}
.mt-card.wide{grid-column:span 3}.mt-card.big{grid-column:span 4}
.mt-card h3{margin:0;font-size:20px;letter-spacing:-.02em}
.mt-card h3 a{text-decoration:none}.mt-card h3 a::after{content:"";position:absolute;inset:0;border-radius:var(--r)}
.mt-card p{margin:0;color:var(--muted);font-size:15px}
.mt-card .tag{align-self:flex-start;font:600 11px var(--font);letter-spacing:.07em;text-transform:uppercase;color:var(--brand);background:color-mix(in srgb,var(--brand) 12%,transparent);padding:4px 10px;border-radius:99px}
.mt-card ul{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.mt-card ul a{position:relative;z-index:2;display:inline-block;font-size:13px;padding:5px 11px;border-radius:99px;background:var(--surface-2);text-decoration:none}
.mt-card ul a:hover{background:var(--brand);color:var(--brand-ink)}
.mt-card .go{margin-top:auto;font-weight:600;font-size:14px;color:var(--brand)}
.mt-card.grad{background:linear-gradient(135deg,#4338ca,#0e7490);color:#fff;border:0}
.mt-card.grad p,.mt-card.grad .go{color:rgba(255,255,255,.86)}
.mt-card.grad .tag{background:rgba(255,255,255,.18);color:#fff}
.mt-card.grad ul a{background:rgba(255,255,255,.16);color:#fff}
.mt-card.grad ul a:hover{background:#fff;color:#312e81}
@media (max-width:980px){.mt-bento{grid-template-columns:repeat(2,1fr)}.mt-card,.mt-card.wide,.mt-card.big{grid-column:span 1}.mt-card.big{grid-column:1/-1}}
@media (max-width:600px){.mt-bento{grid-template-columns:1fr}}
.mt-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.mt-list a{display:block;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px 18px;text-decoration:none;font-weight:600;transition:border-color .2s,transform .2s}
.mt-list a:hover{border-color:var(--brand);transform:translateY(-2px)}
.mt-list small{display:block;font-weight:400;color:var(--muted);margin-top:2px}

/* tree (structure) */
.mt-tree details{background:var(--surface);border:1px solid var(--line);border-radius:14px;margin:0 0 12px;overflow:hidden}
.mt-tree summary{cursor:pointer;list-style:none;padding:16px 20px;font-weight:700;display:flex;align-items:center;gap:12px;justify-content:space-between}
.mt-tree summary::-webkit-details-marker{display:none}
.mt-tree summary::after{content:"+";font-size:22px;color:var(--brand);line-height:1}
.mt-tree details[open]>summary::after{content:"−"}
.mt-tree summary small{font-weight:500;color:var(--muted);margin-left:auto}
.mt-tree .in{padding:4px 20px 18px;border-top:1px solid var(--line)}
.mt-tree h4{margin:18px 0 6px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.mt-tree ul{list-style:none;margin:0;padding:0;columns:3 260px;column-gap:24px}
.mt-tree li{break-inside:avoid}
.mt-tree li a{display:block;padding:5px 0;text-decoration:none;font-size:14.5px;border-bottom:1px dashed transparent}
.mt-tree li a:hover{color:var(--brand);border-bottom-color:var(--brand)}
.mt-tree li a span{color:var(--muted);font-size:12px;margin-left:6px}

/* article / prose */
.mt-article{max-width:820px;margin:0 auto;padding:clamp(24px,4vw,48px) 0 clamp(48px,6vw,96px)}
.mt-article>h1{font-size:clamp(32px,4.6vw,52px);line-height:1.08;letter-spacing:-.03em;margin:14px 0 22px;text-wrap:balance}
.mt-prose{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:clamp(22px,4vw,44px);box-shadow:var(--shadow);font-size:17px;line-height:1.75}
.mt-prose h2,.mt-prose h3{letter-spacing:-.02em;line-height:1.25;margin:1.6em 0 .5em}
.mt-prose h2{font-size:1.6em}.mt-prose h3{font-size:1.25em}
.mt-prose>*:first-child{margin-top:0}
.mt-prose p{margin:0 0 1.1em;text-wrap:pretty}
.mt-prose a{color:var(--brand);text-underline-offset:3px}
.mt-prose img{max-width:100%;height:auto;border-radius:14px}
.mt-prose ul,.mt-prose ol{padding-left:1.3em}.mt-prose li{margin:.3em 0}
.mt-prose blockquote{margin:1.4em 0;padding:.4em 1.2em;border-left:4px solid var(--brand);background:var(--surface-2);border-radius:0 12px 12px 0}
.mt-prose table{border-collapse:collapse;width:100%}.mt-prose td,.mt-prose th{border:1px solid var(--line);padding:8px 12px;text-align:left}
.mt-grid-articles{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px;margin-top:8px}
.mt-grid-articles article{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:22px;box-shadow:var(--shadow);position:relative}
.mt-grid-articles h2,.mt-grid-articles h3{font-size:19px;margin:0 0 8px;letter-spacing:-.015em}
.mt-grid-articles a{text-decoration:none}.mt-grid-articles a::after{content:"";position:absolute;inset:0}
.mt-grid-articles p{color:var(--muted);font-size:15px;margin:0}
.mt-meta{font-size:13px;color:var(--muted);margin-bottom:6px}
@media (prefers-reduced-motion:reduce){.mt-bar *,.mt-page *,.mt-foot *{animation:none!important;transition:none!important}}

.mt-forum{display:grid;grid-template-columns:1fr auto;gap:2px 16px;padding:14px 0;border-bottom:1px solid var(--line)}
.mt-forum span{color:var(--muted);grid-column:1}.mt-forum small{grid-row:1/3;grid-column:2;align-self:center;color:var(--muted)}
.mt-lead{font-size:19px;color:var(--muted);margin:0 0 22px}
.mt-ph{aspect-ratio:31/15;border-radius:12px;margin-bottom:12px;display:grid;place-items:center;background:linear-gradient(135deg,color-mix(in srgb,var(--g1) 30%,var(--surface-2)),color-mix(in srgb,var(--g2) 28%,var(--surface-2)))}
.mt-ph span{font:800 56px var(--font);color:color-mix(in srgb,var(--ink) 70%,transparent);letter-spacing:-.04em}
/* страховка: прелоадеры тем не должны зависать, если их скрипт не загрузился */
@keyframes mt-pre{to{opacity:0;visibility:hidden;pointer-events:none}}
[class*="-preloader-wrap"]{animation:mt-pre .4s ease 3.5s forwards}
