/* ==========================================================================
   NEMINIK d.o.o. — dizajn sistem
   Apis Development · 2026
   Boje izvedene iz logotipa: plava (#0A5AAA → #0095D7), crvena (#D31C1E),
   varnica (#FFB03F), grafit (#16181C).

   Disciplina boje:
     plava   — jedina interaktivna boja (linkovi, fokus, hover, aktivna stanja)
     crvena  — akcenat logotipa, destruktivna i kritična stanja
     varnica — isključivo animacija luka i varnica u logotipu
   ========================================================================== */

/* ---------- 1. TOKENI ---------- */
:root {
  /* Brend */
  --blue-900: #073C74;
  --blue-700: #0A5AAA;
  --blue-500: #0078C0;
  --blue-400: #0095D7;
  --blue-300: #46B8EA;
  --red-600: #B4131A;
  --red-500: #D31C1E;
  --red-400: #F0413C;
  --spark: #FFB03F;
  --spark-hot: #FFE9B0;

  /* Neutralno — legura */
  --graphite-900: #101215;
  --graphite-800: #16181C;
  --graphite-700: #1D2126;
  --graphite-600: #272C33;
  --graphite-500: #3A414A;
  --steel-400: #6C7683;
  --steel-300: #98A2AE;
  --steel-200: #C7CDD5;
  --steel-100: #E4E8ED;
  --steel-050: #F3F5F8;
  --white: #FFFFFF;

  /* Semantika */
  --bg: var(--white);
  --bg-dark: var(--graphite-900);
  --ink: #0E1114;
  --ink-soft: #454E58;
  --ink-invert: #F5F7FA;
  --ink-invert-soft: #AEB7C2;

  /* Hairline — uvek 1px, tri jačine, ništa van ovoga */
  --hair: 1px;
  --line: rgba(16, 18, 21, .12);
  --line-soft: rgba(16, 18, 21, .07);
  --line-strong: rgba(16, 18, 21, .24);
  --line-dark: rgba(255, 255, 255, .12);
  --line-dark-soft: rgba(255, 255, 255, .07);
  --line-dark-strong: rgba(255, 255, 255, .24);

  /* Tipografija */
  --f-display: "Archivo", "Archivo Expanded", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --t-xs: .75rem;
  --t-sm: .8125rem;
  --t-base: 1rem;
  --t-lg: 1.125rem;
  --t-xl: 1.375rem;
  --t-2xl: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
  --t-3xl: clamp(1.9rem, 1.3rem + 2.9vw, 3.25rem);
  --t-4xl: clamp(2.6rem, 1rem + 6vw, 6.5rem);
  --t-hero: clamp(3.2rem, 1rem + 9.2vw, 9.5rem);

  /* Razmak pisma — eksplicitno po stepenu, ne nasleđeno */
  --ls-hero: -.01em;
  --ls-1: -.01em;
  --ls-2: -.008em;
  --ls-3: -.03em;
  --ls-4: -.03em;
  --ls-body: 0;
  --ls-mono: .06em;
  --ls-mono-wide: .16em;

  /* Prostor — skala od 4px, indeks = broj koraka od 4px */
  --sp-1: .25rem;   /*   4 */
  --sp-2: .5rem;    /*   8 */
  --sp-3: .75rem;   /*  12 */
  --sp-4: 1rem;     /*  16 */
  --sp-5: 1.25rem;  /*  20 */
  --sp-6: 1.5rem;   /*  24 */
  --sp-7: 1.75rem;  /*  28 */
  --sp-8: 2rem;     /*  32 */
  --sp-9: 2.25rem;  /*  36 */
  --sp-10: 2.5rem;  /*  40 */
  --sp-11: 2.75rem; /*  44 */
  --sp-12: 3rem;    /*  48 */
  --sp-16: 4rem;    /*  64 */
  --sp-22: 5.5rem;  /*  88 */
  --sp-30: 7.5rem;  /* 120 */

  /* Vertikalni ritam sekcija — samo dve vrednosti za ceo sajt */
  --pad-section: clamp(3.5rem, 8vw, 7rem);       /*  56 → 112 */
  --pad-section-tight: clamp(2.5rem, 5vw, 4rem); /*  40 →  64 */

  --wrap: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Radijusi — samo dva: kontrole i kartice. Obrađena ivica, ne zaobljena. */
  --radius: 2px;
  --radius-lg: 4px;

  /* Kretanje — tri trajanja i dva ublaživanja za sve prelaze */
  --dur-fast: 180ms;
  --dur-base: 340ms;
  --dur-slow: 700ms;
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  /* Komponentne konstante: ambijentalne petlje, slajder i mirovanje miša */
  --dur-pulse: 2600ms;
  --dur-typing: 1200ms;
  --dur-marquee: 34s;
  --dur-idle: 400ms;
  --slide-dwell: 6000ms;
  --slide-fade: 1200ms;

  /* Zaglavlje pluta preko fotografije; niža vrednost je stanje posle skrola */
  --header-h: 88px;
  --header-h-solid: 72px;
  --dock-size: 54px;
  --z-nav: 900;
  --z-overlay: 1000;
  --z-dock: 1100;
  --z-loader: 1200;
}

@media (max-width: 999px) {
  :root { --header-h: 72px; --header-h-solid: 64px; }
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* C8 — jedina mera za doskok na sidro. Posle skoka je zaglavlje uvek u
     punom stanju, pa se računa sa --header-h-solid; 24px je tražen razmak.
     Ne dodavati uz ovo i `scroll-margin-top` na metama — mere se sabiraju. */
  scroll-padding-top: calc(var(--header-h-solid) + 24px);
  /* Zatvorena fioka stoji desno van ekrana; bez ovoga ulazi u scrollWidth,
     pa je puna slika strane šira od vidnog polja. `clip` ne pravi novi
     kontejner za skrol, za razliku od `hidden`. */
  overflow-x: clip;
}
body {
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.65;
  letter-spacing: var(--ls-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Bez `overflow-x: hidden` ovde: pošto je druga osa `visible`, pregledač je
     računa kao `auto` i telo postaje kontejner za skrol — a tada `position:
     sticky` u njemu nema prema čemu da se lepi i leva šina bi otišla sa prvom
     sekcijom. Vodoravni preliv već zatvara `overflow-x: clip` na <html>. */
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.04; }
:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; border-radius: var(--radius); }

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: var(--z-loader);
  background: var(--blue-700); color: #fff; padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius);
  transition: top var(--dur-fast) var(--ease-out-expo);
}
.skip-link:focus { top: var(--sp-4); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--pad-section); position: relative; }
.section--tight { padding-block: var(--pad-section-tight); }
.section--dark { background: var(--graphite-900); color: var(--ink-invert); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--steel { background: var(--steel-050); }

.grid { display: grid; gap: var(--sp-6); }
@media (min-width: 720px) { .g-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .g-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .g-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .g-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 4. TIPOGRAFSKI ELEMENTI ---------- */
/* C2. Hero i h1/h2 nose suženo pismo verzalom; h3 naniže ostaje mešano. */
.h-hero {
  font-size: var(--t-hero);
  font-weight: 800;
  font-stretch: 62%;
  letter-spacing: var(--ls-hero);
  line-height: .88;
  text-transform: uppercase;
}
.h-1 {
  font-size: var(--t-4xl); font-weight: 800; font-stretch: 62%;
  letter-spacing: var(--ls-1); line-height: .9; text-transform: uppercase;
}
.h-2 {
  font-size: var(--t-3xl); font-weight: 800; font-stretch: 62%;
  letter-spacing: var(--ls-2); line-height: .94; text-transform: uppercase;
}
.h-3 { font-size: var(--t-2xl); letter-spacing: var(--ls-3); }
.h-4 { font-size: var(--t-xl); letter-spacing: var(--ls-4); }

.lead {
  font-size: clamp(1.02rem, .95rem + .4vw, 1.22rem);
  letter-spacing: var(--ls-body);
  color: var(--ink-soft); max-width: 62ch;
}
.section--dark .lead { color: var(--ink-invert-soft); }
.muted { color: var(--ink-soft); }
.section--dark .muted { color: var(--ink-invert-soft); }

/* Brojevi u tehničkom kontekstu uvek stoje u koloni */
.spec-table, .stat__num, .pcard__specs, .cat__idx, .tl__yr,
.ncard__date, .loader__txt, .step::before {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Zavarena šava — potpisni strukturni element */
.seam {
  display: block; height: 8px; width: 100%;
  background-image: radial-gradient(ellipse 7px 4px at 7px 4px, currentColor 0 55%, transparent 58%);
  background-size: 15px 8px; background-repeat: repeat-x;
  color: var(--blue-500); opacity: .45;
}
.seam--sm { height: 6px; background-size: 11px 6px;
  background-image: radial-gradient(ellipse 5px 3px at 5px 3px, currentColor 0 55%, transparent 58%); }

/* Zaglavlje sekcije */
.sec-head { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-11); max-width: 70ch; }
.sec-head .tag {
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: var(--ls-mono-wide);
  color: var(--blue-500); display: inline-flex; align-items: center; gap: var(--sp-2);
}
.section--dark .sec-head .tag { color: var(--blue-300); }
.sec-head .tag::before {
  content: ""; width: 28px; height: 2px; background: currentColor; display: block;
}

/* ---------- 5. DUGMAD ---------- */
.btn {
  --btn-bg: var(--blue-700);
  --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2); padding: var(--sp-4) var(--sp-6); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--f-display); font-weight: 600; font-size: .95rem; letter-spacing: var(--ls-4);
  overflow: hidden; isolation: isolate; will-change: transform;
  transition: transform var(--dur-base) var(--ease-out-expo), box-shadow var(--dur-base) var(--ease-out-expo);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--blue-500), var(--blue-400));
  transform: translateY(101%); transition: transform var(--dur-base) var(--ease-out-expo);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 17px; height: 17px; flex: none; transition: transform var(--dur-base) var(--ease-out-expo); }
.btn:hover .ic { transform: translateX(4px); }

