:root {
  --bg: #f5f8fc;
  --panel: #ffffff;
  --panel-2: #f8fbff;
  --text: #13243b;
  --muted: #5f7088;
  --border: #d7e2f0;
  --accent: #1f5fbf;
  --accent-2: #163b73;
  --success: #0f7a43;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-2);
}
.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}
.header-nav a {
  color: var(--muted);
  font-size: 0.95rem;
}
.header-nav a:hover,
.header-nav a:focus {
  color: var(--accent-2);
}
.hero {
  padding: 28px 0 24px;
}
.hero-grid,
.footer-grid,
.results-grid {
  display: grid;
  gap: 20px;
}
.hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
}
.results-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card,
.section-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(16, 42, 67, 0.06);
}
h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 0;
  color: var(--accent-2);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
h2 { font-size: 1.35rem; margin-bottom: 14px; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--accent-2);
}
input, select, button {
  width: 100%;
  font: inherit;
  border-radius: 12px;
}
input, select {
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  margin-bottom: 16px;
}
input:focus, select:focus {
  outline: 3px solid rgba(31, 95, 191, 0.15);
  border-color: var(--accent);
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 16px;
}
.checkbox-row input {
  width: auto;
  margin: 4px 0 0;
}
.checkbox-row label {
  margin: 0;
  font-weight: 500;
  color: var(--text);
}
button {
  padding: 13px 16px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: #184d9c; }
.result-box {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.result-label {
  display: block;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.result-value {
  display: block;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--accent-2);
}
.notice {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 16px;
}
.ad-slot {
  min-height: 90px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #fbfdff;
}
.breadcrumbs {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.example-table,
.faq-table {
  width: 100%;
  border-collapse: collapse;
}
.example-table th,
.example-table td,
.faq-table th,
.faq-table td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}
.example-table th,
.faq-table th {
  background: var(--panel-2);
  color: var(--accent-2);
}
.list-tight {
  margin: 0;
  padding-left: 18px;
}
.list-tight li { margin-bottom: 8px; }
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}
.footer-grid {
  grid-template-columns: 1fr 1.5fr 0.9fr;
  padding: 28px 0 8px;
}
.footer-nav-links,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav-links li,
.footer-links li {
  margin-bottom: 12px;
}
.footer-links li a {
  display: inline-block;
  margin-bottom: 2px;
}
.footer-links li span,
.footer-empty,
.footer-meta {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
}
.footer-meta {
  padding: 0 0 24px;
  margin: 0;
}
@media (max-width: 860px) {
  .hero-grid, .footer-grid, .results-grid { grid-template-columns: 1fr; }
  .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
}
