:root {
  --color-primary: #1e3a8a;
  --color-secondary: #1e40af;
  --color-accent: #b45309;
  --color-background: #f8fafc;
  --color-foreground: #0f172a;
  --color-muted: #e9eef5;
  --color-border: #cbd5e1;
  --color-surface: #ffffff;
  --color-soft: #eef6ff;
  --color-success: #166534;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.14);
  --radius: 8px;
  --radius-lg: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-foreground);
  background:
    linear-gradient(180deg, rgba(30, 58, 138, 0.08) 0, rgba(248, 250, 252, 0) 420px),
    var(--color-background);
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(30, 58, 138, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 138, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 620px);
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

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

button,
a,
summary {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(180, 83, 9, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--color-foreground);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius);
}

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

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

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

.brand strong {
  display: block;
  font-family: "Rubik", "Segoe UI", sans-serif;
  font-weight: 800;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.25;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 3px solid var(--color-primary);
  border-radius: 8px;
  display: inline-block;
  position: relative;
  background: #dbeafe;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--color-primary);
}

.brand-mark::before {
  width: 3px;
  inset: 6px auto 6px 18px;
}

.brand-mark::after {
  height: 3px;
  inset: 18px 6px auto;
}

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

.main-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #334155;
  text-decoration: none;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--color-muted);
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--color-primary);
  background: #eff6ff;
  text-decoration: none;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  color: white;
  background: var(--color-primary);
}

main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.breadcrumbs {
  margin: 26px 0 -8px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #94a3b8;
}

.breadcrumbs a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: var(--color-primary);
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 28px;
  align-items: stretch;
  padding: 44px 0 34px;
}

.hero-compact {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.75fr);
  padding-top: 34px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 34px;
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-accent);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

h1,
h2,
h3 {
  font-family: "Rubik", "Segoe UI", sans-serif;
  line-height: 1.08;
  color: #0f172a;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: 48px;
}

h2 {
  margin: 0;
  font-size: 32px;
}

h3 {
  font-size: 20px;
}

.hero-text {
  max-width: 720px;
  margin: 20px 0 0;
  color: #334155;
  font-size: 19px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 900;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
  color: white;
  background: var(--color-accent);
  box-shadow: 0 12px 24px rgba(180, 83, 9, 0.22);
}

.btn-secondary {
  color: var(--color-primary);
  border-color: rgba(30, 58, 138, 0.35);
  background: white;
}

.trust-strip {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-strip span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: var(--radius);
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
}

.hero-media,
.hero-diagram {
  margin: 0;
  min-height: 470px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: #eaf2ff;
  box-shadow: var(--shadow-lg);
}

.hero-diagram {
  display: grid;
  place-items: center;
  padding: 28px;
}

.hero-diagram svg {
  width: 100%;
  height: auto;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.hero-media figcaption {
  position: absolute;
  left: -9999px;
}

.content-section,
.faq-section,
.lead-section,
.quiz-section,
.related-section {
  margin: 28px 0;
  padding: 34px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 22px;
}

.section-heading p:not(.eyebrow) {
  margin: 12px 0 0;
  color: #475569;
  font-size: 18px;
}

.answer-block {
  margin: 0;
  padding: 18px 20px;
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius);
  color: #1f2937;
  background: #fff7ed;
  font-weight: 700;
}

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