.btn--red { --btn-bg: var(--red-500); }
.btn--red::before { background: linear-gradient(100deg, var(--red-600), var(--red-400)); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border: var(--hair) solid var(--line);
}
.btn--ghost::before { background: var(--graphite-900); }
.btn--ghost:hover { color: #fff; border-color: var(--graphite-900); }
.section--dark .btn--ghost { --btn-fg: #fff; border-color: var(--line-dark); }
.section--dark .btn--ghost::before { background: #fff; }
.section--dark .btn--ghost:hover { color: var(--graphite-900); border-color: #fff; }

.btn--sm { padding: var(--sp-2) var(--sp-4); font-size: .85rem; }

/* Tekstualna veza sa animiranom šavom */
.link-seam {
  position: relative; display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--f-display); font-weight: 600; padding-bottom: var(--sp-1); color: var(--blue-700);
}
.section--dark .link-seam { color: var(--blue-300); }
.link-seam::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: var(--hair); width: 100%;
  background: currentColor; transform-origin: right; transform: scaleX(0);
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.link-seam:hover::after { transform-origin: left; transform: scaleX(1); }
.link-seam svg { width: 15px; height: 15px; transition: transform var(--dur-base) var(--ease-out-expo); }
.link-seam:hover svg { transform: translateX(4px); }

/* ---------- 6. PRELOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  background: var(--graphite-900); display: grid; place-items: center;
  transition: opacity var(--dur-slow) var(--ease-out-expo), visibility var(--dur-slow);
}
.loader__inner { display: grid; gap: var(--sp-6); justify-items: center; width: min(320px, 70vw); }
.loader__mark { height: 46px; width: auto; object-fit: contain; }
.loader__bar { width: 100%; height: 2px; background: var(--line-dark); overflow: hidden; }
.loader__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-400));
  box-shadow: 0 0 12px var(--blue-400);
}
.loader__txt {
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: var(--ls-mono-wide);
  color: var(--steel-300);
}
body.is-loaded .loader { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- 7. TRAKA NAPRETKA ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: var(--z-overlay);
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-400));
}

/* ---------- 8. ZAGLAVLJE — pluta preko fotografije ---------- */
/* A1. Nema gornje trake i nema bele podloge. Sadržaj stare trake je premešten:
   e-pošta i radno vreme žive u podnožju i na strani Kontakt, a primarni telefon
   stoji u istaknutom bloku mega menija. */
.header {
  position: fixed; top: 0; inset-inline: 0; z-index: var(--z-nav);
  height: var(--header-h); color: #fff;
  background: transparent;
  border-bottom: var(--hair) solid transparent;
  transition: height var(--dur-base) var(--ease-out-expo),
              background var(--dur-base) var(--ease-out-expo),
              backdrop-filter var(--dur-base) var(--ease-out-expo),
              border-color var(--dur-base) var(--ease-out-expo);
}
/* A2. Van fotografije zaglavlje dobija podlogu, ali nikad ne menja boju teksta */
.header.is-solid {
  height: var(--header-h-solid);
  background: rgba(16, 18, 21, .86);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.header__row {
  height: 100%; display: flex; align-items: center; gap: var(--sp-6);
  padding-inline: var(--gutter);
}

/* Logo — nad tamnom fotografijom uvek svetla varijanta */
.logo { display: inline-flex; align-items: center; flex: none; }
.logo__img { height: 38px; width: auto; object-fit: contain; }
@media (max-width: 999px) { .logo__img { height: 30px; } }
.logo--footer .logo__img { height: 38px; }

/* A1. Navigacija — jedan vodoravni red, centriran u preostalom prostoru */
.nav { display: none; }
@media (min-width: 1100px) {
  .nav { display: flex; align-items: center; gap: var(--sp-6); margin-inline: auto; }
}
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: var(--sp-1);
  font-family: var(--f-body); font-stretch: 100%; font-weight: 500; font-size: 15px;
  letter-spacing: 0; color: rgba(255, 255, 255, .82); padding-block: var(--sp-2);
  transition: color var(--dur-fast) var(--ease-out-expo);
}
.nav__link:hover, .nav__item.is-open > .nav__link { color: #fff; }
/* Podvlaka se iscrtava s leva na desno */
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.nav__link:hover::after, .nav__item.is-open > .nav__link::after {
  transform: scaleX(1); transform-origin: left;
}
/* Trenutna strana: tačka iznad oznake, ne podvlaka */
.nav__link.is-current { color: #fff; }
.nav__link.is-current::after { content: none; }
.nav__link.is-current::before {
  content: ""; position: absolute; left: 50%; top: -2px; transform: translateX(-50%);
  width: 3px; height: 3px; border-radius: 50%; background: var(--blue-400);
}
.nav__link .chev { width: 11px; height: 11px; transition: transform var(--dur-fast) var(--ease-out-expo); }
.nav__item.is-open .chev { transform: rotate(180deg); }

.header__end { display: flex; align-items: center; gap: var(--sp-4); margin-left: auto; }
@media (min-width: 1100px) { .header__end { margin-left: 0; } }

/* Prekidač jezika — EN je namerno neaktivan, ali ostaje u redu tabulatora */
.lang {
  display: none; align-items: center; gap: var(--sp-2);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em;
}
@media (min-width: 760px) { .lang { display: flex; } }
.lang button { padding: 0; line-height: 1; }
.lang__on { color: #fff; cursor: default; }
.lang__sep { color: rgba(255, 255, 255, .3); }
/* 55% je najniža vrednost koja na sve tri fotografije prelazi 4,5:1 */
.lang__off { color: rgba(255, 255, 255, .58); cursor: default; }
.lang__off:hover { color: rgba(255, 255, 255, .58); }

/* Poziv na akciju — jedina pilula sa punom belom podlogom */
.header__cta { display: none; }
@media (min-width: 760px) { .header__cta { display: inline-flex; } }
.header__cta {
  --btn-bg: #fff; --btn-fg: var(--graphite-900);
  padding: var(--sp-3) var(--sp-5); font-size: .9rem;
}
.header__cta::before { background: var(--blue-500); }
.header__cta:hover { color: #fff; }

/* Hamburger */
.burger {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 999px; border: var(--hair) solid rgba(255, 255, 255, .28);
}
@media (min-width: 1100px) { .burger { display: none; } }
.burger span {
  display: block; width: 18px; height: 1.5px; background: #fff;
  transition: transform var(--dur-base) var(--ease-out-expo), opacity var(--dur-fast);
}
.burger span + span { margin-top: 5px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* A3. Mega meni — crna ploča, mono brojači, hairline razdelnici */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--graphite-900); color: #fff;
  border-top: var(--hair) solid rgba(255, 255, 255, .08);
  border-bottom: var(--hair) solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease-out-expo),
              transform var(--dur-base) var(--ease-out-expo), visibility var(--dur-fast);
  max-height: calc(100svh - var(--header-h) - 40px); overflow-y: auto;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__grid {
  display: grid; gap: 0; padding-block: var(--sp-8);
  grid-template-columns: repeat(4, 1fr) 1.1fr;
}
.mega__col { padding-inline: var(--sp-6); }
.mega__col + .mega__col { border-left: var(--hair) solid rgba(255, 255, 255, .08); }
.mega__col h4 { font-size: .95rem; letter-spacing: var(--ls-4); margin-bottom: var(--sp-3); color: #fff; }
.mega__col h4 a { display: flex; align-items: baseline; gap: var(--sp-2); transition: color var(--dur-fast) var(--ease-out-expo); }
.mega__col h4 a:hover { color: var(--blue-300); }
.mega__col li a {
  display: flex; align-items: baseline; gap: var(--sp-2);
  padding: var(--sp-1) 0; font-size: .9rem; color: rgba(255, 255, 255, .7);
  transition: color var(--dur-fast) var(--ease-out-expo), transform var(--dur-fast) var(--ease-out-expo);
}
.mega__col li a:hover { color: #fff; transform: translateX(4px); }
.mega__feat {
  padding-inline: var(--sp-6);
  border-left: var(--hair) solid rgba(255, 255, 255, .08);
  display: grid; gap: var(--sp-3); align-content: start;
}
.mega__feat-tel { font-family: var(--f-mono); font-size: 1.05rem; letter-spacing: .04em; }
.mega__feat-tel a { color: var(--blue-300); }
.mega__feat-tel a:hover { color: #fff; }

/* Mobilna fioka */
.drawer {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: var(--graphite-900); color: #fff;
  /* visibility drži zatvorenu fioku van reda tabulatora — inače bi se
     na desktopu tabom ulazilo u meni koji je van ekrana */
  transform: translateX(100%); visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-out-expo), visibility var(--dur-slow);
  overflow-y: auto; padding: calc(var(--header-h) + var(--sp-6)) var(--gutter) var(--sp-12);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
body.menu-open .drawer { transform: translateX(0); visibility: visible; }
.drawer__close {
  position: absolute; top: var(--sp-6); right: var(--gutter); width: 44px; height: 44px;
  border: var(--hair) solid var(--line-dark); border-radius: 999px; display: grid; place-items: center;
}
.drawer__close svg { width: 18px; height: 18px; }
.drawer a { display: block; }
.drawer__lvl1 > li { border-bottom: var(--hair) solid var(--line-dark); }
.drawer__lvl1 > li > a, .drawer__toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) 0; font-family: var(--f-display); font-stretch: 62%; font-weight: 700;
  font-size: 1.6rem; text-transform: uppercase; letter-spacing: .01em;
  text-align: left; color: #fff;
}
.drawer__toggle svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out-expo); color: var(--blue-400); }
.drawer__toggle[aria-expanded="true"] svg { transform: rotate(45deg); }
.drawer__sub { max-height: 0; overflow: hidden; transition: max-height var(--dur-base) var(--ease-out-expo); }
.drawer__sub ul { padding-bottom: var(--sp-4); display: grid; gap: 0; }
.drawer__sub a { padding: var(--sp-2) 0 var(--sp-2) var(--sp-4); color: var(--ink-invert-soft); font-size: .95rem; border-left: var(--hair) solid var(--line-dark); text-transform: none; }
.drawer__sub a:hover { color: var(--blue-300); }
.drawer__foot { margin-top: auto; display: grid; gap: var(--sp-3); padding-top: var(--sp-6); justify-items: stretch; }
.drawer__foot .btn { width: 100%; }
.drawer__foot .lang { display: flex; justify-content: center; padding-top: var(--sp-2); }

/* Strane bez fotografskog heroja (404, uzorak) počinju ispod fiksnog zaglavlja */
#main > .section:first-child { padding-top: calc(var(--pad-section) + var(--header-h)); }

/* ---------- 9. HERO — fotografija je strana ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  background: var(--graphite-900); color: #fff; isolation: isolate; touch-action: pan-y;
  display: grid; grid-template-rows: 1fr auto;
}

/* 9a. Slajder fotografija — najdublji sloj */
.hero__slider { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity var(--slide-fade) var(--ease-out-expo);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img, .hero__slide picture {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; transform: scale(1);
}
/* Ken Burns: spor prilaz kamere kroz ceo zadržani kadar. Krajnje stanje je
   jednako osnovnom (scale(1)), pa nema preskoka tokom pretapanja. */
.hero__slide.is-active img { animation: heroKen var(--slide-dwell) linear both; }
@keyframes heroKen { from { transform: scale(1.06); } to { transform: scale(1); } }

/* 9b. Veo — fotografski, ne grafički: čuva čitljivost naslova i dna kadra */
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(16, 18, 21, .55) 0%, rgba(16, 18, 21, .15) 35%,
                            rgba(16, 18, 21, .25) 65%, rgba(16, 18, 21, .78) 100%),
    /* Levi pad je produbljen i produžen posle merenja: naslov se na 1440
       prostire do 66% širine, a stari prelaz je gasnuo na 55%, pa je desni
       kraj naslova stajao na goloj fotografiji (p95 3,13:1). */
    linear-gradient(90deg, rgba(16, 18, 21, .88) 0%, rgba(16, 18, 21, .72) 38%,
                           rgba(16, 18, 21, .38) 62%, transparent 82%);
}

/* Hero strane artikla je niži od početnog, pa vertikalni prelaz pada drugačije
   i vrh kadra ostane svetliji: „EN“ je preko pogonske fotografije 1 izmeren na
   3,88:1. Vrh zato dobija svoju traku, vezanu za visinu zaglavlja a ne za
   visinu heroja, pa važi na svakoj fotografiji i na svakoj širini. */
.phero .hero__veil::after {
  content: ""; position: absolute; inset: 0 0 auto 0;
  height: calc(var(--header-h) * 1.7);
  background: linear-gradient(180deg, rgba(16, 18, 21, .62) 0%,
                              rgba(16, 18, 21, .34) 55%, rgba(16, 18, 21, 0) 100%);
}

/* 9c. Vodilje — pet hairline linija kao nenametljiva crtaća mreža */
.hero__guides {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, .06)),
    linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, .06)),
    linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, .06)),
    linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, .06)),
    linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, .06));
  background-size: 1px 100%;
  background-position: 15% 0, 32% 0, 50% 0, 68% 0, 85% 0;
  background-repeat: no-repeat;
}
@media (max-width: 699px) { .hero__guides { display: none; } }

/* 9d. Luk i varnice — svedeno; fotografija sada nosi scenu */
.hero__canvas {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%;
  mix-blend-mode: screen; pointer-events: none;
}

/* 9e. Naslov — sedi direktno na fotografiji, bez podloge */
.hero__title {
  position: absolute; left: var(--gutter); top: 24svh; z-index: 5;
  color: #fff; margin: 0;
  /* Redovi se ne prelamaju (nowrap), a `.ln` ih seče — zato okvir mora da
     bude tačno onoliko širok koliko ima mesta, bez dodatnog `ch` ograničenja. */
  max-width: calc(100% - var(--gutter) * 2);
}
.hero__title .ln { display: block; overflow: hidden; }
.hero__title .ln > span { display: block; transform: translateY(105%); white-space: nowrap; }
body.is-loaded .hero__title .ln > span { animation: lineUp var(--dur-slow) var(--ease-out-expo) forwards; }
body.is-loaded .hero__title .ln:nth-child(2) > span { animation-delay: var(--dur-fast); }
body.is-loaded .hero__title .ln:nth-child(3) > span { animation-delay: var(--dur-base); }
@keyframes lineUp { to { transform: translateY(0); } }

/* 9f. Ploča podataka — jedina upravljačka površina slajdera */
.hplate {
  position: absolute; left: 0; bottom: 0; z-index: 6;
  width: clamp(360px, 30vw, 440px); min-height: clamp(180px, 22vh, 220px);
  padding: var(--sp-6); background: var(--graphite-900); border-radius: 0;
  border-top: var(--hair) solid rgba(255, 255, 255, .1);
  border-right: var(--hair) solid rgba(255, 255, 255, .1);
  display: grid; grid-template-rows: 1fr auto; gap: var(--sp-3);
}
.hplate__stack { position: relative; display: grid; }
.hplate__item {
  grid-area: 1 / 1; display: grid; grid-template-columns: 88px minmax(0, 1fr);
  gap: var(--sp-5); align-items: start;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out-expo), transform var(--dur-base) var(--ease-out-expo);
}
.hplate__item.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hplate__draw { color: #fff; opacity: .55; }
.hplate__draw svg { width: 88px; height: 88px; }
.hplate__lb {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em;
  color: rgba(255, 255, 255, .6); text-transform: uppercase;
}
.hplate__val {
  font-family: var(--f-display); font-stretch: 62%; font-weight: 800;
  font-size: clamp(2.8rem, 4.6vw, 4.2rem); line-height: .92; color: #fff;
  letter-spacing: -.01em; margin-top: var(--sp-1);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hplate__u { font-size: .55em; vertical-align: super; margin-left: .12em; }
.hplate__sub {
  font-family: var(--f-body); font-stretch: 100%; font-size: 15px; line-height: 1.35;
  color: rgba(255, 255, 255, .85); margin-top: var(--sp-2);
}
.hplate__nav { display: flex; gap: var(--sp-2); justify-content: flex-end; }

/* Okruglo dugme za listanje — isti oblik svuda gde postoji listanje */
.rbtn {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: var(--hair) solid rgba(255, 255, 255, .4); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out-expo),
              color var(--dur-fast) var(--ease-out-expo),
              border-color var(--dur-fast) var(--ease-out-expo);
}
.rbtn svg { width: 18px; height: 18px; }
.rbtn:hover { background: #fff; color: var(--graphite-900); border-color: #fff; }
/* Na svetloj podlozi ista kontrola, obrnut kontrast */
.rbtn--light { border-color: var(--line-strong); color: var(--ink); }
.rbtn--light:hover { background: var(--graphite-900); color: #fff; border-color: var(--graphite-900); }

/* 9g. Potpis — jedan red, dole po sredini */
.hero__cap {
  position: absolute; left: 50%; bottom: 40px; z-index: 5; transform: translateX(-50%);
  font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .85);
  max-width: 34ch; text-align: center; margin: 0;
}
@media (max-width: 999px) { .hero__cap { display: none; } }

/* 9h. Krug sa sledećim kadrom — dole desno, iznad doka */
.hero__next {
  position: absolute; right: var(--gutter); z-index: 6;
  /* Dok drži dugme „nazad na vrh“ u istom uglu — krug se diže iznad njega
     tako da se granični okviri ne dodiruju ni na jednoj širini. */
  bottom: calc(var(--sp-6) + var(--dock-size) + var(--sp-4));
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  border: var(--hair) solid rgba(255, 255, 255, .4); cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out-expo), border-color var(--dur-base) var(--ease-out-expo);
}
.hero__next:hover { transform: scale(1.05); border-color: #fff; }
@media (max-width: 999px) { .hero__next { display: none; } }
.hero__next-img {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out-expo);
}
.hero__next-img.is-on { opacity: 1; }
.hero__next-img img, .hero__next-img picture {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero__next-img.is-on img { animation: nextKen 14s var(--ease-in-out) infinite alternate; }
@keyframes nextKen { from { transform: scale(1); } to { transform: scale(1.12); } }

/* 9i. Mirovanje miša — kursor i kontrole nestaju, vraćaju se na prvi pokret.
   Aktivno samo kada JS potvrdi mišem upravljan uređaj bez smanjenog kretanja. */
.hero.can-idle:not(.is-live) { cursor: none; }
.hero.can-idle .rbtn, .hero.can-idle .hero__next { transition: opacity 0ms; }
.hero.can-idle:not(.is-live) .rbtn,
.hero.can-idle:not(.is-live) .hero__next {
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-idle) var(--ease-out-expo);
}
/* Kursor se nikada ne krije iznad interaktivnog elementa */
.hero .rbtn, .hero__next, .hero a[href] { cursor: pointer; }
/* Fokus sa tastature uvek vraća kontrolu, odmah i bez pretapanja */
.hero.can-idle .rbtn:focus-visible,
.hero.can-idle .hero__next:focus-visible { opacity: 1; pointer-events: auto; transition: opacity 0ms; }

/* 9j. Uski ekrani: ploča ide ispod fotografije, u tok */
@media (max-width: 699px) {
  .hero { min-height: 100svh; }
  .hero__title {
    position: static; grid-row: 1; align-self: end;
    padding: 26svh var(--gutter) var(--sp-8);
    /* Ovde razmak nose paddings, pa `max-width` ne sme da ga oduzme još jednom */
    max-width: 100%;
  }
  .hplate {
    position: static; grid-row: 2; width: 100%; min-height: 0;
    padding: var(--sp-6) var(--gutter);
  }
  .hplate__item { grid-template-columns: minmax(0, 1fr); }
  .hplate__draw { display: none; }
}

/* B7. Traka podataka odmah posle heroja */
.sband { background: var(--graphite-900); color: #fff; }
.sband__row {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--hair); background: rgba(255, 255, 255, .1);
}
@media (min-width: 900px) { .sband__row { grid-template-columns: repeat(4, 1fr); } }
.sband__cell {
  background: var(--graphite-900); padding: var(--sp-8) var(--gutter);
  display: grid; align-content: start; gap: var(--sp-2);
}
.sband__val {
  font-family: var(--f-display); font-stretch: 62%; font-weight: 800;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem); line-height: .92; color: #fff;
  letter-spacing: -.01em; font-variant-numeric: tabular-nums; text-transform: uppercase;
}
.sband__u { font-size: .5em; vertical-align: super; margin-left: .12em; color: var(--blue-300); }
.sband__lb {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255, 255, 255, .6); line-height: 1.45;
}

