:root {
  --ink: #172120;
  --muted: #64716d;
  --paper: #f5f2eb;
  --surface: #ffffff;
  --forest: #23483f;
  --forest-dark: #102a25;
  --copper: #b97842;
  --sage: #dfe8de;
  --line: rgba(23, 33, 32, 0.14);
  --shadow: 0 24px 70px rgba(16, 42, 37, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(1180px, calc(100% - 32px));
  min-height: 66px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(16, 42, 37, 0.62);
  color: #fff;
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 48px rgba(9, 24, 21, 0.24);
}

.site-header.scrolled {
  background: rgba(16, 42, 37, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 14px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  font-size: 14px;
  font-weight: 700;
}

.header-phone {
  padding: 13px 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--forest-dark);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  padding: 136px max(24px, calc((100vw - 1180px) / 2)) 34px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 19, 17, 0.86), rgba(6, 19, 17, 0.42) 48%, rgba(6, 19, 17, 0.12)),
    linear-gradient(0deg, rgba(6, 19, 17, 0.72), rgba(6, 19, 17, 0.1) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(650px, 100%);
  padding-bottom: 52px;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--copper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 108px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--copper);
  color: #fff;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(720px, 100%);
  margin-left: 0;
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px);
}

.hero-panel div {
  padding: 22px;
  background: rgba(16, 42, 37, 0.44);
}

.hero-panel strong {
  display: block;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1;
}

.hero-panel span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.35;
}

.section {
  padding: 92px max(24px, calc((100vw - 1180px) / 2));
}

.intro-grid,
.section-heading,
.terms {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro-grid p,
.terms-copy p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
}

.stats-grid article,
.project-card,
.steps article,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(16, 42, 37, 0.06);
}

.stats-grid article {
  padding: 28px;
}

.stats-grid span,
.project-top strong {
  font-size: 22px;
  font-weight: 800;
}

.stats-grid p,
.project-card p,
.steps p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.projects {
  background: #fff;
}

.section-heading {
  align-items: end;
}

.text-link {
  justify-self: end;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--forest);
  font-weight: 800;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 16px;
  margin-top: 42px;
}

.project-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.project-card.featured {
  background: var(--forest-dark);
  color: #fff;
}

.project-card.featured p,
.project-card.featured li {
  color: rgba(255, 255, 255, 0.76);
}

.project-top {
  display: grid;
  gap: 10px;
}

.project-top span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--sage);
  color: var(--forest-dark);
  font-size: 12px;
  font-weight: 800;
}

.project-card ul {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 28px 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.terms {
  background: var(--paper);
}

.steps {
  display: grid;
  gap: 14px;
}

.steps article {
  padding: 24px;
}

.steps span {
  color: var(--copper);
  font-weight: 800;
}

.steps h3 {
  margin: 8px 0 0;
  font-size: 22px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 520px);
  gap: clamp(32px, 8vw, 112px);
  align-items: start;
  background: var(--forest-dark);
  color: #fff;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 22px;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-list a {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
}

.lead-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: #fff;
  color: var(--ink);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.form-button {
  width: 100%;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px max(24px, calc((100vw - 1180px) / 2));
  color: var(--muted);
  background: #fff;
  font-size: 14px;
}

.footer span {
  color: var(--ink);
  font-weight: 800;
}

.footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border-radius: 8px;
    background: var(--forest-dark);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 14px;
  }

  .header-phone {
    display: none;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .hero {
    min-height: 820px;
    padding-top: 118px;
  }

  .hero-content {
    padding-bottom: 28px;
  }

  .hero-panel,
  .stats-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .section-heading,
  .terms,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .project-card {
    min-height: auto;
  }

  .text-link {
    justify-self: start;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand span:last-child {
    max-width: 124px;
    overflow: hidden;
    white-space: nowrap;
  }

  .hero {
    min-height: 760px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-panel div,
  .stats-grid article,
  .project-card,
  .lead-form {
    padding: 22px;
  }
}
