/* AdsRiver — main stylesheet */

/* ── Fonts (self-hosted) ── */
@font-face{font-family:"Inter Tight";font-style:normal;font-weight:300 700;font-display:swap;src:url(../fonts/inter-tight-cyrillic-ext.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Inter Tight";font-style:normal;font-weight:300 700;font-display:swap;src:url(../fonts/inter-tight-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:300 700;font-display:swap;src:url(../fonts/inter-tight-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter Tight";font-style:normal;font-weight:300 700;font-display:swap;src:url(../fonts/inter-tight-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:"Outfit";font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/outfit-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Outfit";font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/outfit-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}

/* ── Tokens ── */
:root{
	--bg:#060A14;--bg-alt:#0A1222;--card:#0F182C;--card-hi:#142038;--chip:#111A2E;
	--line:#1A2540;--line-2:#2A3655;--muted:#8A96AD;--sub:#C9D2E3;--text:#fff;
	--accent:#38B6FF;--accent-2:#1E7BFF;--accent-3:#1560E0;--ink:#06101F;
	--warn:#FFB547;--ok:#3DDC97;--bad:#FF6B6B;
	--display:"Outfit","Inter Tight",sans-serif;--body:"Inter Tight",system-ui,-apple-system,"Segoe UI",sans-serif;
	--wrap:1290px;--prose:820px;--r:20px;--gutter:20px;
	--h1:clamp(46px,7.4vw,112px);--h1-inner:clamp(38px,5.2vw,72px);--h2:clamp(32px,4.6vw,60px);--h3:clamp(22px,2.2vw,30px);
}

/* ── Base ── */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:90px}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--body);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img,svg,video{max-width:100%;height:auto;display:block}
a{color:var(--text);text-decoration:none;transition:color .25s}
a:hover{color:var(--accent)}
h1,h2,h3,h4{margin:0;font-family:var(--display);font-weight:600;line-height:1.1;text-wrap:balance}
p{margin:0}
button{font:inherit}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.muted{color:var(--muted)}
.accent{color:var(--accent)}
.skip{position:absolute;left:-999px;top:8px;z-index:100;background:var(--accent);color:var(--ink);padding:10px 16px;border-radius:10px}
.skip:focus{left:8px}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:6px}

