/* ==========================================================================
   ElektroDRIVE Subotica — stilovi
   Boje i font preuzeti iz logoa: grafit #1B1D20, čelično siva #AAAFB5, bela.
   Font logoa: Dosis (zaobljeni, uski geometrijski). Tekst: Manrope.
   ========================================================================== */

@font-face { font-family: "Dosis"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../assets/fonts/dosis-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Dosis"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../assets/fonts/dosis-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #1B1D20;
  --ink-2: #24272B;
  --ink-3: #30343A;
  --steel: #AAAFB5;
  --steel-2: #CDD1D5;
  --steel-3: #E3E6E9;
  --steel-dark: #5C6269;
  --mist: #F1F3F4;
  --line: #DEE1E4;
  --paper: #FFFFFF;
  --ok: #3CCB72;

  --f-display: "Dosis", "Arial Narrow", system-ui, sans-serif;
  --f-text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1320px;
  --pad: clamp(18px, 4.2vw, 44px);
  --cw: min(100vw - 2 * var(--pad), var(--maxw));
  --r-xl: clamp(22px, 3vw, 34px);
  --r-lg: 22px;
  --r-md: 14px;
  --sec: clamp(76px, 11vw, 150px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --shadow: 0 24px 60px -28px rgba(27, 29, 32, .35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; overflow-x: clip; font-family: var(--f-text); font-size: 1rem; line-height: 1.65; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .hero :focus-visible, .ftr :focus-visible, .mnav :focus-visible { outline-color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .3s; }
.skip:focus { top: 16px; }

/* ---------- Tipografija ---------- */
.h1, .h2, .h3, h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.005em; }
.h2 { font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4.6rem); line-height: .98; }
.h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); line-height: 1.12; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.muted { color: var(--steel-dark); }
.num { font-variant-numeric: tabular-nums; }
p + p { margin-top: 1em; }

