:root {
  --bg: #f6f3ea;
  --surface: #fffdf7;
  --surface-2: #edf5e8;
  --ink: #1f2a24;
  --muted: #667267;
  --primary: #2f6f4e;
  --primary-dark: #214f39;
  --secondary: #c97135;
  --line: #dce4d5;
  --footer: #17251d;
  --shadow: 0 18px 48px rgba(31, 42, 36, .12);
  --radius: 8px;
  --font-body: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(201,113,53,.12), transparent 28rem),
    linear-gradient(135deg, rgba(47,111,78,.07) 0 25%, transparent 25% 100%),
    var(--bg);
  font: 17px/1.68 var(--font-body);
  overflow-x: clip;
}
body.menu-open { overflow-x: clip; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 40px)); }
.skip-link, .screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 20; background: #fff; padding: 10px 14px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,247,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220,228,213,.85);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 202px; }
.primary-nav { display: flex; align-items: center; gap: 18px; }
.menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--ink); font-weight: 700; padding: 10px 12px; border-radius: 999px; white-space: nowrap; }
.menu a:hover { background: var(--surface-2); color: var(--primary-dark); }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; background: var(--primary); border-radius: 8px; padding: 12px; cursor: pointer; }
.menu-toggle span:not(.screen-reader-text) { display: block; height: 2px; margin: 5px 0; background: #fff; }

.search-form { display: flex; gap: 8px; align-items: center; }
.search-form label { flex: 1; min-width: 170px; }
.search-form input[type="search"] {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 13px; background: #fff; color: var(--ink); font: inherit;
}
.search-form button, .btn {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; padding: 0 18px; background: var(--primary);
  color: #fff; font-weight: 800; white-space: nowrap; box-shadow: 0 10px 24px rgba(47,111,78,.22);
  transition: transform .18s ease, background .18s ease;
}
.search-form button:hover, .btn:hover { transform: translateY(-1px); background: var(--primary-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--primary); border: 1px solid var(--line); box-shadow: none; }
.btn-secondary:hover { color: #fff; }
.text-link { font-weight: 800; white-space: nowrap; }

.hero { padding: 62px 0 38px; }
.hero-grid, .split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 34px; align-items: center; }
.hero-grid > *, .split > *, .content-sidebar > * { min-width: 0; }
.kicker, .eyebrow { color: var(--secondary); font-weight: 800; letter-spacing: 0; text-transform: uppercase; font-size: .78rem; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; letter-spacing: 0; color: var(--ink); font-weight: 800; }
h1 { font-size: clamp(2.25rem, 5vw, 4.75rem); margin: 10px 0 18px; }
h2 { font-size: 2rem; margin: 0 0 18px; }
h3 { font-size: 1.28rem; margin: 28px 0 8px; }
.lead { font-size: 1.17rem; color: #46524a; max-width: 760px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-panel { min-width: 0; overflow: hidden; background: linear-gradient(145deg, #fffdf7, #e8f1e1); border: 1px solid var(--line); padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-panel img { border-radius: 6px; width: 100%; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.hero-stats span { background: #fff; padding: 10px; border-radius: 6px; color: var(--primary-dark); font-size: .88rem; font-weight: 700; text-align: center; }

.section { padding: 56px 0; }
.section-muted { background: rgba(237,245,232,.72); border-block: 1px solid var(--line); }
.section-intro p { font-size: 1.05rem; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 24px; }
.section-head p { margin: 0; color: var(--muted); }
.section-head.compact .as-h2, .as-h2 { font: 800 1.65rem/1.15 var(--font-head); color: var(--ink); letter-spacing: 0; }
.search-band .split, .final-cta .split {
  background: var(--primary-dark); color: #fff; border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
.search-band p, .final-cta p { color: rgba(255,255,255,.82); margin: 6px 0 0; }
.search-band .as-h2, .final-cta .as-h2 { color: #fff; }

.category-grid, .post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.category-card {
  display: grid; gap: 10px; min-height: 188px; padding: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 28px rgba(31,42,36,.07);
  color: var(--ink); transition: transform .18s ease, box-shadow .18s ease;
}
.category-card:hover, .post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.category-icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--surface-2); border-radius: 8px; color: var(--primary); font-weight: 900; }
.category-name { font: 800 1.22rem/1.25 var(--font-head); }

.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.post-card__image { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.post-card__image img[src$=".svg"] { object-fit: contain; padding: 10px; }
.post-card__body { padding: 18px; }
.post-card__title { display: block; color: var(--ink); font: 800 1.18rem/1.28 var(--font-head); margin: 8px 0; }
.post-card p { color: var(--muted); margin: 0 0 12px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .9rem; color: var(--muted); }
.post-meta a { color: var(--primary-dark); font-weight: 700; }
.post-card__readmore { display: none; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tag-pill, .post-tags a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--primary-dark); font-weight: 700;
}
.trust-list { display: grid; gap: 12px; }
.trust-list div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.trust-list strong { display: block; font-family: var(--font-head); }
.trust-list span { color: var(--muted); }

.faq-section details, .article-faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 10px 0;
}
summary { cursor: pointer; font-weight: 800; }

.page-hero { padding: 40px 0 28px; background: linear-gradient(135deg, rgba(237,245,232,.9), rgba(255,253,247,.85)); border-bottom: 1px solid var(--line); }
.compact-hero h1 { font-size: clamp(2rem, 3.2vw, 3rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: .92rem; }
.breadcrumbs a::after { content: "/"; margin-left: 8px; color: var(--muted); }
.content-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 34px; align-items: start; }
.archive-list { display: grid; gap: 22px; }
.archive-list .post-card {
  display: grid;
  grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
  min-height: 230px;
  background: rgba(255,253,247,.94);
  box-shadow: 0 12px 28px rgba(31,42,36,.07);
}
.archive-list .post-card__image {
  min-height: 100%;
  aspect-ratio: auto;
  border-right: 1px solid var(--line);
}
.archive-list .post-card__image img {
  object-fit: cover;
  padding: 0;
}
.archive-list .post-card__image img[src$=".svg"] {
  object-fit: cover;
  padding: 18px;
}
.archive-list .post-card__body {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 28px 30px;
}
.archive-list .post-card__title {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1.28rem, 2vw, 1.7rem);
}
.archive-list .post-card p {
  max-width: 620px;
  margin: 0;
  font-size: 1.02rem;
}
.archive-list .post-meta {
  margin-top: 4px;
  align-items: center;
}
.archive-list .post-card__readmore {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--primary-dark);
  font-weight: 800;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.archive-list .post-card__readmore:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.sidebar { display: grid; gap: 16px; }
