:root {
  color-scheme: light;
  --ink: #152820;
  --green: #113c2e;
  --accent-green: #245b47;
  --muted: #49635a;
  --light-text: #d7e7dd;
  --paper: #f8faf6;
  --line: #d7e2d9;
  --pale: #d8e9dd;
  --white: #fff;
  --yellow: #ffc146;
  --radius: 16px;
  --content: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 "Segoe UI", system-ui, sans-serif;
}
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h2 { color: var(--green); font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -.027em; }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; width: 100%; height: auto; }
:focus-visible { outline: 3px solid #a26100; outline-offset: 4px; }
.hero :focus-visible, .contact :focus-visible, .mobile-bar :focus-visible { outline-color: var(--yellow); }
[aria-hidden="true"] { user-select: none; }

.container { width: min(100% - 48px, var(--content)); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 5;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  background: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.hero, .contact, .mobile-bar { background: var(--green); color: var(--white); }
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  border-bottom: 1px solid #507769;
}
.brand, .header-phone, .contact-phone { text-decoration: none; font-weight: 750; }
.brand { justify-self: start; font-size: 1.45rem; letter-spacing: -.035em; }
.site-nav { display: flex; gap: 26px; color: var(--light-text); }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .header-phone:hover, .contact-phone:hover { text-decoration: underline; }
.header-phone { justify-self: end; letter-spacing: .015em; white-space: nowrap; }
.header-city { display: none; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.23fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 66px);
  padding-block: clamp(38px, 5.5vw, 72px);
}
h1 { font-size: clamp(2.2rem, 4.1vw, 3.65rem); font-weight: 780; letter-spacing: -.042em; text-wrap: balance; }
h1 span { white-space: nowrap; }
.hero-intro { max-width: 43ch; margin-top: 22px; color: var(--light-text); font-size: clamp(1rem, 1.7vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions { margin-top: 25px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
}
.button.primary { background: var(--yellow); color: var(--ink); }
.button.primary:hover { background: #ffd16f; }
.button.outline { border-color: #86a194; color: var(--white); }
.button.outline:hover { background: var(--accent-green); }
.rating {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 34px;
  margin-top: 19px;
  padding-block: 5px;
  color: var(--light-text);
  font-weight: 700;
  text-decoration: none;
}
.rating:hover { text-decoration: underline; }
.star { color: var(--yellow); }
.hero-warranty { margin-top: 4px; color: var(--light-text); font-size: .9rem; }
.hero-photo { position: relative; overflow: hidden; border-radius: var(--radius); background: #1d4d3d; }
.hero-photo img { aspect-ratio: 15 / 14; object-fit: cover; }
.hero-photo figcaption {
  position: absolute;
  bottom: 15px;
  left: 15px;
  margin-right: 15px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--green);
  font-size: .9rem;
  font-weight: 650;
}

.section { padding-block: clamp(36px, 5.5vw, 68px); }
.section-intro { margin-top: 8px; color: var(--muted); }
.price-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  align-items: start;
  gap: 20px;
  margin-top: 25px;
}
.price-card, .diagnostics, .work-card, .review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.price-card { padding: 4px 18px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child > * { border-bottom: 0; }
th { text-align: left; font-weight: 550; }
th small { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; }
td { padding-left: 12px; color: var(--green); text-align: right; white-space: nowrap; font-weight: 700; }
.diagnostics { padding: 21px; }
.diagnostics h3 { color: var(--green); }
.diagnostics p + p { margin-top: 10px; }
.diagnostics p { color: var(--muted); }
.diagnostics .diagnostics-benefit {
  margin-top: 13px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--pale);
  color: var(--green);
  font-weight: 750;
}
.process { margin-top: 36px; padding-top: 27px; border-top: 1px solid var(--line); }
.process h2, .reviews h2 { font-size: clamp(1.5rem, 2.7vw, 2rem); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 18px; }
.process p { margin-top: 7px; color: var(--muted); }

.work-section { background: #edf3ed; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.work-card { min-width: 0; padding: 8px; }
.work-card figcaption { padding: 11px 10px 8px; color: var(--green); font-weight: 750; }
.comparison, .work-photo { overflow: hidden; border-radius: 10px; aspect-ratio: 384 / 165; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--accent-green); }
.comparison-panel { display: grid; grid-template-rows: 22.5% minmax(0, 1fr); min-width: 0; background: var(--green); }
.comparison-panel span {
  display: flex;
  align-items: center;
  padding-inline: 12px;
  color: var(--white);
  font-size: clamp(.8rem, 1.5vw, .95rem);
  font-weight: 700;
}
.comparison-panel img, .work-photo img { height: 100%; object-fit: cover; }
.reviews { margin-top: 36px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 7px 16px; }
.section-heading a, .footer-links a { color: var(--accent-green); font-weight: 650; }
.review-card { margin-top: 15px; padding: 19px 22px; }
.review-card figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.review-card figcaption span { color: var(--muted); font-size: .9rem; }
.review-card blockquote { margin-top: 8px; }

.contact { padding-block: clamp(32px, 5.5vw, 56px); }
.contact h2 { color: var(--white); }
.contact p { margin-top: 10px; color: var(--light-text); }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 21px; }
.contact-phone { font-size: 1.22rem; }
.footer { padding-block: 23px; color: var(--muted); font-size: .88rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-grid p { margin-top: 3px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 5px 18px; }
.mobile-bar { display: none; }

@media (max-width: 740px) {
  html { scroll-padding-bottom: 86px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .container { width: calc(100% - 36px); }
  .site-header { display: flex; justify-content: space-between; min-height: 57px; }
  .site-nav, .header-phone, .hero-actions { display: none; }
  .header-city { display: block; font-size: .88rem; color: var(--light-text); }
  .hero-grid { grid-template-columns: 1fr; gap: 17px; padding-block: 23px 25px; }
  h1 { max-width: 21ch; font-size: clamp(1.94rem, 6.5vw, 3rem); text-wrap: initial; }
  h1 span { white-space: normal; }
  .hero-intro { margin-top: 11px; }
  .rating { margin-top: 7px; }
  .hero-photo img { aspect-ratio: 4 / 2.65; object-position: center 57%; }
  .hero-photo figcaption { bottom: 10px; left: 10px; font-size: .82rem; }
  .price-grid, .work-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
  .process-grid { grid-template-columns: 1fr; gap: 14px; }
  .process { margin-top: 25px; padding-top: 19px; }
  .process p { margin-top: 4px; }
  .price-card { padding-inline: 12px; }
  .diagnostics, .review-card { padding: 15px; }
  .reviews { margin-top: 27px; }
  .mobile-bar {
    position: fixed;
    z-index: 4;
    inset: auto 0 0;
    display: flex;
    justify-content: center;
    gap: 9px;
    padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    box-shadow: 0 -5px 22px #09271b29;
  }
  .mobile-bar .button { width: min(50%, 265px); }
}
