:root {
  --ink: #18342d;
  --ink-2: #24483e;
  --forest: #1d5a47;
  --forest-dark: #123d31;
  --lime: #b9dc72;
  --lime-soft: #e8f2cf;
  --sand: #f2eee4;
  --paper: #fbfaf6;
  --white: #ffffff;
  --stone: #d9ddd5;
  --muted: #61716b;
  --clay: #b96844;
  --line: rgba(24, 52, 45, 0.14);
  --shadow: 0 22px 60px rgba(22, 57, 47, 0.12);
  --shadow-small: 0 12px 32px rgba(22, 57, 47, 0.09);
  --radius: 22px;
  --radius-small: 14px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

a:hover {
  text-decoration-color: var(--clay);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--forest-dark);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 40px), 820px);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  content: "";
  background: var(--clay);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.55em;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.75rem, 6.4vw, 6.3rem);
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 4rem);
}

h3 {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
}

h4 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1.2em;
}

.lead {
  max-width: 780px;
  color: #3d554e;
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  line-height: 1.65;
}

.small {
  font-size: 0.88rem;
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(251, 250, 246, 0.93);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(22, 57, 47, 0.06);
}

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

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

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  background: var(--forest);
  border-radius: 50% 50% 14% 50%;
  transform: rotate(-8deg);
}

.brand-mark::before {
  width: 17px;
  height: 17px;
  content: "";
  border-top: 3px solid var(--lime);
  border-right: 3px solid var(--lime);
  transform: rotate(-45deg) translate(-1px, 2px);
}

.brand-text {
  display: grid;
  color: var(--ink);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.18;
  text-transform: uppercase;
}

.brand-text strong {
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
}

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

.main-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--forest-dark);
  background: var(--lime-soft);
}

.nav-contact {
  margin-left: 8px;
  color: var(--white) !important;
  background: var(--forest) !important;
}

.nav-contact:hover {
  background: var(--forest-dark) !important;
}

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  display: block;
  width: 20px;
  height: 2px;
  content: "";
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button span {
  position: relative;
}

.menu-button span::before {
  position: absolute;
  top: -6px;
}

.menu-button span::after {
  position: absolute;
  top: 6px;
}

.menu-button[aria-expanded="true"] span {
  background: transparent;
}

.menu-button[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-dark);
}

.hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(11, 45, 35, 0.96) 0%, rgba(11, 45, 35, 0.8) 37%, rgba(11, 45, 35, 0.18) 70%, rgba(11, 45, 35, 0.08) 100%);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 760px;
  align-content: center;
  padding-block: 110px 130px;
}

.hero-content {
  max-width: 790px;
}

.hero .eyebrow,
.hero h1 {
  color: var(--white);
}

.hero .eyebrow::before {
  background: var(--lime);
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.08rem, 1.9vw, 1.28rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 21px;
  color: var(--white);
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 999px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  background: var(--forest-dark);
  border-color: var(--forest-dark);
  text-decoration: none;
  transform: translateY(-2px);
}

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

.button-light:hover {
  color: var(--white);
  background: var(--clay);
  border-color: var(--clay);
}

.button-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.45);
}

.button-outline {
  color: var(--forest);
  background: transparent;
  border-color: rgba(29, 90, 71, 0.35);
}

.hero-note {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 30px;
  display: flex;
  max-width: 340px;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  color: var(--ink);
  background: rgba(251, 250, 246, 0.92);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(12px);
}

.hero-note strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
}

.hero-note span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.4;
}

.page-hero {
  position: relative;
  padding: 105px 0 88px;
  overflow: hidden;
  background: var(--sand);
}

