:root {
  --bg: #f4f6f3;
  --ink: #17231f;
  --muted: #65736d;
  --panel: #ffffff;
  --line: #dbe2dd;
  --green: #0f6b5f;
  --soft: #e8f1ee;
  --shadow: 0 18px 45px rgba(30, 42, 36, .1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: inherit; }

.page {
  max-width: 1060px;
  margin: 0 auto;
  padding: 28px;
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.brand {
  font-weight: 900;
  color: var(--green);
  text-decoration: none;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.hero {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: 0;
  line-height: 1.12;
}

.lead {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 17px;
  max-width: 820px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 22px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

article, aside {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

article {
  padding: 28px;
}

article h2 {
  margin: 26px 0 10px;
  font-size: 24px;
}

article h2:first-child { margin-top: 0; }

article h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}

article p, article li {
  color: #314039;
  line-height: 1.85;
}

article ul, article ol {
  padding-left: 22px;
}

.formula {
  background: #17231f;
  color: #fff;
  border-radius: 8px;
  padding: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.note {
  background: #fff8f3;
  border: 1px solid #efd0bd;
  border-radius: 8px;
  padding: 14px;
  color: #6e4228;
}

aside {
  padding: 18px;
  position: sticky;
  top: 18px;
}

aside h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

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

.related a {
  display: block;
  padding: 12px;
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.45;
}

.footer {
  color: var(--muted);
  margin-top: 24px;
  font-size: 13px;
}

@media (max-width: 820px) {
  .page { padding: 18px; }
  .nav { align-items: flex-start; flex-direction: column; }
  .hero, article { padding: 20px; }
  .content { grid-template-columns: 1fr; }
  aside { position: static; }
}
