/* Siku-teh · naslovna
   Smjer: radionica u mraku i bijeli izložbeni prostor. Grafit + Lorch crvena.
   Tipografija (Google Fonts), smjer „Švicarski grotesk”:
   - Inter Tight: H1, H2, H3, veliki iskazi, nazivi uređaja i kategorija
   - Inter: tekst, navigacija, gumbi, tabovi, FAQ pitanja, obrasci, traka
   - Geist Mono: tehničke oznake i specifikacije (velika slova)
   Ljestvica (desktop): H1 90/600 · H2 49/600 · iskaz 43/500 · H3 19-21/600-700 ·
   tekst 16-20/450-500 · navigacija 15.5/600 · gumbi 15/700 · oznake 10.5-11/600, VELIKA SLOVA */
:root {
  --ink: #0e0f10;
  --graphite: #15171a;
  --graphite-2: #1d2024;
  --steel-6: #4b5057;
  --steel-4: #8b9198;
  --steel-2: #d7dadd;
  --steel-1: #ecedeb;
  --paper: #f5f5f3;
  --white: #ffffff;
  --red: #d71e24;
  --red-deep: #a9151a;
  --arc: #cfe8ff;

  /* Tipografija: Inter Tight = naslovi (mirno, precizno), Inter = tekst i sučelje, Geist Mono = tehničke oznake */
  --f-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --d-scale: 1.02;          /* veličina naslova */
  --d-track: -.005em;       /* dodatni razmak slova u naslovima */
  --d-w-hero: 600; --d-w-big: 600; --d-w-head: 600;
  --l-track: .05em;         /* razmak slova u oznakama */

  --wrap: 1312px;
  --gutter: clamp(16px, 4.45vw, 64px); /* 64 px lijevo i desno na 1440 i šire */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--f-sans); font-size: 16px; line-height: 1.6; font-weight: 450; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }
.muted { color: var(--steel-4); }
.mono-label { font-family: var(--f-mono); font-size: 11px; font-weight: 600; font-variation-settings: "wdth" calc(112 * var(--wl, 1)); letter-spacing: var(--l-track, .1em); text-transform: uppercase; margin: 0; }
.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.h2 { font-family: var(--f-display); font-size: calc(clamp(30px, 3.6vw, 48px) * var(--d-scale, 1)); line-height: 1.04; letter-spacing: calc(-.025em + var(--d-track, 0em)); font-weight: var(--d-w-head, 600); font-variation-settings: "wdth" calc(104 * var(--wd, 1)); margin: 0; text-wrap: balance;  text-transform: var(--d-case, none);}

