:root {
  --ink: #0b0d0b;
  --muted: #667064;
  --line: #dfe8dc;
  --soft: #f3f8f1;
  --paper: #ffffff;
  --deep: #050705;
  --teal: #48a830;
  --teal-dark: #2f7f24;
  --green: #48a830;
  --lime: #48a830;
  --green-bright: #62d34a;
  --green-soft: #e9f5e4;
  --green-glow: rgba(72, 168, 48, 0.28);
  --amber: #f2b84b;
  --danger: #d94f45;
  --shadow: 0 18px 48px rgba(8, 18, 7, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 132px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  position: fixed;
  inset: 16px 18px auto;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 10px 14px;
  border: 1px solid rgba(72, 168, 48, 0.28);
  border-radius: 8px;
  color: #fff;
  background: rgba(5, 7, 5, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-header > *,
.hero-copy,
.lead-panel,
.contact-form,
.modal-card,
.image-card,
.service-card,
.price-accordion,
.faq-list,
.portfolio-track {
  min-width: 0;
}

.site-header.is-scrolled {
  color: #fff;
  background: rgba(5, 7, 5, 0.94);
  border-color: rgba(72, 168, 48, 0.34);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-width: 300px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.brand-logo {
  width: auto;
  height: 82px;
  max-width: 178px;
  object-fit: contain;
}

.brand-service {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding-left: 13px;
  border-left: 2px solid rgba(83, 193, 55, 0.92);
  color: var(--lime);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.12;
  white-space: nowrap;
}

.brand small {
  color: currentColor;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.72;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.main-nav a {
  padding: 9px 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
  color: currentColor;
  opacity: 0.82;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

.site-header.is-scrolled .main-nav a:hover {
  background: rgba(72, 168, 48, 0.14);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.phone-link {
  white-space: nowrap;
  font-weight: 850;
}

.mobile-call-fab {
  display: none;
}

.mobile-call-fab svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #050705;
  background: var(--lime);
  box-shadow: 0 10px 28px var(--green-glow);
}

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.btn-ghost {
  color: currentColor;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.site-header.is-scrolled .btn-ghost {
  border-color: rgba(72, 168, 48, 0.34);
  background: rgba(72, 168, 48, 0.12);
}

.btn-small {
  min-height: 42px;
  padding: 10px 13px;
  font-size: 14px;
}

.btn-wide {
  width: 100%;
}

.btn-card {
  width: 100%;
  color: var(--teal-dark);
  border-color: rgba(72, 168, 48, 0.22);
  background: var(--green-soft);
}

.hero {
  position: relative;
  min-height: 660px;
  padding: 176px 0 68px;
  color: #fff;
  overflow: hidden;
}

.hero-bg,
.why-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
}

.hero-bg {
  background-image:
    linear-gradient(90deg, rgba(4, 7, 4, 0.92), rgba(4, 9, 4, 0.66) 48%, rgba(4, 9, 4, 0.24)),
    url("assets/img/hero-bg.jpg");
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(5, 7, 5, 0.72));
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 840px;
  font-size: 76px;
}

h1 span {
  display: block;
}

h2 {
  max-width: 760px;
  font-size: 52px;
}

h3 {
  margin: 0;
  color: inherit;
  font-size: 21px;
  line-height: 1.2;
}

.hero-lead {
  max-width: 630px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 21px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 850;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.lead-panel,
.contact-form,
.modal-card {
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.lead-panel h2,
.modal-card h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.form-head {
  margin-bottom: 12px;
}

.form-head span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.form-head h2 {
  margin: 0;
}

.form-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

form label {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

select {
  text-overflow: ellipsis;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 2px 0 13px;
}

.choice-row label {
  position: relative;
  display: block;
  margin: 0;
}

.choice-row input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.choice-row span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.choice-row input:checked + span {
  border-color: rgba(72, 168, 48, 0.54);
  color: var(--teal-dark);
  background: var(--green-soft);
}

textarea {
  min-height: 116px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(72, 168, 48, 0.15);
}

.form-note,
.form-success {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-success {
  color: var(--teal-dark);
  font-weight: 850;
}

.consent-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 2px 0 14px;
}

.consent-check span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.consent-check a,
.legal-content a {
  color: var(--teal-dark);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page {
  background: var(--soft);
}

.legal-header {
  padding: 28px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.legal-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 164px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.legal-logo img {
  width: auto;
  height: 72px;
  object-fit: contain;
}

.legal-content {
  max-width: 920px;
  padding: 42px 0 64px;
}

.legal-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(8, 18, 7, 0.08);
}

.legal-card h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.legal-card h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.legal-card p,
.legal-card li {
  color: #344033;
}

.legal-card ul {
  padding-left: 22px;
}

.legal-muted {
  color: var(--muted);
  font-size: 14px;
}

.legal-requisites {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 18px;
  border-radius: 8px;
  background: var(--green-soft);
}

.legal-requisites div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
}

.legal-requisites span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(233, 245, 228, 0.78), rgba(255, 255, 255, 0) 360px),
    #f7f9f6;
}

.admin-shell {
  padding: 32px 0 64px;
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-head h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.98;
}

.admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-live-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(72, 168, 48, 0.22);
  border-radius: 8px;
  color: var(--teal-dark);
  background: #fff;
  font-size: 13px;
  font-weight: 850;
}

.admin-live-badge.is-muted {
  color: var(--muted);
  border-color: var(--line);
}

.admin-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(8, 18, 7, 0.08);
}

.admin-login-copy {
  max-width: 620px;
  margin: -4px 0 18px;
  color: var(--muted);
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  align-items: end;
  gap: 12px;
}

.admin-error {
  color: var(--danger);
  font-weight: 800;
}

.admin-dashboard {
  display: grid;
  gap: 14px;
}

.admin-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(8, 18, 7, 0.07);
}

.admin-toolbar h2 {
  margin: 0;
  font-size: 28px;
}

.admin-toolbar p {
  margin: 6px 0 0;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-site-link {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.admin-stat {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(8, 18, 7, 0.06);
}

.admin-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1;
}

.admin-service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(8, 18, 7, 0.06);
}

.admin-service-tab {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: #f4f9f1;
  font-size: 14px;
  font-weight: 900;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.admin-service-tab.is-active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(8, 18, 7, 0.06);
}

.admin-filters label {
  margin: 0;
}

.admin-filters .btn {
  min-width: 120px;
}

.admin-table-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(8, 18, 7, 0.08);
}

.leads-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  table-layout: fixed;
}

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

.leads-table th {
  color: var(--muted);
  background: #f4f9f1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.leads-table th:nth-child(1),
.leads-table td:nth-child(1) {
  width: 176px;
}

.leads-table th:nth-child(2),
.leads-table td:nth-child(2) {
  width: 154px;
}

.leads-table th:nth-child(3),
.leads-table td:nth-child(3) {
  width: 120px;
}

.leads-table th:nth-child(4),
.leads-table td:nth-child(4) {
  width: 124px;
}

.leads-table th:nth-child(5),
.leads-table td:nth-child(5) {
  width: 230px;
}

.leads-table th:nth-child(6),
.leads-table td:nth-child(6) {
  width: 190px;
}

.leads-table th:nth-child(7),
.leads-table td:nth-child(7) {
  width: 158px;
}

.leads-table tbody tr:hover {
  background: #fbfdf9;
}

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

.leads-table td strong {
  display: block;
  font-size: 15px;
}

.leads-table td span {
  color: var(--muted);
  font-size: 12px;
}

.lead-phone {
  color: var(--teal-dark);
  font-weight: 900;
  white-space: nowrap;
}

.lead-service {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 900;
}

.lead-service-septic {
  color: #7a3d00;
  background: #fff0d7;
}

.lead-service-other {
  color: var(--muted);
  background: #eef1ed;
}

.lead-details {
  display: grid;
  gap: 4px;
}

.lead-page {
  display: block;
  overflow-wrap: anywhere;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(72, 168, 48, 0.22);
  border-radius: 8px;
  color: var(--teal-dark);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.admin-row-action:hover {
  background: #ddf0d6;
}

.lead-empty {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 62px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.stats-strip div,
.stats-strip button {
  padding: 20px;
  background: rgba(5, 7, 5, 0.38);
}

.stats-strip strong,
.stats-strip span {
  display: block;
}

.stats-strip button {
  width: 100%;
  min-width: 0;
  border: 0;
  color: #fff;
  text-align: left;
  transition: background 0.18s ease, transform 0.18s ease;
}

.stats-strip button:hover {
  transform: translateY(-1px);
  background: rgba(72, 168, 48, 0.28);
}

.stats-strip strong {
  font-size: 28px;
  line-height: 1.1;
}

.stats-strip span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.section {
  padding: 76px 0;
}

.section-head {
  margin-bottom: 34px;
}

.section-head > p:not(.eyebrow),
.split-head > p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.split-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.quick-diagnostic {
  background:
    radial-gradient(circle at top left, rgba(72, 168, 48, 0.14), transparent 30%),
    #fff;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  gap: 28px;
  align-items: stretch;
}

.diagnostic-copy > p:not(.eyebrow),
.proof-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.symptom-chip {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(8, 18, 7, 0.06);
  text-align: left;
  font-weight: 850;
  line-height: 1.2;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.symptom-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(72, 168, 48, 0.42);
  box-shadow: 0 14px 34px rgba(8, 18, 7, 0.1);
}

.symptom-chip span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 950;
}

.diagnostic-card {
  overflow: hidden;
  border: 1px solid rgba(72, 168, 48, 0.26);
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
  box-shadow: var(--shadow);
}

.diagnostic-card img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
}

.diagnostic-card-body {
  padding: 24px;
}

.diagnostic-card h3 {
  font-size: 27px;
}

.diagnostic-card ol {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: diagnostic;
}

.diagnostic-card li {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 54px;
  padding-left: 50px;
  counter-increment: diagnostic;
}

.diagnostic-card li::before {
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  content: counter(diagnostic);
  color: #061006;
  background: var(--lime);
  font-weight: 950;
}

.diagnostic-card strong {
  color: #fff;
}

.diagnostic-card span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.problems,
.prices,
.faq,
.diagnostic-proof,
.reviews {
  background: var(--soft);
}

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

.image-card,
.service-card,
.steps article,
.why-list article,
.price-accordion details,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.image-card {
  overflow: hidden;
}

.image-card img {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
}

.image-card div {
  padding: 18px;
}

.image-card p,
.service-card p,
.steps p,
.why-list p,
.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.service-card {
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(16, 32, 51, 0.07);
}

.service-card.featured {
  border-color: rgba(72, 168, 48, 0.42);
  box-shadow: 0 20px 44px rgba(72, 168, 48, 0.15);
}

.service-card img {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
}

.service-body {
  display: grid;
  gap: 16px;
  min-height: 232px;
  padding: 20px;
}

.service-body ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.service-body li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

.service-body li::before {
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 8px;
  content: "";
  background: var(--teal);
}

.service-body .btn {
  align-self: end;
}

.service-matrix {
  padding-top: 0;
  background: #fff;
}

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

.service-detail-card {
  display: grid;
  align-content: start;
  min-height: 352px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(8, 18, 7, 0.06);
}

.service-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: var(--green-soft);
  font-weight: 950;
}

.service-detail-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-detail-card li {
  position: relative;
  padding-left: 19px;
  color: var(--muted);
}

.service-detail-card li::before {
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--teal);
}

