:root {
  --color-ink: #27231f;
  --color-muted: #6f665d;
  --color-bg: #fbfaf7;
  --color-warm: #f3eee6;
  --color-soft: #e8efe9;
  --color-line: #ddd4c8;
  --color-white: #ffffff;
  --color-wood: #a96f3e;
  --color-wood-dark: #764925;
  --color-green: #315f53;
  --color-green-dark: #23473e;
  --color-blue: #35586c;
  --shadow-soft: 0 18px 45px rgba(45, 36, 27, 0.12);
  --radius: 8px;
  --header-height: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.simple-page {
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(169, 111, 62, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  background: var(--color-ink);
  color: var(--color-white);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.narrow {
  width: min(100% - 32px, 820px);
}

.section {
  padding: 72px 0;
}

.section-warm {
  background: var(--color-warm);
}

.section-muted {
  background: var(--color-soft);
}

.section-heading {
  max-width: 780px;
  text-align: center;
}

.section-heading.align-left {
  text-align: left;
}

.section-heading h2,
.split-content h2,
.final-cta h2,
.thank-you-section h1,
.legal-page h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.16;
  font-weight: 750;
  letter-spacing: 0;
}

.section-heading p,
.large-text {
  font-size: 18px;
  color: var(--color-muted);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-green);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid rgba(221, 212, 200, 0.8);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: 58px;
  max-width: 172px;
  object-fit: contain;
}

.brand-text {
  color: var(--color-green);
  font-size: 22px;
  font-weight: 780;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.main-nav a,
.header-phone,
.text-button,
.contact-line {
  text-decoration: none;
}

.main-nav a:hover,
.text-button:hover,
.contact-line:hover {
  color: var(--color-green);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--color-green);
  border-radius: var(--radius);
  color: var(--color-green);
  font-weight: 750;
  white-space: nowrap;
}

.hero {
  padding: 56px 0 64px;
}

.hero-grid {
  display: grid;
  gap: 24px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 820px;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 780;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--color-muted);
  font-size: 19px;
}

.hero-actions,
.cta-row,
.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--color-green);
  color: var(--color-white);
}

.button-primary:hover {
  background: var(--color-green-dark);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.68);
  border-color: var(--color-line);
  color: var(--color-ink);
}

.button-secondary:hover {
  border-color: var(--color-wood);
}

.button-full {
  width: 100%;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.trust-list li {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(49, 95, 83, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  padding: 6px 12px;
  color: var(--color-green-dark);
  font-size: 14px;
  font-weight: 650;
}

.hero-media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background: var(--color-line);
}

.hero-image {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center;
}

.lead-panel,
.spec-panel,
.price-box,
.project-card,
.steps article,
.benefit-list article,
.form-alert,
.contact-summary {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
}

.lead-panel {
  padding: 24px;
  box-shadow: var(--shadow-soft);
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.lead-panel h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.24;
  letter-spacing: 0;
}

.form-intro,
.form-note,
.small-note,
.footer-note {
  color: var(--color-muted);
  font-size: 14px;
}

.form-intro {
  margin: 8px 0 18px;
}

.form-alert {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-color: #d79a7a;
  background: #fff4ee;
  color: #62351f;
}

.form-alert ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.lead-form {
  display: grid;
  gap: 14px;
}

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

.field label,
.consent-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 720;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfc5b8;
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  padding: 10px 12px;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.consent-field input[aria-invalid="true"] {
  border-color: #b44a2a;
}

.field-error {
  display: block;
  min-height: 18px;
  margin-top: 4px;
  color: #a13e23;
  font-size: 13px;
  line-height: 1.35;
}

.consent-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--color-green);
}

.consent-field label {
  margin: 0;
  color: var(--color-muted);
  font-weight: 520;
  line-height: 1.45;
}

.honeypot {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.section-split {
  padding-top: 80px;
}

.split-grid {
  display: grid;
  gap: 28px;
}

.split-content p {
  margin: 16px 0 0;
}

.price-box {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin-top: 24px;
  background: var(--color-line);
}

.price-box div {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: var(--color-white);
}

.price-box span,
.spec-list dt {
  color: var(--color-muted);
  font-size: 14px;
}

.price-box strong {
  font-size: 24px;
  line-height: 1.15;
  color: var(--color-green-dark);
}

.spec-panel {
  padding: 24px;
}

.offer-side {
  display: grid;
  gap: 16px;
}

.offer-main-media {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: var(--color-line);
  box-shadow: var(--shadow-soft);
}

.offer-main-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center;
}

.offer-main-media figcaption {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-muted);
  font-size: 13px;
}

.spec-panel h3,
.gallery-heading h3,
.project-card h3,
.benefit-list h3,
.steps h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.spec-list {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(110px, 0.8fr);
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--color-line);
}

.spec-list div:last-child {
  border-bottom: 0;
}

.spec-list dd {
  margin: 0;
  font-weight: 750;
  text-align: right;
}

.gallery-wrap {
  margin-top: 44px;
}

.gallery-heading {
  max-width: 680px;
  margin-bottom: 20px;
}

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

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

