:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-2: #334155;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #2b8c5e;
  --accent-soft: rgba(43, 140, 94, 0.15);
  --border: #334155;
  --warn: #f59e0b;
  --info: #38bdf8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding: 0 0 64px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  padding: 14px 24px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav strong { color: var(--text); margin-right: 8px; }
.nav a { color: var(--muted); font-size: 14px; }
.nav a.active, .nav a:hover { color: var(--accent); }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 20px;
  font-weight: 650;
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

h3 {
  font-size: 16px;
  font-weight: 650;
  margin: 20px 0 10px;
  color: #e2e8f0;
}

.lead {
  color: var(--muted);
  font-size: 15px;
  max-width: 720px;
  margin-bottom: 24px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(43, 140, 94, 0.35);
  vertical-align: middle;
  margin-left: 8px;
}

.callout {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin: 20px 0;
  font-size: 14px;
}

.callout.info { border-left: 3px solid var(--info); }
.callout.warn { border-left: 3px solid var(--warn); }
.callout strong { display: block; margin-bottom: 4px; }

.grid {
  display: grid;
  gap: 14px;
  margin: 16px 0;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.card h3 {
  margin-top: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price {
  font-size: 22px;
  font-weight: 700;
  margin: 6px 0;
}

.muted { color: var(--muted); font-size: 13px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0 8px;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--surface-2);
  font-weight: 650;
  font-size: 12px;
  color: #cbd5e1;
}

tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }
tr:last-child td { border-bottom: none; }
td.center, th.center { text-align: center; }

.mono {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  overflow-x: auto;
  color: #cbd5e1;
  line-height: 1.45;
}

.wire {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  white-space: pre;
  overflow-x: auto;
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  color: #94a3b8;
  line-height: 1.35;
}

ul.clean {
  list-style: none;
  padding: 0;
}

ul.clean li {
  position: relative;
  padding-left: 14px;
  margin: 6px 0;
  font-size: 14px;
  color: #e2e8f0;
}

ul.clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.footer-note {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}

@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.stat .v {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.stat .l {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