.why {
  position: relative;
  color: #fff;
  background: var(--deep);
  overflow: hidden;
}

.why-bg {
  background-image:
    linear-gradient(90deg, rgba(5, 7, 5, 0.94), rgba(5, 7, 5, 0.76)),
    url("assets/img/why-us-bg.jpg");
}

.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.why-grid > div:first-child p:not(.eyebrow) {
  max-width: 520px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 19px;
}

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

.why-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px 16px;
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.why-list span,
.steps span {
  color: var(--teal);
  font-weight: 950;
}

.why-list span {
  color: var(--lime);
  font-size: 24px;
}

.why-list p {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.68);
}

.diagnostic-proof {
  overflow: hidden;
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
}

.proof-photo {
  position: relative;
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--deep);
  box-shadow: var(--shadow);
}

.proof-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(5, 7, 5, 0.34));
  pointer-events: none;
}

.proof-photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.proof-points {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}

.proof-points article {
  display: grid;
  gap: 3px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.proof-points strong {
  font-size: 18px;
}

.proof-points span {
  color: var(--muted);
}

.price-accordion {
  display: grid;
  gap: 12px;
}

.price-accordion details {
  overflow: hidden;
}

.price-accordion summary,
.faq-list summary {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(116px, max-content) 30px;
  gap: 18px;
  min-height: 72px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
}

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

.price-accordion summary::after,
.faq-list summary::after {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: var(--green-soft);
  content: "+";
}

.price-accordion summary::after {
  justify-self: end;
}

.faq-list summary {
  display: flex;
  grid-template-columns: none;
  justify-content: space-between;
}

.faq-list summary::after {
  flex: 0 0 30px;
}

.price-accordion details[open] summary::after,
.faq-list details[open] summary::after {
  content: "−";
}

.price-accordion strong {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  color: var(--teal-dark);
}

.price-accordion summary span,
.price-table span {
  min-width: 0;
}

.price-table {
  display: grid;
  padding: 0 20px 18px;
}

.price-table div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, max-content);
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.price-table b {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}

