:root{
  --bg:#0f1216;
  --bg-2:#171b21;
  --bg-3:#1e232b;
  --line:#262c35;
  --green:#22c55e;
  --green-2:#16a34a;
  --green-soft:#4ade80;
  --txt:#e7ebef;
  --txt-2:#9aa4b0;
  --txt-3:#6b7480;
  --radius:12px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--txt);
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
h1,h2,h3,h4{line-height:1.2;font-weight:800;letter-spacing:-.01em}

/* Layout grid */
.app{display:flex;min-height:100vh}
.sidebar{
  width:248px;flex-shrink:0;background:var(--bg-2);
  border-right:1px solid var(--line);
  padding:14px 10px;position:sticky;top:0;height:100vh;overflow-y:auto;
}
.main{flex:1;min-width:0;display:flex;flex-direction:column}
.content{padding:18px clamp(12px,3vw,32px);max-width:1180px;width:100%;margin:0 auto;flex:1}

/* Topbar */
.topbar{
  display:flex;align-items:center;gap:14px;
  padding:12px clamp(12px,3vw,32px);
  background:var(--bg-2);border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:40;
}
.topbar .logo img{height:34px;width:auto}
.topbar .spacer{flex:1}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border-radius:10px;font-weight:700;cursor:pointer;border:none;
  padding:10px 18px;font-size:14px;transition:.15s;white-space:nowrap;
}
.btn-ghost{background:transparent;color:var(--txt)}
.btn-ghost:hover{color:#fff}
.btn-green{background:var(--green);color:#04120a}
.btn-green:hover{background:var(--green-soft)}
.pill{background:var(--bg-3);border:1px solid var(--line);border-radius:10px;padding:9px 12px;color:var(--txt-2);font-size:13px;font-weight:600}
.hide-mobile{display:inline-flex}
.burger{display:none;background:var(--bg-3);border:1px solid var(--line);border-radius:8px;padding:8px 10px;color:var(--txt);cursor:pointer}

/* Sidebar items */
.side-app{
  background:linear-gradient(135deg,#123021,#0f1216);
  border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:10px;
}
.side-app small{color:var(--txt-2);font-size:12px}
.side-app b{display:block;font-size:14px;margin-top:2px}
.side-card{display:flex;align-items:center;gap:10px;background:var(--bg-3);border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin-bottom:8px;font-size:13px}
.side-card .up{color:var(--green);font-weight:700}
.side-nav{list-style:none;margin-top:6px}
.side-nav li a{
  display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:9px;
  color:var(--txt-2);font-weight:600;font-size:14px;transition:.12s;
}
.side-nav li a:hover{background:var(--bg-3);color:#fff}
.side-nav li a .ic{width:20px;text-align:center;color:var(--green-soft)}
.side-sep{height:1px;background:var(--line);margin:8px 4px}

/* Hero */
.hero{
  position:relative;overflow:hidden;border-radius:16px;margin-bottom:18px;
  background:#12171d url("/static/img/hero-bg3.jpg") no-repeat right center/cover;
  background:#12171d image-set(url("/static/img/hero-bg3.webp") type("image/webp"), url("/static/img/hero-bg3.jpg") type("image/jpeg")) no-repeat right center/cover;
  border:1px solid var(--line);padding:34px clamp(18px,4vw,44px);
}
.hero::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(90deg,#0d1116 0%,rgba(13,17,22,.88) 34%,rgba(13,17,22,.45) 62%,rgba(13,17,22,.15) 100%);
}
.hero > *{position:relative;z-index:1}
.hero h1{font-size:clamp(26px,4.4vw,46px);text-transform:uppercase}
.hero h1 span{color:var(--green)}
.hero p{color:var(--txt-2);margin:12px 0 20px;max-width:560px;font-size:15px}
.hero .cta-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.hero .socials{display:flex;gap:8px}
.hero .socials a{background:var(--bg-3);border:1px solid var(--line);border-radius:9px;padding:9px 14px;font-size:13px;font-weight:700;color:var(--txt-2)}
.hero .socials a:hover{color:#fff}

/* Promo strip */
.promo-strip{
  display:flex;align-items:center;gap:18px;justify-content:space-between;
  background:linear-gradient(90deg,#241bb3,#3b1f8a);border-radius:14px;
  padding:16px 24px;margin-bottom:18px;flex-wrap:wrap;
}
.promo-strip b{font-size:clamp(18px,2.6vw,26px)}
.promo-strip small{color:#d9d2ff;display:block;font-size:13px}

/* Section */
.section{margin:22px 0}
.section h2{font-size:19px;margin-bottom:12px;display:flex;align-items:center;gap:10px}
.section h2 .dot{width:9px;height:9px;border-radius:50%;background:var(--green);box-shadow:0 0 10px var(--green)}
.section-img{border-radius:14px;overflow:hidden;border:1px solid var(--line);background:var(--bg-2)}
.section-img img{width:100%;height:auto}
.tabs{display:flex;gap:16px;margin-bottom:12px;font-size:14px;font-weight:700;color:var(--txt-3);flex-wrap:wrap}
.tabs .active{color:#fff;border-bottom:2px solid var(--green);padding-bottom:4px}

/* Cat cards */
.cat-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cat-big{
  background:var(--bg-2);border:1px solid var(--line);border-radius:14px;padding:22px;
  display:flex;flex-direction:column;justify-content:space-between;min-height:150px;position:relative;
}
.cat-big h3{font-size:20px;display:flex;align-items:center;gap:8px}
.cat-big p{color:var(--txt-2);font-size:13px;margin-top:8px;max-width:60%}
.cat-small-row{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:14px}
.cat-small{background:var(--bg-2);border:1px solid var(--line);border-radius:12px;padding:16px 14px;font-weight:800;font-size:14px}

/* Text SEO blocks */
.prose{background:var(--bg-2);border:1px solid var(--line);border-radius:14px;padding:clamp(18px,3vw,30px);margin:22px 0}
.prose h2{font-size:22px;margin:6px 0 10px}
.prose h3{font-size:17px;margin:20px 0 8px;color:#fff}
.prose p{color:var(--txt-2);margin:10px 0;font-size:15px}
.prose ul{margin:10px 0 10px 20px;color:var(--txt-2)}
.prose li{margin:6px 0}
.prose a{color:var(--green-soft);text-decoration:underline}
.prose strong{color:#fff}
.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin:16px 0}
.info-card{background:var(--bg-3);border:1px solid var(--line);border-radius:12px;padding:16px}
.info-card h4{font-size:15px;margin-bottom:6px;display:flex;gap:8px;align-items:center}
.info-card p{font-size:13px;margin:0}

/* Table */
.tbl{width:100%;border-collapse:collapse;font-size:14px;overflow:hidden;border-radius:12px}
.tbl th,.tbl td{padding:11px 14px;text-align:left;border-bottom:1px solid var(--line)}
.tbl th{background:var(--bg-3);color:var(--txt-2);font-size:12px;text-transform:uppercase;letter-spacing:.03em}
.tbl tr:last-child td{border-bottom:none}

/* FAQ */
.faq details{background:var(--bg-2);border:1px solid var(--line);border-radius:12px;padding:14px 18px;margin-bottom:10px}
.faq summary{cursor:pointer;font-weight:700;font-size:15px;list-style:none;display:flex;justify-content:space-between;align-items:center}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--green);font-size:20px}
.faq details[open] summary::after{content:"\2212"}
.faq p{color:var(--txt-2);margin-top:10px;font-size:14px}

/* Footer */
.foot{background:var(--bg-2);border-top:1px solid var(--line);margin-top:30px;padding:30px clamp(12px,3vw,32px)}
.foot-cols{display:grid;grid-template-columns:repeat(5,1fr);gap:20px;max-width:1180px;margin:0 auto 24px}
.foot-cols h5{font-size:14px;margin-bottom:12px}
.foot-cols ul{list-style:none}
.foot-cols li{margin:7px 0}
.foot-cols a{color:var(--txt-2);font-size:13px}
.foot-cols a:hover{color:#fff}
.foot-bottom{max-width:1180px;margin:0 auto;border-top:1px solid var(--line);padding-top:18px;color:var(--txt-3);font-size:12px}
.foot-bottom p{margin:6px 0}
.age{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:2px solid var(--txt-3);border-radius:50%;font-weight:800;font-size:12px;margin-right:8px;vertical-align:middle}

/* breadcrumb */
.crumbs{font-size:12px;color:var(--txt-3);margin-bottom:14px}
.crumbs a{color:var(--txt-2)}
.crumbs a:hover{color:var(--green-soft)}

/* Responsive */
@media(max-width:900px){
  .sidebar{position:fixed;left:0;top:0;z-index:60;transform:translateX(-100%);transition:.25s;box-shadow:0 0 40px #000}
  .sidebar.open{transform:translateX(0)}
  .burger{display:inline-flex}
  .cat-grid{grid-template-columns:1fr}
  .cat-small-row{grid-template-columns:1fr 1fr}
  .foot-cols{grid-template-columns:1fr 1fr}
  .hide-mobile{display:none}
  .cat-big p{max-width:100%}
}
@media(max-width:520px){
  .foot-cols{grid-template-columns:1fr}
  .cat-small-row{grid-template-columns:1fr 1fr}
  /* On narrow screens push the banner (with the logo) to the bottom so it sits
     below the heading instead of behind it, and add breathing room underneath. */
  .hero{background-position:right bottom;padding-bottom:80px}
  .hero::before{background:linear-gradient(180deg,#0d1116 0%,rgba(13,17,22,.9) 55%,rgba(13,17,22,.35) 100%)}
}
.backdrop{display:none;position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:55}
.backdrop.show{display:block}
