/* HRM Tootmine — kujundus */

:root {
  --ink: #0d1521;
  --ink-2: #16212f;
  --ink-3: #223043;
  --text: #1b2430;
  --muted: #5d6977;
  --steel: #8a96a4;
  --line: #dde2e7;
  --line-dark: rgba(255, 255, 255, .12);
  --paper: #f3f4f1;
  --white: #ffffff;
  --blue: #1f5fa6;
  --blue-dark: #174a83;
  --blue-light: #50ade5;

  --font-head: "Archivo", "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 4px;
  --wrap: 1200px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(38px, 5.6vw, 72px); letter-spacing: -.025em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: 21px; letter-spacing: -.005em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* Väike tehniline silt, nt "01 — Teenused" */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.on-dark .eyebrow { color: var(--blue-light); }

.lead { font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 640px; }
.on-dark .lead { color: #b6c0cc; }

/* Nupud */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-outline { color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--blue-dark); }
.btn-white:hover { background: var(--ink); color: #fff; }

.text-link {
  font-family: var(--font-head); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; color: var(--blue);
}
.text-link svg { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Päis ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  position: relative; text-decoration: none; color: var(--text); white-space: nowrap;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--blue); }
.nav .btn { padding: 11px 20px; font-size: 15px; color: #fff; }
.nav .btn::after { display: none; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  min-height: min(calc(92vh - var(--header-h)), 820px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13,21,33,.97) 0%, rgba(13,21,33,.88) 38%, rgba(13,21,33,.35) 75%, rgba(13,21,33,.2) 100%),
    linear-gradient(0deg, rgba(13,21,33,.9) 0%, rgba(13,21,33,0) 45%);
}
/* Joonestusruudustik */
.grid-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 85%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 85%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-content { padding: 110px 0 70px; max-width: 880px; }
.hero h1 { color: #fff; margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--blue-light); }
.hero .lead { margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-facts {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line-dark);
  background: rgba(13,21,33,.55); backdrop-filter: blur(6px);
}
.hero-facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 24px 26px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.fact strong {
  display: block; font-family: var(--font-head); font-size: 26px; font-weight: 700; color: #fff; line-height: 1.2;
}
.fact span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }

/* ---------- Lehe päis (alamlehed) ---------- */
.page-hero {
  position: relative; overflow: hidden; background: var(--ink); color: #fff;
  padding: 96px 0 84px;
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px;
  border: 1px solid rgba(80,173,229,.25); border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(80,173,229,.04), 0 0 0 140px rgba(80,173,229,.03);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(38px, 5vw, 64px); margin-bottom: 18px; }
.page-hero .lead { margin: 0; }
.breadcrumb { font-family: var(--font-mono); font-size: 13px; color: var(--steel); margin-bottom: 26px; letter-spacing: .04em; }
.breadcrumb a { color: var(--steel); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Sektsioonid ---------- */
.section { padding: 120px 0; }
.section-sm { padding: 88px 0; }
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); color: #c9d1db; }
.bg-ink h2, .bg-ink h3 { color: #fff; }

.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: end;
  margin-bottom: 64px;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
.bg-ink .section-head p { color: #a9b4c1; }

/* Teenuste kaardid */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.services.cols-3 { grid-template-columns: repeat(3, 1fr); }
.service {
  position: relative; padding: 40px 32px 44px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: #fff; transition: background .25s;
}
.service:hover { background: var(--paper); }
.service .num { font-family: var(--font-mono); font-size: 13px; color: var(--steel); letter-spacing: .08em; }
.icon svg { width: 100%; height: 100%; display: block; }
.service .icon { width: 52px; height: 52px; color: var(--blue); margin: 0 0 28px; }
.service h3 { margin-bottom: 12px; }
.service p { color: var(--muted); font-size: 16px; margin: 0; }
.service::before {
  content: ""; position: absolute; left: -1px; top: -1px; width: 0; height: 3px; background: var(--blue); transition: width .35s;
}
.service:hover::before { width: calc(100% + 2px); }

/* Meie suund (väikeseeria) */
.focus { background: var(--paper); }
.focus-head { max-width: 820px; margin-bottom: 56px; }
.focus-head h2 { font-size: clamp(34px, 4.4vw, 56px); }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.focus-item {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 34px 38px; overflow: hidden;
}
.focus-item::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--blue); }
.focus-item .icon { width: 44px; height: 44px; color: var(--blue); margin-bottom: 24px; }
.focus-item .icon svg { width: 100%; height: 100%; }
.focus-item h3 { font-size: 26px; margin-bottom: 10px; }
.focus-item p { color: var(--muted); font-size: 16px; margin: 0; }

/* Reklaamsildid ja -tähed */
.nowrap { white-space: nowrap; font-style: inherit; }
.signs { background: #eaf2fb; }
.signs .sign-visual {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.sign-board {
  padding: 18px 44px; border-radius: 6px; background: linear-gradient(135deg, #2a74c4, var(--blue-dark));
  box-shadow: 10px 12px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25);
}
.sign-board span { font-family: var(--font-head); font-weight: 800; font-size: clamp(48px, 7vw, 88px); color: #fff; letter-spacing: .02em; }
.sign-letters { display: flex; gap: 18px; }
.sign-letters span {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(44px, 6vw, 72px); line-height: 1; color: #fff;
  text-shadow: 3px 3px 0 var(--blue-light), 6px 6px 0 rgba(80,173,229,.45), 10px 10px 18px rgba(0,0,0,.45);
}
.sign-photo { margin: 0; }
.sign-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 35%; border-radius: var(--radius); box-shadow: 0 24px 50px -24px rgba(13,21,33,.45); }
.sv-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.sv-links span { width: 100%; }
.sv-links a { font-weight: 600; }
.sign-photo figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.signs .btn { margin-top: 8px; }
.signs .materials-note { margin: 20px 0 24px; }

/* Tööde eelvaade */
.showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.showcase a {
  position: relative; display: block; background: #fff; border-radius: var(--radius);
  aspect-ratio: 1; padding: 22px; overflow: hidden;
}
.showcase a:first-child { grid-column: span 2; grid-row: span 2; padding: 48px; }
.showcase img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.showcase a:hover img { transform: scale(1.06); }
.showcase .tag {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel);
}

/* Kasutusvaldkonnad */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
.industry-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.industry-list li {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start;
  padding: 24px 0; border-bottom: 1px solid var(--line-dark);
}
.industry-list .ind-icon { color: var(--blue-light); }
.industry-list .ind-icon svg { width: 30px; height: 30px; display: block; }
.industry-list strong { display: block; font-family: var(--font-head); font-size: 22px; color: #fff; font-weight: 600; margin-bottom: 4px; }
.industry-list span { color: #a9b4c1; font-size: 16px; }

/* Materjalid */
.materials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.material {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; transition: border-color .2s, transform .2s;
}
.material:hover { border-color: var(--blue); transform: translateY(-2px); }
.material b { display: block; font-family: var(--font-mono); font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.material span { font-size: 14px; color: var(--muted); line-height: 1.45; display: block; }
.materials-note { margin-top: 28px; color: var(--muted); font-size: 16px; }

/* Protsess */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 28px 0 0; }
.step .dot svg { width: 24px; height: 24px; }
.step .dot {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--blue);
  font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--blue); background: #fff;
  margin-bottom: 28px; z-index: 1;
}
.step::before {
  content: ""; position: absolute; top: 28px; left: 56px; right: 0; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.step:last-child::before { display: none; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; margin: 0; }
.bg-paper .step .dot { background: var(--paper); }

/* Väärtused */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value {
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 40px 34px;
}
.value .icon { color: var(--blue-light); }
.value .icon svg { width: 34px; height: 34px; display: block; }
.value h3 { font-size: 26px; margin: 24px 0 14px; }
.value p { color: #a9b4c1; font-size: 16px; margin: 0; }

/* CTA riba */
.cta {
  position: relative; overflow: hidden; background: var(--blue); color: #fff; padding: 88px 0;
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.cta .wrap { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.82); font-size: 19px; margin: 0; }
.cta-contacts { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-line {
  display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none;
  font-family: var(--font-head); font-size: 24px; font-weight: 600;
}
.cta-line svg { width: 22px; height: 22px; opacity: .8; }
.cta-line:hover { text-decoration: underline; }
.cta .btn { margin-top: 12px; }

/* Asukoht ja tarne */
.delivery { display: grid; grid-template-columns: 6fr 5fr; gap: 80px; align-items: center; }
.delivery-list { list-style: none; padding: 0; margin: 32px 0 0; }
.delivery-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.delivery-list li:last-child { border-bottom: 1px solid var(--line); }
.delivery-list svg { width: 24px; height: 24px; color: var(--blue); margin-top: 2px; }
.delivery-list strong { display: block; font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--ink); }
.delivery-list span { color: var(--muted); font-size: 16px; }
.delivery-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: 74% center; }

/* ---------- Teenused leht ---------- */
.detail { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; }
.detail + .detail { margin-top: 120px; }
.detail.reverse .detail-media { order: 2; }
.detail-media { position: relative; }
.detail-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.detail-media.plain { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 48px; }
.detail-media.plain img { aspect-ratio: 1; object-fit: contain; }
.detail-media .caption {
  position: absolute; left: 0; bottom: -1px; background: var(--ink); color: #fff;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 10px 16px;
  border-radius: 0 var(--radius) 0 var(--radius);
}
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 0; }
.checklist li {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist svg { width: 22px; height: 22px; color: var(--blue); margin-top: 3px; }
.checklist strong { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink); display: block; }
.checklist span { color: var(--muted); font-size: 16px; }

.consult { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.consult-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 34px;
  display: grid; grid-template-columns: 52px 1fr; gap: 22px;
}
.consult-item .icon { width: 44px; height: 44px; color: var(--blue); }
.consult-item h3 { margin-bottom: 8px; }
.consult-item p { color: var(--muted); font-size: 16px; margin: 0; }

.product-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.product-tags span {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px; font-size: 15px; background: #fff;
}

/* ---------- Galerii ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filters button {
  font-family: var(--font-head); font-weight: 600; font-size: 15px; cursor: pointer;
  padding: 11px 20px; border-radius: 100px; border: 1.5px solid var(--line); background: #fff; color: var(--text);
  transition: all .2s;
}
.filters button:hover { border-color: var(--ink); }
.filters button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters button .count { font-family: var(--font-mono); font-size: 12px; opacity: .6; margin-left: 6px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  position: relative; display: block; aspect-ratio: 1; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; overflow: hidden; cursor: zoom-in;
  transition: border-color .2s, box-shadow .3s;
}
.gallery-item:hover { border-color: transparent; box-shadow: 0 18px 40px -18px rgba(13,21,33,.35); }
.gallery-item img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .tag {
  position: absolute; left: 14px; bottom: 12px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--steel);
}
.gallery-item.hidden { display: none; }
.gallery-item.photo { padding: 0; }
.gallery-item.photo img { object-fit: cover; }
.gallery-item.photo .tag { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(13,21,33,.94);
  display: none; align-items: center; justify-content: center; padding: 60px 90px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox img { max-height: calc(100% - 40px); width: auto; background: #fff; border-radius: var(--radius); padding: 24px; }
.lightbox figcaption { color: #b6c0cc; font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-top: 16px; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.08); border: 1px solid var(--line-dark); color: #fff;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox button:hover { background: rgba(255,255,255,.18); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Ettevõttest ---------- */
.about-intro { display: grid; grid-template-columns: 6fr 5fr; gap: 80px; align-items: center; }
.about-intro .big { font-family: var(--font-head); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; color: var(--ink); font-weight: 500; letter-spacing: -.01em; }
.about-intro img { border-radius: var(--radius); }

.person-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 48px;
}
.monogram {
  aspect-ratio: 1; border-radius: var(--radius); background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
  font-family: var(--font-head); font-size: 64px; font-weight: 700; letter-spacing: -.02em;
}
.monogram::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.monogram span { position: relative; }
.person-card h3 { font-size: 30px; margin-bottom: 4px; }
.person-card .role { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 22px; }
.person-card p { color: var(--muted); }
.person-contacts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.person-contacts a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; color: var(--ink); }
.person-contacts svg { width: 18px; height: 18px; color: var(--blue); }