/* ---------- Layout ---------- */
.container { width: var(--cw); margin-inline: auto; }
.sec { padding-block: var(--sec); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.sec-head p { color: var(--steel-dark); max-width: 60ch; }

/* ---------- Dugmad i linkovi ---------- */
.btn { --bg: var(--ink); --fg: #fff; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  height: 54px; padding: 0 28px; border-radius: 999px; background: var(--bg); color: var(--fg);
  font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; letter-spacing: .02em; white-space: nowrap;
  overflow: hidden; isolation: isolate; transition: color .45s var(--ease), box-shadow .45s var(--ease), transform .35s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--hover, var(--ink-3));
  transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--light { --bg: #fff; --fg: var(--ink); --hover: var(--steel-2); }
.btn--ghost { --bg: transparent; --fg: #fff; --hover: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn--outline { --bg: transparent; --fg: var(--ink); --hover: var(--mist); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--steel { --bg: var(--steel); --fg: var(--ink); --hover: #fff; }
.btn--sm { height: 44px; padding: 0 20px; font-size: 1rem; }
.btn--block { width: 100%; }

.link { display: inline-flex; align-items: center; gap: .55em; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .02em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 3px; transition: background-size .5s var(--ease); }
.link:hover { background-size: 100% 1.5px; }
.link svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.link:hover svg { transform: translateX(4px); }

.round-btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: #fff;
  transition: background .35s, color .35s, border-color .35s, opacity .35s, transform .35s var(--ease); }
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.round-btn--dark:hover:not(:disabled) { background: var(--ink-3); }

.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: .93rem;
  box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- Logo ---------- */
.logo { height: 32px; width: auto; aspect-ratio: 2105 / 645; color: currentColor; --logo-accent: #AAAFB5; }
.znak { width: 40px; height: 40px; --logo-accent: #AAAFB5; }

/* ==========================================================================
   Preloader
   ========================================================================== */
.pre { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: var(--ink); color: #fff;
  clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease-io); }
.pre.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.pre__inner { display: grid; justify-items: center; gap: 26px; transition: opacity .5s, transform .9s var(--ease-io); }
.pre.is-done .pre__inner { opacity: 0; transform: translateY(-40px); }
.pre__dial { position: relative; width: 168px; height: 168px; display: grid; place-items: center; }
.pre__ticks { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 6s linear infinite; color: rgba(255, 255, 255, .35); }
.pre__arc { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pre__arc circle { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 490; stroke-dashoffset: 490; transition: stroke-dashoffset .2s linear; }
.pre__znak { width: 92px; height: 92px; --logo-accent: #AAAFB5; animation: preSpin 1.6s var(--ease-io) both; }
.pre__word { width: 210px; height: auto; aspect-ratio: 1467 / 645; opacity: 0; transform: translateY(12px); animation: fadeUp .9s .5s var(--ease) forwards; }
.pre__read { display: flex; align-items: baseline; gap: 10px; font-family: var(--f-display); color: rgba(255, 255, 255, .6); font-size: .95rem; letter-spacing: .04em; }
.pre__read b { font-weight: 600; color: #fff; font-size: 1.5rem; font-variant-numeric: tabular-nums; min-width: 3.2ch; text-align: right; }
@keyframes preSpin { 0% { transform: rotate(-200deg) scale(.6); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(0) scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ==========================================================================
   Header
   ========================================================================== */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 90; padding: 12px var(--pad) 0; transition: transform .55s var(--ease); pointer-events: none; }
.hdr.is-hidden { transform: translateY(-130%); }
.hdr__bar { pointer-events: auto; max-width: var(--maxw); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 20px;
  padding: 0 8px 0 20px; border-radius: 999px; color: #fff; transition: background .45s, color .45s, box-shadow .45s, backdrop-filter .45s; }
.hdr.is-solid .hdr__bar { background: rgba(255, 255, 255, .86); color: var(--ink); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 14px 40px -18px rgba(27, 29, 32, .35), inset 0 0 0 1px rgba(27, 29, 32, .06); }
.hdr__logo { display: flex; align-items: center; flex: none; }
.hdr__logo .logo { height: 28px; }
.hdr__nav { display: none; margin-left: auto; gap: 4px; }
.hdr__nav a { position: relative; padding: 10px 14px; font-family: var(--f-display); font-weight: 500; font-size: 1.08rem; letter-spacing: .02em; border-radius: 999px; transition: background .3s; }
.hdr__nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.hdr__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hdr__nav a[aria-current="page"]::before { content: ""; position: absolute; left: 50%; top: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.hdr__cta { display: none; margin-left: 8px; height: 48px; }
.hdr.is-solid .hdr__cta { --bg: var(--ink); --fg: #fff; --hover: var(--ink-3); }
.hdr__cta { --bg: #fff; --fg: var(--ink); --hover: var(--steel-2); }
.hdr__burger { margin-left: auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-content: center; gap: 6px; background: rgba(255, 255, 255, .14); }
.hdr.is-solid .hdr__burger { background: var(--ink); color: #fff; }
.hdr__burger span { display: block; width: 20px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease), opacity .3s; }
.menu-open .hdr__burger span:nth-child(1) { transform: translateY(3.9px) rotate(45deg); }
.menu-open .hdr__burger span:nth-child(2) { transform: translateY(-3.9px) rotate(-45deg); }
.menu-open .hdr .hdr__bar { background: transparent; box-shadow: none; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .hdr .hdr__burger { background: rgba(255, 255, 255, .14); color: #fff; }
.menu-open .hdr { transform: none; }

.mnav { position: fixed; inset: 0; z-index: 80; background: var(--ink); color: #fff; padding: 110px var(--pad) 40px; display: flex; flex-direction: column;
  clip-path: circle(0 at calc(100% - 50px) 44px); transition: clip-path .8s var(--ease-io); overflow-y: auto; visibility: hidden; }
.menu-open .mnav { clip-path: circle(150% at calc(100% - 50px) 44px); visibility: visible; }
.mnav__links a { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 8vw, 3.2rem); line-height: 1.1;
  opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .7s var(--ease); }
.mnav__links a small { font-family: var(--f-text); font-size: .85rem; color: var(--steel); font-weight: 500; }
.menu-open .mnav__links a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .06s); }
.mnav__links a[aria-current="page"] { color: var(--steel); }
.mnav__foot { margin-top: auto; padding-top: 36px; display: grid; gap: 6px; color: rgba(255, 255, 255, .7); font-size: .95rem; }
.mnav__foot a { color: #fff; }

/* ==========================================================================
   Hero slajder — uvek 100vh
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100dvh; overflow: hidden; background: var(--ink); color: #fff; isolation: isolate;
  border-radius: 0 0 var(--r-xl) var(--r-xl); }
.slide { position: absolute; inset: 0; visibility: hidden; z-index: 0; }
.slide.is-active { visibility: visible; z-index: 1; }
.slide.is-entering { visibility: visible; z-index: 2; animation: wipeIn 1.25s var(--ease-io) both; }
.slide.is-entering.rev { animation-name: wipeInRev; }
@keyframes wipeIn { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipeInRev { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.slide__media { position: absolute; inset: -2%; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform: scale(1.04); }
.slide.is-active .slide__media img { animation: kenburns 9s linear both; }
.slide.is-entering .slide__media img { animation: enterZoom 1.6s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.13) translate3d(-1.2%, -.8%, 0); } }
@keyframes enterZoom { from { transform: scale(1.22); } to { transform: scale(1.04); } }
.slide__shade { position: absolute; inset: 0; background:
  linear-gradient(0deg, rgba(17, 19, 22, .92) 0%, rgba(17, 19, 22, .55) 42%, rgba(17, 19, 22, .2) 70%, rgba(17, 19, 22, .45) 100%); }
.slide__content { position: absolute; left: 0; right: 0; bottom: calc(118px + env(safe-area-inset-bottom)); margin-inline: auto; }
.slide__tag { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 12px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); margin-bottom: 20px; }
.slide__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--steel); box-shadow: 0 0 0 0 rgba(170, 175, 181, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(170, 175, 181, 0); } 100% { box-shadow: 0 0 0 0 rgba(170, 175, 181, 0); } }
.slide__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.65rem, 1.4rem + 6vw, 7.2rem); line-height: .93; letter-spacing: -.012em; max-width: 13.5ch; }
.slide__text { margin-top: 20px; max-width: 52ch; color: rgba(255, 255, 255, .8); font-size: clamp(1rem, .95rem + .3vw, 1.18rem); }
.slide__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.slide__tag, .slide__text, .slide__actions { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.slide.is-shown .slide__tag, .slide.is-shown .slide__text, .slide.is-shown .slide__actions { opacity: 1; transform: none; }
.slide.is-shown .slide__tag { transition-delay: .05s; }
.slide.is-shown .slide__text { transition-delay: .45s; }
.slide.is-shown .slide__actions { transition-delay: .6s; }

/* reči u naslovima */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform 1.05s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0ms)); }
.is-shown .w > span, .is-in .w > span { transform: none; }

.hero__ui { position: absolute; left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom)); margin-inline: auto; z-index: 5; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.hero__dots { display: flex; gap: 10px; flex: 1; max-width: 620px; }
.hero__dot { flex: 1; text-align: left; color: rgba(255, 255, 255, .55); padding: 10px 0 4px; transition: color .4s; }
.hero__dot.is-active, .hero__dot:hover { color: #fff; }
.hero__dot-num { font-family: var(--f-display); font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.hero__dot-label { display: none; font-size: .85rem; font-weight: 600; margin-left: 8px; }
.hero__dot-bar { display: block; height: 2px; margin-top: 10px; background: rgba(255, 255, 255, .22); border-radius: 2px; overflow: hidden; }
.hero__dot-bar i { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dot.is-done .hero__dot-bar i { transform: scaleX(1); }
.hero__arrows { display: flex; gap: 10px; }
.hero__arrows .round-btn { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero__arrows .round-btn:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* konzola pogona (dekorativna) */
.console { display: none; position: absolute; z-index: 5; right: max(var(--pad), calc((100vw - var(--maxw)) / 2)); bottom: 112px; width: 310px; padding: 18px 18px 14px;
  border-radius: 22px; color: #fff; background: rgba(22, 24, 27, .5); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px -30px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(30px); transition: opacity 1s .9s, transform 1.2s .9s var(--ease); }
.is-ready .console { opacity: 1; transform: none; }
.console__head { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; letter-spacing: .04em; font-size: .95rem; }
.console__led { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.console__state { margin-left: auto; font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: rgba(60, 203, 114, .16); color: #9BE7B8; letter-spacing: .08em; }
.console__main { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 8px; }
.console__val { font-family: var(--f-display); font-weight: 600; font-size: 3.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.console__unit { font-family: var(--f-display); font-size: 1.2rem; color: var(--steel); margin-left: 6px; }
.console__gauge { width: 104px; height: 62px; }
.console__gauge .g-track { stroke: rgba(255, 255, 255, .16); }
.console__gauge .g-fill { stroke: #fff; transition: stroke-dashoffset 1.2s var(--ease); }
.console__gauge .g-needle { transform-origin: 52px 54px; transition: transform 1.2s var(--ease); }
.console__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.console__grid dt { font-size: .72rem; color: rgba(255, 255, 255, .55); font-weight: 600; }
.console__grid dd { font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.console__grid dd small { font-size: .78rem; color: var(--steel); font-weight: 500; }
.console__wave { height: 34px; margin-top: 8px; overflow: hidden; }
.console__wave svg { width: 200%; height: 100%; animation: wave 2.4s linear infinite; }
@keyframes wave { to { transform: translateX(-50%); } }

/* ==========================================================================
   Unutrašnji hero
   ========================================================================== */
.phero { position: relative; height: clamp(440px, 68vh, 720px); overflow: hidden; color: #fff; background: var(--ink); border-radius: 0 0 var(--r-xl) var(--r-xl); isolation: isolate; }
.phero__media { position: absolute; inset: -6% 0; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; animation: enterZoom 2s var(--ease) both; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17, 19, 22, .92), rgba(17, 19, 22, .4) 60%, rgba(17, 19, 22, .55)); }
.phero__content { position: absolute; left: 0; right: 0; bottom: clamp(40px, 7vw, 80px); margin-inline: auto; z-index: 2; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .4); }
.phero h1 { font-size: clamp(3rem, 1.8rem + 6vw, 7.4rem); line-height: .92; }
.phero p { margin-top: 18px; max-width: 56ch; color: rgba(255, 255, 255, .8); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); }

/* ==========================================================================
   O nama + statistika
   ========================================================================== */
.about__grid { display: grid; gap: clamp(44px, 6vw, 90px); }
.about__intro { display: grid; gap: 24px; align-content: start; }
.about__intro .lead { max-width: 34ch; }
.about__intro p.muted { max-width: 56ch; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.stat { padding: 26px 0 26px; border-top: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 18px; }
.stat:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.stat__num { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.7rem, 1.6rem + 4.4vw, 5.4rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat__num small { font-size: .42em; font-weight: 500; color: var(--steel-dark); margin-left: 4px; letter-spacing: 0; }
.stat__label { margin-top: 10px; font-size: .92rem; color: var(--steel-dark); max-width: 26ch; line-height: 1.45; }

.brands { margin-top: clamp(64px, 8vw, 110px); display: grid; gap: 20px; }
.brands__label { font-size: .92rem; color: var(--steel-dark); font-weight: 600; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: clamp(40px, 6vw, 90px); padding-right: clamp(40px, 6vw, 90px); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); color: var(--steel); letter-spacing: .04em; white-space: nowrap; transition: color .3s; }
.brand:hover { color: var(--ink); }
.brand small { font-family: var(--f-text); font-size: .8rem; font-weight: 600; letter-spacing: 0; color: var(--steel-dark); max-width: 14ch; line-height: 1.25; white-space: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Katalog (horizontalni slajder kartica)
   ========================================================================== */
.catalog { background: var(--paper); }
.catalog__grid { display: grid; gap: 34px; }
.catalog__intro { display: grid; gap: 22px; align-content: start; }
.catalog__intro p { color: var(--steel-dark); max-width: 44ch; }
.catalog__ctrl { display: flex; gap: 10px; align-items: center; }
.catalog__ctrl .link { margin-left: 14px; }
.track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 0; padding-bottom: 8px;
  margin-right: calc((100vw - var(--cw)) / -2); padding-right: calc((100vw - var(--cw)) / 2); scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.track.is-drag a { pointer-events: none; }
.pcard { flex: 0 0 min(78vw, 330px); scroll-snap-align: start; display: grid; gap: 16px; align-content: start; perspective: 900px; }
.pcard__media { position: relative; aspect-ratio: 4 / 3.6; border-radius: var(--r-lg); background: var(--mist); overflow: hidden; transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); box-shadow: inset 0 0 0 1px var(--line); }
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .8s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard:hover .pcard__media { box-shadow: inset 0 0 0 1px var(--steel-2), var(--shadow); }
.pcard__code { position: absolute; left: 14px; top: 14px; padding: 4px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-family: var(--f-display); font-weight: 600; font-size: .85rem; letter-spacing: .06em; }
.pcard__plus { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  transform: scale(.6) rotate(-90deg); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.pcard__plus svg { width: 16px; height: 16px; }
.pcard:hover .pcard__plus { transform: none; opacity: 1; }
.pcard__title { font-size: 1.36rem; line-height: 1.12; }
.pcard__spec { font-size: .92rem; color: var(--steel-dark); font-variant-numeric: tabular-nums; margin-top: -8px; }

/* ==========================================================================
   VSD serija — opsezi snage (tamni panel)
   ========================================================================== */
.panel-dark { background: var(--ink); color: #fff; border-radius: var(--r-xl); margin-inline: clamp(8px, 1.4vw, 18px); position: relative; overflow: hidden; isolation: isolate; }
.panel-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 0%, #000 10%, transparent 70%); }
.panel-dark .muted, .panel-dark .sec-head p { color: rgba(255, 255, 255, .66); }
.vsd__top { display: grid; gap: 26px; margin-bottom: clamp(34px, 5vw, 56px); }
.vsd__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.vsd__filters .chip { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }
.vsd__filters .chip:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.vsd__filters .chip[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: none; }
.axis { display: none; position: relative; height: 26px; margin-left: var(--lab); font-size: .78rem; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.axis span::after { content: ""; position: absolute; left: 50%; top: 22px; width: 1px; height: calc(var(--rows-h, 640px)); background: rgba(255, 255, 255, .07); }
.vrows { position: relative; }
.vrow { display: grid; gap: 8px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .1); transition: opacity .45s, filter .45s; }
.vrow:last-child { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.vrow.is-dim { opacity: .22; filter: saturate(0); }
.vrow__head { display: flex; align-items: baseline; gap: 14px; }
.vrow__code { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .04em; }
.vrow__name { font-size: .92rem; color: rgba(255, 255, 255, .7); }
.vrow__bar { position: relative; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.vrow__bar i { position: absolute; top: 0; bottom: 0; left: calc(var(--a) * 100%); width: calc((var(--b) - var(--a)) * 100%); border-radius: 10px;
  background: linear-gradient(90deg, var(--steel), #fff); transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.vrow__bar i::after { content: ""; position: absolute; right: -2px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .14), 0 0 18px rgba(255, 255, 255, .6); }
.is-in .vrow__bar i { transform: scaleX(1); }
.vrow__range { font-size: .88rem; color: rgba(255, 255, 255, .78); font-variant-numeric: tabular-nums; }
.vrow:hover .vrow__code { color: var(--steel); }
.vsd__foot { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
.vsd__note { font-size: .88rem; color: rgba(255, 255, 255, .55); max-width: 60ch; }

/* ==========================================================================
   Kako radimo
   ========================================================================== */
.process__grid { display: grid; gap: clamp(44px, 6vw, 90px); }
.process__side { display: grid; gap: 22px; align-content: start; }
.process__side > p { color: var(--steel-dark); max-width: 44ch; }
.process__media { position: relative; margin-top: 18px; }
.process__img { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 4.4; }
.process__img img { width: 100%; height: 118%; object-fit: cover; object-position: 40% 50%; }
.badge-rot { position: absolute; right: clamp(-10px, -1vw, 0px); top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--steel); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 18px 40px -18px rgba(27, 29, 32, .5); }
.badge-rot svg.ring { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); animation: spin 16s linear infinite; }
.badge-rot text { font-family: var(--f-display); font-weight: 600; font-size: 12.6px; letter-spacing: .12em; fill: var(--ink); }
.badge-rot .znak { width: 44px; height: 44px; color: var(--ink); --logo-accent: #fff; }

.steps { position: relative; counter-reset: s; }
.steps::before, .steps__fill { content: ""; position: absolute; left: 24px; top: 40px; bottom: 40px; width: 1.5px; background: var(--line); }
.steps__fill { background: var(--ink); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr auto; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step:first-child { border-top: 1px solid var(--line); }
.step__icon { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center;
  transition: background .4s, color .4s, transform .5s var(--ease); box-shadow: 0 0 0 6px #fff; }
.step__icon svg { width: 22px; height: 22px; }
.step:hover .step__icon { background: var(--steel); color: var(--ink); transform: rotate(-12deg) scale(1.06); }
.step h3 { font-size: 1.32rem; line-height: 1.15; padding-top: 2px; }
.step p { margin-top: 6px; font-size: .95rem; color: var(--steel-dark); max-width: 52ch; }
.step__num { font-family: var(--f-display); font-weight: 600; color: var(--steel); font-size: .95rem; font-variant-numeric: tabular-nums; padding-top: 4px; }

/* ==========================================================================
   Područja primene
   ========================================================================== */
.apps { background: var(--mist); border-radius: var(--r-xl); margin-inline: clamp(8px, 1.4vw, 18px); }
.apps__layout { display: grid; gap: 40px; }
.apps__list { display: grid; }
.app { border-top: 1px solid var(--line); }
.app:last-child { border-bottom: 1px solid var(--line); }
.app__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; text-align: left;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); line-height: 1.15; color: var(--steel-dark); transition: color .35s, padding .5s var(--ease); }
.app__btn:hover, .app.is-active .app__btn { color: var(--ink); }
.app__btn svg { width: 22px; height: 22px; flex: none; transition: transform .5s var(--ease); }
.app.is-active .app__btn svg { transform: rotate(45deg); }
.app__desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.app__desc > div { overflow: hidden; }
.app__desc p { padding-bottom: 22px; color: var(--steel-dark); max-width: 60ch; }
.app.is-active .app__desc { grid-template-rows: 1fr; }
.apps__panel { display: none; }

/* ==========================================================================
   CTA + Footer (tamno)
   ========================================================================== */
.ftr { background: var(--ink); color: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: clamp(48px, 6vw, 90px); position: relative; overflow: hidden; isolation: isolate; }
.ftr::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 20% 0%, #000 0%, transparent 60%); mask-image: radial-gradient(ellipse at 20% 0%, #000 0%, transparent 60%); }
.cta { padding-block: clamp(70px, 9vw, 130px) clamp(56px, 7vw, 90px); display: grid; gap: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.cta__intro { display: grid; gap: 22px; align-content: start; }
.cta__intro .h2 { max-width: 12ch; }
.cta__intro > p { color: rgba(255, 255, 255, .7); max-width: 46ch; }
.clist { display: grid; gap: 4px; margin-top: 10px; }
.clist a, .clist div { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); transition: color .3s; }
.clist a:hover { color: var(--steel); }
.clist svg { width: 20px; height: 20px; flex: none; color: var(--steel); }
.clist small { display: block; font-size: .78rem; color: rgba(255, 255, 255, .5); font-weight: 600; }

.form { display: grid; gap: 14px; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.form--light { background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); }
.form__row { display: grid; gap: 14px; }
.field { position: relative; display: grid; }
.field label { font-size: .82rem; font-weight: 600; margin-bottom: 7px; color: rgba(255, 255, 255, .7); }
.form--light .field label { color: var(--steel-dark); }
.field input, .field select, .field textarea { width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 0; outline: 0;
  background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14); transition: box-shadow .3s, background .3s; font-size: 1rem; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23AAAFB5' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { color: var(--ink); }
.field textarea { height: 132px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .38); }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 1.5px #fff; background: rgba(255, 255, 255, .09); }
.form--light .field input, .form--light .field select, .form--light .field textarea { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.form--light .field input::placeholder, .form--light .field textarea::placeholder { color: #8b9198; }
.form--light .field input:focus, .form--light .field select:focus, .form--light .field textarea:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.field.is-error input, .field.is-error textarea { box-shadow: inset 0 0 0 1.5px #E5847A; }
.field__err { font-size: .8rem; color: #F0A49B; margin-top: 6px; display: none; }
.form--light .field__err { color: #B4402F; }
.field.is-error .field__err { display: block; }
.form__note { font-size: .82rem; color: rgba(255, 255, 255, .5); }
.form--light .form__note { color: var(--steel-dark); }
.form__status { font-size: .92rem; min-height: 1.4em; color: #9BE7B8; }
.form--light .form__status { color: #1F7A45; }
.form .btn { margin-top: 4px; }

.ftr__main { padding-block: clamp(50px, 6vw, 80px); display: grid; gap: 40px; }
.ftr__brand { display: grid; gap: 18px; align-content: start; }
.ftr__brand .logo { height: clamp(40px, 5vw, 54px); color: #fff; }
.ftr__brand p { color: rgba(255, 255, 255, .6); max-width: 40ch; font-size: .95rem; }
.ftr__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
.ftr__col h3 { font-size: 1.05rem; color: var(--steel); font-weight: 600; margin-bottom: 14px; letter-spacing: .02em; }
.ftr__col li + li { margin-top: 8px; }
.ftr__col a, .ftr__col span { color: rgba(255, 255, 255, .82); font-size: .95rem; transition: color .3s; }
.ftr__col a:hover { color: #fff; }
.ftr__legal { padding-block: 22px calc(22px + 70px); border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: .84rem; color: rgba(255, 255, 255, .5); }
.ftr__big { font-family: var(--f-display); font-weight: 700; font-size: clamp(4rem, 17vw, 17rem); line-height: .8; letter-spacing: -.02em; color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .16); white-space: nowrap; text-align: center; padding-top: 10px; user-select: none; overflow: hidden; }

/* ==========================================================================
   AI asistent (dole levo) + nazad na vrh (dole desno) — ista linija
   ========================================================================== */
.fab-line { --fab: 56px; --fab-gap: clamp(14px, 2vw, 24px); }
.ai-fab, .totop { position: fixed; bottom: calc(var(--fab-gap) + env(safe-area-inset-bottom)); width: var(--fab); height: var(--fab); border-radius: 50%; z-index: 120; display: grid; place-items: center; }
.ai-fab { left: var(--fab-gap); background: var(--ink); color: #fff; box-shadow: 0 16px 34px -12px rgba(27, 29, 32, .55), inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .45s var(--ease), background .3s; }
.ai-fab:hover { transform: scale(1.06); }
.ai-fab .znak { width: 30px; height: 30px; --logo-accent: #AAAFB5; transition: transform .6s var(--ease); }
.ai-fab:hover .znak { transform: rotate(120deg); }
.ai-fab::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--steel); opacity: .0; animation: fabPulse 2.8s var(--ease) infinite; }
@keyframes fabPulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.ai-fab__x { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: rotate(-90deg); transition: opacity .3s, transform .5s var(--ease); }
.ai-fab__x svg { width: 20px; height: 20px; }
.ai-open .ai-fab .znak { opacity: 0; transform: rotate(90deg) scale(.6); }
.ai-open .ai-fab .ai-fab__x { opacity: 1; transform: none; }
.ai-open .ai-fab::before { display: none; }
.ai-hint { position: fixed; left: calc(var(--fab-gap) + var(--fab) + 12px); bottom: calc(var(--fab-gap) + 9px + env(safe-area-inset-bottom)); z-index: 119; background: #fff; color: var(--ink);
  padding: 9px 14px; border-radius: 12px; font-size: .88rem; font-weight: 600; box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  opacity: 0; transform: translateX(-10px); pointer-events: none; transition: opacity .5s, transform .6s var(--ease); white-space: nowrap; }
.ai-hint.is-on { opacity: 1; transform: none; }

.ai { position: fixed; left: 10px; right: 10px; bottom: calc(var(--fab-gap) + var(--fab) + 12px + env(safe-area-inset-bottom)); z-index: 121; display: flex; flex-direction: column;
  max-height: min(620px, calc(100dvh - 120px)); background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(27, 29, 32, .55), inset 0 0 0 1px var(--line);
  transform-origin: bottom left; transform: translateY(18px) scale(.96); opacity: 0; visibility: hidden; transition: opacity .4s, transform .55s var(--ease), visibility .55s; }
.ai-open .ai { opacity: 1; transform: none; visibility: visible; }
.ai__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--ink); color: #fff; }
.ai__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink-3); display: grid; place-items: center; flex: none; }
.ai__avatar .znak { width: 26px; height: 26px; }
.ai__title { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; line-height: 1.1; }
.ai__status { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: rgba(255, 255, 255, .65); }
.ai__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.ai__close { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.ai__close svg { width: 16px; height: 16px; }
.ai__msgs { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--mist); overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.5; animation: msgIn .45s var(--ease) both; }
.msg a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.msg--bot { background: #fff; border-bottom-left-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.msg--me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg ul { margin-top: 6px; display: grid; gap: 3px; }
.msg li { padding-left: 14px; position: relative; }
.msg li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--steel); }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--steel); animation: typ 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typ { 30% { transform: translateY(-4px); background: var(--ink); } 60% { transform: none; } }
.ai__chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px; background: var(--mist); scrollbar-width: none; border-top: 1px solid var(--line); }
.ai__chips::-webkit-scrollbar { display: none; }
.ai__chips button { flex: none; height: 34px; padding: 0 13px; border-radius: 999px; background: #fff; font-size: .82rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s; }
.ai__chips button:hover { background: var(--ink); color: #fff; }
.ai__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ai__form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--mist); outline: none; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .3s; font-size: .95rem; }
.ai__form input:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.ai__form button { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.ai__form button svg { width: 18px; height: 18px; }
.ai__foot { font-size: .72rem; color: var(--steel-dark); text-align: center; padding: 0 12px 10px; }

.totop { right: var(--fab-gap); background: #fff; color: var(--ink); box-shadow: 0 16px 34px -14px rgba(27, 29, 32, .45), inset 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .4s, transform .5s var(--ease), background .3s, color .3s; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--ink); color: #fff; }
.totop svg.arrow { width: 20px; height: 20px; position: relative; z-index: 1; transition: transform .45s var(--ease); }
.totop:hover svg.arrow { transform: translateY(-3px); }
.totop svg.ring { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); transform: rotate(-90deg); }
.totop svg.ring circle { fill: none; stroke-width: 2; }
.totop .ring-track { stroke: var(--steel-3); }
.totop .ring-bar { stroke: var(--ink); stroke-linecap: round; stroke-dasharray: 145; stroke-dashoffset: 145; }
.totop:hover .ring-bar { stroke: #fff; }
.totop:hover .ring-track { stroke: rgba(255, 255, 255, .2); }

/* ==========================================================================
   Kursor (samo miš)
   ========================================================================== */
.cursor { position: fixed; left: 0; top: 0; z-index: 500; pointer-events: none; mix-blend-mode: difference; display: none; }
.cursor__ring { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 1.5px solid #fff; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s; }
.cursor__dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, 1); }
.cursor.is-down .cursor__ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }

/* ==========================================================================
   Unutrašnje stranice — komponente
   ========================================================================== */
.split { display: grid; gap: clamp(36px, 6vw, 90px); }
.statement { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.7rem, 1.2rem + 2.2vw, 3rem); line-height: 1.12; letter-spacing: -.005em; max-width: 24ch; }
.timeline { display: grid; }
.tl { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.tl:last-child { border-bottom: 1px solid var(--line); }
.tl__year { font-family: var(--f-display); font-weight: 600; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tl h3 { font-size: 1.3rem; }
.tl p { color: var(--steel-dark); margin-top: 6px; }

.speclist { display: grid; gap: 0; }
.spec { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); }
.spec:last-child { border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.spec dd { color: var(--steel-dark); font-variant-numeric: tabular-nums; }
.spec dd b { color: var(--ink); font-weight: 700; }

.datacard { border-radius: var(--r-lg); background: var(--mist); padding: clamp(24px, 3vw, 40px); display: grid; gap: 0; box-shadow: inset 0 0 0 1px var(--line); }
.datacard h3 { font-size: 1.4rem; margin-bottom: 14px; }
.datacard div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.datacard div span:first-child { color: var(--steel-dark); }
.datacard div span:last-child { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.subnav { position: sticky; top: 88px; z-index: 40; margin-top: -28px; }
.subnav__inner { display: flex; gap: 6px; overflow-x: auto; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px -20px rgba(27, 29, 32, .35), inset 0 0 0 1px var(--line); scrollbar-width: none; width: max-content; max-width: 100%; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; height: 40px; padding: 0 16px; display: flex; align-items: center; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: background .3s, color .3s; }
.subnav a:hover { background: var(--mist); }
.subnav a.is-active { background: var(--ink); color: #fff; }

.prod { display: grid; gap: clamp(28px, 4vw, 60px); padding-block: clamp(60px, 8vw, 110px); border-bottom: 1px solid var(--line); scroll-margin-top: 150px; }
.prod:last-of-type { border-bottom: 0; }
.prod__media { border-radius: var(--r-xl); background: var(--mist); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.prod__media img { width: 88%; height: auto; }
.prod__body { display: grid; gap: 20px; align-content: start; }
.prod__body > p { color: var(--steel-dark); max-width: 58ch; }
.prod__code { font-family: var(--f-display); font-weight: 600; font-size: .95rem; letter-spacing: .06em; color: var(--steel-dark); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--mist); font-size: .85rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }

.table-wrap { overflow-x: auto; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); }
.stable { width: 100%; border-collapse: collapse; min-width: 680px; font-size: .93rem; font-variant-numeric: tabular-nums; }
.stable th, .stable td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.stable thead th { font-family: var(--f-display); font-weight: 600; font-size: 1rem; background: var(--mist); letter-spacing: .02em; }
.stable tbody tr { transition: background .3s; }
.stable tbody tr:hover { background: var(--mist); }
.stable tbody tr:last-child td { border-bottom: 0; }
.stable td:first-child { font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; letter-spacing: .03em; white-space: nowrap; }
.yes { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; place-items: center; justify-content: center; align-items: center; }
.yes svg { width: 12px; height: 12px; }
.no { color: var(--steel); }

.partners { display: grid; gap: 16px; }
.partner { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 14px; align-content: start; transition: box-shadow .4s, transform .5s var(--ease); }
.partner:hover { box-shadow: inset 0 0 0 1px var(--steel), var(--shadow); transform: translateY(-4px); }
.partner__name { font-family: var(--f-display); font-weight: 700; font-size: 2rem; letter-spacing: .04em; line-height: 1; }
.partner ul { display: grid; gap: 6px; }
.partner li { position: relative; padding-left: 16px; color: var(--steel-dark); font-size: .95rem; }
.partner li::before { content: ""; position: absolute; left: 0; top: .66em; width: 6px; height: 6px; border-radius: 2px; background: var(--steel); }

.svc { display: grid; gap: 14px; counter-reset: svc; }
.svc__item { position: relative; display: grid; gap: 14px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: background .45s, color .45s; }
.svc__item:hover { background: var(--ink); color: #fff; }
.svc__item:hover p { color: rgba(255, 255, 255, .7); }
.svc__top { display: flex; align-items: center; justify-content: space-between; }
.svc__num { font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--steel-dark); font-variant-numeric: tabular-nums; }
.svc__item:hover .svc__num { color: var(--steel); }
.svc__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: background .45s, color .45s; }
.svc__item:hover .svc__icon { background: #fff; color: var(--ink); }
.svc__icon svg { width: 22px; height: 22px; }
.svc__item h3 { font-size: 1.35rem; line-height: 1.15; }
.svc__item p { color: var(--steel-dark); font-size: .95rem; transition: color .45s; }

.ind { display: grid; gap: 14px; }
.ind__item { display: grid; gap: 12px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.ind__item::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.ind__item:hover::after { transform: scaleX(1); }
.ind__item h3 { font-size: 1.45rem; line-height: 1.12; }
.ind__item p { color: var(--steel-dark); font-size: .96rem; }

.docs__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.doc { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); transition: opacity .4s; }
.doc:last-child { border-bottom: 1px solid var(--line); }
.doc[hidden] { display: none; }
.doc__icon { width: 48px; height: 58px; border-radius: 8px; background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; position: relative; font-family: var(--f-display); font-weight: 700; font-size: .72rem; letter-spacing: .06em; color: var(--steel-dark); }
.doc__icon::before { content: ""; position: absolute; right: 0; top: 0; width: 14px; height: 14px; background: linear-gradient(225deg, #fff 50%, var(--steel-2) 50%); border-top-right-radius: 8px; }
.doc__title { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; line-height: 1.15; }
.doc__meta { font-size: .86rem; color: var(--steel-dark); }
.doc .btn { grid-column: 2; justify-self: start; }

.ccards { display: grid; gap: 12px; }
.ccard { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r-lg); background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); transition: background .4s, color .4s; }
a.ccard:hover { background: var(--ink); color: #fff; }
a.ccard:hover small { color: var(--steel); }
.ccard__icon { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: background .4s, color .4s; }
a.ccard:hover .ccard__icon { background: #fff; color: var(--ink); }
.ccard__icon svg { width: 20px; height: 20px; }
.ccard small { display: block; font-size: .8rem; font-weight: 600; color: var(--steel-dark); margin-bottom: 2px; }
.ccard b { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.map { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 10; background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* ==========================================================================
   Animacije pri skrolu
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="img"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round var(--r-xl)); transition: clip-path 1.4s var(--ease-io); }
.js [data-reveal="img"] img { transform: scale(1.25); transition: transform 1.8s var(--ease); }
.js [data-reveal="img"].is-in { clip-path: inset(0 0 0 0 round var(--r-xl)); }
.js [data-reveal="img"].is-in img { transform: scale(1); }
.js [data-reveal="scale"] { transform: scale(.92); }
.js [data-reveal="scale"].is-in { transform: none; }

/* ==========================================================================
   Responsive (mobile first)
   ========================================================================== */
@media (min-width: 640px) {
  .ai { left: var(--fab-gap); right: auto; width: 390px; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .ftr__cols { grid-template-columns: repeat(3, 1fr); }
  .partners { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr 1fr; }
  .ind { grid-template-columns: 1fr 1fr; }
  .ccards { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 52px 1fr auto; }
  .doc .btn { grid-column: auto; }
  .hero__dot-label { display: inline; }
  .stat:nth-child(odd) { padding-right: 28px; }
  .stat:nth-child(even) { padding-left: 28px; }
}
@media (min-width: 900px) {
  body { font-size: 1.0625rem; }
  .hdr__bar { height: 70px; padding-left: 26px; }
  .hdr__logo .logo { height: 32px; }
  .about__grid { grid-template-columns: 1fr 1.05fr; align-items: start; }
  .catalog__grid { grid-template-columns: minmax(280px, 360px) 1fr; gap: 40px; align-items: start; }
  .catalog__intro { position: sticky; top: 120px; }
  .pcard { flex-basis: 330px; }
  .vsd__top { grid-template-columns: 1fr auto; align-items: end; }
  .vsd__top .sec-head { margin-bottom: 0; }
  .vchart { --lab: 330px; }
  .axis { display: block; }
  .vrow { grid-template-columns: var(--lab) 1fr; align-items: center; gap: 0; padding: 16px 0; }
  .vrow__head { flex-direction: column; gap: 2px; padding-right: 24px; }
  .vrow__bar { grid-column: 2; grid-row: 1; }
  .vrow__range { grid-column: 2; grid-row: 1; align-self: end; margin-bottom: -22px; font-size: .8rem; color: rgba(255, 255, 255, .5); padding-left: calc(var(--a) * 100%); white-space: nowrap; }
  .vrow { padding: 22px 0 30px; }
  .process__grid { grid-template-columns: .92fr 1.08fr; align-items: start; }
  .process__side { position: sticky; top: 110px; }
  .apps__layout { grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
  .app__desc { display: none; }
  .app__btn svg { transform: rotate(-45deg); opacity: 0; transition: opacity .3s, transform .5s var(--ease); }
  .app.is-active .app__btn svg { opacity: 1; transform: none; }
  .app.is-active .app__btn { padding-left: 14px; }
  .apps__panel { display: block; position: sticky; top: 110px; }
  .apps__img { position: relative; aspect-ratio: 16 / 11; border-radius: var(--r-xl); overflow: hidden; background: var(--ink); }
  .apps__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .8s, transform 1.4s var(--ease); }
  .apps__img img.is-on { opacity: 1; transform: none; }
  .apps__text { padding-top: 26px; min-height: 180px; }
  .apps__text h3 { font-size: 1.9rem; line-height: 1.1; }
  .apps__text p { margin-top: 12px; color: var(--steel-dark); max-width: 56ch; }
  .apps__text > * { animation: fadeUp .7s var(--ease) both; opacity: 0; transform: translateY(14px); }
  .apps__text p { animation-delay: .08s; }
  .cta { grid-template-columns: 1fr 1.1fr; align-items: start; gap: clamp(40px, 6vw, 90px); }
  .ftr__main { grid-template-columns: 1fr 1.5fr; }
  .ftr__legal { padding-bottom: 22px; }
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
  .prod { grid-template-columns: 1fr 1.05fr; align-items: center; }
  .prod:nth-of-type(even) .prod__media { order: 2; }
  .svc { grid-template-columns: repeat(3, 1fr); }
  .ind { grid-template-columns: repeat(3, 1fr); }
  .partners { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
  .slide__content { bottom: calc(130px + env(safe-area-inset-bottom)); }
}
@media (min-width: 1100px) {
  .hdr__nav { display: flex; }
  .hdr__cta { display: inline-flex; }
  .hdr__burger { display: none; }
  .stats { padding-top: 10px; }
}
@media (min-width: 1200px) {
  .console { display: block; }
  .slide__content { padding-right: 340px; }
  .badge-rot { width: 158px; height: 158px; right: -34px; }
}
@media (max-width: 899px) {
  .slide__shade { background: linear-gradient(0deg, rgba(17, 19, 22, .95) 0%, rgba(17, 19, 22, .7) 45%, rgba(17, 19, 22, .25) 75%, rgba(17, 19, 22, .5) 100%); }
  .slide__media img { object-position: 60% 50%; }
  .hero__arrows .round-btn { width: 46px; height: 46px; }
}
@media (max-width: 420px) {
  .btn { height: 50px; padding: 0 22px; font-size: 1.02rem; }
  .slide__actions .btn { flex: 1 1 auto; }
  .hero__dots { gap: 8px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .slide__title { font-size: clamp(2rem, 7vh, 3.2rem); }
  .slide__text { display: none; }
  .slide__tag { margin-bottom: 10px; }
  .slide__actions { margin-top: 16px; }
  .slide__content { bottom: 86px; }
  .hero__ui { bottom: 14px; }
}
@media (hover: none) { .pcard__plus { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  .js [data-reveal], .js [data-reveal="img"] { opacity: 1; transform: none; clip-path: none; }
}
@media print {
  .hdr, .ai-fab, .ai, .totop, .pre, .cursor, .hero__ui, .console { display: none !important; }
  .hero, .phero { height: auto; min-height: 0; }
}

/* statistika na tamnoj podlozi */
.stats--dark .stat { border-color: rgba(255, 255, 255, .12); }
.stats--dark .stat__label { color: rgba(255, 255, 255, .62); }
.stats--dark .stat__num small { color: var(--steel); }
.slide__media { transition: transform 1s var(--ease); }
.track img { -webkit-user-drag: none; user-select: none; }
.form__status.is-err { color: #F0A49B; }
.form--light .form__status.is-err { color: #B4402F; }

/* --- korekcije posle pregleda --- */
.brands > *, .catalog__grid > *, .sec-head > *, .split > *, .about__grid > *, .process__grid > *, .apps__layout > *, .cta > * { min-width: 0; }
.marquee { min-width: 0; max-width: 100%; }
.hdr__logo .logo { height: 34px; }
.hero__ui { padding-left: max(0px, calc(var(--fab) + var(--fab-gap) + 14px - (100vw - var(--cw)) / 2)); bottom: calc(var(--fab-gap) + env(safe-area-inset-bottom)); align-items: center; min-height: var(--fab); }
.console { background: rgba(22, 24, 27, .66); }
@media (min-width: 900px) { .hdr__logo .logo { height: 40px; } }
.prod__wide { grid-column: 1 / -1; min-width: 0; }
.svc__item--cta { background: var(--ink); color: #fff; box-shadow: none; }
.svc__item--cta p { color: rgba(255, 255, 255, .7); }
.svc__item--cta .svc__icon { background: #fff; color: var(--ink); }
.svc__item--cta .link { margin-top: auto; justify-self: start; }
.svc__item--cta:hover { background: var(--ink-3); }
@media (min-width: 1100px) { .svc { grid-template-columns: repeat(4, 1fr); } }
.map { position: relative; }
.map::before { content: "Aleja Maršala Tita 12/14, Subotica"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--steel-dark); font-weight: 600; font-size: .95rem; }
.map iframe { position: relative; z-index: 1; }
.menu-open .ai-fab, .menu-open .totop, .menu-open .ai-hint, .menu-open .ai { opacity: 0 !important; pointer-events: none !important; visibility: hidden; }
.ai-hint { left: var(--fab-gap); bottom: calc(var(--fab-gap) + var(--fab) + 12px + env(safe-area-inset-bottom)); transform: translateY(8px); }
.ai-hint.is-on { transform: none; }
.ai-hint::after { content: ""; position: absolute; left: 22px; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); box-shadow: 1px 1px 0 var(--line); }
.stable td:nth-child(3), .stable td:nth-child(4) { white-space: nowrap; }
@media (min-width: 900px) { .hdr__logo .logo { height: 44px; } }