/* ── Buttons ── */
.btn{display:inline-flex;align-items:center;gap:14px;border:0;border-radius:50px;cursor:pointer;font-weight:600;line-height:1;white-space:nowrap;transition:background-position .9s ease,transform .3s ease,box-shadow .3s ease,gap .3s ease,color .3s,border-color .3s,background-size .45s ease}
.btn svg{flex-shrink:0}
.btn-main{background-color:var(--accent);background-image:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.75) 50%,transparent 65%);background-size:250% 100%;background-position:120% 0;background-repeat:no-repeat;color:var(--ink);padding:22px 38px;font-size:18px;box-shadow:0 10px 40px rgba(56,182,255,.3)}
.btn-main:hover{background-position:-20% 0;transform:translateY(-3px);box-shadow:0 16px 60px rgba(56,182,255,.55);gap:22px;color:var(--ink)}
.btn-white{background-color:#fff;background-image:linear-gradient(110deg,transparent 35%,rgba(56,182,255,.45) 50%,transparent 65%);background-size:250% 100%;background-position:120% 0;background-repeat:no-repeat;color:var(--ink);padding:20px 40px;font-size:17px;font-weight:500}
.btn-white:hover{background-position:-20% 0;transform:translateY(-3px);box-shadow:0 14px 40px rgba(6,16,31,.35);color:var(--ink)}
.btn-line{border:1px solid rgba(255,255,255,.7);padding:14px 28px;font-size:16px;font-weight:500;background-image:linear-gradient(90deg,var(--accent),var(--accent-2));background-size:0% 100%;background-repeat:no-repeat;background-color:transparent;color:#fff}
.btn-line:hover{background-size:100% 100%;border-color:transparent;color:var(--ink)}
.link-u{display:inline-block;padding-bottom:4px;border-bottom:1px solid currentColor;font-size:17px}

/* ── Header ── */
.site-head{position:absolute;top:0;left:0;right:0;z-index:20}
.site-head .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:24px;padding-bottom:24px}
.logo{display:flex;flex-direction:column;line-height:1;font-family:var(--display);font-size:32px;font-weight:700;letter-spacing:-1px;color:#fff}
.logo:hover{color:#fff}
.logo b{color:var(--accent);font-weight:700}
.logo i{display:block;width:96px;height:4px;margin:6px 0 0 22px;border-radius:4px;background:linear-gradient(90deg,transparent,var(--accent),transparent)}
.nav{display:flex;gap:34px;align-items:center;font-size:16px}
.nav>a,.nav .drop>a{padding:8px 0}
.drop{position:relative}
.drop>a{display:inline-flex;align-items:center;gap:8px}
.drop>a::after{content:"";width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-3px);transition:transform .25s}
.drop:hover>a::after,.drop:focus-within>a::after{transform:rotate(225deg) translateY(-1px)}
.drop-panel{position:absolute;top:100%;left:50%;transform:translate(-50%,10px);min-width:620px;padding:26px 28px;background:rgba(15,24,44,.97);border:1px solid var(--line);border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.5);display:grid;grid-template-columns:repeat(3,1fr);gap:22px 30px;opacity:0;visibility:hidden;transition:opacity .25s,transform .25s,visibility .25s;backdrop-filter:blur(12px)}
.drop:hover .drop-panel,.drop:focus-within .drop-panel{opacity:1;visibility:visible;transform:translate(-50%,0)}
.drop-col{display:flex;flex-direction:column;gap:8px}
.drop-col span{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
.drop-col a{font-size:15px}
.drop-all{grid-column:1/-1;border-top:1px solid var(--line);padding-top:14px;font-size:15px;color:var(--accent)}
.head-right{display:flex;align-items:center;gap:14px}
.lang{position:relative}
.lang summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;padding:12px 16px;border:1px solid var(--line-2);border-radius:40px;font-size:14px;font-weight:600;letter-spacing:1px}
.lang summary::-webkit-details-marker{display:none}
.lang ul{position:absolute;right:0;top:calc(100% + 8px);margin:0;padding:8px;list-style:none;background:var(--card);border:1px solid var(--line);border-radius:14px;min-width:150px;box-shadow:0 20px 50px rgba(0,0,0,.45)}
.lang li a{display:flex;gap:10px;padding:9px 12px;border-radius:9px;font-size:15px}
.lang li a b{color:var(--muted);width:24px}
.lang li a[aria-current]{background:var(--chip)}
.burger{display:none;width:48px;height:48px;border-radius:50%;border:1px solid var(--line-2);background:transparent;cursor:pointer;position:relative}
.burger span{position:absolute;left:14px;right:14px;height:2px;background:#fff;transition:transform .3s,top .3s}
.burger span:first-child{top:19px}.burger span:last-child{top:27px}
.burger[aria-expanded="true"] span:first-child{top:23px;transform:rotate(45deg)}
.burger[aria-expanded="true"] span:last-child{top:23px;transform:rotate(-45deg)}
.drawer{position:fixed;inset:0;z-index:19;background:rgba(6,10,20,.98);padding:110px var(--gutter) 40px;overflow:auto;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
.drawer.open{opacity:1;visibility:visible}
.drawer nav{display:flex;flex-direction:column;gap:6px;max-width:520px;margin:0 auto}
.drawer nav>a{font-family:var(--display);font-size:30px;font-weight:600;padding:8px 0}
.drawer .drawer-src{display:grid;grid-template-columns:1fr 1fr;gap:6px 18px;padding:6px 0 18px;border-bottom:1px solid var(--line);margin-bottom:10px}
.drawer .drawer-src a{font-size:16px;color:var(--sub)}
.drawer .btn{margin-top:24px;align-self:flex-start}
body.locked{overflow:hidden}

/* ── Sections ── */
.sec{padding:clamp(80px,10vw,130px) 0;position:relative}
.sec-alt{background:var(--bg-alt)}
.sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;flex-wrap:wrap;margin-bottom:clamp(40px,6vw,70px)}
.sec-head h2{font-size:var(--h2);max-width:720px}
.sec-head p{max-width:440px;color:var(--muted);font-size:18px}
.eyebrow{display:flex;align-items:center;gap:14px;font-size:14px;letter-spacing:5px;text-transform:uppercase;color:var(--sub)}
.eyebrow::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--accent);flex-shrink:0}