.info-card {
  min-height: 172px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: var(--radius);
  color: inherit;
  background: #ffffff;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.info-card:hover {
  border-color: rgba(30, 58, 138, 0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.info-card strong {
  font-family: "Rubik", "Segoe UI", sans-serif;
  font-size: 19px;
}

.info-card span:last-child {
  color: #64748b;
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--color-primary);
  background: #eff6ff;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

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

th {
  color: var(--color-primary);
  background: #eff6ff;
  font-family: "Rubik", "Segoe UI", sans-serif;
}

tr:last-child td {
  border-bottom: 0;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius);
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.check-list .icon {
  color: var(--color-success);
  margin-top: 2px;
}

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

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

.trust-grid article,
.case-layout article {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #f8fafc;
}

.trust-grid h3,
.case-layout h3 {
  margin: 0 0 8px;
}

.trust-grid p,
.case-layout p {
  margin: 0;
  color: #475569;
}

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

.district-chip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: white;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.district-chip:hover {
  border-color: rgba(180, 83, 9, 0.5);
  box-shadow: var(--shadow-sm);
}

.district-chip strong {
  min-width: 156px;
  color: var(--color-primary);
}

.district-chip span {
  color: #64748b;
  text-align: right;
}

.quiz-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: start;
  color: white;
  background: linear-gradient(135deg, #10255e, #1e40af 68%, #0f172a);
  border-color: rgba(255, 255, 255, 0.18);
}

.quiz-section h2,
.quiz-section .eyebrow {
  color: white;
}

.quiz-copy p:not(.eyebrow) {
  color: #dbeafe;
}

.quiz {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.quiz-progress {
  height: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}

.quiz-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #fbbf24;
  transition: width 220ms ease;
}

.quiz fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz legend {
  margin-bottom: 14px;
  font-family: "Rubik", "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.quiz button,
.quiz input {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
}

.quiz button:not(.btn) {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  text-align: left;
  font-weight: 800;
}

.quiz button:not(.btn):hover {
  background: rgba(255, 255, 255, 0.2);
}

.quiz-result {
  color: #dcfce7;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: white;
}

summary {
  padding: 16px 18px;
  font-family: "Rubik", "Segoe UI", sans-serif;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
  color: #475569;
}

.lead-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: start;
  background: #fff;
}

.lead-form {
  display: grid;
  gap: 14px;
}

.lead-form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-weight: 900;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: #0f172a;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.lead-form textarea {
  min-height: 112px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.12);
  outline: 0;
}

.consent {
  grid-template-columns: 22px 1fr;
  align-items: start;
  font-weight: 700;
  font-size: 14px;
}

