/* BIMID — vizuelni sistem prema "BIMID Instagram dizajn i pravila" */
:root {
  --bg: #F5F4EF;
  --surface: #FBFAF7;
  --ink: #20211F;
  --muted: #777873;
  --line: #D8D8D2;
  --red: #F51D2B;
  --red-soft: rgba(245, 29, 43, .35);
  --yellow: #DBDC23;
  --tile: #E9DFCB;

  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-style: normal; color: var(--red); }
::selection { background: var(--red); color: #fff; }

.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(245,29,43,.15); }

h2 {
  font-size: clamp(36px, 5.2vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
}
h3 { font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }

/* split-tekst reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .2em; margin-bottom: -.2em; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px;
  border-radius: 999px;
  font: 600 15px/1 var(--sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s;
}
/* strelica: stara izlazi desno, nova ulazi sleva */
.btn .arr { display: inline-grid; overflow: hidden; }
.btn .arr i { grid-area: 1 / 1; font-style: normal; transition: transform .5s var(--ease); }
.btn .arr i + i { transform: translateX(-160%); }
.btn:hover .arr i:first-child { transform: translateX(160%); }
.btn:hover .arr i + i { transform: none; transition-delay: .08s; }

/* slova koja se zarolaju na prelaz mišem (kopija slova stoji ispod, u senci) */
/* nosioci skrivenog teksta, da on ne pobegne iz trake projekata i ne proširi stranicu */
.btn, .areas a, .footer__links a, .cat__name, [data-count] { position: relative; }
.vh { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.roll { display: inline; }
.roll .wd { display: inline-block; white-space: nowrap; overflow: hidden; line-height: 1.1; padding: .14em 0; margin: -.14em 0; vertical-align: top; }
.roll .ch { display: inline-block; text-shadow: 0 1.5em currentColor; transition: transform .55s var(--ease); transition-delay: calc(var(--i) * 12ms); }
@media (hover: hover) {
  :is(a, button):hover .roll .ch { transform: translateY(-1.5em); }
}

/* glatko klizanje (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* uvodni brojač: grejanje od 0 do 22 °C, samo pri prvom otvaranju */
.loader { display: none; }
html.js:not(.intro-seen) .loader {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  position: fixed; inset: 0; z-index: 300;
  padding: var(--gutter); background: var(--ink); color: var(--bg);
  clip-path: inset(0 0 0% 0);
  animation: loader-out .7s 4s var(--ease) forwards;   /* rezerva ako skripte ne stignu */
}
html.js .loader.is-live { animation: none; }
@keyframes loader-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.loader__label { margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #A9AAA4; display: flex; align-items: center; gap: 10px; }
.loader__label .dot { background: var(--red); }
.loader__num { margin: 0; font: 500 clamp(110px, 24vw, 300px)/1 var(--mono); letter-spacing: -.06em; font-variant-numeric: tabular-nums; display: flex; align-items: flex-start; }
.loader__num { position: relative; color: #D6E4E9; }
.loader__label { position: relative; }
.loader__num small { font-size: .26em; letter-spacing: 0; color: #9DB6BF; margin: .14em 0 0 .12em; }
/* inje po ivicama ekrana; topi se odozdo, od poda ka vrhu */
.loader__frost {
  --m: -25%;
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(214, 228, 233, .3) 100%);
  -webkit-mask-image: radial-gradient(140% 110% at 50% 100%, transparent var(--m), #000 calc(var(--m) + 25%));
  mask-image: radial-gradient(140% 110% at 50% 100%, transparent var(--m), #000 calc(var(--m) + 25%));
}
.loader__frost path { fill: none; stroke: rgba(226, 238, 242, .5); stroke-width: 1.1; stroke-linecap: round; }
.loader__heat { position: absolute; left: -10%; right: -10%; bottom: -45%; height: 95%; background: radial-gradient(closest-side, rgba(245, 29, 43, .5), transparent); opacity: 0; pointer-events: none; }
.loader__line { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* brojčanik: svaka cifra je traka 0–9 koja se zavrti */
.odo { display: inline-flex; }
.odo__d { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.odo__s { display: block; }
.odo__s b { display: block; height: 1em; font-weight: inherit; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #d9101d; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- navigacija ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.is-scrolled { background: rgba(245,244,239,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-weight: 500; font-size: 15px; }
.nav__logo img { width: 92px; height: auto; margin: -20px 0; }
.nav__links a { position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__phone { font-size: 13px; color: var(--muted); }
.nav__cta { height: 42px; padding: 0 18px; font-size: 14px; }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; position: relative; cursor: pointer; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu[hidden] { display: none; }
.menu { padding: 8px var(--gutter) 28px; display: grid; gap: 4px; background: var(--bg); border-bottom: 1px solid var(--line); }
.menu a { font-size: 28px; font-weight: 700; letter-spacing: -.02em; padding: 6px 0; }
.menu a.mono { font-size: 15px; font-weight: 400; color: var(--muted); margin-top: 10px; }

/* ---------- kabl kroz stranicu ---------- */
main { position: relative; }
.cable { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.cable path { fill: none; stroke: var(--red-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cable circle { fill: var(--red); filter: drop-shadow(0 0 6px rgba(245,29,43,.7)); }
main > section { position: relative; z-index: 1; }

/* ---------- HERO ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 124px 0 20px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(42px, 5vw, 80px); font-weight: 800; line-height: .98; letter-spacing: -.045em; margin: 22px 0 26px; }
.hero__lead { font-size: clamp(17px, 1.35vw, 20px); color: #4b4c48; max-width: 34ch; }
.areas { margin: 26px 0 28px; border-top: 1px solid var(--line); max-width: 520px; }
.areas a { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 18px; transition: padding .4s var(--ease), color .3s; }
.areas a .mono { font-size: 12px; font-weight: 400; color: var(--red); }
.areas a::after { content: "→"; margin-left: auto; opacity: 0; transform: translateX(-8px); transition: .4s var(--ease); }
.areas a:hover { padding-left: 8px; }
.areas a:hover::after { opacity: 1; transform: none; color: var(--red); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; height: min(600px, 64vh); }
.scene { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1800px; }
.floor {
  --s: 1.18;
  position: relative; width: 440px; height: 320px;
  transform-style: preserve-3d;
  transform: scale(var(--s)) rotateX(58deg) rotateZ(-38deg);
}
.floor > * { position: absolute; inset: 0; }
.floor__base { background: #DCDAD3; }
.floor__side { inset: auto; background: #C9C6BE; }
.floor__side--front { left: 0; top: 100%; width: 100%; height: 34px; transform-origin: top; transform: rotateX(-90deg); background: #CFCCC4; }
.floor__side--right { top: 0; left: 100%; width: 34px; height: 100%; transform-origin: left; transform: rotateY(90deg); background: #BDBAB1; }
.floor__mesh {
  inset: 14px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.9) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.9) 0 1px, transparent 1px 12px),
    #E6E4DE;
  transform: translateZ(1px);
}
.floor__cable { width: 100%; height: 100%; transform: translateZ(2px); overflow: visible; }
.floor__cable path { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.floor__cable .cold { stroke: #9B9C96; }
#heroCable { stroke: var(--red); filter: drop-shadow(0 0 5px rgba(245,29,43,.55)); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 3px; transform-style: preserve-3d; }
.tile {
  background: linear-gradient(135deg, #F1E9D8, var(--tile));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
  transform: translateZ(10px);
  transform-style: preserve-3d;
}
.tile::before { content: ""; position: absolute; } /* zadržava sloj u 3D */
/* kabl silazi niz ivicu poda i nastavlja se u liniju kroz stranicu */
.floor__drop { position: absolute; left: 37.5px; top: 0; width: 5px; height: 100%; background: var(--red); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 6px rgba(245,29,43,.5); }
.floor__anchor { position: absolute; left: 40px; bottom: 0; width: 1px; height: 1px; }
.tag {
  position: absolute; display: flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 14px; box-shadow: 0 10px 30px -12px rgba(32,33,31,.25);
  opacity: 0;
}
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.tag--a { left: 2%; top: 20%; }
.tag--b { right: 0; bottom: 18%; }
.scroll-hint { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.scroll-hint span { display: inline-block; animation: bob 1.6s var(--ease) infinite; color: var(--red); }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- sekcije opšte ---------- */
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 80px); max-width: 900px; }
.oblasti, .saradnja, .prica, .kontakt { padding: clamp(96px, 12vw, 180px) 0; }

/* ---------- TRI OBLASTI ---------- */
.oblasti__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.vis { position: sticky; top: 12vh; height: 76vh; display: flex; flex-direction: column; gap: 14px; }
.vis__count { font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.vis__count b { color: var(--red); font-weight: 500; }
.vis__frame { position: relative; flex: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.vis__item { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1s var(--ease); }
.vis__item.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.vis__item.is-leaving { clip-path: inset(0 0 0 0); z-index: 1; }
.vis__item > img:first-child { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.vis__item.is-active > img:first-child { transform: scale(1); }
.vis__item--ilu { background: #F7F6F2; }
.vis__item--ilu > img:first-child { object-fit: contain; padding: 6% 6% 26%; }
.vis__inset { position: absolute; right: 5%; bottom: 5%; width: 44%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; border: 4px solid var(--surface); box-shadow: 0 20px 40px -18px rgba(32,33,31,.45); transform: translateY(30px); opacity: 0; transition: .9s .35s var(--ease); }
.vis__item.is-active .vis__inset { transform: none; opacity: 1; }
.vis__video { position: absolute; right: 5%; bottom: 5%; width: 26%; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; border: 4px solid var(--surface); box-shadow: 0 20px 40px -18px rgba(32,33,31,.5); background: #E8E1D3; transform: translateY(30px); opacity: 0; transition: .9s .35s var(--ease); }
.vis__video video { width: 100%; height: 100%; object-fit: cover; }
.vis__item.is-active .vis__video { transform: none; opacity: 1; }
.vis__bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.vis__bar span { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }

.step { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 40px 0; }
.step h3 { font-size: clamp(34px, 3.8vw, 56px); font-weight: 800; letter-spacing: -.035em; }
.step__lead { font-size: 21px; font-weight: 600; }
.step > p:not(.label):not(.step__lead) { color: #4b4c48; max-width: 46ch; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; border-top: 1px solid var(--line); margin-top: 6px; }
.ticks li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 2px; background: var(--red); }
.ticks li a { transition: color .3s; }
.ticks li a:hover { color: var(--red); }
.ref { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; margin-top: 8px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: border-color .3s; }
.ref .mono { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--bg); padding: 5px 9px; border-radius: 999px; }
.ref:hover { border-color: var(--red); }
.step__media { display: none; }

/* ---------- BROJKE ---------- */
.stats { padding: clamp(40px, 6vw, 80px) 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.stat { padding: 36px 24px 36px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num { white-space: nowrap; font-size: clamp(44px, 5.4vw, 84px); font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: .38em; letter-spacing: -.01em; margin-left: 6px; color: var(--red); font-weight: 700; }
.stat__txt { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 28ch; }

/* ---------- PROJEKTI ---------- */
.projekti { padding: clamp(96px, 12vw, 160px) 0 clamp(60px, 8vw, 100px); }
.projekti__pin { overflow: hidden; }
.projekti__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); }
.projekti__head h2 { margin-top: 18px; max-width: 12ch; }
.projekti__note { color: var(--muted); max-width: 30ch; }
.projekti__nav { display: flex; gap: 10px; }
.projekti__bar { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.projekti__count { font-size: 13px; letter-spacing: .1em; color: var(--muted); white-space: nowrap; }
.projekti__count b { color: var(--red); font-weight: 500; }
.projekti__progress { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.projekti__progress span { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(.08); transition: transform .3s var(--ease); }
.projekti__hint { display: none; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); white-space: nowrap; }
.projekti__hint span { display: inline-block; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
/* blaga senka desno: ima još projekata */
.track-wrap { position: relative; }
.track-wrap::after { content: ""; position: absolute; right: 0; top: 0; bottom: 12px; width: clamp(40px, 8vw, 140px); background: linear-gradient(90deg, rgba(245,244,239,0), var(--bg)); pointer-events: none; z-index: 2; transition: opacity .4s; }
.track-wrap.at-end::after { opacity: 0; }
.arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 20px; cursor: pointer; transition: background .3s, color .3s, opacity .3s; }
.arrow:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.arrow:disabled { opacity: .25; cursor: default; }
.track { display: flex; gap: 24px; padding: 0 var(--gutter) 12px; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); scrollbar-width: none; cursor: grab; }
.track::-webkit-scrollbar { display: none; }
.track .card { scroll-snap-align: start; }
.track.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.track.dragging .card { pointer-events: none; }
.card { width: clamp(290px, 30vw, 440px); flex: none; display: flex; flex-direction: column; gap: 10px; }
.card__img { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: #E4E2DB; margin-bottom: 8px; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.card:hover .card__img img { transform: scale(1.02); }
.card__img--duo { display: grid; grid-template-rows: 1.25fr 1fr; gap: 6px; background: transparent; }
.card__img--duo img { border-radius: 10px; }
.card h3 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.card h3 em { font-size: .8em; margin-left: 4px; }
.card > p:last-child { color: var(--muted); }
.card--end { justify-content: center; gap: 24px; padding: 40px; border-radius: var(--radius); border: 1px dashed var(--line); aspect-ratio: 4/5; align-self: flex-start; }
.card__big { font-size: clamp(28px, 2.6vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.card--end .btn { align-self: flex-start; }

/* ---------- MARQUEE ---------- */
.marquee { background: var(--bg); padding: 20px 0 40px; overflow: hidden; display: grid; gap: 10px; }
.marquee__row { display: flex; width: max-content; }
.marquee__inner { display: flex; flex: none; animation: marquee 45s linear infinite; }
.marquee__row--rev .marquee__inner { animation-direction: reverse; }
.marquee:hover .marquee__inner { animation-play-state: paused; }
.marquee span { font-size: clamp(26px, 3.4vw, 48px); font-weight: 800; letter-spacing: -.035em; padding: 0 28px; white-space: nowrap; color: #B9BAB3; transition: color .3s; }
.marquee span:hover { color: var(--ink); }
.marquee span::after { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--red); margin-left: 56px; vertical-align: middle; opacity: .7; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- PRIČA ---------- */
.prica__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.prica__photo { position: sticky; top: 14vh; }
.prica__photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3.3; object-fit: cover; filter: saturate(.85); }
.prica__photo figcaption { margin-top: 12px; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.prica__copy h2 { margin: 18px 0 clamp(36px, 5vw, 64px); }
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--red); transform-origin: top; transform: scaleY(var(--p, 0)); }
.timeline li { position: relative; padding: 0 0 44px 40px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--red); z-index: 1; }
.timeline li::before { transition: background-color .35s, box-shadow .35s, transform .35s var(--ease); }
.timeline li.is-hot::before { background: var(--red); box-shadow: 0 0 0 5px rgba(245,29,43,.14), 0 0 14px rgba(245,29,43,.55); transform: scale(1.15); }
.timeline.on-cable::after { display: none; }   /* liniju tada iscrtava kabl */
.timeline__year { display: block; font-size: clamp(30px, 3vw, 44px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin-bottom: 8px; }
.timeline__year.mono { font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 0 6px; }
.timeline p { color: #4b4c48; max-width: 52ch; }
.timeline b { color: var(--ink); font-weight: 600; }

/* ---------- SARADNJA ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.flow li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px 36px; display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; transition: transform .5s var(--ease), border-color .3s; }
.flow li::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.flow li:hover { transform: translateY(-6px); border-color: #c9c9c2; }
.flow li:hover::after { transform: scaleX(1); }
.flow__n { color: var(--red); font-size: 13px; letter-spacing: .1em; margin-bottom: 28px; }
.flow h3 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.flow p { color: var(--muted); }

/* ---------- KONTAKT ---------- */
.kontakt { padding-bottom: clamp(80px, 10vw, 140px); }
.kontakt__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.kontakt h2 { margin: 18px 0 40px; }
.kontakt__info { display: grid; border-top: 1px solid var(--line); }
.kontakt__info div { display: grid; grid-template-columns: 110px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.kontakt__info dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kontakt__info dd { font-size: 20px; font-weight: 600; }
.kontakt__info a:hover { color: var(--red); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; }
.form input:not([type="radio"]), .form textarea {
  font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(245,29,43,.12); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: block; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 500; font-size: 14px; background: var(--bg); transition: .25s; }
.chips input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.form .btn { justify-self: start; margin-top: 4px; }
.form__note { font-size: 13px; color: var(--muted); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0; position: relative; z-index: 1; background: var(--bg); }
.footer__grid { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer__grid img { width: 64px; height: auto; margin: -10px 0; }
.footer__grid > p:first-of-type { color: var(--muted); font-size: 14px; flex: 1; min-width: 220px; }
.footer__links { display: flex; gap: 20px; font-weight: 500; font-size: 14px; }
.footer__links a:hover { color: var(--red); }
.footer__copy { font-size: 12px; color: var(--muted); }

/* ---------- početna stanja animacija (samo kad JS radi) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(32px); }

/* ---------- responzivno ---------- */
@media (max-width: 1080px) {
  .nav__phone { display: none; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__logo img { width: 72px; margin: -16px 0; }

  .hero { padding-top: 100px; min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero__visual { height: 380px; order: -1; margin: 0 calc(var(--gutter) * -1); }
  .floor { --s: .62; }
  .tag--a { left: var(--gutter); top: 6%; }
  .tag--b { right: var(--gutter); bottom: 4%; }
  .scroll-hint { display: none; }
  .hero__title { margin-top: 14px; }

  .oblasti__grid { grid-template-columns: 1fr; }
  .vis { display: none; }
  .step { min-height: 0; padding: 0 0 72px; }
  .step__media { display: block; order: -1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #F7F6F2; margin-bottom: 8px; }
  .step__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
  #oblast-led .step__media img, #oblast-ind .step__media img { object-fit: contain; padding: 4%; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 16px 28px 0; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }

  .projekti__head { flex-direction: column; align-items: flex-start; }
  .projekti__pin { overflow: visible; }
  .projekti__nav { display: none; }
  .projekti__hint { display: block; }
  .projekti__bar { gap: 14px; margin-top: 18px; }
  .track { scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
  .card { width: 74vw; scroll-snap-align: start; }

  .prica__grid, .kontakt__grid { grid-template-columns: 1fr; }
  .prica__photo { position: static; }
  .flow { grid-template-columns: 1fr; }
  .kontakt__info dd { font-size: 17px; }
}
@media (max-width: 520px) {
  .ticks { grid-template-columns: 1fr; }
  .floor { --s: .56; }
  .hero__visual { height: 320px; }
  .tag { font-size: 10px; padding: 7px 11px; }
  .kontakt__info div { grid-template-columns: 84px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* desktop: kartice projekata staju u ekran tokom horizontalnog skrola */
@media (min-width: 901px) {
  .card__img { aspect-ratio: auto; height: clamp(240px, calc(100vh - 470px), 520px); }
  .card--end { aspect-ratio: auto; height: clamp(240px, calc(100vh - 470px), 520px); }
}

/* link ka prodavnici iz oblasti */
.shoplink { align-self: flex-start; font-weight: 600; font-size: 15px; border-bottom: 2px solid var(--red); padding-bottom: 2px; transition: color .3s; }
.shoplink span { display: inline-block; transition: transform .4s var(--ease); }
.shoplink:hover { color: var(--red); }
.shoplink:hover span { transform: translateX(4px); }

/* ---------- scene u "Tri oblasti" ---------- */
.scn { position: absolute; inset: 0; overflow: hidden; background: var(--surface); }
.scn__stage { position: absolute; inset: 8% 0 0; display: grid; place-items: center; perspective: 1800px; }
.scn__svg { position: absolute; left: 4%; top: 9%; width: 92%; height: 89%; overflow: visible; }
.scn__steps { position: absolute; left: 20px; top: 18px; z-index: 3; display: grid; gap: 7px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.scn__steps li { display: flex; align-items: center; gap: 9px; opacity: .45; }
.scn__steps i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.floor .mats { inset: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; transform-style: preserve-3d; }
.mat {
  position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.95) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.95) 0 1px, transparent 1px 10px),
    #E8E6E0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 1px 0 rgba(32,33,31,.08);
}
.mat svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mat path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; }
.scn .tile i { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle at 50% 50%, rgba(245,29,43,.16), transparent 78%); }
.scn .vis__video { top: 5%; right: 5%; bottom: auto; width: 22%; transition: none; }
.step__media .scn { position: relative; inset: auto; aspect-ratio: 1 / .92; }
.step__media .scn__steps { left: 14px; top: 12px; font-size: 10px; }

/* ---------- kartice projekata kao linkovi ---------- */
a.card { color: inherit; }
.card > p:not(.label) { color: var(--muted); }
.card__more { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-top: 2px; }
.card__more span { display: inline-block; transition: transform .4s var(--ease); }
a.card:hover h3 { color: var(--red); }
a.card:hover .card__more span { transform: translateX(4px); }
.card h3 { transition: color .3s; }

/* crtež umesto fotografije (projekti bez slike) */
.pj-art { width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center; padding: 22px; background: var(--ink); color: var(--bg); }
.pj-art svg { width: 78%; max-height: 100%; fill: none; stroke: rgba(245,244,239,.75); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 1.2s var(--ease); }
.pj-art .hot { stroke: var(--red); stroke-width: 3.2; filter: drop-shadow(0 0 4px rgba(245,29,43,.6)); }
.pj-art .soft { stroke: rgba(245,244,239,.22); stroke-width: 1; }
.pj-art p { justify-self: start; font-size: 15px; font-weight: 600; color: #cfcfc8; }
.pj-art b { font-size: clamp(34px, 3.4vw, 52px); font-weight: 800; letter-spacing: -.04em; color: var(--bg); margin-right: 6px; }
a.card:hover .pj-art svg, .pj-tile:hover .pj-art svg { transform: scale(1.04); }
.pj-art--big { padding: clamp(24px, 4vw, 56px); }
.pj-art--big svg { width: min(520px, 70%); }
.pj-art--big b { font-size: clamp(48px, 7vw, 110px); }
.pj-art--big p { font-size: 20px; }

/* ---------- stranice projekata ---------- */
.pj-page main { padding-top: 70px; }
.pj-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(28px, 4vw, 48px); }
.pj-hero h1 { font-size: clamp(42px, 6.4vw, 104px); font-weight: 800; letter-spacing: -.045em; line-height: .98; margin: 18px 0 22px; max-width: 16ch; }
.pj-lead { font-size: clamp(18px, 1.6vw, 23px); color: #4b4c48; max-width: 44ch; }
.pj-back { display: inline-block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; transition: color .3s; }
.pj-back:hover { color: var(--red); }
.pj-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; background: #E4E2DB; }
.pj-media img { width: 100%; height: 100%; object-fit: cover; }
.card__credit { font-size: 10px; color: var(--muted); margin: -10px 0 2px; }
.pj-credit { font-size: 11px; color: var(--muted); margin-top: 10px; }
.pj-credit a { text-decoration: underline; }
.pj-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.pj-facts { border-top: 1px solid var(--line); align-self: start; }
.pj-facts > div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.pj-facts dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pj-facts dd { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.pj-body { display: grid; gap: 18px; align-content: start; }
.pj-body h2 { margin-bottom: 4px; }
.pj-body > p { font-size: 18px; color: #3b3c38; max-width: 56ch; }
.pj-links { display: grid; gap: 16px; justify-items: start; margin-top: 10px; }
.pj-gallery { padding-bottom: clamp(40px, 6vw, 80px); }
.pj-gallery .label { margin-bottom: 16px; }
.pj-gallery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pj-gallery figure { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.pj-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pj-gallery figure:only-child { grid-column: 1 / -1; }
.pj-gallery figure:only-child img { aspect-ratio: 16 / 8; }
.pj-gallery figcaption { font-size: 12px; color: var(--muted); padding: 12px 14px; }
.pj-cta { background: var(--ink); color: var(--bg); padding: clamp(56px, 8vw, 100px) 0; }
.pj-cta__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.pj-cta .label { color: #bdbdb6; }
.pj-cta h2 { color: var(--bg); margin-top: 14px; max-width: 16ch; }
.pj-cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.pj-cta .btn--ghost { border-color: var(--bg); color: var(--bg); }
.pj-cta .btn--ghost:hover { background: var(--bg); color: var(--ink); }
.pj-next { padding-top: 36px; padding-bottom: 56px; }
.pj-next a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pj-next .mono { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pj-next b { font-size: clamp(24px, 3vw, 40px); letter-spacing: -.03em; transition: color .3s; }
.pj-next a:hover b { color: var(--red); }

.pj-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px 20px; padding-bottom: clamp(56px, 8vw, 100px); }
.pj-tile { display: grid; gap: 8px; align-content: start; }
.pj-tile__img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #E4E2DB; margin-bottom: 8px; }
.pj-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pj-tile:hover .pj-tile__img img { transform: scale(1.04); }
.pj-tile h3 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; transition: color .3s; }
.pj-tile:hover h3 { color: var(--red); }
.pj-tile > p:last-child { color: var(--muted); }
.pj-more { padding-bottom: clamp(56px, 8vw, 100px); }
.pj-more .label { margin-bottom: 20px; }
.pj-more__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.pj-more h3 { font-size: 16px; margin-bottom: 10px; }
.pj-more li { font-size: 14px; color: var(--muted); padding: 4px 0; }

.pj-motion .pj-facts > div, .pj-motion .pj-body > *, .pj-motion .pj-tile, .pj-motion .pj-gallery figure, .pj-motion .pj-more__grid > div { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.pj-motion .in { opacity: 1 !important; transform: none !important; }

@media (max-width: 900px) {
  .pj-page main { padding-top: 62px; }
  .pj-media { aspect-ratio: 4 / 3; }
  .pj-grid { grid-template-columns: 1fr; }
  .pj-gallery__grid { grid-template-columns: 1fr; }
  .pj-more__grid { grid-template-columns: 1fr 1fr; }
  .pj-cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) { .pj-more__grid { grid-template-columns: 1fr; } }

/* ---------- O nama: nekad i danas ---------- */
.prica__photo { padding-bottom: 16%; }
.prica__photo > figure:first-child figcaption { max-width: 52%; }
.prica__now { position: absolute; right: -4%; bottom: 0; width: 44%; }
.prica__now img { aspect-ratio: 3 / 4; border: 6px solid var(--bg); box-shadow: 0 30px 60px -30px rgba(32,33,31,.55); filter: none; }
.prica__now figcaption { text-align: right; }

/* ---------- Kvalitet: atest i partneri ---------- */
.atest { background: var(--ink); color: var(--bg); padding: clamp(80px, 10vw, 140px) 0; position: relative; z-index: 1; }
.atest__head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.atest .label { color: #bdbdb6; }
.atest h2 { color: var(--bg); }
.atest__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.atest__card--main { grid-column: span 2; min-height: 300px; }
.atest__card--main > p:not(.mono) { font-size: 18px; color: #d4d4cd; max-width: 52ch; }
/* Eltrace stoji pored Thermoval-a, iste visine; ostale kartice su u redu ispod */
.atest__card--partner { align-content: end; min-height: 300px; border-color: rgba(245,29,43,.3); }
.atest__card--partner .atest__link { margin-top: 4px; }
/* manje kartice: sve kreće od vrha, pa se oznake, naslovi i tekst poklapaju u istoj liniji */
.atest__card:not(.atest__card--main):not(.atest__card--partner) { align-content: start; grid-template-rows: auto auto 1fr; min-height: 0; }
.atest__card:not(.atest__card--main):not(.atest__card--partner) h3 { font-size: clamp(22px, 2.3vw, 36px); white-space: nowrap; }
.atest__link { justify-self: start; font-size: 12px; letter-spacing: .08em; color: var(--bg); border-bottom: 1px solid var(--red); padding-bottom: 2px; transition: color .3s; }
.atest__link:hover { color: var(--red); }
.atest__card { border: 1px solid rgba(245,244,239,.14); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: grid; gap: 10px; align-content: end; min-height: 260px; background: rgba(245,244,239,.03); transition: border-color .4s, transform .5s var(--ease); }
.atest__card:hover { border-color: rgba(245,29,43,.6); transform: translateY(-4px); }
.atest__card .mono { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.atest__card h3 { font-size: clamp(30px, 3vw, 44px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.atest__card p:last-child { color: #b9b9b2; max-width: 34ch; }
.atest__card--main { background: linear-gradient(160deg, rgba(245,29,43,.18), rgba(245,29,43,0) 60%), rgba(245,244,239,.03); border-color: rgba(245,29,43,.45); }
.atest__card--main h3 { font-size: clamp(56px, 7vw, 104px); letter-spacing: -.05em; }

/* ---------- Česta pitanja ---------- */
.faq { padding: 0 0 clamp(80px, 9vw, 140px); }
.kontakt:has(+ .faq) { padding-bottom: clamp(72px, 8vw, 120px); }
.faq__grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq__head { display: grid; gap: 12px; position: sticky; top: 14vh; }
.faq__head h2 { font-size: clamp(26px, 2.4vw, 36px); }
.faq__more { font-size: 14px; }
.faq__more { color: var(--muted); }
.faq__more a { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--red); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red); }
.faq summary i { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); transition: transform .4s var(--ease), background .3s, border-color .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary i { background: var(--red); border-color: var(--red); color: #fff; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details p { color: #4b4c48; font-size: 15px; max-width: 62ch; padding: 0 44px 16px 0; }
.faq summary:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

@media (max-width: 900px) {
  .prica__photo { padding-bottom: 28%; }
  .prica__now { right: 0; width: 46%; }
  .atest__grid { grid-template-columns: 1fr; }
  .atest__card--main { grid-column: auto; }
  .atest__card { min-height: 0; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .faq details p { padding-right: 0; }
}

/* ---------- tanka traka iznad menija ---------- */
.topbar { background: var(--ink); color: #cfcfc8; font-size: 12px; letter-spacing: .06em; overflow: hidden; max-height: 36px; transition: max-height .4s var(--ease); }
.topbar__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: stretch; gap: 24px; white-space: nowrap; }
/* levo: natpis koji se polako vrti, sa izbledelim ivicama */
.topbar__ticker { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 88%, transparent); }
.topbar__track { display: flex; width: max-content; animation: topbar-run 48s linear infinite; }
.topbar__ticker:hover .topbar__track { animation-play-state: paused; }
.topbar__track > div { display: flex; align-items: center; gap: 14px; padding-right: 14px; text-transform: uppercase; }
.topbar__track i { width: 14px; height: 2px; background: var(--red); border-radius: 2px; }
@keyframes topbar-run { to { transform: translateX(-50%); } }
/* desno: kontakt u odvojenim poljima */
.topbar__contact { display: flex; align-items: stretch; }
.topbar__contact > * { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-left: 1px solid rgba(245,244,239,.12); }
.topbar__contact > :last-child { padding-right: 0; }
.topbar__contact svg { width: 14px; height: 14px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.topbar__help { color: #a9aaa4; }
.topbar__pulse { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.topbar__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: topbar-pulse 2s var(--ease) infinite; }
@keyframes topbar-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }
.topbar a { color: var(--bg); font-weight: 500; }
.topbar a:hover { color: var(--red); }
.nav.is-scrolled .topbar { max-height: 0; }
.has-topbar .nav__phone { display: none; }

/* ---------- toplota i tehnička mreža iza poda ---------- */
.hero__visual::before { content: ""; position: absolute; inset: -6% -10%; background-image: linear-gradient(rgba(32,33,31,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(32,33,31,.08) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 52%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 60% 55% at 50% 52%, #000 30%, transparent 75%); pointer-events: none; }
.hero__heat { position: absolute; left: 2%; right: 2%; top: 8%; bottom: 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(245,29,43,.42), rgba(245,110,40,.2) 55%, rgba(245,110,40,0) 100%); filter: blur(28px); opacity: .55; pointer-events: none; }

/* ---------- traka poverenja na dnu heroja ---------- */
.hero__grid { flex: 1; align-content: center; width: 100%; }
.hero__trust { width: 100%; margin-top: 18px; }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; border-top: 1px solid var(--line); padding-top: 16px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; }
.trust li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); margin: 0 16px; }
.trust b { color: var(--ink); font-weight: 500; margin-right: 6px; }

@media (max-width: 1080px) { .topbar__help { display: none; } }
@media (max-width: 900px) {
  .hero { padding-top: 124px; }
  .topbar__ticker, .topbar__mail { display: none; }
  .topbar__inner { justify-content: center; font-size: 11px; }
  .topbar__help { display: inline-flex; }
  .topbar__contact > * { padding: 8px 12px; }
  .topbar__contact > :first-child { border-left: 0; }
  .topbar__contact > :last-child { padding-right: 12px; }
  .hero__heat { opacity: .6; }
  .trust { display: grid; grid-template-columns: 1fr 1fr; font-size: 11px; gap: 10px 12px; }
  .trust li { display: block; padding-left: 13px; position: relative; }
  .trust li::before, .trust li + li::before { content: ""; position: absolute; left: 0; top: .45em; width: 5px; height: 5px; border-radius: 50%; background: var(--red); margin: 0; }
}
@media (max-width: 420px) {
  .topbar__help { font-size: 10px; }
}

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - 140px); display: grid; align-items: center; padding: 140px 0 80px; }
.nf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.nf h1 { font-size: clamp(44px, 6.5vw, 100px); font-weight: 800; letter-spacing: -.045em; line-height: .98; margin: 18px 0 22px; }
.nf__lead { color: #4b4c48; font-size: 19px; max-width: 40ch; margin-bottom: 28px; }
.nf__links { display: flex; flex-wrap: wrap; gap: 10px; }
.nf__call { margin-top: 24px; font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.nf__call a { color: var(--ink); border-bottom: 2px solid var(--red); }
.nf__art { width: 100%; height: auto; overflow: visible; }
.nf__art path { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.nf__cold { stroke: #B9BAB3; }
.nf__hot { stroke: var(--red); filter: drop-shadow(0 0 6px rgba(245,29,43,.5)); }
.nf__end { fill: var(--red); }
.nf__end--cold { fill: #B9BAB3; }
.nf__spark path { stroke: var(--yellow); stroke-width: 4; animation: spark 1.4s steps(2) infinite; }
@keyframes spark { 50% { opacity: .15; } }
.nf__code { font: 800 64px var(--sans); letter-spacing: -.04em; fill: var(--line); }
@media (max-width: 900px) {
  .nf { padding-top: 110px; }
  .nf__grid { grid-template-columns: 1fr; }
  .nf__art { order: -1; max-width: 420px; }
}

/* oznaka „uskoro” pored prodavnice u meniju */
.soon { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 9px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; vertical-align: 2px; }

/* ---------- tekstovi sa starog sajta (stare adrese, novi dizajn) ---------- */
.old-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 96px); padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(56px, 8vw, 100px); border-top: 1px solid var(--line); }
.old-body { max-width: 760px; font-size: 17px; line-height: 1.65; color: #3b3c38; overflow-wrap: anywhere; }
.old-body > * + * { margin-top: 16px; }
.old-body h2, .old-body h3, .old-body h4 { color: var(--ink); letter-spacing: -.02em; line-height: 1.2; margin-top: 40px; }
.old-body h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; }
.old-body h3 { font-size: clamp(21px, 2vw, 26px); font-weight: 800; }
.old-body h4 { font-size: 18px; font-weight: 700; margin-top: 28px; }
.old-body > :first-child { margin-top: 0; }
.old-body strong { color: var(--ink); }
.old-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.old-body a:hover { color: var(--red); }
.old-body ul, .old-body ol { padding-left: 22px; }
.old-body li + li { margin-top: 6px; }
.old-body li::marker { color: var(--red); }
.old-body img { display: inline-block; max-width: 100%; height: auto; border-radius: 10px; background: #fff; vertical-align: middle; }
.old-body p > img:only-child, .old-body p > a:only-child > img { display: block; max-height: 520px; width: auto; }
.old-thumbs { display: flex; flex-wrap: wrap; gap: 12px; }
.old-thumbs img { width: 132px; height: 132px; object-fit: contain; border: 1px solid var(--line); padding: 6px; }
.old-thumbs a:hover img { border-color: var(--red); }
.old-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.old-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.old-table td, .old-table th { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.old-table tr:last-child td { border-bottom: 0; }
.old-table td:first-child { color: var(--muted); }
.old-table img { width: 80px; }
.old-side { align-self: start; position: sticky; top: 100px; display: grid; gap: 14px; }
.old-side nav { display: grid; border-top: 1px solid var(--line); }
.old-side a { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; transition: color .3s; }
.old-side a:hover, .old-side a[aria-current] { color: var(--red); }
@media (max-width: 900px) {
  .old-grid { grid-template-columns: 1fr; }
  .old-side { position: static; }
  .old-body { font-size: 16px; }
}

/* ---------- stranica Grejni kablovi ---------- */
.kab-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.kab-hero__btns { margin-top: 32px; }
.kab-models { display: grid; border-top: 1px solid var(--line); }
.kab-models > div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.kab-models dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }


.kab-tech { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.kab-tech h2 { margin: 14px 0 28px; }
.kab-cut { width: 100%; height: auto; }
.kab-cut circle { stroke-width: 2; }
.cut-jacket { fill: #2a2b29; stroke: var(--ink); }
.cut-shield { fill: none; stroke: #c98b4a; stroke-width: 6 !important; stroke-dasharray: 3 3; }
.cut-fill { fill: #3a3b38; stroke: none; }
.cut-ins { fill: #e9e8e2; stroke: #cfcfc8; }
.cut-wire { fill: #8a8b86; stroke: none; transition: fill 1.2s var(--ease) .6s, filter 1.2s var(--ease) .6s; }
.kab-cut.is-on .cut-wire { fill: var(--red); filter: drop-shadow(0 0 8px rgba(245,29,43,.8)); }
.cut-labels path { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.2s var(--ease); }
.cut-labels text { font-size: 12px; fill: var(--ink); letter-spacing: .02em; opacity: 0; transition: opacity .6s .8s; }
.kab-cut.is-on .cut-labels path { stroke-dashoffset: 0; }
.kab-cut.is-on .cut-labels text { opacity: 1; }
.kab-specs { border-top: 1px solid var(--line); }
.kab-specs > div { display: grid; grid-template-columns: minmax(130px, .8fr) 1.2fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kab-specs dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.kab-specs dd { margin: 0; font-weight: 600; }
.kab-source { margin-top: 14px; font-size: 11px; color: var(--muted); letter-spacing: .06em; }

.kab-uses { padding-bottom: clamp(64px, 9vw, 120px); }
.kab-uses h2 { margin: 14px 0 32px; }
.kab-uses__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kab-uses__grid a { position: relative; display: grid; gap: 10px; align-content: start; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .3s, transform .5s var(--ease); }
.kab-uses__grid a:hover { border-color: var(--red); transform: translateY(-3px); }
.kab-uses__grid .mono { font-size: 12px; color: var(--red); }
.kab-uses__grid b { font-size: 20px; letter-spacing: -.02em; line-height: 1.2; }
.kab-uses__grid small { font-size: 14px; color: var(--muted); }
.kab-uses__grid i { position: absolute; right: 22px; top: 22px; font-style: normal; color: var(--red); }
.kab-note { margin-top: 24px; color: #4b4c48; max-width: 70ch; }

@media (max-width: 900px) {
  .kab-hero, .kab-tech { grid-template-columns: 1fr; }
  .kab-uses__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .kab-uses__grid { grid-template-columns: 1fr; } }
.kab-tech__art { position: sticky; top: 140px; }
@media (max-width: 900px) { .kab-tech__art { position: static; } }
/* samoregulišući kablovi */
.kab-self { background: var(--ink); color: var(--bg); padding: clamp(64px, 9vw, 120px) 0; margin-bottom: clamp(64px, 9vw, 120px); }
.kab-self .label { color: #bdbdb6; }
.kab-self h2 { color: var(--bg); margin: 14px 0 20px; }
.kab-self__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.kab-self__lead { color: #cfcfc8; max-width: 56ch; margin-bottom: 20px; }
.kab-self__curve { width: 100%; height: auto; overflow: visible; }
.kab-self__curve .axis { fill: none; stroke: rgba(245,244,239,.3); stroke-width: 1.5; }
.kab-self__curve text { font-size: 11px; fill: #a9aaa4; letter-spacing: .08em; text-transform: uppercase; }
.kab-self__curve .curve { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(245,29,43,.6)); transition: stroke-dashoffset 1.6s var(--ease); }
.kab-self__curve.is-on .curve { stroke-dashoffset: 0; }
.kab-self__curve .dot { fill: var(--red); offset-path: path("M 34 36 C 120 60, 200 120, 296 160"); offset-distance: 0%; animation: kab-dot 4s var(--ease) infinite alternate; filter: drop-shadow(0 0 6px rgba(245,29,43,.9)); }
@keyframes kab-dot { to { offset-distance: 100%; } }
@media (max-width: 900px) {
  .kab-self__grid { grid-template-columns: 1fr; }
}

/* kablovi koji se ljušte (Grejni kablovi) */
.kab-art { width: 100%; height: auto; overflow: visible; }
.kab-art rect { transition: fill .8s var(--ease), filter .8s var(--ease); }
.l-jacket { fill: #3a3b38; stroke: #4a4b47; stroke-width: 1; }
.l-ins { fill: #e9e8e2; }
.l-core { fill: #8a8b86; }
.l-core--flat { fill: #141513; }
.l-bus { fill: #c98b4a; }
.l-heat { opacity: 0; transition: opacity .8s var(--ease); }
@keyframes kab-self { from { opacity: .45; } to { opacity: 1; } }
.kab-art__lbl path { fill: none; stroke: rgba(245,244,239,.35); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0; transition: opacity .5s; }
.kab-art__lbl text { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; fill: #cfcfc8; opacity: 0; transition: opacity .5s; }
.kab-lens { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; max-width: 460px; }
.kab-lens a { display: block; padding: 6px 10px; border: 1px solid rgba(245,244,239,.18); border-radius: 999px; font: 500 12px var(--mono); color: var(--bg); transition: background .25s, border-color .25s; }
.kab-lens a:hover { background: var(--red); border-color: var(--red); }
@media (max-width: 900px) {
}

/* snaga: „10 W” krupno, „po metru” sitno */
.pw { display: inline-flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; }
.pw b { font-weight: 800; letter-spacing: -.05em; line-height: .9; }
.pw__w { font-weight: 800; letter-spacing: -.03em; font-size: .62em; }
.pw small { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); align-self: center; }
.pw__dash { font-style: normal; font-weight: 300; margin: 0 .06em; opacity: .55; }
.kab-models dd { margin: 0; }
.kab-models .pw { font-size: clamp(44px, 5vw, 72px); color: var(--ink); }
.kab-models dd.mono { font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* kablovi: Thermoval sa izborom snage, Eltrace ispod */
.kab-show { background: var(--ink); color: var(--bg); padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 72px); }
.kab-show .label { color: #bdbdb6; }
.kab-show h2 { color: var(--bg); margin-top: 14px; }
.kab-show__head { margin-bottom: clamp(16px, 3vw, 32px); }
.kab-block { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(20px, 3vw, 40px); }
.kab-block + .kab-block { border-top: 1px solid rgba(245,244,239,.1); }
.kab-block__tag { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin: 0; }
.kab-block h3 { margin: 10px 0 18px; }
.kab-block h3 .pw { font-size: clamp(64px, 7vw, 112px); color: var(--bg); }
.kab-block h3 .pw small { color: #a9aaa4; }
.kab-block__info > p:not(.mono), .kab-panel > p:not(.mono) { color: #cfcfc8; max-width: 46ch; }
.kab-block__sub { margin: 20px 0 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #a9aaa4; }
.kab-power { display: inline-flex; padding: 4px; margin-bottom: 18px; border: 1px solid rgba(245,244,239,.18); border-radius: 999px; }
.kab-power button { font: 700 15px var(--sans); letter-spacing: -.01em; color: #cfcfc8; background: none; border: 0; border-radius: 999px; padding: 10px 20px; cursor: pointer; transition: background .3s, color .3s; }
.kab-power button[aria-selected="true"] { background: var(--red); color: #fff; }
.kab-block.is-pulse .l-core { animation: kab-pulse .7s var(--ease); }
@keyframes kab-pulse { 40% { filter: drop-shadow(0 0 calc(var(--glow) * 2.4) rgba(245,29,43,1)); } }
.kab-art__lbl path, .kab-art__lbl text { opacity: 0; transition: opacity .5s; }
.is-hot .kab-art__lbl path, .is-hot .kab-art__lbl text { opacity: 1; }
@media (max-width: 900px) {
  .kab-block { grid-template-columns: 1fr; }
  .kab-art__lbl text { font-size: 15px; }
}
.is-hot .l-core:not(.l-core--flat) { fill: var(--red); filter: drop-shadow(0 0 var(--glow) rgba(245,29,43,.9)); }
.is-hot .l-heat { opacity: 1; animation: kab-self 2.6s ease-in-out infinite alternate; filter: drop-shadow(0 0 var(--glow) rgba(245,29,43,.7)); }
