@font-face{font-family:Inter;font-weight:100 900;font-display:swap;src:url(/app/static/fonts/inter-cyrillic-wght-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Inter;font-weight:100 900;font-display:swap;src:url(/app/static/fonts/inter-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  --bg-page:#000; --bg-surface:#121214; --bg-raised:#1d1d20; --bg-sheet:#17171a;
  --line-default:#27272b; --line-strong:#3b3b41;
  --text-primary:#fff; --text-secondary:#a1a1aa; --text-muted:#8b8b94; --text-on-accent:#001b1f;
  --accent-cyan:#00d3e6; --accent-cyan-soft:#062a30;
  --accent-pink:#ff3985; --accent-pink-soft:#2c0e1b;
  --accent-amber:#ffb020; --accent-violet:#8a5cff;
  --status-down:#ffb020;
  --radius-card:20px; --radius-pill:100px; --container:1120px; --header:64px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{background:var(--bg-page);color:var(--text-primary);font:16px/1.55 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img,picture{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
ol,ul{list-style:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
:focus-visible{outline:2px solid var(--accent-cyan);outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:12px;top:-60px;z-index:60;background:var(--accent-cyan);color:var(--text-on-accent);padding:10px 16px;border-radius:12px;font-weight:700}
.skip:focus{top:12px}
.wrap{width:min(var(--container),100% - 40px);margin:0 auto}
@media (min-width:768px){.wrap{width:min(var(--container),100% - 64px)}}
@media (min-width:1280px){.wrap{width:min(var(--container),100% - 40px)}}

/* шапка: один источник разметки chrome.py, порог бургера 1024 */
.top{position:sticky;top:0;z-index:30;background:rgba(0,0,0,.72);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid rgba(255,255,255,.06)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;height:var(--header)}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:18px}
.brand img{width:34px;height:34px}
.brand i{font-style:normal;color:var(--accent-pink)}
.brand b{color:var(--accent-cyan);font-weight:700}
.nav{display:flex;align-items:center;gap:22px;color:var(--text-secondary);font-size:15px}
.nav a.link:hover,.nav a.link[aria-current]{color:var(--text-primary)}
.nav a.link[aria-current]{font-weight:600;box-shadow:0 2px 0 var(--accent-cyan)}
.burger{display:none;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;margin-right:-8px}
@media (max-width:1024px){.nav a.link{display:none}.nav{gap:8px}.burger{display:inline-flex}}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 26px;border-radius:var(--radius-pill);font-weight:700;font-size:15px;line-height:22px;text-align:center;transition:transform .15s,box-shadow .2s}
.btn:hover{transform:translateY(-1px)}
.btn.cyan{background:var(--accent-cyan);color:var(--text-on-accent);box-shadow:0 8px 30px rgba(0,211,230,.25)}
.btn.ghost{box-shadow:inset 0 0 0 1.5px var(--line-default)}
.btn.ghost:hover{box-shadow:inset 0 0 0 1.5px var(--text-muted)}
.btn.sm{padding:10px 20px;font-size:14px;min-height:40px}

/* мобильное меню */
.menu{position:fixed;inset:0;z-index:50;background:var(--bg-page);overflow-y:auto;display:flex;flex-direction:column;padding:0 20px 24px}
.menu[hidden]{display:none}
.menu-top{display:flex;align-items:center;justify-content:space-between;height:var(--header);flex:none}
.menu-close{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;margin-right:-8px}
.menu-main{display:flex;flex-direction:column;margin-top:8px}
.menu-main a{font-size:20px;font-weight:600;min-height:52px;display:flex;align-items:center;border-bottom:1px solid var(--line-default)}
.menu-label{margin-top:28px;font-size:12px;font-weight:600;letter-spacing:.04em;color:var(--text-muted)}
.menu-sections{display:flex;flex-direction:column;margin-top:6px}
.menu-sections a{color:var(--text-secondary);font-size:16px;min-height:44px;display:flex;align-items:center}
.menu-actions{margin-top:auto;padding-top:28px;display:grid;gap:10px}

/* типографика заголовков по ТЗ 7.4 */
h1{font-weight:800;font-size:52px;line-height:60px;letter-spacing:-.01em}
h2{font-weight:800;font-size:30px;line-height:38px}
h3{font-weight:700;font-size:22px;line-height:29px}
@media (max-width:1279px){h1{font-size:40px;line-height:48px}h2{font-size:28px;line-height:35px}h3{font-size:21px}}
@media (max-width:767px){h1{font-size:30px;line-height:37px}h2{font-size:24px;line-height:30px}h3{font-size:20px;line-height:27px}}
.eyebrow{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.c-cyan{color:var(--accent-cyan)}.c-pink{color:var(--accent-pink)}.c-amber{color:var(--accent-amber)}.c-violet{color:var(--accent-violet)}
.lead{color:var(--text-secondary);font-size:20px;line-height:31px}
@media (max-width:1279px){.lead{font-size:18px;line-height:29px}}
@media (max-width:767px){.lead{font-size:17px;line-height:27px}}
.label{font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--text-muted)}

/* крошки, герой, поиск, чипы */
.crumbs{padding:20px 0 0;font-size:12px;color:var(--text-muted)}
.crumbs ol{display:flex;flex-wrap:wrap;gap:6px 10px}
.crumbs li+li::before{content:"/";margin-right:10px;color:var(--line-strong)}
.crumbs a:hover{color:var(--text-primary)}
.crumbs [aria-current]{color:var(--text-secondary)}
.hero{padding:28px 0 8px}
.hero h1{margin-top:12px;max-width:900px}
.hero h1 em{display:block;font-style:normal;color:var(--accent-pink)}
.hero .lead{margin-top:20px;max-width:760px}
.search{position:relative;display:flex;align-items:center;gap:10px;margin-top:28px;max-width:420px;height:44px;padding:0 16px;border-radius:var(--radius-pill);background:var(--bg-surface);border:1px solid var(--line-default);color:var(--text-muted)}
.search:focus-within{border-color:var(--accent-cyan)}
.search input{flex:1;min-width:0;background:none;border:0;color:var(--text-primary);font:inherit;font-size:14px;outline:none}
.search input::placeholder{color:var(--text-muted)}
.chips{display:flex;gap:8px;margin:22px 0 0;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:4px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;scroll-snap-align:start;display:inline-flex;align-items:center;min-height:36px;padding:0 17px;border-radius:var(--radius-pill);background:var(--bg-surface);border:1px solid var(--line-default);font-size:14px;font-weight:500;color:var(--text-secondary);white-space:nowrap}
.chip:hover{border-color:var(--line-strong);color:var(--text-primary)}
.chip.on{background:var(--accent-cyan);border-color:var(--accent-cyan);color:var(--text-on-accent);font-weight:700}
@media (max-width:767px){.chip{min-height:44px}.chips{margin-right:-20px;padding-right:20px}}

/* карточки */
.block{margin-top:56px}
.block>h2{margin-bottom:24px}
.grid{display:grid;gap:24px;grid-template-columns:1fr}
@media (min-width:768px){.grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1280px){.grid{grid-template-columns:repeat(3,1fr)}}
.card{position:relative;display:flex;flex-direction:column;background:var(--bg-surface);border:1px solid var(--line-default);border-radius:var(--radius-card);overflow:hidden;transition:border-color .2s,transform .15s}
.card:hover{border-color:var(--line-strong);transform:translateY(-2px)}
.card-cover{aspect-ratio:16/9;background:var(--accent-cyan-soft);overflow:hidden}
.card-cover img,.card-cover picture{width:100%;height:100%;object-fit:cover}
.card-cover picture{display:block}
.card-cover img.auto{object-position:left center}
.card-body{display:flex;flex-direction:column;gap:8px;padding:20px 22px 22px;flex:1}
.card .eyebrow{font-size:12px;font-weight:600}
.card h3{font-size:19px;line-height:25px}
.card-link::after{content:"";position:absolute;inset:0}
.card-text{color:var(--text-secondary);font-size:15px;line-height:22px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.card-meta{margin-top:auto;padding-top:6px;display:flex;align-items:center;gap:6px;color:var(--text-muted);font-size:12px}
.card.feat{margin-top:40px}
.card.feat .card-cover{aspect-ratio:16/9}
.card.feat h2{font-size:28px;line-height:34px}
.badge{align-self:flex-start;background:var(--accent-pink-soft);color:var(--accent-pink);border-radius:var(--radius-pill);padding:4px 12px;font-size:12px;font-weight:600}
.card.feat .btn{align-self:flex-start;margin-top:10px}
@media (min-width:1280px){.card.feat{flex-direction:row}.card.feat .card-cover{flex:1 1 50%;aspect-ratio:auto;min-height:340px}.card.feat .card-body{flex:1 1 50%;padding:36px 40px;justify-content:center}}
.notice{margin-top:24px;color:var(--text-secondary);font-size:15px}
.notice a{color:var(--accent-cyan);font-weight:700}
.pager{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:40px;flex-wrap:wrap}
.pg{min-width:36px;height:36px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-pill);background:var(--bg-surface);border:1px solid var(--line-default);font-size:14px;font-weight:500;color:var(--text-secondary)}
.pg.on{background:var(--accent-cyan);border-color:var(--accent-cyan);color:var(--text-on-accent);font-weight:700}
.pg.off,.pg.gap{background:none;border-color:transparent;color:var(--line-strong)}
@media (max-width:767px){.pg{min-width:44px;height:44px}}
.tiles{display:grid;gap:16px;grid-template-columns:repeat(2,1fr)}
@media (min-width:768px){.tiles{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1280px){.tiles{grid-template-columns:repeat(4,1fr)}}
.tile{display:flex;flex-direction:column;gap:8px;padding:20px 21px;background:var(--bg-surface);border:1px solid var(--line-default);border-radius:16px;min-height:150px}
.tile:hover{border-color:var(--accent-cyan)}
.tile h3{font-size:17px;line-height:23px}
.tile p{color:var(--text-secondary);font-size:14px;line-height:21px}
.tile span{margin-top:auto;color:var(--accent-cyan);font-size:13px;font-weight:600}
@media (max-width:767px){.tile p{display:none}.tile{min-height:0}}

/* призыв */
.cta{margin:56px 0 0;padding:32px;background:linear-gradient(125deg,#062a30 0%,#121214 50%,#2c0e1b 100%);border:1.5px solid var(--accent-cyan);border-radius:24px}
.cta h2{margin-top:10px;font-size:26px;line-height:33px;max-width:700px}
.cta p:not(.eyebrow){margin-top:10px;color:var(--text-secondary);font-size:16px;max-width:700px}
.cta-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}
@media (max-width:767px){.cta{padding:24px 20px}.cta h2{font-size:22px;line-height:28px}}

/* подвал */
.foot{margin-top:72px;padding:36px 0 44px;border-top:1px solid var(--line-default);color:var(--text-muted);font-size:13px}
.foot-brand{font-weight:700;font-size:16px;color:var(--text-primary)}
.foot-links{margin-top:14px;line-height:2}
.foot-legal{margin-top:10px}
.foot a:hover{color:var(--text-primary)}
.foot a{display:inline-block;padding:4px 0}

/* статья */
.art-head{padding:24px 0 0}
.art-head h1{font-size:44px;line-height:52px;margin-top:12px;max-width:1000px}
@media (max-width:1279px){.art-head h1{font-size:40px;line-height:48px}}
@media (max-width:767px){.art-head h1{font-size:30px;line-height:37px}}
.byline{display:flex;align-items:center;flex-wrap:wrap;gap:14px 22px;margin-top:24px;font-size:12px;color:var(--text-muted)}
.avatar{width:40px;height:40px;border-radius:50%;background:var(--accent-cyan-soft);color:var(--accent-cyan);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}
.who{display:flex;flex-direction:column}
.who b{color:var(--text-primary);font-size:14px;font-weight:600}
.who b a:hover{text-decoration:underline}
.avatar.big{width:96px;height:96px;font-size:30px;flex:none}
.author-head{display:flex;align-items:center;gap:24px;margin-top:16px}
.author-head h1{margin-top:0}
.author-role{margin-top:6px;color:var(--text-secondary);font-size:18px;line-height:27px}
.author-links{display:flex;flex-wrap:wrap;gap:8px 12px;margin-top:20px}
.author-links a{display:inline-flex;align-items:center;min-height:36px;padding:0 17px;border-radius:var(--radius-pill);background:var(--bg-surface);border:1px solid var(--line-default);font-size:14px;font-weight:500;color:var(--text-secondary)}
.author-links a:hover{border-color:var(--line-strong);color:var(--text-primary)}
@media (max-width:767px){.author-head{flex-direction:column;align-items:flex-start;gap:16px}.avatar.big{width:72px;height:72px;font-size:24px}.author-links a{min-height:44px}}
.dates{display:flex;flex-wrap:wrap;gap:4px 18px}
.dates time{font-weight:600}
.art-head .lead{margin-top:28px;max-width:960px}
.cover{margin:32px 0 0;max-width:760px}
.cover img,.cover picture{width:100%;height:auto;border-radius:var(--radius-card)}
.cover figcaption{margin-top:10px;font-size:12px;color:var(--text-muted)}
.art-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:0;margin-top:24px}
.prose{max-width:760px;min-width:0}
.side{display:none}
@media (min-width:1280px){.art-layout{grid-template-columns:760px 296px;gap:64px}.side{display:flex;flex-direction:column;gap:24px;position:sticky;top:calc(var(--header) + 24px);align-self:start}}
.prose{font-size:18px;line-height:30px;color:var(--text-secondary)}
@media (max-width:1279px){.prose{font-size:18px;line-height:29px}}
@media (max-width:767px){.prose{font-size:17px;line-height:27px}}
.prose h2{margin:48px 0 16px;color:var(--text-primary);scroll-margin-top:calc(var(--header) + 16px)}
.prose h3{margin:32px 0 12px;color:var(--text-primary);scroll-margin-top:calc(var(--header) + 16px)}
.prose p,.prose ul,.prose ol,.prose blockquote,.prose pre,.prose figure,.prose .table-wrap{margin:16px 0}
.prose ul,.prose ol{padding-left:26px}
.prose ul{list-style:disc}.prose ol{list-style:decimal}
.prose li{margin:6px 0;padding-left:4px}
.prose a{color:var(--accent-cyan);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.prose a:hover{text-decoration-thickness:2px}
.prose strong{color:var(--text-primary)}
.prose blockquote{padding:4px 0 4px 18px;border-left:3px solid var(--line-strong)}
.prose code{font:13.5px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--bg-raised);padding:2px 6px;border-radius:6px;color:var(--text-primary)}
.prose pre{background:var(--bg-surface);border:1px solid var(--line-default);border-radius:14px;padding:16px;overflow-x:auto}
.prose pre code{background:none;padding:0}
.prose figure img,.prose figure picture{width:100%;height:auto;border-radius:16px}
.prose figcaption{margin-top:8px;font-size:12px;color:var(--text-muted)}
.table-wrap{overflow-x:auto;border:1px solid var(--line-default);border-radius:14px}
.prose table{width:100%;border-collapse:collapse;font-size:15px;line-height:22px}
.prose th,.prose td{text-align:left;padding:12px 16px;border-bottom:1px solid var(--line-default);vertical-align:top}
.prose th{font-size:14px;font-weight:600;color:var(--text-primary);background:var(--bg-surface)}
.prose tr:last-child td{border-bottom:0}
.callout{margin:24px 0;padding:18px 20px;border-radius:16px;border:1px solid var(--line-default);font-size:15px;line-height:23px;background:var(--bg-surface)}
.callout.tip{background:var(--accent-cyan-soft);border-color:rgba(0,211,230,.45)}
.callout.warning{background:#2b1d05;border-color:rgba(255,176,32,.5)}
.callout p{margin:6px 0}
.callout-title{font-weight:600;color:var(--text-primary)}
.summary{margin:28px 0 8px;padding:20px 22px;border:1px solid var(--line-default);border-radius:16px;background:var(--bg-surface);font-size:16px;line-height:24px}
.summary ul{list-style:disc;padding-left:20px;margin-top:10px}
.summary li{margin:6px 0}
.toc,.toc-m{margin:0}
.toc ol{margin-top:12px;display:flex;flex-direction:column;gap:2px}
.toc a{display:block;padding:6px 0 6px 14px;border-left:2px solid var(--line-default);font-size:14px;color:var(--text-secondary);font-weight:500}
.toc li li a{padding-left:28px}
.toc a:hover{color:var(--text-primary)}
.toc a.on{color:var(--accent-cyan);border-left-color:var(--accent-cyan)}
.toc-m{margin:24px 0;border:1px solid var(--line-default);border-radius:16px;background:var(--bg-surface)}
.toc-m summary{cursor:pointer;padding:14px 18px;min-height:44px;font-weight:600;color:var(--text-primary);list-style:none}
.toc-m summary::-webkit-details-marker{display:none}
.toc-m summary::after{content:"+";float:right;color:var(--accent-cyan)}
.toc-m[open] summary::after{content:"−"}
.toc-m ol{padding:0 18px 14px;display:flex;flex-direction:column}
.toc-m a{display:block;padding:9px 0;min-height:44px;color:var(--text-secondary);font-size:15px}
@media (min-width:1280px){.toc-m{display:none}}
.side-cta{padding:20px;border:1px solid var(--accent-cyan);border-radius:16px;background:linear-gradient(125deg,#062a30,#121214)}
.side-cta b{display:block;font-size:19px;line-height:25px;color:var(--text-primary)}
.side-cta p{margin:8px 0 14px;font-size:14px;color:var(--text-secondary)}
.side-cta a{font-size:14px;font-weight:700;color:var(--accent-cyan)}
.faq{margin-top:48px}
.faq h2{margin:0 0 16px}
.faq-item{border:1px solid var(--line-default);border-radius:16px;background:var(--bg-surface);margin:10px 0}
.faq-item summary{cursor:pointer;list-style:none;padding:16px 56px 16px 20px;min-height:44px;font-size:16px;font-weight:600;color:var(--text-primary);position:relative}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";position:absolute;right:20px;top:50%;transform:translateY(-50%);font-size:20px;font-weight:400;color:var(--accent-cyan)}
.faq-item[open] summary::after{content:"−"}
.faq-a{padding:0 20px 18px;font-size:16px;line-height:25px}
.faq-a p{margin:8px 0}
.changes,.sources{margin-top:40px;font-size:14px;line-height:22px}
.changes h2,.sources h2{font-size:22px;line-height:29px;margin:0 0 12px}
.changes li,.sources li{margin:6px 0}
.changes time{font-weight:600;color:var(--text-primary)}
.sources a{color:var(--accent-cyan)}
.related{margin-top:64px}

/* предпросмотр, поиск, ошибки, пачка */
.preview-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:10px 20px;background:var(--status-down);color:#2b1d05;font-size:14px;line-height:20px;position:relative;z-index:35}
.preview-bar b{background:#2b1d05;color:var(--status-down);padding:3px 10px;border-radius:var(--radius-pill);font-size:12px}
.found{margin-top:28px;font-size:18px;color:var(--text-secondary)}
.empty{margin-top:32px;padding:28px;border:1px solid var(--line-default);border-radius:var(--radius-card);background:var(--bg-surface)}
.empty h2{font-size:22px;line-height:29px}
.empty p{margin:8px 0 18px;color:var(--text-secondary)}
.err{padding-top:56px}
.err-code{font-size:120px;line-height:120px;font-weight:800;color:var(--accent-cyan);letter-spacing:-.02em}
@media (max-width:767px){.err-code{font-size:72px;line-height:72px}}
.err h1{margin-top:12px;font-size:40px;line-height:48px}
.err .lead{margin-top:16px;max-width:760px}
.err .search,.err .chips{margin-top:24px}
.err-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.batch{margin-top:24px;display:flex;flex-direction:column;gap:10px}
.batch li{display:flex;flex-direction:column;gap:4px;padding:16px 20px;border:1px solid var(--line-default);border-radius:16px;background:var(--bg-surface)}
.batch a{color:var(--accent-cyan);font-weight:600}
.batch span{color:var(--text-muted);font-size:13px}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
