/* ============================================================
   TERMO-SIMAX INŽENJERING — dizajn sistem
   Koncept: fotografska naslovnica + tehnički list
   Boje izvedene iz logotipa: #FF0000 / #333333
   ============================================================ */

/* ---------- 1. TOKENI ---------- */
:root {
  /* Osnova — topao, svetao "papir" */
  --paper:        #F3F2F1;
  --paper-2:      #E7E6E4;
  --surface:      #FFFFFF;
  --surface-2:    #ECEBEA;

  /* Mastilo — iz logotipa */
  --ink:          #1A1C1E;
  --ink-2:        #333333;
  /* Sivi tonovi su za nijansu tamniji od prvobitno zadatih (#6B7176 /
     #8B9196) — na toplom papiru te vrednosti daju 4.42:1 i 3.19:1,
     dakle ispod WCAG AA. Ove drže 4.7:1 i 5.0:1. */
  --steel:        #62686D;
  /* #6A7075 je na --paper davao 4.49:1 — tik ispod AA praga (4.5:1) za tekst
     ispod 18.66px (.form-note, <dt> na 12px). Jedan stepen tamnije daje 4.55:1. */
  --steel-2:      #696F74;

  /* Linije */
  --line:         #DDDCDB;
  --line-soft:    #E9E8E7;
  --line-strong:  #C4C3C1;

  /* Signalna crvena — iz logotipa */
  --red:          #FF0000;
  --red-deep:     #D40D08;
  --red-ink:      #96110A;
  /* Crvena kao podloga ispod belog teksta — ista u obe teme, jer beli
     tekst na njoj mora da drži 4.5:1 (izmereno 5.44:1). */
  --red-fill:     #D40D08;
  --red-wash:     rgba(255, 0, 0, .07);
  --red-line:     rgba(255, 0, 0, .28);
  /* Crvena podignuta za čitljivost preko fotografija (WCAG AA, veliki tekst) */
  --red-on-photo: #FF6A57;

  /* Tri oblasti primene — isti redosled svuda: plava, zelena, crvena.
     Važe SAMO unutar strane ili bloka oblasti (data-section), nikad kao
     akcenat brenda. --sec-* nose tekst i markere (u tamnoj temi svetlija
     nijansa), --sec-*-fill nose podloge ispod belog teksta i isti su u obe
     teme. Plava je sopstvena — NIJE plava sa kataloške korice (#1F409A /
     #20419A). Crvena termotehnike je namerno tamnija od crvene logotipa.
     Beli tekst na podlozi: plava 8.44:1, zelena 7.19:1, crvena 11.49:1.
     Tekst u boji na --paper: 5.91 / 4.78 / 8.30 (na --surface 6.61 / 5.35 /
     9.28). Zeleni tekst ne ide na --paper-2 (4.29:1). */
  --sec-blue:       #155FA0;
  --sec-blue-fill:  #124F86;
  --sec-green:      #1E7A46;
  --sec-green-fill: #186438;
  --sec-red:        #8E1418;
  --sec-red-fill:   #741015;

  /* Tamne trake */
  --dark:         #24262A;
  --dark-2:       #2E3136;
  --dark-line:    rgba(255,255,255,.12);
  --on-dark:      #FFFFFF;
  --on-dark-dim:  #A8AEB3;

  /* Fluid / voda u shemama */
  --hot:          #E4572E;
  --cold:         #3B7EA1;
  --gas:          #C9CFD4;

  /* Dodatno zatamnjenje fotografija (jače u tamnoj temi) */
  --photo-veil:   0;
  /* Jedinstvena obrada za sve tri fotografije, da se čitaju kao serija */
  --photo-grade:  saturate(.86) contrast(1.04) brightness(.98);

  /* Tipografija */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Skala (Elements of Typographic Style — kvinta) */
  --t-xs:   0.875rem;
  --t-sm:   0.9375rem;
  --t-base: 1rem;
  --t-md:   1.0625rem;
  --t-lg:   1.3125rem;
  --t-xl:   1.75rem;
  --t-2xl:  2.375rem;
  --t-3xl:  3.25rem;
  --t-4xl:  4.5rem;

  /* Ritam */
  --gut:    clamp(1.25rem, 4vw, 2.5rem);
  --band:   clamp(3.5rem, 9vw, 7.5rem);
  --maxw:   1280px;
  --readw:  62ch;

  /* Uvlačenje punih traka od ivice ekrana, da se zaobljenje vidi */
  --inset:  clamp(0px, 1.6vw, 20px);

  --r-sm: 10px;
  --r:    14px;
  --r-lg: 22px;
  --r-hero: 28px;

  --shadow-1: 0 1px 2px rgba(26,28,30,.05), 0 6px 18px -12px rgba(26,28,30,.28);
  --shadow-2: 0 2px 4px rgba(26,28,30,.05), 0 22px 44px -26px rgba(26,28,30,.42);
  --shadow-3: 0 30px 70px -34px rgba(26,28,30,.5);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --dur: .42s;

  --header-h: 74px;
  --util-h: 38px;
}

/* Tamna tema — ista geometrija, obrnut kontrast */
html[data-theme="dark"] {
  --paper:        #121315;
  --paper-2:      #191B1D;
  --surface:      #1B1D1F;
  --surface-2:    #232628;

  --ink:          #F4F4F3;
  --ink-2:        #DEDEDC;
  --steel:        #A8AEB3;
  --steel-2:      #838A8F;

  --line:         #323538;
  --line-soft:    #26292B;
  --line-strong:  #43474B;

  --red-wash:     rgba(255, 0, 0, .12);
  --red-line:     rgba(255, 0, 0, .4);
  /* --red-deep je u tamnoj temi svetlija, jer nosi crveni TEKST.
     Podloge ispod belog teksta ostaju na --red-fill. */
  --red-deep:     #FF2A18;
  --red-ink:      #FF6656;
  --red-on-photo: #FF7C6A;

  /* Boje oblasti kao TEKST na tamnim podlogama — svetlije nijanse,
     na --paper 8.40 / 8.91 / 7.43:1, na --surface 7.64 / 8.11 / 6.75:1.
     Podloge (--sec-*-fill) se ne menjaju. */
  --sec-blue:       #7DB3E8;
  --sec-green:      #6DC595;
  --sec-red:        #E8898C;

  --dark:         #0D0E10;
  --dark-2:       #16181A;
  --on-dark:      #FFFFFF;
  --on-dark-dim:  #A8AEB3;

  /* Preklop preko fotografija je jači u tamnoj temi */
  --photo-veil:   .22;

  --shadow-1: 0 1px 2px rgba(0,0,0,.5), 0 6px 18px -12px rgba(0,0,0,.8);
  --shadow-2: 0 2px 4px rgba(0,0,0,.5), 0 22px 44px -26px rgba(0,0,0,.9);
  --shadow-3: 0 30px 70px -34px rgba(0,0,0,1);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
/* <picture> je inline omotač — mora da nasledi kutiju da bi img u njemu
   mogao da koristi height:100% i object-fit */
.hero-slide picture, .ctaband-media picture,
.card-shot picture, .proj-shot picture { display: block; width: 100%; height: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: var(--red); color: #fff; }

/* ---------- 3. TIPOGRAFIJA ----------
   Krupan, uzak, lagan display — naslov nosi karakter stranice. */
h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-variation-settings: "wdth" 92;
  color: var(--ink);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, var(--t-xl)); font-weight: 600; letter-spacing: -0.02em; }
h4 { font-size: var(--t-md); font-weight: 600; font-variation-settings: "wdth" 96; letter-spacing: -0.01em; }

p { text-wrap: pretty; }
.lead {
  font-size: clamp(var(--t-md), 1.7vw, var(--t-lg));
  line-height: 1.55;
  color: var(--steel);
  max-width: var(--readw);
}
.prose { max-width: var(--readw); }
.prose p + p { margin-top: 1.05em; }
.prose strong { color: var(--ink); font-weight: 600; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* Oznaka poglavlja (eyebrow) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--steel);
  letter-spacing: .16em;
}
.tag::before {
  content: "";
  width: 20px; height: 1px;
  background: var(--red);
  flex: none;
}

/* ---------- 4. LEJAUT ---------- */
.wrap {
  width: min(100% - (var(--gut) * 2), var(--maxw));
  margin-inline: auto;
}
.band { padding-block: var(--band); }
.band--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.band--surface { background: var(--surface); }

.rule { height: 1px; background: var(--line); border: 0; }

/* Panel */
.sheet {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

/* Mreža milimetarskog papira */
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 78% 68% at 62% 34%, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 78% 68% at 62% 34%, #000 20%, transparent 78%);
  pointer-events: none;
}

.cols {
  display: grid;
  gap: clamp(1.5rem, 3.4vw, 3rem);
}
.cols--2 { grid-template-columns: 1fr; }
.cols--3 { grid-template-columns: 1fr; }
.cols--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) {
  .cols--2 { grid-template-columns: repeat(2, 1fr); }
  .cols--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1020px) {
  .cols--3 { grid-template-columns: repeat(3, 1fr); }
  .cols--4 { grid-template-columns: repeat(4, 1fr); }
}

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 940px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--40 { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr); }
  .split--60 { grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr); }
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  max-width: 72ch;
}
.section-head--split {
  max-width: none;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 940px) {
  .section-head--split { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 2.5rem; }
}

/* ---------- 5. TRAKA ZA NAPREDAK + UTILITY BAR ---------- */
.progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red-deep), var(--red));
  z-index: 90;
}

.utility {
  background: var(--dark);
  color: var(--on-dark-dim);
  font-size: var(--t-xs);
  border-bottom: 1px solid var(--dark-line);
}
.utility .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
  flex-wrap: wrap;
}
.utility-list { display: flex; align-items: center; gap: 1.35rem; flex-wrap: wrap; }
.utility a { transition: color .2s; display: inline-flex; align-items: center; gap: .4rem; }
.utility a:hover { color: #fff; }
.utility svg { width: 13px; height: 13px; opacity: .65; }
.utility-hours { display: inline-flex; align-items: center; gap: .4rem; }
@media (max-width: 900px) { .utility-hours { display: none; } }
.utility-tools { display: flex; align-items: center; gap: .35rem; }

.pill-group {
  display: inline-flex;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  padding: 2px;
}
.pill-group button {
  font-family: var(--mono);
  font-size: 14px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--on-dark-dim);
  transition: background .2s, color .2s;
}
.pill-group button[aria-pressed="true"] { background: var(--red-fill); color: #fff; }

.icon-btn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--dark-line);
  color: var(--on-dark-dim);
  transition: color .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn .moon { display: none; }
html[data-theme="dark"] .icon-btn .sun { display: none; }
html[data-theme="dark"] .icon-btn .moon { display: block; }

/* ---------- 6. ZAGLAVLJE — plivajuća pilula preko heroja ----------
   Zaglavlje je fiksno na vrhu, ali se u "plivajućem" stanju spušta
   transformacijom ispod utility trake, 28px u fotografiju.
   Sve prelaze nose transform i opacity — bez pomeranja rasporeda. */
.header {
  --nav-y: calc(var(--util-h) + 28px);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  transform: translateY(var(--nav-y));
  transition: transform .3s var(--ease);
}
.header[data-solid="true"] { --nav-y: 0px; }

.header-skin {
  position: absolute; inset: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.header[data-solid="true"] .header-skin { opacity: 1; }

.header .wrap {
  position: relative;
  display: flex; align-items: center; gap: 1.25rem;
  min-height: var(--header-h);
}

/* Logotip — preko fotografije ide beli otisak sa senkom (tamni deo
   logotipa je #333 i preko fotografije se ne bi video), a čim se
   traka zgusne vraća se puni logotip u boji. */
.brand { display: flex; align-items: center; flex: none; }
.brand img {
  width: 140px; height: auto;
  transition: width .3s var(--ease), filter .3s var(--ease);
  filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0,0,0,.5));
}
.header[data-solid="true"] .brand img { width: 124px; filter: none; }
/* Na tamnoj podlozi tamni deo logotipa se ne bi video */
html[data-theme="dark"] .brand img,
html[data-theme="dark"] .header[data-solid="true"] .brand img { filter: brightness(0) invert(1); }
@media (max-width: 640px) {
  .brand img { width: 118px; }
  .header[data-solid="true"] .brand img { width: 112px; }
}
/* Ugrađeni SVG je rezerva ako raster ne učita */
.brand svg { height: 38px; width: auto; }
.brand-sub { display: none; }

/* Centralna pilula — centrirana u odnosu na stranicu, ne na preostali prostor */
.navpill {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
@media (min-width: 1020px) { .navpill { display: block; } }
.header[data-solid="true"] .navpill {
  background: var(--surface-2);
  border-color: var(--line);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}

.navpill ul {
  position: relative;
  display: flex; align-items: center;
  list-style: none; padding: 0; margin: 0;
}
.navpill a {
  position: relative; z-index: 2;
  display: block;
  padding: .5rem 1.05rem;
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.9);
  border-radius: 999px;
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.header[data-solid="true"] .navpill a { color: var(--steel); }
.navpill a[aria-current], .navpill a.is-hot { color: var(--ink); }
.header[data-solid="true"] .navpill a[aria-current],
.header[data-solid="true"] .navpill a.is-hot { color: var(--ink); }

/* Bela pilula koja klizi do stavke ispod pokazivača */
.navpill-thumb {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #fff;
  opacity: 0;
  z-index: 1;
  transition: transform .42s var(--spring), width .42s var(--spring), opacity .25s;
}
.navpill.is-ready .navpill-thumb { opacity: 1; }
.header[data-solid="true"] .navpill-thumb { background: var(--surface); }

.has-sub { position: relative; }
.has-sub > a { padding-right: 1.55rem; }
.has-sub > a::before {
  content: "";
  position: absolute; right: .95rem; top: 50%;
  width: 4px; height: 4px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  opacity: .55;
}
.submenu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  min-width: 320px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: .5rem;
  display: grid; gap: 1px;
  opacity: 0; visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .22s, transform .28s var(--ease-out), visibility .22s;
}
/* Tastaturom: fokus na "Proizvodi" otvara panel, pa njegove stavke
   postaju dohvatljive i :focus-within ga drži otvorenim dalje kroz Tab. */
.has-sub:hover .submenu,
.has-sub:focus-within .submenu,
.has-sub > a:focus-visible ~ .submenu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.submenu a {
  padding: .65rem .8rem;
  border-radius: var(--r-sm);
  display: grid; gap: .12rem;
  color: var(--ink);
}
.header .submenu a, .header[data-solid="true"] .submenu a { color: var(--ink); }
.submenu a:hover { background: var(--paper); }
.submenu b { font-size: var(--t-sm); color: var(--ink); font-weight: 600; }
.submenu a > span { font-size: var(--t-xs); color: var(--steel); line-height: 1.4; }

