:root{
  --bg:#ffffff;
  --surface:#f7fafc;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --border:#e2e8f0;
  --brand:#0078d4;
  --brand2:#16a34a;
  --shadow: 0 10px 25px rgba(2,6,23,.08);
  --radius: 18px;
  --max: 1100px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--sans);
  color:var(--text);
  background:linear-gradient(180deg, #ffffff 0%, #f6fbff 40%, #ffffff 100%);
  line-height:1.55;
}
a{color:var(--brand); text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%; height:auto}

.container{max-width:var(--max); margin:0 auto; padding:0 18px}
.skip{position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden}
.skip:focus{left:18px; top:18px; width:auto; height:auto; background:#fff; padding:10px 12px; border:2px solid var(--brand); border-radius:12px; z-index:9999}

.header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.9);
  backdrop-filter:saturate(150%) blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
}
.brand{
  display:flex; align-items:center; gap:10px; min-width:200px
}
.brand-badge{
  width:34px; height:34px; border-radius:12px;
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow:0 10px 20px rgba(0,120,212,.22);
}
.brand-title{font-weight:800; letter-spacing:-.02em}
.brand-sub{font-size:.85rem; color:var(--muted)}
.menu{display:flex; gap:14px; flex-wrap:wrap; justify-content:flex-end}
.menu a{
  color:var(--text);
  padding:8px 10px;
  border-radius:12px;
  border:1px solid transparent;
}
.menu a:hover{border-color:var(--border); background:#fff; text-decoration:none}
.menu a.active{border-color:rgba(0,120,212,.25); background:rgba(0,120,212,.06); color:var(--brand)}

.hero{
  padding:44px 0 18px 0;
}
.hero-grid{
  display:grid; gap:18px;
  grid-template-columns: 1.2fr .8fr;
  align-items:stretch;
}
@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr}
}
.h1{
  font-size: clamp(1.9rem, 2.9vw, 3rem);
  letter-spacing:-.03em;
  line-height:1.1;
  margin:0 0 10px 0;
}
.lead{color:var(--muted); font-size:1.05rem; margin:0 0 16px 0}
.pills{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px}
.pill{
  border:1px solid var(--border);
  background:#fff;
  padding:8px 12px;
  border-radius:999px;
  font-size:.92rem;
  color:var(--muted);
}
.cta-row{display:flex; gap:12px; flex-wrap:wrap; margin-top:16px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font-weight:700;
  box-shadow:0 10px 18px rgba(2,6,23,.05);
}
.btn.primary{
  background:linear-gradient(135deg, var(--brand), #1d4ed8);
  color:#fff;
  border-color:transparent;
}
.btn:hover{text-decoration:none; transform:translateY(-1px)}
.btn:active{transform:translateY(0px)}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.card.soft{background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%)}
.grid-3{display:grid; gap:14px; grid-template-columns:repeat(3, 1fr)}
@media (max-width: 900px){.grid-3{grid-template-columns:1fr}}
.grid-2{display:grid; gap:14px; grid-template-columns:repeat(2, 1fr)}
@media (max-width: 900px){.grid-2{grid-template-columns:1fr}}
.section{padding:18px 0 28px 0}
.section h2{margin:0 0 10px 0; letter-spacing:-.02em}
.section p{color:var(--muted); margin:0 0 12px 0}

.kpi{
  display:flex; gap:12px; align-items:flex-start
}
.kpi .n{
  font-family:var(--mono);
  font-weight:900;
  font-size:1.3rem;
  color:var(--brand);
}
.kpi .t{font-weight:800}
.kpi .d{color:var(--muted); font-size:.95rem}

.breadcrumbs{
  font-size:.92rem;
  color:var(--muted);
  margin:18px 0 0 0;
}
.breadcrumbs a{color:var(--muted)}
.breadcrumbs span{color:var(--text); font-weight:700}

.form-row{display:grid; gap:10px; grid-template-columns:repeat(3, 1fr)}
@media (max-width: 900px){.form-row{grid-template-columns:1fr}}
label{font-weight:700; font-size:.92rem}
input, select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  font-family:var(--sans);
  font-size:1rem;
}
textarea{min-height:120px}
.small{font-size:.92rem; color:var(--muted)}
.result{
  margin-top:10px;
  border:1px dashed rgba(0,120,212,.35);
  background:rgba(0,120,212,.05);
  border-radius:14px;
  padding:12px;
}
.result pre{
  margin:0;
  white-space:pre-wrap;
  font-family:var(--mono);
  font-size:.95rem;
}
.hr{height:1px; background:var(--border); margin:16px 0}

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-size:.88rem;
  color:var(--muted);
}
.badge b{color:var(--text)}
.disclaimer{
  border:1px solid rgba(245,158,11,.35);
  background:rgba(245,158,11,.10);
  padding:12px;
  border-radius:14px;
  color:#92400e;
}
.footer{
  margin-top:28px;
  border-top:1px solid var(--border);
  background:#fff;
  padding:22px 0;
}
.footer-grid{
  display:grid; gap:14px;
  grid-template-columns:1.2fr .8fr;
}
@media (max-width:900px){.footer-grid{grid-template-columns:1fr}}
.footer a{color:var(--muted)}
.footer .muted{color:var(--muted)}
.footer .links{display:flex; gap:10px; flex-wrap:wrap}
.table{
  width:100%; border-collapse:separate; border-spacing:0;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
}
.table th, .table td{padding:10px 12px; border-bottom:1px solid var(--border); text-align:left}
.table th{background:#f8fafc; font-weight:800}
.table tr:last-child td{border-bottom:none}
.article-card h3{margin:0 0 6px 0}
.article-meta{color:var(--muted); font-size:.9rem}
kbd{font-family:var(--mono); background:#f8fafc; border:1px solid var(--border); border-radius:8px; padding:2px 6px}