/* Gumbi */
.btn { --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 20px; border-radius: 0; border: 1px solid transparent; font-weight: 700; font-size: 15px; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); position: relative; overflow: hidden; }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 54px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--icon { width: var(--h); padding: 0; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--red::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); }
.btn--red:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }
.btn--line { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--line:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--outline { border-color: var(--steel-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--ghost { color: inherit; border-color: currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.btn--ghost:hover { border-color: currentColor; }
.btn--ghost-dark { border-color: rgba(255,255,255,.3); color: #fff; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.link-arrow { display: inline-flex; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--steel-2); padding-bottom: 3px; transition: border-color .25s; }
.link-arrow:hover { border-color: var(--red); }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* Traka (po zwarttechniek.com): fiksna, 40 px, #1a1a1a, siv tekst, točka u boji, podcrtan broj; na mobitelu marquee */
:root { --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); --bar-h: 40px; --head-h: 69px; }
body { padding-top: var(--bar-h); }
.banner { position: fixed; z-index: 32; top: 0; left: 0; right: 0; height: var(--bar-h); padding-top: env(safe-area-inset-top, 0px); background: #1a1a1a; color: #ccc; font-size: 13.5px; font-weight: 500; letter-spacing: -.01em; overflow: hidden; display: flex; align-items: center; }
.banner__in { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; transform: translateY(1px); }
.banner__dot { color: var(--red); line-height: 1; }
.banner__tel { color: #ccc; text-decoration: underline; text-underline-offset: 4px; transition: color .2s; white-space: nowrap; }
.banner__tel:hover { color: #fff; }
.banner__t { white-space: nowrap; }
.banner__mq { display: none; width: 100%; }
.banner__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.banner__item { display: flex; align-items: center; gap: 8px; padding: 0 48px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Header (po zwarttechniek.com): fiksni ispod trake, 76 px, zatamnjeno staklo, logo | izbornik | akcije */
.header { position: fixed; z-index: 30; top: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0; color: #fff; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.header.is-hidden { transform: translateY(calc(-1 * (var(--head-h) + 14px))); } /* klizne ispod trake (traka ima veći z-index) */
.header::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .3s; }
.header.is-open::before { background: rgba(16,16,16,.92); }
.header__in { position: relative; height: var(--head-h); max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.logo { display: block; width: 131px; }
.logo img { width: 131px; height: auto; }
.nav { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 2.2vw, 32px); }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; background: none; border: 0; color: #fff; transition: color .1s; white-space: nowrap; }
.nav__link:hover, .nav__drop[aria-expanded="true"] { color: #ccc; }
.nav__drop svg { transition: transform .3s var(--ease); }
.nav__drop[aria-expanded="true"] svg { transform: rotate(180deg); }
.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.hbtn { height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 0; background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1; transition: background .2s; }
.hbtn:hover { background: rgba(255,255,255,.3); }
.hbtn--round { width: 44px; }
.hbtn--pill { padding: 0 24px; }
.hbtn__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(215,30,36,.6); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(215,30,36,.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(215,30,36,0); } }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; color: #fff; }
.burger span { position: absolute; right: 10px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease), width .35s var(--ease); }
.burger span:first-child { top: 18px; width: 18px; } .burger span:last-child { top: 25px; width: 9px; }
.burger[aria-expanded="true"] span { width: 18px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Mega menu */
.mega { position: absolute; left: 0; right: 0; top: var(--head-h); color: #fff; }
.mega::before { content: ""; position: absolute; inset: 0; background: rgba(16,16,16,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); border-top: 1px solid rgba(255,255,255,.08); }
.mega__in { position: relative; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 28px var(--gutter) 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.15fr); gap: 32px; }
.mega__col { display: grid; align-content: start; gap: 2px; }
.mega__col .mono-label { color: #8b9198; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.mega__col a { text-decoration: none; font-size: 16px; padding: 6px 0; font-weight: 600; transition: color .2s, transform .3s var(--ease); width: fit-content; }
.mega__col a:hover { color: var(--red); transform: translateX(4px); }
.mega__sub { font-size: 13px; color: #8b9198; margin: -4px 0 8px; }
.brand-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--red); display: inline-block; }
.mega__card { background: rgba(255,255,255,.06); border-radius: 14px; padding: 18px 20px; text-decoration: none; display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 18px; align-items: center; align-content: center; justify-content: center; transition: background .25s; }
.mega__card:hover { background: rgba(255,255,255,.12); }
.mega__card img { grid-row: 1 / 4; align-self: center; width: 96px; height: 120px; object-fit: contain; }
.mega__card strong { font-family: var(--f-display); font-size: 20px; font-weight: 700; letter-spacing: -.015em; margin-top: 4px; }
.mega__card span:last-child { font-size: 14px; color: #b4bac0; }
.mega:not([hidden]) .mega__in > * { animation: rise .5s var(--ease) both; }
.mega:not([hidden]) .mega__in > *:nth-child(2) { animation-delay: .04s; }
.mega:not([hidden]) .mega__in > *:nth-child(3) { animation-delay: .08s; }
.mega:not([hidden]) .mega__in > *:nth-child(4) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Mobilni izbornik */
.mnav { position: fixed; inset: 0; z-index: 29; background: var(--white); padding: calc(150px + env(safe-area-inset-top, 0px)) var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.mnav nav { display: grid; }
.mnav nav > a, .mnav summary { font-size: 30px; font-weight: 500; letter-spacing: -.02em; padding: 10px 0; text-decoration: none; border-bottom: 1px solid var(--steel-1); list-style: none; cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav details a { display: block; font-size: 18px; padding: 8px 0 8px 14px; text-decoration: none; color: var(--steel-6); }
.mnav__foot { display: grid; gap: 10px; margin-top: 32px; }
.mnav__foot .btn--ghost-dark { color: var(--ink); border-color: var(--steel-2); }

/* Hero (po zwarttechniek.com): video preko cijelog ekrana, centriran debeli naslov */
.hero { position: relative; height: calc(100vh - var(--bar-h)); height: calc(100svh - var(--bar-h)); min-height: 560px; background: #000; color: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: var(--head-h) var(--gutter) 0; isolation: isolate; }
.hero__reel { position: absolute; inset: 0; z-index: -2; }
.hero__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: contrast(1.12) saturate(.85) brightness(.85); will-change: transform, opacity; }
.hero__vid.is-front { opacity: 1; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 70% at 50% 50%, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%), linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 30%, transparent 70%, rgba(0,0,0,.45) 100%); }
.hero__copy { position: relative; max-width: 1100px; margin-bottom: 32px; text-align: center; display: grid; justify-items: center; gap: 28px; }
.hero__title { margin: 0; font-family: var(--f-display); font-size: calc(clamp(40px, 5.8vw, 88px) * var(--d-scale, 1)); line-height: 1; letter-spacing: calc(-.03em + var(--d-track, 0em)); font-weight: var(--d-w-hero, 800); font-variation-settings: "wdth" calc(112 * var(--wd, 1)); text-shadow: 0 6px 40px rgba(0,0,0,.35); text-wrap: balance;  text-transform: var(--d-case, none);}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn--glass { background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.btn--glass:hover { background: rgba(255,255,255,.3); }
.hero__play { position: absolute; left: var(--gutter); bottom: 24px; width: 44px; height: 44px; border-radius: 0; border: 0; background: rgba(255,255,255,.2); color: #fff; display: grid; place-items: center; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: background .2s; }
.hero__play:hover { background: rgba(255,255,255,.3); }
.hero__play svg { width: 16px; height: 16px; }
.hero__play .i-play { display: none; }
.hero__play[aria-pressed="false"] .i-play { display: block; } .hero__play[aria-pressed="false"] .i-pause { display: none; }

/* Ulazne animacije heroja (samo uz JS, inače je sve vidljivo) */
.js .hero__title .line > span { transform: translateY(105%); }
.js .hero__actions { opacity: 0; transform: translateY(14px); }
.is-loaded .hero__title .line > span { transform: none; transition: transform 1.1s var(--ease); }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.is-loaded .hero__actions { opacity: 1; transform: none; transition: opacity .9s .4s var(--ease), transform .9s .4s var(--ease); }

/* Uvod */

/* Sekcije */
.sec { padding-block: clamp(64px, 7vw, 104px); }
.sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 32px; }
.sec__head--big { margin-bottom: clamp(32px, 4vw, 56px); }
.sec__head .h2 { max-width: 22ch; }
.sec__aside { max-width: 38ch; margin: 0; color: var(--steel-6); }
.reveal { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(28px); }

/* Usluge / tabovi */
.usluge .h2 { max-width: 26ch; margin-inline: auto; }
.tabs { display: flex; justify-content: center; gap: 4px; width: fit-content; margin: 28px auto 32px; }
.tabs button { border: 1px solid transparent; background: none; padding: 9px 18px; border-radius: 0; font-weight: 600; font-size: 16px; letter-spacing: -.01em; color: var(--steel-4); transition: color .3s, border-color .3s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
/* Slider usluga, 1:1 kao referenca (Swiper): kartice u nizu, aktivna u sredini, bez kruga */
.usluge { overflow: hidden; }
.svc { --sw: min(648px, 76vw); --sh: calc(var(--sw) * .6); --gap: 24px; }
.svc__viewport { width: var(--sw); margin: 0 auto; }
.svc__track { display: flex; gap: var(--gap); will-change: transform; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.svc__track:active { cursor: grabbing; }
.svc__slide { position: relative; flex: none; width: var(--sw); height: var(--sh); border-radius: 6px; overflow: hidden; background: var(--paper); }
.svc__slide img { -webkit-user-drag: none; pointer-events: none; }

/* Kartice usluga: jedna fotografija preko cijele kartice, samo oznaka */
.svc__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.svc__slide.is-active .svc__photo { transform: none; }

/* Tekst ispod slajda */
.svc__copy { max-width: 620px; margin: 40px auto 0; padding-inline: var(--gutter); text-align: center; display: grid; justify-items: center; gap: 18px; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.svc__copy.is-out { opacity: 0; transform: translateY(8px); }
.svc__text { margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; letter-spacing: -.01em; font-weight: 500; text-wrap: balance; min-height: 3.6em; }
.svc__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.svc__links .link-arrow { border: 0; padding: 0; background: none; font-size: 15px; font-weight: 500; align-items: center; }
.svc__links .link-arrow svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.svc__links .link-arrow:hover svg { transform: translateX(4px); }
.svc__links .link-arrow:hover { color: var(--red); }

/* Partneri i brendovi: zid logotipa, vrijednosti preuzete s happyrobot.ai */
.lw { --lw-cream: #fff; --lw-ink: #736f6a; --lw-hover: #2e2e2e; --lw-line: rgba(184,174,164,.5); background: var(--lw-cream); }
.lw__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; background: var(--lw-line); box-shadow: 0 0 0 1px var(--lw-line); }
.lw__cell { position: relative; display: flex; aspect-ratio: 1; align-items: center; justify-content: center; overflow: hidden; padding: 0 12px; background-color: var(--lw-cream); transition: background-color .28s; text-decoration: none; }
.lw__cell:hover { background-color: var(--lw-hover); }
.lw__mark { position: relative; z-index: 1; display: block; height: 40px; width: 78%; max-width: 190px; background-color: var(--lw-ink); -webkit-mask: var(--lw-src) center / contain no-repeat; mask: var(--lw-src) center / contain no-repeat; -webkit-mask-size: var(--lw-fit, contain); mask-size: var(--lw-fit, contain); transition: background-color .28s; }
.lw__mark--text { -webkit-mask: none; mask: none; background: none; height: auto; width: auto; color: var(--lw-ink); font-family: var(--f-display); font-size: clamp(16px, 1.45vw, 21px); font-weight: 700; font-variation-settings: "wdth" calc(110 * var(--wd, 1)); letter-spacing: -.02em; transition: color .28s; }
.lw__cell:hover .lw__mark, .lw__cell--story .lw__mark, .lw__cell--story:hover .lw__mark { background-color: var(--lw-cream); }
.lw__cell:hover .lw__mark--text { background: none; color: var(--lw-cream); }
.lw__cell--story { --mx: 50%; --my: 50%; background-color: var(--lw-hover); }
.lw__cell--story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); pointer-events: none; }
.lw__blur { filter: blur(24px); transition: filter .45s cubic-bezier(.33, 0, .15, 1); }
.lw__cell--story:hover .lw__blur { filter: blur(3.5px); }
.lw__sharp { opacity: 0; -webkit-mask-image: radial-gradient(ellipse 42% 42% at var(--mx) var(--my), #000 0, #000 32%, transparent 72%); mask-image: radial-gradient(ellipse 42% 42% at var(--mx) var(--my), #000 0, #000 32%, transparent 72%); transition: opacity .3s; }
.lw__cell--story:hover .lw__sharp { opacity: 1; }
/* Uvod + partneri (tamna sekcija s pečatom i zidom logotipa) */
.lw.trust { --lw-cream: #16181b; --lw-ink: #8b9198; --lw-hover: #2e2e2e; --lw-line: rgba(255,255,255,.1); background: var(--ink); color: #fff; }
.trust__in { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: clamp(96px, 10vw, 150px) var(--gutter); }
.trust__top { max-width: none; } /* iskaz iste širine kao zid logotipa */
.trust__lead { margin: 0; font-family: var(--f-display); font-size: calc(clamp(26px, 3.1vw, 42px) * var(--d-scale, 1)); line-height: 1.2; letter-spacing: calc(-.02em + var(--d-track, 0em)); font-weight: 500; text-wrap: pretty; color: #fff; }
/* iskaz se „ispunjava” riječ po riječ dok se skrola */
.js .trust__lead .w { color: rgba(255,255,255,.16); transition: color .4s; }
.js .trust__lead .w.on { color: #fff; }
.trust .trust__grid { grid-template-columns: repeat(8, minmax(0, 1fr)); margin-top: 72px; }
.trust .lw__cell:hover .lw__mark:not(.lw__mark--text), .trust .lw__cell--story .lw__mark { background-color: #fff; }
.trust .lw__cell:hover .lw__mark--text { color: #fff; }
.trust__cta { flex-direction: column; gap: 10px; border: 0; color: #fff; font: inherit; cursor: pointer; }
.trust__cta .mono-label { color: inherit; }
.trust__cta svg { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.trust__cta:hover { background: var(--red); }
.trust__cta:hover svg { transform: translateX(4px); }
@media (max-width: 1023px) { .trust .trust__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 599px) { .trust .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .lw__cell { padding: 0 16px; } .lw__mark { height: 48px; } }
@media (min-width: 1024px) { .lw__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } .lw__cell--fill { display: none; } }
@media (prefers-reduced-motion: reduce) { .lw__cell, .lw__mark, .lw__blur, .lw__sharp { transition: none; } }

/* Kategorije (po referenci): zaglavlje, mreža 4×2 s crtama od 1px, kvadratne tamne pločice */
.kat { background: #FFFFFF; }
.kat__head { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 5.6vw, 80px) var(--gutter) 0; margin-bottom: clamp(40px, 3.9vw, 56px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px 40px; }
.kat__title { margin: 0; max-width: 18ch; font-family: var(--f-display); font-size: calc(clamp(29px, 3.2vw, 46px) * var(--d-scale, 1)); line-height: 1.02; letter-spacing: calc(-.025em + var(--d-track, 0em)); font-weight: var(--d-w-head, 600); font-variation-settings: "wdth" calc(104 * var(--wd, 1));  text-transform: var(--d-case, none);}
.kat__aside { margin: 0; max-width: 420px; font-size: 15.5px; line-height: 1.65; color: var(--steel-6); }
/* mreža uvučena na širinu sadržaja (prema Figmi: 4 kategorije u jednom redu, ćelije 328 × 359) */
.cats { list-style: none; max-width: var(--wrap); margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--steel-2); border-block: 1px solid var(--steel-2); }
.kat { padding-inline: var(--gutter); }
.kat .kat__head { padding-inline: 0; }
.cat { position: relative; display: block; aspect-ratio: 327 / 359; overflow: hidden; background: #141517; color: #f4f2ee; text-decoration: none; isolation: isolate; }
.cat__media { position: absolute; inset: 0; overflow: hidden; background: #141517; }
/* fotografija preko cijele kartice (kao happyrobot.ai), lagani zoom na hover */
.cat__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat:hover .cat__photo, .cat:focus-visible .cat__photo { transform: scale(1.045); }
.cat__grain { position: absolute; inset: 0; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); background-size: 140px 140px; mix-blend-mode: overlay; opacity: .16; }
.cat__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(18,16,14,.1) 40%, rgba(18,16,14,.9) 100%); transition: opacity .6s var(--ease); }
.cat__no { position: absolute; left: 18px; top: 18px; font-size: 10px; letter-spacing: .14em; color: rgba(255,255,255,.75); }
.cat__txt { position: absolute; left: 18px; right: 18px; bottom: 18px; }
.cat__name { display: block; font-family: var(--f-display); font-size: clamp(16px, 1.32vw, 19px); font-weight: 600; font-variation-settings: "wdth" calc(106 * var(--wd, 1)); letter-spacing: -.01em; line-height: 1.2; }
.cat__cap { display: grid; grid-template-rows: 1fr; }
.cat__cap > span { min-height: 0; overflow: hidden; }
.cat__capin { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: 10px; font-weight: 600; font-variation-settings: "wdth" calc(112 * var(--wl, 1)); letter-spacing: .08em; text-transform: uppercase; color: #a9adb2; }
.cat:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; border-radius: 0; }

/* Izdvojeni uređaji */
.proizvodi { background: var(--white); }
.rail-ctrl { display: flex; align-items: center; gap: 10px; }
.rail-progress { width: 120px; height: 2px; background: var(--steel-1); margin-right: 10px; position: relative; overflow: hidden; border-radius: 2px; }
.rail-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; background: var(--ink); transition: transform .2s; }
.round { width: 46px; height: 46px; border-radius: 0; border: 1px solid var(--steel-2); background: #fff; font-size: 18px; transition: background .25s, color .25s, border-color .25s; }
.round:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.round:disabled { opacity: .35; pointer-events: none; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 26vw, 340px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 24px; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag * { pointer-events: none; }
.prod { scroll-snap-align: start; border: 1px solid var(--steel-1); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; background: #fff; transition: border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease); }
.prod:hover { border-color: var(--steel-2); box-shadow: 0 24px 50px -28px rgba(14,15,16,.35); transform: translateY(-4px); }
.prod__img { position: relative; aspect-ratio: 1; background: var(--paper); }
.prod__img img { position: absolute; inset: 12% 13% 10%; width: 74%; height: 78%; object-fit: contain; transition: transform 1s var(--ease); }
.prod:hover .prod__img img { transform: scale(1.06); }
.prod__brand { position: absolute; top: 14px; left: 14px; background: #fff; padding: 4px 9px; border-radius: 999px; color: var(--red); font-size: 10.5px; }
.prod__body { padding: 18px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prod__body h3 { margin: 0; font-family: var(--f-display); font-size: 21px; letter-spacing: -.015em; font-weight: 700; font-variation-settings: "wdth" calc(104 * var(--wd, 1)); }
.prod__body p { margin: 0; font-size: 14px; color: var(--steel-6); }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.specs span { font-family: var(--f-mono); font-size: 11px; font-weight: 600; font-variation-settings: "wdth" calc(108 * var(--wl, 1)); padding: 3px 8px; border-radius: 4px; background: var(--paper); color: var(--steel-6); }
.prod__actions { margin-top: auto; padding-top: 8px; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.prod__more { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--steel-6); }
.prod__more:hover { color: var(--ink); }

/* FAQ */
.faq { background: #FFFFFF; }
.faq__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__side { display: grid; gap: 18px; justify-items: start; position: sticky; top: 110px; }
.faq__side p { margin: 0; color: var(--steel-6); max-width: 36ch; }
.acc { border-top: 1px solid var(--steel-2); }
.acc details { border-bottom: 1px solid var(--steel-2); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 4px; font-size: clamp(17px, 1.45vw, 19px); font-weight: 700; letter-spacing: -.01em; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { position: relative; width: 34px; height: 34px; flex: none; border-radius: 0; border: 1px solid var(--steel-2); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; left: 10px; right: 10px; top: 16px; height: 1.6px; background: currentColor; transition: transform .4s var(--ease); }
.acc summary i::after { transform: rotate(90deg); }
.acc details[open] summary i { background: var(--ink); border-color: var(--ink); color: #fff; transform: rotate(180deg); }
.acc details[open] summary i::after { transform: rotate(0); }
.acc summary:hover i { border-color: var(--ink); }
.acc details > div { overflow: hidden; }
.acc details p { margin: 0; padding: 0 60px 26px 4px; color: var(--steel-6); font-size: 17px; }

/* CTA */
.cta { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: clamp(96px, 12vw, 170px) var(--gutter); text-align: center; isolation: isolate; }
.cta__in { max-width: 1160px; margin: 0 auto; display: grid; gap: 34px; justify-items: center; }
.cta__title { margin: 0; font-family: var(--f-display); font-size: calc(clamp(32px, 4.1vw, 60px) * var(--d-scale, 1)); line-height: 1.02; letter-spacing: calc(-.03em + var(--d-track, 0em)); font-weight: var(--d-w-big, 800); font-variation-settings: "wdth" calc(106 * var(--wd, 1)); text-wrap: balance;  text-transform: var(--d-case, none);}
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Footer: logo | 3 stupca | poruka + pravne stranice, ispod traka */
.footer { background: #FFFFFF; color: var(--ink); border-top: 1px solid var(--steel-2); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr); max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); } /* sadržaj na 64 px kao ostale sekcije */
.footer__grid > * { border-left: 1px solid var(--steel-2); min-width: 0; }
.footer__grid > :first-child { border-left: 0; }
.footer__logo { display: grid; place-items: center start; padding: 48px 32px 48px 0; }
.footer__logo img { width: min(220px, 80%); height: auto; }
.footer__col { display: flex; flex-direction: column; gap: 12px; padding: 30px 28px 44px; font-size: 14px; }
.footer__col .mono-label, .footer__legal .mono-label { font-size: 10.5px; color: var(--steel-6); margin-bottom: 6px; }
.footer__col a, .footer__col span, .footer__link, .footer__legal a { width: fit-content; text-decoration: none; color: var(--ink); }
.footer__link { background: none; border: 0; padding: 0; font: inherit; text-align: left; color: var(--red) !important; font-weight: 600; }
.footer__col a:hover, .footer__legal a:hover, .footer__link:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.footer__muted { color: var(--steel-6) !important; }
.footer__side { display: grid; grid-template-rows: auto 1fr; }
.footer__claim { padding: 30px 0 32px 30px; border-bottom: 1px solid var(--steel-2); display: grid; gap: 8px; justify-items: start; }
.footer__claim strong, .footer__claim span { max-width: 34ch; }
.footer__dot { width: 6px; height: 6px; background: var(--red); border-radius: 1px; margin-bottom: 8px; }
.footer__claim strong { font-family: var(--f-display); font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.footer__claim span { font-size: 14px; color: var(--steel-6); }
.footer__legal { display: flex; flex-direction: column; gap: 12px; padding: 30px 0 44px 30px; font-size: 14px; }
.footer__legal a { color: var(--steel-6); }
.footer__bar { border-top: 1px solid var(--steel-2); max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: var(--steel-6); }
.footer__bar p { margin: 0; }
.footer__barlinks { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__barlinks a { color: var(--steel-6); text-decoration: none; }
.footer__barlinks a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }

/* Popup */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal__scrim { position: absolute; inset: 0; background: rgba(10,11,12,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .35s both; }
.modal__box { position: relative; width: min(620px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; border-radius: 22px; padding: clamp(24px, 4vw, 40px); animation: pop .55s var(--ease) both; box-shadow: 0 40px 120px -30px rgba(0,0,0,.6); }
.modal.is-closing .modal__scrim { animation: fade .25s reverse both; }
.modal.is-closing .modal__box { animation: pop .3s reverse both; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.modal__x { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 0; border: 1px solid var(--steel-1); background: #fff; font-size: 22px; line-height: 1; transition: transform .4s var(--ease), background .2s; }
.modal__x:hover { transform: rotate(90deg); background: var(--paper); }
.modal__title { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.08; letter-spacing: -.02em; font-weight: 700; font-variation-settings: "wdth" calc(104 * var(--wd, 1)); margin: 8px 0 22px; max-width: 18ch; }
.form .mono-label { color: var(--red); }
.form__product { display: flex; gap: 14px; align-items: center; background: var(--paper); border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; }
.form__product img { width: 54px; height: 54px; object-fit: contain; }
.form__product div { display: grid; }
.form__product .mono-label { color: var(--steel-4); font-size: 10.5px; }
.form__product strong { font-size: 17px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--steel-6); }
.field input, .field textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); padding: 12px 14px; border-radius: 10px; border: 1px solid var(--steel-2); background: #fff; transition: border-color .2s, box-shadow .2s; width: 100%; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14,15,16,.08); }
.field.bad input, .field.bad textarea { border-color: var(--red); box-shadow: 0 0 0 3px rgba(215,30,36,.12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--steel-6); margin: 6px 0 14px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex: none; }
.check.bad span { color: var(--red); }
.form__err { min-height: 1.4em; margin: 0 0 8px; color: var(--red); font-size: 14px; }
.btn.is-busy { pointer-events: none; opacity: .8; }
.done { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 20px 0 6px; }
.done svg { width: 72px; color: var(--red); }
.done svg path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: tick .7s .2s var(--ease) forwards; }
.done svg circle { stroke-dasharray: 190; stroke-dashoffset: 190; animation: tick .8s var(--ease) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.done p { color: var(--steel-6); margin: 0 0 18px; max-width: 40ch; }
.done .modal__title { margin: 10px auto 4px; }

/* Responsive */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__in { grid-template-columns: 1fr auto; }
  .header__actions .hbtn--round { display: none; }
  .banner__in { display: none; } .banner__mq { display: block; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__logo { grid-column: 1 / -1; border-bottom: 1px solid var(--steel-2); place-items: center start; padding: 32px 0; }
  .footer__grid > :nth-child(2) { border-left: 0; }
  .footer__side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--steel-2); grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .footer__claim { border-bottom: 0; border-right: 1px solid var(--steel-2); max-width: none; }
}
@media (max-width: 720px) {
  .header__actions .hbtn--pill { display: none; }
  .hero__actions .btn { width: 100%; }
  .svc { --sw: 84vw; --sh: calc(var(--sw) * .78); --gap: 12px; }
  .tabs button { padding: 8px 12px; font-size: 15px; }
    .faq__in { grid-template-columns: 1fr; }
  .faq__side { position: static; }
  .acc details p { padding-right: 4px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :nth-child(4) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--steel-2); }
  .footer__side { grid-template-columns: 1fr; }
  .footer__claim { border-right: 0; border-bottom: 1px solid var(--steel-2); }
  .footer__col { padding: 24px 20px 32px; }
  .footer__grid > :nth-child(2), .footer__grid > :nth-child(4) { padding-left: 0; }
  .rail-progress { display: none; }
  .banner { font-size: 13px; }
}
@media (max-width: 420px) {
  .cat__name { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