/* Desni CTA — bela pilula preko fotografije, tamna kad se traka zgusne */
.header .header-cta {
  display: none;
  flex: none;
  margin-left: auto;
  border-radius: 999px;
  background: #fff;
  color: #1A1C1E;
  border-color: transparent;
  box-shadow: none;
  padding: .62rem 1.25rem;
  font-size: 14px;
}
@media (min-width: 1020px) { .header .header-cta { display: inline-flex; } }
.header .header-cta:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.55); }
.header[data-solid="true"] .header-cta { background: var(--ink); color: var(--paper); }
.header[data-solid="true"] .header-cta:hover { background: var(--red-fill); color: #fff; }

.burger {
  margin-left: auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  color: #fff;
  transition: background .3s, border-color .3s, color .3s;
}
.header[data-solid="true"] .burger {
  border-color: var(--line); background: var(--surface-2); color: var(--ink);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
@media (min-width: 1020px) { .burger { display: none; } }
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block;
  width: 17px; height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.burger span::before { transform: translateY(-5.5px); }
.burger span::after  { transform: translateY(4px); }
.burger[aria-expanded="true"] span { transform: rotate(45deg); }
.burger[aria-expanded="true"] span::before { opacity: 0; }
.burger[aria-expanded="true"] span::after  { transform: rotate(-90deg); }

/* Mobilna navigacija */
/* Zatvoren meni mora da ispadne iz reda za Tab — clip-path ga samo
   sakriva vizuelno, pa bi njegove veze i dalje primale fokus. */
.mnav {
  position: fixed; inset: 0;
  z-index: 95;
  background: var(--surface);
  padding: 1.25rem var(--gut) 2rem;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .55s var(--ease-out), visibility 0s linear .55s;
}
.mnav[data-open="true"] {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path .55s var(--ease-out), visibility 0s;
}
.mnav-top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.mnav .brand img { width: 132px; filter: none; }
.mnav ul { list-style: none; padding: 0; margin-top: 1rem; }
.mnav li { border-top: 1px solid var(--line-soft); }
.mnav > ul > li > a {
  display: flex; align-items: baseline; gap: .8rem;
  padding: .95rem 0;
  font-family: var(--display);
  font-variation-settings: "wdth" 92;
  font-size: 1.5rem; font-weight: 500;
  letter-spacing: -.03em;
  color: var(--ink);
}
.mnav > ul > li > a i {
  font-family: var(--mono); font-style: normal;
  font-size: 14px; color: var(--red); opacity: .8;
}
.mnav .sub { padding: 0 0 .9rem 1.9rem; display: grid; gap: .5rem; }
.mnav .sub a { font-size: var(--t-sm); color: var(--steel); }
.mnav-foot { margin-top: 2rem; display: grid; gap: .75rem; }
.mnav-tools {
  display: flex; align-items: center; gap: .5rem;
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
}
.mnav-tools .pill-group { border-color: var(--line); }
.mnav-tools .pill-group button:not([aria-pressed="true"]) { color: var(--steel); }
.mnav-tools .icon-btn { border-color: var(--line); color: var(--steel); }
.mnav-tools .icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }

/* ---------- 7. DUGMAD ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .82rem 1.4rem;
  font-family: var(--body);
  font-size: var(--t-sm); font-weight: 600;
  letter-spacing: .005em;
  border-radius: var(--r);
  border: 1px solid transparent;
  position: relative; overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .3s, background .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--red-fill); color: #fff; box-shadow: 0 10px 24px -14px rgba(200,18,8,.9); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.32), transparent 80%);
  transform: translateX(-110%);
  transition: transform .7s var(--ease-out);
}
.btn--primary:hover { background: var(--red); box-shadow: 0 16px 34px -14px rgba(255,0,0,.75); }
.btn--primary:hover::after { transform: translateX(110%); }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--red-fill); color: #fff; }

.btn--sm { padding: .55rem 1rem; font-size: var(--t-xs); }
.btn--block { width: 100%; }

.link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--t-sm); font-weight: 600; color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--red-line);
  transition: border-color .25s, gap .25s, color .25s;
}
.link:hover { border-color: var(--red); gap: .8rem; color: var(--red-deep); }
.link svg { width: 13px; height: 13px; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- 8. HERO — fotografski klizač ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: min(92vh, 900px);
  min-height: 560px;
  margin-inline: var(--inset);
  border-radius: 0 0 var(--r-hero) var(--r-hero);
  display: flex;
  align-items: flex-end;
  background: var(--dark);
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--focal, 52% 48%);
  --zoom: var(--zoom-d, 1);
  transform: scale(calc(1.06 * var(--zoom)));
  transform-origin: var(--zoom-origin, 52% 48%);
  filter: var(--photo-grade);
}
/* Spori Ken Burns traje koliko i vidljivost slajda (1s prelaz + 6s stajanje). --zoom-d (samo desktop) je
   stalno uvećanje slajda čiji predmet mora da stoji desno od kolone teksta (Muskat: obe posude desno od H1);
   na telefonu je 1 — tamo kadar bira isečak za telefon (<source media>). */
.hero-slide.is-active img { animation: kenburns 7s linear forwards; }
@keyframes kenburns { to { transform: scale(var(--zoom)); } }
.hero[data-paused="true"] .hero-slide.is-active img { animation-play-state: paused; }

/* Jačina preklopa je izmerena, ne procenjena: crveni drugi red naslova
   mora da drži 3:1 i nad najsvetlijim delom najsvetlije fotografije. */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(14,16,18,.88) 0%, rgba(14,16,18,.70) 40%, rgba(14,16,18,.22) 66%, transparent 84%),
    linear-gradient(105deg, rgba(20,22,24,.80) 0%, rgba(20,22,24,.46) 46%, rgba(20,22,24,.14) 100%),
    rgba(10,11,12, var(--photo-veil));
}

/* Tanke vertikalne vodilice na kolonama mreže */
.hero-guides {
  position: absolute; top: 0; bottom: 0; left: 0; right: 0;
  z-index: 2; pointer-events: none;
  width: min(100% - (var(--gut) * 2), var(--maxw));
  margin-inline: auto;
  border-right: 1px solid rgba(255,255,255,.10);
  background-image: linear-gradient(to right, rgba(255,255,255,.10) 0 1px, transparent 1px);
  background-size: 25% 100%;
}

.hero-inner {
  position: relative; z-index: 3;
  width: min(100% - (var(--gut) * 2), var(--maxw));
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
/* Ograničenje širine važi samo za naslovni hero; na unutrašnjim
   stranama .hero-seq je i .wrap, pa bi ga ovo suzilo i centriralo. */
.hero .hero-seq { max-width: 46rem; }
.hero .tag { color: rgba(255,255,255,.88); }
.hero .tag::before { background: var(--red-on-photo); }

.hero h1 {
  margin-block: 1.1rem 1.15rem;
  color: #fff;
  text-wrap: initial;
}
.hero h1 span { display: block; }
.hero h1 em {
  font-style: normal;
  display: block;
  color: var(--red-on-photo);
}
.hero-lead {
  font-size: clamp(var(--t-md), 1.5vw, var(--t-lg));
  line-height: 1.55;
  color: rgba(255,255,255,.88);
  max-width: 60ch;
}
.hero .btn-row { margin-top: 2.1rem; }

/* Pokazivači slajdova — aktivni se puni kao traka napretka */
.hero-dots {
  position: absolute; z-index: 4;
  right: max(var(--gut), calc((100% - var(--maxw)) / 2 + var(--gut)));
  bottom: clamp(1.5rem, 4vw, 2.75rem);
  display: flex; gap: .5rem;
}
/* Dugme je 22px visoko zbog dodirne mete; sama traka je 3px i
   centrirana — padding se ne koristi jer bi ga border-box sažeo. */
.hero-dots button {
  width: 32px; height: 22px;
  background: none;
  display: block;
  position: relative;
}
.hero-dots button::before,
.hero-dots i {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 3px; margin-top: -1.5px;
  border-radius: 2px;
}
.hero-dots button::before {
  background: rgba(255,255,255,.5);
  box-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.hero-dots i {
  background: var(--red);
  transform: scaleX(0); transform-origin: 0 50%;
}
.hero-dots button[aria-current="true"] i { animation: dotFill 6s linear forwards; }
.hero[data-paused="true"] .hero-dots button[aria-current="true"] i { animation-play-state: paused; }
@keyframes dotFill { to { transform: scaleX(1); } }

@media (max-width: 640px) {
  .hero { height: min(88vh, 760px); }
  .hero-guides { background-size: 50% 100%; }
}

/* Traka parametara ispod heroja */
.specstrip {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
@media (min-width: 860px) { .specstrip { grid-template-columns: repeat(4, 1fr); } }
.specstrip div {
  padding: 1.15rem 1.25rem;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
@media (min-width: 860px) { .specstrip div { border-bottom: 0; } }
.specstrip div:last-child { border-right: 0; }
.specstrip b {
  display: block;
  font-family: var(--display);
  font-variation-settings: "wdth" 84;
  /* brojevi ostaju u jednom redu i na uskim ekranima */
  font-size: clamp(1.15rem, 5.4vw, 2.2rem);
  font-weight: 700; color: var(--ink);
  line-height: 1.05;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 560px) { .specstrip b { font-size: clamp(1.5rem, 3.2vw, 2.2rem); } }
.specstrip b i { font-style: normal; font-size: .5em; color: var(--red-deep); margin-left: .12em; }
/* Samo natpis ispod broja — ne i <span data-count> unutar <b> */
.specstrip > div > span { display: block; margin-top: .45rem; font-size: var(--t-xs); color: var(--steel); }

/* ---------- 9. SHEMA POSUDE (potpisni element) ---------- */
.vfig {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1rem, 2.5vw, 1.6rem);
  box-shadow: var(--shadow-2);
}
.vfig-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-bottom: .85rem; margin-bottom: .85rem;
  border-bottom: 1px solid var(--line-soft);
}
.vfig-title { font-family: var(--display); font-weight: 600; font-size: var(--t-sm); color: var(--ink); }
.vfig-id { font-family: var(--mono); font-size: 14px; color: var(--steel-2); }

.vfig-stage { position: relative; }
.vfig svg { width: 100%; height: auto; }

.vfig-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  margin-top: 1rem;
  overflow: hidden;
}
.vfig-readout div { background: var(--surface); padding: .6rem .7rem; }
.vfig-readout > div > span { display: block; font-size: 14px; color: var(--steel-2); letter-spacing: .01em; }
.vfig-readout b {
  display: block;
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: var(--t-md); font-weight: 500; color: var(--ink);
  line-height: 1.3;
}

/* Koraci radnog ciklusa */
.cycle-steps {
  display: flex; gap: .35rem; flex-wrap: wrap;
  margin-top: 1rem;
}
.cycle-steps button {
  flex: 1 1 auto;
  min-width: 62px;
  padding: .5rem .5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 14px;
  color: var(--steel);
  background: var(--surface);
  transition: all .25s var(--ease);
}
.cycle-steps button:hover { border-color: var(--line-strong); color: var(--ink); }
.cycle-steps button[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
}
.cycle-caption {
  margin-top: .9rem;
  font-size: var(--t-sm);
  color: var(--steel);
  min-height: 3.2em;
}
.cycle-caption b { color: var(--ink); font-weight: 600; }

/* Elementi crteža */
.dim-line { stroke: var(--steel-2); stroke-width: .7; stroke-dasharray: 3 2; }
.body-line { stroke: var(--ink); stroke-width: 1.7; fill: none; }
.thin-line { stroke: var(--line-strong); stroke-width: .9; fill: none; }
.mem-line  { stroke: var(--red-deep); stroke-width: 2; fill: none; stroke-linecap: round; }
.svg-label { font-family: var(--mono); font-size: 8.5px; fill: var(--steel); }
.svg-label--red { fill: var(--red-deep); }

/* ---------- 10. KARTICE ---------- */
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.35rem, 2.6vw, 1.9rem);
  transition: border-color .3s, transform .4s var(--ease-out), box-shadow .4s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--ease-out);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--steel); font-size: var(--t-sm); }
.card .link { margin-top: auto; padding-top: 1.25rem; align-self: flex-start; }

.card-code {
  font-family: var(--mono); font-size: var(--t-xs);
  color: var(--red-deep);
  display: block; margin-bottom: .9rem;
}

.card-fig {
  height: 132px;
  margin: -.4rem 0 1.1rem;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
}
.card-fig svg { height: 104px; width: auto; }

/* Karta sa brojevima za redosled (samo gde postoji stvaran redosled) */
.steps { counter-reset: st; display: grid; gap: 0; }
.steps li {
  counter-increment: st;
  list-style: none;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 1.1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line-soft);
}
.steps li:last-child { border-bottom: 1px solid var(--line-soft); }
.steps li::before {
  content: counter(st, decimal-leading-zero);
  font-family: var(--mono); font-size: var(--t-sm);
  color: var(--red-deep);
  padding-top: .15rem;
}
.steps h4 { margin-bottom: .3rem; }
.steps p { font-size: var(--t-sm); color: var(--steel); max-width: 58ch; }

