:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --brand: #0c2d57;
  --brand2: #1d4ed8;
  --accent: #059669;
  --neg: #dc2626;
  --hl: #eff6ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--brand2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
header.top {
  background: var(--brand);
  color: #fff;
  padding: 14px 0;
  border-bottom: 3px solid #f59e0b;
}
header.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none !important;
}
.logo .ico {
  background: #f59e0b;
  color: #0c2d57;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
}
.logo b { color: #93c5fd; }
nav.main { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
nav.main a {
  color: #e2e8f0;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 500;
}
nav.main a:hover, nav.main a.on { background: rgba(255,255,255,0.15); color: #fff; text-decoration: none; }
nav.main a.lang {
  background: #f59e0b;
  color: #0c2d57;
  font-weight: 700;
}
.ticker {
  background: #091e3a;
  color: #cbd5e1;
  font-size: 0.82rem;
  padding: 7px 0;
  border-bottom: 1px solid #1e3a5f;
}
.ticker .wrap { display: flex; flex-wrap: wrap; gap: 18px; }
.ticker b { color: #fbbf24; }
main.wrap { padding-top: 22px; padding-bottom: 48px; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs span { color: var(--ink); font-weight: 600; }
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 26px;
  align-items: start;
}
@media (max-width: 920px) { .grid { grid-template-columns: 1fr; } }
h1 { font-size: 1.85rem; line-height: 1.25; margin-bottom: 8px; color: #0c2d57; }
h2 { font-size: 1.32rem; margin: 26px 0 12px; color: #0c2d57; }
h3 { font-size: 1.08rem; margin: 16px 0 8px; color: #1e293b; }
p { margin-bottom: 12px; }
.lead { font-size: 1.06rem; color: var(--muted); margin-bottom: 18px; }
.updated { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.pill {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.answer {
  background: linear-gradient(135deg, #0c2d57 0%, #1e3a8a 100%);
  color: #fff;
  padding: 22px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(12,45,87,0.12);
}
.answer .sub { font-size: 0.92rem; color: #bfdbfe; }
.answer .big { font-size: 2.3rem; font-weight: 800; color: #fbbf24; margin: 4px 0 14px; }
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
}
.kpi {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px 12px;
  border-radius: 8px;
}
article > .kpis .kpi {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
}
.kpi span { display: block; font-size: 0.78rem; opacity: 0.85; }
.kpi strong { font-size: 1.05rem; font-weight: 700; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
form.calc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
  align-items: end;
}
form.calc label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 4px; color: var(--muted); }
form.calc input, form.calc select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
}
.btn {
  display: inline-block;
  background: var(--brand2);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none !important;
}
.btn:hover { background: #1e40af; }
.tbl { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #f1f5f9; font-weight: 700; color: #1e293b; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td, tr.hl td { background: var(--hl); font-weight: 700; }
.pos { color: var(--accent); font-weight: 700; }
.neg { color: var(--neg); }
.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.tool {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 16px;
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}
.tool:hover { border-color: var(--brand2); transform: translateY(-2px); text-decoration: none; }
.tool strong { display: block; color: var(--brand); font-size: 1.02rem; margin-bottom: 4px; }
.tool span { font-size: 0.86rem; color: var(--muted); display: block; }
.links { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.links a {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.84rem;
  color: var(--ink);
}
.links a:hover { border-color: var(--brand2); color: var(--brand2); text-decoration: none; }
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 9px;
}
summary { font-weight: 700; cursor: pointer; color: var(--brand); }
details p { margin-top: 8px; color: var(--muted); }
aside .card h3 { margin-top: 0; font-size: 1rem; color: var(--brand); }
aside ul { list-style: none; }
aside li { padding: 5px 0; border-bottom: 1px solid #f1f5f9; font-size: 0.88rem; }
aside .src { font-size: 0.76rem; color: var(--muted); margin-top: 8px; }
footer.site {
  background: #091e3a;
  color: #cbd5e1;
  padding: 36px 0 28px;
  font-size: 0.88rem;
}
footer.site .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
  margin-bottom: 24px;
}
footer.site h4 { color: #fff; margin-bottom: 10px; font-size: 0.98rem; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 6px; }
footer.site a { color: #93c5fd; }
footer.site .legal { border-top: 1px solid #1e3a5f; padding-top: 18px; font-size: 0.8rem; color: #94a3b8; }
