:root {
  --ink: #153d32;
  --ink-dark: #0d261f;
  --muted: #4d6258;
  --paper: #f7f5ee;
  --white: #ffffff;
  --soft: #e9eee5;
  --gold: #e9b65e;
  --gold-hover: #dca346;
  --line: #b8c5b9;
  --warning: #fff0d6;
  --danger-bg: #fef2f2;
  --danger-border: #f87171;
  --danger-text: #991b1b;
  --success-bg: #f0fdf4;
  --success-border: #86efac;
  --success-text: #166534;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-thickness: 2px;
}

button, input, select {
  font: inherit;
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.dark a:focus-visible, .dark button:focus-visible, .footer a:focus-visible {
  outline-color: var(--gold);
}

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

figure {
  margin: 0;
}

h1, h2, h3, h4, p {
  margin: 0 0 1rem;
}

h1, h2, h3, h4 {
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  font-weight: 700;
}

h3 {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
}

h4 {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
}

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

ul, ol {
  padding-left: 1.4em;
  color: var(--muted);
}

li {
  margin: 0.5rem 0;
}

.wrap {
  width: min(1200px, calc(100% - 64px));
  margin: auto;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--ink);
  color: var(--white);
  padding: 14px 24px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
  min-height: 48px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.button:hover {
  background: #244e3f;
  color: #fff;
}

.button.gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.button.gold:hover {
  background: var(--gold-hover);
  color: var(--ink);
}

.button.outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.outline:hover {
  background: var(--soft);
}

.text-link {
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-block;
  padding: 8px 0;
  color: var(--ink);
}

.text-link:hover {
  text-decoration: underline;
}

.skip {
  position: absolute;
  left: 18px;
  top: -100px;
  z-index: 99;
  background: #fff;
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 700;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.skip:focus {
  top: 10px;
}

.safety-bar {
  background: var(--warning);
  border-bottom: 1px solid #d9c7a8;
  font-size: 0.8rem;
  color: var(--ink);
  padding: 10px 0;
}

.safety-bar .wrap {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.safety-bar strong {
  white-space: nowrap;
}

.safety-bar a {
  font-weight: 700;
}

.header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--ink);
}

.brand small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  margin-top: 6px;
  color: var(--muted);
}

.brand svg {
  width: 40px;
  height: 42px;
  flex: none;
  color: var(--ink);
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav a {
  font-size: 0.88rem;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 0;
  color: var(--ink);
}

.nav a:hover {
  text-decoration: underline;
}

.nav .button {
  padding: 11px 18px;
  font-size: 0.82rem;
  min-height: 42px;
}

.menu {
  display: none;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  padding: 10px 16px;
  min-height: 44px;
  font-weight: 700;
}

/* Hero Section */
.hero {
  padding: 60px 0 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 22px;
}

.hero h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
}

.hero .lead {
  font-size: 1.15rem;
  max-width: 520px;
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

.small {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero .small {
  margin-top: 18px;
}

.hero-art {
  position: relative;
}

.hero-art img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 80px 8px 8px 8px;
  box-shadow: 0 12px 32px rgba(21, 61, 50, 0.12);
}

.hero-art figcaption {
  font-size: 0.7rem;
  line-height: 1.5;
  margin-top: 10px;
  color: var(--muted);
}

.art-tag {
  position: absolute;
  left: -20px;
  bottom: 35px;
  background: var(--ink);
  color: var(--white);
  padding: 18px 22px;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.45;
  box-shadow: 0 10px 24px rgba(21, 61, 50, 0.2);
}

.art-tag strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  color: var(--gold);
}

.identity-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  background: #fbf9f4;
}

.identity-strip .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  flex-wrap: wrap;
}

.identity-strip span:before {
  content: '✓';
  margin-right: 10px;
  font-weight: 800;
  color: var(--ink);
}

/* Section Components */
.section {
  padding: 80px 0;
}

.section.soft {
  background: var(--soft);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 35px;
}

.section-head h2 {
  max-width: 650px;
  margin: 0;
}