/* ---------- 11. TABELE PARAMETARA ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
caption { text-align: left; padding: 1rem 1.15rem; font-size: var(--t-xs); color: var(--steel); border-bottom: 1px solid var(--line-soft); }
th, td { padding: .82rem 1.15rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
th {
  font-weight: 600; color: var(--ink);
  font-size: var(--t-xs);
  background: var(--surface-2);
  white-space: nowrap;
}
td { color: var(--steel); }
td.num, th.num { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: var(--paper); }

/* ---------- 12. TAMNE TRAKE ---------- */
.dark-band {
  background: var(--dark);
  color: var(--on-dark-dim);
  position: relative;
  overflow: hidden;
}
.dark-band h2, .dark-band h3, .dark-band h4 { color: #fff; }
.dark-band .lead { color: var(--on-dark-dim); }
.dark-band .tag { color: var(--on-dark-dim); }
.dark-band .rule { background: var(--dark-line); }
.dark-band .link { color: #fff; border-color: rgba(255,255,255,.3); }
.dark-band .link:hover { color: #fff; border-color: var(--red); }
.dark-band .btn--ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.dark-band .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
/* Sekundarni tekst u tamnoj traci mora da napusti svetle sive tokene */
.dark-band .steps p, .dark-band .checklist li, .dark-band .speclist dt,
.dark-band .years p, .dark-band .acc-panel .inner { color: var(--on-dark-dim); }
.dark-band .steps li, .dark-band .years li, .dark-band .checklist li,
.dark-band .speclist > div, .dark-band .acc-item, .dark-band .acc { border-color: var(--dark-line); }
.dark-band .speclist dd, .dark-band .acc-btn { color: #fff; }

.dark-band .grid-bg {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 50%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 20% 50%, #000 10%, transparent 75%);
}

/* Podnozje je tamno i u svetloj temi, pa mu treba isti tretman mreze kao
   tamnim trakama — inace --line-soft daje skoro bele linije preko teksta. */
.footer .grid-bg {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}

/* Lista sertifikata */
.cert-list { list-style: none; padding: 0; display: grid; gap: 0; }
.cert-list li {
  display: flex; align-items: baseline; gap: .85rem;
  padding: .72rem 0;
  border-bottom: 1px solid var(--dark-line);
  font-size: var(--t-sm);
}
.cert-list li::before {
  content: ""; width: 5px; height: 5px; flex: none;
  background: var(--red); transform: translateY(-2px);
}
.cert-list b { color: #fff; font-weight: 600; }

/* ---------- 13. REFERENCE ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: .45rem;
  margin-bottom: 1.75rem;
}
.filters button {
  padding: .48rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--t-xs); font-weight: 500;
  color: var(--steel);
  background: var(--surface);
  transition: all .25s var(--ease);
}
.filters button:hover { border-color: var(--line-strong); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters .count { font-family: var(--mono); margin-left: .35rem; }

.ref-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 700px)  { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .ref-grid { grid-template-columns: repeat(3, 1fr); } }

.ref {
  background: var(--surface);
  padding: 1.4rem 1.5rem;
  display: grid;
  gap: .55rem;
  align-content: start;
  position: relative;
  transition: background .3s;
  animation: refIn .5s var(--ease-out) both;
}
@keyframes refIn { from { opacity: 0; transform: translateY(10px); } }
.ref:hover { background: var(--surface-2); }
.ref-loc {
  font-family: var(--mono); font-size: var(--t-xs);
  color: var(--red-deep);
  display: flex; align-items: center; gap: .45rem;
}
.ref h4 { font-size: var(--t-md); line-height: 1.25; }
.ref-meta {
  display: flex; flex-wrap: wrap; gap: .35rem;
  margin-top: .35rem;
}
.ref-meta span {
  font-family: var(--mono); font-size: 14px;
  padding: .22rem .5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--steel);
  background: var(--surface-2);
}
.ref-client { font-size: var(--t-xs); color: var(--steel-2); }
.ref-flag {
  margin-left: auto;
  font-size: 14px; letter-spacing: .06em;
  color: var(--steel-2);
}

.empty {
  padding: 3rem 1.5rem; text-align: center;
  color: var(--steel); font-size: var(--t-sm);
  grid-column: 1 / -1; background: var(--surface);
}

/* ---------- 14. ALATI / KALKULATORI ---------- */
.tool {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.tool-head {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
}
.tool-head h3 { font-size: var(--t-lg); }
.tool-head p { font-size: var(--t-xs); color: var(--steel); margin-top: .3rem; }
.tool-body { padding: 1.4rem; display: grid; gap: 1.15rem; }

.field { display: grid; gap: .4rem; }
.field label { font-size: var(--t-xs); font-weight: 600; color: var(--ink); }
.field small { font-size: 14px; color: var(--steel-2); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .72rem .85rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--red-deep);
  box-shadow: 0 0 0 3px var(--red-wash);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input.num { font-family: var(--mono); }

.result {
  border: 1px solid var(--red-line);
  background: var(--red-wash);
  border-radius: var(--r-sm);
  padding: 1.1rem 1.25rem;
  display: grid; gap: .3rem;
}
.result > span { font-size: var(--t-xs); color: var(--steel); }
.result b {
  font-family: var(--display);
  font-variation-settings: "wdth" 88;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700; color: var(--ink);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.result b i { font-style: normal; font-size: .45em; color: var(--red-deep); margin-left: .2em; }
.result p { font-size: var(--t-xs); color: var(--steel); margin-top: .35rem; }

.formula {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--steel);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--red);
  border-radius: var(--r-sm);
  padding: .7rem .9rem;
  overflow-x: auto;
}

.range-row { display: grid; gap: .4rem; }
.range-row .rv { font-family: var(--mono); font-size: var(--t-sm); color: var(--ink); }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 22px; background: transparent; padding: 0; border: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 3px; background: var(--line-strong); border-radius: 3px;
}
input[type="range"]::-moz-range-track { height: 3px; background: var(--line-strong); border-radius: 3px; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 17px; height: 17px; margin-top: -7px;
  background: var(--red-deep); border: 2px solid var(--surface);
  border-radius: 50%; cursor: grab;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px;
  background: var(--red-deep); border: 2px solid var(--surface);
  border-radius: 50%; cursor: grab;
}

/* ---------- 15. AKORDEON ---------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%;
  display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 0;
  text-align: left;
  font-family: var(--display);
  font-variation-settings: "wdth" 94;
  font-weight: 600; font-size: var(--t-md);
  color: var(--ink);
}
.acc-btn .mark {
  margin-left: auto; flex: none;
  width: 22px; height: 22px; position: relative;
}
.acc-btn .mark::before, .acc-btn .mark::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 11px; height: 1.5px; background: var(--red-deep);
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease-out);
}
.acc-btn .mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-btn[aria-expanded="true"] .mark::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.acc-panel > div { overflow: hidden; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel .inner { padding-bottom: 1.4rem; font-size: var(--t-sm); color: var(--steel); max-width: 68ch; }
.acc-panel .inner p + p { margin-top: .8em; }
.acc-panel .inner ul { margin: .7em 0 0; padding-left: 1.1em; }
.acc-panel .inner li { margin-bottom: .35em; }

/* ---------- 16. PODNOŽJE ---------- */
.footer { background: var(--dark); color: var(--on-dark-dim); position: relative; overflow: hidden; }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; }
.footer h3, .footer h4 { color: #fff; font-size: var(--t-xs); font-weight: 600; margin-bottom: 1.1rem; letter-spacing: .01em; }
.footer-grid { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.75rem); position: relative; z-index: 2; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.15fr; } }
.footer ul { list-style: none; padding: 0; display: grid; gap: .6rem; font-size: var(--t-sm); }
.footer .brand svg { height: 34px; }
.footer-about { font-size: var(--t-sm); max-width: 34ch; margin-top: 1.15rem; }
.footer-legal {
  border-top: 1px solid var(--dark-line);
  padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .75rem 2rem;
  align-items: center; justify-content: space-between;
  font-size: var(--t-xs);
  position: relative; z-index: 2;
}
/* --steel-2 je svetla tema; na tamnom podnožju daje 3.02:1 */
.footer-legal .reg { font-family: var(--mono); color: var(--on-dark-dim); }

/* ---------- 17. DOK: AI asistent (levo) + vrh strane (desno) ---------- */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  pointer-events: none;
  padding: 0 clamp(.9rem, 3vw, 1.6rem) clamp(.9rem, 3vw, 1.6rem);
}
.dock-inner {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem;
  max-width: calc(var(--maxw) + 4rem);
  margin-inline: auto;
}
.dock > * , .dock-inner > * { pointer-events: auto; }

.dock-btn {
  height: 54px;
  min-width: 54px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 0 1.1rem;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-3), 0 0 0 1px rgba(255,255,255,.08) inset;
  transition: transform .3s var(--ease-out), background .3s, opacity .3s, visibility .3s;
}
.dock-btn:hover { transform: translateY(-3px); background: var(--red-fill); color: #fff; }
.dock-btn svg { width: 19px; height: 19px; flex: none; }
.dock-btn > span { font-size: var(--t-xs); font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .dock-btn > span { display: none; } .dock-btn { padding: 0; justify-content: center; } }

#assistantBtn { position: relative; }
#assistantBtn .dot {
  position: absolute; top: 9px; right: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255,0,0,.6);
  animation: ping 2.6s infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(255,0,0,.55); }
  70%  { box-shadow: 0 0 0 11px rgba(255,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,0,0,0); }
}

#toTop { opacity: 0; visibility: hidden; transform: translateY(14px); }
#toTop.is-on { opacity: 1; visibility: visible; transform: translateY(0); }

/* Panel asistenta */
.assistant {
  position: fixed;
  left: clamp(.9rem, 3vw, 1.6rem);
  bottom: calc(clamp(.9rem, 3vw, 1.6rem) + 64px);
  width: min(400px, calc(100vw - 1.8rem));
  height: min(590px, calc(100vh - 150px));
  z-index: 75;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; visibility: hidden;
  transform: translateY(16px) scale(.97);
  transform-origin: 0 100%;
  transition: opacity .3s, transform .42s var(--ease-out), visibility .3s;
}
.assistant[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.as-head {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1rem;
  background: var(--dark);
  color: #fff;
  border-bottom: 1px solid var(--dark-line);
}
.as-avatar {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--red), var(--red-deep));
  display: grid; place-items: center;
  color: #fff;
}
.as-avatar svg { width: 17px; height: 17px; }
.as-head b { display: block; font-size: var(--t-sm); font-weight: 600; }
.as-head small { display: block; font-size: 11px; color: var(--on-dark-dim); }
.as-head .close { margin-left: auto; color: var(--on-dark-dim); padding: .3rem; }
.as-head .close:hover { color: #fff; }
.as-head .close svg { width: 15px; height: 15px; }

.as-log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex; flex-direction: column; gap: .75rem;
  scrollbar-width: thin;
}
.msg {
  max-width: 88%;
  padding: .7rem .9rem;
  border-radius: 12px;
  font-size: var(--t-sm);
  line-height: 1.55;
  animation: msgIn .4s var(--ease-out) both;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg--bot { background: var(--paper); border: 1px solid var(--line-soft); border-bottom-left-radius: 3px; align-self: flex-start; color: var(--ink-2); }
.msg--me  { background: var(--ink); color: var(--paper); border-bottom-right-radius: 3px; align-self: flex-end; }
.msg b { color: var(--ink); font-weight: 600; }
.msg--me b { color: #fff; }
.msg ul { margin: .5em 0 0; padding-left: 1.05em; }
.msg li { margin-bottom: .25em; }
.msg .mono { font-family: var(--mono); font-size: .92em; }
.msg a { color: var(--red-deep); border-bottom: 1px solid var(--red-line); }

.typing { display: inline-flex; gap: 4px; align-items: center; padding: .2rem 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--steel-2); animation: blink 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.as-chips { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 1rem .6rem; }
.as-chips button {
  font-size: 11.5px;
  padding: .35rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--steel);
  background: var(--surface);
  transition: all .2s;
}
.as-chips button:hover { border-color: var(--red-deep); color: var(--red-deep); background: var(--red-wash); }

.as-form {
  display: flex; gap: .5rem;
  padding: .75rem 1rem 1rem;
  border-top: 1px solid var(--line-soft);
  background: var(--surface-2);
}
.as-form input {
  flex: 1;
  padding: .65rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--t-sm);
  background: var(--surface);
}
.as-form input:focus { outline: 0; border-color: var(--red-deep); box-shadow: 0 0 0 3px var(--red-wash); }
.as-form button {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  background: var(--red-fill); color: #fff;
  display: grid; place-items: center;
  transition: background .2s, transform .2s;
}
.as-form button:hover { background: var(--red); transform: scale(1.05); }
.as-form button svg { width: 16px; height: 16px; }

.as-note { font-size: 10.5px; color: var(--steel-2); text-align: center; padding: 0 1rem .7rem; background: var(--surface-2); }

/* ---------- 18. FORMA / KONTAKT ---------- */
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: var(--t-xs); color: var(--steel-2); }
.form-status {
  padding: .8rem 1rem; border-radius: var(--r-sm);
  font-size: var(--t-sm); display: none;
}
.form-status.ok { display: block; background: rgba(30,140,80,.1); border: 1px solid rgba(30,140,80,.35); color: #1E8C50; }
.form-status.err { display: block; background: var(--red-wash); border: 1px solid var(--red-line); color: var(--red-deep); }

.contact-block { display: grid; gap: .3rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); }
.contact-block:first-child { padding-top: 0; }
.contact-block dt { font-size: var(--t-xs); color: var(--steel-2); }
.contact-block dd { margin: 0; font-size: var(--t-md); color: var(--ink); font-weight: 500; }
.contact-block dd a:hover { color: var(--red-deep); }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 16 / 11;
}
@media (min-width: 760px)  { .map-frame { aspect-ratio: 16 / 7; } }
@media (min-width: 1180px) { .map-frame { aspect-ratio: 21 / 6; } }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.75); }
html[data-theme="dark"] .map-frame iframe { filter: invert(.92) hue-rotate(180deg) saturate(.6); }

/* ---------- 19. STRANIČNI HERO — fotografija, kraća od početne ----------
   Svaka strana dobija svoj kadar (--focal), svoj nagib preklopa
   (--scrim-angle) i svoje uvećanje (--focal-zoom), da se tri fotografije
   na devet strana ne čitaju kao isto zaglavlje sa drugim tekstom. */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 46vh;
  min-height: 380px;
  margin-inline: var(--inset);
  border-radius: 0 0 var(--r-hero) var(--r-hero);
  display: flex;
  align-items: flex-end;
  background: var(--dark);
}
.page-hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
  transform: scale(var(--focal-zoom, 1));
  filter: var(--photo-grade);
}
.page-hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(14,16,18,.90) 0%, rgba(14,16,18,.64) 44%, rgba(14,16,18,.20) 80%, transparent 100%),
    linear-gradient(var(--scrim-angle, 105deg), rgba(20,22,24,.80) 0%, rgba(20,22,24,.44) 52%, rgba(20,22,24,.12) 100%),
    rgba(10,11,12, var(--photo-veil));
}
.page-hero .hero-guides { z-index: 2; }
.page-hero .wrap {
  position: relative; z-index: 3;
  padding-block: clamp(1.75rem, 4vw, 3rem);
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
  max-width: 20ch;
}
.page-hero .lead { color: rgba(255,255,255,.88); margin-top: 1rem; max-width: 62ch; }

/* Na foto-zaglavlju i sam H1 ulazi u sekvencu (nema unutrašnjih redova) */
.page-hero .hero-seq > h1 { opacity: 0; transform: translateY(22px); }
.page-hero .hero-seq.is-ready > h1 { animation: seqIn .9s var(--ease-out) .15s both; }
.page-hero .hero-seq.is-ready > .crumbs { animation-delay: .06s; }
.page-hero .hero-seq.is-ready > .lead   { animation-delay: .24s; }