/* ---------- 10. MARKIZA BRENDOVA ---------- */
.brands { background: var(--graphite-800); border-block: var(--hair) solid var(--line-dark-soft); padding-block: var(--sp-6); overflow: hidden; }
.marquee { display: flex; gap: 0; width: max-content; animation: marquee var(--dur-marquee) linear infinite; }
.brands:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__set { display: flex; align-items: center; }
.marquee__item {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: var(--ls-4); color: rgba(255,255,255,.52); padding-inline: clamp(var(--sp-6), 4vw, var(--sp-10));
  white-space: nowrap; display: inline-flex; align-items: center; gap: var(--sp-3);
  transition: color var(--dur-fast) var(--ease-out-expo);
}
.marquee__item:hover { color: #fff; }
.marquee__item::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-500); }

/* ---------- 11. KARTICE KATEGORIJA (bento) ---------- */
.bento { display: grid; gap: var(--sp-4); }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(6, 1fr); } }
.cat {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--graphite-800); color: #fff; min-height: 236px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--sp-6); isolation: isolate; border: var(--hair) solid var(--line-dark-soft);
}
@media (min-width: 760px) {
  .cat { grid-column: span 3; }
  .cat--wide { grid-column: span 6; min-height: 288px; }
  .cat--third { grid-column: span 2; }
}
.cat::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(115% 90% at 88% 8%, rgba(10,90,170,.22), transparent 62%);
  transition: opacity var(--dur-base) var(--ease-out-expo);
}
.cat::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(150deg, rgba(0,149,215,.28), rgba(0,120,192,.14) 70%, transparent);
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out-expo);
}
.cat:hover::after, .cat:focus-within::after { opacity: 1; }
.cat__img {
  position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%;
  object-fit: cover; opacity: .3; filter: grayscale(1) contrast(1.15);
  transition: transform var(--dur-slow) var(--ease-out-expo), opacity var(--dur-base) var(--ease-out-expo), filter var(--dur-base) var(--ease-out-expo);
}
.cat:hover .cat__img { transform: scale(1.06); opacity: .45; filter: grayscale(.35) contrast(1.05); }
.cat__idx {
  position: absolute; top: var(--sp-6); left: var(--sp-6);
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: var(--ls-mono-wide); color: var(--blue-300);
}
.cat h3 { font-size: 1.28rem; letter-spacing: var(--ls-4); margin-bottom: var(--sp-2); }
.cat--wide h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
.cat p { font-size: .9rem; color: rgba(255,255,255,.88); max-width: 46ch; }
.cat__specs {
  display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-3);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height var(--dur-base) var(--ease-out-expo), opacity var(--dur-base) var(--ease-out-expo), margin-top var(--dur-base) var(--ease-out-expo);
}
.cat:hover .cat__specs, .cat:focus-within .cat__specs { max-height: 90px; opacity: 1; }
.chip {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: var(--ls-mono);
  padding: var(--sp-1) var(--sp-2); border: var(--hair) solid var(--line-dark-strong); border-radius: var(--radius);
  color: rgba(255,255,255,.86); background: rgba(255,255,255,.05);
}
.cat__go {
  position: absolute; top: var(--sp-6); right: var(--sp-6);
  width: 34px; height: 34px; border-radius: var(--radius); border: var(--hair) solid var(--line-dark-strong);
  display: grid; place-items: center;
  transition: background var(--dur-fast) var(--ease-out-expo), transform var(--dur-base) var(--ease-out-expo), border-color var(--dur-fast) var(--ease-out-expo);
}
.cat:hover .cat__go { background: var(--blue-500); border-color: var(--blue-500); transform: rotate(-45deg); }
.cat__go svg { width: 15px; height: 15px; }
.cat__link { position: absolute; inset: 0; }
/* Kartice kategorija su projektovane da rade i bez slike */
.cat__img.is-ph { display: none; }

/* ---------- 12. PROIZVODI ---------- */
.filters { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-8); }
.filters__row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.fchip {
  padding: var(--sp-2) var(--sp-4); border: var(--hair) solid var(--line); border-radius: var(--radius);
  font-size: .88rem; font-weight: 500; background: #fff;
  transition: background var(--dur-fast) var(--ease-out-expo), color var(--dur-fast) var(--ease-out-expo),
              border-color var(--dur-fast) var(--ease-out-expo), transform var(--dur-fast) var(--ease-out-expo);
}
.fchip:hover { border-color: var(--blue-500); color: var(--blue-700); transform: translateY(-1px); }
.fchip.is-active { background: var(--graphite-900); border-color: var(--graphite-900); color: #fff; }
.search {
  display: flex; align-items: center; gap: var(--sp-3); border: var(--hair) solid var(--line);
  border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); background: #fff; max-width: 420px;
  transition: border-color var(--dur-fast) var(--ease-out-expo), box-shadow var(--dur-fast) var(--ease-out-expo);
}
.search:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(0,149,215,.12); }
.search input { border: 0; outline: 0; flex: 1; background: none; }
.search svg { width: 17px; height: 17px; color: var(--steel-400); flex: none; }

.pgrid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 264px), 1fr)); }
.pcard {
  position: relative; display: flex; flex-direction: column;
  border: var(--hair) solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: #fff;
  transition: transform var(--dur-base) var(--ease-out-expo), border-color var(--dur-base) var(--ease-out-expo);
}
.pcard:hover { transform: translateY(-3px); border-color: var(--blue-300); }
.pcard__media {
  position: relative; aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--steel-050), var(--steel-100));
  display: grid; place-items: center; overflow: hidden;
}
.pcard__media img { width: 100%; height: 100%; object-fit: contain; padding: var(--sp-4); transition: transform var(--dur-slow) var(--ease-out-expo); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__brand {
  position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: 2; font-family: var(--f-mono); font-size: 10px;
  letter-spacing: var(--ls-mono); padding: var(--sp-1) var(--sp-2); background: var(--graphite-900); color: #fff; border-radius: var(--radius);
}
.pcard__body { padding: var(--sp-5); display: grid; gap: var(--sp-2); flex: 1; align-content: start; }
.pcard__body h3 { font-size: 1.02rem; letter-spacing: var(--ls-4); }
.pcard__blurb { font-size: .87rem; }
.pcard__foot { margin-top: auto; padding: 0 var(--sp-5) var(--sp-5); }
.pcard__foot .btn { width: 100%; }
.no-hits { padding: var(--sp-11); text-align: center; border: var(--hair) dashed var(--line); border-radius: var(--radius-lg); }

/* Inženjerska crtica u gornjem levom uglu kartice */
.rcard::before, .pcard::before {
  content: ""; position: absolute; left: 0; top: 0; z-index: 3;
  width: 10px; height: 10px; pointer-events: none;
  border-left: var(--hair) solid var(--blue-500);
  border-top: var(--hair) solid var(--blue-500);
  opacity: .35;
}

/* Tehnički redovi: naziv levo, tačkasti vodič, vrednost desno na istoj osi */
.pcard__specs { display: grid; gap: var(--sp-1); font-family: var(--f-body); font-size: 11.5px; color: var(--ink-soft); }
.pcard__specs div { display: flex; align-items: baseline; gap: var(--sp-2); }
.pcard__specs span { flex: none; white-space: nowrap; }
.pcard__specs i { flex: 1 0 12px; border-bottom: var(--hair) dotted var(--line-strong); transform: translateY(-.25em); }
.pcard__specs b {
  flex: 0 1 auto; min-width: 0; font-family: var(--f-mono); font-weight: 500; color: var(--ink);
  font-variant-numeric: tabular-nums; text-align: right;
}

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: var(--z-overlay); display: grid; place-items: center;
  padding: var(--gutter); opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out-expo), visibility var(--dur-base);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__bd { position: absolute; inset: 0; background: rgba(12,14,17,.7); backdrop-filter: blur(4px); }
.modal__panel {
  position: relative; background: #fff; border-radius: var(--radius-lg); width: min(760px, 100%);
  max-height: 86vh; overflow-y: auto; padding: var(--sp-8);
  transform: translateY(16px) scale(.98); transition: transform var(--dur-base) var(--ease-out-expo);
}
.modal.is-open .modal__panel { transform: none; }
.modal__close { position: absolute; top: var(--sp-4); right: var(--sp-4); width: 38px; height: 38px; border: var(--hair) solid var(--line); border-radius: var(--radius); display: grid; place-items: center; }
.modal__close svg { width: 16px; height: 16px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: var(--sp-4); }
.spec-table td { padding: var(--sp-2) 0; border-bottom: var(--hair) solid var(--line); vertical-align: baseline; }
.spec-table .sp__lb { font-family: var(--f-body); color: var(--ink-soft); white-space: nowrap; width: 1%; padding-right: var(--sp-2); }
.spec-table .sp__ld { width: 100%; padding-inline: 0; }
.spec-table .sp__ld i { display: block; border-bottom: var(--hair) dotted var(--line-strong); transform: translateY(-.3em); }
.spec-table .sp__v {
  font-family: var(--f-mono); font-weight: 500; font-variant-numeric: tabular-nums;
  text-align: right; white-space: nowrap; width: 1%; padding-left: var(--sp-2);
}

/* ---------- 13. SPLIT / ROBOTIKA ---------- */
.split { display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 940px) { .split { grid-template-columns: repeat(2, 1fr); gap: var(--sp-16); } }
.split--rev > *:first-child { order: 0; }
@media (min-width: 940px) { .split--rev > *:first-child { order: 2; } }
.visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3; border: var(--hair) solid var(--line-dark-soft);
  background:
    radial-gradient(60% 55% at 62% 34%, rgba(0,149,215,.28), transparent 62%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.045) 0 2px, transparent 2px 16px),
    linear-gradient(155deg, var(--graphite-700), var(--graphite-900));
}
.visual img { width: 100%; height: 100%; object-fit: cover; }
.visual__glow {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(60% 60% at 30% 70%, rgba(0,149,215,.35), transparent 60%),
              radial-gradient(45% 45% at 78% 24%, rgba(0,120,192,.24), transparent 62%);
  mix-blend-mode: screen;
}
.visual__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: var(--sp-6);
  background: linear-gradient(0deg, rgba(10,12,14,.92), transparent);
  font-family: var(--f-mono); font-size: var(--t-xs); color: rgba(255,255,255,.82); letter-spacing: var(--ls-mono);
}

/* Lista prednosti */
.ticks { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
.ticks li { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: .96rem; }
.ticks .tk {
  flex: none; width: 20px; height: 20px; border-radius: 50%; margin-top: 3px;
  display: grid; place-items: center; background: rgba(0,149,215,.14); color: var(--blue-500);
}
.section--dark .ticks .tk { background: rgba(0,149,215,.2); color: var(--blue-300); }
.ticks .tk svg { width: 11px; height: 11px; }

/* ---------- 14. RAZLOZI / KARTICE ---------- */
.rcard {
  position: relative; padding: var(--sp-6); border: var(--hair) solid var(--line); border-radius: var(--radius-lg);
  background: #fff; overflow: hidden; height: 100%;
  transition: transform var(--dur-base) var(--ease-out-expo), border-color var(--dur-base) var(--ease-out-expo);
}
.rcard:hover { transform: translateY(-3px); border-color: var(--blue-300); }
.rcard::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-400));
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-out-expo);
}
.rcard:hover::after { transform: scaleX(1); }
.rcard__ic {
  width: 44px; height: 44px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--steel-050); color: var(--blue-700); margin-bottom: var(--sp-4);
  transition: background var(--dur-base) var(--ease-out-expo), color var(--dur-base) var(--ease-out-expo);
}
.rcard:hover .rcard__ic { background: var(--blue-700); color: #fff; }
.rcard__ic svg { width: 21px; height: 21px; }
.rcard h3 { font-size: 1.08rem; letter-spacing: var(--ls-4); margin-bottom: var(--sp-2); }
.rcard p { font-size: .92rem; color: var(--ink-soft); }
.section--dark .rcard { background: rgba(255,255,255,.035); border-color: var(--line-dark); }
.section--dark .rcard p { color: var(--ink-invert-soft); }
.section--dark .rcard__ic { background: rgba(255,255,255,.07); color: var(--blue-300); }

/* ---------- 15. PROCES (numerisano — stvarni redosled koraka) ---------- */
.steps { counter-reset: st; display: grid; gap: 0; }
.step {
  counter-increment: st; display: grid; gap: var(--sp-2); padding: var(--sp-6) 0;
  border-top: var(--hair) solid var(--line-dark); position: relative;
  grid-template-columns: 54px 1fr;
}
@media (min-width: 880px) { .step { grid-template-columns: 90px minmax(0, 320px) 1fr; gap: var(--sp-6); align-items: baseline; } }
.step:last-child { border-bottom: var(--hair) solid var(--line-dark); }
.step::before {
  content: "0" counter(st); font-family: var(--f-mono); font-size: var(--t-sm);
  color: var(--blue-300); letter-spacing: var(--ls-mono);
}
.step h3 { font-size: 1.12rem; letter-spacing: var(--ls-4); }
.step p { font-size: .93rem; color: var(--ink-invert-soft); grid-column: 2 / -1; }
@media (min-width: 880px) { .step p { grid-column: 3; } }
.step::after {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0;
  background: linear-gradient(90deg, var(--blue-400), transparent);
  transition: width var(--dur-slow) var(--ease-out-expo);
}
.step:hover::after { width: 100%; }

/* ---------- 16. VESTI --------------------------------------------------- */
/* Jedna komponenta: novosti, početna i roboti koriste iste kartice. */
.nlist { display: grid; }
.nchips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-6) 0 var(--sp-8); }
.nchip {
  display: inline-flex; align-items: baseline; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4); border: var(--hair) solid var(--line);
  border-radius: 999px; font-size: var(--t-sm); color: var(--ink-soft);
  transition: border-color var(--dur-fast) var(--ease-out-expo),
              background var(--dur-fast) var(--ease-out-expo),
              color var(--dur-fast) var(--ease-out-expo);
}
.nchip:hover { border-color: var(--blue-300); color: var(--ink); }
.nchip.is-on { background: var(--graphite-900); border-color: var(--graphite-900); color: #fff; }
.nchip__n {
  font-family: var(--f-mono); font-size: 10px; color: var(--steel-400);
  font-variant-numeric: tabular-nums;
}
.nchip.is-on .nchip__n { color: var(--blue-300); }
.nempty { margin-top: var(--sp-8); color: var(--ink-soft); }

/* oznaka godine — lepljiva, uz levu ivicu kolone teksta */
.nyear {
  position: sticky; top: calc(var(--header-h) + var(--sp-2)); z-index: 2;
  font-family: var(--f-mono); font-size: var(--t-sm); letter-spacing: var(--ls-mono);
  color: var(--steel-400); padding: var(--sp-4) 0 var(--sp-2);
  background: linear-gradient(180deg, var(--bg) 70%, transparent);
  font-variant-numeric: tabular-nums;
}

/* izdvojena objava */
.nfeat {
  display: grid; gap: var(--sp-6); margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-8); border-bottom: var(--hair) solid var(--line);
}
@media (min-width: 860px) {
  .nfeat { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--sp-11); align-items: center; }
}
.nfeat__media {
  display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--steel-050);
}
.nfeat__media img, .nfeat__media picture {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(.6); transition: filter var(--dur-slow) var(--ease-out-expo),
                                     transform var(--dur-slow) var(--ease-out-expo);
}
.nfeat:hover .nfeat__media img { filter: none; transform: scale(1.03); }
.nfeat__title {
  font-family: var(--f-display); font-stretch: var(--wd-narrow); font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.06;
  letter-spacing: var(--ls-2); margin: var(--sp-3) 0 var(--sp-4);
}
.nfeat__title a { transition: color var(--dur-fast) var(--ease-out-expo); }
.nfeat:hover .nfeat__title a { color: var(--blue-700); }
.nfeat__ex { color: var(--ink-soft); font-size: .96rem; max-width: 52ch; }
.nfeat__go {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  margin-top: var(--sp-5); border: var(--hair) solid var(--line); border-radius: 50%;
  transition: background var(--dur-base) var(--ease-out-expo),
              border-color var(--dur-base) var(--ease-out-expo),
              color var(--dur-base) var(--ease-out-expo),
              transform var(--dur-base) var(--ease-out-expo);
}
.nfeat:hover .nfeat__go {
  background: var(--blue-700); border-color: var(--blue-700); color: #fff;
  transform: translateX(4px);
}
.nfeat__go svg { width: 15px; height: 15px; }

