:root {
  --green: #187a4b;
  --green-dark: #105c38;
  --orange: #e88936;
  --ink: #292d2a;
  --muted: #68706a;
  --line: #d8ddd9;
  --paper: #ffffff;
  --soft: #f2f3f1;
  --sidebar: 330px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, Montserrat, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 34px 30px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.brand {
  width: 100%;
  min-height: 170px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.brand img {
  width: 100%;
  height: auto;
  margin-top: 4px;
  object-fit: contain;
}

.tagline {
  margin: 4px 0 35px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
  letter-spacing: .13em;
  text-align: center;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.nav {
  width: 100%;
  border-top: 1px solid var(--line);
}

.nav a {
  display: block;
  padding: 14px 5px;
  border-bottom: 1px solid var(--line);
  color: #3e4540;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.active {
  color: var(--green);
  background: #f7f8f6;
}

.sidebar-note {
  margin-top: auto;
  color: #8a918b;
  font-size: .72rem;
  letter-spacing: .04em;
  text-align: center;
}

.page {
  min-height: 100vh;
  margin-left: var(--sidebar);
}

.hero {
  min-height: 64vh;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(380px, 1.05fr);
  align-items: center;
  gap: clamp(38px, 6vw, 95px);
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 8vw, 105px);
  background:
    linear-gradient(120deg, rgba(17, 59, 38, .82), rgba(24, 122, 75, .38)),
    linear-gradient(145deg, #375744, #aeb8ae);
  color: #fff;
}

.hero-content { position: relative; z-index: 1; max-width: 760px; }
.eyebrow {
  color: var(--orange);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.18; margin-top: 0; }
h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  font-weight: 500;
  letter-spacing: -.035em;
}
h2 { font-size: clamp(1.75rem, 3.4vw, 3rem); font-weight: 500; }
h3 { font-size: 1.18rem; font-weight: 650; }

.hero p { max-width: 620px; font-size: clamp(1rem, 1.8vw, 1.22rem); }

.hero-gallery {
  width: 100%;
  aspect-ratio: 1.55;
  position: relative;
  z-index: 2;
  overflow: hidden;
  transform: rotate(-2deg);
  transform-origin: center;
  border: 1px solid rgba(255,255,255,.45);
  background: #dfe3df;
  box-shadow: 18px 18px 0 rgba(232,137,54,.22), 0 18px 38px rgba(7,29,18,.3);
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease-in-out, visibility .8s ease-in-out;
}

.gallery-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-timer {
  position: absolute;
  z-index: 5;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(10,27,18,.62);
  box-shadow: 0 5px 12px rgba(0,0,0,.18);
  backdrop-filter: blur(4px);
}

.gallery-timer svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(-90deg);
}

.gallery-timer circle {
  fill: none;
  stroke-width: 4;
}

.gallery-timer-track {
  stroke: rgba(255,255,255,.32);
}

.gallery-timer-progress {
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-dasharray: 113.1;
  stroke-dashoffset: 113.1;
  animation: gallery-timer-fill 4s linear infinite;
}

.hero-gallery.is-paused .gallery-timer-progress {
  animation-play-state: paused;
}

.hero-gallery.reset-timer .gallery-timer-progress {
  animation: none;
}

@keyframes gallery-timer-fill {
  from { stroke-dashoffset: 113.1; }
  to { stroke-dashoffset: 0; }
}

.gallery-controls {
  position: absolute;
  z-index: 5;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(10,27,18,.62);
  box-shadow: 0 5px 12px rgba(0,0,0,.18);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible { border-color: #fff; background: rgba(0,0,0,.65); }

.gallery-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.button {
  display: inline-block;
  margin-top: 14px;
  padding: 13px 20px;
  border: 1px solid var(--green);
  color: #fff;
  background: var(--green);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease;
}
.button:hover, .button:focus-visible { background: var(--green-dark); border-color: var(--green-dark); }
.button.light { color: #fff; background: transparent; border-color: rgba(255,255,255,.72); }
.button.light:hover { background: #fff; color: var(--green-dark); }

.content {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(65px, 9vw, 120px) 0;
}

.page-head {
  padding: clamp(62px, 8vw, 100px) clamp(32px, 8vw, 105px);
  color: #fff;
  background: linear-gradient(120deg, var(--green-dark), var(--green));
}
.page-head h1 { margin: 8px 0 0; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.page-head p { max-width: 650px; margin-bottom: 0; font-size: 1.08rem; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .65fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: start;
}
.lead { font-size: 1.25rem; color: #414841; }
.accent-rule { width: 64px; height: 4px; margin: 0 0 24px; background: var(--orange); }

.feature-list, .fee-list { list-style: none; padding: 0; margin: 0; }
.feature-list li, .fee-list li {
  padding: 14px 0 14px 24px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.feature-list li::before, .fee-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 8px;
  height: 8px;
  background: var(--orange);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 55px;
}
.card {
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
}
.card-number { color: var(--orange); font-size: .8rem; font-weight: 700; letter-spacing: .12em; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 46px;
}
.project-tile {
  min-height: 235px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding: 26px;
  color: #313631;
  background: #e4e4e1;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.project-tile::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(49,54,49,.18);
}
.project-tile:hover, .project-tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 13px 30px rgba(30,45,35,.12);
}
.project-tile span { position: relative; z-index: 1; }
.project-tile .project-no { color: var(--green); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.project-tile .project-name { margin-top: 7px; font-size: 1.12rem; font-weight: 650; }

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  gap: 42px;
}

.hero-gallery.project-gallery {
  width: 100%;
  aspect-ratio: 3 / 2;
  transform: none;
  border: 1px solid #d7dad6;
  box-shadow: none;
}

.image-placeholder {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 30px;
  color: #747b75;
  border: 1px solid #d7dad6;
  background: #e4e4e1;
  text-align: center;
}
.project-meta { border-top: 4px solid var(--orange); padding-top: 24px; }
.project-meta dl { margin: 0; }
.project-meta dt { margin-top: 18px; color: var(--green); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.project-meta dd { margin: 3px 0 0; }

.fee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 42px;
}
.fee-card { padding: 32px; background: var(--soft); border-top: 4px solid var(--green); }
.fee-card .price { color: var(--orange); font-size: 1.05rem; font-weight: 700; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: clamp(40px, 7vw, 90px);
}
.contact-details a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 6px; color: #4a514b; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
input, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfd4d0;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid rgba(24,122,75,.2); border-color: var(--green); }
.form-note { margin-top: 14px; color: var(--muted); font-size: .82rem; }

.footer {
  padding: 34px clamp(32px, 8vw, 90px);
  color: #dfe7e1;
  background: #153526;
  font-size: .78rem;
  letter-spacing: .03em;
}
.footer-inner { display: flex; justify-content: space-between; gap: 25px; }

@media (max-width: 1000px) {
  :root { --sidebar: 275px; }
  .sidebar { padding-inline: 25px; }
  .hero { grid-template-columns: 1fr; }
  .hero-content { max-width: 720px; }
  .hero-gallery { width: min(100%, 680px); }
  .cards { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr auto;
    gap: 16px;
    padding: 12px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand { min-height: 0; align-items: center; }
  .brand img { margin: 0; }
  .tagline, .sidebar-note { display: none; }
  .nav-toggle { display: block; padding: 8px; color: var(--green-dark); font-weight: 700; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 8px 18px 18px;
    background: #fff;
    box-shadow: 0 12px 20px rgba(0,0,0,.08);
  }
  .nav.open { display: block; }
  .page { margin-left: 0; }
  .hero { min-height: 73vh; padding: 48px 30px 64px; }
  .hero-gallery {
    transform: rotate(-1.5deg);
    box-shadow: 12px 12px 0 rgba(232,137,54,.22), 0 14px 30px rgba(7,29,18,.3);
  }
  .content { width: min(100% - 40px, 1160px); }
  .intro, .project-layout, .contact-grid { grid-template-columns: 1fr; }
  .cards, .fee-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 540px) {
  .sidebar { grid-template-columns: 170px 1fr auto; }
  .project-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .page-head { padding-inline: 25px; }
  .gallery-controls { right: 8px; bottom: 8px; gap: 6px; }
  .gallery-arrow { width: 27px; height: 27px; font-size: 15px; }
  .gallery-timer { top: 8px; left: 8px; width: 34px; height: 34px; padding: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .gallery-timer { display: none; }
}
