@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/ibm-plex-mono-400-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/ibm-plex-mono-400-latin.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}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/ibm-plex-mono-500-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/ibm-plex-mono-500-latin.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}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url(../fonts/inter-400-600-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url(../fonts/inter-400-600-latin.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}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:600 800;font-display:swap;src:url(../fonts/inter-tight-600-800-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:600 800;font-display:swap;src:url(../fonts/inter-tight-600-800-latin.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:#fff;--ink:#0D1321;--muted:#5E6675;--line:#E6E8EE;--panel:#F3F5F8;
  --navy:#0D1321;--navy2:#1C2436;--lime:#C6F135;--blue:#2F4BE0;
  --head:"Inter Tight",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --wrap:1240px;--r:18px;--hd:68px;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--hd) + 16px)}
html.lock{overflow:hidden}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.55 var(--sans);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,h4,p,ul,ol,figure,blockquote{margin:0;padding:0}
ul,ol{list-style:none}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
[hidden]{display:none!important}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.hd :focus-visible,.ft :focus-visible{outline-color:var(--lime)}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.sr,.skip{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip:focus{position:fixed;left:12px;top:12px;width:auto;height:auto;clip:auto;background:var(--lime);color:var(--ink);padding:10px 14px;border-radius:10px;z-index:99;font-weight:600}
.center{text-align:center}

/* типові елементи */
.t{font-family:var(--head);font-weight:700;letter-spacing:-.015em;transition:color .15s}
a:hover>.t,a:hover .card-b .t,a.t:hover,.row:hover .t,.guide:hover .t{color:var(--blue)}
.pill{display:inline-flex;align-items:center;gap:6px;font:600 12px/1.3 var(--sans);padding:4px 10px;border-radius:99px;background:var(--panel);color:var(--ink)}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--blue);flex:none}
.meta{font:500 12px/1.4 var(--mono);color:var(--muted)}
.ex{color:var(--muted);font-size:14.5px}
.btn{display:inline-flex;align-items:center;gap:8px;background:var(--ink);color:#fff;font:600 14px var(--sans);padding:12px 20px;border-radius:99px;transition:background .15s}
.btn:hover{background:var(--blue)}

/* шапка */
.hd{background:var(--navy);color:#fff;position:sticky;top:0;z-index:20}
.hd-in{display:flex;align-items:center;gap:26px;height:var(--hd)}
.logo{font:800 26px/1 var(--head);letter-spacing:-.03em;display:inline-flex;align-items:center;white-space:nowrap;margin:0}
.logo a{display:inline-flex;align-items:center}
.logo .d{width:9px;height:9px;background:var(--lime);border-radius:2px;display:inline-block;margin:0 3px 0 2px;transform:translateY(5px)}
.nav{display:flex;gap:20px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none}
.nav::-webkit-scrollbar{display:none}
.nav a{font:600 14px var(--sans);white-space:nowrap;opacity:.82;padding:8px 0;transition:opacity .15s,color .15s}
.nav a:hover,.nav a.on{opacity:1;color:var(--lime)}
.ic{width:40px;height:40px;border-radius:12px;background:var(--navy2);display:inline-flex;align-items:center;justify-content:center;flex:none;transition:background .15s}
.ic:hover,.ic[aria-expanded=true]{background:var(--lime);color:var(--ink)}
.burger{display:none}
.searchbar{background:var(--navy);border-top:1px solid var(--navy2);padding:14px 0 18px}
.sf{display:flex;gap:8px;max-width:640px}
.sf input{flex:1;min-width:0;font:400 16px var(--sans);padding:12px 18px;border-radius:99px;border:1px solid var(--line);background:#fff;color:var(--ink)}
.sf button{background:var(--lime);color:var(--ink);font:600 14px var(--sans);padding:0 20px;border-radius:99px}
.sf button:hover{filter:brightness(.95)}
.drawer{position:fixed;inset:var(--hd) 0 0 0;background:var(--navy);overflow-y:auto;padding:20px 0 40px}
.drawer-nav{display:flex;flex-direction:column;margin-top:18px}
.drawer-nav a{font:700 22px/1.2 var(--head);padding:13px 0;border-bottom:1px solid var(--navy2)}
.drawer-nav a.on{color:var(--lime)}
.drawer-sub{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:22px}
.drawer-sub a{font-size:14px;color:#AEB6C6}

/* рядок тем */
.chips{border-bottom:1px solid var(--line)}
.chips-in{display:flex;gap:8px;padding-top:12px;padding-bottom:12px;overflow-x:auto;scrollbar-width:none}
.chips-in::-webkit-scrollbar{display:none}
.chips a,.art-tags a{font:600 13px var(--sans);padding:7px 14px;border-radius:99px;border:1px solid var(--line);white-space:nowrap;transition:border-color .15s}
.chips a:hover,.art-tags a:hover{border-color:var(--ink)}
.chips a.on{background:var(--lime);border-color:var(--lime)}

/* обкладинки й заглушки */
.ph{position:relative;overflow:hidden;border-radius:14px;aspect-ratio:3/2;background:radial-gradient(120% 90% at 85% 10%,var(--c2,#3355FF) 0,transparent 55%),radial-gradient(90% 90% at 10% 100%,var(--c3,#C6F135) 0,transparent 55%),var(--c1,#0D1321)}
.ph:not(.has-img)::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 95%,rgba(255,255,255,.08) 95%) 0 0/100% 22px,linear-gradient(90deg,transparent 95%,rgba(255,255,255,.08) 95%) 0 0/22px 100%}
.ph.has-img{background:var(--panel)}
.ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ph.round{border-radius:50%;aspect-ratio:1/1}
.g1{--c1:#0D1321;--c2:#3355FF;--c3:#C6F135}
.g2{--c1:#10241F;--c2:#18A07A;--c3:#C6F135}
.g3{--c1:#24120D;--c2:#FF6A2B;--c3:#FFC94D}
.g4{--c1:#170F2E;--c2:#8B5CF6;--c3:#3355FF}
.g5{--c1:#0B2230;--c2:#16B1D9;--c3:#C6F135}
.g6{--c1:#2A0F1A;--c2:#F43F5E;--c3:#FF9F43}

/* перший екран головної */
.hero{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;margin-top:24px}
.hero.solo{grid-template-columns:1fr}
.lead{position:relative;border-radius:var(--r);overflow:hidden;min-height:440px;display:flex;align-items:flex-end;color:#fff}
.lead .ph{position:absolute;inset:0;border-radius:0;aspect-ratio:auto}
.lead-in{position:relative;padding:32px;background:linear-gradient(transparent,rgba(5,8,16,.9) 48%);width:100%}
.lead .pill{background:var(--lime);color:var(--ink)}
.lead .pill::before{background:var(--ink)}
.lead .t{font-size:44px;line-height:1.04;margin:14px 0 10px;max-width:760px;letter-spacing:-.025em;font-weight:800}
.lead:hover .t{color:var(--lime)}
.lead .ex{color:#C9CFDA;max-width:620px;font-size:16px}
.lead .meta{color:#AEB6C6;margin-top:12px;display:block}
.toplist{background:var(--panel);border-radius:var(--r);padding:22px 22px 8px;align-self:start}
.toplist h2{font:800 18px var(--head);margin-bottom:6px}
.toplist li{display:grid;grid-template-columns:40px 1fr;gap:10px;padding:14px 0;border-bottom:1px solid var(--line);align-items:start}
.toplist li:last-child{border:0}
.toplist .n{width:32px;height:32px;border-radius:10px;background:var(--ink);color:var(--lime);font:500 14px var(--mono);display:flex;align-items:center;justify-content:center}
.toplist .t{font-size:16px;line-height:1.28;padding-top:4px}

/* секції */
.sec{margin-top:52px}
.sec-h{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.sec-h h2{font:800 30px/1.1 var(--head);letter-spacing:-.025em}
.sec-h h2 small{display:block;font:500 15px/1.4 var(--sans);letter-spacing:0;color:#3B4A12;margin-top:8px}
.more{font:600 14px var(--sans);display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.more span{width:34px;height:34px;border-radius:50%;background:var(--ink);color:var(--lime);display:inline-flex;align-items:center;justify-content:center;transition:transform .15s}
.more:hover span{transform:translateX(3px)}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 26px}
.card{display:block}
.card .pill{margin:14px 0 8px}
.card .t{font-size:21px;line-height:1.2;margin-bottom:8px}
.card .ex{margin-bottom:8px}
.band{background:var(--lime);margin-top:60px;padding:48px 0 52px}
.guides{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.guide{background:#fff;border-radius:var(--r);padding:20px;display:flex;flex-direction:column;gap:10px;min-height:200px;transition:transform .15s}
.guide:hover{transform:translateY(-3px)}
.guide .step{font:500 12px var(--mono);color:var(--muted)}
.guide .t{font-size:19px;line-height:1.2}
.guide .go{margin-top:auto;font:600 13px var(--sans);color:var(--blue)}
.cols2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 40px}
.cat h2{font:800 22px var(--head);display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:2px solid var(--ink);padding-bottom:10px;margin-bottom:4px}
.cat h2 a{font:600 13px var(--sans);color:var(--blue);white-space:nowrap}
.cat h2 a:hover{text-decoration:underline}
.row{display:grid;grid-template-columns:76px 1fr;gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}
.row .t{font-size:17px;line-height:1.25;margin:0 0 6px}

/* стрічка рубрики, пошук */
.arch-h{padding:36px 0 28px}
.arch-h h1{font:800 44px/1.05 var(--head);letter-spacing:-.03em}
.arch-h h1 small{font:500 16px var(--mono);color:var(--muted);letter-spacing:0;margin-left:8px}
.arch-d{color:var(--muted);max-width:720px;margin-top:12px;font-size:17px}
.arch-h .sf{margin-top:18px}
.arch-h .sf input{background:var(--panel)}
.arch-h .sf button{background:var(--ink);color:#fff}
.crumbs{font:500 12px/1.4 var(--mono);color:var(--muted);margin-bottom:14px}
.crumbs a:hover{color:var(--blue)}
.pager{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:44px}
.pager .page-numbers{min-width:42px;height:42px;padding:0 12px;border-radius:99px;border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;font:600 14px var(--sans)}
.pager a.page-numbers:hover{border-color:var(--ink)}
.pager .current{background:var(--ink);border-color:var(--ink);color:var(--lime)}
.empty{text-align:center;padding:72px 0 40px;max-width:560px;margin:0 auto}
.empty h1,.empty h2{font:800 34px/1.1 var(--head);letter-spacing:-.025em;margin-bottom:12px}
.empty p{color:var(--muted);margin-bottom:20px}
.empty .code{font:500 15px var(--mono);color:var(--blue);margin-bottom:8px}
.empty .sf{margin:0 auto}
.empty .sf input{background:var(--panel)}
.empty .sf button{background:var(--ink);color:#fff}

/* стаття */
.art-wrap{display:grid;grid-template-columns:minmax(0,760px) 320px;gap:56px;justify-content:space-between;align-items:start}
.art{min-width:0;padding-bottom:20px}
.art.page{max-width:760px;margin:0 auto}
.art-h{padding:32px 0 24px}
.art-h h1{font:800 46px/1.06 var(--head);letter-spacing:-.03em}
.art-lead{font-size:20px;line-height:1.5;color:var(--muted);margin-top:16px}
.art-meta{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:20px;font:500 12px/1.4 var(--mono);color:var(--muted)}
.art-meta .by{color:var(--ink)}
.art-cover{margin-bottom:28px}
.art-cover img{width:100%;border-radius:var(--r);aspect-ratio:16/9;object-fit:cover}
.art-cover figcaption,.prose figcaption,.prose .wp-caption-text{font:500 12px/1.5 var(--mono);color:var(--muted);margin-top:8px}
.prose{font-size:18px;line-height:1.7;overflow-wrap:break-word}
.prose>*+*{margin-top:1.15em}
.prose h2{font:800 30px/1.15 var(--head);letter-spacing:-.02em;margin-top:1.9em}
.prose h3{font:700 22px/1.25 var(--head);letter-spacing:-.01em;margin-top:1.7em}
.prose h4{font:700 18px/1.3 var(--head);margin-top:1.5em}
.prose a{color:var(--blue);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.prose a:hover{text-decoration-thickness:2px}
.prose ul,.prose ol{padding-left:1.4em}
.prose ul{list-style:disc}
.prose ol{list-style:decimal}
.prose li+li{margin-top:.45em}
.prose li::marker{color:var(--blue);font-weight:600}
.prose img{border-radius:14px}
.prose .wp-caption{max-width:100%}
.prose .aligncenter{margin-left:auto;margin-right:auto}
.prose blockquote{border-left:4px solid var(--lime);background:var(--panel);padding:18px 22px;border-radius:0 14px 14px 0}
.prose blockquote>*+*{margin-top:.8em}
.prose code{font:400 .88em var(--mono);background:var(--panel);padding:.15em .4em;border-radius:6px}
.prose pre{font:400 14.5px/1.6 var(--mono);background:var(--navy);color:#E7EAF0;padding:18px 20px;border-radius:14px;overflow-x:auto;tab-size:2}
.prose pre code{background:none;padding:0;font-size:inherit;color:inherit}
.prose hr{border:0;border-top:1px solid var(--line);margin:2em 0}
.prose .tbl{overflow-x:auto;border:1px solid var(--line);border-radius:14px}
.prose table{border-collapse:collapse;width:100%;font-size:16px;line-height:1.45}
.prose th,.prose td{padding:11px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.prose th{background:var(--panel);font:700 14px var(--head)}
.prose tr:last-child td{border-bottom:0}
.prose iframe,.prose video{max-width:100%;border-radius:14px}
.toc{background:var(--panel);border-radius:14px;padding:16px 20px}
.toc summary{font:800 16px var(--head);cursor:pointer}
.toc ol{list-style:none;padding:0;margin-top:10px;counter-reset:toc}
.toc li{counter-increment:toc;display:grid;grid-template-columns:30px 1fr;font-size:16px;line-height:1.4}
.toc li::before{content:counter(toc,decimal-leading-zero);font:500 12px/1.9 var(--mono);color:var(--blue)}
.toc li+li{margin-top:.5em}
.toc a{color:var(--ink);text-decoration:none}
.toc a:hover{color:var(--blue);text-decoration:underline}
.art-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:36px}
.rail{position:sticky;top:calc(var(--hd) + 24px);margin-top:32px}
.rel{background:var(--panel);margin-top:56px;padding:48px 0 56px}
.rel .card .pill{background:#fff}

/* підвал */
.ft{background:var(--navy);color:#fff;margin-top:72px;padding:48px 0 28px}
.rel+.ft{margin-top:0}
.ft-cols{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px}
.ft h2{font:600 13px var(--sans);color:var(--lime);margin-bottom:12px}
.ft li{margin:7px 0;font-size:14px;color:#C9CFDA}
.ft li a:hover{color:#fff;text-decoration:underline}
.ft p{color:#9AA3B5;font-size:14px;margin-top:12px;max-width:340px}
.ft-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 24px;margin-top:36px;padding-top:20px;border-top:1px solid var(--navy2);font:500 12px var(--mono);color:#8A93A6}

@media (max-width:1100px){
  .art-wrap{grid-template-columns:minmax(0,1fr)}
  .art{max-width:760px;margin:0 auto;width:100%}
  .rail{position:static;max-width:760px;margin:36px auto 0;width:100%}
}
@media (max-width:1024px){
  .hero{grid-template-columns:1fr}
  .grid3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .guides{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nav{display:none}
  .hd-in{justify-content:space-between}
  .hd-in .logo{margin-right:auto}
  .burger{display:inline-flex}
}
@media (max-width:760px){
  :root{--hd:58px}
  .wrap{padding:0 16px}
  .hd-in{gap:10px}
  .logo{font-size:23px}
  .hero{margin-top:16px}
  .lead{min-height:400px}
  .lead-in{padding:20px}
  .lead .t{font-size:28px}
  .sec{margin-top:40px}
  .sec-h h2{font-size:24px}
  .more b{display:none}
  .grid3{grid-template-columns:1fr;gap:22px}
  .grid3 .card{display:grid;grid-template-columns:120px 1fr;gap:14px;align-items:start}
  .grid3 .card .pill{margin:0 0 6px}
  .grid3 .card .t{font-size:17px;margin-bottom:6px}
  .grid3 .card .ex{display:none}
  .band{margin-top:44px;padding:36px 0 40px}
  .guides{gap:10px}
  .guide{min-height:160px;padding:16px}
  .guide .t{font-size:16px}
  .cols2{grid-template-columns:1fr;gap:32px}
  .arch-h{padding:24px 0 20px}
  .arch-h h1{font-size:32px}
  .art-h{padding:22px 0 18px}
  .art-h h1{font-size:31px}
  .art-lead{font-size:18px}
  .prose{font-size:17px}
  .prose h2{font-size:25px}
  .prose h3{font-size:20px}
  .prose pre{margin-left:-16px;margin-right:-16px;border-radius:0}
  .rel{padding:36px 0 40px}
  .ft{margin-top:52px;padding-top:36px}
  .ft-cols{grid-template-columns:1fr 1fr}
  .ft-cols>div:first-child{grid-column:1/-1}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{.hd,.ft,.rail,.rel,.chips,.toc{display:none}.art-wrap{display:block}}

/* ---------- Службові сторінки: картка співпраці ---------- */
.prose a.btn{color:#fff;text-decoration:none}
.prose .lead-p{font-size:20px;line-height:1.55}
.prose .upd{font:500 12px/1.5 var(--mono);color:var(--muted)}
.collab{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:32px 34px;box-shadow:0 12px 32px rgba(13,19,33,.07)}
.collab>*+*{margin-top:16px}
.collab-eye{display:flex;align-items:center;gap:10px;font:500 12px/1.3 var(--mono);text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.collab-eye::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--blue);flex:none}
.prose .collab h2{font-size:28px;line-height:1.2;margin-top:14px}
.prose a.collab-btn{display:inline-flex;align-items:center;gap:8px;background:var(--lime);color:var(--ink);font:700 15px var(--sans);padding:14px 26px;border-radius:99px;text-decoration:none;transition:background .15s,color .15s}
.prose a.collab-btn:hover{background:var(--ink);color:var(--lime)}
.collab-note{font-size:14px;line-height:1.55;color:var(--muted)}
@media (max-width:760px){
  .collab{padding:24px 20px}
  .prose .collab h2{font-size:24px}
  .prose .lead-p{font-size:18px}
  .prose a.collab-btn{width:100%;justify-content:center}
}
