:root {
  --accent: #1d4ed8;
  --accent-dark: #1e3a8a;
  --ink: #1e293b;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e2e8f0;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --warn-ink: #92400e;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

header.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .inner {
  max-width: 980px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.brand { font-size: 20px; font-weight: 800; color: var(--accent-dark); text-decoration: none; }
.brand span { color: var(--accent); }
nav.main-nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav.main-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
nav.main-nav a:hover { color: var(--accent); }

.hero {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: 34px; font-weight: 800; margin: 0 0 14px; color: var(--accent-dark); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 22px; }

.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 8px; font-weight: 700; font-size: 15px; border: none; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); }
.btn-outline {
  display: inline-block; background: transparent; color: var(--accent); text-decoration: none;
  padding: 11px 21px; border-radius: 8px; font-weight: 700; font-size: 15px; border: 2px solid var(--accent);
}

section { padding: 44px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: 26px; font-weight: 800; color: var(--accent-dark); margin: 0 0 18px; }
h3 { font-size: 19px; font-weight: 700; margin: 0 0 8px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 22px;
}
.card a.card-link { text-decoration: none; color: inherit; display: block; }
.card a.card-link:hover { border-color: var(--accent); }

.disclaimer {
  background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-ink);
  border-radius: 8px; padding: 14px 18px; font-size: 14px; margin: 18px 0;
}

form.tool-form label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
form.tool-form input, form.tool-form select, form.tool-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 15px; background: var(--bg); color: var(--ink); font-family: inherit;
}
form.tool-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { form.tool-form .field-row { grid-template-columns: 1fr; } }

.result-box {
  margin-top: 22px; padding: 20px; border-radius: 10px; background: var(--bg-soft);
  border: 1px solid var(--border); display: none;
}
.result-box.show { display: block; }
.result-figure { font-size: 30px; font-weight: 800; color: var(--accent-dark); }

table.ref-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
table.ref-table th, table.ref-table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
table.ref-table th { background: var(--bg-soft); }

.article-meta { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.article-title { font-size: 34px; font-weight: 800; margin: 0 0 20px; color: var(--accent-dark); }
.article-byline { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.page-top { padding-top: 40px; }
.note-muted { margin-top: 24px; color: var(--muted); font-size: 14px; }

footer.site-footer {
  border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: 40px; padding: 36px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 24px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 10px; }
.footer-grid a { display: block; color: var(--ink); text-decoration: none; font-size: 14px; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--accent); }
.footer-legal { border-top: 1px solid var(--border); padding-top: 18px; font-size: 13px; color: var(--muted); }

.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  background: var(--ink); color: var(--bg); padding: 16px 20px;
  display: none; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: 14px; max-width: 640px; }
.cookie-banner .actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner button {
  padding: 9px 16px; border-radius: 6px; font-weight: 700; font-size: 13px; cursor: pointer; border: none;
}
.cookie-banner .accept { background: var(--accent); color: #fff; }
.cookie-banner .reject { background: transparent; color: var(--bg); border: 1px solid var(--bg); }

.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.quiz-option {
  display: block; width: 100%; text-align: left; padding: 14px 16px; border: 2px solid var(--border);
  border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer;
}
.quiz-option:hover { border-color: var(--accent); }
.quiz-option.selected { border-color: var(--accent); background: var(--bg-soft); }
.quiz-progress { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 22px; }

.cookie-banner a { color: #fff; text-decoration: underline; }
.mb-0 { margin-bottom: 0; }

.mt-lg { margin-top: 20px; }
.ml-sm { margin-left: 10px; }
.result-label { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.result-detail-text { margin-top: 10px; font-size: 14px; color: var(--muted); }
.section-gap-top { margin-top: 44px; }

.header-phone {
  display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff;
  text-decoration: none; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.header-phone:hover { background: var(--accent-dark); }
