:root {
  --ink: #1f2a2e;
  --ink-2: #2f3b40;
  --steel: #5c6b70;
  --concrete: #eef0ee;
  --line: #d5d9d7;
  --white: #ffffff;
  --hivis: #f2c230;
  --hivis-dark: #d9a913;
  --focus: #1a6fd1;
  --radius: 6px;
  --wrap: 1180px;
  --head: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--hivis-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--hivis); color: var(--ink); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font-family: var(--body); font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--hivis); color: var(--ink); border-color: var(--hivis); }
.btn-primary:hover { background: var(--hivis-dark); border-color: var(--hivis-dark); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: var(--white); }
.btn-ghost-dark { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-call { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-call:hover { background: var(--ink-2); }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 54px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--hivis); }
.menu-toggle { display: none; }
.site-nav .has-sub { position: relative; }
.site-nav .sub-nav { display: none; position: absolute; top: 100%; left: -16px; min-width: 230px; flex-direction: column; gap: 0; padding: 8px 16px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--hivis); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 12px 24px rgba(15, 22, 25, .12); z-index: 60; }
.site-nav .has-sub:hover > .sub-nav, .site-nav .has-sub:focus-within > .sub-nav { display: flex; }
.site-nav .sub-nav a { display: block; padding: 8px 0; white-space: nowrap; }

