:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --muted: #64748B;
  --accent: #0284C7;
  --accent-dark: #0369A1;
  --deep: #0C4A6E;
  --border: #E2E8F0;
  --success: #16A34A;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 6px -1px rgb(15 23 42 / 0.06);
  --shadow-lg: 0 12px 24px -4px rgb(15 23 42 / 0.1);
  --container: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline-dark:hover { background: var(--accent); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: 0.25s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  color: var(--deep);
}
.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}
.logo-mark {
  width: 44px; height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800;
}
.logo-text { min-width: 0; overflow: hidden; }
.logo-name { display: block; font-size: 1.1rem; line-height: 1.2; }
.logo-text small {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-list a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
}
.nav-list a:hover { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-phone { text-align: right; }
.header-phone .phone {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}
.header-phone .callback {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--deep);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #0c4a6e;
  background-image: linear-gradient(135deg, #0c4a6e, #0284c7);
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(12,74,110,0.88) 0%,
    rgba(12,74,110,0.72) 38%,
    rgba(12,74,110,0.28) 65%,
    rgba(12,74,110,0.08) 100%);
}
.hero-layout { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 560px; color: #fff; }
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.hero h1 .accent { color: #38bdf8; }
.hero-sub {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 32px;
  max-width: 460px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.9;
}
.hero-card {
  position: absolute;
  right: 24px;
  bottom: 48px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
  max-width: 260px;
  z-index: 3;
}
.hero-card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  line-height: 1;
}
.hero-card-avito {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 16px;
}
.hero-card-avito svg {
  display: block;
  height: 16px;
  width: auto;
}
.hero-card-score {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.hero-card-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  letter-spacing: 1px;
  line-height: 1;
}
.hero-card-num { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.hero-card-label { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.hero-card-list { display: flex; flex-direction: column; gap: 10px; }
.hero-card-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}
.hero-card-list li svg {
  color: var(--accent);
  flex-shrink: 0;
}

.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  text-align: center;
}
.trust-item span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.section { padding: 80px 0; }
.section-alt { background: var(--bg); }
.section-white { background: #fff; }
.section-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.15;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 40px;
}
.section-title-line {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 40px;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: 0.25s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #bae6fd;
}
.service-img { height: 140px; }
.service-well { background: linear-gradient(135deg, #0c4a6e, #0284c7); }
.service-septic { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.service-water { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.service-clean { background: linear-gradient(135deg, #0369a1, #0ea5e9); }
.service-body {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.service-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.service-body p { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; flex-grow: 1; }
.service-link { font-size: 0.9rem; font-weight: 600; color: var(--accent); }

.process { background: #fff; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.process-step { text-align: center; }
.process-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(2,132,199,0.3);
}
.process-step h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.process-step p { font-size: 0.8rem; color: var(--muted); max-width: 140px; margin: 0 auto; line-height: 1.4; }

.price-highlight { text-align: center; margin-bottom: 40px; }
.price-highlight .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--deep);
}
.price-highlight .price span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
}
.price-highlight p { color: var(--muted); margin-top: 8px; }
.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.included-item {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.included-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.included-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.included-item p { font-size: 0.85rem; color: var(--muted); }

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: 0.25s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work-visual {
  display: block;
  height: 180px;
  background: linear-gradient(135deg, #0c4a6e, #0284c7);
  overflow: hidden;
}
.work-thumb { width: 100%; height: 100%; object-fit: cover; }
.work-placeholder { display: block; height: 100%; }
.work-body { padding: 18px 20px 22px; }
.work-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.work-body h3 a:hover { color: var(--accent); }
.work-body p { font-size: 0.85rem; color: var(--muted); }
.works-more { text-align: center; margin-top: 36px; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-align: left;
}
.about-text p { color: var(--muted); margin-bottom: 20px; }
.about-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}
.about-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.advantages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.advantage {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.advantage strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}
.advantage span { font-size: 0.85rem; color: var(--muted); }

.cta-block {
  background: linear-gradient(135deg, #0c4a6e, #0284c7);
  color: #fff;
  border-radius: 20px;
  padding: 52px 40px;
  text-align: center;
}
.cta-block h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 10px;
  text-align: center;
  color: #fff;
}
.cta-block > p { opacity: 0.9; margin-bottom: 28px; max-width: 440px; margin-left: auto; margin-right: auto; }
.cta-form-wrap {
  max-width: 480px;
  margin: 0 auto 24px;
  text-align: left;
}
.cta-form-wrap input[type="text"],
.cta-form-wrap input[type="tel"],
.cta-form-wrap input[type="email"],
.cta-form-wrap textarea {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 12px;
}
.cta-form-wrap textarea { min-height: 90px; resize: vertical; }
.cta-form-wrap input[type="submit"],
.cta-form-wrap .wpcf7-submit {
  width: 100%;
  padding: 16px 32px;
  background: #ea580c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
}
.cta-form-wrap input[type="submit"]:hover,
.cta-form-wrap .wpcf7-submit:hover { background: #c2410c; }
.cta-form-wrap .wpcf7-response-output { color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-form-wrap .form_inf_cust { color: rgba(255,255,255,0.9); font-size: 0.9rem; margin-bottom: 8px; }
.cta-phone { opacity: 0.9; font-size: 0.95rem; }
.cta-phone a { color: #fff; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.4); }
.cta-phone span { font-size: 0.85rem; opacity: 0.8; }

.page-content { padding-top: 120px; }
.page-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.2;
}
.entry-content { color: var(--ink); line-height: 1.7; }
.entry-content p { margin-bottom: 1em; }
.entry-content h2, .entry-content h3 { margin: 1.4em 0 0.6em; font-weight: 700; }
.entry-thumb { margin-bottom: 28px; border-radius: var(--radius-lg); overflow: hidden; }
.breadcrumb { font-size: 0.875rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--accent); }
.content-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.archive-header { margin-bottom: 40px; text-align: center; padding-top: 48px; }
.navigation.pagination { margin-top: 80px; text-align: center; }
.navigation.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.navigation.pagination a,
.navigation.pagination span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}
.navigation.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 56px 0 32px;
  margin-top: 80px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-brand { max-width: 280px; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand .logo-name { color: #fff; }
.footer-brand p { font-size: 0.9rem; line-height: 1.5; }
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 1024px) {
  .nav-list { gap: 14px; }
  .nav-list a { font-size: 0.85rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 12px; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .included-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { right: 16px; bottom: 32px; max-width: 230px; padding: 18px 20px; }
}

@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .container { padding: 0 16px; }
  .header-inner { height: 60px; }
  .logo-text small { display: none; }
  .logo-img { width: 36px; height: 36px; }
  .logo-name { font-size: 1rem; }
  .nav {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: #fff;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 99;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  body.admin-bar .nav { top: 106px; }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a {
    display: block;
    font-size: 1rem;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
  }
  .burger { display: flex; }
  .header-phone .callback { display: none; }
  .header-phone .phone { font-size: 0.9rem; max-width: none; overflow: visible; text-overflow: clip; white-space: nowrap; }
  .hero {
    min-height: 0;
    padding: 80px 0 40px;
    align-items: flex-start;
  }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(12,74,110,0.75) 0%, rgba(12,74,110,0.65) 50%, rgba(12,74,110,0.8) 100%);
  }
  .hero h1 { font-size: 1.75rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-card {
    position: relative;
    right: auto; bottom: auto;
    margin: 28px 0 0;
    max-width: 100%;
  }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: 1fr; }
  .included-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-text h2 { text-align: center; }
  .section { padding: 56px 0; }
  .cta-block { padding: 32px 20px; }
  .page-content { padding-top: 100px; }
}

@media (max-width: 480px) {
  .header-phone { display: none; }
  .hero h1 { font-size: 1.55rem; }
  .process-grid { grid-template-columns: 1fr; }
  .advantages { grid-template-columns: 1fr; }
}

/* Hero photo override: keep cover positioning when inline background-image is set */
.hero-bg[style*="background-image"] {
  background-color: #0c4a6e;
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent);
}
.trust-icon svg {
  width: 22px;
  height: 22px;
}
.trust-item > span:last-child {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  max-width: 140px;
}

.service-img {
  height: 160px;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.service-card .service-img { transition: transform 0.35s ease; }
.service-card:hover .service-img { transform: scale(1.04); }


/* Works archive page */
.works-page .page-hero {
  padding: 110px 0 40px;
  background: linear-gradient(180deg, #e0f2fe 0%, #f8fafc 100%);
  text-align: center;
}
.works-page .page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--ink);
  margin: 8px 0 12px;
}
.works-page .page-hero p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}
.works-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}
.filter-btn {
  appearance: none;
  border: 1px solid var(--border, #e2e8f0);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.works-count {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.work-card {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.1);
  border-color: #bae6fd;
}
.work-card.hidden { display: none; }
.work-visual {
  position: relative;
  display: block;
  height: 180px;
  background: linear-gradient(135deg, #0c4a6e, #0284c7);
  overflow: hidden;
}
.work-visual.septic { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.work-visual.deepen { background: linear-gradient(135deg, #6d28d9, #7c3aed); }
.work-visual.clean { background: linear-gradient(135deg, #0369a1, #0284c7); }
.work-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-placeholder { display: block; width: 100%; height: 100%; }
.work-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.95);
  color: #0c4a6e;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  z-index: 1;
}
.work-body {
  padding: 18px 20px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.work-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
.work-pin {
  display: inline-flex;
  color: var(--accent);
  flex-shrink: 0;
}
.work-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.work-body h3 a:hover { color: var(--accent); }
.work-body p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  flex-grow: 1;
}
.works-cta {
  text-align: center;
  margin-top: 48px;
  padding: 40px 28px;
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
}
.works-cta h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 8px;
}
.works-cta p {
  color: var(--muted);
  margin: 0 0 20px;
}
@media (max-width: 768px) {
  .works-page .page-hero { padding: 90px 0 28px; }
  .works-grid { grid-template-columns: 1fr; gap: 16px; }
  .works-filters { gap: 8px; }
  .filter-btn { padding: 7px 14px; font-size: 0.85rem; }
}

.work-card.is-hidden, .work-card.hidden { display: none !important; }

/* filter clickability fix */
.works-filters { position: relative; z-index: 20; pointer-events: auto; }
.works-filters .filter-btn { position: relative; z-index: 21; pointer-events: auto !important; cursor: pointer !important; }
.works-section { position: relative; z-index: 2; }
.site-header { z-index: 100; }
.nav.open { z-index: 99; }
@media (min-width: 769px) { .nav { position: static !important; display: block !important; } }

/* CSS-only works filters (no JS required) */
.wf-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
.works-filters-wrap {
  position: relative;
  z-index: 5;
}
.works-filters .filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  margin: 0;
}
#wf-all:checked ~ .works-filters label[for="wf-all"],
#wf-well:checked ~ .works-filters label[for="wf-well"],
#wf-septic:checked ~ .works-filters label[for="wf-septic"],
#wf-deepen:checked ~ .works-filters label[for="wf-deepen"],
#wf-clean:checked ~ .works-filters label[for="wf-clean"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
#wf-well:checked ~ #works-grid .work-card:not([data-category="well"]),
#wf-septic:checked ~ #works-grid .work-card:not([data-category="septic"]),
#wf-deepen:checked ~ #works-grid .work-card:not([data-category="deepen"]),
#wf-clean:checked ~ #works-grid .work-card:not([data-category="clean"]) {
  display: none !important;
}
.cta-form-row{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:stretch;max-width:520px;margin:0 auto}.cta-form-row input[type=tel],.cta-form-row input.wpcf7-form-control{flex:1 1 220px;min-width:180px;padding:14px 18px;border-radius:10px;border:none;font-size:1rem;font-family:inherit}.cta-form-row input[type=submit],.cta-form-row .wpcf7-submit{flex:0 0 auto;padding:14px 28px;border-radius:10px;border:none;background:#ea580c;color:#fff;font-weight:700;font-size:1rem;cursor:pointer;font-family:inherit}.cta-form-row .wpcf7-submit:hover{background:#c2410c}.cta-form-row .wpcf7-form-control-wrap{flex:1 1 220px;display:flex}.cta-form-row .wpcf7-form-control-wrap input{width:100%}@media(max-width:560px){.cta-form-row{flex-direction:column}.cta-form-row .wpcf7-submit{width:100%}}
/* CF7 phone+button one line — match landing */
.cta-block .cta-form-wrap {
  max-width: 480px;
  margin: 20px auto 0;
}
.cta-form-row,
.cta-form-row p {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 !important;
}
.cta-form-row br {
  display: none !important;
}
.cta-form-row .wpcf7-form-control-wrap {
  flex: 1 1 180px;
  display: block;
  min-width: 0;
}
.cta-form-row input.wpcf7-tel,
.cta-form-row input.cta-phone {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 18px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.25;
  font-family: inherit;
  height: auto;
  min-height: 0;
}
.cta-form-row input.wpcf7-submit,
.cta-form-row input.cta-submit {
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 15px 28px;
  border: none;
  border-radius: 8px;
  background: #ea580c !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  font-family: inherit;
  cursor: pointer;
  height: auto;
  min-height: 0;
  white-space: nowrap;
}
.cta-form-row input.wpcf7-submit:hover {
  background: #c2410c !important;
}
@media (max-width: 560px) {
  .cta-form-row,
  .cta-form-row p {
    flex-direction: column;
  }
  .cta-form-row .wpcf7-form-control-wrap,
  .cta-form-row input.wpcf7-submit {
    width: 100%;
    flex: 1 1 auto;
  }
}

/* footer landing match */
.site-footer.footer .logo { display:flex; align-items:center; gap:10px; color:#fff; margin-bottom:12px; text-decoration:none; }
.site-footer.footer .logo-name { color:#fff; font-weight:800; font-size:1.05rem; }
.site-footer.footer .logo-img { width:40px; height:40px; object-fit:contain; border-radius:8px; }
.site-footer.footer .footer-col a { color:#94a3b8; }
.site-footer.footer .footer-col a:hover { color:#fff; }
@media (max-width:768px) {
  .site-footer { padding:40px 0 24px; margin-top:48px; }
  .footer-inner { gap:28px; }
}

a.hero-card{display:block;text-decoration:none;color:inherit;cursor:pointer;transition:transform .2s,box-shadow .2s}a.hero-card:hover{transform:translateY(-4px)}

/* Service / inner pages */
.svc-page .svc-hero {
  position: relative;
  padding: 120px 0 56px;
  color: #fff;
  overflow: hidden;
  background: #0c4a6e;
}
.svc-hero-bg {
  position: absolute; inset: 0;
  background: var(--svc-hero-img, none) center 40% / cover no-repeat;
}
.svc-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(12,74,110,.92) 0%, rgba(2,132,199,.75) 55%, rgba(12,74,110,.55) 100%);
}
.svc-hero .container { position: relative; z-index: 1; max-width: 800px; }
.svc-hero .section-label { color: #bae6fd; }
.svc-hero-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 8px 0 14px;
}
.svc-hero-lead {
  font-size: 1.1rem;
  opacity: .92;
  margin: 0 0 24px;
  max-width: 560px;
}
.svc-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.svc-hero .btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.55);
  color: #fff;
}
.svc-hero .btn-outline:hover { background: rgba(255,255,255,.12); }

.svc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}
.svc-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink, #0f172a);
}
.svc-content h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 2rem 0 .75rem;
  line-height: 1.3;
}
.svc-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.5rem 0 .5rem;
}
.svc-content p { margin: 0 0 1rem; }
.svc-content ul, .svc-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}
.svc-content li { margin-bottom: .4rem; }
.svc-content img {
  border-radius: 14px;
  max-width: 100%;
  height: auto;
  margin: 1.25rem 0;
  display: block;
}
.svc-figure {
  margin: 1.5rem 0 1.75rem;
}
.svc-figure img { margin: 0; width: 100%; object-fit: cover; max-height: 420px; }
.svc-figure figcaption {
  font-size: .85rem;
  color: var(--muted, #64748b);
  margin-top: .5rem;
}
.svc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 1.25rem 0 1.75rem;
}
.svc-grid-2 img {
  margin: 0;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}