/* red u spisku */
.ncard {
  display: grid; gap: var(--sp-3); padding: var(--sp-6) 0;
  border-top: var(--hair) solid var(--line); align-items: center;
}
.nlist > .ncard:last-child { border-bottom: var(--hair) solid var(--line); }
@media (min-width: 700px) {
  .ncard {
    grid-template-columns: clamp(160px, 18vw, 220px) minmax(0, 1fr) auto;
    gap: var(--sp-6);
  }
}
.ncard__media {
  display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); background: var(--steel-050);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ncard__media img, .ncard__media picture {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(.6); transition: filter var(--dur-slow) var(--ease-out-expo);
}
.ncard:hover .ncard__media img { filter: none; }
.ncard__meta { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; }
.ncard__meta time, .nfeat__body time {
  font-family: var(--f-mono); font-size: var(--t-sm); color: var(--steel-400);
  letter-spacing: var(--ls-mono); font-variant-numeric: tabular-nums;
}
.ncard__tag, .nfeat__body .ncard__tag {
  font-family: var(--f-display); font-stretch: var(--wd-narrow); font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--ls-label);
  font-size: 10px; color: var(--blue-700);
}
.ncard h3 {
  font-size: 1.08rem; letter-spacing: var(--ls-4); margin-top: var(--sp-1);
  transition: color var(--dur-fast) var(--ease-out-expo);
}
.ncard:hover h3 { color: var(--blue-700); }
.ncard p { font-size: .9rem; color: var(--ink-soft); margin-top: var(--sp-1); }
.ncard__go {
  width: 36px; height: 36px; border: var(--hair) solid var(--line);
  border-radius: var(--radius); display: grid; place-items: center; flex: none;
  transition: background var(--dur-base) var(--ease-out-expo),
              border-color var(--dur-base) var(--ease-out-expo),
              color var(--dur-base) var(--ease-out-expo),
              transform var(--dur-base) var(--ease-out-expo);
}
.ncard:hover .ncard__go {
  background: var(--blue-700); border-color: var(--blue-700); color: #fff;
  transform: translateX(4px);
}
.ncard__go svg { width: 14px; height: 14px; }
/* traka od tri/četiri objave na početnoj i na robotima */
.nlist--strip > .ncard:first-child { border-top: var(--hair) solid var(--line); }

/* strana objave */
.npost { display: grid; gap: var(--sp-8); max-width: 820px; }
.npost .prose p { margin-bottom: var(--sp-4); color: var(--ink-soft); }
.ngal { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.ngal__i { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--steel-050); }
.ngal__i img, .ngal__i picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.nnav { display: grid; gap: var(--sp-4); margin-top: var(--sp-11); }
@media (min-width: 700px) { .nnav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nnav__i {
  display: grid; gap: var(--sp-1); padding: var(--sp-5);
  border: var(--hair) solid var(--line); border-radius: var(--radius-lg);
  transition: border-color var(--dur-fast) var(--ease-out-expo),
              background var(--dur-fast) var(--ease-out-expo);
}
.nnav__i:hover { border-color: var(--blue-300); background: var(--steel-050); }
.nnav__i--next { text-align: right; }
.nnav__lb {
  font-family: var(--f-display); font-stretch: var(--wd-narrow); font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--ls-label);
  font-size: 10px; color: var(--blue-700);
}
.nnav__t { font-family: var(--f-display); font-weight: 600; letter-spacing: var(--ls-4); }

@media (max-width: 699px) {
  .ncard__media { aspect-ratio: 16 / 9; }
  .ncard__go { display: none; }
}

/* ---------- 17. CTA TRAKA ---------- */
.cta-band {
  position: relative; background: var(--blue-700); color: #fff; overflow: hidden;
  background-image: linear-gradient(115deg, var(--blue-900), var(--blue-700) 45%, var(--blue-500));
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .17;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.28) 14px 15px);
}
.cta-band__in { position: relative; display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 940px) { .cta-band__in { grid-template-columns: 1fr auto; gap: var(--sp-11); } }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.9); margin-top: var(--sp-3); }
.cta-band .btn { --btn-bg: #fff; --btn-fg: var(--blue-900); }
.cta-band .btn::before { background: var(--graphite-900); }
.cta-band .btn:hover { --btn-fg: #fff; color: #fff; }
.cta-band .btn--ghost {
  --btn-bg: transparent; --btn-fg: #fff;
  border-color: rgba(255,255,255,.5); color: #fff;
}
.cta-band .btn--ghost::before { background: #fff; }
.cta-band .btn--ghost:hover { --btn-fg: var(--blue-900); color: var(--blue-900); border-color: #fff; }

/* ---------- 18. KONTAKT ---------- */
.ccard {
  padding: var(--sp-6); border: var(--hair) solid var(--line); border-radius: var(--radius-lg);
  display: grid; gap: var(--sp-2); align-content: start; background: #fff;
  transition: border-color var(--dur-base) var(--ease-out-expo), transform var(--dur-base) var(--ease-out-expo);
}
.ccard:hover { border-color: var(--blue-300); transform: translateY(-3px); }
.ccard__ic { width: 38px; height: 38px; border-radius: var(--radius); background: var(--steel-050); color: var(--blue-700); display: grid; place-items: center; margin-bottom: var(--sp-1); }
.ccard__ic svg { width: 18px; height: 18px; }
.ccard h3 { font-size: 1rem; letter-spacing: var(--ls-4); }
.ccard a:hover { color: var(--blue-700); }

.form { display: grid; gap: var(--sp-4); }
@media (min-width: 700px) { .form__two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); } }
.field { display: grid; gap: var(--sp-1); }
.field label { font-size: var(--t-sm); font-weight: 500; }
.field input, .field textarea, .field select {
  border: var(--hair) solid var(--line); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4);
  background: #fff; transition: border-color var(--dur-fast) var(--ease-out-expo), box-shadow var(--dur-fast) var(--ease-out-expo);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(0,149,215,.12);
}
.field textarea { resize: vertical; min-height: 132px; }
.form__note { font-size: var(--t-sm); color: var(--ink-soft); }
.hp { display: none; }
.form__msg { font-size: .92rem; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); display: none; }
.form__msg.ok { display: block; background: rgba(0,149,215,.1); color: var(--blue-900); border: var(--hair) solid rgba(0,149,215,.3); }
.form__msg.err { display: block; background: rgba(211,28,30,.08); color: var(--red-600); border: var(--hair) solid rgba(211,28,30,.3); }

.map-frame { border: var(--hair) solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--steel-050); }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(.35) contrast(1.05); }

/* ---------- 19. GALERIJA ---------- */
.gal { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.gal figure {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4/3;
  background: var(--graphite-800); border: var(--hair) solid var(--line-dark-soft);
}
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out-expo), filter var(--dur-base) var(--ease-out-expo); filter: grayscale(.25); }
.gal figure:hover img { transform: scale(1.04); filter: none; }
.gal figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-4);
  background: linear-gradient(0deg, rgba(10,12,14,.92), transparent);
  color: #fff; font-size: .88rem;
  transform: translateY(6px); opacity: 0;
  transition: transform var(--dur-base) var(--ease-out-expo), opacity var(--dur-base) var(--ease-out-expo);
}
.gal figure:hover figcaption, .gal figure:focus-within figcaption { transform: none; opacity: 1; }

/* ---------- 20. FOOTER ---------- */
.footer { background: var(--graphite-900); color: var(--ink-invert-soft); padding-block: var(--sp-16) var(--sp-6); }
.footer__grid { display: grid; gap: var(--sp-8); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-11); } }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: var(--ls-4); margin-bottom: var(--sp-4); }
.footer li + li { margin-top: var(--sp-2); }
.footer a { transition: color var(--dur-fast) var(--ease-out-expo); display: inline-block; font-size: .92rem; }
.footer a:hover { color: var(--blue-300); }
.footer__desc { font-size: .92rem; max-width: 40ch; margin-block: var(--sp-4); }
.socials { display: flex; gap: var(--sp-2); }
.socials a {
  width: 38px; height: 38px; border: var(--hair) solid var(--line-dark); border-radius: var(--radius);
  display: grid; place-items: center;
  transition: background var(--dur-base) var(--ease-out-expo), border-color var(--dur-base) var(--ease-out-expo), transform var(--dur-base) var(--ease-out-expo);
}
.socials a:hover { background: var(--blue-700); border-color: var(--blue-700); color: #fff; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.footer__bottom {
  margin-top: var(--sp-11); padding-top: var(--sp-6); border-top: var(--hair) solid var(--line-dark);
  display: grid; gap: var(--sp-3); font-size: var(--t-sm);
}
@media (min-width: 760px) { .footer__bottom { grid-template-columns: 1fr auto; align-items: center; } }
.footer__bottom a { color: var(--steel-300); }

/* ---------- 21. DOK: AI ASISTENT + NAZAD NA VRH ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: var(--sp-6);
  z-index: var(--z-dock); pointer-events: none;
  padding-inline: var(--sp-6);
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4);
}
.dock > * { pointer-events: auto; }

/* Oba dugmeta su ista visina i dele donju liniju na svakoj širini */
.dock-btn {
  position: relative;
  width: var(--dock-size); height: var(--dock-size); flex: none;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--graphite-900); color: #fff; border: var(--hair) solid var(--line-dark);
  box-shadow: 0 14px 34px -14px rgba(0,0,0,.6);
  transition: transform var(--dur-base) var(--ease-out-expo), background var(--dur-base) var(--ease-out-expo),
              opacity var(--dur-base) var(--ease-out-expo), visibility var(--dur-base);
}
/* C3 — oba dugmeta se pojavljuju i nestaju zajedno, na istom pragu skrola.
   Dok su sakrivena ne primaju ni klik ni fokus. */
.dock-btn {
  opacity: 0; visibility: hidden; transform: translateY(10px); pointer-events: none;
  transition-delay: 0ms;
}
.dock-btn.is-on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
/* Prvo dugme „na vrh“, pa asistent 60ms za njim — par se čita kao jedan potez.
   Kašnjenje stoji u ciljnom stanju, pa važi samo pri pojavljivanju. */
#aiToggle.is-on { transition-delay: 60ms; }
.dock-btn.is-on:hover { transform: translateY(-3px); }
.dock-btn svg { width: 22px; height: 22px; }

/* Nazad na vrh */
#toTop:hover { background: var(--blue-700); border-color: var(--blue-700); }
/* max-width iz reseta bi inače stegnuo SVG na širinu padding-boksa */
#toTop .ring { position: absolute; inset: -1px; max-width: none; border-radius: 50%; }
#toTop .ring circle { fill: none; stroke-width: 2; }
#toTop .ring .bg { stroke: var(--line-dark); }
#toTop .ring .fg { stroke: var(--blue-400); stroke-linecap: round; transition: stroke-dashoffset var(--dur-fast) linear; }

/* AI dugme */
#aiToggle { background: var(--blue-700); border-color: var(--line-dark-strong); }
#aiToggle:hover { background: var(--blue-500); }
#aiToggle::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0,149,215,.55); animation: aiPulse var(--dur-pulse) var(--ease-in-out) infinite;
}
@keyframes aiPulse { 0% { box-shadow: 0 0 0 0 rgba(0,149,215,.5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(0,149,215,0); } }
body.ai-open #aiToggle::after { animation: none; }
/* Panel ne sme da ostane otvoren bez vidljivog načina da se zatvori: dok je
   otvoren, dugme stoji bez obzira na skrol. */
body.ai-open #aiToggle {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0ms;
}
#aiToggle .ic-close { display: none; }
body.ai-open #aiToggle .ic-open { display: none; }
body.ai-open #aiToggle .ic-close { display: block; }

/* Crvena je ovde stanje pažnje (nepročitana poruka), ne dekoracija */
.ai-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding-inline: var(--sp-1);
  border-radius: var(--radius); background: var(--red-500); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; border: var(--hair) solid var(--graphite-900);
}
body.ai-open .ai-badge, .ai-badge[hidden] { display: none; }
/* Znak za nepročitano ne sme da svetli sa skrivenog dugmeta */
#aiToggle:not(.is-on) .ai-badge { display: none; }

