:root{
  --bg:#0b0a14; --bg2:#12101f; --card:#171428; --line:#2a2545;
  --text:#f3f1fa; --muted:#a9a3c4;
  --pink:#ff3d8b; --violet:#a24bff; --blue:#5b8cff;
  --grad:linear-gradient(120deg,var(--pink),var(--violet) 55%,var(--blue));
  --wa:#25d366; --tg:#2aabee;
}
*{box-sizing:border-box;margin:0;padding:0;min-width:0}
html{scroll-behavior:smooth}
body{font-family:Inter,system-ui,sans-serif;background:var(--bg);color:var(--text);line-height:1.7;overflow-x:clip}
a{color:inherit;text-decoration:none}
.wrap{max-width:1180px;margin:0 auto;padding:0 22px}
.grad-text{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}

nav{position:sticky;top:0;z-index:50;background:rgba(11,10,20,.85);backdrop-filter:blur(14px);border-bottom:1px solid rgba(255,255,255,.06)}
nav .wrap{display:flex;align-items:center;justify-content:space-between;height:68px;gap:16px}
nav img{height:34px;display:block}
.nav-links{display:flex;gap:26px;font-size:15px;color:var(--muted)}
.nav-links a:hover,.nav-links a.on{color:var(--text)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:600;font-size:15px;padding:12px 22px;border-radius:12px;transition:transform .15s;white-space:nowrap}
.btn:hover{transform:translateY(-2px)}
.btn-grad{background:var(--grad);color:#fff;box-shadow:0 8px 30px rgba(162,75,255,.35)}
.btn-wa{background:var(--wa);color:#06210f}
.btn-tg{background:var(--tg);color:#04202e}
.btn svg{width:18px;height:18px;flex:none}

/* blog index */
.b-hero{padding:80px 0 40px;text-align:center}
.b-hero h1{font-size:clamp(34px,5vw,54px);line-height:1.1;font-weight:800;letter-spacing:-.02em;margin-bottom:14px}
.b-hero p{color:var(--muted);font-size:18px;max-width:640px;margin:0 auto}
.posts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;padding:30px 0 90px}
.post-card{display:flex;flex-direction:column;padding:28px;border-radius:20px;background:var(--card);border:1px solid var(--line);transition:transform .2s,border-color .2s}
.post-card:hover{transform:translateY(-3px);border-color:rgba(255,61,139,.5)}
.post-card .cat{font-size:13px;font-weight:700;color:var(--pink);margin-bottom:10px}
.post-card h2{font-size:21px;line-height:1.3;margin-bottom:10px}
.post-card p{color:var(--muted);font-size:15px;flex:1}
.post-card .more{margin-top:18px;font-weight:600;font-size:14.5px}

/* article */
.crumbs{font-size:14px;color:var(--muted);padding-top:34px}
.crumbs a:hover{color:var(--text)}
article{max-width:760px;margin:0 auto;padding:20px 22px 40px}
article .cat{font-size:13px;font-weight:700;color:var(--pink);margin:18px 0 10px}
article h1{font-size:clamp(32px,4.6vw,46px);line-height:1.12;font-weight:800;letter-spacing:-.02em;margin-bottom:16px;text-wrap:balance}
article .meta{color:var(--muted);font-size:14.5px;margin-bottom:34px}
article h2{font-size:26px;line-height:1.25;margin:42px 0 14px;letter-spacing:-.01em}
article h3{font-size:19px;margin:28px 0 10px}
article p{font-size:17px;color:#dcd8ee;margin-bottom:18px}
article ul,article ol{margin:0 0 20px 22px;color:#dcd8ee;font-size:17px}
article li{margin-bottom:8px}
article strong{color:#fff}
article a{color:#ff7ab0;text-decoration:underline;text-underline-offset:3px}
.lead{font-size:19px !important;color:var(--text) !important}
.tip{margin:26px 0;padding:20px 22px;border-radius:16px;background:rgba(162,75,255,.1);border:1px solid rgba(162,75,255,.4);font-size:16px;color:#e6e1f7}
.cta-box{max-width:760px;margin:10px auto 90px;padding:36px 30px;border-radius:24px;text-align:center;background:linear-gradient(135deg,#2a0f3a,#1a1240 55%,#0f1a3d);border:1px solid var(--line)}
.cta-box h2{font-size:26px;line-height:1.25;margin-bottom:10px}
.cta-box p{color:var(--muted);margin-bottom:22px}
.cta-row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.related{max-width:760px;margin:0 auto 60px;padding:0 22px}
.related h3{font-size:18px;margin-bottom:12px}
.related a{display:block;padding:14px 18px;border-radius:12px;background:var(--card);border:1px solid var(--line);margin-bottom:10px;font-weight:600}
.related a:hover{border-color:rgba(255,61,139,.5)}

footer{padding:40px 0 100px;color:var(--muted);font-size:14px;border-top:1px solid var(--line)}
footer .wrap{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
footer img{height:28px;display:block}
.foot-links{display:flex;gap:22px;flex-wrap:wrap}
.foot-links a:hover{color:var(--text)}
.float{position:fixed;right:20px;bottom:20px;display:flex;flex-direction:column;gap:12px;z-index:60}
.float a{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;box-shadow:0 8px 24px rgba(0,0,0,.45);color:#fff}
.float svg{width:27px;height:27px}

@media (max-width:820px){
  .nav-links{display:none}
  .posts{grid-template-columns:1fr}
}
@media (max-width:520px){
  nav .btn span{display:none}
  article p,article ul,article ol{font-size:16.5px}
  .cta-row .btn{width:100%}
}

/* images */
article img.hero{display:block;width:100%;height:auto;border-radius:20px;border:1px solid var(--line);margin:0 0 34px;box-shadow:0 24px 60px rgba(0,0,0,.45)}
article figure{margin:30px 0 32px}
article figure img{display:block;width:100%;height:auto;border-radius:16px;border:1px solid var(--line)}
article figcaption{font-size:14px;color:var(--muted);text-align:center;margin-top:10px}
.post-card{padding:0;overflow:hidden}
.post-card img{display:block;width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover;border-bottom:1px solid var(--line)}
.post-card .cat,.post-card h2,.post-card p,.post-card .more{margin-left:26px;margin-right:26px}
.post-card .cat{margin-top:22px}
.post-card .more{margin-bottom:24px}