.crumbs {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: var(--t-xs);
  color: rgba(255,255,255,.72);
  margin-bottom: 1.15rem;
}
.crumbs a { color: rgba(255,255,255,.72); transition: color .15s; }
.crumbs a:hover { color: #fff; }
.crumbs > span { opacity: .5; }
.crumbs [aria-current] { color: #fff; opacity: 1; }

/* ---------- 20. ANIMACIJE OTKRIVANJA ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }

/* Ulaz heroja: nadnaslov, svaki red naslova, podnaslov, dugmad — po 90 ms */
.hero-seq > * { opacity: 0; transform: translateY(22px); }
.hero-seq > h1 { opacity: 1; transform: none; }
.hero-seq > h1 > span, .hero-seq > h1 > em { display: block; opacity: 0; transform: translateY(22px); }

.hero-seq.is-ready > *:not(h1),
.hero-seq.is-ready > h1 > span,
.hero-seq.is-ready > h1 > em { animation: seqIn .9s var(--ease-out) both; }

.hero-seq.is-ready > .tag        { animation-delay: .06s; }
.hero-seq.is-ready > h1 > span   { animation-delay: .15s; }
.hero-seq.is-ready > h1 > em     { animation-delay: .24s; }
.hero-seq.is-ready > .hero-lead  { animation-delay: .33s; }
.hero-seq.is-ready > .btn-row    { animation-delay: .42s; }
@keyframes seqIn { to { opacity: 1; transform: none; } }

/* Traka koja klizi (partneri / primene) */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: slide 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  padding: .95rem 2rem;
  font-family: var(--mono); font-size: var(--t-xs);
  color: var(--steel);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 2rem;
}
.marquee-track span::after { content: ""; width: 4px; height: 4px; background: var(--red); opacity: .55; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 21. POMOĆNE ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mt-4 { margin-top: 3rem; }
.text-c { text-align: center; }
.mx-auto { margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; top: -60px; left: 1rem; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: .7rem 1.1rem; border-radius: var(--r);
  transition: top .25s;
}
.skip:focus { top: 1rem; }

.hl { color: var(--red-deep); }
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: 14px;
  padding: .28rem .6rem;
  border: 1px solid var(--red-line);
  background: var(--red-wash);
  color: var(--red-ink);
  border-radius: var(--r-sm);
}
html[data-theme="dark"] .badge { color: var(--red-ink); }

.divider-num {
  font-family: var(--mono); font-size: var(--t-xs);
  color: var(--steel-2);
  display: flex; align-items: center; gap: .8rem;
}
.divider-num::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- 22. PRISTUPAČNOST / SMANJENO KRETANJE ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero-seq > *, .hero-seq > h1 > span, .hero-seq > h1 > em { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}

/* ---------- 23. ŠTAMPA ---------- */
@media print {
  .header, .utility, .dock, .assistant, .footer, .marquee, .progress { display: none !important; }
  body { background: #fff; color: #000; }
  .sheet, .card, .tool { border-color: #999; box-shadow: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9px; color: #555; }
}

/* ---------- 24. DOPUNSKE KOMPONENTE ---------- */

/* Atribut hidden mora da nadjaca display iz .field, .tile i slicnih pravila */
[hidden] { display: none !important; }


/* Blokovi karakteristika (bez numeracije — nisu redosled) */
.tiles { display: grid; gap: 0; }
@media (min-width: 720px) {
  .tiles--2 { grid-template-columns: 1fr 1fr; column-gap: clamp(1.5rem, 3vw, 3rem); }
}
.tile { padding: 1.35rem 0; border-top: 1px solid var(--line); }
.tile h3, .tile h4 { font-size: var(--t-md); font-weight: 600; font-variation-settings: "wdth" 96; letter-spacing: -.01em; margin-bottom: .4rem; }
.tile p { font-size: var(--t-sm); color: var(--steel); max-width: 46ch; }
.dark-band .tile { border-color: var(--dark-line); }
.dark-band .tile p { color: var(--on-dark-dim); }

/* Vremenska osa — godina nosi informaciju, ne redni broj */
.years { list-style: none; padding: 0; display: grid; gap: 0; }
.years li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.years li:last-child { border-bottom: 1px solid var(--line); }
.years .y {
  font-family: var(--mono);
  font-size: var(--t-sm);
  color: var(--red-deep);
  padding-top: .18rem;
  font-variant-numeric: tabular-nums;
}
.years h4 { margin-bottom: .3rem; }
.years p { font-size: var(--t-sm); color: var(--steel); max-width: 60ch; }

/* Lista parametara */
.speclist { display: grid; gap: 0; margin: 0; }
.speclist > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: 1rem;
  align-items: baseline;
  padding: .78rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.speclist dt { font-size: var(--t-sm); color: var(--steel); }
.speclist dd {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-sm);
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 520px) {
  .speclist > div { grid-template-columns: 1fr; gap: .15rem; }
  .speclist dd { text-align: left; }
}

/* Lista sa oznakama */
.checklist { list-style: none; padding: 0; display: grid; gap: 0; }
.checklist li {
  display: flex;
  gap: .85rem;
  padding: .78rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--t-sm);
  color: var(--steel);
}
.checklist li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin-top: .58rem;
  background: var(--red);
  opacity: .8;
}

/* Ravnomernije poravnanje CTA reda unutar split-a */
.split > .btn-row { align-items: center; }

/* ============================================================
   25. REDIZAJN — nove komponente
   ============================================================ */

/* ---------- 25.1 PRELOADER ---------- */
.preloader {
  position: fixed; inset: 0;
  z-index: 999;
  background: var(--paper);
  display: grid; place-items: center;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.preloader[data-done="true"] { opacity: 0; transform: translateY(-8px); }
.preloader[hidden] { display: none !important; }
@media (max-width: 900px) { .preloader { display: none !important; } }
.preloader-in { display: grid; justify-items: center; gap: 1.4rem; }
.preloader img { width: 180px; height: auto; }
html[data-theme="dark"] .preloader img { filter: brightness(0) invert(1); }
.preloader-bar {
  width: 160px; height: 2px;
  background: var(--line);
  overflow: hidden;
}
.preloader-bar i {
  display: block; height: 100%; width: 100%;
  background: var(--red);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .4s var(--ease);
}

/* ---------- 25.2 DUGME SA KRUŽNOM ZNAČKOM ---------- */
.btn-arrow {
  position: relative;
  display: inline-flex; align-items: center; gap: .95rem;
  padding: .5rem .5rem .5rem 1.5rem;
  border-radius: 999px;
  background: #fff; color: var(--ink);
  font-size: var(--t-sm); font-weight: 600;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease);
}
.btn-arrow-badge {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  background: var(--red-fill); color: #fff;
  display: grid; place-items: center;
  transition: transform .3s var(--ease-out);
}
.btn-arrow-badge svg { width: 14px; height: 14px; }
.btn-arrow:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.65); }
.btn-arrow:hover .btn-arrow-badge { transform: rotate(45deg); }

.btn--ghost-light {
  border-color: rgba(255,255,255,.55);
  color: #fff;
  background: transparent;
  border-radius: 999px;
  padding: .82rem 1.6rem;
}
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; }

/* ---------- 25.3 RED OD TRI KARTICE ---------- */
.trio { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .trio { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .trio { grid-template-columns: repeat(3, 1fr); } }

.tcard {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 250px;
  padding: 34px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  color: var(--ink-2);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease);
}
.tcard--fill { background: var(--red-fill); color: rgba(255,255,255,.92); }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }

.tcard-arcs {
  position: absolute; top: -70px; right: -70px;
  width: 240px; height: 240px;
  z-index: -1;
  color: var(--ink);
  opacity: .07;
  transition: transform .5s var(--ease-out);
}
.tcard--fill .tcard-arcs { color: #fff; opacity: .16; }
.tcard:hover .tcard-arcs { transform: rotate(6deg); }

.tcard-top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.tcard-badge {
  width: 40px; height: 40px; flex: none;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--red-fill); color: #fff;
}
.tcard--fill .tcard-badge { background: #fff; color: var(--red-fill); }
.tcard-badge svg { width: 18px; height: 18px; }
.tcard-top h2, .tcard-top h3 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -.02em; margin: 0; }
.tcard--fill h2, .tcard--fill h3 { color: #fff; }
.tcard p { font-size: var(--t-sm); color: var(--steel); max-width: 34ch; }
.tcard--fill p { color: rgba(255,255,255,.92); }

.tcard .link { margin-top: auto; padding-top: 1.8rem; align-self: flex-start; }
.tcard--fill .link { color: #fff; border-color: rgba(255,255,255,.5); }
.tcard--fill .link:hover { color: #fff; border-color: #fff; }
.tcard .link svg { transition: transform .25s var(--ease-out); }
.tcard:hover .link svg { transform: translate(3px, -3px); }

/* ---------- 25.4 MREŽA REFERENCI ("projekti") ---------- */
.proj-grid { display: grid; gap: 44px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }

/* Oznaka (godina ili PN) ne sme da gura naslov preko ivice na uskom
   ekranu — red se prelama, naslov se skuplja. */
.proj-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .5rem 1rem; flex-wrap: wrap;
}
.proj-head h2, .proj-head h3 {
  font-size: var(--t-md); font-weight: 600; letter-spacing: -.015em;
  flex: 1 1 12ch; min-width: 0;
}
.proj-stamp {
  flex: none;
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: var(--t-sm);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.proj-stamp::before {
  content: ""; width: 6px; height: 6px; flex: none;
  border-radius: 50%; background: var(--red);
}
.proj-rule { height: 1px; background: var(--line); margin: .75rem 0 1.15rem; }

.proj-shot {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--surface-2);
}
.proj-shot img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 50%); filter: var(--photo-grade); transition: transform .7s var(--ease-out); }
.proj:hover .proj-shot img { transform: scale(1.04); }

.proj-desc { margin-top: 1.1rem; font-size: var(--t-sm); color: var(--steel); }

.proj-spec {
  margin: 1.1rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.proj-spec > div { display: grid; grid-template-columns: 118px minmax(0, 1fr); }
.proj-spec > div + div { border-top: 1px solid var(--line); }
.proj-spec dt {
  padding: .7rem .95rem;
  font-size: var(--t-sm); color: var(--steel);
  border-right: 1px solid var(--line);
}
.proj-spec dd {
  margin: 0;
  padding: .7rem .95rem;
  font-family: var(--mono); font-size: var(--t-sm);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.proj-more { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: flex; justify-content: center; }
.btn--pill {
  border-radius: 999px;
  padding: .85rem 1.75rem;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--pill:hover { border-color: var(--ink); background: var(--surface); }

/* ---------- 25.5 PUNA CTA TRAKA SA FOTOGRAFIJOM ---------- */
.ctaband {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 520px;
  height: 72vh;
  margin-inline: var(--inset);
  border-radius: var(--r-hero) var(--r-hero) 0 0;
  display: flex; align-items: center;
  background: var(--dark);
}
.ctaband-media { position: absolute; inset: -12% 0; z-index: 0; will-change: transform; }
.ctaband-media img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 58%; filter: var(--photo-grade); }
.ctaband-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(105deg, rgba(16,18,20,.88) 0%, rgba(16,18,20,.62) 48%, rgba(16,18,20,.24) 100%),
    linear-gradient(to top, rgba(16,18,20,.40), transparent 62%),
    rgba(10,11,12, var(--photo-veil));
}
.ctaband .hero-guides { z-index: 2; }
.ctaband-inner {
  position: relative; z-index: 3;
  width: min(100% - (var(--gut) * 2), var(--maxw));
  margin-inline: auto;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.ctaband .tag { color: rgba(255,255,255,.88); }
.ctaband .tag::before { background: var(--red-on-photo); }
.ctaband h2 {
  margin-block: 1.1rem 1.1rem;
  color: #fff;
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  text-wrap: initial;
}
.ctaband h2 span { display: block; }
.ctaband p { color: rgba(255,255,255,.88); max-width: 56ch; font-size: var(--t-md); }

.circle-cta {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
  width: 112px; height: 112px;
  border-radius: 50%;
  background: var(--red-fill); color: #fff;
  display: grid; place-items: center;
  font-size: var(--t-sm); font-weight: 600;
  transition: transform .3s var(--ease-out);
}
.circle-cta::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.85);
  opacity: 0;
  transform: scale(1);
  transition: transform .55s var(--ease-out), opacity .55s var(--ease-out);
}
.circle-cta:hover { transform: scale(1.06); }
.circle-cta:hover::after { transform: scale(1.28); opacity: 0; }
.circle-cta:hover::after { animation: ringOut 1.1s var(--ease-out) infinite; }
@keyframes ringOut {
  0%   { transform: scale(1);    opacity: .9; }
  100% { transform: scale(1.42); opacity: 0; }
}

/* ---------- 25.6 SEKCIJA SA POTPISNOM SHEMOM ---------- */
.figband .specstrip { margin-top: clamp(2rem, 4vw, 3rem); border-radius: var(--r); }
.figband-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 1020px) {
  .figband-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
}

/* ---------- 25.7 FOTOGRAFIJA U KARTICI PROGRAMA ---------- */
.card-shot {
  margin: calc(clamp(1.35rem, 2.6vw, 1.9rem) * -1) calc(clamp(1.35rem, 2.6vw, 1.9rem) * -1) 1.4rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r) var(--r) 0 0;
  background: var(--surface-2);
}
.card-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.card:hover .card-shot img { transform: scale(1.05); }

/* ---------- 25.8 PODNOŽJE — nova mreža ---------- */
.footer .brand img { width: 120px; filter: brightness(0) invert(1); }
.footer-addr { font-size: var(--t-sm); margin-top: .9rem; color: var(--on-dark-dim); }
.footer ul a {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.footer ul a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .35s var(--ease-out);
}
.footer ul a:hover::after { transform: scaleX(1); }
.footer-legal { justify-content: space-between; }
.footer-legal > span:nth-child(2) { text-align: center; }

/* ---------- 25.9 PRELAZ IZMEĐU STRANA ---------- */
body { transition: background-color .5s var(--ease), color .5s var(--ease), opacity .22s linear; }
body.is-leaving { opacity: 0; }

/* ---------- 25.10 NASLOVI SE OTKRIVAJU BRISANJEM ----------
   clip-path ide na unutrašnji span, ne na posmatrani element:
   IntersectionObserver računa preseceni okvir, pa bi element
   sa clip-path-om 100% zauvek ostao "nevidljiv" i nikad se ne bi
   otkrio. Negativni inseti čuvaju donje repove slova i kvačice. */
[data-wipe] > .wipe {
  display: block;
  clip-path: inset(-0.15em 100% -0.3em 0);
  transition: clip-path .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-wipe].is-in > .wipe { clip-path: inset(-0.15em -0.12em -0.3em 0); }