.page-hero::after {
  position: absolute;
  right: -110px;
  bottom: -210px;
  width: 460px;
  height: 460px;
  content: "";
  background: var(--lime-soft);
  border-radius: 48% 52% 67% 33% / 56% 43% 57% 44%;
  transform: rotate(18deg);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 960px;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs span::before {
  margin-right: 8px;
  content: "/";
  color: #98a29e;
}

.section {
  padding: 105px 0;
}

.section-compact {
  padding: 74px 0;
}

.section-dark {
  color: rgba(255, 255, 255, 0.78);
  background: var(--forest-dark);
}

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

.section-dark .eyebrow::before {
  background: var(--lime);
}

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

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

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading > :last-child {
  margin-bottom: 8px;
}

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

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

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

.card {
  position: relative;
  padding: 30px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}

.card-number {
  display: inline-grid;
  width: 43px;
  height: 43px;
  margin-bottom: 34px;
  place-items: center;
  color: var(--forest-dark);
  background: var(--lime-soft);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

.card p:last-child,
.prose > :last-child {
  margin-bottom: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.card-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.card-link:hover::after {
  transform: translateX(4px);
}

.measure-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
}

.measure-icon {
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 38px;
  place-items: center;
  color: var(--forest);
  background: var(--lime-soft);
  border-radius: 18px;
  font-size: 1.55rem;
  font-weight: 500;
}

.measure-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  display: inline-flex;
  padding: 6px 10px;
  color: var(--forest);
  background: #eef3ec;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.2;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(45px, 7vw, 100px);
  align-items: center;
}

.split-reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
}

.split-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.image-caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.check-list,
.plain-list,
.cross-list {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.cross-list li {
  position: relative;
  padding: 9px 0 9px 34px;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  position: absolute;
  top: 10px;
  left: 0;
  color: var(--forest);
  content: "✓";
  font-weight: 900;
}

.cross-list li::before {
  position: absolute;
  top: 10px;
  left: 0;
  color: var(--clay);
  content: "×";
  font-weight: 900;
}

.plain-list {
  padding-left: 1.2rem;
  list-style: disc;
}

.plain-list li {
  margin-bottom: 8px;
  padding-left: 5px;
}

.route {
  counter-reset: route;
  display: grid;
  gap: 0;
  margin-top: 45px;
}

.route-step {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 26px;
  padding-bottom: 45px;
}

.route-step::before {
  position: absolute;
  top: 58px;
  bottom: 0;
  left: 29px;
  width: 1px;
  content: "";
  background: var(--stone);
}

.route-step:last-child::before {
  display: none;
}

.route-index {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--white);
  background: var(--forest);
  border-radius: 50%;
  font-weight: 800;
}

.route-content {
  padding-top: 6px;
}

.callout {
  position: relative;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  background: var(--lime-soft);
  border-radius: 30px;
}

.callout::after {
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  content: "";
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}

.callout > * {
  position: relative;
  z-index: 1;
}

.callout-clay {
  color: var(--white);
  background: var(--clay);
}

.callout-clay h2,
.callout-clay h3 {
  color: var(--white);
}

.notice {
  padding: 23px 26px;
  color: #3e4e49;
  background: #f3f5ef;
  border-left: 4px solid var(--forest);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
}

.notice strong {
  color: var(--ink);
}

