:root { --ink: #101828; --muted: #5d6879; --brand: #167b50; --brand-dark: #0b3f28; --line: #e6e9ef; --surface: #f7f8fb; --soft: #e8f8f0; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--brand); }
.wrap { width: min(980px, calc(100% - 32px)); margin-inline: auto; }
.top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.bar { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 18px; text-decoration: none; }
.logo svg { width: 32px; height: 32px; }
.tools { display: flex; align-items: center; gap: 10px; }
.lang { min-width: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 700; font-size: 13px; text-align: center; text-decoration: none; }
.nav { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 10px; white-space: nowrap; scrollbar-width: none; }
.nav a { color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; }
.nav a[aria-current] { color: var(--brand); }
.button { display: inline-block; padding: 12px 20px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.button--small { padding: 8px 14px; font-size: 14px; }
main { padding: 20px 0 64px; }
.crumbs { margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); }
h1 { margin: 0 0 16px; font-size: clamp(28px, 5vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
h2 { margin: 40px 0 12px; font-size: 22px; line-height: 1.3; }
h3 { margin: 24px 0 6px; font-size: 18px; scroll-margin-top: 120px; }
.lead { font-size: 18px; color: #344054; }
.muted { color: var(--muted); font-size: 14px; }
ul, ol { padding-left: 22px; }
.table-wrap { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--surface); font-size: 13px; color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
.card a { color: var(--ink); text-decoration: none; }
.card a:hover { color: var(--brand); }
.columns { columns: 2 280px; column-gap: 32px; }
.columns li { break-inside: avoid; margin-bottom: 4px; }
.questions { padding: 0; list-style: none; }
.question { position: relative; margin: 0 0 14px; padding: 16px 18px 14px 56px; border: 1px solid var(--line); border-radius: 14px; }
.q-num { position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 8px; background: var(--soft); color: var(--brand-dark); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.q-text { margin: 0 0 8px; font-weight: 600; }
.options { margin: 0 0 8px; padding: 0; list-style: none; }
.options li { margin-bottom: 4px; }
.options b { display: inline-block; min-width: 22px; color: var(--brand-dark); }
.matching { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.passage { margin: 20px 0 14px; padding: 16px 18px; border-radius: 14px; background: var(--surface); font-size: 15px; }
details summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 14px; }
details p { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--soft); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin: 24px 0; font-weight: 600; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 40px 0 0; padding: 22px 24px; border-radius: 18px; background: var(--brand-dark); color: #fff; }
.cta p { margin: 6px 0 0; color: #c9e5d6; }
.cta .button { background: #f7c84b; color: var(--brand-dark); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta .button--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.calc { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.calc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.calc label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.calc select, .calc input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; }
.calc-subject { display: grid; grid-template-columns: 1fr 110px 120px; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.calc-subject output { font-weight: 700; text-align: right; }
.calc [hidden] { display: none; }
.calc-total { margin: 16px 0 0; font-size: 22px; font-weight: 800; }
footer { padding: 32px 0; color: #8fb3a0; background: #04200f; font-size: 14px; }
footer a { color: #d6eadf; }
footer .muted { color: #8fb3a0; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media (max-width: 640px) {
  .cta { flex-direction: column; align-items: flex-start; }
  .matching { grid-template-columns: 1fr; gap: 0; }
  .calc-subject { grid-template-columns: 1fr 90px; }
  .calc-subject output { grid-column: 1 / -1; text-align: left; }
  .question { padding-left: 16px; padding-top: 52px; }
}