/* Hero */
.hero { background: var(--ink); color: var(--white); padding: 56px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.hero-copy { padding-bottom: 56px; }
.hero-logo { width: 230px; height: auto; margin: 0 0 22px; }
.hero-area { color: var(--hivis); font-weight: 600; margin-bottom: .6em; }
.hero h1 { color: var(--white); }
.lead { font-size: 1.2rem; color: #dfe4e2; max-width: 36em; }
.hero .lead a { color: var(--white); text-decoration-color: var(--hivis); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; color: #c9d0ce; font-size: .98rem; }
.trust li { padding-left: 14px; border-left: 3px solid var(--hivis); }
.trust strong { color: var(--white); }

.hero-side { position: relative; }
.hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: var(--steel); }
.quote-card { position: relative; margin: -120px 24px 0; background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 26px; border-top: 6px solid var(--hivis); box-shadow: 0 18px 40px rgba(15, 22, 25, .28); }
.quote-card h2, .quote-card > .quote-card-title { font-family: var(--head); font-size: 1.6rem; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); margin: 0 0 .25em; }
.quote-card > p { color: var(--steel); font-size: .98rem; }

/* Form */
.quote-form .field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.optional { font-weight: 400; color: var(--steel); }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1.5px solid #9aa4a6; border-radius: var(--radius); padding: 10px 12px; min-height: 46px; }
.quote-form textarea { resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 10px 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.is-error { color: #a12a1c; }
.form-status.is-ok { color: #1d6b3a; }

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--concrete); }
.section-intro { font-size: 1.12rem; color: var(--ink-2); max-width: 44em; margin-bottom: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.text-link { font-weight: 600; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.service { padding: 26px 28px 22px 0; border-bottom: 1px solid var(--line); }
.service:nth-child(odd) { padding-right: 36px; border-right: 1px solid var(--line); }
.service:nth-child(even) { padding-left: 36px; }
.service-wide { grid-column: 1 / -1; border-right: 0 !important; }
.service h3 a { text-decoration: none; border-bottom: 3px solid var(--hivis); }
.service h3 a:hover { border-bottom-color: var(--ink); }
.service p { margin: 0; color: var(--ink-2); }

/* Situations */
.situations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; margin-bottom: 48px; }
.situation p { margin: 0; }

.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 640px; }
.compare caption { text-align: left; font-family: var(--head); font-weight: 600; font-size: 1.25rem; padding: 18px 20px 6px; }
.compare th, .compare td { text-align: left; padding: 12px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: .92rem; color: var(--steel); font-weight: 600; }
.compare tbody th { font-weight: 600; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* Projects */
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.project-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--concrete); }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: step; border-top: 4px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: var(--hivis); font-family: var(--head); font-weight: 700; font-size: 1.15rem; margin-bottom: 12px; border-radius: 50%; }
.steps p { margin: 0; color: var(--ink-2); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.about-panel { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 28px; border-top: 6px solid var(--hivis); }
.about-panel dl { margin: 0 0 24px; }
.about-panel dl > div { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.about-panel dl > div:first-child { padding-top: 0; }
.about-panel dt { font-size: .9rem; color: #c9d0ce; }
.about-panel dd { margin: 2px 0 0; font-family: var(--head); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }

/* Inner pages */
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; font-size: .95rem; color: #c9d0ce; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--steel); }
.breadcrumb a { color: var(--white); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.section-figure { margin: 0; }
.section-figure svg { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.section-figure figcaption { font-size: .95rem; color: var(--steel); margin-top: 10px; }
.narrow h3 { margin-top: 1.4em; }
.cost-table { max-width: 780px; margin: 32px auto 0; }
.checked { font-size: .92rem; color: #c9d0ce; margin: 0; }
.sources { padding-left: 1.2em; margin: 0; }
.sources li { margin-bottom: 8px; }
.after-table { margin-top: 24px; max-width: 44em; }

/* Projects page */
.hero-simple { padding-bottom: 56px; }
.hero-simple .lead { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery-item { margin: 0; }
.gallery-link { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery-link img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--concrete); }
.gallery-link:hover img { opacity: .92; }
.gallery-item figcaption { font-size: .95rem; color: var(--steel); margin-top: 8px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(15, 22, 25, .9); }
.lightbox-img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox-btn { position: fixed; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--white); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.contact-form > p { color: var(--steel); }
.contact-panel { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 28px; border-top: 6px solid var(--hivis); }
.contact-panel dl { margin: 0 0 20px; }
.contact-panel dl > div { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.contact-panel dl > div:first-child { padding-top: 0; }
.contact-panel dt { font-size: .9rem; color: #c9d0ce; }
.contact-panel dd { margin: 2px 0 0; font-family: var(--head); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.contact-panel a { color: var(--white); }
.panel-note { margin: 0; color: #c9d0ce; font-size: .98rem; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }

/* 404 page */
.link-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 24px; }
.link-groups ul { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.link-groups li { border-bottom: 1px solid var(--line); }
.link-groups a { display: block; padding: 12px 0; font-weight: 500; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-family: var(--head); font-weight: 600; font-size: 1.25rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.7rem; line-height: 1.2; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--ink-2); }

/* CTA band */
.cta-band { background: var(--hivis); padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { margin: 0; font-size: 1.12rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--ink-2); }
.cta-band .btn-ghost { color: var(--ink); border-color: var(--ink); }

/* Footer */
.site-footer { background: var(--ink); color: #c9d0ce; padding: 56px 0 24px; font-size: .98rem; }
.site-footer a { color: var(--white); text-decoration-color: rgba(242,194,48,.7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 32px; }
.footer-name { font-family: var(--head); font-weight: 700; font-size: 1.35rem; color: var(--white); }
.footer-head { color: var(--white); font-weight: 600; margin-bottom: .5em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 18px; }
.footer-base p { margin: 0; font-size: .9rem; }

.mobile-bar { display: none; }

/* Tablet */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { padding-bottom: 0; }
  .quote-card { margin: -80px 12px 0; }
  .hero { padding-bottom: 40px; }
  .hero-img { border-radius: var(--radius); }
  .steps, .steps-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .header-call { display: none; }
  .logo img { height: 44px; }
  .hero-logo { width: 170px; margin-bottom: 16px; }
  .menu-toggle { display: inline-flex; align-items: center; margin-left: auto; min-height: 44px; padding: 0 16px; font: inherit; font-weight: 600; background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--radius); color: var(--ink); cursor: pointer; }
  .js .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); }
  .js .site-nav.is-open { display: block; }
  .site-nav { margin-left: 0; width: 100%; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .site-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .sub-nav { display: flex; position: static; min-width: 0; padding: 0 0 0 16px; border: 0; box-shadow: none; }
  .site-nav .sub-nav a { padding: 10px 0; white-space: normal; }
  html:not(.js) .site-nav .sub-nav { display: none; }
  .header-inner { flex-wrap: wrap; position: relative; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; padding: 0 0 12px; }
  html:not(.js) .site-nav a { border-bottom: 0; padding: 4px 0; }

  .hero { padding-top: 36px; }
  .lead { font-size: 1.1rem; }
  .section { padding: 56px 0; }
  .service-grid, .situations { grid-template-columns: 1fr; }
  .service, .service:nth-child(odd), .service:nth-child(even) { padding: 22px 0; border-right: 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .quote-card { margin: -48px 0 0; padding: 22px 18px; }
  .steps, .steps-3 { grid-template-columns: 1fr; }
  .project-grid, .gallery { grid-template-columns: 1fr; gap: 12px; }
  .link-groups { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }

  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(15,22,25,.12); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
