:root {
  color-scheme: light;
  --bg: #f6f8f5;
  --surface: #ffffff;
  --ink: #17211f;
  --muted: #62706c;
  --line: #dbe3df;
  --green: #126a4a;
  --green-strong: #0a5138;
  --gold: #b77a1b;
  --blue: #285a8f;
  --rose: #a8473f;
  --soft-green: #e7f3ec;
  --soft-gold: #fff3d7;
  --soft-blue: #e8f0f8;
  --shadow: 0 18px 48px rgb(34 47 42 / 10%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

a {
  color: var(--green-strong);
  text-underline-offset: 0.22em;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid rgb(219 227 223 / 80%);
  background: rgb(246 248 245 / 94%);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: end center;
  padding: 7px;
  border-radius: 8px;
  background: var(--green-strong);
}

.brand-mark span {
  display: block;
  width: 5px;
  background: #fff;
}

.brand-mark span:nth-child(1) {
  height: 11px;
}

.brand-mark span:nth-child(2) {
  height: 17px;
}

.brand-mark span:nth-child(3) {
  height: 25px;
}

.brand-mark {
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
}

.site-nav a {
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--soft-green);
}

main {
  min-height: 70vh;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(48px, 8vw, 92px) clamp(18px, 5vw, 72px) clamp(30px, 5vw, 64px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(40px, 7vw, 72px);
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
}

h3 {
  font-size: 21px;
}

.lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--green-strong);
  border-radius: 8px;
  background: var(--green-strong);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.hero-panel,
.tool-panel,
.note,
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.metric {
  padding: 14px;
  border-radius: 8px;
  background: var(--soft-green);
}

.metric:nth-child(2) {
  background: var(--soft-blue);
}

.metric:nth-child(3) {
  background: var(--soft-gold);
}

.metric strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: clamp(34px, 5vw, 70px) clamp(18px, 5vw, 72px);
}

.section-header {
  max-width: 780px;
  margin-bottom: 24px;
}

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.card a {
  font-weight: 800;
}

.content {
  max-width: 920px;
  padding: clamp(34px, 5vw, 64px) clamp(18px, 5vw, 72px);
}

.content p,
.content li {
  color: #35423e;
}

.content table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.content th,
.content td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.content th {
  background: var(--soft-green);
}

.tool-panel {
  max-width: 980px;
  margin: 0 clamp(18px, 5vw, 72px) clamp(40px, 6vw, 80px);
  padding: clamp(18px, 4vw, 30px);
}

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

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

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

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.result {
  min-height: 92px;
  padding: 16px;
  border-radius: 8px;
  background: var(--soft-blue);
}

.result strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
}

.note {
  max-width: 980px;
  margin: 18px clamp(18px, 5vw, 72px);
  padding: 16px 18px;
  box-shadow: none;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .grid,
  .grid.two,
  .metric-grid,
  .form-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    width: 100%;
    max-width: 100%;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 48px);
    overflow-wrap: anywhere;
  }

  .actions .button {
    flex: 1 1 100%;
  }
}

@media (max-width: 500px) {
  .hero > div,
  .hero-panel,
  .lead,
  .actions {
    width: 100%;
    max-width: 342px;
  }

  .hero-panel {
    justify-self: start;
  }
}
