:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --ink: #17201b;
  --muted: #68736d;
  --line: #e5e0d8;
  --wood: #a5693f;
  --wood-dark: #7b4528;
  --sage: #5f7569;
  --sage-soft: #e9f0ec;
  --shadow: 0 24px 70px rgba(23, 32, 27, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(229, 224, 216, 0.9);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 142px;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: #334139;
  font-weight: 700;
  font-size: 14px;
}

.site-nav a,
.header-phone {
  transition: color 160ms ease;
}

.site-nav a:hover,
.header-phone:hover,
.site-nav a.active {
  color: var(--wood-dark);
}

.header-phone {
  color: var(--wood-dark);
  font-weight: 800;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
  align-items: stretch;
  background: var(--paper);
}

.hero-media {
  min-height: 560px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 7vw, 86px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--wood-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.2;
}

.lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid transparent;
  font-weight: 800;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.btn-primary {
  background: var(--wood);
  color: #fff;
  box-shadow: 0 14px 30px rgba(165, 105, 63, 0.25);
}

.btn-primary:hover {
  background: var(--wood-dark);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 44px;
}

.hero-stats span {
  padding: 16px;
  background: var(--sage-soft);
  color: var(--muted);
  font-size: 13px;
}

.hero-stats strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
}

.section {
  padding: clamp(62px, 8vw, 112px) clamp(18px, 4vw, 56px);
}

.icon,
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon svg,
.service-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-heading,
.section-copy {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.text-link {
  color: var(--wood-dark);
  font-weight: 800;
  white-space: nowrap;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 28px;
  padding-bottom: 28px;
  background: #eef3ef;
}

.trust-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  align-items: start;
  padding: 22px;
  background: var(--paper);
  border: 1px solid rgba(95, 117, 105, 0.18);
}

.trust-item .icon {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  background: var(--sage-soft);
  color: var(--sage);
}

.trust-item strong {
  font-size: 18px;
}

.trust-item p {
  margin: 0;
  color: var(--muted);
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 90px);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  color: var(--muted);
  font-size: 17px;
}

.about-photos {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-photos img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

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

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 10px 36px rgba(23, 32, 27, 0.06);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card div {
  padding: 22px;
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  background: var(--sage-soft);
  color: var(--sage);
}

.service-card p,
.why-item p,
.process-list p {
  margin: 0;
  color: var(--muted);
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: #334139;
  font-size: 14px;
  font-weight: 700;
}

.service-card li {
  position: relative;
  padding-left: 18px;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--wood);
}

.product-note {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 5vw, 70px);
  background: #f4efe8;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.product-grid article {
  padding: 26px;
  background: var(--paper);
  border: 1px solid #e5d7c8;
}

.product-grid .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  background: #fff4e8;
  color: var(--wood-dark);
}

.product-grid p {
  margin: 0;
  color: var(--muted);
}

.why {
  background: #eef3ef;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.why-item {
  padding: 28px;
  background: var(--paper);
  border: 1px solid rgba(95, 117, 105, 0.18);
}

.why-item span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--wood-dark);
  font-weight: 800;
}

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

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 0.74;
  object-fit: cover;
}

.gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}

.gallery-grid figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 800;
}

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

.gallery-grid.large figure:first-child,
.gallery-grid.large figure:nth-child(2) {
  grid-column: span 2;
}

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

.process-list div {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.process-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 28px;
  background: var(--sage);
  color: #fff;
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 6vw, 70px);
  padding: clamp(62px, 8vw, 112px) clamp(18px, 4vw, 56px);
  background: #17201b;
  color: #fff;
}

.contact-section.standalone {
  background: var(--bg);
  color: var(--ink);
}

.contact-section.standalone .contact-copy p:not(.eyebrow) {
  color: var(--muted);
}

.contact-copy {
  align-self: start;
  position: sticky;
  top: 110px;
}

.contact-copy p:not(.eyebrow) {
  color: #c7d0ca;
  font-size: 17px;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 30px;
  color: #fff;
  font-weight: 800;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfaf7;
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--wood);
  box-shadow: 0 0 0 3px rgba(165, 105, 63, 0.12);
}

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