.gallery:has(.gallery-item:only-child) {
  max-width: 760px;
}

.gallery-item {
  min-width: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-line);
  padding: 0;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transition: transform 180ms ease;
}

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

.project-grid {
  display: grid;
  gap: 24px;
}

.project-card {
  overflow: hidden;
}

.project-image img {
  width: 100%;
  aspect-ratio: 9 / 7;
  object-fit: cover;
  object-position: center;
}

.project-content {
  padding: 22px;
}

.project-content p {
  color: var(--color-muted);
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-wood);
}

.text-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  color: var(--color-green);
  font-weight: 760;
}

.centered-cta {
  margin-top: 28px;
  text-align: center;
}

.project-gallery-wrap {
  display: grid;
  gap: 28px;
  margin-top: 34px;
}

.project-gallery-section {
  min-width: 0;
}

.gallery-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.benefits-grid {
  display: grid;
  gap: 30px;
}

.benefit-list {
  display: grid;
  gap: 14px;
}

.benefit-list article {
  padding: 20px;
}

.benefit-list p,
.steps p {
  margin: 8px 0 0;
  color: var(--color-muted);
}

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

.steps article {
  padding: 20px;
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-white);
  font-weight: 780;
}

.faq-layout {
  display: grid;
  gap: 28px;
}

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

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

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 760;
}

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

.final-cta {
  padding: 70px 0;
}

.final-cta-inner {
  display: grid;
  gap: 24px;
  align-items: center;
}

.final-cta p {
  max-width: 680px;
  color: var(--color-muted);
  font-size: 18px;
}

.final-actions {
  display: grid;
  gap: 10px;
}

.contact-line {
  font-weight: 760;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 34px 0 88px;
  background: #28231f;
  color: #f7f2ec;
}

.footer-grid {
  display: grid;
  gap: 20px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: #fbfaf7;
  padding: 8px;
}

.footer-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer a {
  color: inherit;
}

.footer-note {
  max-width: 560px;
  color: #d1c8bb;
}

.copyright {
  margin-top: 22px;
  color: #d1c8bb;
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(40, 35, 31, 0.92);
  backdrop-filter: blur(12px);
}

.mobile-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  font-weight: 780;
  text-decoration: none;
}

.mobile-cta a:first-child {
  background: var(--color-green);
  color: var(--color-white);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  padding: 22px;
  background: rgba(22, 19, 16, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  width: min(100%, 1120px);
  max-height: 78vh;
  margin: 0 auto;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--color-white);
}

.lightbox figcaption {
  margin-top: 12px;
  color: var(--color-white);
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-ink);
  font-size: 34px;
  line-height: 1;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
}

.lightbox-nav {
  width: 48px;
  height: 64px;
}

.thank-you-main,
.legal-page {
  min-height: 60vh;
}

.thank-you-section {
  padding: 88px 0;
}

.contact-summary {
  margin-top: 28px;
  padding: 18px 20px;
}

.contact-summary p {
  margin: 4px 0;
}

.prose h2 {
  margin: 34px 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.prose p {
  color: var(--color-muted);
}

@media (max-width: 860px) {
  :root {
    --header-height: 66px;
  }

  .header-inner {
    gap: 10px 14px;
    min-height: var(--header-height);
    padding: 8px 0;
  }

  .brand {
    margin-right: auto;
  }

  .main-nav {
    display: none;
  }

  .header-phone {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .brand-logo {
    height: 48px;
    max-width: 144px;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 96px;
  }

  .section {
    padding: 52px 0;
  }

  .hero {
    padding: 40px 0 52px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-lead,
  .section-heading p,
  .large-text,
  .final-cta p {
    font-size: 17px;
  }

  .hero-image,
  .offer-main-media img {
    aspect-ratio: 4 / 3;
  }

  .section-heading h2,
  .split-content h2,
  .final-cta h2,
  .thank-you-section h1,
  .legal-page h1 {
    font-size: 28px;
  }

  .lead-panel {
    padding: 20px;
  }

  .lead-form {
    padding-bottom: 8px;
  }

  .button {
    width: 100%;
  }

  .trust-list li {
    width: 100%;
  }

  .spec-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .spec-list dd {
    text-align: left;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery:has(.gallery-item:only-child) {
    max-width: none;
  }

  .lightbox {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 6px;
    padding: 12px;
  }

  .lightbox-nav {
    width: 42px;
    height: 56px;
  }
}

@media (min-width: 681px) {
  .mobile-cta {
    display: none;
  }

  .site-footer {
    padding-bottom: 42px;
  }

  .field-grid,
  .price-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-box div:last-child {
    grid-column: span 2;
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
    grid-template-areas:
      "copy form"
      "media form";
    align-items: start;
  }

  .hero-copy {
    grid-area: copy;
  }

  .hero-media {
    grid-area: media;
  }

  .lead-panel {
    grid-area: form;
    position: sticky;
    top: calc(var(--header-height) + 18px);
  }

  .split-grid {
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: start;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }

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

  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .faq-layout {
    grid-template-columns: 0.7fr 1.3fr;
    align-items: start;
  }

  .final-cta-inner {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  }
}