/* Panel asistenta */
.ai-panel {
  position: fixed; left: var(--sp-6); bottom: calc(var(--sp-6) + var(--dock-size) + var(--sp-3));
  width: min(384px, calc(100vw - var(--sp-12))); max-height: min(560px, calc(100svh - 130px));
  background: var(--white); border: var(--hair) solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 34px 70px -34px rgba(10,20,40,.65);
  display: flex; flex-direction: column; overflow: hidden; z-index: var(--z-dock);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.97); transform-origin: bottom left;
  transition: opacity var(--dur-base) var(--ease-out-expo), transform var(--dur-base) var(--ease-out-expo), visibility var(--dur-base);
}
body.ai-open .ai-panel { opacity: 1; visibility: visible; transform: none; }
.ai-head {
  padding: var(--sp-3) var(--sp-4); background: var(--graphite-900); color: #fff;
  display: flex; align-items: center; gap: var(--sp-3);
  background-image: radial-gradient(90% 140% at 0% 0%, rgba(0,149,215,.4), transparent 60%);
}
.ai-head__av {
  width: 34px; height: 34px; border-radius: var(--radius); background: rgba(255,255,255,.1);
  display: grid; place-items: center; flex: none; padding: 3px;
}
.ai-head__av img { width: 100%; height: 100%; object-fit: contain; }
.ai-head strong { font-family: var(--f-display); font-size: .95rem; display: block; letter-spacing: var(--ls-4); }
.ai-head span { font-size: 11px; color: var(--blue-300); display: flex; align-items: center; gap: var(--sp-1); }
.ai-head span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-400); }
.ai-head button { margin-left: auto; color: rgba(255,255,255,.72); width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--radius); }
.ai-head button:hover { color: #fff; background: rgba(255,255,255,.1); }
.ai-head button svg { width: 15px; height: 15px; }

.ai-log { flex: 1; overflow-y: auto; padding: var(--sp-4); display: grid; gap: var(--sp-3); align-content: start; scroll-behavior: smooth; }
.ai-msg { max-width: 88%; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-lg); font-size: .9rem; line-height: 1.55; }
.ai-msg a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 2px; }
.ai-msg--bot { background: var(--steel-050); border: var(--hair) solid var(--line); justify-self: start; }
.ai-msg--me { background: var(--blue-700); color: #fff; justify-self: end; }
.ai-msg--me a { color: #fff; }
.ai-msg ul { display: grid; gap: var(--sp-1); margin-top: var(--sp-1); }
.ai-msg li { padding-left: var(--sp-3); position: relative; }
.ai-msg li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-500); }
.ai-msg--in { animation: msgIn var(--dur-base) var(--ease-out-expo) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }

.ai-typing { display: inline-flex; gap: 4px; padding: var(--sp-3) var(--sp-4); }
.ai-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--steel-300); animation: dotb var(--dur-typing) infinite; }
.ai-typing i:nth-child(2) { animation-delay: calc(var(--dur-typing) / 8); }
.ai-typing i:nth-child(3) { animation-delay: calc(var(--dur-typing) / 4); }
@keyframes dotb { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.ai-sugg { display: flex; flex-wrap: wrap; gap: var(--sp-1); padding: 0 var(--sp-4) var(--sp-2); }
.ai-sugg button {
  font-size: .78rem; padding: var(--sp-1) var(--sp-2); border: var(--hair) solid var(--line); border-radius: var(--radius);
  background: #fff;
  transition: border-color var(--dur-fast) var(--ease-out-expo), color var(--dur-fast) var(--ease-out-expo), background var(--dur-fast) var(--ease-out-expo);
}
.ai-sugg button:hover { border-color: var(--blue-500); color: var(--blue-700); background: rgba(0,149,215,.06); }

.ai-form { display: flex; gap: var(--sp-2); padding: var(--sp-3); border-top: var(--hair) solid var(--line); background: var(--steel-050); }
.ai-form input { flex: 1; border: var(--hair) solid var(--line); border-radius: var(--radius); padding: var(--sp-2) var(--sp-3); font-size: .9rem; background: #fff; }
.ai-form input:focus { outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(0,149,215,.12); }
.ai-form button {
  width: 40px; height: 40px; flex: none; border-radius: var(--radius); background: var(--blue-700); color: #fff;
  display: grid; place-items: center; transition: background var(--dur-fast) var(--ease-out-expo);
}
.ai-form button:hover { background: var(--blue-500); }
.ai-form button svg { width: 17px; height: 17px; }
.ai-foot { font-size: 10px; color: var(--steel-400); text-align: center; padding: 0 var(--sp-4) var(--sp-2); background: var(--steel-050); }

/* ---------- 22. OTKRIVANJE PRI SKROLU ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-slow) var(--ease-out-expo), transform var(--dur-slow) var(--ease-out-expo); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="mask"] { clip-path: inset(0 0 100% 0); transform: none; opacity: 1; transition: clip-path var(--dur-slow) var(--ease-out-expo); }
.js [data-reveal="mask"].in { clip-path: inset(0 0 0 0); }
.js [data-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity var(--dur-slow) var(--ease-out-expo), transform var(--dur-slow) var(--ease-out-expo); }
.js [data-stagger].in > * { opacity: 1; transform: none; }

/* ---------- 23. STRANIČNI HERO — ista gramatika kao početna ---------- */
.phero {
  position: relative; min-height: 62svh; overflow: hidden;
  background: var(--graphite-900); color: #fff; isolation: isolate;
  display: grid; grid-template-rows: 1fr auto;
}
/* Fotografija — JS bira jednu od tri; na strani artikla je to slika artikla */
.phero__bg {
  position: absolute; inset: -8% 0; z-index: 0;
  opacity: 0; transition: opacity var(--dur-slow) var(--ease-out-expo);
  will-change: transform;
}
.phero__bg.is-on, .phero--has-media .phero__bg { opacity: 1; }
.phero__bg img, .phero__bg picture {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
.phero__in {
  position: relative; z-index: 5; grid-row: 1; align-self: end;
  /* A3 — nijedan sadržaj heroja ne sme da stane pod fiksno zaglavlje ni na
     jednoj visini prozora. Mereno: najmanji razmak ploče do zaglavlja je
     222px na 390×900, pa je ovo osiguranje, ne ispravka. */
  padding: calc(var(--header-h) + clamp(40px, 7vh, 88px)) var(--gutter) var(--sp-10);
  max-width: calc(var(--wrap) + var(--gutter) * 2); width: 100%;
}
/* Na širinama gde ploča stoji apsolutno, tekst joj ostavlja mesta */
@media (min-width: 700px) {
  .phero__in { padding-bottom: calc(clamp(120px, 16vh, 156px) + var(--sp-8)); }
}
.crumbs {
  display: flex; flex-wrap: wrap; gap: var(--sp-1);
  font-family: var(--f-mono); font-size: var(--t-xs); color: rgba(255, 255, 255, .7);
  margin-bottom: var(--sp-5); letter-spacing: var(--ls-mono);
}
.crumbs a:hover { color: #fff; }
.crumbs span { color: rgba(255, 255, 255, .45); }
.phero h1 { color: #fff; max-width: 18ch; }
.phero__lead {
  font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .85);
  max-width: 46ch; margin-top: var(--sp-5);
}
.phero .muted { color: var(--ink-invert-soft); }

/* Zbijena ploča strane: jedan podatak, bez strelica */
.hplate--page {
  min-height: clamp(120px, 16vh, 156px); width: clamp(320px, 26vw, 400px);
  grid-template-rows: auto; padding: var(--sp-6);
}
.hplate--page .hplate__item { grid-template-columns: 64px minmax(0, 1fr); gap: var(--sp-4); }
.hplate--page .hplate__draw svg { width: 64px; height: 64px; }
.hplate--page .hplate__val { font-size: clamp(2.2rem, 3.4vw, 3.2rem); }
.hplate--page .hplate__sub { font-size: 14px; }

@media (max-width: 699px) {
  .phero { min-height: 0; }
  .phero__in { grid-row: 1; padding-bottom: var(--sp-8); }
  .hplate--page { position: static; grid-row: 2; width: 100%; padding: var(--sp-6) var(--gutter); }
  .hplate--page .hplate__item { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 24. TIMELINE ---------- */
/* ---------- C2 · Put kompanije: šav koji se iscrtava --------------------- */
.tlwrap { position: relative; }
.tl__seam {
  position: absolute; top: 4px; bottom: 4px; width: 4px; height: auto;
  left: 7px; overflow: visible;
}
.tl__seam path {
  fill: none; stroke: var(--blue-400); stroke-width: 1;
  stroke-dasharray: 100; stroke-dashoffset: var(--seam-off, 100);
}
.tl { position: relative; display: grid; gap: var(--sp-8); }
.tl li {
  position: relative; display: grid; gap: var(--sp-2) var(--sp-6);
  grid-template-columns: minmax(0, 1fr); padding-left: var(--sp-8);
}
.tl li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--graphite-900);
  border: var(--hair) solid var(--blue-500); z-index: 1;
  transition: box-shadow var(--dur-base) var(--ease-out-expo),
              background var(--dur-base) var(--ease-out-expo);
}
.tl li:hover::before { background: var(--blue-500); box-shadow: 0 0 0 5px rgba(0,149,215,.18); }
/* Godina u suženom prikaznom pismu, ne kao sitan mono tekst. */
.tl__yr {
  font-family: var(--f-display); font-stretch: var(--wd-narrow); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; color: var(--blue-300);
  letter-spacing: var(--ls-4); font-variant-numeric: tabular-nums;
}
.tl h3 { font-size: 1.1rem; letter-spacing: var(--ls-4); margin-bottom: var(--sp-2); }
.tl .tl__body p { font-size: .93rem; color: var(--ink-invert-soft); }
/* Od 880px godina dobija svoju kolonu, pa tekst popuni ostatak trake. */
@media (min-width: 880px) {
  .tl li {
    grid-template-columns: minmax(120px, 168px) minmax(0, 1fr);
    align-items: start; padding-left: var(--sp-11);
  }
  .tl__seam { left: 15px; }
  .tl li::before { left: 8px; }
  .tl__body { max-width: 78ch; }
}

/* ---------- C3 · Ploče proizvođača -------------------------------------- */
.pgrid-brands {
  display: grid; gap: 1px; background: var(--line);
  border: var(--hair) solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; grid-template-columns: repeat(2, 1fr);
}
/* Broj kolona je delilac broja ploča, pa poslednji red nikada nije krnj:
   11 ploča → 1/2 kolone nisu delioci, pa se poslednja ploča razvlači. */
@media (min-width: 700px) { .pgrid-brands { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .pgrid-brands { grid-template-columns: repeat(4, 1fr); } }
.bplate {
  position: relative; background: #fff; min-height: 120px;
  display: grid; align-content: center; gap: var(--sp-2); padding: var(--sp-5);
  transition: background var(--dur-fast) var(--ease-out-expo);
}
.bplate:hover { background: var(--steel-050); }
/* urezan ugao — isti potez kao na pločama podataka */
.bplate::after {
  content: ""; position: absolute; right: 10px; top: 10px; width: 9px; height: 9px;
  border-top: var(--hair) solid var(--line-strong);
  border-right: var(--hair) solid var(--line-strong);
  opacity: .55; transition: border-color var(--dur-fast) var(--ease-out-expo);
}
.bplate:hover::after { border-color: var(--blue-500); opacity: 1; }
.bplate__n {
  font-family: var(--f-display); font-stretch: var(--wd-narrow); font-weight: 700;
  font-size: 1rem; letter-spacing: var(--ls-4); color: var(--graphite-900);
}
.bplate__w {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em;
  color: var(--steel-400); text-transform: uppercase;
}
/* Poslednja ploča popuni ostatak reda, da mreža nema rupu. */
.pgrid-brands > .bplate:last-child:nth-child(4n + 1) { grid-column: span 4; }
@media (min-width: 700px) and (max-width: 999px) {
  .pgrid-brands > .bplate:last-child:nth-child(3n + 1) { grid-column: span 3; }
}

/* ---------- 26. REZERVNI PRIKAZ SLIKE (umesto praznog placeholdera) ---------- */
/* Kada slika nedostaje, pločica postaje namerno brendirana ploha:
   fotografija iz programa u sivim tonovima + znak Neminika u sredini. */
img.is-ph, .pcard__media img.is-ph, .visual img.is-ph {
  width: 100%; height: 100%; object-fit: cover; object-position: center; padding: 0;
  filter: grayscale(1) contrast(1.05); opacity: .28;
}
.pcard:hover .pcard__media img.is-ph { transform: none; }
img.ph-mark, .pcard__media img.ph-mark, .visual img.ph-mark {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 34px; height: 34px; max-width: 34px; padding: 0;
  object-fit: contain; opacity: .5; pointer-events: none;
  transform: translate(-50%, -50%);
}
.pcard:hover .pcard__media img.ph-mark { transform: translate(-50%, -50%); }

/* ---------- 27. UTIL ---------- */
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-8); }
.mt-7 { margin-top: var(--sp-11); }
.center { text-align: center; }
.flex-btns { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- 28. SMANJENO KRETANJE ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero h1 .ln > span { transform: none !important; }
  .marquee { animation: none; }
  /* Slajder stoji na prvom kadru: bez automatskog kretanja i bez Ken Burnsa.
     Strelice i krug i dalje menjaju sliku, samo bez pretapanja. */
  .hero__slide.is-active img { animation: none; transform: none; }
  .hero__next-img.is-on img { animation: none; transform: none; }
  .hero__title .ln > span { transform: none !important; }
  /* Kursor se nikada ne krije */
  .hero.can-idle:not(.is-live) { cursor: auto; }
  .hero.can-idle:not(.is-live) .rbtn,
  .hero.can-idle:not(.is-live) .hero__next { opacity: 1; pointer-events: auto; }
  /* Zaglavlje i dalje menja stanje, samo trenutno */
  .header { transition: none; }
}


/* ==========================================================================
   30. MIGRACIJA I PRECIZNOST — komponente uvedene u drugom prolazu
   ========================================================================== */

/* ---------- C2. Osa širine pisma ---------------------------------------- */
/* Dva podskupa po pismu: `-latin` nosi osnovnu latinicu, `-var`/bez sufiksa
   prošireni deo sa č ć š ž đ. Ranije je prošireni fajl bio prijavljen i za
   opseg osnovne latinice, koju ne sadrži, pa je ceo tekst padao na sistemsko
   pismo — otud i osa širine nije radila. */
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var-latin.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/plexmono-400-latin.woff2") format("woff2");
  font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC,
                 U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400; font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/plexmono-500-latin.woff2") format("woff2");
  font-weight: 500; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC,
                 U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/plexmono-500.woff2") format("woff2");
  font-weight: 500; font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --wd-wide: 112%;   /* naslovi */
  --wd-base: 100%;   /* telo */
  --wd-narrow: 88%;  /* oznake verzalom */
  --ls-label: .08em;
}

.h-3, .h-4 { font-stretch: 106%; }
body, .lead, p, li, td, th, input, textarea, select, button { font-stretch: var(--wd-base); }

/* Jedina klasa za oznake: Archivo suženo, verzal, prošireno pismo.
   IBM Plex Mono od sada nosi isključivo brojčane vrednosti. */
.lb, .shead__lb, .shead__ix, .shead__meta, .cat__idx, .chip,
.phero__ix, .band__cap, .visual__caption, .plate__lb, .fgeo__lb,
.crumbs, .loader__txt, .pcard__brand, .rel__brand,
.pbrand, .field__hint, .mega__feat-lb, .sp-lb, .ccard__mono, .e404 .shead__lb {
  font-family: var(--f-display);
  font-stretch: var(--wd-narrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  font-variant-numeric: tabular-nums;
}
.plate__num, .sp__v, .pcard__specs b, .dtable td, .ncard__date,
.step::before, .fgeo__co, .sp-num, .mega__n, .fchip__n {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- C1. Zaglavlje sekcije --------------------------------------- */
.shead { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-11); max-width: 72ch; }
.shead__bar {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--t-xs); color: var(--blue-700); margin: 0;
}
.section--dark .shead__bar, .cta-band .shead__bar, .phero .shead__bar { color: var(--blue-300); }
.shead__ix { color: var(--ink-soft); flex: none; }
.section--dark .shead__ix, .cta-band .shead__ix { color: var(--ink-invert-soft); }
.shead__rule { flex: 1; height: 1px; background: var(--line); min-width: var(--sp-6); }
.section--dark .shead__rule, .cta-band .shead__rule { background: var(--line-dark); }
.shead__meta { flex: none; color: var(--ink-soft); }
.section--dark .shead__meta, .cta-band .shead__meta { color: var(--ink-invert-soft); }
.cta-band .shead { margin-bottom: var(--sp-4); }

/* ---------- C18. Šav između sekcija ------------------------------------- */
.seam {
  height: 1px; width: 100%;
  background-image: repeating-linear-gradient(90deg,
    var(--blue-500) 0 6px, transparent 6px 14px);
  opacity: .5;
}
.seam--inv { background-image: repeating-linear-gradient(90deg,
    var(--blue-300) 0 6px, transparent 6px 14px); opacity: .35; }

/* ---------- C8. Plavotisak na svetlim sekcijama -------------------------- */
.section:not(.section--dark):not(.cta-band)::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    repeating-linear-gradient(to right, rgba(10,90,170,.03) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(to bottom, rgba(10,90,170,.03) 0 1px, transparent 1px 24px);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.section > * { position: relative; z-index: 1; }

/* ---------- C4. Ploča sa podacima --------------------------------------- */
.plate {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line-dark); border: var(--hair) solid var(--line-dark);
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.35);
}
@media (min-width: 620px) { .plate--hero { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .plate--hero { grid-template-columns: repeat(2, 1fr); } }
.plate--product { grid-template-columns: repeat(2, 1fr); margin-block: var(--sp-6); }
/* Broj kolona prati broj ploča, da mreža nikada ne ostane sa rupom.
   Na uskom ekranu ploče idu jedna ispod druge — tada rupe ni nema. */
.plate[data-cells="1"], .plate[data-cells="2"], .plate[data-cells="3"] { grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .plate[data-cells="2"] { grid-template-columns: repeat(2, 1fr); }
  .plate[data-cells="3"] { grid-template-columns: repeat(3, 1fr); }
}
.plate__cell { background: rgba(16,18,21,.72); padding: var(--sp-4); backdrop-filter: blur(6px); }
.plate__num {
  font-weight: 500; font-size: 1.75rem; color: #fff; line-height: 1;
  letter-spacing: var(--ls-2);
}
.plate__num sup { font-size: .5em; color: var(--blue-300); vertical-align: super; margin-left: 2px; }
.plate__lb { font-size: 10px; color: var(--ink-invert-soft); margin-top: var(--sp-2); line-height: 1.4; }
.plate--light { background: var(--line); border-color: var(--line); box-shadow: none; }
.plate--light .plate__cell { background: var(--steel-050); backdrop-filter: none; }
.plate--light .plate__num { color: var(--ink); }
.plate--light .plate__lb { color: var(--ink-soft); }
.plate--product { background: var(--line); border-color: var(--line); box-shadow: none; }
.plate--product .plate__cell { background: var(--steel-050); backdrop-filter: none; }
.plate--product .plate__num { color: var(--ink); }
.plate--product .plate__num sup { color: var(--blue-700); }
.plate--product .plate__lb { color: var(--ink-soft); }

/* ---------- C10. Ugaona crtica kao sistem ------------------------------- */
.rcard::before, .pcard::before, .plate::after, .ccard::before,
.pgal::before, .mega__feat::before, .empty::before {
  content: ""; position: absolute; left: 0; top: 0; z-index: 3;
  width: 10px; height: 10px; pointer-events: none;
  border-left: var(--hair) solid var(--blue-500);
  border-top: var(--hair) solid var(--blue-500);
  opacity: .35;
}
.plate::after, .mega__feat::before { border-color: var(--blue-300); }

/* ---------- C3. Fotografska traka --------------------------------------- */
.band { position: relative; overflow: hidden; height: clamp(240px, 38vw, 420px); isolation: isolate; }
.band__media { position: absolute; inset: -12% 0; }
.band__media img, .band__media picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.band__tone {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(16,18,21,.86), rgba(10,90,170,.5) 60%, rgba(16,18,21,.8));
  mix-blend-mode: multiply;
}
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(16,18,21,.75), transparent 55%);
}
.band__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: var(--sp-6) var(--gutter);
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--t-xs); color: rgba(255,255,255,.9);
  max-width: var(--wrap); margin-inline: auto;
}
.band__ix { color: var(--blue-300); }