/* ---------- 25.11 SMANJENO KRETANJE ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active img,
  .hero-dots button[aria-current="true"] i,
  .circle-cta:hover::after { animation: none !important; }
  .hero-slide img { transform: scale(var(--zoom)); }
  .hero-dots button[aria-current="true"] i { transform: scaleX(1); }
  .ctaband-media { transform: none !important; }
  [data-wipe] > .wipe { clip-path: none !important; }
  body.is-leaving { opacity: 1; }
}


/* ============================================================
   26. UNUTRAŠNJE STRANE
   ============================================================ */

/* ---------- 26.1 O NAMA — vremenska osa kao horizontalna šina ---------- */
.rail { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.rail li {
  display: grid; grid-template-columns: 74px 1fr; gap: 1.2rem;
  padding: 1.4rem 0; border-top: 1px solid var(--line);
}
.rail li:last-child { border-bottom: 1px solid var(--line); }
.rail .y {
  font-family: var(--mono); font-size: var(--t-sm); color: var(--red-deep);
  padding-top: .18rem; font-variant-numeric: tabular-nums;
}
.rail h3 { font-size: var(--t-md); font-weight: 600; margin-bottom: .3rem; }
.rail p { font-size: var(--t-sm); color: var(--steel); max-width: 60ch; }

@media (min-width: 920px) {
  .rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px; position: relative; padding-top: 52px;
  }
  .rail::before {
    content: ""; position: absolute; top: 16px; left: 0; right: 0;
    height: 1px; background: var(--line);
  }
  .rail li { display: block; padding: 0; border: 0; position: relative; }
  .rail li:last-child { border-bottom: 0; }
  .rail li::before {
    content: ""; position: absolute; top: -42px; left: 0;
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px var(--paper);
  }
  .rail .y { display: block; padding: 0 0 .6rem; font-size: var(--t-md); }
}

/* ---------- 26.2 O NAMA — pločice standarda ---------- */
.badge-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.badge-tile {
  border: 1px solid var(--dark-line);
  border-radius: var(--r);
  padding: 20px;
  background: rgba(255,255,255,.03);
  transition: border-color .3s var(--ease), transform .3s var(--ease-out);
}
.badge-tile:hover { border-color: rgba(255,255,255,.28); transform: translateY(-3px); }
.badge-tile b {
  display: block;
  font-family: var(--display);
  font-variation-settings: "wdth" 92;
  font-size: var(--t-lg); font-weight: 500; letter-spacing: -.02em;
  color: #fff;
}
.badge-tile > span { display: block; margin-top: .5rem; font-size: var(--t-sm); color: var(--on-dark-dim); }
.badge-tile::after { content: ""; display: block; width: 24px; height: 2px; background: var(--red); margin-top: 14px; }

/* ---------- 26.3 PROIZVODI — naizmenični redovi ---------- */
.prow { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
.prow + .prow { margin-top: clamp(48px, 8vw, 96px); }
@media (min-width: 900px) {
  .prow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .prow--rev .prow-media { order: 2; }
}
.prow-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.prow-media picture { display: block; width: 100%; height: 100%; }
.prow-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--focal, 50% 50%);
  filter: var(--photo-grade);
  transition: transform .7s var(--ease-out);
}
.prow:hover .prow-media img { transform: scale(1.04); }
.prow h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-block: .6rem .9rem; }
.prow .speclist { margin-top: 1.5rem; }
.prow .link { margin-top: 1.75rem; }

/* ---------- 26.4 TERMOTEHNIKA — dijagram efikasnosti ---------- */
.effchart { width: 100%; height: auto; overflow: visible; }
.effchart .eff-bar {
  transform: scaleX(0);
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform .7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.effchart.is-in .eff-bar { transform: scaleX(var(--v, 1)); }
.effchart .eff-label { font-family: var(--body); font-size: 11px; fill: var(--steel); }
.effchart .eff-value { font-family: var(--mono); font-size: 11.5px; fill: var(--ink); }
.effchart .eff-group { font-family: var(--body); font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.effchart .eff-axis { stroke: var(--line); stroke-width: 1; }
.eff-legend { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.25rem; font-size: var(--t-xs); color: var(--steel); }
.eff-legend > span { display: inline-flex; align-items: center; gap: .55rem; }
.eff-legend i { width: 16px; height: 8px; border-radius: 2px; flex: none; }

/* ---------- 26.5 VODOSNABDEVANJE — puna scena za presek ---------- */
.figstage { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (min-width: 1020px) { .figstage { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }

/* ---------- 26.6 NAFTA — istaknuto obaveštenje ---------- */
.callout {
  border: 1px solid var(--red-line);
  border-left: 3px solid var(--red);
  background: var(--red-wash);
  border-radius: var(--r);
  padding: clamp(20px, 3vw, 28px);
}
.callout h3 { font-size: var(--t-lg); }
.callout p { margin-top: .75rem; font-size: var(--t-sm); color: var(--steel); max-width: 56ch; }
.callout .link { margin-top: 1.25rem; }

/* ---------- 26.7 REFERENCE — filter pilule i skelet ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  width: max-content; max-width: 100%;
  margin-bottom: 32px;
}
.filters button {
  padding: .5rem 1.05rem;
  border: 0;
  border-radius: 999px;
  font-size: var(--t-sm); font-weight: 500;
  color: var(--steel);
  background: transparent;
  white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
/* broj u filteru: ista boja kao natpis (prozirnost je spuštala kontrast na 2,4–4,5 : 1), razlikuje ga mono slog */
.filters .count { font-family: var(--mono); font-size: 14px; opacity: 1; color: inherit; margin-left: .4rem; }

.skel { display: grid; gap: 44px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .skel { grid-template-columns: repeat(2, 1fr); } }
.skel-item > *:not(.skel-rule) { background: var(--surface-2); border-radius: 6px; animation: skelPulse 1.4s ease-in-out infinite; }
.skel-head { height: 18px; width: 62%; }
.skel-rule { height: 1px; margin: 20px 0; background: var(--line); }
.skel-shot { aspect-ratio: 16 / 11; border-radius: 14px; }
.skel-line { height: 12px; width: 80%; margin-top: 18px; }
.skel-table { height: 92px; margin-top: 18px; border-radius: var(--r-sm); }
@keyframes skelPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- 26.8 ALATI — mreža kalkulatora ---------- */
.tool { display: flex; flex-direction: column; }
.tool-head { display: flex; align-items: flex-start; gap: 14px; }
.tool-num {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--red-fill); color: #fff;
  font-family: var(--mono); font-size: 14px;
  margin-top: 2px;
}
.tool-head h2, .tool-head h3 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -.02em; }
.tool-head-text { min-width: 0; }
.tool-body { flex: 1; display: flex; flex-direction: column; }
.tool-body > .result { margin-top: auto; }

/* ---------- 26.9 KONTAKT ---------- */
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red-deep); }
.field-err { display: none; font-size: var(--t-xs); color: var(--red-ink); margin-top: .3rem; }
.field.is-invalid .field-err { display: block; }
.btn[aria-busy="true"] { opacity: .72; pointer-events: none; }

/* ---------- 26.10 TABELE — lepljivo zaglavlje i ivica koja bledi ---------- */
.table-wrap thead th { position: sticky; top: 0; z-index: 2; }
.table-scroll { position: relative; }
.table-scroll::after {
  content: ""; position: absolute; top: 1px; right: 1px; bottom: 1px;
  width: 44px; pointer-events: none;
  border-radius: 0 var(--r) var(--r) 0;
  background: linear-gradient(to right, transparent, var(--surface));
  opacity: 0; transition: opacity .3s var(--ease);
}
.table-scroll.has-overflow::after { opacity: 1; }

/* ---------- 26.11 SMANJENO KRETANJE ---------- */
@media (prefers-reduced-motion: reduce) {
  .effchart .eff-bar { transform: scaleX(var(--v, 1)) !important; }
  .skel-item > *:not(.skel-rule) { animation: none; }
}

/* ============================================================
   27. KATALOG 2026 — familije proizvoda
   Pozajmljeno iz kataloga: traka sekcije u boji familije, kružna
   ikona uz dvoredni naslov, legenda uz tehnički crtež, modul
   crteža sa listom. Boje se razrešavaju kroz data-section (plava / zelena / crvena).
   ============================================================ */

[data-section="blue"]  { --sec: var(--sec-blue);  --sec-fill: var(--sec-blue-fill); }
[data-section="green"] { --sec: var(--sec-green); --sec-fill: var(--sec-green-fill); }
[data-section="red"]   { --sec: var(--sec-red);   --sec-fill: var(--sec-red-fill); }

/* ---------- 27.1 Traka sekcije ---------- */
.band-title {
  background: var(--sec-fill, var(--red-fill));
  color: #fff;
  border-radius: var(--r-sm);
  padding: .68rem 1.25rem;
  font-family: var(--display);
  font-variation-settings: "wdth" 76;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.3vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ---------- 27.2 Kružna ikona + dvoredni naslov ---------- */
.lockup { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.4rem); }
.lockup-badge {
  flex: none;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--sec, var(--red-deep));
  color: var(--sec, var(--red-deep));
  display: grid; place-items: center;
}
.lockup-badge svg { width: 34px; height: 34px; }
.lockup-text h2, .lockup-text h1 {
  font-family: var(--display);
  font-variation-settings: "wdth" 80;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--sec, var(--ink));
}
.lockup-text .sub {
  display: block;
  margin-top: .3rem;
  font-size: var(--t-sm);
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- 27.3 Legenda tehničkog crteža ---------- */
.legend { width: 100%; max-width: 420px; border-collapse: collapse; font-size: var(--t-sm); }
.legend caption {
  text-align: left;
  font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--steel-2);
  padding-bottom: .5rem;
}
.legend th {
  background: var(--sec-fill, var(--ink-2));
  color: #fff;
  font-weight: 600;
  font-size: var(--t-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  padding: .5rem .75rem;
}
.legend th:first-child { border-radius: var(--r-sm) 0 0 0; text-align: right; }
.legend th:last-child  { border-radius: 0 var(--r-sm) 0 0; }
.legend td { padding: .48rem .75rem; border-bottom: 1px solid var(--line-soft); color: var(--steel); vertical-align: top; }
.legend td:first-child {
  font-family: var(--mono); font-size: var(--t-xs);
  color: var(--ink);
  text-align: right; white-space: nowrap;
  width: 4.5ch;
}
.legend tfoot td { font-size: var(--t-xs); color: var(--steel-2); border-bottom: 0; padding-top: .6rem; }

/* Broj poziv-oznake na crtežu — odgovara prvom stupcu legende */
.svg-callout { font-family: var(--mono); font-size: 11px; font-weight: 500; fill: var(--ink); }
.svg-note    { font-family: var(--mono); font-size: 9px; fill: var(--steel-2); }

/* ---------- 27.4 Modul tehničkog crteža ---------- */
.techsheet { display: grid; gap: clamp(24px, 4vw, 44px); align-items: start; }
@media (min-width: 980px) {
  .techsheet { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
}
.techsheet-side { display: grid; gap: clamp(20px, 3vw, 32px); justify-items: start; }
.techsheet-plate {
  position: relative;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(18px, 3.4vw, 36px);
  overflow: hidden;
}
.techsheet-plate::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 42%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 85% 80% at 50% 42%, #000 30%, transparent 85%);
  pointer-events: none;
}
.techsheet-plate > svg { position: relative; display: block; width: 100%; height: auto; }
.techsheet-cap {
  position: relative;
  margin-top: .9rem;
  font-family: var(--mono); font-size: var(--t-xs);
  color: var(--steel-2);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* Dvostruki crtež (načini ugradnje) unutar modula */
.techsheet-duo { display: grid; gap: clamp(16px, 2.5vw, 28px); }
@media (min-width: 720px) { .techsheet-duo { grid-template-columns: 1fr 1fr; } }

/* ---------- 27.5 Familijski akcenti u nasleđenim komponentama ---------- */
[data-section] .checklist li::before { background: var(--sec); }
[data-section] .callout { border-left-color: var(--sec); }
[data-section] .badge {
  border-color: color-mix(in srgb, var(--sec) 40%, transparent);
  background: color-mix(in srgb, var(--sec) 8%, transparent);
  color: var(--sec);
}
.dark-band[data-section] .badge-tile::after { background: var(--sec); }

/* Red proizvoda sa tehničkom ilustracijom umesto fotografije —
   tri fotografije ne smeju da se ponavljaju u istom vidnom polju */
.prow-media--plate {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid; place-items: center;
}
.prow-media--plate::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, #000 30%, transparent 85%);
  pointer-events: none;
}
.prow-media--plate svg { position: relative; width: 78%; height: auto; max-height: 86%; }

/* Fotografije iz kataloga — nikad šire od izvornog zapisa */
.native-shot { border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.native-shot img { display: block; width: 100%; height: auto; filter: var(--photo-grade); }
.shot-duo { display: grid; gap: 16px; }
@media (min-width: 640px) { .shot-duo { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Traka četvrte grupe na naslovnici — ne remeti red od tri kartice */
.bsvstrip {
  margin-top: clamp(24px, 4vw, 40px);
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sec, var(--red-fill));
  border-radius: var(--r);
  padding: clamp(1.1rem, 2.6vw, 1.6rem) clamp(1.1rem, 3vw, 2rem);
}
.bsvstrip .lockup-badge { width: 52px; height: 52px; }
.bsvstrip .lockup-badge svg { width: 28px; height: 28px; }
.bsvstrip-text { flex: 1 1 30ch; min-width: 0; }
.bsvstrip-text h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 80;
  font-weight: 700; font-size: var(--t-lg);
  text-transform: uppercase; letter-spacing: .01em;
  color: var(--sec, var(--ink));
}
.bsvstrip-text p { margin-top: .35rem; font-size: var(--t-sm); color: var(--steel); }
.bsvstrip .link { flex: none; }

/* ---------- 27.6 Sertifikati — broj i rok iz TS.certs ---------- */
.badge-tile .cert-meta {
  display: block;
  margin-top: .55rem;
  font-family: var(--mono); font-size: 14px;
  color: var(--on-dark-dim);
  letter-spacing: .02em;
}

/* ---------- 27.7 Harmonizovane norme ---------- */
.stdgrid { display: grid; gap: clamp(24px, 4vw, 40px); }
@media (min-width: 900px) { .stdgrid { grid-template-columns: 1fr 1fr; } }
.stdgrid h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -.01em; }
.stdlist { display: grid; gap: 0; margin-top: .9rem; }
.stdlist > div {
  display: grid;
  grid-template-columns: minmax(11ch, 15ch) 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: .52rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.stdlist dt { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink); }
.stdlist dd { margin: 0; font-size: var(--t-sm); color: var(--steel); }
@media (max-width: 560px) {
  .stdlist > div { grid-template-columns: 1fr; gap: .15rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .techsheet [data-reveal] { will-change: transform, opacity; }
}

/* --------------------------------------------------------------------------
   28. 404
   -------------------------------------------------------------------------- */
.nf-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .35rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 780px;
}
.nf-links li { border-top: 1px solid var(--line); }
.nf-links .link { padding-block: .7rem; }

/* ============================================================
   29. MAKETA — interaktivni 3D model PUP uređaja (js/model.js)
   Panel drži <picture> kao rezervu; platno ubacuje skripta.
   ============================================================ */
.mk-eyebrow {
  display: block;
  font-size: var(--t-sm); letter-spacing: .12em; text-transform: uppercase;
  color: var(--steel);
}
.mk-h {
  margin-top: .35rem;
  font-family: var(--display);
  font-variation-settings: "wdth" 80;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.15; letter-spacing: .01em; text-transform: uppercase;
  color: var(--sec, var(--ink));
}
.mk-panel {
  position: relative;
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
@media (max-width: 640px) { .mk-panel { aspect-ratio: 3 / 4; } }
.mk-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 4%; }
.mk-fallback img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.mk-panel[data-state="ready"] .mk-fallback { display: none; }
.mk-panel canvas {
  display: block; width: 100%; height: 100%;
  opacity: 0; transition: opacity .6s var(--ease);
  touch-action: none; outline: none;
}
.mk-panel[data-state="ready"] canvas { opacity: 1; }
.mk-panel canvas:focus-visible { outline: 2px solid var(--sec, var(--red)); outline-offset: -2px; }
.mk-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  padding: .35rem .7rem; border-radius: 999px;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  color: var(--ink);
  font-family: var(--mono); font-size: var(--t-xs); white-space: nowrap;
  pointer-events: none;
  opacity: 0; transition: opacity .4s;
}
.mk-panel[data-state="ready"] .mk-hint { opacity: 1; }
.mk-panel[data-state="ready"] .mk-hint[data-hidden="true"] { opacity: 0; }
.mk-readout { margin-top: 1rem; font-size: var(--t-sm); color: var(--steel); min-height: 2.6em; }
.mk-states { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .6rem; }
.mk-states button {
  flex: 1 1 auto; min-width: 62px;
  padding: .5rem .5rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 14px;
  color: var(--steel); background: var(--surface);
  transition: all .25s var(--ease);
}
.mk-states button:hover { border-color: var(--line-strong); color: var(--ink); }
.mk-states button[aria-pressed="true"] { background: var(--sec-fill, var(--ink)); border-color: var(--sec-fill, var(--ink)); color: #fff; }
.mk-caption { margin-top: .9rem; font-size: var(--t-xs); color: var(--steel-2); }
@media (prefers-reduced-motion: reduce) {
  .mk-panel canvas, .mk-hint { transition: none; }
}

/* ============================================================
   30. TRI OBLASTI PRIMENE — plava, zelena, crvena
   Redosled je prioritet i važi svuda: navigacija, naslovna,
   pregled programa, podnožje, reference, asistent.
   ============================================================ */

/* ---------- 30.1 Tačka u boji oblasti ---------- */
.secdot {
  flex: none;
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sec-fill, var(--steel));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sec-fill, var(--steel)) 16%, transparent);
}
html[data-theme="dark"] .secdot { background: var(--sec); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sec) 22%, transparent); }