.consent input {
  min-height: auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-note {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.form-note.is-success {
  color: var(--color-success);
  font-weight: 900;
}

.site-footer {
  margin-top: 40px;
  padding: 42px max(16px, calc((100vw - var(--max)) / 2)) 88px;
  color: #dbeafe;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1fr 1fr;
  gap: 28px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 18px;
}

.site-footer p {
  color: #cbd5e1;
}

.site-footer a {
  min-height: 40px;
  display: flex;
  align-items: center;
  margin: 8px 0;
  color: #dbeafe;
  text-decoration: none;
}

.footer-brand {
  color: white;
}

.footer-brand .brand-mark {
  background: #1e3a8a;
  border-color: #dbeafe;
}

.footer-brand .brand-mark::before,
.footer-brand .brand-mark::after {
  background: #dbeafe;
}

.footer-links {
  columns: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #94a3b8;
}

.mobile-cta {
  display: none;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 96px;
    display: none;
    flex-direction: column;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: grid;
  }

  .phone-pill {
    display: none;
  }

  .hero,
  .hero-compact,
  .quiz-section,
  .lead-section {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .hero-media img,
  .hero-diagram {
    min-height: 340px;
  }

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

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .site-header,
  main {
    width: min(100% - 20px, var(--max));
  }

  .site-header {
    margin-top: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding-top: 22px;
    gap: 14px;
  }

  .hero-copy,
  .content-section,
  .faq-section,
  .lead-section,
  .quiz-section,
  .related-section {
    padding: 22px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 25px;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .card-grid,
  .check-list,
  .trust-grid,
  .case-layout,
  .district-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .district-chip {
    flex-direction: column;
    gap: 4px;
  }

  .district-chip span {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .mobile-cta {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 0.72fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
  }

  .mobile-cta .btn {
    min-height: 46px;
    padding: 10px 12px;
  }
}

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

/* 2026-07 redesign: editorial local-service art direction */
:root {
  --color-primary: #1f4d4a;
  --color-secondary: #264653;
  --color-accent: #c65a14;
  --color-background: #f2eee6;
  --color-foreground: #171b1f;
  --color-muted: #e6ece6;
  --color-border: #d8d0c4;
  --color-surface: #fffaf2;
  --color-soft: #edf5ef;
  --color-success: #20613f;
  --color-cream: #fbf7ef;
  --color-ink: #111719;
  --shadow-sm: 0 1px 2px rgba(23, 27, 31, 0.06);
  --shadow-md: 0 18px 44px rgba(31, 77, 74, 0.13);
  --shadow-lg: 0 28px 72px rgba(17, 23, 25, 0.18);
  --radius: 6px;
  --radius-lg: 8px;
  --max: 1180px;
}

html {
  background: var(--color-background);
}

body {
  color: var(--color-foreground);
  background:
    linear-gradient(180deg, #f6f1e8 0, #edf3ef 46%, #f8f5ef 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

body::before {
  opacity: 0.22;
  background-image:
    repeating-linear-gradient(0deg, rgba(31, 77, 74, 0.08) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(198, 90, 20, 0.05) 0 1px, transparent 1px 11px);
  background-size: auto;
  mask-image: linear-gradient(to bottom, #000 0, transparent 720px);
}

::selection {
  color: #fffaf2;
  background: var(--color-primary);
}

.site-header {
  left: 0;
  right: 0;
  width: 100%;
  min-height: 76px;
  margin: 0;
  padding: 12px max(18px, calc((100vw - var(--max)) / 2));
  border: 0;
  border-bottom: 1px solid rgba(31, 77, 74, 0.18);
  border-radius: 0;
  background: rgba(250, 247, 241, 0.94);
  box-shadow: 0 10px 30px rgba(23, 27, 31, 0.06);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 230px;
  gap: 12px;
}

.brand strong {
  font-family: "PT Serif", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-ink);
}

.brand small {
  color: #6b6258;
  font-size: 12px;
  font-weight: 700;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(31, 77, 74, 0.18) 47% 53%, transparent 53%),
    linear-gradient(180deg, transparent 47%, rgba(31, 77, 74, 0.18) 47% 53%, transparent 53%),
    #f8f1e6;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.58);
}

.brand-mark::before,
.brand-mark::after {
  display: none;
}

.main-nav {
  gap: 2px;
}

.main-nav a {
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 999px;
  color: #35413e;
  font-size: 14px;
  font-weight: 800;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-primary);
  background: rgba(31, 77, 74, 0.1);
}

.phone-pill {
  border-radius: 999px;
  color: #fffaf2;
  background: var(--color-primary);
  box-shadow: 0 14px 28px rgba(31, 77, 74, 0.2);
}

.nav-toggle {
  border-radius: 999px;
  color: #fffaf2;
  background: var(--color-primary);
}

main {
  width: min(var(--max), calc(100% - 32px));
}

.breadcrumbs {
  margin: 24px 0 0;
  color: #70685d;
}

.breadcrumbs a {
  color: var(--color-primary);
  font-weight: 800;
}

.hero {
  width: 100vw;
  min-height: 650px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  padding: 96px max(20px, calc((100vw - var(--max)) / 2)) 76px;
  display: block;
  color: #fffaf2;
  background:
    linear-gradient(90deg, rgba(17, 23, 25, 0.92) 0%, rgba(31, 77, 74, 0.78) 43%, rgba(31, 77, 74, 0.28) 72%, rgba(17, 23, 25, 0.2) 100%),
    linear-gradient(180deg, rgba(17, 23, 25, 0.12), rgba(17, 23, 25, 0.34)),
    var(--hero-image) center right / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 250, 242, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 242, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, #000 0, rgba(0, 0, 0, 0.7) 42%, transparent 82%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  min-height: 478px;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 1fr);
  align-items: end;
  gap: 36px;
  margin: 0 auto;
}

.hero-compact {
  min-height: 540px;
  padding-top: 76px;
  padding-bottom: 58px;
}

.hero-compact .hero-inner {
  min-height: 400px;
}

.hero-copy {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: #f1b23d;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "PT Serif", Georgia, serif;
  color: var(--color-ink);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: 68px;
  line-height: 0.98;
  color: #fffaf2;
}

h2 {
  font-size: 42px;
  line-height: 1.04;
}

h3 {
  font-size: 22px;
  line-height: 1.18;
}

.hero-text {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 250, 242, 0.9);
  font-size: 20px;
  line-height: 1.62;
}

.hero-actions,
.section-actions {
  gap: 12px;
  margin-top: 30px;
}

.btn {
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 999px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.btn-primary {
  color: #fffaf2;
  background: var(--color-accent);
  box-shadow: 0 18px 32px rgba(198, 90, 20, 0.26);
}

.btn-primary:hover {
  background: #a94912;
}

.btn-secondary {
  color: #fffaf2;
  border-color: rgba(255, 250, 242, 0.62);
  background: rgba(255, 250, 242, 0.1);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  color: var(--color-ink);
  background: #fffaf2;
}

.trust-strip {
  max-width: 760px;
  gap: 10px;
  margin-top: 28px;
}

.trust-strip span {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 250, 242, 0.24);
  border-radius: 999px;
  color: rgba(255, 250, 242, 0.92);
  background: rgba(255, 250, 242, 0.08);
  backdrop-filter: blur(8px);
}

.hero-proof {
  align-self: end;
  display: grid;
  gap: 10px;
  max-width: 300px;
  justify-self: end;
}

.hero-proof article {
  padding: 14px 16px;
  border: 1px solid rgba(255, 250, 242, 0.24);
  border-radius: 8px;
  color: #fffaf2;
  background: rgba(17, 23, 25, 0.34);
  backdrop-filter: blur(12px);
}

.hero-proof strong {
  display: block;
  font-family: "PT Serif", Georgia, serif;
  font-size: 30px;
  line-height: 1;
}

.hero-proof span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 250, 242, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.hero-media,
.hero-diagram {
  display: none;
}

.content-section,
.faq-section,
.related-section {
  width: 100vw;
  margin: 0 0 0 calc(50% - 50vw);
  padding: 76px max(20px, calc((100vw - var(--max)) / 2));
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.content-section:nth-of-type(even),
.related-section {
  background: rgba(255, 250, 242, 0.62);
}

.faq-section {
  background: #eef4ef;
}

.content-section > *,
.faq-section > *,
.related-section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
  margin-left: 0;
}

.content-section > .section-heading,
.faq-section > .section-heading,
.related-section > .section-heading {
  margin-left: auto;
  margin-right: auto;
}

.section-heading p:not(.eyebrow) {
  color: #514b43;
}

.answer-block {
  padding: 20px 22px;
  border-left: 5px solid var(--color-accent);
  border-radius: 0 8px 8px 0;
  color: #1e2828;
  background: #fff4e4;
  font-weight: 800;
}

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

.info-card {
  min-height: 176px;
  padding: 22px;
  border: 1px solid rgba(31, 77, 74, 0.18);
  border-radius: 8px;
  color: var(--color-foreground);
  background: rgba(255, 250, 242, 0.86);
  box-shadow: none;
}

.info-card:hover {
  border-color: rgba(198, 90, 20, 0.52);
  box-shadow: 0 18px 36px rgba(31, 77, 74, 0.12);
  transform: translateY(-3px);
}

.info-card strong {
  font-family: "PT Serif", Georgia, serif;
  font-size: 24px;
  line-height: 1.08;
}

.info-card span:last-child {
  color: #625b51;
  font-weight: 700;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--color-primary);
  background: #e5efe9;
}

.table-wrap {
  border: 1px solid rgba(31, 77, 74, 0.18);
  border-radius: 8px;
  background: #fffaf2;
  box-shadow: 0 18px 42px rgba(31, 77, 74, 0.08);
}

table {
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid rgba(31, 77, 74, 0.14);
}

th {
  color: #fffaf2;
  background: var(--color-primary);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

td {
  color: #2e3433;
}

.check-list {
  gap: 12px;
}

.check-list li {
  border: 1px solid rgba(31, 77, 74, 0.12);
  border-radius: 8px;
  color: #2f3936;
  background: rgba(255, 250, 242, 0.86);
}

.check-list .icon {
  color: var(--color-primary);
}

.trust-grid,
.case-layout {
  gap: 12px;
}

.trust-grid article,
.case-layout article {
  border: 1px solid rgba(31, 77, 74, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.82);
}

.trust-grid p,
.case-layout p {
  color: #514b43;
}

.district-grid {
  gap: 10px;
}

.district-chip {
  min-height: 78px;
  border: 1px solid rgba(31, 77, 74, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.84);
}

.district-chip:hover {
  border-color: rgba(198, 90, 20, 0.52);
  box-shadow: 0 14px 28px rgba(31, 77, 74, 0.1);
}

.district-chip strong {
  color: var(--color-primary);
}

.district-chip span {
  color: #665d52;
}

.quiz-section,
.lead-section {
  width: 100vw;
  margin: 0 0 0 calc(50% - 50vw);
  padding: 76px max(20px, calc((100vw - var(--max)) / 2));
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.quiz-section {
  grid-template-columns: minmax(0, 480px) minmax(360px, 620px);
  justify-content: center;
  gap: 40px;
  color: #fffaf2;
  background:
    linear-gradient(135deg, rgba(31, 77, 74, 0.98), rgba(38, 70, 83, 0.98)),
    #1f4d4a;
}

.quiz-section h2,
.quiz-section .eyebrow {
  color: #fffaf2;
}

.quiz-copy p:not(.eyebrow) {
  color: rgba(255, 250, 242, 0.78);
}

.quiz {
  padding: 24px;
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.1);
  backdrop-filter: blur(10px);
}

.quiz-progress {
  background: rgba(255, 250, 242, 0.22);
}

.quiz-progress span {
  background: #f1b23d;
}

.quiz legend {
  font-family: "PT Serif", Georgia, serif;
}

.quiz button,
.quiz input {
  border-radius: 8px;
}

.quiz button:not(.btn) {
  background: rgba(255, 250, 242, 0.11);
}

.lead-section {
  grid-template-columns: minmax(0, 450px) minmax(360px, 620px);
  justify-content: center;
  gap: 42px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.82), rgba(232, 239, 232, 0.9));
}

.lead-form {
  padding: 24px;
  border: 1px solid rgba(31, 77, 74, 0.16);
  border-radius: 8px;
  background: #fffaf2;
  box-shadow: 0 22px 54px rgba(31, 77, 74, 0.12);
}

.lead-form label {
  color: #303a37;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  border-color: rgba(31, 77, 74, 0.2);
  border-radius: 8px;
  background: #fffefb;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(31, 77, 74, 0.13);
}

.form-note {
  color: #5b625e;
}

.faq-list {
  gap: 10px;
}

details {
  border: 1px solid rgba(31, 77, 74, 0.16);
  border-radius: 8px;
  background: #fffaf2;
}

summary {
  font-family: "Manrope", "Segoe UI", sans-serif;
}

details p {
  color: #514b43;
}

.site-footer {
  margin-top: 0;
  padding: 58px max(18px, calc((100vw - var(--max)) / 2)) 94px;
  color: #f8f1e6;
  background: #111719;
}

.site-footer h2 {
  color: #fffaf2;
  font-family: "PT Serif", Georgia, serif;
}

.site-footer p,
.footer-bottom {
  color: rgba(255, 250, 242, 0.68);
}

.site-footer a {
  color: rgba(255, 250, 242, 0.86);
}

.footer-brand .brand-mark {
  background: #23302d;
  border-color: #f1b23d;
}

.mobile-cta {
  border-color: rgba(31, 77, 74, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.95);
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    left: 14px;
    right: 14px;
    top: 84px;
    border: 1px solid rgba(31, 77, 74, 0.16);
    border-radius: 8px;
    background: #fffaf2;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-self: stretch;
  }

  .quiz-section,
  .lead-section {
    grid-template-columns: minmax(0, 760px);
  }

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

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .site-header,
  main {
    width: 100%;
  }

  .site-header {
    min-height: 68px;
    padding: 10px 12px;
  }

  .brand strong {
    font-size: 18px;
  }

  .hero {
    min-height: auto;
    padding: 78px 18px 42px;
    background:
      linear-gradient(180deg, rgba(17, 23, 25, 0.92), rgba(31, 77, 74, 0.78) 62%, rgba(17, 23, 25, 0.5)),
      var(--hero-image) center right / cover no-repeat;
  }

  .hero-inner {
    min-height: auto;
    gap: 24px;
  }

  .hero-compact {
    min-height: auto;
    padding-top: 62px;
    padding-bottom: 36px;
  }

  .hero-compact .hero-inner {
    min-height: auto;
  }

  h1 {
    font-size: 40px;
    line-height: 1.02;
  }

  h2 {
    font-size: 31px;
  }

  h3 {
    font-size: 21px;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .trust-strip span {
    width: 100%;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-proof article {
    padding: 12px 14px;
  }

  .hero-proof strong {
    font-size: 26px;
  }

  .content-section,
  .faq-section,
  .related-section,
  .quiz-section,
  .lead-section {
    padding: 48px 18px;
  }

  .card-grid,
  .check-list,
  .trust-grid,
  .case-layout,
  .district-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: 150px;
  }

  .district-chip {
    flex-direction: column;
    gap: 4px;
  }

  .district-chip span {
    text-align: left;
  }

  .lead-form,
  .quiz {
    padding: 18px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}


/* mobile hero viewport fit */
@media (max-width: 760px) {
  .hero {
    padding: 54px 18px 34px;
  }

  .hero-compact {
    padding-top: 50px;
    padding-bottom: 32px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.04;
  }

  .hero-text {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions,
  .trust-strip {
    margin-top: 22px;
  }

  .trust-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .trust-strip span {
    width: auto;
    min-height: 38px;
    padding: 7px 10px;
  }

  .hero-proof {
    display: none;
  }
}


.hero-text-group .hero-text {
  margin-top: 14px;
}

.hero-text-strong {
  color: #fffaf2;
  font-weight: 900;
}

.trust-strip > span {
  width: auto;
}

.yandex-rating {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 250, 242, 0.28);
  border-radius: 999px;
  color: #fffaf2;
  background: rgba(17, 23, 25, 0.36);
  backdrop-filter: blur(8px);
}

.yandex-rating strong,
.yandex-rating small {
  display: block;
  line-height: 1.1;
}

.yandex-rating small {
  color: #facc15;
  font-size: 12px;
  font-weight: 900;
}

.yandex-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111719;
  background: #ffdd2d;
  font-weight: 1000;
}

.price-actions {
  align-items: center;
  margin: 0 0 18px;
}

.price-actions span {
  max-width: 520px;
  color: #5f5a52;
  font-weight: 800;
}

.media-collage {
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(31, 77, 74, 0.14);
  background: #e8e2d6;
  box-shadow: var(--shadow-md);
}

.media-collage img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.media-collage figcaption {
  padding: 12px 16px;
  color: #5f5a52;
  background: #fffaf2;
  font-weight: 800;
}

.symptom-visual-grid,
.repair-scenario-grid,
.master-grid {
  display: grid;
  gap: 14px;
}

.symptom-visual-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.symptom-visual-grid article,
.repair-scenario-grid article,
.master-card,
.contact-panel {
  border: 1px solid rgba(31, 77, 74, 0.14);
  border-radius: 8px;
  background: #fffaf2;
  box-shadow: var(--shadow-sm);
}

.symptom-visual-grid article,
.repair-scenario-grid article {
  padding: 20px;
}

.symptom-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #fffaf2;
  background: #1f4d4a;
}