/* ── Hero (home) ── */
.hero{position:relative;overflow:hidden;background:radial-gradient(ellipse 60% 70% at 78% 55%,#0B2350 0%,var(--bg) 65%);padding:170px 0 90px}
.hero .wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,480px),1fr));gap:20px;align-items:center}
.hero-copy{display:flex;flex-direction:column;gap:30px;position:relative;z-index:1}
.hero h1{font-size:var(--h1);font-weight:700;line-height:.95;letter-spacing:-3px}
.grad{font-style:italic;background:linear-gradient(90deg,var(--accent-2),var(--accent));-webkit-background-clip:text;background-clip:text;color:transparent;padding-right:8px}
.lead{max-width:580px;font-size:20px;line-height:1.55;color:var(--muted)}
.hero-copy .btn{align-self:flex-start}
.feats{display:flex;flex-wrap:wrap;gap:22px 40px;margin-top:16px}
.feat{display:flex;align-items:center;gap:16px}
.ico{width:56px;height:56px;border-radius:14px;background:var(--chip);display:flex;align-items:center;justify-content:center;color:var(--accent);flex-shrink:0}
.feat div{display:flex;flex-direction:column;gap:3px;font-size:17px}
.feat small{color:var(--muted);font-size:16px}
.hero-art{position:relative;display:flex;justify-content:flex-end;margin-right:-60px}
.hero-art img{width:115%;max-width:760px}