/* ---------- 30.2 Padajući meni „Proizvodi" — četiri reda ---------- */
.submenu { min-width: 372px; }
.submenu a[data-section] {
  grid-template-columns: 10px minmax(0, 1fr);
  column-gap: .75rem;
  align-items: baseline;
}
.submenu a[data-section] .secdot { grid-row: 1 / span 2; align-self: start; margin-top: .32rem; }
.submenu a[data-section] b { color: var(--sec); }
.submenu a[data-section]:hover { background: color-mix(in srgb, var(--sec-fill) 7%, var(--surface)); }
.submenu-rule { display: block; height: 1px; background: var(--line); margin: .3rem .8rem; }
.submenu a.submenu-all { padding-left: calc(.8rem + 10px + .75rem); }

/* Sedam stavki ne staje u pilulu na 1020 px — zbija se razmak do 1240 px */
@media (min-width: 1020px) and (max-width: 1239px) {
  .navpill a { padding: .5rem .72rem; font-size: 14px; }
  .has-sub > a { padding-right: 1.3rem; }
  .has-sub > a::before { right: .72rem; }
  .header .header-cta { padding: .6rem 1rem; font-size: 14px; }
}

/* ---------- 30.3 Mobilni meni ---------- */
.mnav .sub a[data-section] { display: flex; align-items: center; gap: .65rem; color: var(--ink); }
.mnav .sub a.sub-all { padding-left: calc(10px + .65rem); }

/* ---------- 30.4 Podnožje — kolona Program ---------- */
.footer-prog a[data-section] { display: inline-flex; align-items: center; gap: .6rem; }
.footer .secdot { background: var(--sec-fill); box-shadow: 0 0 0 1.5px rgba(255,255,255,.4); }

/* ---------- 30.5 Akcenti unutar oblasti ----------
   Crvena logotipa ostaje za brend (logotip, globalni CTA, oznake van
   oblasti). Unutar data-section svaki akcenat prelazi u boju oblasti.
   --sec-dark je nijansa za tamne trake (#24262A), ista u obe teme. */
:root {
  --sec-blue-tint:  #7DB3E8;
  --sec-green-tint: #6DC595;
  --sec-red-tint:   #E8898C;
}
[data-section="blue"]  { --sec-dark: var(--sec-blue-tint); }
[data-section="green"] { --sec-dark: var(--sec-green-tint); }
[data-section="red"]   { --sec-dark: var(--sec-red-tint); }

