:root {
  --ink: #14212b;
  --muted: #55636e;
  --line: #dde3e8;
  --bg: #f6f8f7;
  --card: #ffffff;
  --brand: #0d6b55;
  --brand-dark: #09503f;
  --brand-soft: #e3f2ed;
  --warn: #8a5a00;
  --warn-soft: #fff4dc;
  --no-soft: #eef1f4;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 10; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark { background: var(--brand); color: #fff; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { text-decoration: none; color: var(--muted); padding: 8px 10px; border-radius: 8px; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-soft); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font: inherit; }

/* Hero */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 36px 0 8px; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 10px; }
.lead { font-size: 1.12rem; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ticks li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 0.95rem; }

/* Checker */
.checker-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; padding-top: 20px; padding-bottom: 20px; align-items: start; }
.checker, .side, .cta-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.checker h2, .side h2 { margin-top: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 600; margin-bottom: 8px; }
.opt { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
label { display: block; font-size: 0.95rem; margin: 10px 0 4px; }
.opt { margin-top: 0; }
input:not([type=radio]), select, textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #b9c3cb; border-radius: 8px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 3px solid #9fd6c6; border-color: var(--brand); }
.hint { font-size: 0.9rem; color: var(--muted); margin: 8px 0 0; }
.btn {
  display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 10px;
  padding: 12px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.result { margin-top: 18px; border-radius: 10px; padding: 16px 18px; border-left: 6px solid var(--brand); background: var(--brand-soft); }
.result h3 { margin: 0 0 6px; }
.result.warn { border-color: #d89a1c; background: var(--warn-soft); }
.result.no { border-color: #8796a3; background: var(--no-soft); }
.deadline-list { list-style: none; padding: 0; margin: 0 0 10px; }
.deadline-list li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); }
.deadline-list li span { color: var(--muted); font-size: 0.9rem; }

/* Content */
.prose { padding-top: 24px; padding-bottom: 40px; max-width: 820px; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); line-height: 1.2; margin-bottom: 8px; }
.prose h2 { margin-top: 34px; font-size: 1.35rem; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 0; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 0.97rem; }
@media (max-width: 520px) { table { font-size: 0.88rem; } th, td { padding: 8px; } }
thead { background: var(--brand-soft); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.card:hover { border-color: var(--brand); }
.card span { color: var(--muted); font-size: 0.93rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { font-weight: 600; cursor: pointer; }
.cta-box { margin-top: 36px; background: var(--brand-soft); border-color: #bfe1d6; }
.cta-box h2 { margin-top: 0; }
.contact-form { max-width: 520px; }
.contact-form .btn { margin-top: 14px; }
.hp { position: absolute; left: -9999px; }
.small { font-size: 0.88rem; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 24px 0; margin-top: 30px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 820px) {
  .checker-wrap { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; padding-bottom: 10px; }
  .site-nav.open { display: flex; }
  .cards { grid-template-columns: 1fr; }
}