/* ── About / stats ── */
.about-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:clamp(40px,7vw,80px)}
.stat{display:flex;align-items:center;gap:30px;padding:26px 0;border-bottom:1px solid var(--line)}
.stat b{font-family:var(--display);font-size:clamp(40px,5vw,60px);font-weight:600;min-width:150px;line-height:1}
.stat b span{color:var(--accent)}
.stat p{color:var(--muted);font-size:17px;max-width:220px;line-height:1.4}
.about-text{display:flex;flex-direction:column;gap:22px;color:var(--muted);font-size:18px;line-height:1.65}
.about-text .big{color:#fff;font-size:22px;line-height:1.5}
.about-text .link-u{align-self:flex-start;color:#fff;margin-top:10px}

/* ── Marquee ── */
.marquee{padding:30px 0 90px;overflow:hidden}
.marquee-track{display:flex;width:max-content;animation:marquee 28s linear infinite}
.marquee-track span{display:flex;align-items:center;gap:50px;padding-right:50px;font-family:var(--display);font-weight:600;font-size:clamp(46px,7vw,110px);white-space:nowrap;line-height:1.15}
.marquee-track span:nth-child(even){color:transparent;-webkit-text-stroke:1px #fff}
.marquee-track span::after{content:"";width:22px;height:22px;border-radius:50%;background:var(--accent);flex-shrink:0}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ── Platform cards ── */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:24px}
.pcard{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:38px 32px;display:flex;flex-direction:column;gap:24px;min-height:340px;transition:background .3s,border-color .3s,transform .3s;position:relative}
.pcard:hover{background:var(--card-hi);border-color:var(--line-2);color:#fff;transform:translateY(-4px)}
.pcard h3{font-size:28px;font-weight:500;line-height:1.2}
.mono{width:64px;height:64px;border-radius:16px;background:var(--chip);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-family:var(--display);font-size:24px;font-weight:700;color:var(--brand,var(--accent))}
.pcard p{margin-top:auto;color:var(--muted);font-size:16px;line-height:1.6}
.pcard .pfoot{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:16px;font-size:15px}
.pcard .pfoot span:first-child{color:var(--muted)}
.pcard .go{color:var(--accent)}
.tag{display:inline-flex;align-self:flex-start;padding:5px 12px;border-radius:30px;border:1px solid var(--line-2);font-size:12px;letter-spacing:1px;text-transform:uppercase;color:var(--sub)}
.group-h{font-family:var(--display);font-size:var(--h3);font-weight:500;margin:60px 0 26px;display:flex;align-items:center;gap:16px}
.group-h:first-child{margin-top:0}
.group-h small{font-family:var(--body);font-size:15px;color:var(--muted);font-weight:400}

/* Catalog rows (sources without a page) */
.catalog{margin-top:50px;border-top:1px solid var(--line)}
.catalog-row{display:grid;grid-template-columns:220px 1fr;gap:20px;padding:22px 0;border-bottom:1px solid var(--line)}
.catalog-row b{font-family:var(--display);font-size:22px;font-weight:500}
.catalog-row p{color:var(--muted);font-size:16px}

/* ── Fee / terms cards ── */
.plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:30px}
.plan{display:flex;flex-direction:column;gap:24px;padding:42px 34px;border-radius:var(--r);background:var(--card);border:1px solid var(--line)}
.plan.hl{background:var(--accent);color:var(--bg);border-color:transparent}
.plan-top{display:flex;justify-content:space-between;gap:16px;font-size:14px;text-transform:uppercase;letter-spacing:1px}
.plan-top span:last-child{opacity:.75;text-transform:none;letter-spacing:0}
.plan-big{font-family:var(--display);font-size:clamp(40px,4.5vw,56px);font-weight:600;line-height:1}
.plan ul{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.plan.hl ul{border-color:rgba(6,10,20,.2)}
.plan li{padding:13px 0;border-bottom:1px solid var(--line);font-size:16px}
.plan.hl li{border-color:rgba(6,10,20,.2)}
.plan .link-u{margin-top:auto;align-self:flex-start;color:inherit}
.fine{margin-top:30px;padding-top:26px;border-top:1px solid var(--line);color:var(--muted);font-size:15px}

/* ── Steps ── */
.steps-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:30px 80px}
.steps-grid h3{font-size:28px;font-weight:500;margin-bottom:16px}
.step{display:grid;grid-template-columns:110px 1fr;gap:20px;padding:24px 0;border-bottom:1px solid var(--line)}
.step>span{color:var(--accent);font-size:15px;padding-top:3px}
.step b{display:block;font-family:var(--display);font-size:20px;font-weight:600;margin-bottom:6px}
.step p{color:var(--muted);font-size:16px;line-height:1.55}
.pledges{display:flex;flex-direction:column;gap:18px}
.pledge{display:flex;gap:18px;align-items:flex-start;padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.pledge .ico{width:48px;height:48px;border-radius:12px}
.pledge b{display:block;font-family:var(--display);font-size:19px;font-weight:600;margin-bottom:4px}
.pledge p{color:var(--muted);font-size:15px;line-height:1.5}

/* ── FAQ ── */
.faq-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:50px 80px}
.faq-grid>h2{font-size:var(--h2)}
.faq{border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:26px 0;font-family:var(--display);font-weight:600;font-size:clamp(18px,1.7vw,22px);line-height:1.3}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--accent);font-family:var(--body);font-size:28px;font-weight:400;line-height:1;flex-shrink:0}
.faq details[open] summary::after{content:"−"}
.faq .a{padding:0 40px 26px 0;color:var(--muted);font-size:17px;line-height:1.65}
.faq .a p+p{margin-top:10px}

/* ── CTA band + footer ── */
.site-foot{background:var(--bg);padding:100px 0 40px}
.cta-band{position:relative;overflow:hidden;border-radius:28px;background:linear-gradient(120deg,var(--accent-2),var(--accent-3));padding:clamp(36px,6vw,80px);display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:50px;align-items:center}
.cta-band h2{font-size:var(--h2)}
.cta-band .cta-side{display:flex;flex-direction:column;gap:28px;font-size:18px;line-height:1.6}
.cta-band .btn{align-self:flex-start}
.foot-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:40px;margin-top:90px}
.foot-col{display:flex;flex-direction:column;gap:12px}
.foot-col>span{font-size:13px;color:var(--muted);letter-spacing:1.5px;text-transform:uppercase}
.foot-col a{font-size:16px}
.foot-col p{color:var(--muted);font-size:15px;line-height:1.55}
.foot-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;border-top:1px solid var(--line);margin-top:60px;padding-top:28px;color:var(--muted);font-size:14px}
.disclaimer{max-width:820px;line-height:1.55}