.content-sidebar > .sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  padding-right: 4px;
}
.widget { background: rgba(255,253,247,.9); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.widget-title, .footer-title { font: 800 1rem/1.2 var(--font-head); margin-bottom: 12px; color: var(--ink); }
.clean-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sidebar-card {
  box-shadow: 0 12px 28px rgba(31,42,36,.07);
}
.sidebar-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .95rem;
}
.sidebar-search .search-form {
  display: grid;
}
.sidebar-search .search-form label {
  min-width: 0;
}
.sidebar-category-list, .sidebar-recent-list {
  display: grid;
  gap: 10px;
}
.sidebar-category {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.sidebar-category span {
  color: var(--primary-dark);
  font-weight: 800;
}
.sidebar-category small {
  color: var(--muted);
  white-space: nowrap;
}
.sidebar-category:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.sidebar-recent-item {
  display: grid;
  gap: 5px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.sidebar-recent-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.sidebar-recent-item strong {
  font: 800 .98rem/1.35 var(--font-head);
}
.sidebar-recent-item span {
  color: var(--muted);
  font-size: .88rem;
}
.sidebar-recent-item:hover strong {
  color: var(--primary-dark);
}
.sidebar-tags .tag-cloud {
  margin-top: 0;
  gap: 8px;
}
.sidebar-tags .tag-pill {
  min-height: 32px;
  padding: 0 10px;
  font-size: .9rem;
}
.sidebar-cta {
  background: var(--primary-dark);
  color: #fff;
}
.sidebar-cta .widget-title {
  color: #fff;
}
.sidebar-cta p {
  color: rgba(255,255,255,.78);
}
.sidebar-cta .btn {
  width: 100%;
  background: #fff;
  color: var(--primary-dark);
  box-shadow: none;
}
.sidebar-cta .btn:hover {
  background: var(--surface-2);
  color: var(--primary-dark);
}
.single-layout .sidebar .toc {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(255,253,247,.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 10px 16px 16px;
  box-shadow: 0 12px 28px rgba(31,42,36,.07);
  scrollbar-width: thin;
  scrollbar-color: rgba(47,111,78,.48) rgba(237,245,232,.9);
}
.single-layout .sidebar .toc::-webkit-scrollbar { width: 8px; }
.single-layout .sidebar .toc::-webkit-scrollbar-track { background: rgba(237,245,232,.9); border-radius: 999px; }
.single-layout .sidebar .toc::-webkit-scrollbar-thumb { background: rgba(47,111,78,.48); border-radius: 999px; }
.toc ol { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 4px; }
.toc li { margin: 0; }
.toc a {
  display: block;
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--muted);
  line-height: 1.35;
  border-left: 3px solid transparent;
}
.toc a:hover { background: var(--surface-2); color: var(--primary-dark); }
.toc a.is-active {
  background: var(--surface-2);
  border-left-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 800;
}
.toc__sub { margin-left: 12px; font-size: .94rem; }
.mobile-toc { display: none; }

.article-hero h1 { font-size: clamp(2.1rem, 4vw, 4rem); max-width: 900px; }
.featured-figure { margin: 26px 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.featured-figure img { width: 100%; max-height: 560px; object-fit: cover; }
.article-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; min-width: 0; }
.article-content h2[id], .article-content h3[id] { scroll-margin-top: 96px; }
.article-content > p:first-child { font-size: 1.08rem; }
.article-content figure { margin: 28px 0; }
.article-content figcaption { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 22px 0; background: #fff; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
.article-content th { background: var(--surface-2); }
.author-box { display: flex; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); margin-top: 28px; }
.author-box img { border-radius: 50%; }
.author-name { font-weight: 900; color: var(--ink); }
.expertise { color: var(--primary-dark); font-weight: 700; }
.article-nav-panel {
  display: grid;
  gap: 16px;
  margin-top: 42px;
  padding: 28px;
  background: rgba(255,253,247,.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(31,42,36,.09);
}
.article-nav-panel__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 28px;
  align-items: start;
}
.article-nav-panel__title {
  font: 900 clamp(2rem, 4vw, 3.5rem)/1.05 var(--font-head);
  color: var(--ink);
  margin-top: 6px;
}
.article-nav-panel__head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}
.article-nav-card {
  background: rgba(255,255,255,.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.article-nav-card__intro {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.article-nav-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8cf72;
  color: var(--primary-dark);
  font-weight: 900;
}
.article-nav-card h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  text-transform: uppercase;
}
.article-nav-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
.article-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.article-nav-pills--scroll {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(47,111,78,.45) rgba(237,245,232,.9);
}
.article-nav-pills--scroll::-webkit-scrollbar { width: 8px; }
.article-nav-pills--scroll::-webkit-scrollbar-track { background: rgba(237,245,232,.9); border-radius: 999px; }
.article-nav-pills--scroll::-webkit-scrollbar-thumb { background: rgba(47,111,78,.45); border-radius: 999px; }
.article-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #e6bf68;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 900;
}
.article-nav-pill small {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff2c8;
  color: var(--ink);
}
.article-nav-pill:hover {
  background: var(--surface-2);
  color: var(--primary-dark);
}
.article-nav-card--note {
  background: linear-gradient(135deg, rgba(255,242,200,.82), rgba(255,253,247,.88));
  border-color: #e6bf68;
}
.related-section {
  margin-top: 42px;
}
.post-grid.small { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }

.page-content { background: rgba(255,253,247,.88); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.page-content .service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.page-content .service-card { background: var(--surface-2); border-radius: var(--radius); padding: 18px; }
.about-page { display: grid; gap: 42px; min-width: 0; }
.about-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .76fr); gap: 30px; align-items: center; min-width: 0;
}
.about-page > *, .about-intro > *, .about-panel, .about-process, .process-list, .topic-strip, .about-cta { min-width: 0; max-width: 100%; }
.about-intro h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); margin-top: 8px; }
.about-intro p { font-size: 1.05rem; color: #46524a; }
.about-panel {
  background: linear-gradient(145deg, #fffdf7, #edf5e8); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
}
.about-panel img { width: 100%; max-width: 100%; border-radius: 6px; background: var(--surface-2); }
.about-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.about-metrics span { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px; color: var(--muted); font-size: .88rem; }
.about-metrics strong { display: block; color: var(--primary-dark); font: 900 1.25rem/1 var(--font-head); }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.value-card {
  min-height: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 12px 28px rgba(31,42,36,.07);
}
.value-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px;
  background: var(--surface-2); color: var(--primary-dark); font-weight: 900; margin-bottom: 16px;
}
.value-card h3 { margin-top: 0; }
.value-card p { color: var(--muted); margin-bottom: 0; }
.about-process {
  display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1fr); gap: 28px; align-items: start;
  background: var(--primary-dark); color: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.about-process h2 { color: #fff; }
.about-process p { color: rgba(255,255,255,.82); }
.process-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: process; }
.process-list li {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.06);
}
.process-list strong { color: #fff; }
.process-list span { color: rgba(255,255,255,.78); }
.topic-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.topic-strip a {
  display: grid; gap: 8px; min-height: 150px; padding: 20px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
}
.topic-strip strong { font: 900 1.18rem/1.2 var(--font-head); color: var(--primary-dark); }
.topic-strip span { color: var(--muted); }
.about-cta {
  display: flex; justify-content: space-between; gap: 22px; align-items: center;
  background: linear-gradient(135deg, #fffdf7, #edf5e8); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: 0 12px 28px rgba(31,42,36,.07);
}
.about-cta p { margin: 6px 0 0; color: var(--muted); }
.contact-page { display: grid; gap: 34px; min-width: 0; }
.contact-page > *, .contact-intro > *, .contact-main > *, .contact-form-panel, .contact-aside { min-width: 0; max-width: 100%; }
.contact-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr); gap: 28px; align-items: stretch;
}
.contact-intro h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); margin-top: 8px; }
.contact-intro p { color: #46524a; font-size: 1.05rem; }
.contact-card {
  display: grid; align-content: center; gap: 12px; min-height: 250px; padding: 26px;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.contact-card--primary { background: var(--primary-dark); color: #fff; }
.contact-card--primary a { color: #fff; font: 900 1.35rem/1.2 var(--font-head); overflow-wrap: anywhere; }
.contact-card--primary p { color: rgba(255,255,255,.78); margin: 0; }
.contact-label {
  display: inline-flex; width: fit-content; min-height: 32px; align-items: center; padding: 0 10px;
  border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-weight: 800; font-size: .82rem;
}
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-tile {
  min-height: 210px; padding: 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 12px 28px rgba(31,42,36,.07);
}
.contact-tile h3 { margin-top: 0; }
.contact-tile p { color: var(--muted); margin-bottom: 0; }
.contact-main { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.contact-form-panel {
  background: rgba(255,253,247,.92); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 12px 28px rgba(31,42,36,.07);
}
.contact-form-content .service-grid { display: none; }
.contact-form-content > p { color: var(--muted); margin-top: 0; }
.contact-aside { display: grid; gap: 16px; }
.contact-note {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.contact-note h3 { margin-top: 0; }
.contact-note ul { margin: 0; padding-left: 18px; color: var(--muted); }
.contact-note li { margin: 8px 0; }
.contact-note--dark { background: var(--primary-dark); color: #fff; }
.contact-note--dark h3 { color: #fff; }
.contact-note--dark p { color: rgba(255,255,255,.78); margin-bottom: 0; }
.wpcf7 form { display: grid; gap: 14px; }
.wpcf7 input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), .wpcf7 textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: inherit; }
.wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7-acceptance label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  cursor: pointer;
  line-height: 1.55;
}
.wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.wpcf7-acceptance .wpcf7-list-item-label { color: var(--ink); }
.wpcf7-submit { background: var(--primary); color: #fff; font-weight: 800; cursor: pointer; }

.nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.page-numbers { min-width: 40px; min-height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; border-radius: 8px; }
.page-numbers.current { background: var(--primary); color: #fff; }

.site-footer { background: var(--footer); color: rgba(255,255,255,.78); padding: 48px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr .9fr; gap: 28px; }
.footer-brand img { width: 210px; margin-bottom: 14px; }
.site-footer a { color: #fff; }
.site-footer .footer-title { color: #fff; }
.site-footer .tag-cloud { align-items: flex-start; gap: 8px; }
.site-footer .tag-pill {
  min-height: 34px;
  max-width: 100%;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.26);
  color: #fff;
  box-shadow: none;
  overflow-wrap: anywhere;
}
.site-footer .tag-pill:hover {
  background: rgba(255,255,255,.16);
  color: #fff;
}
.footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px; }
.footer-consent {
  background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 8px; min-height: 38px; padding: 0 12px;
  cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.footer-consent:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.58); }
.footer-consent:active { transform: translateY(1px); }
.gap-cookie-banner {
  position: fixed; z-index: 30; right: 18px; bottom: 18px;
  display: grid; gap: 12px;
  width: min(420px, calc(100vw - 36px)); padding: 14px; background: #fffdf7;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
}
.gap-cookie-banner[hidden], .gap-cookie-banner.is-hidden { display: none !important; }
.gap-cookie-banner__text { display: grid; gap: 3px; }
.gap-cookie-banner__text strong { font-family: var(--font-head); }
.gap-cookie-banner__text span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.gap-cookie-banner__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gap-cookie-banner button {
  min-height: 36px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); padding: 0 10px; font-size: .88rem; font-weight: 800; white-space: nowrap;
  cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.gap-cookie-banner .cmplz-accept { background: var(--primary); color: #fff; border-color: var(--primary); }
.gap-cookie-banner .cmplz-accept:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 8px 18px rgba(47,111,78,.22); }
.gap-cookie-banner button:not(.cmplz-accept):hover { background: var(--surface-2); border-color: #bfd0bd; color: var(--primary-dark); }
.gap-cookie-banner button:active { transform: translateY(1px); }
.gap-cookie-banner button:focus-visible, .footer-consent:focus-visible {
  outline: 3px solid rgba(47,111,78,.32);
  outline-offset: 2px;
}

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 60;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    background: rgba(255,253,247,.98);
    padding: 20px;
    display: grid;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(31,42,36,.13);
    transition: transform .2s ease, opacity .2s ease;
  }
  .menu-open .primary-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .menu { display: grid; align-items: stretch; }
  .menu a { display: block; min-height: 44px; }
  .hero-grid, .split, .content-sidebar { grid-template-columns: 1fr; }
  .content-sidebar > .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  .article-nav-panel__head { grid-template-columns: 1fr; }
  .category-grid, .post-grid, .footer-grid, .page-content .service-grid, .about-intro, .about-process, .contact-intro { grid-template-columns: 1fr 1fr; }
  .value-grid, .topic-strip, .contact-grid, .contact-main { grid-template-columns: 1fr; }
  .archive-list .post-card { grid-template-columns: 1fr; }
  .archive-list .post-card__image {
    min-height: 0;
    aspect-ratio: 16/9;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .archive-list .post-card__body { padding: 24px; }
  .sidebar .toc { display: none; }
  .mobile-toc { display: block; margin-bottom: 22px; }
}

@media (max-width: 640px) {
  .container, .narrow { width: calc(100vw - 48px); max-width: 100%; }
  .hero { padding-top: 36px; }
  h1 { font-size: 2.28rem; }
  h2 { font-size: 1.65rem; }
  .lead { max-width: 100%; font-size: 1.05rem; }
  .hero-copy, .hero-panel, .search-band .split, .final-cta .split, .page-content, .article-content { max-width: 100%; }
  .hero-stats, .category-grid, .post-grid, .post-grid.small, .footer-grid, .page-content .service-grid, .about-intro, .about-process, .about-metrics, .topic-strip, .contact-intro, .contact-grid, .contact-main { grid-template-columns: 1fr; }
  .hero-actions, .search-form, .section-head, .footer-bottom, .about-cta { flex-direction: column; align-items: stretch; }
  .btn, .search-form button { width: 100%; }
  .about-process, .about-cta { padding: 22px; }
  .process-list li { grid-template-columns: 1fr; }
  .about-page { gap: 34px; overflow: hidden; }
  .about-intro h2 { font-size: 2rem; }
  .about-intro p, .about-process p, .value-card p, .topic-strip span, .about-cta p { overflow-wrap: anywhere; }
  .about-panel { padding: 10px; }
  .value-card { min-height: 0; padding: 20px; }
  .topic-strip a { min-height: 0; }
  .contact-page { gap: 28px; overflow: hidden; }
  .contact-intro h2 { font-size: 2rem; }
  .contact-card, .contact-form-panel, .contact-note { padding: 20px; }
  .contact-card { min-height: 0; }
  .contact-intro p, .contact-tile p, .contact-form-content > p, .contact-note p, .contact-note li { overflow-wrap: anywhere; }
  .wpcf7 input, .wpcf7 textarea { min-width: 0; }
  .gap-cookie-banner { left: 14px; right: 14px; bottom: 14px; width: auto; padding: 11px; gap: 9px; }
  .lead, .hero-copy, .gap-cookie-banner__text span { overflow-wrap: anywhere; }
  .gap-cookie-banner__actions { grid-template-columns: 1fr; }
  .gap-cookie-banner button { width: 100%; }
  .article-content, .page-content { padding: 22px; }
  .article-nav-panel { padding: 20px; gap: 14px; }
  .article-nav-panel__title { font-size: 2rem; }
  .article-nav-card { padding: 16px; }
  .article-nav-card__intro { grid-template-columns: 38px minmax(0, 1fr); }
  .article-nav-icon { width: 36px; height: 36px; }
  .article-nav-pills--scroll { max-height: 220px; }
  .article-nav-pill { width: 100%; justify-content: space-between; }
  .archive-list .post-card__body { padding: 20px; }
  .archive-list .post-card__readmore { width: 100%; }
  .article-content table, .article-content thead, .article-content tbody, .article-content th, .article-content td, .article-content tr { display: block; }
  .article-content thead { position: absolute; left: -9999px; }
  .article-content tr { border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 12px; background: #fff; }
  .article-content td { border: 0; padding: 8px 0; }
  .article-content td::before { content: attr(data-label); display: block; color: var(--muted); font-weight: 800; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