.consent {
  grid-template-columns: 18px 1fr !important;
  align-items: start;
  color: var(--muted);
  font-weight: 600 !important;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.website-field {
  position: absolute;
  left: -10000px;
}

.form-alert {
  grid-column: 1 / -1;
  padding: 12px 14px;
  font-weight: 800;
}

.form-alert.success {
  background: #e6f5eb;
  color: #1d6b3a;
}

.form-alert.error {
  background: #fde9e8;
  color: #9b2b24;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: #0f1713;
  color: #d5ddd8;
}

.site-footer img {
  width: 128px;
  margin-bottom: 10px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  font-weight: 800;
}

.copyright {
  color: #9fa9a3;
  font-size: 14px;
}

.footer-legal {
  display: grid;
  gap: 8px;
  max-width: 420px;
  color: #9fa9a3;
  font-size: 13px;
}

.cookie-banner {
  position: fixed;
  left: clamp(14px, 3vw, 32px);
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
}

.cookie-actions .btn {
  min-height: 42px;
  padding: 10px 16px;
}

.subpage-hero {
  padding: clamp(72px, 10vw, 130px) clamp(18px, 4vw, 56px) clamp(42px, 6vw, 76px);
  background: linear-gradient(135deg, #f7f3ec 0%, #eef3ef 100%);
}

.subpage-hero h1 {
  max-width: 900px;
  font-size: clamp(40px, 6vw, 72px);
}

.subpage-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.gallery-page {
  padding-top: 34px;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.gallery-filters span {
  padding: 9px 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: #334139;
  font-size: 14px;
  font-weight: 800;
}

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

.realization-card {
  display: grid;
  align-content: start;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 10px 36px rgba(23, 32, 27, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.realization-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.realization-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.realization-card span,
.realization-card h2,
.realization-card p,
.realization-card strong {
  margin-left: 20px;
  margin-right: 20px;
}

.realization-card span {
  margin-top: 20px;
  color: var(--wood-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.realization-card h2 {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 22px;
}

.realization-card p {
  margin-top: 0;
  color: var(--muted);
}

.realization-card strong {
  margin-top: auto;
  margin-bottom: 22px;
  color: #334139;
}

.realization-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  align-items: stretch;
  background: var(--paper);
}

.realization-hero > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 7vw, 86px);
}

.realization-hero > p,
.realization-hero p:not(.eyebrow) {
  color: var(--muted);
}

.realization-hero img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.realization-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.realization-meta span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: var(--sage-soft);
  color: #334139;
  font-weight: 800;
}

.realization-meta svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

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

.realization-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: filter 180ms ease, transform 180ms ease;
}

.realization-photos a {
  overflow: hidden;
  cursor: zoom-in;
}

.realization-photos a:hover img {
  filter: brightness(0.9);
  transform: scale(1.02);
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 14px;
  padding: 70px 24px 28px;
  background: rgba(8, 13, 10, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  display: grid;
  justify-items: center;
  min-width: 0;
  margin: 0;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 116px);
  object-fit: contain;
}

.lightbox-counter {
  margin-top: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(13, 21, 17, 0.7);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  background: #fff;
  color: #17201b;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 38px;
}

.lightbox-nav {
  font-size: 48px;
}

.lightbox-prev {
  justify-self: end;
}

.lightbox-next {
  justify-self: start;
}

.gallery-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(34px, 5vw, 58px) clamp(18px, 4vw, 56px);
  background: #17201b;
  color: #fff;
}

.gallery-cta h2 {
  max-width: 760px;
}

.gallery-cta p:not(.eyebrow) {
  color: #c7d0ca;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 12px;
  margin-top: 28px;
}

.contact-methods a,
.contact-methods span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 800;
}

.contact-methods .icon {
  color: var(--wood-dark);
}

@media (max-width: 1040px) {
  .hero,
  .intro,
  .contact-section,
  .product-note {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 420px;
  }

  .hero-content {
    padding-top: 42px;
  }

  .service-grid,
  .process-list,
  .product-grid,
  .trust-strip,
  .gallery-grid.large,
  .realization-grid,
  .realization-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .realization-hero {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .lightbox {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 6px;
    padding: 64px 8px 20px;
  }

  .lightbox-close,
  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .lightbox-image {
    max-height: calc(100vh - 104px);
  }

  .site-header {
    grid-template-columns: auto auto;
  }

  .brand img {
    width: 118px;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .header-phone {
    display: none;
  }

  .site-nav.is-open {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    padding-top: 8px;
  }

  .site-nav.is-open a {
    padding: 13px 0;
    border-top: 1px solid var(--line);
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 320px;
  }

  h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-stats,
  .intro-grid,
  .about-photos,
  .why-grid,
  .gallery-grid,
  .gallery-grid.large,
  .service-grid,
  .process-list,
  .contact-form,
  .product-grid,
  .trust-strip,
  .realization-grid,
  .realization-photos {
    grid-template-columns: 1fr;
  }

  .gallery-grid.large figure:first-child,
  .gallery-grid.large figure:nth-child(2) {
    grid-column: auto;
  }

  .section-heading,
  .gallery-cta,
  .contact-methods {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 20px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .btn {
    flex: 1 1 130px;
  }
}