.section-head p {
  max-width: 380px;
  margin: 0;
  font-size: 0.95rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.card img {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
}

.card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card .eyebrow {
  font-size: 0.7rem;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.card h3 a {
  text-decoration: none;
}

.card h3 a:hover {
  text-decoration: underline;
}

.card p {
  font-size: 0.92rem;
  line-height: 1.55;
}

.card .text-link {
  margin-top: auto;
  align-self: flex-start;
  padding-top: 14px;
}

.card.dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.card.dark h3, .card.dark p, .card.dark .eyebrow {
  color: #fff;
}

.card-number {
  font-family: Georgia, serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 700;
}

.card.dark .button {
  align-self: flex-start;
  margin-top: auto;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.steps li:first-child {
  padding-top: 0;
}

.steps span {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}

.steps h3 {
  font-size: 1.22rem;
  margin: 0 0 8px;
}

.steps p {
  font-size: 0.92rem;
  margin: 0;
}

.note {
  padding: 22px 26px;
  border-left: 4px solid var(--ink);
  background: var(--soft);
  border-radius: 0 6px 6px 0;
  margin: 24px 0;
}

.note p:last-child {
  margin: 0;
}

.dark {
  background: var(--ink);
  color: var(--white);
}

.dark h2, .dark h3, .dark p {
  color: var(--white);
}

.dark .eyebrow {
  color: var(--gold);
}

.dark .note {
  background: #244e3f;
  border-color: var(--gold);
}

.local-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 75px;
}

.local-links {
  border-top: 1px solid #6d8979;
}

.local-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  padding: 24px 0;
  border-bottom: 1px solid #6d8979;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: #fff;
}

.local-links a:hover {
  color: var(--gold);
}

.local-links small {
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0;
  display: block;
  color: #c9ded3;
  margin-top: 6px;
  font-weight: 400;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guide-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.guide-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.guide-card h3 a {
  text-decoration: none;
}

.guide-card h3 a:hover {
  text-decoration: underline;
}

.guide-card p {
  font-size: 0.92rem;
}

.guide-card .text-link {
  margin-top: auto;
  align-self: flex-start;
  padding-top: 14px;
}

.guide-card .eyebrow {
  font-size: 0.68rem;
}

.faq {
  max-width: 850px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.faq summary {
  cursor: pointer;
  padding: 22px 4px;
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.45;
  min-height: 48px;
  color: var(--ink);
}

.faq details p {
  padding: 0 4px 22px;
  margin: 0;
  font-size: 0.96rem;
  color: var(--muted);
}

.cta {
  background: var(--gold);
  padding: 60px 0;
  color: var(--ink);
}

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

.cta h2 {
  font-size: 2.5rem;
  margin: 0 0 12px;
  color: var(--ink);
}

.cta p {
  color: var(--ink);
  max-width: 650px;
  margin: 0;
  font-size: 1.05rem;
}

.footer {
  background: var(--ink);
  color: var(--white);
  padding: 65px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer p {
  color: #c9ded3;
  font-size: 0.85rem;
  max-width: 300px;
  margin-top: 20px;
}

.footer h3 {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  color: var(--gold);
}

.footer a {
  font-size: 0.85rem;
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  color: var(--gold);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin: 0.8rem 0;
}

.footer .brand {
  font-size: 1.1rem;
  color: #fff;
}

.footer .brand svg {
  color: #fff;
}

.copyright {
  border-top: 1px solid #365b4f;
  margin-top: 48px;
  padding-top: 24px;
  font-size: 0.75rem;
  color: #a4beaf;
}

/* Article & Service Detail Layouts */
.breadcrumb {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  margin-bottom: 30px;
  color: var(--muted);
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.article-hero {
  padding: 40px 0 45px;
  border-bottom: 1px solid var(--line);
}

.article-hero .eyebrow {
  margin-bottom: 16px;
}

.article-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  max-width: 950px;
}

.article-hero .intro {
  font-size: 1.15rem;
  max-width: 820px;
  margin: 20px 0 0;
  line-height: 1.65;
  color: var(--muted);
}

.article-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 22px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(260px, 1fr);
  gap: 60px;
  padding-top: 50px;
  padding-bottom: 70px;
  align-items: start;
}

.article-contents {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 36px;
}

.article-contents h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-contents ol {
  margin: 0;
  padding-left: 20px;
}

.article-contents li {
  margin: 8px 0;
  font-size: 0.92rem;
}

.article-contents a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}

.article-contents a:hover {
  text-decoration: underline;
}

.article-content section {
  margin: 0 0 50px;
}

.article-content h2 {
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 18px;
  padding-top: 10px;
}

.article-content h3 {
  font-size: 1.35rem;
  margin: 28px 0 12px;
}

.article-content p {
  font-size: 1.02rem;
  margin-bottom: 1.25rem;
}

.article-content figure {
  margin: 30px 0 35px;
}

.article-content figure img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.article-content figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 10px;
  font-style: italic;
}

.sidebox {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.sidebox.soft {
  background: var(--soft);
}

.sidebox h3 {
  font-size: 1.22rem;
  margin-bottom: 14px;
}

.sidebox p, .sidebox a {
  font-size: 0.88rem;
}

.sidebox ol {
  margin: 0;
  padding-left: 20px;
}

.sidebox li {
  line-height: 1.5;
  margin: 0.8rem 0;
}

.sidebox .button {
  width: 100%;
  margin-top: 12px;
}

.sources {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 40px;
}

.sources ul {
  padding-left: 18px;
}

.sources a, .sources p {
  font-size: 0.82rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 26px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

th {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  padding: 16px 20px;
}

td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  background: #fff;
}

tr:nth-child(even) td {
  background: #fbfbf9;
}

.related {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-top: 50px;
}

.related h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.link-list {
  display: grid;
  gap: 14px;
}

.link-list a {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.link-list a:hover {
  border-color: var(--ink);
  background: var(--soft);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.filters button {
  border: 1px solid var(--ink);
  border-radius: 30px;
  padding: 10px 22px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 44px;
  transition: all 0.15s ease;
}

.filters button[aria-pressed=true], .filters button:hover {
  background: var(--ink);
  color: #fff;
}

.result-count {
  font-size: 0.85rem;
  margin-bottom: 22px;
  font-weight: 600;
}

/* 4 Interactive Tools Styling */
.tool-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
  margin: 32px 0;
  box-shadow: 0 6px 24px rgba(21, 61, 50, 0.05);
}

.tool-card h3 {
  font-size: 1.55rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.tool-card p {
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.tool-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.tool-select, .tool-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
  min-height: 48px;
}

.tool-select:focus, .tool-input:focus {
  border-color: var(--ink);
  outline: none;
}

.tool-result {
  margin-top: 24px;
  padding: 24px;
  border-radius: 8px;
  background: #fbfbf9;
  border: 1px solid var(--line);
  border-left: 5px solid var(--ink);
  animation: fadeIn 0.3s ease;
}

.tool-result.success {
  background: var(--success-bg);
  border-color: var(--success-border);
  border-left: 5px solid var(--success-text);
}

.tool-result.notice {
  background: var(--warning);
  border-color: #d9c7a8;
  border-left: 5px solid #b45309;
}

.tool-result.error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  border-left: 5px solid var(--danger-text);
}

.tool-result h4 {
  font-size: 1.15rem;
  margin: 10px 0 6px;
}

.tool-result p {
  font-size: 0.94rem;
  margin-bottom: 12px;
}

.tool-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.badge-primary {
  background: var(--ink);
  color: #fff;
}

.badge-warning {
  background: #fed7aa;
  color: #9a3412;
}

.badge-success {
  background: #bbf7d0;
  color: #166534;
}

.badge-neutral {
  background: #e2e8f0;
  color: #334155;
}

/* Custom Checklist Tool */
.checklist-tool {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
  margin: 28px 0;
}

.checklist-tool label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 48px;
  margin: 12px 0;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 600;
}

.checklist-tool input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--ink);
  margin-top: 3px;
  flex: none;
}

