:root {
  --ink: #111311;
  --ink-2: #181a17;
  --ink-3: #20231f;
  --paper: #f3f0e9;
  --paper-2: #e8e2d6;
  --text: #f6f3ec;
  --muted: #b9b2a7;
  --muted-dark: #6e6a63;
  --bronze: #b69057;
  --bronze-hi: #caa66f;
  --line: rgba(246, 243, 236, .14);
  --line-dark: rgba(17, 19, 17, .12);
  --success: #cbd8be;
  --danger: #e4b9ad;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 26px 80px rgba(0,0,0,.28);
  --max: 1380px;
  --pad: clamp(18px, 3vw, 44px);
  --section: clamp(84px, 10vw, 150px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  color: var(--text);
  background: var(--ink);
  font-family: "Montserrat", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 9999;
  background: var(--paper); color: var(--ink); padding: 12px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.shell { width: min(calc(100% - (var(--pad) * 2)), var(--max)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 20px; color: var(--bronze-hi); font-size: 12px; font-weight: 700;
  letter-spacing: .19em; text-transform: uppercase;
}
.section-title {
  max-width: 960px; margin: 0; font-family: "Montserrat", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 600; font-size: clamp(38px, 5.1vw, 72px); line-height: 1.02; letter-spacing: -.04em;
  text-wrap: balance;
}
.section-lead { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.65; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000; height: 80px;
  display: flex; align-items: center; border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, height .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled { height: 68px; background: rgba(17,19,17,.88); border-color: var(--line); backdrop-filter: blur(16px); }
.header-inner { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.brand { display: inline-flex; flex-direction: column; gap: 3px; min-width: 158px; }
.brand-main { font-size: 17px; font-weight: 800; letter-spacing: .16em; }
.brand-sub { font-size: 10px; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; }
.nav { justify-self: center; display: flex; gap: clamp(18px, 2.5vw, 38px); font-size: 14px; }
.nav a { color: #e7e2d8; transition: color .2s ease; }
.nav a:hover, .nav a:focus-visible { color: var(--bronze-hi); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.mobile-nav { display: none; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: transparent; position: relative; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; position: absolute; left: 12px; right: 12px; height: 1px; background: currentColor; transition: .2s ease; }
.menu-toggle span { top: 22px; }
.menu-toggle::before { top: 16px; }
.menu-toggle::after { top: 28px; }
.menu-open .menu-toggle span { opacity: 0; }
.menu-open .menu-toggle::before { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle::after { top: 22px; transform: rotate(-45deg); }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 14px; letter-spacing: .01em;
  cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--bronze); color: #15130f; }
.button-primary:hover { background: var(--bronze-hi); }
.button-ghost { border-color: rgba(255,255,255,.28); background: rgba(17,19,17,.18); }
.button-ghost:hover { border-color: var(--bronze); color: var(--bronze-hi); }
.button-small { min-height: 44px; padding-inline: 18px; font-size: 13px; }

.hero { min-height: 94svh; position: relative; overflow: clip; display: grid; align-items: end; background: #111311; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.76) contrast(1.04) brightness(.72); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(17,19,17,.96) 0%, rgba(17,19,17,.74) 38%, rgba(17,19,17,.20) 70%, rgba(17,19,17,.55) 100%), linear-gradient(0deg, rgba(17,19,17,.86) 0%, transparent 40%);
}
.hero-content { position: relative; z-index: 2; padding-top: 132px; padding-bottom: clamp(48px, 8vw, 90px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 760px) 1fr; gap: 72px; align-items: end; }
.hero h1 {
  margin: 0; max-width: 820px; font-family: "Montserrat", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(48px, 5.8vw, 86px); line-height: .98; font-weight: 600; letter-spacing: -.045em;
  text-wrap: balance;
}
.hero-city { white-space: nowrap; display: inline-block; }
.hero-copy { max-width: 660px; margin: 24px 0 0; color: #d5d0c6; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.58; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-points {
  display: grid; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; max-width: 620px;
}
.hero-points li { color: #bdb5aa; font-size: 13px; line-height: 1.45; position: relative; padding-left: 16px; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: var(--bronze-hi); }
.hero-side { justify-self: end; width: min(100%, 340px); border-top: 1px solid rgba(255,255,255,.35); padding-top: 18px; color: #d7d1c6; }
.hero-side strong { display: block; font-family: "Montserrat", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-weight: 600; font-size: 23px; margin-bottom: 10px; }
.hero-side p { margin: 0; color: #aaa49b; line-height: 1.55; font-size: 14px; }

.direction-section, .proof-system, .estimate-section { padding-block: var(--section); }
.direction-section { background: var(--paper); color: var(--ink); }
.direction-section .eyebrow, .proof-system .eyebrow, .estimate-section .eyebrow { color: #8e6939; }
.direction-section .section-lead, .proof-system .section-lead { color: var(--muted-dark); }
.direction-grid { margin-top: 56px; display: grid; grid-template-columns: 1.22fr .78fr; grid-template-rows: repeat(2, minmax(290px, 1fr)); gap: 16px; }
.direction-card { position: relative; overflow: hidden; min-height: 310px; border-radius: var(--radius); background: #2a2a28; isolation: isolate; box-shadow: 0 12px 38px rgba(22,20,17,.09); }
.direction-card:first-child { grid-row: span 2; min-height: 636px; }
.direction-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); filter: saturate(.92) contrast(1.02) brightness(.95); }
.direction-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,11,10,.86), rgba(10,11,10,.12) 65%); z-index: 1; }
.direction-card:hover img { transform: scale(1.035); }
.direction-copy { position: absolute; inset: auto 28px 28px; z-index: 2; color: var(--text); }
.direction-kicker { color: #d4c6ad; font-size: 11px; text-transform: uppercase; letter-spacing: .15em; }
.direction-copy h3 { margin: 8px 0 10px; font-family: "Montserrat", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-weight: 600; font-size: clamp(25px, 2.7vw, 40px); line-height: 1.02; letter-spacing: -.03em; }
.direction-copy p { max-width: 520px; margin: 0; color: #d1cbc1; font-size: 14px; line-height: 1.55; }
.direction-link { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; }
.direction-link::after { content: "↗"; color: var(--bronze-hi); }

.archive-section { padding-block: var(--section); background: var(--ink-2); }
.archive-head { display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; align-items: end; }
.archive-status { justify-self: end; max-width: 430px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); font-size: 14px; line-height: 1.6; }
.archive-status strong { color: var(--text); }
.archive-grid { margin-top: 56px; display: grid; grid-template-columns: 1.45fr .55fr; gap: 16px; }
.archive-feature, .archive-stack figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); }
.archive-feature { min-height: 620px; }
.archive-feature img, .archive-stack img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.archive-feature figcaption { position: absolute; inset: auto 0 0; padding: 34px; background: linear-gradient(0deg, rgba(10,11,10,.92), transparent); }
.archive-feature h3 { margin: 8px 0 0; max-width: 700px; font-family: "Montserrat", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: clamp(28px, 3.6vw, 46px); font-weight: 600; line-height: 1.04; letter-spacing: -.03em; }
.archive-stack { display: grid; gap: 16px; grid-template-rows: 1fr 1fr; }
.archive-stack figure { min-height: 300px; }
.archive-tag { display: inline-flex; background: rgba(17,19,17,.74); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); padding: 8px 11px; border-radius: 999px; font-size: 11px; color: #ddd4c7; letter-spacing: .08em; text-transform: uppercase; }
.archive-stack .archive-tag { position: absolute; left: 18px; bottom: 18px; }

.evidence-band { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink); }
.evidence-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.evidence-item { background: var(--ink); padding: 20px 28px; min-height: 124px; }
.evidence-item span { color: var(--bronze-hi); font-size: 12px; letter-spacing: .16em; }
.evidence-item strong { display: block; margin-top: 12px; font-family: "Montserrat", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-weight: 600; font-size: 20px; line-height: 1.2; }

.proof-system { background: var(--paper); color: var(--ink); }
.proof-system .section-lead { color: var(--muted-dark); }
.proof-layout { margin-top: 52px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.proof-photo { position: sticky; top: 96px; min-height: 600px; border-radius: var(--radius); overflow: hidden; }
.proof-photo img { width: 100%; height: 100%; object-fit: cover; }
.proof-list { border-top: 1px solid var(--line-dark); }
.proof-row { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line-dark); }
.proof-number { color: #9e7848; font-size: 13px; letter-spacing: .14em; }
.proof-row h3 { margin: 0 0 10px; font-family: "Montserrat", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-weight: 600; font-size: 28px; letter-spacing: -.025em; }
.proof-row p { margin: 0; color: var(--muted-dark); line-height: 1.65; max-width: 700px; }

.cost-section { padding-block: var(--section); background: linear-gradient(145deg, #171915, #0f110f); }
.cost-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.cost-factors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cost-factor { min-height: 138px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.02); }
.cost-factor span { color: var(--bronze-hi); font-size: 12px; }
.cost-factor strong { display: block; margin-top: 24px; font-size: 16px; line-height: 1.35; }

.ecosystem-section { padding-block: clamp(72px, 8vw, 120px); background: #0c0e0c; border-top: 1px solid var(--line); }
.ecosystem-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.ecosystem-mark { font-size: clamp(42px, 6vw, 88px); font-weight: 800; letter-spacing: .11em; line-height: .9; }
.ecosystem-mark small { display: block; margin-top: 16px; font-size: 12px; font-weight: 600; color: var(--bronze-hi); letter-spacing: .19em; text-transform: uppercase; }
.ecosystem-copy { color: var(--muted); line-height: 1.7; font-size: 17px; }
.ecosystem-copy a { display: inline-block; margin-top: 18px; color: var(--paper); border-bottom: 1px solid var(--bronze); padding-bottom: 5px; }

.estimate-section { background: var(--paper); color: var(--ink); }
.estimate-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.estimate-copy { position: sticky; top: 100px; }
.estimate-copy p { color: var(--muted-dark); font-size: 18px; line-height: 1.65; }
.lead-form { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line-dark); border-radius: var(--radius); background: #faf8f3; box-shadow: 0 24px 70px rgba(41,35,27,.08); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field-label { font-size: 12px; font-weight: 700; color: #5b5853; letter-spacing: .04em; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #d4cec2; border-radius: 12px; background: #fff; color: #171915;
  padding: 15px 16px; outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 124px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #a47e4f; box-shadow: 0 0 0 3px rgba(182,144,87,.13); }
.file-drop { border: 1px dashed #c7bdaa; border-radius: 14px; padding: 18px; background: #f3efe7; }
.file-drop input[type="file"] {
  position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none;
}
.file-ui {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 74px; margin-top: 4px;
  padding: 14px 16px; border: 1px solid #d4cec2; border-radius: 12px; background: #fff; cursor: pointer;
}
.file-ui-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px;
  border-radius: 999px; background: #171915; color: #f6f3ec; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.file-ui-text { color: #756f66; font-size: 14px; line-height: 1.5; }
.file-hint { margin: 10px 0 0; color: #777067; font-size: 12px; }
.file-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; }
.file-list li {
  display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px;
  background: #e8dfd1; color: #3e392f; font-size: 12px; line-height: 1.3;
}
.consent { display: flex; align-items: flex-start; gap: 10px; color: #69645d; font-size: 12px; line-height: 1.5; margin-top: 18px; }
.consent input { margin-top: 3px; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.form-footer { margin-top: 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { min-height: 22px; font-size: 13px; color: #625d56; }
.form-status.is-success { color: #44613d; }
.form-status.is-error { color: #8a4438; }

.site-footer { padding: 64px 0 28px; border-top: 1px solid var(--line); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 40px; }
.footer-brand { font-size: 22px; font-weight: 800; letter-spacing: .14em; }
.footer-brand small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; }
.footer-col h3 { margin: 0 0 16px; font-size: 12px; color: var(--bronze-hi); text-transform: uppercase; letter-spacing: .15em; }
.footer-col a, .footer-col span { display: block; margin: 10px 0; color: #cbc5ba; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); color: #8f8a82; font-size: 12px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .brand { grid-column: 1; }
  .header-actions { grid-column: 2; justify-self: end; }
  .header-actions .button { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav {
    display: block;
    position: fixed; inset: 68px 0 0; z-index: 999; background: rgba(17,19,17,.98); padding: 24px var(--pad) 42px;
    opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .2s ease;
  }
  .menu-open .mobile-nav { opacity: 1; pointer-events: auto; transform: none; }
  .mobile-nav a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: "Montserrat", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
  .mobile-nav .button { margin-top: 24px; width: 100%; font-family: inherit; font-size: 14px; }
  .hero-grid, .archive-head, .cost-layout, .ecosystem-card, .estimate-grid, .proof-layout { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .archive-status { justify-self: stretch; max-width: none; }
  .proof-photo, .estimate-copy { position: relative; top: auto; }
  .proof-photo { min-height: 420px; }
}

@media (max-width: 760px) {
  :root { --section: 82px; --radius: 18px; }
  .site-header { height: 64px; }
  .site-header.is-scrolled { height: 60px; }
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .header-inner { gap: 14px; }
  .brand { min-width: 0; }
  .brand-main { font-size: 14px; }
  .brand-sub { font-size: 9px; }
  .menu-toggle { width: 40px; height: 40px; }
  .menu-toggle span { top: 19px; }
  .menu-toggle::before { top: 13px; }
  .menu-toggle::after { top: 25px; }
  .mobile-nav { inset: 60px 0 0; }

  .hero { min-height: 760px; }
  .hero-media img { object-position: 44% center; }
  .hero-media::after { background: linear-gradient(180deg, rgba(17,19,17,.56), rgba(17,19,17,.48) 28%, rgba(17,19,17,.92) 68%, rgba(17,19,17,1)); }
  .hero-content { padding-top: 106px; padding-bottom: 34px; }
  .hero h1 { max-width: none; font-size: clamp(36px, 9.4vw, 42px); line-height: 1.02; letter-spacing: -.04em; }
  .hero-copy { margin-top: 18px; font-size: 16px; line-height: 1.56; max-width: 34ch; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .hero-actions .button { width: 100%; }
  .hero-points { margin-top: 18px; gap: 7px; }
  .hero-points li { font-size: 12px; }

  .section-title { font-size: clamp(32px, 9.8vw, 48px); line-height: 1.04; }
  .section-lead { margin-top: 18px; font-size: 16px; line-height: 1.6; }

  .direction-grid { grid-template-columns: 1fr; grid-template-rows: none; margin-top: 34px; }
  .direction-card, .direction-card:first-child { grid-row: auto; min-height: 400px; }
  .direction-card:not(:first-child) { min-height: 340px; }
  .direction-copy { inset: auto 20px 20px; }
  .direction-copy h3 { font-size: 25px; }

  .archive-grid { grid-template-columns: 1fr; }
  .archive-feature { min-height: 440px; }
  .archive-feature figcaption { padding: 24px; }
  .archive-stack { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .archive-stack figure { min-height: 210px; }

  .evidence-items { grid-template-columns: 1fr; }
  .evidence-item { min-height: auto; padding: 18px 20px; }
  .evidence-item strong { font-size: 20px; }

  .proof-layout { margin-top: 32px; gap: 24px; }
  .proof-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .proof-row { grid-template-columns: 40px 1fr; gap: 12px; padding: 24px 0; }
  .proof-row h3 { font-size: 22px; }
  .cost-factors { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cost-factor { min-height: 96px; padding: 16px; }
  .cost-factor strong { margin-top: 12px; font-size: 14px; }
  .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .estimate-copy p { font-size: 16px; }
  .lead-form { padding: 18px; }
  .file-ui { flex-direction: column; align-items: flex-start; min-height: 0; }
  .file-ui-button { min-height: 40px; }
  .form-footer { align-items: stretch; }
  .form-footer .button { width: 100%; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .archive-stack { grid-template-columns: 1fr; }
  .proof-photo { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* V1.1.6 — unified Gromadis brand alignment across dark surfaces */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: start;
  width: max-content;
  min-width: 0;
  gap: 4px;
}
.brand-logo {
  display: block;
  width: 118px;
  max-width: 118px;
  height: auto;
  filter: none;
}
.brand-sub {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 8px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: .13em;
  color: #d2cbc0;
  text-transform: uppercase;
}
.ecosystem-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
}
.ecosystem-logo {
  display: block;
  width: min(300px, 72vw);
  height: auto;
  filter: none;
}
.ecosystem-mark small {
  display: block;
  margin: 8px 0 0;
  padding: 0;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .16em;
  color: var(--bronze-hi);
  text-transform: uppercase;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  font-size: inherit;
  letter-spacing: normal;
}
.footer-logo {
  display: block;
  width: 150px;
  height: auto;
  filter: none;
}
.footer-brand small {
  display: block;
  margin: 8px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .14em;
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .brand {
    grid-column: 1;
    justify-self: start;
  }
  .header-actions {
    grid-column: 3;
    justify-self: end;
  }
  .mobile-nav {
    background: #111311;
    backdrop-filter: none;
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-header.is-scrolled {
    height: 76px;
  }
  .header-inner {
    gap: 12px;
  }
  .brand-logo {
    width: 106px;
    max-width: 106px;
  }
  .brand-sub {
    font-size: 7.5px;
    letter-spacing: .11em;
  }
  .mobile-nav {
    inset: 76px 0 0;
    padding-top: 22px;
  }
  .ecosystem-logo {
    width: 210px;
  }
  .footer-logo {
    width: 140px;
  }
}

@media (max-width: 370px) {
  .brand-logo {
    width: 98px;
    max-width: 98px;
  }
  .brand-sub {
    font-size: 7px;
    letter-spacing: .1em;
  }
}

/* V1.1.7 — mobile header/menu closure */
@media (max-width: 760px) {
  .site-header,
  .site-header.is-scrolled {
    height: 66px;
  }

  .brand-logo {
    width: 92px;
    max-width: 92px;
  }

  .brand-sub {
    margin-top: 1px;
    font-size: 7px;
    letter-spacing: .1em;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .menu-toggle span { top: 20px; }
  .menu-toggle::before { top: 14px; }
  .menu-toggle::after { top: 26px; }
  .menu-open .menu-toggle::before,
  .menu-open .menu-toggle::after { top: 20px; }

  .mobile-nav {
    inset: 66px 0 0;
    padding-top: 18px;
  }

  .mobile-nav .button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-inline: 22px;
  }
}

@media (max-width: 370px) {
  .brand-logo {
    width: 88px;
    max-width: 88px;
  }
}

/* V1.1.8 — final mobile header-height and hero vertical-position closure */
@media (max-width: 760px) {
  .site-header,
  .site-header.is-scrolled {
    height: 58px;
  }

  .header-inner {
    gap: 10px;
  }

  .brand-logo {
    width: 80px;
    max-width: 80px;
  }

  .brand-sub {
    margin-top: 0;
    font-size: 6.5px;
    letter-spacing: .09em;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .menu-toggle span { top: 18px; }
  .menu-toggle::before { top: 12px; }
  .menu-toggle::after { top: 24px; }
  .menu-open .menu-toggle::before,
  .menu-open .menu-toggle::after { top: 18px; }

  .mobile-nav {
    inset: 58px 0 0;
  }

  .hero {
    min-height: 700px;
  }

  .hero-content {
    padding-top: 78px;
    padding-bottom: 28px;
  }
}

@media (max-width: 370px) {
  .brand-logo {
    width: 76px;
    max-width: 76px;
  }
}

/* V1.1.9 — smart mobile header: hide on downward scroll, reveal on upward scroll */
@media (max-width: 760px) {
  .site-header {
    transition: background .3s ease, border-color .3s ease, height .3s ease, backdrop-filter .3s ease, transform .24s ease;
    will-change: transform;
  }

  .site-header.is-hidden {
    transform: translateY(-105%);
  }

  .menu-open .site-header,
  .site-header:focus-within {
    transform: translateY(0);
  }
}

/* V1.2.0 — first commercial service-page system */
.service-page {
  background: var(--ink);
}

.service-hero {
  position: relative;
  min-height: 760px;
  overflow: clip;
  display: flex;
  align-items: end;
  background: #101210;
}

.service-hero-media {
  position: absolute;
  inset: 0;
}

.service-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.78) contrast(1.04) brightness(.67);
}

.service-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17,19,17,.96) 0%, rgba(17,19,17,.74) 48%, rgba(17,19,17,.34) 100%),
    linear-gradient(0deg, rgba(17,19,17,.92) 0%, rgba(17,19,17,.10) 56%);
}

.service-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 132px;
  padding-bottom: 72px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 52px;
  color: rgba(246,243,236,.58);
  font-size: 12px;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--bronze-hi);
}

.service-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(260px, 380px);
  gap: 72px;
  align-items: end;
  justify-content: space-between;
}

.service-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: .97;
  letter-spacing: -.052em;
  font-weight: 600;
  text-wrap: balance;
}

.service-hero-copy {
  max-width: 720px;
  margin: 28px 0 0;
  color: #d3cdc2;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.62;
}

.service-hero-note {
  border-top: 1px solid rgba(255,255,255,.34);
  padding-top: 18px;
}

.service-hero-note span {
  display: block;
  margin-bottom: 12px;
  color: var(--bronze-hi);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.service-hero-note strong {
  display: block;
  font-size: 21px;
  line-height: 1.28;
}

.service-hero-note p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.service-anchor-band {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #101210;
}

.service-anchor-links {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 12px;
}

.service-anchor-links::-webkit-scrollbar { display: none; }

.service-anchor-links a {
  flex: 0 0 auto;
  padding: 11px 16px;
  border-radius: 999px;
  color: #c9c2b7;
  font-size: 12px;
  border: 1px solid transparent;
}

.service-anchor-links a:hover,
.service-anchor-links a:focus-visible {
  border-color: var(--line);
  color: var(--paper);
}

.service-scope,
.service-materials,
.brief-process,
.service-faq {
  padding-block: var(--section);
}

.service-scope,
.brief-process {
  background: var(--paper);
  color: var(--ink);
}

.service-scope .eyebrow,
.brief-process .eyebrow {
  color: #8e6939;
}

.service-scope .section-lead,
.brief-process .section-lead {
  color: var(--muted-dark);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 52px;
}

.scope-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #f8f5ef;
}

.scope-card > span,
.format-number,
.brief-step > span,
.service-cost-item > span {
  color: #956f40;
  font-size: 12px;
  letter-spacing: .14em;
}

.scope-card h3,
.format-card h3,
.brief-step h3 {
  margin: 36px 0 12px;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.16;
}

.scope-card p,
.format-card p,
.brief-step p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 14px;
  line-height: 1.68;
}

.service-formats {
  padding-block: var(--section);
  background: linear-gradient(145deg, #171915, #0f110f);
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 54px;
}

.format-card {
  min-height: 370px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
}

.format-card h3 {
  color: var(--paper);
  margin-top: 46px;
}

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

.format-card a {
  margin-top: auto;
  padding-top: 28px;
  font-size: 13px;
  font-weight: 700;
  color: var(--paper);
}

.format-card a:hover,
.format-card a:focus-visible {
  color: var(--bronze-hi);
}

.service-materials {
  background: var(--ink-2);
}

.service-materials-head {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: end;
}

.service-materials-head .section-lead {
  justify-self: end;
  margin-top: 0;
}

.service-gallery {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  grid-template-rows: repeat(2, minmax(270px, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.service-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 270px;
  background: var(--ink-3);
}

.service-gallery-main {
  grid-row: span 2;
}

.service-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88);
}

.service-gallery figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  background: linear-gradient(0deg, rgba(12,14,12,.92), transparent);
}

.service-gallery figcaption span {
  display: block;
  margin-bottom: 8px;
  color: #d2c2a8;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.service-gallery figcaption strong {
  font-size: 20px;
}

.service-cost {
  padding-block: var(--section);
  background: #0d0f0d;
}

.service-cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.service-cost-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-cost-item {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.025);
}

.service-cost-item > span {
  color: var(--bronze-hi);
}

.service-cost-item strong {
  display: block;
  margin-top: 36px;
  font-size: 16px;
  line-height: 1.3;
}

.brief-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 54px;
  background: var(--line-dark);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.brief-step {
  min-height: 300px;
  padding: 28px;
  background: var(--paper);
}

.brief-step h3 {
  margin-top: 72px;
}

.service-faq {
  background: var(--ink-2);
}

.service-faq-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 76px;
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 26px 44px 26px 0;
  color: var(--paper);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.42;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 24px;
  color: var(--bronze-hi);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 760px;
  margin: -4px 0 26px;
  color: var(--muted);
  line-height: 1.72;
}

@media (max-width: 1080px) {
  .service-hero-grid,
  .service-materials-head,
  .service-cost-grid,
  .service-faq-grid {
    grid-template-columns: 1fr;
  }

  .service-hero-note {
    max-width: 520px;
  }

  .service-materials-head .section-lead {
    justify-self: start;
  }

  .scope-grid,
  .format-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brief-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .service-hero {
    min-height: 680px;
  }

  .service-hero-media img {
    object-position: 44% center;
  }

  .service-hero-media::after {
    background: linear-gradient(180deg, rgba(17,19,17,.42), rgba(17,19,17,.46) 32%, rgba(17,19,17,.96) 78%, rgba(17,19,17,1));
  }

  .service-hero-content {
    padding-top: 82px;
    padding-bottom: 34px;
  }

  .breadcrumbs {
    margin-bottom: 30px;
    font-size: 11px;
  }

  .service-hero h1 {
    max-width: 12ch;
    font-size: clamp(40px, 11.3vw, 52px);
    line-height: 1.01;
  }

  .service-hero-copy {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.56;
  }

  .service-hero-note {
    display: none;
  }

  .service-anchor-links {
    width: 100%;
    padding-inline: 0;
  }

  .scope-grid,
  .format-grid,
  .service-cost-list,
  .brief-steps {
    grid-template-columns: 1fr;
  }

  .scope-card,
  .format-card {
    min-height: 0;
  }

  .scope-card h3,
  .format-card h3 {
    margin-top: 30px;
  }

  .format-card {
    padding: 24px;
  }

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

  .service-gallery-main {
    grid-row: auto;
    min-height: 430px !important;
  }

  .service-gallery-small {
    min-height: 260px !important;
  }

  .service-cost-item {
    min-height: 118px;
  }

  .service-cost-item strong {
    margin-top: 22px;
  }

  .brief-steps {
    gap: 0;
  }

  .brief-step {
    min-height: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .brief-step h3 {
    margin-top: 34px;
  }

  .faq-item summary {
    font-size: 16px;
    padding-block: 22px;
  }
}

@media (max-width: 760px) and (min-width: 350px) {
  .service-cost-list {
    grid-template-columns: 1fr 1fr;
  }
  .service-cost-item {
    padding: 18px;
  }
  .service-cost-item strong {
    font-size: 14px;
  }
}

/* V1.2.1 — mobile H1 closure for /remont-kvartir/ */
.service-hero h1 > span {
  display: block;
}

@media (max-width: 760px) {
  .service-hero h1 {
    max-width: 100%;
    font-size: clamp(40px, 11.3vw, 52px);
    overflow-wrap: normal;
    word-break: normal;
  }

  .service-hero h1 .service-city {
    white-space: nowrap;
    font-size: clamp(31px, 8.6vw, 35px);
    letter-spacing: -.045em;
  }
}

@media (max-width: 370px) {
  .service-hero h1 .service-city {
    font-size: 31px;
  }
}

/* V1.3.0 — /remont-novostroek/ money page */
.service-newbuild .newbuild-state-grid .format-card {
  border-color: var(--line-dark);
  background: #f8f5ef;
}

.service-newbuild .newbuild-state-grid .format-card h3 {
  color: var(--ink);
}

.service-newbuild .newbuild-state-grid .format-card p {
  color: var(--muted-dark);
}

.service-newbuild .newbuild-state-grid .format-number {
  color: #956f40;
}

.service-newbuild .service-formats .section-lead {
  max-width: 780px;
}

.service-newbuild .newbuild-scope-grid .scope-card {
  background: rgba(255,255,255,.035);
  border-color: var(--line);
}

.service-newbuild .newbuild-scope-grid .scope-card h3 {
  color: var(--paper);
}

.service-newbuild .newbuild-scope-grid .scope-card p {
  color: var(--muted);
}

.service-newbuild .newbuild-scope-grid .scope-card > span {
  color: var(--bronze-hi);
}

.service-newbuild .faq-item a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: rgba(182,144,87,.7);
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .service-newbuild .service-hero h1 {
    max-width: 100%;
  }

  .service-newbuild .service-hero h1 .newbuild-city {
    white-space: nowrap;
    font-size: clamp(29px, 8.1vw, 34px);
    letter-spacing: -.04em;
  }

  .service-newbuild .newbuild-state-grid,
  .service-newbuild .newbuild-scope-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 370px) {
  .service-newbuild .service-hero h1 .newbuild-city {
    font-size: 29px;
  }
}

/* V1.4.0 — /kapitalnyy-remont-kvartir/ money page */
.service-capital .faq-item a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: rgba(182,144,87,.7);
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .service-capital .service-hero h1 {
    max-width: 100%;
  }

  .service-capital .service-hero h1 .capital-city {
    white-space: nowrap;
    font-size: clamp(29px, 8.1vw, 34px);
    letter-spacing: -.04em;
  }
}

@media (max-width: 370px) {
  .service-capital .service-hero h1 .capital-city {
    font-size: 29px;
  }
}

/* V1.5.0 — /dizaynerskiy-remont/ money page */
.service-design .faq-item a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: rgba(182,144,87,.7);
  text-underline-offset: 3px;
}

.service-design .service-hero-media img {
  object-position: center 48%;
}

.service-design .design-scope-grid .scope-card {
  background: rgba(255,255,255,.035);
  border-color: var(--line);
}

.service-design .design-scope-grid .scope-card h3 {
  color: var(--paper);
}

.service-design .design-scope-grid .scope-card p {
  color: var(--muted);
}

.service-design .design-scope-grid .scope-card > span {
  color: var(--bronze-hi);
}

@media (max-width: 760px) {
  .service-design .service-hero h1 {
    max-width: 100%;
  }

  .service-design .service-hero h1 .design-city {
    white-space: nowrap;
    font-size: clamp(29px, 8.1vw, 34px);
    letter-spacing: -.04em;
  }

  .service-design .design-scope-grid,
  .service-design .design-stage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 370px) {
  .service-design .service-hero h1 .design-city {
    font-size: 29px;
  }
}

/* V1.5.1 — design page light-section contrast / spacing closure */
.service-design .design-scope-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-design .design-scope-grid .scope-card {
  min-height: 220px;
  background: #f8f5ef;
  border-color: var(--line-dark);
}

.service-design .design-scope-grid .scope-card > span {
  color: #956f40;
}

.service-design .design-scope-grid .scope-card h3 {
  color: var(--ink);
  margin-top: 26px;
}

.service-design .design-scope-grid .scope-card p {
  color: var(--muted-dark);
}

@media (max-width: 760px) {
  .service-design .design-scope-grid {
    display: block;
    margin-top: 36px;
    border-top: 1px solid var(--line-dark);
  }

  .service-design .design-scope-grid .scope-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 8px;
    padding: 22px 0;
    border: 0;
    border-bottom: 1px solid var(--line-dark);
    border-radius: 0;
    background: transparent;
  }

  .service-design .design-scope-grid .scope-card > span {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-top: 4px;
    color: #956f40;
    font-size: 12px;
    line-height: 1.2;
  }

  .service-design .design-scope-grid .scope-card h3 {
    grid-column: 2;
    margin: 0;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.2;
  }

  .service-design .design-scope-grid .scope-card p {
    grid-column: 2;
    margin: 0;
    color: var(--muted-dark);
    font-size: 14px;
    line-height: 1.6;
  }
}

/* V1.5.2 — global anchor offset for fixed/smart header */
html {
  scroll-padding-top: 84px;
}

main > section[id],
main[id] {
  scroll-margin-top: 84px;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 74px;
  }

  main > section[id],
  main[id] {
    scroll-margin-top: 74px;
  }
}

/* OTDELKA78 V53: desktop header edge spacing; 1280px+ only. */
@media (min-width: 1280px) {
  .site-header .header-inner {
    width: min(calc(100% - (var(--pad) * 2)), var(--max));
    margin-inline: auto;
  }
}