.symptom-visual-grid h3,
.repair-scenario-grid h3 {
  margin: 0 0 8px;
}

.symptom-visual-grid p,
.repair-scenario-grid p {
  margin: 0;
  color: #5f5a52;
}

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

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

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

.master-card {
  overflow: hidden;
}

.master-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.master-body h3,
.master-body p {
  margin: 0;
}

.master-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.master-meta span {
  padding: 7px 9px;
  border-radius: 999px;
  color: #1f4d4a;
  background: #e6efe8;
  font-size: 13px;
  font-weight: 900;
}

.master-card blockquote {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid #c65a14;
  color: #4c463f;
  background: #f6efe3;
  font-weight: 800;
}

.metro-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.metro-area {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5f5a52;
}

.metro-area .icon {
  width: 17px;
  height: 17px;
  color: #2b7f75;
}

.contact-panel {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.contact-panel strong {
  color: #1f4d4a;
  font-size: 24px;
}

.file-hint {
  color: #6b6258;
  font-size: 13px;
  font-weight: 700;
}

.file-hint.is-error {
  color: #b91c1c;
}

.works-table-wrap table {
  min-width: 1180px;
}

.works-table td strong,
.works-table td span {
  display: block;
}

.works-table a {
  color: #1f4d4a;
  font-weight: 900;
}

.work-photo-pair {
  width: 154px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.work-photo-pair span {
  min-height: 64px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 5px;
  border-radius: 6px;
  color: #fffaf2;
  background:
    linear-gradient(180deg, transparent 20%, rgba(17, 23, 25, 0.62)),
    url("/assets/works-before-after-collage.png") center / 420% 220%;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.work-photo-pair span:first-child {
  filter: saturate(0.72) brightness(0.92);
}

.work-photo-pair span:last-child {
  background-position: right center;
}

.compact-table table {
  min-width: 760px;
}

@media (max-width: 1060px) {
  .symptom-visual-grid,
  .master-grid,
  .master-grid-detailed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .yandex-rating {
    width: 100%;
  }

  .symptom-visual-grid,
  .repair-scenario-grid,
  .master-grid,
  .master-grid-detailed {
    grid-template-columns: 1fr;
  }

  .metro-list {
    justify-content: flex-start;
    text-align: left;
  }

}


.faq-list a,
.content-section p a,
.works-table a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: #1f4d4a;
  font-weight: 1000;
}


/* Master individual photos override */
.master-card img.master-photo {
  display: block;
  width: 100%;
  height: 260px;
  min-height: 260px;
  object-fit: cover;
  object-position: center;
  background: #e8e2d6;
}

.master-grid-detailed .master-card img.master-photo {
  height: 320px;
  min-height: 320px;
}

@media (max-width: 760px) {
  .master-card img.master-photo,
  .master-grid-detailed .master-card img.master-photo {
    height: 280px;
    min-height: 280px;
  }
}
