:root {
  color-scheme: light;
  --ink: #172a33;
  --muted: #4a636e;
  --surface: #fff;
  --ground: #f0f5f4;
  --line: #cddbd9;
  --deep: #102b30;
  --deep-2: #164851;
  --mint: #a4ead2;
  --action: #116656;
  --action-hover: #0c4d42;
  --soft: #e6eeed;
  --focus: #007266;
  --shadow: 0 1px 2px #122c3512, 0 12px 30px #2449480b;
  --header-h: 66px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}
a { color: #0e6257; text-decoration-thickness: .09em; text-underline-offset: .18em; }
a:hover { color: #084d43; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.container { width: min(100%, 1240px); margin-inline: auto; padding-inline: clamp(16px, 3.2vw, 36px); }
nav {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  background: var(--surface);
  border-block-end: 1px solid var(--line);
}
nav .bar { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.14rem; letter-spacing: -.035em; }
.brand b { background: var(--deep); color: var(--mint); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; font-size: .99rem; }
nav .links { display: flex; align-items: center; gap: 3px; }
nav .links a { color: var(--muted); text-decoration: none; font-weight: 650; font-size: .875rem; white-space: nowrap; padding: 8px 9px; border-radius: 7px; }
nav .links a:hover { background: var(--ground); color: var(--ink); }
nav .links a.active, nav .links a[aria-current="page"] { color: #104c43; background: #d7eee5; }
nav .toggle {
  display: none; flex: none; min-height: 42px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--ground); color: var(--ink); font: inherit; font-weight: 720; cursor: pointer;
}
header.hero {
  text-align: center;
  background: radial-gradient(ellipse at 86% 0%, #276463 0%, transparent 58%), linear-gradient(122deg, var(--deep), var(--deep-2));
  color: #f3fbf9;
  border-block-end: 3px solid #6ab79f;
  padding: clamp(42px, 6vw, 80px) 0;
}
h1, h2, h3 { line-height: 1.18; letter-spacing: -.028em; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.95rem, 3.9vw, 3.35rem); font-weight: 790; margin: 0 auto 13px; max-width: 930px; }
h2 { text-align: center; font-size: clamp(1.5rem, 2.6vw, 2.05rem); margin: 0 0 16px; }
h3 { font-size: 1.17rem; margin-block: 0 10px; }
.subtitle { color: #d0e7e4; max-width: 760px; margin: 0 auto; font-size: clamp(1rem, 1.6vw, 1.125rem); }
section { padding: clamp(31px, 4.7vw, 57px) 0; }
.lead { text-align: center; color: var(--muted); max-width: 750px; padding-inline: 16px; margin: 0 auto 26px; }
.grid { display: grid; gap: clamp(12px, 2vw, 20px); max-width: 1120px; margin: 0 auto; padding-inline: clamp(14px, 3vw, 25px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.card {
  min-width: 0; padding: clamp(17px, 2.6vw, 29px);
  text-align: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.card p:last-child { margin-block-end: 0; }
a.card {
  color: var(--action); font-weight: 740; text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
a.card:hover { background: #eaf6f0; border-color: #75a997; box-shadow: 0 7px 21px #1a59431a; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 15px; min-height: 42px; max-width: 100%; text-align: center;
  border: 1px solid transparent; border-radius: 8px;
  font: inherit; font-size: .88rem; font-weight: 730; line-height: 1.32;
  text-decoration: none; white-space: normal; overflow-wrap: anywhere;
}
.btn-primary { background: var(--action); color: #fff; transition: background-color .18s ease; }
.btn-primary:hover { background: var(--action-hover); color: #fff; }
.btn-disabled, .btn-disabled:hover, .btn:disabled {
  color: #425955; background: var(--soft); border-color: #cad9d6;
  cursor: not-allowed; opacity: 1; margin: 2px 0;
}
.hero .btn-disabled, .hero .btn:disabled { background: #204950; color: #dbeae7; border-color: #598183; }
.hero a:focus-visible { outline-color: var(--mint); }
.table { border-collapse: collapse; width: 100%; }
.table th, .table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.table th { background: #e9f2ef; }
pre, code { border-radius: 6px; background: #e7f1ee; color: #193d3b; font-family: ui-monospace, Consolas, monospace; }
code { padding: .13em .35em; }
pre { max-width: 100%; overflow: auto; text-align: left; padding: 13px 15px; border: 1px solid var(--line); white-space: pre; font-size: .85rem; }
.small { font-size: .84rem; color: var(--muted); }
footer { background: var(--surface); border-block-start: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .875rem; padding: 24px 0; }
@media (max-width: 1040px) {
  nav .links { display: none; }
  nav .toggle { display: inline-block; }
  nav.open .links {
    display: flex; position: absolute; inset: var(--header-h) 0 auto;
    max-height: calc(100dvh - var(--header-h)); overflow: auto; flex-direction: column; align-items: stretch;
    padding: 8px 14px 14px; background: var(--surface); border-block-end: 1px solid var(--line); box-shadow: var(--shadow);
  }
  nav .links a { min-height: 44px; padding: 11px 12px; }
}
@media (max-width: 480px) { :root { --header-h: 60px; } .card { padding-inline: 15px; } .table th, .table td { padding: 8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
