:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --ink: #17211d;
  --muted: #5d6963;
  --line: #dfe5df;
  --accent: #16745f;
  --accent-dark: #0e5143;
  --secondary: #e9eee9;
  --soft: #eef6f3;
  --soft-border: #cfe3dd;
  --field-border: #cfd8d0;
  --field-bg: #ffffff;
  --warn: #b45309;
  --danger: #b91c1c;
  --ok: #147d3f;
  --shadow: 0 10px 30px rgba(23, 33, 29, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(22, 116, 95, 0.08), transparent 32%),
    linear-gradient(180deg, #fbfcfa 0%, var(--bg) 18%, var(--bg) 100%);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: var(--accent-dark);
}

.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 229, 223, 0.92);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 82px 22px 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 34px;
  align-items: center;
}

.hero > div:first-child {
  display: grid;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--muted);
  font-size: 19px;
  margin: 0;
  max-width: 700px;
}

.hero-panel,
.tool-card,
.calculator,
.note-box,
.module-section,
.result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(23, 33, 29, 0.06);
}

.hero-panel {
  padding: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfa 100%);
}

.hero-panel h2 {
  margin-bottom: 10px;
}

.hero-panel ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.hero-panel li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-panel .hero-question-link,
.hero-panel .hero-question-link:visited {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfb;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(23, 33, 29, 0.03);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-panel .hero-question-link:hover,
.hero-panel .hero-question-link:focus-visible {
  border-color: var(--soft-border);
  background: var(--soft);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(23, 33, 29, 0.06);
  outline: none;
}

.hero-panel ul,
.checklist {
  margin: 14px 0 0;
  padding-left: 20px;
}

.hero-panel li,
.checklist li {
  margin: 8px 0;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 22px;
}

.section + .section {
  padding-top: 16px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-header > div {
  max-width: 760px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.qa-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(23, 33, 29, 0.04);
}

.qa-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.qa-item p {
  color: var(--muted);
  margin: 0;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.path-card {
  background: #eef6f3;
  border: 1px solid #cfe3dd;
  border-radius: 16px;
  padding: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.visual-grid .article-figure {
  margin: 0;
}

.tool-card {
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 36px rgba(23, 33, 29, 0.08);
  border-color: #cfd8d0;
}

.card-media {
  margin: 14px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f7f8f6;
}

.card-media img {
  display: block;
  width: 100%;
  height: 165px;
  object-fit: cover;
}

.card-content {
  display: block;
}

.tool-card p {
  margin: 8px 0 18px;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  background: #e6f3ef;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 54px 22px 74px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.breadcrumbs span[aria-hidden="true"] {
  color: #9aa59f;
}

.tool-hero {
  margin-bottom: 28px;
}

.quick-answer {
  margin-top: 22px;
  padding: 20px 22px;
  background: linear-gradient(180deg, #eef6f3 0%, #e8f3ef 100%);
  border-left: 5px solid var(--accent);
  border-radius: 16px;
}

.quick-answer strong {
  display: block;
  margin-bottom: 6px;
}

.article-reader {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-reader-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.article-reader-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.article-reader select {
  width: auto;
  min-width: 220px;
  max-width: 100%;
}

.article-figure {
  margin: 22px 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.article-caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.example-box {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--soft-border);
  border-radius: 8px;
  background: var(--soft);
}

.example-box strong {
  display: block;
  margin-bottom: 6px;
}

.next-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.next-step-card {
  display: block;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
}

.next-step-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.page-cta {
  margin-top: 26px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #eef6f3, #f8fbf9);
  border: 1px solid var(--soft-border);
  border-radius: 8px;
}

.page-cta h2,
.page-cta h3 {
  margin-bottom: 10px;
}

.page-cta p {
  margin: 0;
  color: var(--muted);
}

.calculator {
  padding: 24px;
  margin: 28px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 750;
  font-size: 14px;
}

.field-help,
.calculator-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.calculator-help {
  margin: 14px 0 0;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd8d0;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

button,
.button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 12px 24px rgba(14, 81, 67, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(14, 81, 67, 0.22);
}

button.secondary,
.button.secondary {
  background: #e9eee9;
  color: var(--ink);
  box-shadow: none;
}

.results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.result-card {
  box-shadow: none;
  padding: 16px;
}

.result-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.result-value {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  font-weight: 850;
}

.result-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.warning {
  color: var(--warn);
}

.danger {
  color: var(--danger);
}

.ok {
  color: var(--ok);
}

.module-section {
  padding: 24px;
  box-shadow: 0 10px 24px rgba(23, 33, 29, 0.04);
  margin: 18px 0;
}

.module-section p {
  color: var(--muted);
}

.module-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.module-section li + li {
  margin-top: 10px;
}

.source-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 10px;
}

.step {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.footer {
  border-top: 1px solid var(--line);
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 22px 42px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .grid,
  .qa-grid,
  .path-grid,
  .visual-grid,
  .next-steps-grid,
  .form-grid,
  .results {
    grid-template-columns: 1fr;
  }

  .section-header,
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 26px;
  }
}