/* ── Inner pages ── */
.page-hero{position:relative;overflow:hidden;background:radial-gradient(ellipse 55% 80% at 85% 30%,#0B2350 0%,var(--bg) 62%);padding:160px 0 70px}
.page-hero h1{font-size:var(--h1-inner);font-weight:700;letter-spacing:-1.5px;line-height:1.02;max-width:1000px}
.page-hero .lead{margin-top:26px;max-width:760px}
.page-hero .hero-actions{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin-top:34px}
.page-hero .mono{margin-bottom:26px}
.crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:14px;color:var(--muted);margin-bottom:28px}
.crumbs a{color:var(--muted)}
.crumbs a:hover{color:var(--accent)}
.crumbs span[aria-hidden]{opacity:.5}
.chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}
.chip{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:40px;background:var(--chip);border:1px solid var(--line);font-size:14px;color:var(--sub)}
.chip::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent)}
.checked{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);margin-top:22px}

/* Source page layout: prose column + sticky aside on wide screens */
.src-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:70px;align-items:start}
.src-aside{position:sticky;top:30px;display:flex;flex-direction:column;gap:16px}
.toc{border:1px solid var(--line);border-radius:16px;padding:22px;background:var(--card)}
.toc b{display:block;font-size:12px;letter-spacing:2px;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.toc ol{margin:0;padding:0;list-style:none;counter-reset:t;display:flex;flex-direction:column;gap:9px}
.toc li{counter-increment:t;display:flex;gap:10px;font-size:14px;line-height:1.4}
.toc li::before{content:counter(t,decimal-leading-zero);color:var(--accent);font-size:12px;padding-top:2px}
.toc a{color:var(--sub)}
.aside-cta{border-radius:16px;padding:24px;background:linear-gradient(140deg,var(--accent-2),var(--accent-3))}
.aside-cta b{display:block;font-family:var(--display);font-size:21px;line-height:1.25;margin-bottom:10px}
.aside-cta p{font-size:15px;line-height:1.5;margin-bottom:18px;opacity:.9}
.aside-cta .btn{padding:14px 22px;font-size:15px}

/* Blocks */
.blocks{display:flex;flex-direction:column;gap:clamp(60px,8vw,90px)}
.block{scroll-margin-top:30px}
.block>h2{font-size:clamp(28px,3.4vw,44px);margin-bottom:24px;line-height:1.12}
.block>h2 small{display:block;font-family:var(--body);font-size:14px;letter-spacing:4px;text-transform:uppercase;color:var(--accent);font-weight:500;margin-bottom:14px}
.block .intro{color:var(--sub);font-size:18px;margin-bottom:24px;max-width:var(--prose)}

/* Prose (blocks, posts, pages) */
.prose{max-width:var(--prose);font-size:18px;line-height:1.7;color:var(--sub)}
.prose>*+*{margin-top:1.1em}
.prose h2{font-size:clamp(26px,3vw,38px);color:#fff;margin-top:1.8em}
.prose h3{font-size:clamp(21px,2vw,26px);color:#fff;margin-top:1.6em}
.prose h4{font-size:19px;color:#fff;margin-top:1.4em}
.prose strong{color:#fff;font-weight:600}
.prose a{color:var(--accent);border-bottom:1px solid rgba(56,182,255,.35)}
.prose a:hover{border-color:var(--accent)}
.prose ul,.prose ol{padding-left:1.3em}
.prose li+li{margin-top:.45em}
.prose li::marker{color:var(--accent)}
.prose blockquote{margin-left:0;padding:6px 0 6px 24px;border-left:3px solid var(--accent);color:#fff;font-family:var(--display);font-size:22px;line-height:1.45}
.prose code{font-size:.88em;background:var(--chip);border:1px solid var(--line);border-radius:6px;padding:2px 6px;color:#fff;word-break:break-all}
.prose pre{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px;overflow:auto;font-size:14px}
.prose pre code{background:none;border:0;padding:0;word-break:normal}
.prose img,.prose figure{border-radius:16px}
.prose figure{margin:2em 0}
.prose figcaption{font-size:14px;color:var(--muted);margin-top:10px}
.prose hr{border:0;border-top:1px solid var(--line);margin:2.4em 0}

/* Tables */
.tbl{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:16px;background:var(--card);-webkit-overflow-scrolling:touch}
.prose .tbl{margin-top:1.4em}
table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.5;min-width:540px}
caption{caption-side:top;text-align:left;padding:16px 20px 0;color:var(--muted);font-size:13px;letter-spacing:1.5px;text-transform:uppercase}
th,td{padding:14px 20px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
thead th{color:#fff;font-family:var(--display);font-weight:600;font-size:15px;background:var(--chip)}
tbody th{color:#fff;font-weight:600}
tbody td{color:var(--sub)}
tbody tr:last-child>*{border-bottom:0}
.tbl-note{margin-top:12px;font-size:14px;color:var(--muted)}

/* Lists in blocks */
.ticks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;max-width:var(--prose)}
.ticks li{position:relative;padding-left:34px;color:var(--sub);font-size:17px;line-height:1.55}
.ticks li::before{content:"";position:absolute;left:0;top:4px;width:20px;height:20px;border-radius:50%;background:rgba(56,182,255,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338B6FF' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat}
.ticks.no li::before{background:rgba(255,107,107,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6B6B' stroke-width='3'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/11px no-repeat}
.ticks li b{color:#fff;font-weight:600}
.num-steps{list-style:none;margin:0;padding:0;counter-reset:s;display:flex;flex-direction:column}
.num-steps li{counter-increment:s;display:grid;grid-template-columns:64px 1fr;gap:16px;padding:20px 0;border-bottom:1px solid var(--line)}
.num-steps li:first-child{border-top:1px solid var(--line)}
.num-steps li::before{content:counter(s,decimal-leading-zero);font-family:var(--display);font-size:26px;font-weight:600;color:var(--accent);line-height:1.1}
.num-steps b{display:block;color:#fff;font-family:var(--display);font-size:19px;font-weight:600;margin-bottom:4px}
.num-steps p{color:var(--muted);font-size:16px;line-height:1.55}
.mini-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:18px}
.mini{border:1px solid var(--line);border-radius:16px;padding:24px;background:var(--card)}
.mini b{display:block;font-family:var(--display);font-size:19px;font-weight:600;margin-bottom:8px;color:#fff}
.mini p{color:var(--muted);font-size:15px;line-height:1.55}

/* Callouts */
.note{display:flex;gap:16px;padding:20px 22px;border-radius:16px;border:1px solid rgba(56,182,255,.35);background:rgba(56,182,255,.07);color:var(--sub);font-size:16px;line-height:1.6;max-width:var(--prose)}
.note::before{content:"i";flex-shrink:0;width:26px;height:26px;border-radius:50%;background:var(--accent);color:var(--ink);font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:center;font-family:var(--display)}
.note.warn{border-color:rgba(255,181,71,.4);background:rgba(255,181,71,.07)}
.note.warn::before{content:"!";background:var(--warn)}
.note b{color:#fff}
.block>.note{margin-top:22px}
.sources-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;font-size:15px}
.sources-list a{color:var(--sub);border-bottom:1px solid var(--line-2)}
.sources-list a:hover{color:var(--accent);border-color:var(--accent)}

/* ── Apply form ── */
.apply{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:50px;align-items:start}
.apply h2{font-size:var(--h2)}
.apply .lead{margin-top:20px}
.apply-ways{display:flex;flex-direction:column;gap:12px;margin-top:30px}
.apply-ways a{display:inline-flex;align-items:center;gap:12px;font-size:17px}
.apply-ways svg{color:var(--accent)}
.form{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:clamp(24px,4vw,40px);border:1px solid var(--line);border-radius:24px;background:var(--card)}
.form .full{grid-column:1/-1}
.form label{display:flex;flex-direction:column;gap:8px;font-size:14px;color:var(--muted)}
.form input,.form select,.form textarea{width:100%;padding:15px 16px;border-radius:12px;border:1px solid var(--line-2);background:var(--bg);color:#fff;font:inherit;font-size:16px;transition:border-color .2s}
.form textarea{min-height:110px;resize:vertical}
.form input:focus,.form select:focus,.form textarea:focus{outline:0;border-color:var(--accent)}
.form .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form .btn{justify-self:start}
.form-msg{grid-column:1/-1;font-size:15px;min-height:1.4em}
.form-msg.ok{color:var(--ok)}.form-msg.err{color:var(--bad)}
.form-fine{grid-column:1/-1;font-size:13px;color:var(--muted)}
.form-fine a{color:var(--sub);border-bottom:1px solid var(--line-2)}

/* ── Blog ── */
.posts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:28px}
.post-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:var(--card);transition:transform .3s,border-color .3s}
.post-card:hover{transform:translateY(-4px);border-color:var(--line-2);color:#fff}
.post-cover{aspect-ratio:16/9;background:linear-gradient(135deg,#0B2350,#1E7BFF);position:relative;overflow:hidden}
.post-cover img{width:100%;height:100%;object-fit:cover}
.post-cover span{position:absolute;left:22px;bottom:18px;font-family:var(--display);font-size:46px;font-weight:700;opacity:.35;letter-spacing:-1px}
.post-body{padding:26px;display:flex;flex-direction:column;gap:12px;flex:1}
.post-meta{display:flex;gap:14px;font-size:13px;color:var(--muted);letter-spacing:.5px}
.post-body h3{font-size:22px;font-weight:600;line-height:1.25}
.post-body p{color:var(--muted);font-size:15px;line-height:1.55}
.pager{display:flex;justify-content:center;gap:10px;margin-top:60px}
.pager a,.pager span{min-width:48px;height:48px;padding:0 16px;border-radius:30px;border:1px solid var(--line-2);display:inline-flex;align-items:center;justify-content:center;font-size:15px}
.pager .cur{background:var(--accent);color:var(--ink);border-color:transparent}
.article{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:70px;align-items:start}
.article-cover{border-radius:24px;overflow:hidden;margin-bottom:46px}
.related{margin-top:30px}

/* ── 404 ── */
.e404{min-height:80vh;display:flex;align-items:center;padding:160px 0 80px;background:radial-gradient(ellipse 60% 60% at 70% 50%,#0B2350 0%,var(--bg) 65%)}
.e404 b{display:block;font-family:var(--display);font-size:clamp(110px,20vw,260px);line-height:.85;font-weight:700;letter-spacing:-6px;background:linear-gradient(90deg,var(--accent-2),var(--accent));-webkit-background-clip:text;background-clip:text;color:transparent}
.e404 h1{font-size:var(--h2);margin:26px 0 18px}
.e404 .btn{margin-top:30px}

/* ── Reveal ── */
.rv{opacity:0;transform:translateY(24px);transition:opacity .8s ease,transform .8s ease}
.rv.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.rv{opacity:1;transform:none}}

/* ── Cursor (pointer:fine only, created by JS) ── */
.cur-dot{position:fixed;left:0;top:0;width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;background:#fff;mix-blend-mode:difference;pointer-events:none;z-index:9999;opacity:0;transition:width .3s ease,height .3s ease,margin .3s ease,opacity .3s;will-change:transform}
.cur-dot.big{width:64px;height:64px;margin:-32px 0 0 -32px}

/* ── Responsive ── */
@media (max-width:1180px){
	.nav{gap:24px}
	.src-layout,.article{grid-template-columns:1fr;gap:50px}
	.src-aside{position:static}
	.toc{display:none}
}
@media (max-width:1024px){
	.nav,.head-right .btn-line{display:none}
	.burger{display:block}
	.hero{padding-top:140px}
	.hero-art{margin-right:0;justify-content:center}
	.hero-art img{width:100%}
}
@media (max-width:640px){
	:root{--gutter:16px}
	body{font-size:16px}
	.hero h1{letter-spacing:-2px}
	.lead{font-size:18px}
	.btn-main{padding:20px 30px;font-size:17px}
	.stat{gap:18px}.stat b{min-width:110px}
	.step{grid-template-columns:1fr;gap:6px}
	.catalog-row{grid-template-columns:1fr;gap:6px}
	.form{grid-template-columns:1fr}
	.drop-panel{display:none}
	.num-steps li{grid-template-columns:44px 1fr}
	.prose{font-size:17px}
	.page-hero{padding-top:130px}
	.logo{font-size:28px}
	.lang summary{padding:10px 12px}
}

/* Platform icon tiles (glass PNG→WebP icons replace the letter monogram) */
.mono--icon{width:80px;height:80px;background:none;border:0;border-radius:0;padding:0}
.mono--icon img{width:80px;height:80px;display:block;filter:drop-shadow(0 8px 24px rgba(30,123,255,.25))}
.page-hero .mono--icon,.page-hero .mono--icon img{width:96px;height:96px}

/* Card titles: always one line */
.pcard h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:clamp(20px,1.75vw,26px);min-height:0}

/* ── Mobile pass ── */
/* Grid children must be allowed to shrink, otherwise a wide table stretches the column. */
.src-layout>*,.article>*,.apply>*,.about-grid>*,.steps-grid>*,.faq-grid>*,.hero .wrap>*,.cta-band>*{min-width:0}
.prose,.block .intro{overflow-wrap:anywhere}
.tbl{max-width:100%}

@media (max-width:640px){
	/* Comfortable tap targets */
	.crumbs{gap:4px 6px;margin-bottom:22px}
	.crumbs a,.crumbs span{display:inline-flex;align-items:center;min-height:32px}
	.foot-bottom a{display:inline-flex;align-items:center;min-height:40px}
	.foot-bottom{flex-direction:column;gap:6px}
	.foot-col a{padding:6px 0}
	.foot-grid{gap:28px;margin-top:56px}
}

@media (max-width:1180px){
	/* The page ends with the bot CTA band — the sidebar box would duplicate it. */
	.src-aside{display:none}
}

@media (max-width:640px){
	/* Compact platform cards: icon + title in one row, no forced height. */
	.pcard{min-height:0;padding:22px 20px;gap:12px 16px;display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-areas:"tag tag" "icon title" "text text" "foot foot";align-items:center}
	.pcard .tag{grid-area:tag;justify-self:start}
	.pcard h3{grid-area:title;font-size:21px}
	.pcard .mono{grid-area:icon;width:56px;height:56px;font-size:20px;border-radius:14px}
	.pcard .mono--icon,.pcard .mono--icon img{width:56px;height:56px}
	.pcard p{grid-area:text;margin:0;font-size:15px}
	.pcard .pfoot{grid-area:foot;padding-top:12px}
	.cards{gap:14px}
	.group-h{margin:44px 0 18px}

	/* Tables → stacked cards with labels. */
	.tbl{overflow:visible;border:0;background:none;border-radius:0}
	.tbl table{min-width:0;display:block}
	.tbl caption{display:block;padding:0 0 10px}
	.tbl thead{display:none}
	.tbl tbody{display:flex;flex-direction:column;gap:12px}
	.tbl tr{display:block;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px 16px}
	.tbl th,.tbl td{display:block;padding:0;border:0;font-size:15px}
	.tbl tbody th{font-family:var(--display);font-size:16px;margin-bottom:6px}
	.tbl-multi td{padding:8px 0 0;border-top:1px solid var(--line);margin-top:8px}
	.tbl-multi td::before{content:attr(data-label);display:block;font-size:12px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin-bottom:3px}
	.tbl-multi tbody th::before{content:none}

	/* Footer: link columns side by side. */
	.foot-grid{grid-template-columns:1fr 1fr}
	.foot-grid .foot-col:first-child,.foot-grid .foot-col:last-child{grid-column:1/-1}

	/* Hero spacing */
	.page-hero{padding:120px 0 40px}
	.page-hero .lead p+p{margin-top:12px}
	.chips{gap:8px}
	.chip{font-size:13px;padding:8px 12px}
	.sec{padding:64px 0}
	.cta-band{border-radius:20px;gap:28px}
	.num-steps li{padding:16px 0}
	.faq summary{padding:20px 0;font-size:17px}
	.faq .a{padding-right:8px;font-size:16px}
}

/* Touch tablets too: comfortable tap targets for small text links. */
@media (max-width:1024px){
	.crumbs a,.crumbs span{display:inline-flex;align-items:center;min-height:36px}
	.foot-bottom a{display:inline-flex;align-items:center;min-height:40px;padding:0 2px}
}
/* Very narrow phones: buttons may wrap instead of overflowing. */
@media (max-width:400px){
	.btn{white-space:normal;text-align:left;line-height:1.25}
	.btn-white,.btn-main{padding:16px 22px}
	.cta-band{padding:28px 20px}
}