.checklist-tool progress {
  width: 100%;
  height: 12px;
  accent-color: var(--ink);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 14px;
}

.checklist-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Diagram Cards & SVG Cutaways */
.diagram-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin: 32px 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.diagram-header {
  margin-bottom: 18px;
}

.diagram-header h4 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.diagram-header p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--muted);
}

.diagram-svg-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
}

.diagram-svg-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 600px;
}

@keyframes flow {
  to {
    stroke-dashoffset: -30;
  }
}

.flow-active {
  stroke-dasharray: 6 6;
  animation: flow 1.2s linear infinite;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-call {
  display: none;
}

[hidden] {
  display: none !important;
}

/* Responsive Breakpoints */
@media (min-width: 1450px) {
  .hero-art img {
    height: 520px;
  }
}

@media (max-width: 1000px) {
  .nav {
    gap: 16px;
  }
  .nav a {
    font-size: 0.8rem;
  }
  .hero-grid {
    gap: 32px;
  }
  .hero-art img {
    height: 420px;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .wrap {
    width: calc(100% - 48px);
  }
  .split, .local-grid {
    gap: 40px;
  }
  .article-layout {
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: 2 / 4;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .safety-bar .wrap {
    display: block;
    font-size: 0.74rem;
    line-height: 1.5;
    text-align: center;
  }
  .safety-bar strong {
    display: block;
    margin-bottom: 2px;
  }
  .header-inner {
    min-height: 74px;
    flex-wrap: wrap;
    padding: 12px 0;
  }
  .brand {
    font-size: 1.05rem;
  }
  .brand svg {
    width: 34px;
    height: 36px;
  }
  .menu {
    display: block;
  }
  .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-top: 14px;
    gap: 0;
  }
  .js .nav {
    display: none;
  }
  .js .nav.open {
    display: flex;
  }
  .nav a {
    font-size: 0.95rem;
    padding: 14px 6px;
    border-top: 1px solid var(--line);
  }
  .nav .button {
    margin-top: 12px;
  }
  .hero {
    padding: 36px 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 9vw, 3.8rem);
    max-width: 100%;
  }
  .hero .lead {
    font-size: 1.05rem;
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-art img {
    height: auto;
    aspect-ratio: 1.25;
    border-radius: 40px 8px 8px 8px;
  }
  .art-tag {
    bottom: 20px;
    left: -10px;
    padding: 14px 18px;
    font-size: 0.8rem;
  }
  .identity-strip .wrap {
    flex-direction: column;
    gap: 10px;
    font-size: 0.76rem;
  }
  .section {
    padding: 55px 0;
  }
  .section-head {
    display: block;
  }
  .section-head p {
    margin-top: 16px;
  }
  .cards, .guide-grid {
    grid-template-columns: 1fr;
  }
  .card-body {
    padding: 24px;
  }
  .split, .local-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .cta .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta .button {
    margin-top: 20px;
  }
  .cta h2 {
    font-size: 2.1rem;
  }
  .footer {
    padding-bottom: 95px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .article-hero {
    padding: 24px 0 32px;
  }
  .article-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 30px;
  }
  .article-content {
    width: 100%;
  }
  .article-layout aside {
    width: 100%;
  }
  .article-content h2 {
    font-size: 1.6rem;
  }
  .mobile-call {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    z-index: 40;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  }
  .mobile-call span {
    font-size: 0.72rem;
    line-height: 1.35;
  }
  .mobile-call strong {
    display: block;
    font-size: 0.8rem;
  }
  .mobile-call .button {
    font-size: 0.78rem;
    padding: 10px 16px;
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .flow-active {
    animation: none;
  }
}

@media print {
  .header, .footer, .safety-bar, .mobile-call, .cta, .menu, .filters, .sidebox, .tool-card {
    display: none;
  }
  .article-layout {
    display: block;
  }
  .wrap {
    width: 100%;
  }
  body {
    background: #fff;
  }
}
