/* ===== Tokens ===== */
:root {
  --pine: #17332b;
  --pine-2: #22463b;
  --sand: #c99a55;
  --sand-dark: #8a6428;
  --chalk: #f6f7f5;
  --mist: #e6ebe8;
  --ink: #1c2420;
  --muted: #55605a;
  --white: #fff;
  --line: #d5dcd8;
  --error: #b3261e;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Newsreader", Georgia, "Times New Roman", serif;
  --header-h: 72px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--sand-dark); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; color: var(--pine); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--chalk); }
.section-head { margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 4px;
  font: 700 .95rem var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sand); color: var(--pine); }
.btn-primary:hover { background: #d7a962; }
.btn-ghost { color: var(--chalk); border-color: rgba(246, 247, 245, .5); }
.btn-ghost:hover { border-color: var(--chalk); background: rgba(246, 247, 245, .08); }
.btn-small { padding: .55rem 1.1rem; background: var(--pine); color: var(--white); }
.btn-small:hover { background: var(--pine-2); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(23, 51, 43, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 6px;
  background: var(--pine); color: var(--sand);
  font: 600 1.05rem var(--font-head); letter-spacing: .04em;
}
.brand-name { font-size: .8rem; font-weight: 700; line-height: 1.25; color: var(--pine); }
.site-nav ul { display: flex; align-items: center; gap: 2rem; list-style: none; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .3rem 0; background: linear-gradient(var(--sand), var(--sand)) 0 100% / 0 2px no-repeat; transition: background-size .25s; }
.site-nav a:not(.btn):hover { background-size: 100% 2px; }
.site-nav .btn { color: var(--white); }

.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--pine); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { background: var(--pine); color: var(--chalk); padding: clamp(3rem, 8vw, 6rem) 0; }
.hero h1 { color: var(--white); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.lead { font-size: 1.15rem; color: #d3ddd8; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-text > * { animation: rise .7s ease both; }
.hero-text > :nth-child(2) { animation-delay: .1s; }
.hero-text > :nth-child(3) { animation-delay: .2s; }
.hero-visual { animation: rise .9s .15s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-image { border-radius: 10px; overflow: hidden; }
.about-image svg { width: 100%; height: auto; }
.steps { list-style: none; counter-reset: step; display: grid; gap: .75rem; }
.steps li { counter-increment: step; display: flex; gap: 1rem; align-items: baseline; padding: .9rem 1.1rem; border-left: 3px solid var(--sand); background: var(--chalk); border-radius: 0 6px 6px 0; }
.steps li::before { content: counter(step); font: 600 1.3rem var(--font-head); color: var(--sand-dark); min-width: 1.2rem; }

/* ===== Services ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--sand); box-shadow: 0 10px 24px rgba(23, 51, 43, .08); }
.card p { color: var(--muted); margin: 0; }
.icon { width: 40px; height: 40px; margin-bottom: 1rem; fill: none; stroke: var(--sand-dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Benefits ===== */
.benefits { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; }
.benefits li { padding-top: 1.1rem; border-top: 2px solid var(--pine); }
.benefits p { color: var(--muted); margin: 0; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.details { font-style: normal; margin-top: 2rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.details p:last-child { margin: 0; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2rem); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; padding: .75rem .9rem;
  font: inherit; color: var(--ink);
  background: var(--white);
  border: 1px solid #aab5af; border-radius: 4px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(201, 154, 85, .45); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field.check { display: grid; grid-template-columns: auto 1fr; gap: 0 .6rem; align-items: start; }
.field.check label { font-weight: 500; margin: 0; }
.field.check input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--pine); }
.field.check .error { grid-column: 1 / -1; }
.error { display: block; min-height: 1.1em; margin-top: .3rem; font-size: .85rem; color: var(--error); }
.form-status { margin: 1rem 0 0; font-weight: 500; }
.form-status.success { color: var(--pine-2); }

/* ===== Footer ===== */
.site-footer { background: var(--pine); color: #c6d2cc; padding-top: 3rem; font-size: .92rem; }
.site-footer a { color: #e7ecea; text-decoration: none; }
.site-footer a:hover { color: var(--sand); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; }
.footer-brand { font: 600 1.15rem var(--font-head); color: var(--white); margin-bottom: .5rem; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.25rem 0; }
.footer-bottom p { margin: 0; max-width: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; }
  .about-image { max-width: 380px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .3s ease, visibility .3s;
  }
  .site-nav.open { max-height: 320px; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .site-nav li a:not(.btn) { display: inline-block; padding: .8rem 0; }
  .site-nav .btn { display: block; text-align: center; margin-top: .5rem; }
}
@media (max-width: 600px) {
  .cards, .benefits { grid-template-columns: 1fr; }
  .brand-name { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
