:root {
  --sage: #E3EAE3;
  --bone: #FAFBF8;
  --pine: #0E3B32;
  --moss: #4E6E64;
  --line: #A9BFB5;
  --ochre: #C8922A;
  --ochre-soft: #F3E3C2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--sage); color: var(--pine);
  font-family: "Golos Text", system-ui, sans-serif; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.display { font-family: "Unbounded", sans-serif; letter-spacing: -0.02em; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; gap: 24px; }
.logo { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 18px; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo svg { flex: none; }
.nav { display: flex; gap: 32px; align-items: center; font-size: 15px; }
.nav a { text-decoration: none; color: var(--moss); }
.nav a:hover { color: var(--pine); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  background: var(--pine); color: var(--bone); font: inherit; font-weight: 600; font-size: 16px;
  padding: 15px 26px; border-radius: 999px; text-decoration: none;
}
.btn:hover { background: #185445; }
.nav .btn { padding: 10px 20px; font-size: 15px; color: var(--bone); }

.hero { padding: 48px 0 104px; }
.hero h1 {
  font-family: "Unbounded", sans-serif; font-weight: 500; letter-spacing: -0.035em;
  font-size: clamp(38px, 6vw, 84px); line-height: 1.02; margin: 0 0 56px; max-width: 15ch;
}
.hero-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: end; }
.lead { font-size: 20px; color: var(--moss); margin: 0 0 32px; max-width: 32ch; }

.flow { width: 100%; height: auto; display: block; }
.flow .edge { fill: none; stroke: var(--pine); stroke-width: 1.6; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw .7s ease-out forwards; }
.flow .node { opacity: 0; animation: appear .45s ease-out forwards; }
.flow text { font-family: "Golos Text", sans-serif; font-size: 15px; fill: var(--pine); }
.flow .tag { font-size: 12px; fill: var(--moss); }
.flow .strong text { fill: var(--bone); font-weight: 600; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

section { padding: 104px 0; }
h2 { font-family: "Unbounded", sans-serif; font-weight: 500; letter-spacing: -0.03em; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; margin: 0 0 20px; }
.section-lead { font-size: 19px; color: var(--moss); max-width: 50ch; margin: 0 0 56px; }

.services { background: var(--bone); }
.svc-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.svc-grid li { position: relative; padding-left: 28px; }
.svc-grid li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border: 2px solid var(--pine); border-radius: 50%; }
.svc-grid li::after { content: ""; position: absolute; left: 6px; top: 25px; bottom: 6px; width: 1.5px; background: var(--line); }
.svc-grid h3 { font-family: "Unbounded", sans-serif; font-weight: 500; font-size: 20px; letter-spacing: -0.02em; margin: 0 0 10px; }
.svc-grid p { margin: 0; color: var(--moss); }
.svc-grid li.wide { grid-column: span 2; }
.svc-grid li.wide p { max-width: 58ch; }

.process { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; }
.process-head { position: sticky; top: 32px; align-self: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 28px 0; border-top: 1.5px solid var(--line); }
.steps li:last-child { border-bottom: 1.5px solid var(--line); }
.steps li::before { content: counter(s); font-family: "Unbounded", sans-serif; font-weight: 400; font-size: 56px; line-height: 1; color: var(--ochre); }
.steps h3 { margin: 4px 0 6px; font-size: 21px; font-weight: 600; }
.steps p { margin: 0; color: var(--moss); max-width: 46ch; }

.about { background: var(--ochre-soft); }
.about-inner { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; }
.about p { margin: 0 0 16px; font-size: 21px; max-width: 46ch; }
.about p + p { font-size: 17px; color: var(--moss); }

.contact { background: var(--pine); color: var(--bone); }
.contact h2 { color: var(--bone); }
.contact .section-lead { color: #A7C2B8; margin-bottom: 36px; }
.contact-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; }
.contact dl { margin: 0; display: grid; gap: 18px; }
.contact dt { color: #86A89C; font-size: 14px; }
.contact dd { margin: 0; font-size: 17px; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
label { display: grid; gap: 4px; font-size: 14px; color: #A7C2B8; }
label.full { grid-column: 1 / -1; }
input, textarea {
  font: inherit; font-size: 18px; color: var(--bone); background: transparent;
  border: 0; border-bottom: 1.5px solid #3F6B5F; padding: 10px 0; border-radius: 0;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--ochre); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-foot .btn { background: var(--ochre); color: var(--pine); }
.form-foot .btn:hover { background: #D8A33E; }
.form-foot small { color: #86A89C; font-size: 13px; max-width: 38ch; }

footer { background: var(--pine); color: #86A89C; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid #1E4E43; }

@media (max-width: 980px) {
  .hero-grid, .process, .about-inner, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-head { position: static; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid li.wide { grid-column: auto; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  section { padding: 72px 0; }
  .hero { padding: 24px 0 72px; }
  .hero h1 { margin-bottom: 32px; }
  .svc-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps li { grid-template-columns: 56px 1fr; gap: 16px; }
  .steps li::before { font-size: 38px; }
  form { grid-template-columns: 1fr; }
  .logo span { font-size: 16px; }
}
@media (max-width: 480px) {
  .nav .btn { display: none; }
}
.logo { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .flow .edge { animation: none; stroke-dashoffset: 0; }
  .flow .node { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* Contact form states */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact form { position: relative; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-bottom-color: #E8896A; }
.form-status { grid-column: 1 / -1; margin: 0; min-height: 1.6em; font-size: 15px; }
.form-status.is-success { color: #F3E3C2; }
.form-status.is-error { color: #F2A48A; }
.btn:disabled { opacity: .7; cursor: progress; }