/* ---------- C6. Pločice kategorija -------------------------------------- */
.cat__media { position: absolute; inset: 0; z-index: -3; }
.cat__media img, .cat__media picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat__media img {
  filter: grayscale(.6) contrast(1.05);
  transition: filter var(--dur-base) var(--ease-out-expo);
}
.cat:hover .cat__media img { filter: grayscale(0) contrast(1.02); }
/* Fotografija ostaje fotografija; čitljivost nosi tamni pad ka dnu, ne
   plavi premaz preko celog kadra. */
.cat__tone {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,18,21,.30) 0%, rgba(16,18,21,.55) 45%,
                                      rgba(16,18,21,.88) 100%);
}
.cat__count { font-size: var(--t-xs); color: var(--blue-300); margin-top: var(--sp-2); }
.cat__count b { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ---------- C7. Jedinstvena gramatika prelaza --------------------------- */
.gal img, .rel__media img, .pgal__thumb img {
  filter: grayscale(.6); transition: filter var(--dur-base) var(--ease-out-expo);
}
.gal figure:hover img, .rel:hover .rel__media img, .pgal__thumb:hover img { filter: none; }

/* ---------- C9. Lepljiva bočna šina ------------------------------------- */
/* ---------- A1/A2 · Leva šina i sekcije pune širine --------------------- */
/* Ranije je .railwrap bio mreža od dve kolone, pa je *svaka* sekcija u njoj
   počinjala 190px od leve ivice — nijedna traka nije stvarno išla preko cele
   širine, a ispod kratkog spiska ostajalo je do 4800px prazne kolone.
   Sada mreža ima imenovane linije: članak stoji u svojoj koloni, a sekcija
   koja slika svoju podlogu izlazi na punu širinu ekrana. */
.railwrap { position: relative; }
.srail { display: none; }
.railmain { min-width: 0; display: contents; }

@media (min-width: 1100px) {
  .railwrap {
    --rail-w: clamp(180px, 15vw, 220px);
    --rail-gap: var(--sp-10);
    display: grid;
    /* Srednje tri kolone zajedno daju tačno širinu standardnog wrap-a, pa se
       desna ivica članka poklapa sa desnom ivicom punih traka (mereno: 0px). */
    grid-template-columns:
      [full-start] minmax(var(--gutter), 1fr)
      [rail-start] var(--rail-w)
      [rail-end] var(--rail-gap)
      [main-start] minmax(0, calc(min(var(--wrap), 100vw - var(--gutter) * 2)
                                  - var(--rail-w) - var(--rail-gap)))
      [main-end] minmax(var(--gutter), 1fr) [full-end];
  }
  /* članak: desna ivica mu se poklapa sa desnom ivicom punih traka */
  .railwrap > .section, .railmain > .section { grid-column: main-start / main-end; }
  .railwrap > .section > .wrap, .railmain > .section > .wrap {
    max-width: none; padding-inline: 0; margin-inline: 0;
  }
  /* Puna traka: podloga preko celog ekrana, ali sadržaj u istoj koloni kao
     članak. Da ide na standardni wrap, tekst bi pao tačno na kolonu šine i
     preklopio je — a i niz strane bi postojale dve različite leve ivice. */
  .railwrap > .section--bleed, .railmain > .section--bleed,
  .railwrap > .band, .railmain > .band {
    grid-column: full-start / full-end;
    display: grid; grid-template-columns: inherit;
  }
  @supports (grid-template-columns: subgrid) {
    .railwrap > .section--bleed, .railmain > .section--bleed,
    .railwrap > .band, .railmain > .band { grid-template-columns: subgrid; }
  }
  .railwrap > .section--bleed > .wrap, .railmain > .section--bleed > .wrap {
    grid-column: main-start / main-end;
    max-width: none; padding-inline: 0; margin-inline: 0;
  }
  /* fotografska traka: slika ide preko cele širine, potpis u kolonu članka */
  .railwrap > .band > .band__media, .railmain > .band > .band__media,
  .railwrap > .band > .band__tone, .railmain > .band > .band__tone {
    grid-column: full-start / full-end; grid-row: 1;
  }
  .railwrap > .band > .band__cap, .railmain > .band > .band__cap {
    grid-column: main-start / main-end; grid-row: 1;
    position: relative; left: auto; right: auto; align-self: end;
  }
  /* šav između sekcija ide preko cele širine */
  .railwrap > .seam, .railmain > .seam { grid-column: full-start / full-end; }

  .srail {
    display: flex; flex-direction: column; gap: var(--sp-6);
    grid-column: rail-start / rail-end;
    /* Redovi mreže su implicitni (sekcije ih prave), pa `1 / -1` ovde
       znači samo prvi red — šina bi otišla sa prvom sekcijom. Zato
       izričit raspon preko svih redova. */
    grid-row: 1 / span 50; min-width: 0;
    position: sticky; top: calc(var(--header-h) + 32px);
    align-self: start; padding-top: var(--sp-8);
    /* Šina zauzima celu lepljivu visinu, pa hairline ide od vrha do dna
       kolone, a ploča sedi na dnu (margin-top: auto). */
    height: calc(100svh - var(--header-h) - 64px);
    /* Pune trake prelaze preko kolone šine, pa šina stoji iznad njih i menja
       boju kad je traka tamna (isto pravilo koje zaglavlje već koristi). */
    z-index: 3; padding-left: var(--sp-4);
  }
  /* hairline ide celom visinom šine, ne samo uz spisak */
  .srail::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0;
    width: var(--hair); background: var(--line);
    transition: background var(--dur-base) var(--ease-out-expo);
  }
  .srail__vert {
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em;
    text-transform: uppercase; color: var(--ink-soft); opacity: .6;
    align-self: start; margin-bottom: var(--sp-2); white-space: nowrap;
  }
  .srail__nav { position: static; }
  /* pokazivač položaja: klizi uz hairline i prati aktivnu sekciju */
  .srail__mark {
    position: absolute; left: 0; width: 2px; background: var(--blue-500);
    top: 0; height: 0; border-radius: 1px; z-index: 1;
    transition: transform var(--dur-base) var(--ease-out-expo),
                height var(--dur-base) var(--ease-out-expo);
  }
  .srail ol { display: grid; gap: var(--sp-3); }
  .srail a {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-2);
    align-items: baseline; padding: var(--sp-1) 0 var(--sp-1) var(--sp-3);
    font-size: var(--t-sm); color: var(--ink-soft); opacity: .45;
    transition: opacity var(--dur-fast) var(--ease-out-expo),
                color var(--dur-fast) var(--ease-out-expo);
  }
  .srail a:hover { opacity: .8; color: var(--blue-700); }
  .srail a.is-active { opacity: 1; color: var(--ink); }
  .rail__ix { font-family: var(--f-mono); font-size: 10px; color: var(--steel-400); }
  .srail a.is-active .rail__ix { color: var(--blue-700); }
  .srail__plate {
    margin-top: auto; padding: var(--sp-4);
    border: var(--hair) solid var(--line); border-radius: var(--radius);
    background: var(--steel-050); display: grid; gap: 2px;
  }
  .srail__plate b {
    font-family: var(--f-mono); font-size: 1.5rem; font-weight: 500;
    color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums;
  }
  .srail__plate span {
    font-family: var(--f-display); font-stretch: var(--wd-narrow); font-weight: 600;
    text-transform: uppercase; letter-spacing: var(--ls-label);
    font-size: 10px; color: var(--ink-soft);
  }

  /* Nad tamnom trakom šina prelazi u svetlo pismo — inače bi tamna slova
     stajala na tamnoj podlozi. */
  .srail.is-invert::before { background: var(--line-dark); }
  .srail.is-invert .srail__vert { color: var(--ink-invert-soft); opacity: .75; }
  .srail.is-invert a { color: var(--ink-invert-soft); }
  .srail.is-invert a:hover { color: var(--blue-300); }
  .srail.is-invert a.is-active { color: #fff; }
  .srail.is-invert a.is-active .rail__ix { color: var(--blue-300); }
  .srail.is-invert .srail__plate {
    background: rgba(255, 255, 255, .06); border-color: var(--line-dark);
  }
  .srail.is-invert .srail__plate b { color: #fff; }
  .srail.is-invert .srail__plate span { color: var(--ink-invert-soft); }
}
}

