:root {
  --bg: #fbfaf7;
  --bg-alt: #f2efe8;
  --text: #1f2328;
  --muted: #6b6f76;
  --accent: #2f5d50;
  --accent-ink: #ffffff;
  --line: #e2ddd2;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --bg-alt: #1c1f23;
    --text: #e8e6e1;
    --muted: #9a9ea5;
    --accent: #7fb7a4;
    --accent-ink: #10201b;
    --line: #2c3036;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 50px); max-width: 18ch; }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 1; }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; color: var(--accent); }
.logo span { color: var(--text); }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); }

.hero { padding: 88px 0 72px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.lead { font-size: 19px; color: var(--muted); max-width: 56ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600;
  border: 1px solid var(--accent);
}
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn:hover { filter: brightness(1.05); }

.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; }

.work { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.work li { border-top: 2px solid var(--accent); padding-top: 16px; }
.work p { color: var(--muted); margin: 0; }
.work__tag { display: inline-block; font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 6px; }

.steps { margin: 0; padding-left: 1.3em; max-width: 64ch; }
.steps li { margin-bottom: 12px; }

.contact { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.contact__box { text-align: right; }
.contact__mail { font-size: clamp(20px, 3vw, 26px); font-weight: 600; color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.contact__box p { margin: 6px 0 0; }

.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; }
.foot__row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.notfound { min-height: 70vh; display: flex; align-items: center; }

@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  .section { padding: 52px 0; }
  .nav { gap: 14px; }
  .contact__box { text-align: left; }
}