.portrait { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 20%; border-radius: var(--radius); }

/* ---------- Kontakt ---------- */
.contact-person { display: flex; align-items: center; gap: 20px; }
.contact-person img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid rgba(80,173,229,.5); flex-shrink: 0; }
.contact-person h2 { margin-bottom: 4px; }
.contact-person p { margin: 0; }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: stretch; }
.contact-card { background: var(--ink); color: #c9d1db; border-radius: var(--radius); padding: 48px 44px; }
.contact-card h2 { color: #fff; font-size: 30px; }
.contact-rows { margin-top: 28px; }
.contact-row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line-dark); }
.contact-row svg { width: 22px; height: 22px; color: var(--blue-light); margin-top: 3px; }
.contact-row small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin-bottom: 2px; }
.contact-row a, .contact-row strong { color: #fff; font-size: 19px; font-weight: 600; text-decoration: none; font-family: var(--font-head); }
.contact-row a:hover { color: var(--blue-light); }
.contact-row span { color: #c9d1db; }

.map { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 480px; background: var(--paper); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); transition: filter .4s; }
.map:hover iframe { filter: none; }
.map .pin-label {
  position: absolute; left: 20px; bottom: 20px; background: #fff; border-radius: var(--radius);
  padding: 14px 18px; box-shadow: 0 10px 30px -10px rgba(13,21,33,.35); font-size: 15px;
}
.map .pin-label strong { display: block; font-family: var(--font-head); color: var(--ink); }

.building { padding: 0 0 88px; }
.building figure { margin: 0; }
.building img { width: 100%; aspect-ratio: 21/8; object-fit: cover; object-position: center; border-radius: var(--radius); }
.building figcaption { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 15px; }
.building figcaption svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
@media (max-width: 860px) { .building { padding-bottom: 64px; } .building img { aspect-ratio: 16/9; object-position: 70% center; } }

.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; }
.info-card .eyebrow { margin-bottom: 16px; }
.info-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 16px; }
.info-card dt { color: var(--muted); }
.info-card dd { margin: 0; color: var(--ink); font-weight: 500; }
.info-card address { font-style: normal; font-size: 17px; color: var(--ink); line-height: 1.6; }
.info-card p.note { font-size: 15px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Jalus ---------- */
.site-footer { background: var(--ink); color: #97a3b1; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding: 80px 0 64px; }
.footer-top img { height: 48px; width: auto; margin-bottom: 22px; }
.footer-top p { margin: 0; max-width: 300px; }
.footer-top h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-top a { color: #c9d1db; text-decoration: none; }
.footer-top a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 24px 0; font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Ilmumise animatsioon ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Kohanduvus ---------- */
@media (max-width: 1180px) and (min-width: 861px) {
  .site-header .wrap { gap: 16px; }
  .nav { gap: 18px; }
  .nav a { font-size: 15px; }
  .nav .btn { padding: 10px 14px; }
  .logo img { height: 38px; }
}

@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .services.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .materials { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .split, .detail, .about-intro, .delivery { gap: 56px; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .section { padding: 84px 0; }
  .section-sm { padding: 64px 0; }

  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 0; }
  .logo img { height: 38px; }

  .hero { min-height: auto; }
  .hero-content { padding: 80px 0 56px; }
  .hero-media::after { background: linear-gradient(0deg, rgba(13,21,33,.96) 20%, rgba(13,21,33,.7) 100%); }
  .hero-facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact { padding: 20px 16px 20px 0; }
  .fact + .fact { padding-left: 16px; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .fact strong { font-size: 21px; }

  .page-hero { padding: 64px 0 56px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 44px; }
  .split, .detail, .about-intro, .delivery, .cta .wrap, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail.reverse .detail-media { order: 0; }
  .detail + .detail { margin-top: 80px; }
  .showcase { grid-template-columns: repeat(2, 1fr); }
  .showcase a:first-child { padding: 28px; }
  .materials { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .step:nth-child(2)::before { display: none; }
  .values, .consult, .info-cards, .focus-grid { grid-template-columns: 1fr; }
  .person-card { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .monogram, .portrait { max-width: 220px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-item { padding: 16px; }
  .map { min-height: 360px; }
  .contact-card { padding: 36px 26px; }
  .lightbox { padding: 70px 12px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 16px; transform: none; }
  .lightbox .lb-prev { left: calc(50% - 64px); }
  .lightbox .lb-next { right: calc(50% - 64px); }
}

@media (max-width: 520px) {
  .services, .services.cols-3 { grid-template-columns: 1fr; }
  .materials { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::before { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; padding: 60px 0 44px; }
  .cta-line { font-size: 20px; }
  .consult-item { grid-template-columns: 1fr; gap: 14px; padding: 28px 24px; }
}

/* Keelevahetaja */
.lang-switch { display: flex; align-items: center; gap: 2px; font-family: var(--font-mono); font-size: 13px; }
.nav .lang-switch a { padding: 6px 7px; color: var(--steel); font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.nav .lang-switch a::after { display: none; }
.nav .lang-switch a:hover { color: var(--ink); }
.nav .lang-switch a.active { color: var(--ink); }
.lang-switch a + a { border-left: 1px solid var(--line); }
@media (max-width: 860px) {
  .lang-switch { padding: 14px 0; border-bottom: 1px solid var(--line); gap: 8px; }
  .nav .lang-switch a { border-bottom: 0; font-size: 15px; padding: 4px 12px 4px 0; }
  .lang-switch a + a { padding-left: 12px; }
}