.price-cta {
  margin-top: 12px;
}

.cta-band {
  padding: 58px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 7, 5, 0.96), rgba(5, 7, 5, 0.82)),
    url("assets/img/work/work-hydro-cleaning.jpg") center / cover;
}

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

.cta-inner h2 {
  max-width: 760px;
  font-size: clamp(30px, 4vw, 48px);
}

.cta-inner .btn {
  flex: 0 0 auto;
}

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

.steps article {
  min-height: 260px;
  padding: 20px;
}

.step-thumb {
  width: 100%;
  aspect-ratio: 1.28 / 1;
  margin-bottom: 16px;
  border: 1px solid rgba(72, 168, 48, 0.18);
  border-radius: 8px;
  background: var(--green-soft);
  object-fit: cover;
}

.steps span {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 14px;
}

.portfolio {
  background: #fff;
  overflow: hidden;
}

.portfolio-head {
  align-items: center;
  margin-bottom: 30px;
}

.portfolio-head > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.before-after-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(206px, calc((100% - 40px) / 5));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
  padding-bottom: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.case-card {
  position: relative;
  min-height: 520px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}

.case-card-large {
  grid-column: span 2;
  grid-row: auto;
  min-height: 640px;
}

.case-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.before-after-grid .case-card {
  min-height: 0;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 44%, rgba(72, 168, 48, 0.13), rgba(5, 7, 5, 0) 46%),
    #050705;
  scroll-snap-align: start;
}

