:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --brand: #0f4c81;
  --brand-2: #1d4ed8;
  --accent: #059669;
  --warn: #b45309;
  --danger: #b91c1c;
  --soft: #eff6ff;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 16px; }
header.site-header {
  background: #0f172a;
  color: #fff;
  border-bottom: 3px solid var(--accent);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}
.brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.brand span { color: #34d399; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 0.92rem;
}
.nav-links a { color: #cbd5e1; font-weight: 500; }
.nav-links a.active, .nav-links a:hover { color: #fff; text-decoration: none; }
.lang-btn {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.84rem;
  cursor: pointer;
  font-weight: 600;
}
.lang-btn:hover { background: rgba(255,255,255,0.22); }
main { padding: 24px 0 40px; }
.hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.hero h1 { margin: 0 0 8px; font-size: 1.65rem; line-height: 1.25; }
.hero p { margin: 0; color: var(--muted); max-width: 760px; }
.grid-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tool-card:hover {
  border-color: var(--brand-2);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  text-decoration: none;
}
.tool-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
  background: var(--soft);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.tool-card h2 { margin: 0 0 8px; font-size: 1.12rem; color: var(--ink); }
.tool-card p { margin: 0 0 14px; font-size: 0.92rem; color: var(--muted); }
.tool-cta { font-weight: 600; font-size: 0.92rem; color: var(--brand-2); }
.calc-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 780px) {
  .calc-layout { grid-template-columns: 1fr; }
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.panel h2 { margin: 0 0 14px; font-size: 1.15rem; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--ink);
}
.field input[type="number"],
.field input[type="date"],
.field select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.98rem;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus {
  outline: 2px solid rgba(29, 78, 216, 0.25);
  border-color: var(--brand-2);
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.btn {
  display: inline-block;
  background: var(--brand-2);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: #1e40af; }
.btn-sec {
  background: #e2e8f0;
  color: var(--ink);
}
.btn-sec:hover { background: #cbd5e1; }
.btn-sm { padding: 6px 10px; font-size: 0.84rem; }
.kpi-main {
  background: var(--soft);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}
.kpi-label { font-size: 0.84rem; color: var(--brand); font-weight: 600; }
.kpi-val {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.kpi-sub { font-size: 0.88rem; color: var(--muted); margin-top: 4px; }
.breakdown {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.breakdown tr { border-bottom: 1px solid var(--line); }
.breakdown td { padding: 8px 4px; }
.breakdown td:last-child { text-align: right; font-weight: 600; }
.ad-slot {
  margin: 18px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}
.info-section h2, .info-section h3 { margin-top: 0; }
.faq-item { border-top: 1px solid var(--line); padding: 12px 0; }
.faq-item:first-of-type { border-top: none; }
.faq-item h3 { margin: 0 0 6px; font-size: 1rem; }
.faq-item p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.trip-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.badge-ok { background: #dcfce7; color: #166534; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-bad { background: #fee2e2; color: #991b1b; }
.disclaimer {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
  border-left: 3px solid var(--line);
  padding-left: 10px;
}
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 32px;
  font-size: 0.86rem;
  color: var(--muted);
}