[data-section] .checklist li::before,
[data-section] .proj-stamp::before { background: var(--sec); opacity: 1; }
[data-section] .result {
  border-color: color-mix(in srgb, var(--sec) 38%, transparent);
  background: color-mix(in srgb, var(--sec) 7%, transparent);
}
[data-section] .result b i,
[data-section] .card-code,
[data-section] .steps li::before,
[data-section] .years .y { color: var(--sec); }
[data-section] .formula { border-left-color: var(--sec); }
[data-section] .callout {
  border-color: color-mix(in srgb, var(--sec) 30%, transparent);
  border-left-color: var(--sec);
  background: color-mix(in srgb, var(--sec) 6%, transparent);
}
[data-section] .field input:focus, [data-section] .field select:focus, [data-section] .field textarea:focus {
  border-color: var(--sec);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sec) 18%, transparent);
}
[data-section] input[type="range"]::-webkit-slider-thumb { background: var(--sec); }
[data-section] input[type="range"]::-moz-range-thumb { background: var(--sec); }
[data-section] .acc-btn .mark::before, [data-section] .acc-btn .mark::after { background: var(--sec); }
[data-section] .tool-num { background: var(--sec-fill); }
[data-section] .card::before { background: var(--sec); }
[data-section] .cycle-steps button[aria-pressed="true"] { background: var(--sec-fill); border-color: var(--sec-fill); color: #fff; }
.dark-band[data-section] .badge-tile::after,
[data-section] .dark-band .badge-tile::after { background: var(--sec-dark); }
.dark-band[data-section] .steps li::before,
[data-section] .dark-band .steps li::before { color: var(--sec-dark); }
.svg-label--sec { fill: var(--sec, var(--cold)); }

/* ---------- 30.6 Presek posude — pet stanja ---------- */
.cycle-steps button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.cycle-steps button i { font-style: normal; opacity: .6; }
.cycle-steps button[aria-pressed="true"] i { opacity: .85; }
.vpump-tri { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; transition: fill .3s; }
.vpump[data-on="true"] .vpump-tri { fill: var(--sec, var(--cold)); stroke: var(--sec, var(--cold)); }
.vflow { transition: opacity .35s var(--ease); }
.vfig-limits {
  list-style: none; padding: 0; margin: .9rem 0 0;
  display: flex; flex-wrap: wrap; gap: .35rem .5rem;
}
.vfig-limits li {
  font-family: var(--mono); font-size: 14px; color: var(--steel);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .25rem .6rem;
}

/* napomena ispod preseka: pritisci su ilustrativni, izotermski od stanja 1 (TS.cycle) */
.vfig-note { margin: .7rem 0 0; font-size: 14px; color: var(--steel); }

/* ---------- 30.7 Lepljiva podnavigacija strane oblasti ---------- */
.subnav {
  position: sticky; top: var(--header-h); z-index: 60;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.subnav .wrap { padding-block: .55rem; }
.subnav-track {
  display: flex; gap: .4rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 2px;
}
.subnav-track::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .85rem;
  border: 1px solid color-mix(in srgb, var(--sec) 30%, var(--line));
  border-radius: 999px;
  font-size: var(--t-xs); font-weight: 600;
  color: var(--sec);
  background: var(--surface);
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.subnav a i { font-style: normal; font-family: var(--mono); font-weight: 400; }
.subnav a:hover { border-color: var(--sec); }
.subnav a[aria-current] { background: var(--sec-fill); border-color: var(--sec-fill); color: #fff; }
.subnav a:focus-visible { outline: 2px solid var(--sec); outline-offset: 2px; }
/* Sidra ispod fiksnog zaglavlja i lepljive trake */
.sec-block { scroll-margin-top: calc(var(--header-h) + 64px); }

/* Oznaka oblasti u foto-zaglavlju strane */
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase;
  color: #fff;
  background: var(--sec-fill);
  border-radius: 999px;
  padding: .32rem .8rem .32rem .6rem;
  margin-bottom: 1rem;
}
.sec-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: .85; }

/* ---------- 30.8 Blokovi strane Distribucija tečnih fluida ---------- */
.mt-5 { margin-top: clamp(3.5rem, 7vw, 5rem); }
.shot-cap {
  padding: .6rem .85rem;
  font-family: var(--mono); font-size: var(--t-xs); color: var(--steel);
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
}

/* Istaknuto upozorenje — isti tekst stoji iznad procene i iznad obrasca */
.callout--key { border-left-width: 5px; }
.callout--key h3 { font-size: var(--t-md); font-weight: 700; }
.callout--key p { max-width: 72ch; color: var(--ink-2); }

.hw-grid { display: grid; gap: clamp(20px, 3vw, 32px); align-items: start; }
@media (min-width: 1080px) { .hw-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.hw-profile { padding: clamp(14px, 2.4vw, 26px); }
.hw-profile-scroll { position: relative; overflow-x: auto; overscroll-behavior-x: contain; }
.hw-profile-scroll > svg { display: block; width: 100%; min-width: 640px; height: auto; }
.hw-note { font-size: var(--t-xs); color: var(--steel-2); }
.hw-out { margin: .5rem 0 0; display: grid; gap: .25rem; }
.hw-out > div { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--t-xs); }
.hw-out dt { color: var(--steel); }
.hw-out dd { margin: 0; font-family: var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.hw-flag {
  margin-top: .6rem !important;
  padding: .5rem .7rem;
  border-radius: var(--r-sm);
  font-size: var(--t-xs) !important; font-weight: 600;
}
.hw-flag[data-state="ok"]   { background: color-mix(in srgb, var(--sec, var(--cold)) 12%, transparent); color: var(--ink) !important; }
.hw-flag[data-state="over"] { background: var(--ink); color: var(--paper) !important; }

/* Dvodelni izbor (brzina / protok) */
.field-label { font-size: var(--t-xs); font-weight: 600; color: var(--ink); }
.seg {
  display: inline-flex; align-self: start;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 3px; gap: 3px; background: var(--surface);
}
.seg button {
  padding: .5rem .9rem; border-radius: 7px;
  font-size: var(--t-sm); color: var(--steel);
}
.seg button[aria-pressed="true"] { background: var(--sec-fill, var(--ink)); color: #fff; }
.seg button:focus-visible { outline: 2px solid var(--sec, var(--red)); outline-offset: 1px; }

@media (min-width: 640px) { .form-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .form-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .form-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .form-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.hw-form-sheet { overflow: hidden; }
.hw-form-sheet > .tool-head { display: flex; align-items: flex-start; gap: 14px; }
.hw-form-body { padding: clamp(1.1rem, 3vw, 1.75rem); display: grid; gap: 1.5rem; }
.hw-fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.hw-fs + .hw-fs { border-top: 1px solid var(--line-soft); padding-top: 1.4rem; margin-top: 1.4rem; }
.hw-fs legend {
  padding: 0; margin-bottom: .9rem;
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase;
  color: var(--sec, var(--steel));
}
.hw-pipe { min-width: 640px; }
.hw-pipe th, .hw-pipe td { padding: .35rem .4rem; vertical-align: middle; }
.hw-pipe .hw-idx { font-family: var(--mono); font-size: var(--t-xs); color: var(--steel); white-space: nowrap; }
.hw-pipe input {
  width: 100%; min-width: 64px;
  padding: .5rem .55rem;
  background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 8px;
  font-size: var(--t-sm); color: var(--ink);
}
.hw-pipe input.num { font-family: var(--mono); }
.hw-pipe input:focus { outline: 0; border-color: var(--sec); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sec) 18%, transparent); }
.hw-pipe td.is-invalid input { border-color: var(--red-deep); }
.hw-del {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 8px; color: var(--steel);
}
.hw-del svg { width: 14px; height: 14px; }
.hw-del:hover:not(:disabled) { color: var(--ink); border-color: var(--line-strong); }
.hw-del:disabled { opacity: .35; cursor: not-allowed; }

/* AKM-W-P — dva crteža, legenda i dve tablice mera */
.techsheet--akm { display: grid; gap: clamp(24px, 4vw, 40px); }
.techsheet-duo--wide { display: grid; gap: clamp(16px, 2.5vw, 28px); }
@media (min-width: 860px) { .techsheet-duo--wide { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.techsheet-side--row { display: grid; gap: clamp(20px, 3vw, 32px); align-items: start; }
@media (min-width: 860px) { .techsheet-side--row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dimtable caption {
  caption-side: top; text-align: left;
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase;
  color: var(--steel-2); padding: 0 0 .5rem;
}
.dimtable th { background: var(--sec-fill, var(--ink-2)); color: #fff; }

/* Primer iz prakse — postojeće / predloženo */
.compare { display: grid; gap: clamp(16px, 2.5vw, 28px); }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-col {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.2rem, 3vw, 1.75rem);
}
.compare-col h3 { font-size: var(--t-lg); }
.compare-col--new { border-color: color-mix(in srgb, var(--sec) 45%, var(--line)); box-shadow: inset 4px 0 0 var(--sec); }

/* Reference kao lista linkova */
.reflinks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.reflinks a {
  display: grid; gap: .2rem;
  padding: 1rem 1.15rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .2s, transform .3s var(--ease-out);
}
.reflinks a:hover { border-color: var(--sec); transform: translateX(3px); }
.reflinks b { font-size: var(--t-sm); color: var(--ink); }
.reflinks span { font-family: var(--mono); font-size: var(--t-xs); color: var(--steel); }
.techsheet.techsheet--akm { grid-template-columns: minmax(0, 1fr); }
.techsheet-side--row > * { min-width: 0; width: 100%; }

/* ---------- 30.9 Naslovna — tri slajda oblasti ---------- */
.hero .hero-seq { display: grid; }
.hero-copy { grid-area: 1 / 1; min-width: 0; transition: opacity .6s var(--ease), visibility .6s; }
.hero-copy:not(.is-active) { opacity: 0 !important; visibility: hidden; animation: none !important; }
.hero .hero-copy h1, .hero .hero-copy .hero-title {
  margin-block: 1.1rem 1.15rem;
  color: #fff;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  font-weight: 400;
  line-height: 1.02;
  text-wrap: initial;
}
.hero .hero-copy h1 span, .hero .hero-copy .hero-title span,
.hero .hero-copy h1 em, .hero .hero-copy .hero-title em { display: block; opacity: 1; transform: none; }
.hero .hero-copy h1 em, .hero .hero-copy .hero-title em { font-style: normal; color: var(--sec-dark, var(--red-on-photo)); }
.hero .hero-copy .tag::before { background: var(--sec-dark, var(--red-on-photo)); }
.hero-dots [data-section] i { background: var(--sec-dark); }
.hero-dots button[data-section]::before { background: rgba(255,255,255,.45); }


/* ---------- 30.10 Naslovna — tri kartice oblasti ---------- */
.tcard--sec:not(.tcard--fill) {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: inset 0 3px 0 var(--sec);
}
.tcard--sec:not(.tcard--fill) .tcard-arcs { color: var(--sec); opacity: .1; }
.tcard--sec .tcard-badge { background: var(--sec-fill); }
.tcard--fill.tcard--sec { background: var(--sec-fill); }
.tcard--fill.tcard--sec .tcard-badge { background: #fff; color: var(--sec-fill); }
.tcard--sec .tcard-top h2 { display: grid; gap: .15rem; }
.tcard-num { font-family: var(--mono); font-size: var(--t-xs); font-weight: 400; letter-spacing: .1em; color: var(--sec); }
.tcard--fill .tcard-num { color: rgba(255,255,255,.75); }
.tcard--sec:not(.tcard--fill) .link { border-color: color-mix(in srgb, var(--sec) 40%, transparent); }
.tcard--sec:not(.tcard--fill) .link:hover { border-color: var(--sec); color: var(--sec); }
.tcard-chips { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tcard-chips li {
  font-family: var(--mono); font-size: 14px;
  padding: .22rem .6rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sec) 35%, transparent);
  color: var(--sec);
}
.tcard--fill .tcard-chips li { border-color: rgba(255,255,255,.45); color: #fff; }

/* Traka parametara po oblastima */
.specstrip--sec > div[data-section] { box-shadow: inset 0 3px 0 var(--sec); }
.specstrip--sec > div[data-section] b i { color: var(--sec); }
.marquee-track span::after { background: var(--steel-2); }

/* ---------- 30.11 Reference — istaknuta kartica ---------- */
.proj--featured {
  grid-column: 1 / -1;
  display: grid; gap: clamp(20px, 3.5vw, 44px);
  padding: clamp(16px, 2.5vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: inset 0 4px 0 var(--sec);
}
@media (min-width: 900px) { .proj--featured { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.proj--featured .proj-shot { aspect-ratio: 3 / 2; }
.proj--featured .proj-head h2, .proj--featured .proj-head h3 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; }
.proj-kicker {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase;
  color: var(--sec); margin-bottom: .6rem;
}
.proj-plants { margin-top: 1rem; }
.proj-plants th { background: var(--sec-fill); color: #fff; }
.proj-plants td, .proj-plants th { padding: .55rem .8rem; }
.proj-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.proj, .proj-body { min-width: 0; }

/* Pet stanja staju u jedan red; natpis se prelama unutar dugmeta */
.vfig .cycle-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; }
.vfig .cycle-steps button { min-width: 0; flex-direction: column; gap: .15rem; line-height: 1.25; padding: .5rem .3rem; white-space: normal; text-align: center; }
@media (max-width: 480px) { .vfig .cycle-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }


/* ---------- 30.13 Pregled programa — tri trake oblasti ---------- */
.secband {
  position: relative; overflow: hidden;
  background: var(--sec-fill); color: rgba(255,255,255,.92);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  margin-inline: var(--inset);
  border-radius: var(--r-hero);
}
.secband + .secband { margin-top: 10px; }
.secband .grid-bg { opacity: .35; }
.secband .wrap { position: relative; }
.secband-grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 940px) { .secband-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); } }
.lockup--on .lockup-badge { background: #fff; border-color: #fff; color: var(--sec-fill); }
.lockup--on .lockup-text h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.lockup--on .lockup-text .sub { color: rgba(255,255,255,.78); }
.secband-num { display: block; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .12em; color: rgba(255,255,255,.7); margin-bottom: .25rem; }
.secband-lead { font-size: clamp(var(--t-md), 1.6vw, var(--t-lg)); line-height: 1.55; max-width: 62ch; color: #fff; }
.secband-chips { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.secband-chips a {
  display: inline-block; padding: .42rem .85rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5); color: #fff;
  font-size: var(--t-xs); font-weight: 600;
  transition: background .2s, color .2s;
}
.secband-chips a:hover { background: #fff; color: var(--sec-fill); }
.secband-cta {
  margin-top: 1.75rem; display: inline-flex; align-items: center; gap: .55rem;
  color: #fff; font-weight: 600; font-size: var(--t-sm);
  border-bottom: 1px solid rgba(255,255,255,.55); padding-bottom: 2px;
}
.secband-cta svg { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.secband-cta:hover svg { transform: translateX(4px); }
.secband a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Matrica programa — ćelija oblasti u boji */
.matrix td.matrix-sec {
  background: var(--sec-fill); color: #fff;
  font-size: var(--t-xs); font-weight: 600; white-space: nowrap;
}
.matrix tr + tr td.matrix-sec { border-top: 1px solid rgba(255,255,255,.25); }

/* ---------- 30.14 Sertifikati ---------- */
.subnav--neutral { --sec: var(--ink); --sec-fill: var(--dark-2); }
.certgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.certcard {
  display: grid; gap: .45rem; align-content: start;
  padding: clamp(1.2rem, 2.6vw, 1.6rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .2s, transform .3s var(--ease-out), box-shadow .3s;
}
.certcard:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-1); }
.certcard-kind { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--steel-2); }
.certcard b { font-family: var(--display); font-variation-settings: "wdth" 88; font-size: var(--t-xl); font-weight: 700; color: var(--ink); line-height: 1.1; }
.certcard-by { font-size: var(--t-sm); color: var(--steel); }
.certcard-meta { margin: .5rem 0 0; display: grid; gap: .2rem; }
.certcard-meta > div { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--t-xs); border-top: 1px solid var(--line-soft); padding-top: .35rem; }
.certcard-meta dt { color: var(--steel); }
.certcard-meta dd { margin: 0; font-family: var(--mono); color: var(--ink); }
.downloads { display: grid; gap: 10px; }
.dl {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .15rem .9rem; align-items: center;
  padding: .85rem 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .2s;
}
.dl:hover { border-color: var(--ink); }
.dl-kind {
  grid-row: 1 / span 2;
  font-family: var(--mono); font-size: 14px; font-weight: 600; color: #fff;
  background: var(--red-fill); border-radius: 6px; padding: .35rem .45rem;
}
.dl b { font-size: var(--t-sm); color: var(--ink); font-weight: 600; }
.dl-size { font-family: var(--mono); font-size: var(--t-xs); color: var(--steel); }
.std-count { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--steel-2); }
.stdgrid h3 { display: flex; align-items: baseline; gap: .6rem; }
.std-n {
  flex: none; font-family: var(--mono); font-size: var(--t-xs); font-weight: 500;
  min-width: 2.2em; text-align: center; padding: .1rem .35rem;
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--steel);
}

/* ---------- 30.15 O nama ---------- */
.founder { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 820px) { .founder { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); } }
.founder-quote { margin: 0; }
.founder-quote p {
  font-family: var(--display); font-variation-settings: "wdth" 88;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem); line-height: 1.2; letter-spacing: -.02em; color: var(--ink);
  max-width: 34ch;
}
.founder-quote footer { margin-top: 1.25rem; display: grid; gap: .2rem; font-size: var(--t-sm); color: var(--steel); }
.founder-quote footer b { color: var(--ink); }
.certsum { display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 860px) { .certsum { grid-template-columns: minmax(0, 1fr) auto; } }
/* Sedam godina na šini: jedan red tek na širokom ekranu, ispod toga lista */
@media (min-width: 1180px) { .rail--7 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 920px) and (max-width: 1179px) {
  .rail--7 { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .rail--7::before { display: none; }
  .rail--7 li { display: grid; grid-template-columns: 74px 1fr; gap: 1.2rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
  .rail--7 li::before { display: none; }
  .rail--7 .y { padding: .18rem 0 0; font-size: var(--t-sm); }
}

/* ---------- 30.16 Reference — filteri po oblastima ---------- */
.filters--sec { border-radius: var(--r); align-items: center; }
.filter-group {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 3px; border-radius: 999px;
  background: color-mix(in srgb, var(--sec) 9%, transparent);
}
.filters--sec button[data-section], .filter-group > button:first-child { color: var(--sec); font-weight: 600; }
.filters--sec button[data-section][aria-pressed="true"],
.filter-group button[aria-pressed="true"] { background: var(--sec-fill); color: #fff; box-shadow: none; }
.filters .filter-sub { font-size: var(--t-xs); padding: .42rem .8rem; }
@media (max-width: 560px) { .filters button { white-space: normal; text-align: left; } }

/* ---------- 30.17 Ugašene strane (preusmerenje) ---------- */
body.moved { background: var(--paper); min-height: 100vh; display: grid; place-items: center; padding: var(--gut); }
.moved-box { max-width: 40rem; display: grid; gap: 1rem; }
.moved-box h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.moved-box p { color: var(--steel); }
.moved-brand img { width: 140px; height: auto; }
.moved-en { font-size: var(--t-sm); border-top: 1px solid var(--line); padding-top: 1rem; }

/* Obrazac je stavka mreže: bez min-width:0 raste do širine tabele deonica i
   karta ga odseca umesto da tabela skroluje u svom okviru. */
.hw-form-body > *, .hw-fs, .hw-fs .table-scroll { min-width: 0; }

/* Zeleni tekst na --surface-2 daje 4.49:1 — filteri po oblastima stoje na --surface (5.35:1) */
.filters--sec { background: var(--surface); }

/* Stavke padajućeg menija nasleđuju nowrap od linkova u pilulici — opis mora da se prelama */
.navpill .submenu a { white-space: normal; }
.section-head--split > .btn { justify-self: start; align-self: end; }
@media (min-width: 860px) { .section-head--split > .btn { justify-self: end; } }

/* Bela pilula ispod aktivne stavke nosi uvek tamno slovo — u tamnoj temi je --ink svetao */
.header:not([data-solid="true"]) .navpill a[aria-current],
.header:not([data-solid="true"]) .navpill a.is-hot { color: #1A1C1E; }
.nowrap { white-space: nowrap; }


/* Zaglavlje leži preko foto-zaglavlja strane. Fiksna visina (46vh, najmanje 380 px) na nižim
   ekranima (1280×800, 360×740) gurala je putanju i oznaku oblasti ispod logotipa i menija.
   Visina sada raste sa sadržajem, a vrh uvek ostavlja mesto zaglavlju. */
.page-hero { height: auto; min-height: max(380px, 46vh); padding-top: calc(var(--header-h) + 2.75rem); }
@media (max-width: 760px) { .page-hero { padding-top: calc(var(--header-h) + 4.5rem); } }

/* ==========================================================================
   31. SLIKE: FOTOGRAFIJA MANJA OD OKVIRA, ZAGLAVLJA OBLASTI, SLAJDER (2026-09-26)
   ========================================================================== */

/* 31.1 Fotografija manja od okvira. Oštra slika (.pfill-fg) nikad nije veća od izvorne
   (--nw / --nh su granice kutije); ostatak okvira je ista fotografija, zamućena, kao podloga
   (.pfill-bg, data-fill, alt="" — dekor, ne sadržaj). Isti URL, jedan zahtev. Kad stigne
   obrađena fotografija dovoljne veličine, --nw / --nh rastu i kadar je pun. Kontejner sam
   određuje položaj (hero-slide i page-hero-media su već apsolutni). */
.pfill { overflow: hidden; isolation: isolate; background: var(--sec-fill, var(--dark)); }
.pfill > picture { display: contents; }
.pfill .pfill-bg {
  position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none;
  object-fit: cover; object-position: var(--focal, 50% 50%);
  filter: blur(28px) saturate(1.12) brightness(var(--lift, 1)); transform: none; animation: none;
}
.pfill .pfill-fg {
  position: absolute; inset: 0; margin: auto;
  width: 100%; height: 100%;
  max-width: var(--nw); max-height: var(--nh);
  object-fit: cover; object-position: var(--focal, 50% 50%);
  transform: none; animation: none; filter: var(--photo-grade);
}
.pfill--end .pfill-fg { margin-right: 0; }
/* U zaglavlju se oštra fotografija pretapa u zamućenu — ulevo (ispod teksta) i na gornjoj i donjoj
   ivici — pa nema ivice panela. */
.pfill--feather .pfill-fg {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%), linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 26%), linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 760px) {
  .pfill--feather .pfill-fg { -webkit-mask-image: none; mask-image: none; }
}

/* 31.2 Zaglavlja tri oblasti: ista komponenta kao unutrašnja zaglavlja (fotografija preko cele
   širine, zaobljen donji rub, zatamnjenje, vodilice, putanja → oznaka → H1 → uvod), ista visina. */
.page-hero--sec { min-height: max(420px, 60vh); }
.page-hero .lead { max-width: 60ch; }
@media (max-width: 760px) { .page-hero--sec { min-height: max(420px, 52vh); } }

/* 31.3 Slajder: vodilice tiše preko fotografije; okrugla oznaka na dugmetu u boji oblasti
   (crvena ostaje za glavni CTA u zaglavlju) */
.hero .hero-guides {
  border-right-color: rgba(255,255,255,.06);
  background-image: linear-gradient(to right, rgba(255,255,255,.06) 0 1px, transparent 1px);
}
[data-section] .btn-arrow-badge { background: var(--sec-fill); }

/* 31.4 Zatamnjenje se drži teksta, ne cele fotografije: jak prelaz sleva (kolona teksta) i odozdo
   (dugmad), slab pojas pod zaglavljem, a desna i gornja polovina fotografije ostaju vidljive.
   Jačina po slajdu/strani kroz --scrim-x / --scrim-y; izmereno skriptom hero-luma.sh
   (cilj: iza teksta 15–25 % lume, ceo kadar 35–55 %). */
.hero-scrim, .page-hero-scrim {
  --sx: var(--scrim-x, .80);
  --sy: var(--scrim-y, .50);
  --sxm: var(--scrim-m, .86);
  background:
    linear-gradient(to bottom, rgba(14,16,18,.42) 0, rgba(14,16,18,0) 24%),
    linear-gradient(to top, rgba(14,16,18,var(--sy)) 0%, rgba(14,16,18,calc(var(--sy) * .45)) 28%, rgba(14,16,18,0) 56%),
    linear-gradient(90deg, rgba(14,16,18,var(--sx)) 0%, rgba(14,16,18,calc(var(--sx) * .92)) 30%, rgba(14,16,18,calc(var(--sx) * .62)) 48%, rgba(14,16,18,calc(var(--sx) * .14)) 66%, rgba(14,16,18,0) 80%),
    rgba(10,11,12, var(--photo-veil));
}
@media (max-width: 760px) {
  /* na telefonu tekst zauzima većinu kadra: zatamnjenje je ravnomernije, a fotografija vidljiva iznad teksta */
  .hero-scrim, .page-hero-scrim {
    background:
      linear-gradient(to bottom, rgba(14,16,18,.40) 0, rgba(14,16,18,0) 18%),
      linear-gradient(to top, rgba(14,16,18,var(--sxm)) 0%, rgba(14,16,18,calc(var(--sxm) * .9)) 50%, rgba(14,16,18,calc(var(--sxm) * .45)) 70%, rgba(14,16,18,0) 88%),
      rgba(10,11,12, var(--photo-veil));
  }
}

/* 31.5 Podizanje tamnih fotografija (--lift): nijedan hero ga više ne koristi — od 2026-09-27 heroji su
   klijentove fotografije, verno obrađene (_source/tools/faithful.py: nivoi, blago uklanjanje šuma, izoštravanje),
   i obrađena fotografija navodnjavanja. Promenljiva ostaje za buduće fotografije. */
.hero-slide img, .page-hero-media img, .pfill .pfill-fg { filter: var(--photo-grade) brightness(var(--lift, 1)); }
.hero[data-section="green"] { --scrim-x: .74; --scrim-m: .76; }
.hero[data-section="red"] { --scrim-x: .62; --scrim-m: .68; }
.hero[data-section="blue"] { --scrim-x: .76; --scrim-y: .56; --scrim-m: .74; }
/* Telefon (do 700 px): slajdovi i zaglavlja strana dobijaju isečak za telefon (<source media>, responsive.py PORTRAIT),
   već kadriran oko predmeta u razmeri kadra na 390 px — zato sredina, a ne desktop --focal; bez stalnog uvećanja. */
@media (max-width: 700px) {
  .hero-slide img { --zoom: 1; }
  .hero-slide img, .page-hero-media img { object-position: 50% 50%; }
}

/* 31.6 Kartice referenci — dve varijante iste anatomije: gore fotografija (.pfill, cover, nikad
   letterbox; manja fotografija u izvornoj veličini na zamućenoj sebi) ili pločica sa podacima u
   boji oblasti; ispod naslov, opis i tabela. Mreža 3 / 2 / 1 kolona, iste visine u redu; kartice
   nisu linkovi, pa nema podizanja na prelaz. */
.proj-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 2.4vw, 32px); }
@media (min-width: 720px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .proj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.proj:not(.proj--featured) {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.proj:not(.proj--featured) .proj-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 0;
  border-bottom: 2px solid var(--sec);
}
.proj-shot.pfill { position: relative; }
.proj:hover .proj-shot img { transform: none; }
.proj:not(.proj--featured) .proj-body {
  display: flex; flex-direction: column; flex: 1;
  padding: 1.15rem 1.3rem 1.3rem;
}
.proj:not(.proj--featured) .proj-spec { margin-top: auto; }
.proj:not(.proj--featured) .proj-desc + .proj-spec, .proj:not(.proj--featured) .proj-rule + .proj-spec { padding-top: .9rem; }

/* pločica sa podacima */
.proj-plate {
  display: flex; flex-direction: column; justify-content: space-between; gap: .8rem;
  padding: 1.1rem 1.3rem 1.15rem;
  background-color: var(--sec-fill);
  background-image:
    linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  color: #fff;
  /* clip, ne hidden: kutija sa aspect-ratio tada raste kad se brojevi prelome u dva reda (360 px) */
  overflow: clip;
}
.proj-plate > * { position: relative; }
.proj-plate .proj-plate-icon {
  position: absolute; right: -4%; bottom: -12%;
  width: 52%; max-width: 210px; height: auto;
  color: rgba(255,255,255,.13);
}
.proj-plate-sector {
  font-family: var(--mono); font-size: .875rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.88);
}
.proj-plate-figs { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: 0; }
.proj-plate-figs > div { display: flex; flex-direction: column-reverse; min-width: 0; }
.proj-plate-figs dd {
  margin: 0;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.9rem, 1.2rem + 1.5vw, 2.5rem); line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.proj-plate-figs dd small { font-size: .45em; font-weight: 500; letter-spacing: 0; margin-inline: .12em; }
.proj-plate-figs dt { margin-top: .4rem; font-size: .875rem; color: rgba(255,255,255,.86); }
.proj-plate-place { font-size: .9375rem; font-weight: 600; color: #fff; }
.proj-plate--place { justify-content: flex-end; }
.proj-plate--place .proj-plate-sector { margin-bottom: auto; }
.proj-plate--place .proj-plate-place { font-family: var(--display); font-size: clamp(1.5rem, 1rem + 1.4vw, 2.1rem); letter-spacing: -.02em; line-height: 1.1; }

/* istaknuta kartica (Muskat): cela širina reda, fotografija iz izvornog kataloškog snimka */
.proj--featured .proj-shot { position: relative; aspect-ratio: 3 / 2; border-radius: 14px; }

/* 31.7 Tipografija: ništa ispod 14 px na strani (osim pravnih napomena i oznaka unutar SVG crteža,
   koje se skaliraju sa crtežom). Asistent i dugme "Vrh strane" ostaju nepromenjeni — njihove
   veličine su ovde zaključane na ranije vrednosti. */
.dock-btn > span { font-size: 12px; }
.as-head b, .msg, .as-form input { font-size: 13px; }

/* 31.8 Obrasci: svako polje najmanje 44 px — ponavljač deonica radi jednim palcem */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(#asInput), select, textarea { min-height: 44px; }
.hw-pipe input { min-height: 44px; }
.hw-del { width: 44px; height: 44px; }
.field-err { margin-top: .35rem; }

/* 31.9 Dužina reda u tekstu 55–75 znakova; naslovi uravnoteženi */
/* bez specifičnosti: pravila komponenti sa sopstvenom širinom (citat osnivača 34ch i sl.) imaju prednost */
:where(main) :where(p, li) { max-width: 70ch; }
main .lead, .hero-lead { max-width: 60ch; }
.text-c p { margin-inline: auto; }
h1, h2, .hero .hero-copy h1, .hero .hero-copy .hero-title { text-wrap: balance; }

/* 31.10 Trake koje se skroluju vodoravno (tabele, podnavigacija, profil cevovoda): meka ivica na
   strani na kojoj ima još sadržaja (data-fade postavlja main.js); podnavigacija se kači na čip. */
[data-fade="end"]   { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
[data-fade="start"] { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent); }
[data-fade="both"]  { -webkit-mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
.subnav-track { scroll-snap-type: x proximity; scroll-padding-inline: 2px; }
.subnav a { scroll-snap-align: start; }
/* tablice mera: prva kolona (zapremina) ostaje vidljiva dok se tabela pomera */
.dimtable :is(th, td):first-child { position: sticky; left: 0; z-index: 1; }
.dimtable td:first-child { background: var(--surface); box-shadow: inset -1px 0 0 var(--line); }
.dimtable th:first-child { background: var(--sec-fill, var(--ink-2)); }

/* 31.11 Jedna skala zaobljenja: kartice --r-lg, slike u karticama --r */
.proj--featured .proj-shot { border-radius: var(--r); }

/* 31.12 Ritam: susedne trake ne dele istu pozadinu i širinu */
.marquee { background: var(--surface-2); }

/* 31.13 Jedinice uz krupne brojeve (m³, kWh, °C, PN) ne padaju ispod 14 px na telefonu */
.specstrip b i { font-size: max(14px, .5em); }
.result b i { font-size: max(14px, .45em); }
.proj-plate-figs dd small { font-size: max(14px, .45em); }
.ctaband h2 { text-wrap: balance; }

/* =========================================================
   32. PRAZNINE U RASPOREDU (2026-09-27)
   Kratka kolona uz visoku dobija sadržaj koji tu pripada — blok premešten sa iste strane,
   fotografiju iz fonda sajta, kratke podatke ili karticu povezanog bloka — a gde ništa smisleno
   ne pripada, poravnava se po sredini visoke kolone. Meri _source/verify/voids.js: prazno ispod
   kolone poravnate uz vrh ≤ 160 px na 1440 i ≤ 120 px na 1024.
   ========================================================= */
.split--mid, .techsheet { align-items: center; }
.self-mid { align-self: center; }
@media (max-width: 1199px) {
  .split--mid-md, .secband-grid, .figstage { align-items: center; }
}

/* 32.1 Presek na početnoj: ključni brojevi uz tekst (2 × 2) i kartica 3D makete */
.figband-copy { align-self: center; }
.figband .specstrip--stack { margin-top: clamp(1.5rem, 3vw, 2rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.specstrip--stack div { border-bottom: 1px solid var(--line-soft); }
.specstrip--stack div:nth-child(2n) { border-right: 0; }
.specstrip--stack div:nth-last-child(-n + 2) { border-bottom: 0; }
@media (min-width: 1020px) { .figband .specstrip--stack b { font-size: clamp(1.4rem, 2.2vw, 1.9rem); } }

.mkcard, .refmini {
  color: var(--ink); text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.mkcard:hover, .refmini:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.mkcard:focus-visible, .refmini:focus-visible { outline: 2px solid var(--sec, var(--red)); outline-offset: 3px; }
.mkcard {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center;
  gap: .9rem 1.1rem; padding: .8rem 1.1rem .8rem .8rem;
}
@media (min-width: 940px) { .mkcard { grid-template-columns: 132px minmax(0, 1fr) auto; } }
.mkcard-media { display: block; border-radius: var(--r-sm); overflow: hidden; background: var(--paper-2, var(--surface-2)); }
.mkcard-media img { display: block; width: 100%; height: auto; }
.mkcard-body { display: grid; gap: .35rem; }
.mkcard-body b { font-family: var(--display); font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.mkcard-body span { font-size: var(--t-sm); color: var(--steel); line-height: 1.5; }
.mkcard-arrow, .refmini-arrow { width: 18px; height: 18px; color: var(--sec, var(--red)); flex: none; }

/* 32.2 Mala kartica reference (refMini u main.js): fotografija 21:9 ili traka u boji oblasti */
.refmini {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  box-shadow: inset 4px 0 0 var(--sec);
}
.refmini--photo { box-shadow: none; }
.refmini:hover { box-shadow: inset 4px 0 0 var(--sec), var(--shadow-2); }
.refmini--photo:hover { box-shadow: var(--shadow-2); }
.refmini-media { grid-column: 1 / -1; display: block; aspect-ratio: 21 / 9; overflow: hidden; background: var(--surface-2); border-bottom: 2px solid var(--sec); }
.refmini-media picture { display: block; width: 100%; height: 100%; }
.refmini-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 50%); filter: var(--photo-grade); }
.refmini-media.pfill { position: relative; }
.refmini-media.pfill > picture { display: contents; }
.refmini-plate { position: absolute; right: -10px; top: -12px; width: 112px; height: 112px; color: var(--sec); opacity: .16; pointer-events: none; }
.refmini-plate svg { display: block; width: 100%; height: 100%; }
.refmini-body { display: grid; gap: .3rem; padding: 1rem .5rem 1.05rem 1.25rem; min-width: 0; }
.refmini-kicker { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--sec); }
.refmini-title { font-family: var(--display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.refmini-figs { display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-family: var(--mono); font-size: var(--t-xs); color: var(--steel); font-variant-numeric: tabular-nums; }
.refmini-arrow { margin: 0 1.1rem 1.15rem 0; }

/* 32.3 PUP: fotografija pokazivača nivoa uz pet stanja; profil cevovoda, napomena i brzine talasa uz kalkulator */
.pupshot { width: clamp(190px, 20.8vw, 300px); }
@media (max-width: 1019px) { .pupshot { width: min(100%, 450px); } }
.hw-side { display: grid; gap: clamp(20px, 3vw, 28px); align-content: start; min-width: 0; }
.hw-waves { padding: 1.1rem 1.25rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.hw-waves h3 { font-size: 1rem; }
.hw-waves-list { list-style: none; margin: .6rem 0 0; padding: 0; }
.hw-waves-list li { padding: .5rem 0; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }

/* 32.4 O nama — „Kako radimo": naslov iznad, četiri pasusa u dve kolone */
.story .prose--cols { max-width: none; }
@media (min-width: 940px) {
  .prose--cols { columns: 2; column-gap: clamp(2rem, 4vw, 3.5rem); }
  .prose--cols p { break-inside: avoid; }
  .prose--cols p + p { margin-top: 0; }
  .prose--cols p { margin-bottom: 1.05em; }
}

/* 32.5 Istaknuta referenca u dve kolone: fotografija prati visinu teksta (cover), bez praznog ispod */
@media (min-width: 900px) {
  .proj--featured { align-items: stretch; }
  .proj--featured .proj-shot { aspect-ratio: auto; min-height: min(22rem, 40vw); }
  .proj--featured .proj-shot picture { position: absolute; inset: 0; }
}

/* 32.6 Sertifikati podizvođača: uvod iznad, tri sertifikata u jednom redu (dve kolone su ostavljale
   praznu ćeliju ispod trećeg i prazninu uz uvod) */
.certband { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
.certband > div:first-child { max-width: 72ch; }
.certband .badge-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