.before-after-grid .case-card-large {
  grid-column: auto;
  aspect-ratio: 1 / 1;
}

.before-after-grid .case-card img {
  height: 100%;
  min-height: 0;
  padding: 6px;
  object-fit: contain;
}

.before-after-grid .case-card::after {
  display: none;
}

.before-after-grid .case-card:hover img {
  filter: saturate(1.04) contrast(1.03);
  transform: none;
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 12, 9, 0.02) 35%, rgba(4, 12, 9, 0.82) 100%);
  pointer-events: none;
}

.case-card:hover img,
.portfolio-item:hover img {
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1.035);
}

.case-label,
.case-card strong {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 1;
}

.case-label {
  bottom: 72px;
  color: var(--green-bright);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.case-card strong {
  bottom: 18px;
  color: #fff;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.1;
}

.before-after-grid .case-label {
  bottom: 54px;
  left: 12px;
  right: 12px;
  font-size: 10px;
}

.before-after-grid .case-card strong {
  bottom: 12px;
  left: 12px;
  right: 12px;
  font-size: clamp(12px, 1.05vw, 15px);
  line-height: 1.12;
}

.portfolio-subhead {
  margin-bottom: 18px;
}

.portfolio-subhead h3 {
  margin: 0;
}

.section-subtitle {
  color: var(--ink);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.05;
}

.slider-actions {
  display: flex;
  gap: 8px;
}

.round-btn,
.modal-close,
.lightbox-close {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.round-btn {
  width: 46px;
  height: 46px;
  font-size: 30px;
  line-height: 1;
}

.portfolio-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 31%);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.portfolio-item {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
  overflow: hidden;
  scroll-snap-align: start;
  text-align: left;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  padding: 8px;
  background: #050705;
  transition: transform 0.25s ease;
}

.portfolio-item:hover img {
  transform: none;
}

.portfolio-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(4, 12, 9, 0) 0%, rgba(4, 12, 9, 0.84) 100%);
  pointer-events: none;
}

.portfolio-item span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 1;
  color: #fff;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.15;
}

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

.review-card {
  display: grid;
  align-content: start;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(8, 18, 7, 0.06);
}

.review-card strong {
  font-size: 20px;
  line-height: 1.2;
}

.review-card p {
  margin: 12px 0 18px;
  color: var(--muted);
}

