:root {
  --blue: #3088c8;
  --ink: #16181d;
  --muted: #5c6570;
  --line: #e6e8eb;
  --paper: #f6f7f8;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Urbanist, sans-serif;
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: 40px; line-height: 1.15; margin: 0 0 28px; }
h3 { font-size: 22px; margin: 16px 0 8px; }
p { color: var(--muted); line-height: 1.5; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); }
.section { padding: 88px 0; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.logo {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.14em;
}
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--ink); font-size: 15px; }
.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: 600 14px Urbanist, sans-serif;
  cursor: pointer;
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }

.hero { position: relative; min-height: 640px; color: #fff; display: grid; }
.hero img { width: 100%; height: 640px; object-fit: cover; grid-area: 1 / 1; }
.hero::after {
  content: "";
  grid-area: 1 / 1;
  background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.15) 70%);
}
.hero-copy {
  grid-area: 1 / 1;
  z-index: 1;
  align-self: end;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 72px;
}
.hero h1 { max-width: 760px; margin: 0 0 24px; font-size: 58px; line-height: 1.05; color: #fff; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.cards { display: grid; gap: 22px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card img { width: 100%; height: 240px; object-fit: cover; border-radius: 8px; }
.card p { margin: 0 0 12px; font-size: 15px; }
.card a { font-weight: 600; }

.split { padding: 40px 0 10px; }
.split-grid, .stats-grid, .footer-grid, .logo-row {
  display: grid;
  gap: 28px;
  align-items: center;
}
.split-grid { grid-template-columns: 1.1fr .9fr; }
.split-grid img { width: 100%; height: 420px; object-fit: cover; border-radius: 8px; }
.band {
  margin-top: 48px;
  padding: 72px 0;
  background: var(--ink);
  color: #fff;
}
.band h2, .band p { color: #fff; }
.wood { background: var(--paper); }

.stats { padding: 28px 0 64px; }
.stats-grid { grid-template-columns: repeat(4, 1fr); align-items: start; }
.stats h3 { margin-top: 0; color: var(--blue); font-size: 36px; }

.partners h2, #reference h2, .contact h2 { text-align: center; }
.logo-row { grid-template-columns: repeat(5, 1fr); }
.logo-row img { width: 100%; height: 72px; object-fit: contain; }

form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, textarea {
  width: 100%;
  border: 1px solid #d5d8dd;
  border-radius: 8px;
  padding: 14px 12px;
  font: 400 15px "Open Sans", sans-serif;
}
.check { grid-template-columns: auto 1fr; align-items: start; font-weight: 400; color: var(--muted); }
.check input { width: auto; margin-top: 4px; }
.form-note { margin: 0; color: var(--blue); }

.footer { background: var(--paper); padding: 48px 0; }
.footer-grid { grid-template-columns: 1.4fr .8fr .8fr; align-items: start; }
.footer a, .footer p { display: block; color: var(--muted); margin: 6px 0; }
.footer strong { letter-spacing: 0.12em; }

.page-hero { position: relative; min-height: 420px; color: #fff; display: grid; }
.page-hero img { width: 100%; height: 420px; object-fit: cover; grid-area: 1 / 1; }
.page-hero::after { content: ""; grid-area: 1 / 1; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.12)); }
.page-hero div { grid-area: 1 / 1; z-index: 1; align-self: end; width: min(var(--max), calc(100% - 40px)); margin: 0 auto 48px; }
.page-hero h1 { margin: 0; max-width: 760px; font-size: 48px; color: #fff; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filters a { color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.lead { font-size: 18px; max-width: 760px; }
.cards-2 { grid-template-columns: 1fr 1fr; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.step { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; }
.step img { width: 160px; height: 128px; object-fit: cover; border-radius: 8px; }
.step span { color: var(--blue); font-size: 28px; font-weight: 700; }
.mosaic, .gallery { display: grid; gap: 16px; }
.mosaic { grid-template-columns: repeat(4, 1fr); }
.mosaic img, .gallery img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; }
.gallery { grid-template-columns: 1.2fr .8fr; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.people article { border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.people h3 { margin-top: 0; }
.address p { margin: 6px 0; }
.thanks { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; min-height: 70vh; }
.thanks img { width: 100%; height: 360px; object-fit: cover; border-radius: 8px; }

@media (max-width: 900px) {
  .nav nav, .nav .btn-dark { display: none; }
  .nav.open nav, .nav.open .btn-dark { display: flex; }
  .nav.open {
    height: auto;
    flex-wrap: wrap;
    padding: 16px;
  }
  .nav.open nav { flex-direction: column; width: 100%; margin: 0; }
  .nav-toggle { display: inline-flex; margin-left: auto; background: none; border: 0; font: 600 15px Urbanist, sans-serif; }
  .hero, .hero img { min-height: 520px; height: 520px; }
  .hero h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .cards-4, .cards-3, .cards-2, .stats-grid, .split-grid, .logo-row, .footer-grid, .steps, .step, .mosaic, .gallery, .people, .thanks { grid-template-columns: 1fr; }
  .page-hero, .page-hero img, .page-hero h1 { min-height: 320px; height: auto; font-size: 34px; }
  .split-grid img { height: 260px; }
}