.quickscan {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.quickscan-intro {
  padding: clamp(32px, 5vw, 64px);
  color: rgba(255,255,255,.78);
  background: var(--forest-dark);
}

.quickscan-intro h2,
.quickscan-intro .eyebrow {
  color: var(--white);
}

.quickscan-intro .eyebrow::before {
  background: var(--lime);
}

.quickscan-form {
  display: grid;
  gap: 22px;
  padding: clamp(32px, 5vw, 64px);
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label,
.field-label {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 750;
}

.field-group select,
.field-group input,
.field-group textarea {
  width: 100%;
  padding: 14px 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #cfd6d1;
  border-radius: 11px;
}

.field-group textarea {
  min-height: 150px;
  resize: vertical;
}

.quickscan-result {
  display: none;
  padding: 22px;
  background: var(--lime-soft);
  border-radius: var(--radius-small);
}

.quickscan-result.visible {
  display: block;
}

.quickscan-result h3 {
  font-size: 1.45rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 33px 28px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat strong {
  display: block;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 80px;
  align-items: start;
}

.article h2 {
  margin-top: 1.45em;
  font-size: clamp(2rem, 3.7vw, 3.25rem);
}

.article h3 {
  margin-top: 1.55em;
}

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

.article table {
  width: 100%;
  margin: 30px 0;
  border-collapse: collapse;
  font-size: 0.92rem;
}

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

.article th {
  color: var(--forest);
  background: var(--lime-soft);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.sidebar {
  position: sticky;
  top: 112px;
}

.sidebar-box {
  padding: 25px;
  background: var(--sand);
  border-radius: var(--radius-small);
}

.sidebar-box + .sidebar-box {
  margin-top: 18px;
}

.sidebar h3 {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
}

.sidebar nav a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}

.sidebar nav a:last-child {
  border: 0;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0;
}

.fact {
  padding: 24px;
  background: var(--sand);
  border-radius: var(--radius-small);
}

.fact strong {
  display: block;
  margin-bottom: 6px;
  color: var(--forest);
}

.faq-list {
  border-top: 1px solid var(--line);
}

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

.faq-list summary {
  position: relative;
  padding: 25px 50px 25px 0;
  color: var(--ink);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.3;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 23px;
  right: 4px;
  content: "+";
  color: var(--forest);
  font-family: inherit;
  font-size: 1.7rem;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details > div {
  max-width: 850px;
  padding: 0 50px 23px 0;
  color: var(--muted);
}

.project-card {
  padding: 0;
}

.project-visual {
  display: grid;
  min-height: 250px;
  place-items: center;
  background: var(--lime-soft);
}

.project-visual span {
  display: grid;
  width: 130px;
  height: 130px;
  place-items: center;
  color: var(--forest);
  background: rgba(255,255,255,.55);
  border-radius: 38% 62% 45% 55% / 60% 35% 65% 40%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
}

.project-content {
  padding: 30px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 38px;
}

.contact-card,
.contact-form {
  padding: clamp(28px, 5vw, 50px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-list {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

.contact-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
}

.contact-item-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--forest);
  background: var(--lime-soft);
  border-radius: 50%;
  font-weight: 900;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.form-note {
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer {
  color: rgba(255,255,255,.72);
  background: #0e2d25;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr .8fr .8fr .95fr;
  gap: 50px;
  padding: 76px 0 58px;
}

.footer-brand .brand-text,
.footer-brand .brand-text strong {
  color: var(--white);
}

.footer-intro {
  max-width: 350px;
  margin-top: 22px;
  font-size: 0.88rem;
}

.footer-column h2 {
  margin-bottom: 18px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-column a,
.footer-column address span {
  display: block;
  margin-bottom: 9px;
  color: rgba(255,255,255,.72);
  font-size: 0.84rem;
  font-style: normal;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  padding: 23px 0 30px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 0.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1040px) {
  .menu-button {
    display: grid;
  }

  .main-nav {
    position: fixed;
    z-index: 45;
    top: 84px;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    padding: 25px 20px 50px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    overflow-y: auto;
    background: var(--paper);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }

  .main-nav.open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .main-nav a {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .nav-contact {
    margin: 12px 0 0;
    text-align: center;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 45px;
  }

  .footer-main {
    grid-template-columns: 1.3fr repeat(2, 1fr);
  }

  .footer-column:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 800px) {
  body {
    font-size: 16px;
  }

  .container,
  .narrow {
    width: min(calc(100% - 32px), var(--container));
  }

  .hero,
  .hero .container {
    min-height: 680px;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(11,45,35,.96), rgba(11,45,35,.75));
  }

  .hero .container {
    padding-block: 85px 120px;
  }

  .hero-note {
    right: 16px;
    bottom: 18px;
    left: 16px;
    max-width: none;
  }

  .section,
  .section-compact {
    padding: 76px 0;
  }

  .page-hero {
    padding: 75px 0 65px;
  }

  .section-heading,
  .split,
  .quickscan,
  .contact-grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 18px;
    margin-bottom: 38px;
  }

  .split {
    gap: 38px;
  }

  .split-reverse .split-media {
    order: 0;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
    order: -1;
  }

  .sidebar-box:last-child {
    display: none;
  }

  .sidebar nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .sidebar nav a {
    flex: 0 0 auto;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand,
  .footer-column:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 74px;
  }

  .main-nav {
    top: 74px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    font-size: .58rem;
  }

  .brand-text strong {
    font-size: .95rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .fact-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 24px;
  }

  .measure-card {
    min-height: 0;
  }

  .route-step {
    grid-template-columns: 55px 1fr;
    gap: 16px;
  }

  .route-index {
    width: 44px;
    height: 44px;
  }

  .route-step::before {
    top: 44px;
    left: 21px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat + .stat {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .article table {
    display: block;
    overflow-x: auto;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand,
  .footer-column:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