.review-card span {
  align-self: end;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

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

.faq-list details {
  align-self: start;
}

.faq-list p {
  padding: 0 20px 20px;
}

.contacts {
  color: #fff;
  background: var(--deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 58px;
  align-items: start;
}

.contacts h2 {
  max-width: 720px;
}

.contacts p:not(.eyebrow) {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 19px;
}

.contact-list {
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin-top: 30px;
}

.contact-list a {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 850;
}

.contact-form {
  border-color: rgba(255, 255, 255, 0.18);
}

.contact-form h3 {
  margin-bottom: 18px;
  color: var(--ink);
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #020402;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}

.footer-inner span,
.footer-inner a {
  font-weight: 850;
}

.modal,
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.modal[hidden],
.lightbox[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 3, 0.78);
}

.modal-card {
  position: relative;
  width: min(420px, calc(100% - 32px));
  margin: 12vh auto 0;
}

.modal-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  font-size: 26px;
}

.lightbox {
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 6, 3, 0.92);
}

.lightbox-frame {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: min(92vw, 980px);
  margin: 0;
}

.lightbox-frame img {
  max-width: min(92vw, 980px);
  max-height: 86vh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 850;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 30px;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 44px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible,
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.septic-page .septic-hero .hero-bg {
  background-image:
    linear-gradient(90deg, rgba(4, 7, 4, 0.95), rgba(4, 9, 4, 0.7) 47%, rgba(4, 9, 4, 0.18)),
    url("assets/img/septic/septic-hero.jpg");
  background-position: center;
}

.septic-page .septic-hero {
  min-height: 735px;
}

.septic-page .hero-copy {
  max-width: 820px;
}

.septic-page .hero-lead {
  max-width: 690px;
}

.septic-consult-card img {
  object-position: center;
}

.septic-board .symptom-chip {
  min-height: 78px;
}

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

.septic-price-card {
  display: grid;
  align-content: start;
  min-height: 330px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(8, 18, 7, 0.08);
}

.septic-price-card.featured {
  border-color: rgba(72, 168, 48, 0.42);
  background:
    linear-gradient(180deg, rgba(72, 168, 48, 0.12), rgba(255, 255, 255, 0) 58%),
    #fff;
  box-shadow: 0 18px 46px rgba(72, 168, 48, 0.15);
}

.septic-price-card span {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.septic-price-card strong {
  display: block;
  margin: 16px 0 14px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 0.95;
}

.septic-price-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.45;
}

.septic-price-card .btn {
  align-self: end;
  margin-top: auto;
}

.septic-why .why-bg {
  background-image:
    linear-gradient(90deg, rgba(5, 7, 5, 0.95), rgba(5, 7, 5, 0.76)),
    url("assets/img/septic/septic-install.jpg");
  background-position: center;
}

.septic-cta {
  background:
    linear-gradient(90deg, rgba(5, 7, 5, 0.96), rgba(5, 7, 5, 0.78)),
    url("assets/img/septic/septic-consult.jpg") center / cover;
}

.septic-photo-grid {
  grid-template-columns: 1.16fr 1fr 1fr;
  margin-bottom: 0;
}

.septic-photo-grid .case-card-large {
  grid-row: auto;
}

.septic-photo-grid .case-card {
  min-height: 390px;
}

.septic-steps .step-thumb {
  background: #e8f5e3;
}

@media (max-width: 1100px) {
  h1 {
    font-size: 62px;
  }

  h2 {
    font-size: 44px;
  }

  .site-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
    flex: 0 0 44px;
    margin-left: auto;
    color: #fff;
  }

  .site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-header.menu-open .main-nav {
    display: grid;
    flex: 0 0 100%;
    justify-content: stretch;
    gap: 4px;
    padding-top: 8px;
  }

  .site-header.menu-open .main-nav a {
    min-height: 48px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.12);
  }

  .site-header.menu-open .header-actions {
    display: grid;
    flex: 0 0 100%;
    grid-template-columns: 1fr;
    align-items: stretch;
    padding-top: 8px;
  }

  .phone-link {
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    text-align: center;
  }

  .site-header.is-scrolled .phone-link {
    border-color: var(--line);
  }

  .hero-grid,
  .why-grid,
  .contact-grid,
  .diagnostic-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .lead-panel,
  .contact-form {
    max-width: min(520px, 100%);
  }

  .problem-grid,
  .steps,
  .service-detail-grid,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagnostic-card {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .diagnostic-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .service-detail-card {
    min-height: auto;
  }

  .proof-photo {
    min-height: 440px;
  }

  .before-after-grid {
    grid-auto-columns: minmax(210px, calc((100% - 20px) / 3));
  }

  .case-card-large {
    grid-row: auto;
  }

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

  .service-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
  }

  .service-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .service-body {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  section[id] {
    scroll-margin-top: 102px;
  }

  body {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .mobile-call-fab {
    position: fixed;
    right: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 73;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    color: #fff;
    background: var(--lime);
    box-shadow: 0 16px 34px rgba(37, 119, 29, 0.42);
  }

  .mobile-call-fab svg {
    width: 28px;
    height: 28px;
  }

  .mobile-call-fab:active {
    transform: translateY(1px) scale(0.98);
  }

  .container {
    width: min(398px, calc(100% - 32px));
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
    padding-right: 0;
  }

  .site-header {
    inset: 10px 10px auto;
    max-width: calc(100vw - 20px);
    min-height: 82px;
    padding: 8px 60px 8px 8px;
  }

  .menu-toggle {
    position: absolute;
    top: 19px;
    right: 8px;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 58px);
    gap: 8px;
    padding: 0;
  }

  .brand-logo {
    width: auto;
    height: 62px;
    max-width: 126px;
  }

  .brand-service {
    min-height: 30px;
    max-width: 92px;
    padding-left: 8px;
    font-size: 11px;
    line-height: 1.05;
    white-space: normal;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 112px 0 26px;
  }

  .hero-bg {
    background-position: 58% center;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-lead,
  .contacts p:not(.eyebrow),
  .why-grid > div:first-child p:not(.eyebrow) {
    font-size: 17px;
  }

  .hero-lead {
    max-width: 34ch;
  }

  .hero-proof {
    gap: 6px;
    margin-top: 18px;
  }

  .hero-proof span {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .hero-cta {
    display: grid;
    margin-top: 24px;
  }

  .lead-panel,
  .contact-form,
  .modal-card {
    padding: 18px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 22px;
  }

  .stats-strip div,
  .stats-strip button {
    padding: 16px;
  }

  .stats-strip strong {
    font-size: 23px;
  }

  .section {
    padding: 62px 0;
  }

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

  .split-head {
    display: grid;
    align-items: start;
  }

  .problem-grid,
  .steps,
  .faq-list,
  .service-detail-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .symptom-board {
    grid-template-columns: 1fr;
  }

  .diagnostic-card {
    display: block;
  }

  .diagnostic-card img {
    aspect-ratio: 1.32 / 1;
  }

  .diagnostic-card-body,
  .service-detail-card,
  .review-card {
    padding: 18px;
  }

  .proof-photo {
    min-height: 360px;
  }

  .proof-points article {
    padding: 14px;
  }

  .cta-inner {
    display: grid;
    align-items: start;
  }

  .cta-inner .btn {
    width: 100%;
  }

  .image-card {
    display: grid;
    grid-template-columns: 120px 1fr;
  }

  .image-card img {
    height: 100%;
    min-height: 168px;
    aspect-ratio: auto;
  }

  .service-grid {
    grid-auto-flow: column;
    grid-auto-columns: min(330px, calc(100vw - 52px));
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .service-grid::-webkit-scrollbar {
    display: none;
  }

  .service-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 0;
    scroll-snap-align: start;
  }

  .service-card img {
    height: 132px;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .service-body {
    min-height: 0;
    padding: 15px;
  }

  .service-body ul {
    gap: 7px;
    margin: 12px 0 16px;
  }

  .why-list article {
    grid-template-columns: 44px 1fr;
    padding: 16px;
  }

  .price-accordion summary,
  .faq-list summary {
    min-height: 64px;
    padding: 16px;
  }

  .price-table {
    padding: 0 16px 14px;
  }

  .price-table div {
    grid-template-columns: minmax(0, 1fr) minmax(92px, max-content);
    gap: 12px;
  }

  .price-cta {
    width: 100%;
  }

  .steps article {
    min-height: auto;
  }

  .steps span {
    margin-bottom: 16px;
  }

  .portfolio-head {
    margin-bottom: 22px;
  }

  .before-after-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(248px, 78vw);
    grid-template-rows: 1fr;
    grid-template-columns: none;
    gap: 10px;
    margin-bottom: 32px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .before-after-grid::-webkit-scrollbar {
    display: none;
  }

  .case-card {
    min-height: 338px;
  }

  .before-after-grid .case-card,
  .before-after-grid .case-card-large {
    grid-column: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    scroll-snap-align: start;
  }

  .before-after-grid .case-card img {
    padding: 5px;
  }

  .before-after-grid .case-label {
    bottom: 48px;
    left: 9px;
    right: 9px;
    font-size: 9px;
  }

  .before-after-grid .case-card strong {
    bottom: 9px;
    left: 9px;
    right: 9px;
    font-size: 12px;
    line-height: 1.08;
  }

  .case-label,
  .case-card strong {
    left: 16px;
    right: 16px;
  }

  .portfolio-subhead {
    gap: 16px;
  }

  .portfolio-subhead .slider-actions {
    justify-content: flex-start;
  }

  .portfolio-track {
    grid-auto-columns: minmax(240px, 82%);
  }

  .legal-card {
    padding: 24px;
  }

  .legal-requisites div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .admin-head,
  .admin-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-head-actions,
  .admin-actions {
    justify-content: stretch;
  }

  .admin-head-actions > *,
  .admin-actions > * {
    flex: 1 1 150px;
  }

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

  .admin-login {
    grid-template-columns: 1fr;
  }

  .admin-filters {
    grid-template-columns: 1fr;
  }

  .admin-actions .btn {
    flex: 1 1 120px;
  }

  .admin-table-shell {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .leads-table {
    display: block;
    min-width: 0;
    border-collapse: separate;
  }

  .leads-table thead {
    display: none;
  }

  .leads-table tbody {
    display: grid;
    gap: 10px;
  }

  .leads-table tr {
    display: block;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(8, 18, 7, 0.06);
  }

  .leads-table th,
  .leads-table td {
    width: auto;
  }

  .leads-table th:nth-child(n),
  .leads-table td:nth-child(n) {
    width: auto;
  }

  .leads-table td {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
    border-bottom: 0;
  }

  .leads-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 31px;
  }

  h2 {
    font-size: 27px;
  }

  .image-card {
    grid-template-columns: 98px 1fr;
  }

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

  .leads-table td {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .image-card div {
    padding: 14px;
  }

  .image-card h3,
  .service-card h3 {
    font-size: 18px;
  }

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

@media (max-width: 1100px) {
  .septic-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .septic-photo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .septic-page .septic-hero .hero-bg {
    background-position: 56% center;
  }

  .septic-page .hero-lead {
    max-width: 33ch;
  }

  .septic-price-grid,
  .septic-photo-grid {
    grid-template-columns: 1fr;
  }

  .septic-price-card {
    min-height: auto;
    padding: 20px;
  }

  .septic-price-card strong {
    font-size: 31px;
  }

  .septic-photo-grid .case-card {
    min-height: 330px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero {
    min-height: auto !important;
    padding: 98px 0 18px !important;
  }

  .hero .container {
    width: min(398px, calc(100% - 28px));
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px;
    align-items: start;
  }

  .hero-copy,
  .lead-panel,
  .hero-portfolio {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero .eyebrow {
    max-width: 30ch;
    margin-bottom: 8px;
    line-height: 1.15;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(31px, 9.6vw, 37px) !important;
    line-height: 0.96;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero h1 span {
    display: block;
    white-space: normal;
  }

  .hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 100%;
    margin-top: 10px;
  }

  .hero-proof span {
    width: auto;
    max-width: calc(50% - 3px);
    min-height: 28px;
    padding: 6px 8px;
    font-size: 10px;
    line-height: 1.15;
    overflow-wrap: normal;
    word-break: normal;
  }

  .lead-panel {
    margin-top: 0;
    padding: 12px;
  }

  .lead-panel h2 {
    margin-bottom: 4px;
    font-size: 19px;
  }

  .lead-panel input {
    min-height: 44px;
  }

  .lead-panel .btn {
    min-height: 44px;
    padding: 11px 14px;
  }

  .lead-panel .consent-check span {
    font-size: 10px;
    line-height: 1.25;
  }

  .hero-portfolio {
    margin-top: 12px;
  }

  .hero-portfolio .portfolio-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
  }

  .hero-portfolio .portfolio-head h2 {
    font-size: 20px;
  }

  .hero-portfolio .round-btn {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }

  .hero-portfolio .before-after-grid {
    grid-auto-flow: column;
    grid-auto-columns: 118px !important;
    grid-template-rows: 1fr !important;
    grid-template-columns: none !important;
    gap: 8px;
    width: 100%;
    margin-bottom: 0;
    overflow-x: auto;
    scroll-padding-inline: 0;
  }

  .hero-portfolio .before-after-grid .case-card,
  .hero-portfolio .before-after-grid .case-card-large {
    width: 118px;
    min-width: 118px;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .hero-portfolio .before-after-grid .case-card img {
    padding: 3px;
  }

  .lightbox {
    padding: 54px 12px 18px;
  }

  .lightbox-frame img {
    max-width: calc(100vw - 24px);
    max-height: 72vh;
  }

  .lightbox-counter {
    min-height: 22px;
    margin-bottom: 54px;
  }

  .lightbox-nav {
    top: auto;
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: 50px;
    height: 50px;
    font-size: 34px;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 58px);
  }

  .lightbox-next {
    right: calc(50% - 58px);
  }
}

@media (max-width: 380px) {
  .hero {
    padding-top: 94px !important;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: 29px !important;
  }

  .hero-portfolio .before-after-grid {
    grid-auto-columns: 106px !important;
  }

  .hero-portfolio .before-after-grid .case-card,
  .hero-portfolio .before-after-grid .case-card-large {
    width: 106px;
    min-width: 106px;
  }
}

.hero {
  min-height: 100svh;
  padding-top: 132px;
  padding-bottom: 34px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 28px;
  align-items: end;
}

.hero h1 {
  font-size: clamp(44px, 5.25vw, 68px);
}

.hero-proof {
  max-width: 680px;
  margin-top: 20px;
}

.hero-portfolio {
  margin-top: 26px;
}

.hero-portfolio .portfolio-head {
  align-items: end;
  margin-bottom: 10px;
  color: #fff;
}

.hero-portfolio .portfolio-head .eyebrow {
  display: none;
}

.hero-portfolio .portfolio-head h2 {
  max-width: none;
  color: #fff;
  font-size: clamp(22px, 2.2vw, 30px);
}

.hero-portfolio .slider-actions {
  align-self: end;
}

.hero-portfolio .round-btn {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-portfolio .round-btn:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.22);
}

.hero-portfolio .before-after-grid {
  grid-auto-columns: minmax(116px, calc((100% - 64px) / 9));
  gap: 8px;
  padding-bottom: 6px;
}

.hero-portfolio .before-after-grid .case-card img {
  padding: 4px;
}

@media (max-width: 1100px) {
  .hero {
    padding-top: 122px;
  }

  .hero-grid {
    gap: 18px;
  }

  .lead-panel {
    max-width: 100%;
  }

  .hero-portfolio {
    margin-top: 22px;
  }

  .hero-portfolio .before-after-grid {
    grid-auto-columns: minmax(164px, calc((100% - 24px) / 4));
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding-top: 98px;
    padding-bottom: 18px;
  }

  .hero-grid {
    gap: 10px;
  }

  .hero .eyebrow {
    margin-bottom: 9px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: clamp(29px, 8.7vw, 34px);
    line-height: 0.98;
  }

  .hero-proof {
    gap: 5px;
    margin-top: 9px;
  }

  .hero-proof span {
    min-height: 28px;
    padding: 6px 8px;
    font-size: 10px;
  }

  .lead-panel {
    padding: 12px;
  }

  .lead-panel h2 {
    margin-bottom: 4px;
    font-size: 19px;
  }

  .lead-panel label {
    margin-bottom: 8px;
  }

  .lead-panel input {
    min-height: 44px;
    padding: 10px 12px;
  }

  .lead-panel .btn {
    min-height: 44px;
    padding: 11px 14px;
  }

  .lead-panel .consent-check {
    gap: 8px;
    margin-bottom: 9px;
  }

  .lead-panel .consent-check span {
    font-size: 10px;
    line-height: 1.25;
  }

  .hero-portfolio {
    margin-top: 12px;
  }

  .hero-portfolio .portfolio-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
  }

  .hero-portfolio .portfolio-head .eyebrow {
    display: none;
  }

  .hero-portfolio .portfolio-head h2 {
    font-size: 18px;
  }

  .hero-portfolio .round-btn {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }

  .hero-portfolio .before-after-grid {
    grid-auto-columns: 116px;
    grid-template-rows: 1fr;
    gap: 8px;
    margin-bottom: 0;
    scroll-padding-inline: 0;
  }

  .hero-portfolio .before-after-grid .case-card,
  .hero-portfolio .before-after-grid .case-card-large {
    width: 116px;
    aspect-ratio: 1 / 1;
  }

  .hero-portfolio .before-after-grid .case-card img {
    padding: 3px;
  }
}

@media (max-width: 380px) {
  .hero {
    padding-top: 94px;
  }

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

  .hero-proof span {
    font-size: 9px;
  }

  .lead-panel {
    padding: 10px;
  }

  .hero-portfolio .before-after-grid {
    grid-auto-columns: 104px;
  }

  .hero-portfolio .before-after-grid .case-card,
  .hero-portfolio .before-after-grid .case-card-large {
    width: 104px;
  }
}
