:root {
  --bg: #f7f8f6;
  --paper: #ffffff;
  --ink: #15201d;
  --muted: #5d6d69;
  --line: #d8dedb;
  --green: #126b5a;
  --green-dark: #073f36;
  --blue: #215f9a;
  --amber: #d99428;
  --red: #b64738;
  --shadow: 0 18px 48px rgba(10, 28, 24, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 246, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
}

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

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--green-dark);
}

.nav-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
}

.nav-call:hover {
  color: #fff;
  background: var(--green-dark);
}

.nav-call span {
  color: #dce7e3;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: #10211d;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 24, 21, 0.92), rgba(8, 24, 21, 0.74) 42%, rgba(8, 24, 21, 0.28)),
    url("/assets/hero-worktable.svg") center / cover no-repeat;
}

.hero-content {
  position: relative;
  width: min(920px, 100%);
  padding: 0 clamp(18px, 5vw, 72px) 72px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 68px;
  line-height: 1;
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: 21px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--amber);
  color: #18201d;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.button.call-action {
  border-color: var(--green);
  color: var(--green-dark);
  background: #fff;
}

.intro-band,
.cta-band {
  padding: 68px clamp(18px, 5vw, 72px);
  background: var(--green-dark);
  color: #fff;
}

.intro-band .narrow {
  max-width: 960px;
}

.intro-band h2,
.cta-band h2 {
  margin: 0;
  max-width: 940px;
  font-size: 36px;
  line-height: 1.15;
}

.intro-band p:last-child,
.cta-band p {
  max-width: 850px;
  color: #d7e3df;
  font-size: 18px;
}

.section,
.split-section,
.article-preview,
.answer-band {
  padding: 86px clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading h2,
.split-section h2,
.article-preview h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.15;
}

.section-heading p:last-child,
.split-section p {
  color: var(--muted);
  font-size: 17px;
}

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

.topic-card,
.preview-list article,
.answer-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 34, 30, 0.06);
}

.topic-card {
  padding: 22px;
}

.topic-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef2f0;
}

.topic-card h3,
.preview-list h3 {
  margin: 18px 0 8px;
  font-size: 22px;
}

.topic-card p,
.preview-list p,
.answer-grid p {
  color: var(--muted);
}

.answer-band {
  background: #fff;
}

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

.answer-grid article {
  padding: 22px;
}

.answer-grid h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.answer-note {
  max-width: 850px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.topic-card a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: #fff;
}

.check-list {
  display: grid;
  gap: 12px;
  max-width: 680px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.check-list span {
  color: var(--red);
  font-weight: 900;
}

.visual-panel {
  margin: 0;
}

.visual-panel img {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visual-panel figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.muted {
  background: #edf2ef;
}

.structure-grid {
  display: grid;
  gap: 12px;
}

.structure-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.structure-row strong {
  color: var(--green-dark);
}

.structure-row span {
  color: var(--muted);
}

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

.preview-list article {
  padding: 24px;
}

.preview-list span {
  color: var(--blue);
  font-weight: 900;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 38px clamp(18px, 5vw, 72px);
  background: #101714;
  color: #fff;
}

.site-footer p,
.site-footer a {
  color: #cbd6d2;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.page-hero {
  padding: 96px clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(8, 24, 21, 0.94), rgba(8, 24, 21, 0.78)),
    url("/assets/hero-worktable.svg") center / cover no-repeat;
  color: #fff;
}

.compact-hero {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.blue-hero {
  background:
    linear-gradient(90deg, rgba(12, 42, 65, 0.95), rgba(12, 42, 65, 0.76)),
    url("/assets/search-system.svg") center / cover no-repeat;
}

.amber-hero {
  background:
    linear-gradient(90deg, rgba(67, 46, 14, 0.94), rgba(67, 46, 14, 0.74)),
    url("/assets/local-map.svg") center / cover no-repeat;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: 50px;
  line-height: 1.05;
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 20px 0 0;
  color: #dce7e3;
  font-size: 20px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 5vw, 68px);
  padding: 78px clamp(18px, 5vw, 72px);
  align-items: start;
}

.long-copy {
  max-width: 860px;
}

.long-copy h2,
.legal-copy h2 {
  margin: 34px 0 10px;
  font-size: 29px;
  line-height: 1.2;
}

.long-copy h2:first-child,
.legal-copy h2:first-child {
  margin-top: 0;
}

.long-copy p,
.legal-copy p {
  color: var(--muted);
  font-size: 18px;
}

.personal-note {
  margin: 0 0 34px;
  padding: 20px 22px;
  background: #f4f7f5;
  border-left: 4px solid var(--green);
  border-radius: 8px;
}

.personal-note p {
  margin: 0;
}

.personal-note .section-kicker {
  margin-bottom: 8px;
}

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

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

.content-table th {
  background: #edf2ef;
  color: var(--green-dark);
}

.content-table tr:last-child td {
  border-bottom: 0;
}

.related-links {
  display: grid;
  gap: 10px;
  margin-top: 38px;
  padding: 22px;
  background: #edf2ef;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.related-links h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.related-links a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.side-note {
  position: sticky;
  top: 96px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 34, 30, 0.06);
}

.side-note h2 {
  margin: 0 0 10px;
  font-size: 23px;
}

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

.side-note .button + .button {
  margin-top: 10px;
}

.legal-copy {
  max-width: 880px;
  padding: 72px clamp(18px, 5vw, 72px);
}

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

  .hero {
    min-height: 560px;
  }

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(8, 24, 21, 0.98), rgba(8, 24, 21, 0.93) 62%, rgba(8, 24, 21, 0.72)),
      url("/assets/hero-worktable.svg") 82% center / cover no-repeat;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .topic-grid,
  .preview-list,
  .answer-grid,
  .split-section,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .structure-row {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 40px;
  }

  .side-note {
    position: static;
  }
}
