:root {
  --bg: #f4f3ee;
  --surface: #fbfaf7;
  --ink: #1e261d;
  --muted: #5b6357;
  --line: #dcdbd1;
  --green: #3d6a25;
  --green-dark: #2c4f1a;
  --band: #e7eadf;
  --head: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.15; margin: 0; }

.wrap { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 0;
}
.brand img { width: 150px; height: auto; mix-blend-mode: multiply; }
.top-links { display: flex; align-items: center; gap: 26px; font-weight: 500; font-size: 16px; }
.top-links a { text-decoration: none; }
.top-links a:hover { color: var(--green); }
.top-phone {
  border: 1px solid var(--ink); border-radius: 999px; padding: 7px 16px;
}
.top-phone:hover { border-color: var(--green); }

/* Intro */
.intro {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start;
  padding: 56px 0 72px;
}
.kicker { color: var(--green); font-weight: 600; font-size: 15px; margin: 0 0 14px; }
.intro h1 { font-size: clamp(34px, 4.6vw, 52px); max-width: 15ch; letter-spacing: -0.01em; }
.intro-text > p:last-child { color: var(--muted); max-width: 52ch; margin: 22px 0 0; }

.reach {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 24px;
}
.reach h2 { font-size: 15px; font-family: var(--body); font-weight: 600; color: var(--muted); padding: 16px 0 6px; }
.reach-row {
  display: flex; flex-direction: column; text-decoration: none;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.reach-row:first-of-type { border-top: 0; }
.reach-label { font-size: 14px; color: var(--muted); }
.reach-value { font-family: var(--head); font-weight: 600; font-size: 22px; overflow-wrap: anywhere; }
.reach-row:hover .reach-value { color: var(--green); }

/* Installs */
.installs { padding-bottom: 80px; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-head p { margin: 0; color: var(--muted); }
.section-head a { color: var(--green); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 22px; }
.gallery-empty {
  grid-column: 1 / -1; margin: 0; padding: 48px 24px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 10px;
}
.gallery-empty a { color: var(--green); }
.install { margin: 0; }
.install button {
  all: unset; display: block; width: 100%; cursor: zoom-in; border-radius: 8px; overflow: hidden;
  background: var(--band); aspect-ratio: 4 / 3;
}
.install button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.install img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.install button:hover img { opacity: .9; }
.install figcaption { padding-top: 10px; line-height: 1.4; }
.install strong { display: block; font-weight: 600; }
.install span { color: var(--muted); font-size: 15px; }

/* Steps */
.steps-band { background: var(--band); padding: 52px 0; }
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
}
.steps li { counter-increment: step; }
.steps h3 { font-size: 22px; margin-bottom: 6px; }
.steps h3::before { content: counter(step) ". "; color: var(--green); }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* Contact */
.contact {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; padding: 80px 0;
}
.contact h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 14px; }
.contact-intro p { color: var(--muted); margin: 0; max-width: 40ch; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.contact-list a { font-weight: 500; text-decoration-color: var(--line); text-underline-offset: 4px; }
.contact-list a:hover { color: var(--green); text-decoration-color: currentColor; }

.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(61, 106, 37, .15);
}
.field ::placeholder { color: #9aa094; }

.btn {
  font: 600 16px var(--body); color: #fff; background: var(--green);
  border: 0; border-radius: 6px; padding: 12px 22px; cursor: pointer;
}
.btn:hover { background: var(--green-dark); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-quiet:hover { background: var(--band); }
.form-status { margin: 14px 0 0; font-size: 15px; min-height: 1.5em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #a33a1f; }

/* Footer */
.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding: 22px 0 32px; color: var(--muted); font-size: 15px;
}

/* Photo viewer */
.viewer {
  border: 0; padding: 0; background: var(--surface); border-radius: 10px;
  max-width: min(1000px, 94vw); max-height: 92vh; overflow: auto;
}
.viewer::backdrop { background: rgba(20, 26, 19, .7); }
.viewer img { width: 100%; max-height: 78vh; object-fit: contain; background: #111; }
.viewer-caption { padding: 14px 18px 18px; }
.viewer-caption p { margin: 4px 0 0; color: var(--muted); }
.viewer-close {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .9); font-size: 24px; line-height: 1; cursor: pointer;
}

@media (max-width: 820px) {
  .intro { grid-template-columns: 1fr; gap: 36px; padding: 32px 0 56px; }
  .contact { grid-template-columns: 1fr; gap: 32px; padding: 60px 0; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .brand img { width: 120px; }
  .top-links { gap: 14px; font-size: 15px; }
  .top-links a:not(.top-phone) { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 20px; }
}