/* ---------- C11. Kursor-oznaka nad karticama ---------------------------- */
.cursorlab {
  position: fixed; left: 0; top: 0; z-index: var(--z-overlay);
  pointer-events: none; opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.8);
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue-700); color: #fff;
  font-family: var(--f-display); font-stretch: var(--wd-narrow); font-weight: 600;
  font-size: 10px; letter-spacing: var(--ls-label); text-transform: uppercase;
  transition: opacity var(--dur-fast) var(--ease-out-expo), transform var(--dur-fast) var(--ease-out-expo);
}
.cursorlab.is-on { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
@media (hover: none), (pointer: coarse) { .cursorlab { display: none; } }

/* ---------- C13. Šav kroz korake procesa -------------------------------- */
.steps { position: relative; }
.steps__seam {
  position: absolute; left: 22px; top: 0; bottom: 0; width: 4px; height: 100%;
  overflow: visible;
}
@media (min-width: 880px) { .steps__seam { left: 30px; } }
.steps__seam path {
  fill: none; stroke: var(--blue-400); stroke-width: 1;
  stroke-dasharray: 100; stroke-dashoffset: var(--seam-off, 100);
}
.step { position: relative; padding-left: var(--sp-11); }
@media (min-width: 880px) { .step { padding-left: 0; } }
.step__bead {
  position: absolute; left: 18px; top: calc(var(--sp-6) + .35em);
  width: 9px; height: 9px; border-radius: 50%; background: var(--graphite-900);
  border: var(--hair) solid var(--blue-400); z-index: 1;
}
@media (min-width: 880px) { .step__bead { left: 26px; } }

/* ---------- C15. Duh-dugme: samo hairline obod, bez uglastih zagrada ----- */
/* Uglaste zagrade su uklonjene — jedini oblik kontrole na sajtu je pilula. */
.btn--ghost { position: relative; }

/* ---------- C16. Preciznost forme --------------------------------------- */
.field label { font-family: var(--f-display); font-stretch: var(--wd-narrow);
  text-transform: uppercase; letter-spacing: var(--ls-label); font-size: var(--t-xs); }
.field__hint { font-size: 10px; color: var(--steel-400); margin-top: var(--sp-1); }
.field__err {
  font-size: var(--t-sm); color: var(--red-600); margin-top: var(--sp-1); display: none;
}
.field.is-bad .field__err { display: block; }
.field.is-bad input, .field.is-bad textarea { border-color: var(--red-500); }
.field__file { font-family: var(--f-mono); font-size: var(--t-sm); color: var(--blue-700);
  margin-top: var(--sp-2); }
.field--file input[type=file] { padding: var(--sp-2); font-size: var(--t-sm); }
.form button[type=submit][data-state=busy] { opacity: .7; pointer-events: none; }

/* ---------- C19. Prazna stanja ------------------------------------------ */
.empty {
  position: relative; display: grid; gap: var(--sp-6); align-items: center;
  border: var(--hair) solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--graphite-900); color: #fff;
}
@media (min-width: 760px) { .empty { grid-template-columns: 1fr 1.2fr; } }
.empty__media { position: relative; min-height: 200px; }
.empty__media img, .empty__media picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.empty__tone {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(16,18,21,.6), rgba(10,90,170,.55));
  mix-blend-mode: multiply;
}
.empty__body { padding: var(--sp-8); display: grid; gap: var(--sp-4); }
.empty__body h3 { color: #fff; }
.empty__body .lead { color: var(--ink-invert-soft); }
.no-hits { padding: 0; border: 0; }

/* ---------- Strana artikla ---------------------------------------------- */
/* .pdetail (fiksne dve kolone) uklonjen uz C2 — raspored sada bira build.py. */
.pgal { position: relative; border: var(--hair) solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.pgal__main { aspect-ratio: 1 / 1; background: #fff; }
.pgal__main img, .pgal__main picture { width: 100%; height: 100%; object-fit: contain; display: block; }
.pgal__thumbs { display: flex; gap: var(--sp-2); padding: var(--sp-3); border-top: var(--hair) solid var(--line); flex-wrap: wrap; }
.pgal__thumb {
  width: 64px; height: 64px; border: var(--hair) solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff; padding: 0;
  transition: border-color var(--dur-fast) var(--ease-out-expo);
}
.pgal__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pgal__thumb.is-active, .pgal__thumb:hover { border-color: var(--blue-500); }
.pgal--empty { border: 0; }
.pbrand { font-size: var(--t-xs); color: var(--blue-700); }
.pdetail__actions { margin-top: var(--sp-6); }
.pdocs { margin-top: var(--sp-8); }
.pdocs ul { display: grid; gap: var(--sp-2); }
.pdocs a {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4);
  border: var(--hair) solid var(--line); border-radius: var(--radius); font-size: .92rem;
  transition: border-color var(--dur-fast) var(--ease-out-expo), background var(--dur-fast) var(--ease-out-expo);
}
.pdocs a:hover { border-color: var(--blue-500); background: var(--steel-050); }
.pdocs svg { width: 17px; height: 17px; color: var(--blue-700); flex: none; }
.pdocs span { flex: 1; }
.pcols { display: grid; gap: var(--sp-11); }
@media (min-width: 940px) { .pcols { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--sp-16); } }
.prose p { margin-bottom: var(--sp-4); color: var(--ink-soft); font-size: .96rem; }
/* .dtable-wrap i stara pravila .dtable obrisana su uz C2 — tabele sada
   ispisuje data_table() sa <thead>, spojenim ćelijama i omotom .table-scroll,
   a oblikuje ih blok na kraju ove datoteke.  Staro `white-space: nowrap`
   sprečavalo je prelamanje i kada se tabela složi u spisak na telefonu. */
.relgrid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.rel {
  position: relative; display: grid; gap: var(--sp-2); padding: var(--sp-4);
  border: var(--hair) solid var(--line); border-radius: var(--radius-lg); background: #fff;
  transition: transform var(--dur-base) var(--ease-out-expo), border-color var(--dur-base) var(--ease-out-expo);
}
.rel:hover { transform: translateY(-2px); border-color: var(--blue-300); }
/* Deo artikala je snimljen beo na belom (npr. Eckert Opal Waterjet Combo), pa
   se u sličici slabo odvaja od podloge kartice. Hairline okvir daje polju
   fotografije granicu i kada je sam artikal skoro beo. */
.rel__media { display: block; aspect-ratio: 4/3; background: var(--steel-050); border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.rel__media img, .rel__media picture { width: 100%; height: 100%; object-fit: contain; display: block; }
.rel__brand { font-size: 10px; color: var(--blue-700); }
.rel__name { font-family: var(--f-display); font-weight: 600; font-size: .95rem; letter-spacing: var(--ls-4); }

/* ---------- Mega meni: sličice, brojači, izdvojeni artikal --------------- */
.mega__thumb { display: block; height: 68px; margin-bottom: var(--sp-3); border-radius: var(--radius); overflow: hidden; background: var(--steel-050); }
.mega__thumb img, .mega__thumb picture { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.6); }
.mega__n { font-size: 10px; color: var(--steel-400); margin-left: var(--sp-2); }
.mega__col h4 a { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); }
.mega__col li a { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); }
.mega__feat { position: relative; }
.mega__feat-lb { font-size: 10px; color: var(--blue-300); }
.mega__feat-link { display: grid; gap: var(--sp-2); }
.mega__feat-link img, .mega__feat-link picture { width: 100%; height: 120px; object-fit: contain; background: rgba(255,255,255,.06); border-radius: var(--radius); display: block; }
.mega__feat-name { font-family: var(--f-display); font-weight: 700; font-size: 1rem; color: #fff; letter-spacing: var(--ls-4); }
.mega__feat-brand { font-size: 10px; color: var(--blue-300); font-family: var(--f-display); font-stretch: var(--wd-narrow); text-transform: uppercase; letter-spacing: var(--ls-label); }

/* Traka jezika je preseljena u zaglavlje (odeljak 8); staro pravilo je ovde
   nadjačavalo novu boju i obaralo kontrast EN-a na 3,9:1. */

/* ---------- Čipovi i brojači kataloga ----------------------------------- */
.fchip { display: inline-flex; align-items: baseline; gap: var(--sp-2); }
.fchip__n { font-size: 10px; opacity: .7; }
.phero__ix { display: flex; gap: var(--sp-3); font-size: var(--t-xs); color: var(--blue-300); margin-bottom: var(--sp-3); }
.phero__ix span { color: var(--steel-300); }

/* ---------- C12. Podnožje kao tehnički crtež ---------------------------- */
.footer__top { display: grid; gap: var(--sp-4); padding-block: var(--sp-8) var(--sp-11); }
@media (min-width: 940px) { .footer__top { grid-template-columns: auto minmax(0, 46ch); align-items: start; gap: var(--sp-16); } }
.footer__loc { display: grid; gap: var(--sp-4); align-content: start; }
.fgeo__lb { font-size: 10px; color: var(--blue-300); }
.fgeo p { font-size: .9rem; }
.fgeo__co { font-size: var(--t-sm); color: var(--steel-300); }
/* .fplate — ploča „PODACI O DRUŠTVU“ uklonjena uz C4, vidi MISSING.md. */

/* ---------- 404 --------------------------------------------------------- */
.e404 { display: grid; gap: var(--sp-8); margin-top: var(--sp-11); }
@media (min-width: 760px) { .e404 { grid-template-columns: repeat(3, 1fr); } }
.e404__list { display: grid; gap: var(--sp-2); margin-top: var(--sp-4); }
.e404__search { max-width: none; margin-top: var(--sp-4); }

/* ---------- Uzorak pisma ------------------------------------------------ */
.specimen { display: grid; gap: var(--sp-8); }
.sp-row { display: grid; gap: var(--sp-2); padding-bottom: var(--sp-6); border-bottom: var(--hair) solid var(--line); }
.sp-lb { font-size: 10px; color: var(--steel-400); }
.sp-hero { font-family: var(--f-display); font-weight: 800; font-stretch: 62%; font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: -.01em; text-transform: uppercase; line-height: .88; }
.sp-h1 { font-family: var(--f-display); font-weight: 800; font-stretch: 62%; font-size: clamp(1.8rem, 4.5vw, 3rem); letter-spacing: -.01em; text-transform: uppercase; line-height: .9; }
.sp-h2 { font-family: var(--f-display); font-weight: 800; font-stretch: 62%; font-size: 1.9rem; letter-spacing: -.008em; text-transform: uppercase; }
.sp-body { font-size: 1.05rem; color: var(--ink-soft); max-width: 62ch; }
.sp-lb + .sp-lb { margin: 0; }
.sp-num { font-size: 1.2rem; }
.sp-dia { font-family: var(--f-display); font-weight: 800; font-stretch: 62%; font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -.01em; text-transform: none; }

/* ---------- C17. Prelazi između strana ---------------------------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut var(--dur-base) var(--ease-out-expo) both; }
::view-transition-new(root) { animation: vtIn var(--dur-base) var(--ease-out-expo) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Smanjeno kretanje: dopune ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .steps__seam path, .tl__seam path { stroke-dashoffset: 0 !important; }
  .cursorlab { display: none !important; }
  .band__media { transform: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  /* C3 — dok se i dalje pojavljuje i nestaje na istom pragu, ali bez pomeranja
     i bez kašnjenja: menja se samo prozirnost. */
  .dock-btn { transform: none !important; transition-delay: 0ms !important; }
  .dock-btn.is-on:hover { transform: none !important; }
  #aiToggle.is-on { transition-delay: 0ms !important; }
}

/* ---------- 29. ŠTAMPA ---------- */
@media print {
  .header, .dock, .ai-panel, .loader, .scroll-progress,
  .hero__canvas, .hero__slider, .phero__bg { display: none !important; }
  body { color: #000; background: #fff; }
}


/* ==========================================================================
   31. UREDNIČKI HERO — posledice na ostatku sajta (delovi C4 i C5)
   ========================================================================== */

/* C4. Tamna sekcija je sada prava crna traka sa istom teksturom vodilja */
.section--dark, .footer {
  background: var(--graphite-900);
  position: relative;
}
.section--dark::before, .footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04), rgba(255, 255, 255, .04)),
    linear-gradient(rgba(255, 255, 255, .04), rgba(255, 255, 255, .04)),
    linear-gradient(rgba(255, 255, 255, .04), rgba(255, 255, 255, .04)),
    linear-gradient(rgba(255, 255, 255, .04), rgba(255, 255, 255, .04)),
    linear-gradient(rgba(255, 255, 255, .04), rgba(255, 255, 255, .04));
  background-size: 1px 100%;
  background-position: 15% 0, 32% 0, 50% 0, 68% 0, 85% 0;
  background-repeat: no-repeat;
}
@media (max-width: 699px) { .section--dark::before, .footer::before { display: none; } }
.section--dark > *, .footer > * { position: relative; z-index: 1; }
.section--dark { border-block: var(--hair) solid rgba(255, 255, 255, .1); }

/* C5. Podnožje: natpis kao tipografska tekstura */
.footer__wm {
  font-family: var(--f-display); font-stretch: 62%; font-weight: 800;
  font-size: clamp(2rem, 6vw, 5rem); line-height: .9; text-transform: uppercase;
  letter-spacing: -.01em; color: rgba(255, 255, 255, .12);
  margin-block: var(--sp-8) var(--sp-12); user-select: none;
}
.footer__bottom { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .footer__bottom { grid-template-columns: 1fr auto auto; gap: var(--sp-8); }
}
.footer .lang { display: flex; }

/* C3. Okrugla dugmad za listanje na svetloj podlozi (galerija artikla) */
.pgal { position: relative; }
.pgal__nav {
  position: absolute; right: var(--sp-4); bottom: var(--sp-4);
  display: flex; gap: var(--sp-2); z-index: 2;
}
.pgal__nav .rbtn { background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); }

/* Dok deli ugao sa pločom podataka: dok je hero u vidnom polju, dugmad se
   podižu tačno iznad ploče. Ispod 700px ploča je u toku, pa dok ostaje dole. */
body.dock-lift .dock { bottom: var(--dock-lift, var(--sp-6)); }
/* Panel mora da prati podignut dok, inače mu dugmad uđu u donju ivicu. */
body.dock-lift .ai-panel { bottom: calc(var(--dock-lift, var(--sp-6)) + var(--dock-size) + var(--sp-3)); }
.dock { transition: bottom var(--dur-base) var(--ease-out-expo); }

/* Kartica kataloga: „Brzi pregled“ je bio bez ijednog pravila, pa je stajao kao
   go tekst pored pilule. Sada je tekstualna kontrola sa istom šavom kao veze. */
.pcard__peek {
  position: relative; align-self: center;
  font-family: var(--f-display); font-stretch: 88%; font-weight: 600;
  font-size: var(--t-xs); text-transform: uppercase; letter-spacing: var(--ls-label);
  color: var(--ink-soft); padding-block: var(--sp-1);
  transition: color var(--dur-fast) var(--ease-out-expo);
}
.pcard__peek::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--hair);
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.pcard__peek:hover { color: var(--blue-700); }
.pcard__peek:hover::after { transform: scaleX(1); transform-origin: left; }

/* Podrazumevano `min-width: auto` na članu mreže ne dozvoljava da se kolona
   suzi ispod svog sadržaja — zbog toga je široka tehnička tabela razvlačila
   celu stranu artikla preko vidnog polja (519 px na 390 px). */
.pcols > *, .pflow > *, .split > *, .grid > * { min-width: 0; }

/* Zatvorena fioka stoji desno van ekrana. Kao `position: fixed` ne pokorava se
   `overflow`-u na `html`/`body`, pa je ulazila u `body.scrollWidth` i puna
   slika strane ispadala šira od vidnog polja. Omotač je tačno veličine vidnog
   polja i seče je. */
.drawer-wrap {
  position: fixed; inset: 0; overflow: clip; z-index: var(--z-overlay);
  pointer-events: none;
}
body.menu-open .drawer-wrap { pointer-events: auto; }
.drawer { position: absolute; z-index: 1; }

/* Tehnička tabela: `white-space: nowrap` na oznaci i na vrednosti, uz `width: 1%`,
   nije davao tabeli da se suzi — na 390 px je razvlačila stranu na 519 px, a na
   1440 px na 1666 px. Sa `table-layout: fixed` sve tri kolone moraju imati
   izričitu širinu, inače tačkasta veza uzme sve, a vrednost padne na 5 px. */
.spec-table { table-layout: fixed; max-width: 100%; }
.spec-table .sp__lb { white-space: normal; width: 40%; overflow-wrap: anywhere; }
.spec-table .sp__ld { width: 12%; }
.spec-table .sp__v { white-space: normal; width: 48%; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  /* Na najužim ekranima tačkasta veza nema smisla — vrednost ide u novi red. */
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table td { display: block; width: auto; }
  .spec-table .sp__ld { display: none; }
  .spec-table td { border-bottom: 0; padding: 0; }
  .spec-table tr { padding-block: var(--sp-2); border-bottom: var(--hair) solid var(--line); }
  .spec-table .sp__v { text-align: left; }
}

