:root {
  --forest: #073f18;
  --forest-2: #0b5a24;
  --leaf: #4f8f48;
  --gold: #caa54a;
  --gold-2: #9f7424;
  --ink: #141711;
  --muted: #66715f;
  --paper: #f7f5ed;
  --white: #ffffff;
  --line: rgba(20, 23, 17, .12);
  --shadow: 0 24px 70px rgba(15, 25, 15, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(7, 63, 24, .14);
  background: rgba(255, 255, 255, .96);
  color: var(--forest);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 174px;
  padding: 7px 0;
}

.brand img {
  width: clamp(148px, 20vw, 228px);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(7, 63, 24, .82);
  font-size: .92rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(202, 165, 74, .17);
  color: var(--forest);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(7, 63, 24, .24);
  border-radius: 50%;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: currentColor;
  content: "";
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1c1608;
  box-shadow: 0 14px 34px rgba(159, 116, 36, .28);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, .34);
  color: var(--white);
}

.btn-dark {
  background: var(--forest);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  color: var(--white);
  background: #102112;
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(4, 30, 12, .95) 0%, rgba(4, 30, 12, .76) 34%, rgba(4, 30, 12, .28) 66%, rgba(4, 30, 12, .04) 100%),
    url("./h4b-hero.jpg");
  background-position: center;
  background-size: cover;
  content: "";
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--paper));
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 80px 0 118px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.1rem, 8vw, 7.2rem);
}

.hero-copy p {
  max-width: 580px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(720px, 100%);
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
}

.metric {
  padding: 18px;
  background: rgba(6, 49, 20, .66);
}

.metric strong {
  display: block;
  color: var(--gold);
  font-size: 1.35rem;
}

.metric span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .78);
  font-size: .9rem;
}

.section {
  padding: 92px 0;
}

.section.alt {
  background: #fffdf6;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .55fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head h2 {
  color: var(--forest);
  font-size: clamp(2.1rem, 4vw, 4.2rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.catalog-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--forest);
  color: var(--white);
  box-shadow: var(--shadow);
}

.catalog-card::before {
  position: absolute;
  inset: 0;
  background-image: var(--image), linear-gradient(145deg, #244117, #926b2b);
  background-position: var(--pos, center);
  background-size: cover;
  transform: scale(1.03);
  transition: transform .5s ease;
  content: "";
}

.catalog-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 16, 6, .18), rgba(2, 16, 6, .86));
  content: "";
}

.catalog-card:hover::before {
  transform: scale(1.08);
}

.catalog-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 430px;
  padding: 24px;
}

.catalog-content h3 {
  font-size: 1.55rem;
}

.catalog-content p {
  margin: 12px 0 20px;
  color: rgba(255, 255, 255, .82);
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 900;
}

.inline-link::after {
  content: "→";
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.benefit {
  min-height: 238px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, .72);
}

.benefit .num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: rgba(202, 165, 74, .18);
  color: var(--gold-2);
  font-weight: 900;
}

.benefit h3 {
  color: var(--forest);
  font-size: 1.16rem;
}

.benefit p {
  margin: 12px 0 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .72fr);
  gap: 44px;
  align-items: center;
}

.image-panel {
  min-height: 560px;
  border-radius: 8px;
  background-image: linear-gradient(180deg, rgba(7, 63, 24, .1), rgba(7, 63, 24, .32)), url("./h4b-hero.jpg");
  background-position: 72% center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.text-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.text-list article {
  border-left: 3px solid var(--gold);
  padding-left: 18px;
}

.text-list h3 {
  color: var(--forest);
  font-size: 1.18rem;
}

.text-list p {
  margin: 6px 0 0;
  color: var(--muted);
}

.quote-band {
  padding: 62px 0;
  background: var(--forest);
  color: var(--white);
}

.quote-band .wrap {
  display: grid;
  grid-template-columns: minmax(0, .78fr) auto;
  gap: 24px;
  align-items: center;
}

.quote-band h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.quote-band p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .76);
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
}

.page-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(5, 36, 14, .92), rgba(5, 36, 14, .48)),
    var(--page-image, url("./h4b-hero.jpg"));
  background-position: var(--hero-pos, center);
  background-size: cover;
  content: "";
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
  min-height: 520px;
  padding: 110px 0 92px;
}

.page-hero h1 {
  max-width: 12ch;
}

.page-hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(320px, .3fr);
  gap: 36px;
  align-items: start;
}

.detail-copy h2 {
  color: var(--forest);
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.detail-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.gallery-intro {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(280px, .45fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.gallery-intro h2 {
  color: var(--forest);
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.gallery-intro p {
  margin: 0;
  color: var(--muted);
}

.project-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
  grid-template-rows: repeat(2, minmax(220px, 290px));
  gap: 14px;
}

.project-gallery figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--forest);
  box-shadow: var(--shadow);
}

.project-gallery figure:first-child {
  grid-row: 1 / 3;
}

.project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.project-gallery figure:hover img {
  transform: scale(1.025);
}

.project-gallery figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  width: fit-content;
  max-width: calc(100% - 28px);
  border-radius: 6px;
  padding: 9px 12px;
  background: rgba(5, 29, 13, .84);
  color: var(--white);
  font-size: .86rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.spec-box {
  position: sticky;
  top: 100px;
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.spec-box h3 {
  color: var(--forest);
}

.spec-box ul,
.check-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.spec-box li,
.check-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  color: var(--muted);
}

.spec-box li::before,
.check-list li::before {
  margin-top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.step {
  border-top: 3px solid var(--gold);
  padding: 22px;
  background: var(--white);
}

.step strong {
  color: var(--forest);
}

.step p {
  margin: 8px 0 0;
  color: var(--muted);
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faq summary {
  cursor: pointer;
  padding: 20px;
  color: var(--forest);
  font-weight: 900;
}

.faq p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, .58fr);
  gap: 24px;
}

.contact-form,
.contact-aside {
  border-radius: 8px;
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--forest);
  font-size: .9rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fbfaf5;
  color: var(--ink);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  min-height: 24px;
  color: var(--forest);
  font-weight: 700;
}

.footer {
  background: #051d0d;
  color: rgba(255, 255, 255, .72);
  padding: 54px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, .4fr));
  gap: 30px;
}

.footer img {
  width: 210px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
  opacity: .94;
}

.footer h3 {
  color: var(--white);
  font-size: 1rem;
}

.footer a {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, .76);
}

.footer-bottom {
  margin-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 18px;
  font-size: .88rem;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(7, 63, 24, .14);
    border-radius: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, .99);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-radius: 8px;
  }

  .section-head,
  .gallery-intro,
  .split,
  .detail-layout,
  .contact-grid,
  .quote-band .wrap {
    grid-template-columns: 1fr;
  }

  .catalog-grid,
  .benefit-grid,
  .process,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec-box {
    position: static;
  }
}

@media (max-width: 680px) {
  .hero-inner,
  .page-hero .wrap {
    min-height: auto;
    padding-top: 76px;
  }

  .hero-metrics,
  .catalog-grid,
  .benefit-grid,
  .process,
  .footer-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card,
  .catalog-content {
    min-height: 330px;
  }

  .image-panel {
    min-height: 340px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 260px);
  }

  .project-gallery figure:first-child {
    grid-row: auto;
  }

  .section {
    padding: 68px 0;
  }
}
