/* KarosGuard — общий вид сайта (вариант E). Собирается docs/site_layout.py, руками не править. */
@font-face{font-family:"Onest";font-weight:400;font-style:normal;font-display:swap;src:url(/fonts/onest-400.woff2) format("woff2")}
@font-face{font-family:"Onest";font-weight:600;font-style:normal;font-display:swap;src:url(/fonts/onest-600.woff2) format("woff2")}
@font-face{font-family:"Onest";font-weight:700;font-style:normal;font-display:swap;src:url(/fonts/onest-700.woff2) format("woff2")}

:root{
  --bg:#09090B;--panel:#111114;--panel2:#16161A;--line:rgba(255,255,255,.08);--line2:rgba(255,255,255,.14);
  --ink:#F5F5F7;--ink2:#D4D4D8;--muted:#A1A1AA;--dim:#8B8B94;
  --accent:#FF7A3D;--accent2:#FF9A66;--glow:rgba(240,102,42,.34);
  --sys:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans","Helvetica Neue",Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
  --fb:var(--sys);
  color-scheme:dark;
}
html.bf{--fb:"Onest",var(--sys)}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:84px;background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--ink);font:400 17px/1.65 var(--fb);-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%}
a{color:var(--ink)}
a:hover{color:var(--accent2)}
h1,h2,h3{text-wrap:balance;font-family:var(--fb)}
p{text-wrap:pretty}
[hidden]{display:none!important}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.i{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.icon-play{fill:currentColor;stroke:none}

/* шапка */
.top{position:sticky;top:0;z-index:20;background:rgba(9,9,11,.78);-webkit-backdrop-filter:saturate(1.6) blur(16px);
  backdrop-filter:saturate(1.6) blur(16px);border-bottom:1px solid var(--line)}
.top .in{display:flex;align-items:center;justify-content:space-between;gap:16px;height:68px}
.brandline{display:flex;align-items:center;gap:12px;min-width:0}
.logo{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}
.logo .mark{width:28px;height:28px;flex:none;display:block}
.logo .wm{height:17px;width:auto;display:block}
.slash{color:#3F3F46;font-size:22px;font-weight:300;line-height:1}
.prod{display:inline-flex;align-items:center;gap:8px;color:var(--ink2);text-decoration:none}
.prod img{width:24px;height:24px;border-radius:6px;display:block}
.prod .wm2{height:14px;width:auto;display:block}
.acts{display:flex;align-items:center;gap:10px}
.pill{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:10px;border:1px solid var(--line2);
  color:var(--ink2);text-decoration:none;font:500 14px/1 var(--fb);white-space:nowrap}
.pill .i{width:16px;height:16px}
.pill:hover{border-color:rgba(255,255,255,.3);color:var(--ink)}
.topbtn{display:inline-flex;align-items:center;gap:8px;padding:9px 15px;border-radius:10px;background:var(--ink);color:#09090B;
  text-decoration:none;font:600 14px/1 var(--fb);white-space:nowrap}
.topbtn .i{width:14px;height:14px}
.topbtn:hover{color:#09090B;background:#fff}
@media(max-width:560px){.prod .wm2{display:none}.topbtn span{display:none}.topbtn{padding:9px 11px}}

/* кнопки */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:12px;padding:15px 22px;
  font:600 16px/1.2 var(--fb);text-decoration:none;cursor:pointer;transition:transform .15s ease,background .15s ease}
.btn:hover{transform:translateY(-1px)}
.btn:disabled{opacity:.55;cursor:default;transform:none}
.btn .i{width:18px;height:18px}
.btn-light{background:var(--ink);color:#09090B}
.btn-light:hover{background:#fff;color:#09090B}
.btn-accent{background:var(--accent);color:#1A0D06}
.btn-accent:hover{background:var(--accent2);color:#1A0D06}
.btn-ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line2)}
.btn-ghost:hover{box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);color:var(--ink)}
.btn-small{padding:10px 15px;font-size:15px;border-radius:10px}
.btns{display:flex;flex-wrap:wrap;gap:12px}
.center{justify-content:center;text-align:center}

/* главный экран */
.hero{position:relative;text-align:center;padding-top:104px;overflow:hidden}
.chip{display:inline-flex;align-items:center;gap:10px;padding:7px 14px 7px 8px;border-radius:999px;border:1px solid var(--line2);
  background:rgba(255,255,255,.03);font-size:14px;color:var(--ink2)}
.chip img{width:20px;height:20px;border-radius:5px;display:block}
.hero h1{margin:28px auto 0;max-width:15em;font-weight:700;font-size:clamp(38px,6.6vw,86px);line-height:1.02;letter-spacing:-.045em;overflow-wrap:break-word}
.hero .lead{margin:26px auto 0;max-width:40em;font-size:clamp(17px,2vw,20px);line-height:1.6;color:var(--muted)}
.hero .btns{margin-top:36px}
.fan{position:relative;height:620px;margin:72px auto 0;max-width:1000px}
.glow{position:absolute;left:50%;top:40px;width:720px;height:720px;margin-left:-360px;border-radius:50%;
  background:radial-gradient(closest-side,var(--glow),rgba(240,102,42,0));pointer-events:none}
.ph{position:absolute;padding:9px;border-radius:44px;background:#1A1A1E;box-shadow:0 0 0 1px rgba(255,255,255,.09),0 50px 100px -30px rgba(0,0,0,.95)}
.ph img{display:block;width:100%;height:auto;border-radius:35px}
.ph-c{left:50%;top:20px;width:310px;margin-left:-155px;z-index:2}
.ph-l{left:50%;top:110px;width:250px;margin-left:-360px;transform:rotate(-8deg)}
.ph-r{left:50%;top:110px;width:250px;margin-left:110px;transform:rotate(8deg)}
@media(max-width:760px){
  .hero{padding-top:64px}
  .fan{height:470px;margin-top:52px}
  .ph-c{width:240px;margin-left:-120px}
  .ph-l,.ph-r{width:190px;top:90px}
  .ph-l{margin-left:-230px}.ph-r{margin-left:40px}
  .glow{width:520px;height:520px;margin-left:-260px}
}

/* разделы */
.sec{padding-top:128px}
@media(max-width:760px){.sec{padding-top:88px}}
.eyebrow{display:block;margin:0 0 16px;font:600 13px/1.4 var(--fb);letter-spacing:.12em;color:var(--accent2)}
html[lang=ar] .eyebrow,html[lang=ur] .eyebrow,html[lang=th] .eyebrow,html[lang=hi] .eyebrow,html[lang=bn] .eyebrow,
html[lang=ja] .eyebrow,html[lang=zh] .eyebrow,html[lang=ko] .eyebrow{letter-spacing:0;font-size:15px}
.h2big{margin:0 0 48px;max-width:20em;font-weight:700;font-size:clamp(30px,4.4vw,56px);line-height:1.05;letter-spacing:-.04em}

/* сетка плиток */
.bento{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(380px,auto);gap:16px}
.tile{position:relative;overflow:hidden;border-radius:28px;background:var(--panel);border:1px solid var(--line);padding:36px;
  display:flex;flex-direction:column;gap:14px}
.tile h3{margin:0;font-weight:700;font-size:24px;line-height:1.25;letter-spacing:-.02em}
.tile p{margin:0;font-size:16px;line-height:1.62;color:var(--muted)}
.tile.span2{grid-column:span 2}
.tile.span3{grid-column:span 3}
.tile.span2 .txt{max-width:46%}
.tile .tp{position:absolute;inset-inline-end:64px;top:40px;width:250px;padding:9px;border-radius:40px;background:#1A1A1E;
  box-shadow:0 0 0 1px rgba(255,255,255,.09)}
.tile .tp img{display:block;width:100%;height:auto;border-radius:32px}
.tile .push{margin-top:auto;display:flex;flex-direction:column;gap:12px}
.bignum{font-weight:700;font-size:120px;line-height:.85;letter-spacing:-.06em;color:var(--accent)}
.bigicon{width:64px;height:64px;border-radius:18px;display:grid;place-items:center;background:rgba(255,122,61,.12);color:var(--accent)}
.bigicon .i{width:32px;height:32px}
.code{display:flex;gap:6px}
.code span{width:26px;height:38px;flex:none;border-radius:7px;background:#1C1C21;border:1px solid rgba(255,255,255,.1)}
.code .gap{width:8px;background:none;border:0}
@media(max-width:900px){
  .bento{grid-template-columns:1fr}
  .tile.span2,.tile.span3{grid-column:auto}
  .tile.span2 .txt{max-width:none}
  .tile .tp{position:relative;inset-inline-end:auto;top:auto;width:230px;margin:18px auto -120px}
}

/* карточки */
.card{background:var(--panel);border:1px solid var(--line);border-radius:24px;padding:32px}
.duo{display:grid;gap:16px}
@media(min-width:760px){.duo{grid-template-columns:1fr 1fr}}
.note .ico{color:var(--accent)}
.note h2,.note h3{margin:14px 0 10px;font-weight:700;font-size:21px;letter-spacing:-.01em}
.note p{margin:0 0 10px;color:var(--muted)}
.note p:last-child{margin-bottom:0}

/* проекты Karos */
.proj-h{display:flex;align-items:center;gap:14px;margin:0 0 36px;font-weight:700;font-size:clamp(30px,4.4vw,56px);letter-spacing:-.04em;line-height:1}
.proj-h .mark{width:48px;height:48px;flex:none}
.proj{display:grid;gap:16px}
@media(min-width:760px){.proj{grid-template-columns:1fr 1fr}}
.pcard{display:flex;align-items:flex-start;gap:24px;padding:30px;border-radius:24px;background:var(--panel);border:1px solid var(--line2);color:var(--ink);text-decoration:none}
.pcard>img{width:80px;height:80px;border-radius:20px;flex:none;display:block}
.pcard .t{display:flex;flex-direction:column;gap:8px}
.pcard .n{font-weight:700;font-size:24px;letter-spacing:-.02em}
.pcard .d{font-size:15.5px;line-height:1.55;color:var(--muted)}
.pcard .tags{font-size:13px;color:var(--dim)}
.pcard.soon{border:1.5px dashed rgba(255,255,255,.16);background:transparent;align-items:center}
.pcard.soon .ph0{width:80px;height:80px;border-radius:20px;flex:none;display:grid;place-items:center;background:var(--panel2)}
.pcard.soon .ph0 .mark{width:36px;height:36px;opacity:.55}
.pcard.soon .n{color:var(--dim)}
a.pcard:hover{border-color:rgba(255,255,255,.3);color:var(--ink)}

/* статья-анонс */
.readmore{display:flex;align-items:center;gap:22px;padding:32px 36px;border-radius:28px;background:var(--panel);border:1px solid var(--line);
  text-decoration:none;color:var(--ink);transition:border-color .15s ease}
.readmore:hover{border-color:rgba(255,255,255,.3);color:var(--ink)}
.readmore .t{flex:1;display:flex;flex-direction:column;gap:8px}
.readmore .tt{font-weight:700;font-size:clamp(20px,2.6vw,28px);line-height:1.25;letter-spacing:-.02em}
.readmore .dd{font-size:15.5px;line-height:1.55;color:var(--muted)}
.go{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#1A0D06;flex:none}
[dir=rtl] .go .i,[dir=rtl] .arrow{transform:scaleX(-1)}

/* финальный призыв */
.final{position:relative;overflow:hidden;isolation:isolate;border-radius:36px;background:var(--panel);border:1px solid var(--line);
  padding:88px 32px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:26px}
.final::before{content:"";position:absolute;left:50%;top:40%;width:640px;height:640px;margin-left:-320px;border-radius:50%;
  background:radial-gradient(closest-side,rgba(240,102,42,.3),rgba(240,102,42,0));z-index:-1}
.final>img{width:84px;height:84px;border-radius:21px}
.final h2{margin:0;max-width:18em;font-weight:700;font-size:clamp(28px,4.4vw,56px);line-height:1.05;letter-spacing:-.04em}

/* языки */
.langs-box{display:flex;gap:14px;align-items:flex-start}
.langs-box>.i{color:var(--dim);margin-top:6px}
.langs{display:flex;flex-wrap:wrap;gap:8px}
.lang{font-size:14px;text-decoration:none;color:var(--ink2);border:1px solid var(--line2);border-radius:999px;padding:7px 13px}
.lang:hover{border-color:rgba(255,255,255,.35);color:var(--ink)}
.lang.cur{background:var(--ink);color:#09090B;border-color:transparent;font-weight:600}

/* подвал */
.foot{margin-top:96px;border-top:1px solid var(--line)}
.foot-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;padding:40px 0 28px}
.foot nav{display:flex;flex-wrap:wrap;gap:8px 26px;font-size:15px}
.foot nav a{color:var(--muted);text-decoration:none}
.foot nav a:hover{color:var(--ink)}
.foot-bot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;padding:22px 0 44px;border-top:1px solid var(--line);font-size:13px;color:var(--dim)}

/* внутренние страницы */
.phero{position:relative;overflow:hidden;isolation:isolate;text-align:center;padding:96px 0 72px;border-bottom:1px solid var(--line)}
.phero::before{content:"";position:absolute;left:50%;top:-40%;width:760px;height:760px;margin-left:-380px;border-radius:50%;
  background:radial-gradient(closest-side,rgba(240,102,42,.24),rgba(240,102,42,0));z-index:-1}
.phero .kicker{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;border-radius:999px;border:1px solid var(--line2);
  background:rgba(255,255,255,.03);font-size:14px;color:var(--ink2);margin-bottom:26px}
.phero .kicker .i{width:16px;height:16px;color:var(--accent)}
.phero h1{margin:0 auto;max-width:16em;font-weight:700;font-size:clamp(32px,5.4vw,68px);line-height:1.04;letter-spacing:-.04em;overflow-wrap:break-word}
.phero .lead{margin:22px auto 0;max-width:38em;font-size:clamp(17px,2vw,20px);line-height:1.6;color:var(--muted)}
.phero .btns{margin-top:32px;justify-content:center}

.page{padding-top:72px}
.page h2{margin:88px 0 22px;font-weight:700;font-size:clamp(26px,3.4vw,40px);line-height:1.1;letter-spacing:-.035em}
.page h2:first-child{margin-top:0}
.page h3{margin:0 0 6px;font-weight:700;font-size:19px;letter-spacing:-.01em}

.post{max-width:760px;margin:0 auto;padding:64px 24px 0}
.post h1{margin:0 0 10px;font-weight:700;font-size:clamp(28px,4vw,42px);line-height:1.15;letter-spacing:-.03em}
.post h1+.muted{margin-bottom:28px}
.post h2{margin:52px 0 16px;font-weight:700;font-size:clamp(22px,2.8vw,30px);line-height:1.2;letter-spacing:-.025em}
.post h3{margin:32px 0 8px;font-weight:700;font-size:19px;line-height:1.4}
.post p{margin:0 0 18px;font-size:18px;line-height:1.78;color:var(--ink2)}
.post p.muted,.post .muted{color:var(--dim);font-size:15px}
.post code{background:var(--panel2);border:1px solid var(--line);border-radius:7px;padding:2px 7px;font-family:var(--mono);font-size:.86em;word-break:break-all}
.post strong,.post b{font-weight:700;color:var(--ink)}
.post ul,.post ol{padding-inline-start:24px;margin:0 0 18px;color:var(--ink2)}.post li{margin:6px 0;font-size:17px}
.post hr{border:0;border-top:1px solid var(--line);margin:56px 0}
.post a{color:var(--accent2)}

/* внутренние: сетки, шаги, цены, формы */
.grid{display:grid;gap:16px}
@media(min-width:720px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid .wide,.grid .span{grid-column:1/-1}}
@media(min-width:1000px){.grid.g3{grid-template-columns:repeat(3,minmax(0,1fr))}}
.feat{background:var(--panel);border:1px solid var(--line);border-radius:24px;padding:30px}
.feat h3{margin:16px 0 8px;font-weight:700;font-size:20px;letter-spacing:-.015em}
.feat p{margin:0;color:var(--muted);font-size:16px;line-height:1.6}
.badge{display:inline-grid;place-items:center;width:46px;height:46px;border-radius:14px;background:rgba(255,122,61,.12);color:var(--accent)}
.checks{list-style:none;padding:0;margin:0;display:grid;gap:14px}
.checks li{display:flex;gap:12px;align-items:flex-start;color:var(--ink2)}
.checks li .i{color:var(--accent);width:22px;height:22px;margin-top:2px}
.steps{counter-reset:s;list-style:none;padding:0;margin:0;display:grid;gap:14px}
.steps li{counter-increment:s;position:relative;background:var(--panel);border:1px solid var(--line);border-radius:22px;
  padding:24px;padding-inline-start:78px;min-height:80px;color:var(--ink2)}
.steps li::before{content:counter(s);position:absolute;inset-inline-start:24px;top:22px;width:36px;height:36px;border-radius:50%;
  display:grid;place-items:center;background:var(--accent);color:#1A0D06;font:700 16px/1 var(--fb)}
.price{display:grid;gap:16px}
@media(min-width:560px){.price{grid-template-columns:1fr 1fr}}
.pc{position:relative;background:var(--panel);border:1px solid var(--line);border-radius:24px;padding:30px}
.pc .amt{font-weight:700;font-size:56px;line-height:1;letter-spacing:-.05em}
.pc .per{color:var(--muted);margin-top:10px}
.pc.best{border-color:rgba(255,122,61,.55)}
.pc .tag{position:absolute;top:22px;inset-inline-end:22px;background:var(--accent);color:#1A0D06;font-weight:700;font-size:13px;padding:5px 11px;border-radius:999px}
.field{margin-top:16px}
.field label,.lbl{display:block;font-weight:600;font-size:15px;margin:0 0 8px;color:var(--ink2)}
input,select,textarea{width:100%;font:inherit;font-size:16px;padding:13px 15px;border:1px solid var(--line2);border-radius:12px;background:#0D0D10;color:var(--ink)}
input::placeholder,textarea::placeholder{color:#5A5A62}
input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:1px}
textarea{min-height:130px;font-family:var(--mono);font-size:13.5px;line-height:1.5;resize:vertical}
.row2{display:grid;gap:12px}
@media(min-width:560px){.row2{grid-template-columns:1fr 1fr}}
.addr{display:block;font:500 15px/1.5 var(--mono);word-break:break-all;background:#0D0D10;border:1px solid var(--line2);border-radius:14px;padding:14px 16px;margin:12px 0;color:var(--ink)}
.sum{font-weight:700;font-size:30px;line-height:1.2;letter-spacing:-.03em;margin:4px 0 0}
.key{font:700 24px/1.3 var(--mono);letter-spacing:.04em;color:var(--accent2);word-break:break-all;margin:6px 0}
.msg{margin:14px 0 0;font-weight:600}
.err{color:#FF8A80}
.ok{color:#6EE7A0;font-weight:600}
.small{color:var(--dim);font-size:14.5px;line-height:1.6}
.card>.small:last-child,.card>p:last-child{margin-bottom:0}
.prow{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14.5px;color:var(--ink2)}
.prow code{font-size:12.5px;color:var(--dim);font-family:var(--mono)}
.wallet{display:grid;gap:24px;align-items:center}
@media(min-width:700px){.wallet{grid-template-columns:1fr auto}}
.qr{width:188px;height:188px;background:#fff;border-radius:18px;padding:10px;justify-self:center}
.qr svg{display:block;width:100%;height:100%}
.nets{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0}
.net{font-size:13.5px;font-weight:600;border:1px solid var(--line2);color:var(--ink2);padding:6px 11px;border-radius:999px}
.warn{display:flex;gap:10px;align-items:flex-start;background:rgba(255,122,61,.08);border:1px solid rgba(255,122,61,.25);border-radius:14px;padding:14px 16px;margin-top:18px;font-size:15px;color:var(--ink2)}
.warn .i{color:var(--accent);width:22px;height:22px;margin-top:1px}
.item{display:flex;gap:16px;align-items:flex-start}
.list{display:grid;gap:12px}