/* ======================================================================== */
/* C2 · Strana artikla se prilagođava količini sadržaja                     */
/* ======================================================================== */

/* Raspored bira build.py i upisuje ga u data-layout na omotaču strane.
   Dve kolone postoje samo za `rich`; sve ostalo je jedan tok, jer je upravo
   fiksna druga kolona ostavljala prazan pola ekrana. */
.pdoc { --pcol: 100%; }
.pdoc[data-layout="standard"] { --pcol: 860px; }
.pdoc[data-layout="sparse"]   { --pcol: 720px; }
.pdoc[data-layout="tabular"]  { --pcol: 100%; }

.pflow { display: grid; gap: var(--sp-11); }
.pflow > * { width: 100%; max-width: var(--pcol); margin-inline: auto; min-width: 0; }
/* Tabelarne strane dobijaju punu širinu omota — tabela je ovde glavni sadržaj. */
.pdoc[data-layout="tabular"] .pflow > * { max-width: none; }

/* Razmak od heroja do prve sekcije je kraći nego između sekcija u telu. */
.pdoc > .phero + .section,
.pdoc > .phero + .seam + .section { padding-top: 48px; }

/* Jedna fotografija stoji sama, u razumnoj veličini — bez ljuske galerije. */
.pshot {
  max-width: 520px; margin-inline: auto; background: #fff;
  border: var(--hair) solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.pshot img, .pshot picture { display: block; width: 100%; height: auto; }
.pdoc[data-layout="sparse"] .pshot { max-width: 420px; }
.pband .plate { margin-inline: auto; }
.pdocs__meta {
  font-family: var(--f-mono); font-size: 11px; font-style: normal;
  color: var(--steel-400); letter-spacing: .04em; flex: none;
}

/* ---------- Tehnička tabela --------------------------------------------- */
.dtable-box { margin-top: var(--sp-6); }
.dtable-hint {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--steel-400);
  margin-bottom: var(--sp-2); display: none;
}
.dtable-box.is-scrollable .dtable-hint { display: block; }

/* Omot koji se ne pomera — na njemu stoje senke ivica. */
.dtable-view { position: relative; }
.table-scroll {
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin;
  border: var(--hair) solid var(--line); border-radius: var(--radius-lg);
}
.dtable-view::before, .dtable-view::after {
  content: ""; position: absolute; top: var(--hair); bottom: var(--hair);
  width: 32px; z-index: 2; pointer-events: none; opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out-expo);
}
.dtable-view::before {
  left: var(--hair); border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: linear-gradient(to right, rgba(11,18,32,.13), rgba(11,18,32,0));
}
.dtable-view::after {
  right: var(--hair); border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: linear-gradient(to left, rgba(11,18,32,.13), rgba(11,18,32,0));
}
/* Senka se vidi samo dok stvarno ima još kolona u tom smeru. */
.dtable-box.can-left  .dtable-view::before { opacity: 1; }
.dtable-box.can-right .dtable-view::after  { opacity: 1; }
.table-scroll:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }

.dtable {
  width: 100%; border-collapse: collapse; font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
}
.dtable caption { text-align: left; }
.dtable th, .dtable td {
  padding: 12px 16px; border-bottom: var(--hair) solid var(--line);
  border-right: var(--hair) solid var(--line); vertical-align: top;
}
.dtable th:last-child, .dtable td:last-child { border-right: 0; }
.dtable tbody tr:last-child > * { border-bottom: 0; }
.dtable th {
  text-align: left; background: var(--steel-050);
  font-family: var(--f-display); font-stretch: var(--wd-narrow);
  text-transform: uppercase; letter-spacing: var(--ls-label);
  font-size: 10px; color: var(--ink);
}
/* Zebra na 2% — dovoljno da oko prati red, premalo da se vidi kao boja. */
.dtable tbody tr:nth-child(even) > td { background: rgba(11,18,32,.02); }
/* Šifre i brojevi u mono, opisne ćelije u pismu teksta. */
.dtable td { font-family: var(--f-body); color: var(--ink-soft); }
.dtable td.dt__num { font-family: var(--f-mono); font-size: 12px; letter-spacing: .01em; color: var(--ink); }
.dtable th.dt__sec {
  background: var(--graphite-900); color: #fff; font-size: 11px;
  letter-spacing: var(--ls-label);
}
.dtable tbody tr:nth-child(even) > th.dt__sec { background: var(--graphite-900); }

/* Ispod 700px uske tabele postaju spisak; šire zadržavaju pomeranje. */
@media (max-width: 699px) {
  .dtable[data-cols="2"], .dtable[data-cols="3"], .dtable[data-cols="4"] { display: block; }
  .dtable[data-cols="2"] thead, .dtable[data-cols="3"] thead, .dtable[data-cols="4"] thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  }
  .dtable[data-cols="2"] tbody, .dtable[data-cols="3"] tbody, .dtable[data-cols="4"] tbody { display: block; }
  .dtable[data-cols="2"] tr, .dtable[data-cols="3"] tr, .dtable[data-cols="4"] tr {
    display: block; border-bottom: var(--hair) solid var(--line-strong); padding: var(--sp-2) 0;
  }
  .dtable[data-cols="2"] tr:last-child, .dtable[data-cols="3"] tr:last-child,
  .dtable[data-cols="4"] tr:last-child { border-bottom: 0; }
  .dtable[data-cols="2"] td, .dtable[data-cols="3"] td, .dtable[data-cols="4"] td {
    display: flex; gap: var(--sp-4); justify-content: space-between; align-items: baseline;
    border: 0; padding: 6px 16px; background: none;
  }
  .dtable[data-cols="2"] td[data-label]::before,
  .dtable[data-cols="3"] td[data-label]::before,
  .dtable[data-cols="4"] td[data-label]::before {
    content: attr(data-label); flex: none; max-width: 45%;
    font-family: var(--f-display); font-stretch: var(--wd-narrow);
    text-transform: uppercase; letter-spacing: var(--ls-label);
    font-size: 10px; color: var(--steel-400);
  }
  .dtable[data-cols="2"] td:empty, .dtable[data-cols="3"] td:empty,
  .dtable[data-cols="4"] td:empty { display: none; }
  .dtable[data-cols="2"] th.dt__sec, .dtable[data-cols="3"] th.dt__sec,
  .dtable[data-cols="4"] th.dt__sec { display: block; }
}


/* ======================================================================== */
/* C9 · Izbor teksta, klizač i prsten fokusa — jedan token za sve           */
/* ======================================================================== */
::selection { background: var(--blue-700); color: #fff; }
::-moz-selection { background: var(--blue-700); color: #fff; }

/* Tanak klizač samo na tamnim površinama; na svetlom ostaje podrazumevani. */
.section--dark, .ai-panel__log, .drawer, .mega {
  scrollbar-width: thin;
  scrollbar-color: var(--steel-400) transparent;
}
.section--dark ::-webkit-scrollbar, .ai-panel__log::-webkit-scrollbar { width: 8px; height: 8px; }
.section--dark ::-webkit-scrollbar-track, .ai-panel__log::-webkit-scrollbar-track { background: transparent; }
.section--dark ::-webkit-scrollbar-thumb, .ai-panel__log::-webkit-scrollbar-thumb {
  background: var(--steel-400); border-radius: 999px;
}

/* Jedan prsten fokusa, svuda isti — i u svetlosnoj kutiji i u panelu asistenta. */
:focus-visible,
.lb :focus-visible,
.ai-panel :focus-visible {
  outline: 2px solid var(--blue-400); outline-offset: 3px;
  border-radius: var(--radius);
}

/* ======================================================================== */
/* C1 · Napredak čitanja                                                    */
/* ======================================================================== */
/* Traka postoji na svakoj strani, ali se pali samo kada strana ima šta da se
   čita; JS joj postavlja `is-on` i meri napredak kroz članak, ne kroz ceo
   dokument (podnožje i traka poziva se ne broje). */
.scroll-progress { opacity: 0; transition: opacity var(--dur-base) var(--ease-out-expo); }
.scroll-progress.is-on { opacity: 1; }

/* ======================================================================== */
/* C8 · Sidra po sekcijama                                                  */
/* ======================================================================== */
.anchor {
  margin-left: var(--sp-3); font-family: var(--f-mono); font-size: .8em;
  color: var(--steel-400); opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out-expo),
              color var(--dur-fast) var(--ease-out-expo);
}
.shead:hover .anchor, .anchor:focus-visible { opacity: 1; }
.anchor:hover { color: var(--blue-700); }
.section--dark .anchor:hover, .cta-band .anchor:hover { color: var(--blue-300); }
@media (hover: none) { .anchor { display: none; } }


/* ======================================================================== */
/* C6 · Šav na granici svetle i tamne sekcije                               */
/* ======================================================================== */
/* Jedna komponenta za sve granice tona. Oznaku uzima iz sekcije koja sledi,
   pa nije ukras nego natpis reza — kao na tehničkom crtežu. */
.seam--label { position: relative; }
.seam__tag {
  /* Natpis stoji ceo u sekciji koja sledi, ne preko same linije: dok je
     jahao granicu, pola pilule je bilo nad tamnim a pola nad svetlim i
     kontrast je padao na 1,14:1. */
  position: absolute; left: 0; right: 0; top: 0;
  pointer-events: none; display: flex; justify-content: flex-start;
}
.seam__tag > span {
  margin-left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  padding: 2px var(--sp-3);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase;
  /* Izmereno: --steel-400 na ovoj podlozi daje 1,14:1 jer pilula sedi tačno na
     granici tona i pola je nad tamnom trakom. Zato pilula nosi svoju punu
     podlogu, a pismo je --ink-soft, odnosno belo nad tamnom. */
  color: var(--ink-soft);
  background: var(--white); border: var(--hair) solid var(--line);
  border-radius: 999px;
}
/* na granici gde je donja strana tamna, natpis ide na tamnu podlogu */
.seam--label.seam--to-dark .seam__tag > span {
  background: var(--graphite-900); border-color: var(--line-dark);
  color: #fff;
}
/* unutar šine natpis prati kolonu članka, ne ivicu ekrana */
@media (min-width: 1100px) {
  .railwrap .seam__tag > span {
    margin-left: calc((100% - min(var(--wrap), 100vw - var(--gutter) * 2)) / 2
                      + var(--rail-w) + var(--rail-gap));
  }
}


/* ======================================================================== */
/* C4 · Svetlosna kutija — bez biblioteke                                    */
/* ======================================================================== */
.gal__zoom { display: block; width: 100%; padding: 0; cursor: zoom-in; }
.gal__zoom img, .gal__zoom picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.ngal__i .gal__zoom { height: 100%; }
.gal__f figcaption a { color: var(--blue-700); }
.gal__f figcaption a:hover { text-decoration: underline; }

.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16, 18, 21, .94);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: var(--sp-4); padding: var(--sp-6);
}
.lb[hidden] { display: none; }
.lb__fig { grid-column: 2; display: grid; place-items: center; }
.lb__img { max-width: 100%; max-height: 92vh; width: auto; height: auto; object-fit: contain; }
.lb__x {
  position: absolute; top: var(--sp-5); right: var(--sp-6); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; color: #fff; font-size: 18px;
  border: var(--hair) solid var(--line-dark); background: rgba(255, 255, 255, .06);
  transition: background var(--dur-fast) var(--ease-out-expo);
}
.lb__x:hover { background: rgba(255, 255, 255, .16); }
.lb__nav {
  width: 48px; height: 48px; border-radius: 50%; color: #fff; font-size: 26px; line-height: 1;
  border: var(--hair) solid var(--line-dark); background: rgba(255, 255, 255, .06);
  transition: background var(--dur-fast) var(--ease-out-expo);
}
.lb__nav:hover { background: rgba(255, 255, 255, .16); }
.lb__prev { grid-column: 1; }
.lb__next { grid-column: 3; }
.lb__cap {
  position: absolute; left: var(--sp-6); bottom: var(--sp-5);
  display: flex; gap: var(--sp-4); align-items: baseline;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em;
  color: var(--steel-300);
}
.lb__n { color: var(--blue-300); font-variant-numeric: tabular-nums; }
@media (max-width: 699px) {
  .lb { grid-template-columns: minmax(0, 1fr); padding: var(--sp-4); }
  .lb__fig { grid-column: 1; }
  .lb__nav { position: absolute; bottom: var(--sp-5); }
  .lb__prev { left: var(--sp-4); }
  .lb__next { right: var(--sp-4); }
  .lb__cap { left: 0; right: 0; justify-content: center; bottom: calc(var(--sp-5) + 60px); }
}

/* ======================================================================== */
/* C5 · Štampa strane artikla kao tehnički list                             */
/* ======================================================================== */
@media print {
  @page { size: A4; margin: 14mm; }
  .header, .dock, .ai-panel, .loader, .scroll-progress, .srail, .seam__tag,
  .hero__canvas, .hero__slider, .phero__bg, .hero__veil, .hero__guides,
  .cta-band, #slicni, .pshot, .pgal, .band, .footer__nav, .footer__loc,
  .footer__brand-txt, .lb, .anchor, .pdetail__actions, .nchips { display: none !important; }
  body { color: #000; background: #fff; font-size: 10.5pt; }
  .phero {
    min-height: 0; background: #fff; color: #000; padding: 0 0 6mm;
    border-bottom: 1px solid #000; display: block;
  }
  .phero__in { padding: 0 !important; max-width: none; }
  .phero h1 { color: #000; font-size: 18pt; max-width: none; }
  .phero__lead { color: #333; font-size: 10pt; margin-top: 2mm; }
  .crumbs, .hplate--page { display: none !important; }
  .section { padding-block: 5mm !important; }
  .wrap, .pflow > * { max-width: none !important; padding: 0 !important; }
  .spec-table { font-size: 9.5pt; }
  .spec-table td { padding: 1.2mm 0; }
  .dtable { font-size: 8.5pt; }
  .table-scroll { overflow: visible !important; border: 0; }
  .shead__rule { display: none; }
  /* zaglavlje lista: znak i adresa strane */
  .footer::before {
    content: "Neminik d.o.o., Beograd · 063 450 544 · info@neminik.co.rs";
    display: block; font-size: 8pt; color: #000; padding-top: 3mm;
    border-top: 1px solid #000;
  }
  .footer::after {
    content: attr(data-url); display: block; font-size: 7.5pt; color: #555;
  }
  .footer { background: #fff !important; color: #000; padding: 0 !important; }
  .footer__bottom, .footer__top { display: none !important; }
  a[href]::after { content: ""; }
}


/* ======================================================================== */
/* C7 · Brojevi                                                             */
/* ======================================================================== */
/* Tehnički sajt: svaka cifra iste širine, pa se brojevi u tabelama, cenama i
   datumima poravnavaju sami od sebe. */
html { font-variant-numeric: tabular-nums; }
