/* ATEST-INZENJERING
   Paleta: grafit i tamni petrolej kao osnova, jantar kao jedini naglasak (signalna boja u elektrotehnici). */
:root {
  --primary: #12343B;          /* tamni petrolej: gumbi, tamne plohe */
  --accent: #E9A93A;           /* jantar: aktivno stanje, brojevi faza */
  --accent-soft: #FBEFD5;      /* odabrane opcije, hover */
  --rule: #B9C4C2;             /* jači rubovi */
  --muted: #7A878C;

  --paper: #F5F6F4;            /* osnovna pozadina, neutralna */
  --tint: #E8ECEA;             /* tonirane sekcije */
  --paper-2: var(--tint);
  --white: #FFFFFF;            /* kartice */
  --ink: #1A2326;              /* tekst */
  --steel: #55636A;            /* sekundarni tekst */
  --line: #D9DFDD;             /* linije */
  --teal: #1F6B75;             /* naglasak u tekstu */
  --tag: var(--accent);
  --on-dark: #FFFFFF;
  --on-dark-2: #C4D2D5;        /* sekundarni tekst na tamnoj plohi */
  --fault: #C0492F;
  --jaka: #E0A526;
  --slaba: #2F7F8C;
  --grom: var(--fault);

  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --body: "Figtree", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(18, 52, 59, .05), 0 12px 32px -16px rgba(18, 52, 59, .18);
  color-scheme: light;
}

/* Tamni način: ista paleta, tamni grafit kao podloga. Tema se postavlja na <html data-theme>
   (base.html: spremljeni izbor ili postavka sustava; gumb u zaglavlju). Kad stranica ima svoj
   tamni izgled, preglednici je ne zatamnjuju na silu (to je skrivalo nacrt u heroju). */
:root[data-theme="dark"] {
    color-scheme: dark;
    --primary: #1D4D56;
    --accent-soft: #3B2F16;
    --rule: #43525A;
    --muted: #84949A;
    --paper: #101719;
    --tint: #172125;
    --white: #1A2529;
    --ink: #E7EDED;
    --steel: #A5B3B7;
    --line: #2A373C;
    --teal: #74B8C1;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .92; margin: 0; color: var(--ink); }
.section-ink h2, .section-ink h3 { color: inherit; }
h2 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  letter-spacing: .005em;
}
h3 { font-family: var(--body); font-size: 1.2rem; font-weight: 650; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--tag); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }


/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font: 700 1rem/1 var(--body); letter-spacing: 0.04em; }
.brand-word { height: 17px; width: auto; overflow: visible; }
.brand-word path { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-word .dash { stroke: var(--muted); }
.brand-name span { color: var(--muted); }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; order: 1; }
.theme-toggle {
  order: 2; display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: 10px;
  border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.theme-toggle:hover { background: var(--tint); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:not(.nav-cta):hover { background: var(--tint); }
.nav-cta { background: var(--primary); color: var(--on-dark); padding: 10px 18px; margin-left: 10px; }
.nav-cta:hover { background: var(--teal); }
.nav-toggle { display: none; order: 3; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--body); padding: 15px 26px; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn-primary { background: var(--primary); color: var(--on-dark); box-shadow: 0 6px 18px -8px rgba(18, 52, 59, .55); }
.btn-primary:hover { background: var(--teal); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 120px);
}
/* Tlocrt dvorane Rečica koji se crta u pozadini (static/js/nacrt.js) */
.hero-nacrt {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  opacity: .5;
  --nacrt-arh: rgba(0, 0, 0, .15);
  --nacrt-tanko: rgba(0, 0, 0, .09);
}
:root[data-theme="dark"] .hero-nacrt { --nacrt-arh: rgba(255, 255, 255, .3); --nacrt-tanko: rgba(255, 255, 255, .18); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.8rem);
  letter-spacing: .005em;
  line-height: .88;
  margin-bottom: 1.6rem;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .02em; }
.hero-title .line > span { display: inline-block; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 34em; color: var(--steel); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }

/* Primjeri projekata */
.instrument { margin: 0; min-height: clamp(360px, 38vw, 520px); display: grid; place-items: center; }

.readout {
  width: min(400px, 100%);
  background: var(--primary); color: var(--on-dark);
  font-family: var(--body);
  border-radius: 20px;
  padding: 22px 26px 20px;
}
.readout-head { margin: 0 0 6px; color: var(--on-dark-2); font-weight: 600; font-size: .85rem; }
.projects { list-style: none; margin: 0; padding: 0; }
.proj {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center;
  padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .14);
  color: var(--on-dark-2); opacity: .6; transition: opacity .4s;
}
.proj.is-active { opacity: 1; }
.p-sys { font-weight: 600; color: var(--on-dark); }
.p-qty { grid-row: 2; font-size: .85rem; }
.p-val { grid-row: 1 / span 2; grid-column: 2; text-align: right; white-space: nowrap; font-size: .95rem; }
.p-val b { font: 400 2.2rem/1 var(--display); letter-spacing: .02em; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.proj.is-active .p-val b { color: var(--accent); }


/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-ink { background: var(--primary); color: var(--on-dark); border-radius: 40px; margin: 0 clamp(8px, 1.5vw, 20px); }
.section-ink .section-lede { color: var(--on-dark-2); }
.section-tint { background: var(--paper-2); border-radius: 40px; margin: 0 clamp(8px, 1.5vw, 20px); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-lede { color: var(--steel); margin-top: 1rem; font-size: 1.1rem; }

/* Usluge */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px 30px; position: relative; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.service:hover { border-color: var(--rule); box-shadow: var(--shadow); }
.service-wide { grid-column: span 2; }
.service-wide p { max-width: 38em; }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--steel); font-size: .98rem; margin: 0; }

/* Postupak */
.process-wrap { position: relative; }
.process-line { position: absolute; left: 0; top: 18px; width: 100%; height: 4px; overflow: visible; }
.process-line line { stroke: var(--rule); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: 32px; position: relative; }
.step-no {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  background: var(--accent); border-radius: 50%;
  font: 400 1.25rem/1 var(--display); padding-top: 2px; color: var(--ink); margin-bottom: 22px;
  box-shadow: 0 0 0 6px var(--primary);
}
.step h3 { color: var(--on-dark); margin-bottom: 10px; }
.step p { color: var(--on-dark-2); font-size: .98rem; }

/* Sustavi A / B / C */
.systems { display: grid; grid-template-columns: 1fr 1.7fr 1fr; gap: clamp(28px, 4vw, 56px); }
.system { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 26px 18px; }
.system h3 { margin-bottom: 14px; }
.system ul { list-style: none; margin: 0; padding: 0; }
.system-b ul { columns: 2; column-gap: 32px; }
.system li { padding: 8px 0; border-bottom: 1px solid var(--line); break-inside: avoid; color: var(--steel); }

/* Solarni kalkulator */
.solar { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.solar-form { display: grid; gap: 26px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 600; margin-bottom: 10px; padding: 0; }
.field small { display: block; color: var(--steel); margin-top: 8px; font-size: .88rem; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-row > label { margin: 0; }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row input[type=range] { flex: 1; accent-color: var(--primary); min-width: 0; }
.num-unit { display: inline-flex; align-items: center; gap: 6px; font-family: var(--body); font-variant-numeric: tabular-nums; font-size: .9rem; color: var(--steel); white-space: nowrap; }
.num-unit input {
  width: 6.5em; font: 600 1rem var(--body); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); font-size: .92rem; font-weight: 500; transition: background .15s, color .15s, border-color .15s;
}
.chips input:checked + span { background: var(--accent-soft); color: var(--ink); border-color: var(--accent); }
.chips input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.chips label:hover span { border-color: var(--rule); }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }

.solar-out { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); }
.solar-kpis { margin: 0 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; }
.solar-kpis div { min-width: 0; }
.solar-kpis dt { font: 500 .85rem var(--body); color: var(--steel); margin-bottom: 4px; }
.solar-kpis dd { margin: 0; color: var(--steel); font-size: .9rem; }
.solar-kpis b { font: 400 2.3rem/1 var(--display); letter-spacing: .02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.solar-kpis .kpi-main { grid-column: span 3; }
.solar-kpis .kpi-main b { font-size: clamp(2.6rem, 5vw, 3.6rem); }
.solar-roof { width: 100%; height: auto; display: block; margin-bottom: 20px; }
.solar-roof .roof-bg { fill: var(--paper-2); }
.solar-roof .mod { fill: var(--primary); }
.solar-roof .mod-line { stroke: var(--muted); stroke-width: .6; }
.solar-roof .more { font: 600 11px var(--body); fill: var(--steel); }

.solar-chart { margin: 0 0 16px; position: relative; }
.solar-chart figcaption { font-weight: 600; margin-bottom: 12px; font-size: .95rem; }
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; height: 150px; border-bottom: 1px solid var(--line); }
.bar-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; cursor: default; }
.bar { position: relative; width: min(24px, 70%); background: var(--jaka); border-radius: 8px 8px 3px 3px; height: 0; }
.bar-col:hover .bar { filter: brightness(1.12); }
.bar-peak { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -4px); font: 600 .75rem var(--body); color: var(--ink); white-space: nowrap; }
.bar-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 6px; }
.bar-months span { text-align: center; font: 400 .72rem var(--body); color: var(--steel); }
.bar-tip {
  position: absolute; pointer-events: none; transform: translate(-50%, -100%);
  background: var(--primary); color: var(--on-dark); font: 600 .78rem var(--body); padding: 6px 10px; border-radius: 10px; white-space: nowrap;
}
.solar-chart details { margin-top: 10px; font-size: .88rem; }
.solar-chart summary { cursor: pointer; color: var(--teal); font-weight: 600; }
.solar-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .85rem; font-variant-numeric: tabular-nums; }
.solar-table td { padding: 4px 0; border-bottom: 1px solid var(--line); }
.solar-table td:last-child { text-align: right; }
.solar-note { font-size: .82rem; color: var(--steel); }