.svc-faq details {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: #fff;
}
.svc-faq summary {
  font-weight: 700;
  cursor: pointer;
}
.svc-faq details p { margin: 10px 0 0; color: var(--muted, #64748b); }

.svc-aside { position: sticky; top: 96px; }
.svc-aside-card {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(15,23,42,.04);
}
.svc-aside-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.svc-aside-card p { margin: 0 0 14px; color: var(--muted, #64748b); font-size: .95rem; }
.svc-aside-phone {
  display: block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--accent, #0284c7);
}
.svc-aside-note { font-size: .85rem !important; margin-top: 6px !important; }
.svc-aside-card.muted { background: #f8fafc; }
.svc-aside-list { list-style: none; padding: 0; margin: 0; }
.svc-aside-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: .95rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.svc-aside-list li:last-child { border-bottom: none; }
.svc-aside-list li::before {
  content: "✓";
  position: absolute; left: 0; color: var(--accent, #0284c7); font-weight: 700;
}

.page-content .page-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.entry-content img { max-width: 100%; height: auto; border-radius: 12px; }

@media (max-width: 900px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
  .svc-grid-2 { grid-template-columns: 1fr; }
  .svc-grid-2 img { height: 220px; }
}
@media (max-width: 768px) {
  .svc-page .svc-hero { padding: 96px 0 40px; }
}
.service-card-link{display:flex;flex-direction:column;flex:1;color:inherit;text-decoration:none;height:100%;cursor:pointer;}
.service-card-link:hover{color:inherit;}
.service-card-link .service-link{margin-top:auto;}
.service-card.is-clickable{cursor:pointer;}

@media (max-width: 900px) {
  .header-phone .phone { min-height: 44px; display: flex; align-items: center; justify-content: flex-end; color: var(--ink); font-weight: 700; }
}

.hero-cta-mobile { display: none; }
@media (max-width: 768px) {
  .hero-cta-desktop { display: none !important; }
  .hero-cta-mobile { display: inline-flex !important; align-items: center; justify-content: center; text-align: center; width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
}

@media (max-width: 900px) {
  .header-phone { display: none !important; }
}
.hero-cta-mobile { flex-direction: column; gap: 2px; line-height: 1.25; }
.hero-cta-phone { display: block; font-size: 0.95em; font-weight: 700; opacity: 0.95; margin-top: 2px; }