/* Oznake u kontakt obrascu */
.form-tags { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-tags legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.form-tags .chips span { padding: 6px 12px; font-size: .85rem; background: var(--paper); }

/* Reference */
.buildings {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 0;
  font: 400 clamp(2rem, 4.4vw, 3.4rem)/1.05 var(--display); letter-spacing: .01em;
}
.buildings li:not(:last-child)::after { content: "·"; color: var(--jaka); font-weight: 400; margin: 0 .4em; }
.buildings li:last-child::after { content: " i drugi."; font-weight: 400; color: var(--steel); }

/* O nama / BIM */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.about-text > p { font-size: 1.1rem; }
.facts { margin: 2rem 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 600 .88rem/1.6 var(--body); color: var(--teal); }
.facts dd { margin: 0; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-list li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-list span { font: 500 .9rem/1.7 var(--body); color: var(--steel); }
.contact-list a { font-weight: 600; text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea {
  font: 400 1rem var(--body); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent); }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.flash { margin: 0; padding: 12px 14px; border-radius: var(--radius); font-weight: 600; }
.flash-ok { background: var(--accent-soft); }
.flash-error { background: color-mix(in srgb, var(--fault) 16%, var(--white)); }

/* Footer */
.site-footer { color: var(--steel); padding: 36px 0; font: 400 .9rem var(--body); }
.site-footer .brand-name { color: var(--ink); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }

/* ---------- BIM ---------- */
.bim-stage { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
.bim-view {
  position: sticky; top: 84px; height: calc(100vh - 110px); max-height: 760px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; cursor: grab;
}
.bim-view:active { cursor: grabbing; }
.bim-canvas { width: 100%; height: 100%; display: block; }
.bim-loading {
  position: absolute; inset: 0; margin: 0; display: grid; place-items: center;
  font: 500 .9rem var(--body); color: var(--steel);
}
.bim-labels { position: absolute; inset: 0; pointer-events: none; }
.bim-labels span.clickable { pointer-events: auto; }
.bim-labels span.clickable:hover { background: var(--accent-soft); }
.bim-labels span {
  position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; cursor: pointer; pointer-events: none;
  font: 600 .75rem var(--body); color: var(--ink);
  background: var(--white); padding: 4px 10px; border-radius: 999px; box-shadow: 0 2px 8px -2px rgba(18, 52, 59, .2);
}
.bim-tools {
  position: absolute; left: 12px; right: 12px; top: 12px; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
}
.bim-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.bim-legend button, .bim-floor select {
  font: 600 .8rem var(--body); color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.bim-legend button::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; vertical-align: -1px; border-radius: 50%; }
.bim-legend button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.bim-legend button:hover { border-color: var(--rule); }
.lg-jaka::before  { background: var(--jaka); }
.lg-slaba::before { background: var(--slaba); }
.lg-grom::before  { background: var(--grom); }
.bim-floor select { border-radius: 999px; }
.bim-floor select:disabled { opacity: .5; cursor: default; }

.bim-steps { list-style: none; margin: 0; padding: 0; }
.bim-step {
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center;
  opacity: .3; transition: opacity .5s;
}
.bim-step:first-child { min-height: 50vh; justify-content: flex-start; padding-top: 8vh; }
.bim-step:last-child { min-height: 80vh; }
.bim-step.is-active { opacity: 1; }
.bim-step h3 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 3.4vw, 3rem); margin-bottom: 12px; }
.bim-step p { color: var(--steel); font-size: 1.05rem; max-width: 30em; }
.bim-qty { margin: 8px 0 0; border-top: 1px solid var(--line); }
.bim-qty div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.bim-qty dt { color: var(--steel); }
.bim-qty dd { margin: 0; font-variant-numeric: tabular-nums; }
.bim-qty b { font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Početna stanja animacija (samo uz JS) ---------- */
.js .hero-title .line > span { transform: translateY(105%); }
.js .hero-fade, .js .readout { opacity: 0; }
.js [data-reveal], .js [data-reveal-group] > * { opacity: 0; }
.js .brand-word path { opacity: 0; }
.js .process-line line { stroke-dasharray: 1000; stroke-dashoffset: 1000; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .section-ink, .section-tint { border-radius: 28px; }
  .instrument { min-height: 0; margin: 8px 0 0; place-items: stretch start; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .process-line { display: none; }
  .about, .contact, .bim-stage, .solar { grid-template-columns: minmax(0, 1fr); }
  /* Model ostaje gore, tekst koraka prolazi ispod njega. */
  .bim-view { top: 68px; height: 50vh; z-index: 2; box-shadow: 0 12px 24px -12px rgba(18, 52, 59, .25); }
  .bim-step { min-height: 55vh; justify-content: flex-end; padding-bottom: 4vh; position: relative; z-index: 1; }
  .bim-step:first-child { padding-top: 0; }
  .systems { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .system-b { grid-row: span 2; }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block; font: 600 .9rem var(--body); background: none;
    border: 1px solid var(--rule); border-radius: 999px; padding: 8px 16px; color: var(--ink);
  }
  .theme-toggle { margin-left: auto; }
  .nav-toggle { margin-left: 8px; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); border-radius: 0 0 24px 24px;
    padding: 8px var(--gutter) 16px; display: none; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav-cta { text-align: center; margin: 8px 0 0; }
  .services, .process, .systems { grid-template-columns: minmax(0, 1fr); }
  .solar-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solar-kpis .kpi-main { grid-column: span 2; }
  .bim-floor { display: none; }
  /* Nacrt samo iza naslova, širine ekrana: manji canvas umjesto cijelog visokog heroja. */
  .hero-nacrt { inset: 12px 0 auto; height: auto; aspect-ratio: 3863 / 3295; }
  .service-wide { grid-column: auto; }
  .system-b ul { columns: 1; }
  .system-b { grid-row: auto; }
  .readout { width: 100%; }
  .facts div, .contact-list li { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
