/* =========================================================
   GEOTOPO d.o.o. — geodezija i arhitektura
   ========================================================= */

:root {
    --navy-900: #06122a;
    --navy-800: #081733;     /* tamne sekcije */
    --navy-700: #0c2148;
    --navy: #0f2d6b;         /* boja iz favicona */
    --blue: #2455b8;
    --lime: #c6f432;         /* akcent */
    --lime-600: #a9d61c;
    --ink: #0d1a33;
    --text: #3a465e;
    --muted: #6a768d;
    --line: #dde4ee;
    --paper: #f5f7fb;
    --bg: #fbfcfe;
    --ok: #1b9a5a;
    --err: #c8423b;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --head: "Space Grotesk", "Inter", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 24px;
    --shadow-sm: 0 2px 10px rgba(6,18,42,.06);
    --shadow: 0 16px 44px -16px rgba(6,18,42,.28);
    --shadow-lg: 0 34px 90px -28px rgba(6,18,42,.5);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16.5px/1.7 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--navy-900); }

h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.08; margin: 0 0 .55em; font-weight: 700; letter-spacing: -.025em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); letter-spacing: -.03em; }
h3 { font-size: 1.24rem; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--blue); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark h1 em, .dark h2 em { color: var(--lime); }
.dark { color: #c3cde0; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mono { font-family: var(--mono); letter-spacing: .02em; }

.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(1240px, 100% - 64px); } }

.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--lime); color: var(--navy-900); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- gumbi ---------- */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .65em; padding: .95em 1.5em; border-radius: 10px; border: 1.5px solid transparent; font: 600 .98rem/1 var(--head); white-space: nowrap; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s; }
.btn .i:last-child:not(:first-child) { transition: transform .35s var(--ease); }
.btn:hover .i:last-child:not(:first-child) { transform: translateX(4px); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-lime, .btn-lime:hover { background: var(--lime); color: var(--navy-900); }
.btn-lime { box-shadow: 0 10px 26px -12px rgba(198,244,50,.9); }
.btn-lime:hover { box-shadow: 0 16px 34px -12px rgba(198,244,50,1); background: #d4ff4a; }
.btn-navy, .btn-navy:hover { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); box-shadow: var(--shadow); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: .72em 1.1em; font-size: .9rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font: 600 .95rem var(--head); color: var(--blue); }
.dark .link-arrow { color: var(--lime); }
.link-arrow .i { transition: transform .35s var(--ease); }
.link-arrow:hover .i, a:hover .link-arrow .i { transform: translateX(5px); }

.eyebrow { display: inline-flex; align-items: center; gap: .7em; font: 600 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--lime); box-shadow: 0 0 0 1px rgba(0,0,0,.02); }
.dark .eyebrow { color: var(--lime); }

.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; background: var(--lime); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- zaglavlje ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: #fff; transition: transform .45s var(--ease), height .3s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8,23,51,0); transition: background .4s, box-shadow .4s; }
.site-header.scrolled::before, body:not(.has-hero) .site-header::before, .nav-open .site-header::before { background: rgba(8,23,51,.92); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.site-header.hidden { transform: translateY(-100%); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
body:not(.has-hero) main { padding-top: var(--header-h); }

.brand { display: inline-flex; flex-direction: column; gap: 6px; color: #fff; flex: none; }
.brand:hover { color: #fff; }
.brand .logo { width: 168px; height: auto; transition: transform .6s var(--ease); }
.brand:hover .logo { transform: translateX(3px); }
.brand-sub { font: 500 .66rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--lime); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav > ul > li > a, .sub-toggle { position: relative; display: inline-flex; align-items: center; gap: .35em; padding: .65em .85em; border: 0; background: none; font: 500 .97rem/1 var(--head); color: #dfe6f3; border-radius: 8px; transition: color .25s; }
.sub-toggle .i { width: 1em; transition: transform .3s var(--ease); }
.nav > ul > li > a::after, .sub-toggle::after { content: ""; position: absolute; left: .85em; right: .85em; bottom: 0; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.nav > ul > li > a:hover, .sub-toggle:hover, .nav > ul > li > a[aria-current], .sub-toggle[aria-current] { color: #fff; }
.nav > ul > li > a:hover::after, .nav > ul > li > a[aria-current]::after, .sub-toggle[aria-current]::after { transform: scaleX(1); }

.has-sub { position: relative; }
.sub { position: absolute; top: calc(100% + 12px); left: 50%; width: 340px; list-style: none; margin: 0; padding: 10px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s; }
.sub::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.has-sub:hover .sub, .has-sub.open .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-sub:hover .sub-toggle .i, .has-sub.open .sub-toggle .i { transform: rotate(180deg); }
.sub a { display: flex; gap: 14px; align-items: center; padding: 11px 12px; border-radius: 12px; color: var(--ink); transition: background .25s; }
.sub a .i { width: 42px; height: 42px; padding: 10px; border-radius: 10px; background: var(--paper); color: var(--navy); transition: background .3s, color .3s, transform .4s var(--ease); }
.sub a span { display: flex; flex-direction: column; line-height: 1.3; }
.sub a strong { font: 600 .98rem var(--head); }
.sub a small { color: var(--muted); font-size: .8rem; }
.sub a:hover, .sub a[aria-current] { background: var(--paper); }
.sub a:hover .i, .sub a[aria-current] .i { background: var(--navy); color: var(--lime); transform: rotate(-6deg); }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: rgba(255,255,255,.06); position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff; transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; right: 18px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
    :root { --header-h: 72px; }
    .brand .logo { width: 140px; }
    .nav-toggle { display: block; z-index: 2; }
    .nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 1; flex-direction: column; align-items: stretch; gap: 20px; padding: 20px 16px 40px; background: var(--navy-800); overflow-y: auto; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .55s var(--ease), visibility .55s; }
    .nav-open .nav { clip-path: inset(0 0 0 0); visibility: visible; }
    .nav-open { overflow: hidden; }
    .nav > ul { flex-direction: column; }
    .nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.08); opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .5s var(--ease); }
    .nav-open .nav > ul > li { opacity: 1; transform: none; }
    .nav-open .nav > ul > li:nth-child(2) { transition-delay: .04s; } .nav-open .nav > ul > li:nth-child(3) { transition-delay: .08s; }
    .nav-open .nav > ul > li:nth-child(4) { transition-delay: .12s; } .nav-open .nav > ul > li:nth-child(5) { transition-delay: .16s; }
    .nav-open .nav > ul > li:nth-child(6) { transition-delay: .2s; }
    .nav > ul > li > a, .sub-toggle { width: 100%; justify-content: space-between; font-size: 1.28rem; padding: .85em .3em; }
    .nav > ul > li > a::after, .sub-toggle::after { display: none; }
    .nav > ul > li > a[aria-current], .sub-toggle[aria-current] { color: var(--lime); }
    .sub, .has-sub:hover .sub, .has-sub:focus-within .sub { position: static; width: auto; box-shadow: none; padding: 0 0 12px; background: none; display: none; opacity: 1; visibility: visible; transform: none; }
    .sub::before { display: none; }
    .has-sub.open .sub { display: block; animation: fadeUp .45s var(--ease) both; }
    .has-sub:not(.open):hover .sub-toggle .i { transform: none; }
    .sub a { color: #fff; }
    .sub a small { color: #9fb0cf; }
    .sub a .i { background: rgba(255,255,255,.08); color: var(--lime); }
    .sub a:hover, .sub a[aria-current] { background: rgba(255,255,255,.06); }
    .nav-cta { padding: 1.1em; font-size: 1.05rem; }
}

/* ---------- izohipse (canvas) ---------- */
.contours { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .5; }

/* ---------- naslovni hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(640px, 100vh, 920px); min-height: clamp(640px, 100svh, 920px); display: flex; flex-direction: column; background: var(--navy-900); color: #c3cde0; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; transform: scale(1.08); animation: heroIn 2.4s var(--ease) forwards; }
@keyframes heroIn { to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,18,42,.96) 0%, rgba(6,18,42,.82) 36%, rgba(6,18,42,.25) 72%, rgba(6,18,42,.35) 100%), linear-gradient(0deg, rgba(6,18,42,.95) 0%, transparent 35%); }
.hero .contours { z-index: -1; opacity: .35; mix-blend-mode: screen; }
.hero-main { flex: 1; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 40px; position: relative; }
.hero-content { max-width: 700px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { color: var(--lime); }
.hero .tagline { font: 600 clamp(1.15rem, 2vw, 1.45rem)/1.3 var(--head); color: #fff; margin-bottom: .8em; }
.hero .lead { color: #c3cde0; margin-bottom: 2rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* nišan koji prati miš i koordinate */
.reticle { position: absolute; z-index: 1; left: 0; top: 0; width: 120px; height: 120px; margin: -60px 0 0 -60px; pointer-events: none; opacity: 0; transition: opacity .4s; color: var(--lime); }
.hero:hover .reticle { opacity: .9; }
.reticle svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.reticle .coords-live { position: absolute; left: 70px; top: 70px; white-space: nowrap; font: 500 .72rem var(--mono); color: #fff; background: rgba(6,18,42,.7); padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(198,244,50,.4); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-coords { position: absolute; right: clamp(16px, 5vw, 64px); top: calc(var(--header-h) + 40px); z-index: 1; font: 500 .85rem/1.6 var(--mono); color: #fff; text-align: right; border-right: 2px solid var(--lime); padding-right: 14px; }
.hero-coords small { display: block; color: #8fa0c2; font-size: .7rem; letter-spacing: .14em; }
@media (hover: none), (max-width: 900px) { .reticle { display: none; } }
@media (max-width: 760px) { .hero-coords { display: none; } }

.hero-strip { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.1); background: linear-gradient(0deg, rgba(6,18,42,.85), rgba(6,18,42,.4)); backdrop-filter: blur(6px); }
.hero-strip ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-strip li { padding: 22px 18px; }
.hero-strip li + li { border-left: 1px solid rgba(255,255,255,.08); }
.hero-strip a { display: flex; gap: 14px; align-items: center; color: #fff; }
.hero-strip .i { width: 38px; height: 38px; padding: 8px; border-radius: 10px; border: 1px solid rgba(198,244,50,.35); color: var(--lime); transition: background .3s, color .3s, transform .5s var(--ease); }
.hero-strip a:hover .i { background: var(--lime); color: var(--navy-900); transform: rotate(-8deg); }
.hero-strip strong { display: block; font: 600 1rem/1.2 var(--head); }
.hero-strip small { color: #9fb0cf; font-size: .82rem; }
@media (max-width: 900px) { .hero-strip ul { grid-template-columns: 1fr 1fr; } .hero-strip li:nth-child(3) { border-left: 0; } .hero-strip li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); } }
@media (max-width: 480px) { .hero-strip li { padding: 16px 10px; } .hero-strip .i { width: 32px; height: 32px; padding: 6px; } .hero-strip small { display: none; } }

.split-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.split-words .w > span { display: inline-block; transform: translateY(110%); animation: wordUp .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 200ms); }
@keyframes wordUp { to { transform: none; } }
.fade-in { opacity: 0; transform: translateY(18px); animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, .5s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- podstranice: hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-900); color: #c3cde0; padding: calc(var(--header-h) + clamp(50px, 7vw, 90px)) 0 clamp(50px, 7vw, 90px); }
.page-hero .hero-bg img { object-position: center; opacity: .9; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,18,42,.95) 0%, rgba(6,18,42,.78) 50%, rgba(6,18,42,.35) 100%); }
.page-hero .contours { z-index: -1; opacity: .3; mix-blend-mode: screen; }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: .3em; }
.page-hero h1 em { color: var(--lime); }
.page-hero .lead { color: #c9d3e6; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .55em; align-items: center; font: 500 .8rem var(--mono); letter-spacing: .04em; color: #8fa0c2; margin-bottom: 1.3rem; }
.crumbs a { color: #8fa0c2; }
.crumbs a:hover { color: var(--lime); }
.page-hero .hero-facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 2rem 0 0; padding: 0; list-style: none; }
.page-hero .hero-facts li { display: flex; gap: 12px; align-items: center; color: #fff; font-size: .92rem; line-height: 1.35; }
.page-hero .hero-facts .i { width: 34px; height: 34px; color: var(--lime); stroke-width: 1.6; }

/* ---------- sekcije ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-paper { background: var(--paper); }
.section-dark { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-800); }
.section-head { max-width: 740px; margin: 0 auto clamp(34px, 4.5vw, 56px); text-align: center; }
.section-head .lead { margin-inline: auto; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; flex-wrap: wrap; }
.section-head.row h2 { margin: 0; }
.section-head.row > div { max-width: 640px; }
.rule { height: 12px; margin: 0 0 1.4rem; width: 120px; background: repeating-linear-gradient(90deg, var(--lime) 0 2px, transparent 2px 12px); mask-image: linear-gradient(0deg, #000 40%, transparent 40%), linear-gradient(90deg,#000,#000); opacity: .9; }

/* ---------- kartice usluga s fotkom ---------- */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .svc { grid-template-columns: 1fr; } }
.svc-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--text); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.svc-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--paper); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-card:hover .svc-img img { transform: scale(1.08); }
.svc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,18,42,.45), transparent 50%); }
.svc-num { position: absolute; z-index: 1; left: 18px; bottom: 14px; font: 500 .78rem var(--mono); color: #fff; letter-spacing: .1em; }
.svc-icon { position: relative; z-index: 1; margin: -58px 0 8px auto; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--navy); color: var(--lime); box-shadow: var(--shadow); transition: transform .6s var(--ease), background .3s, color .3s; }
.svc-icon .i { width: 28px; height: 28px; stroke-width: 1.6; }
.svc-card:hover .svc-icon { transform: rotate(-10deg) scale(1.06); background: var(--lime); color: var(--navy-900); }
.svc-body { padding: 30px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { font-size: 1.35rem; margin-bottom: .4em; }
.svc-body p { font-size: .95rem; color: var(--muted); }
.svc-body .link-arrow { margin-top: auto; }

/* ---------- partner blok (tamni) s vremenskom crtom ---------- */
.partner-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; z-index: 1; }
@media (max-width: 900px) { .partner-grid { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: rgba(255,255,255,.1); }
.timeline::after { content: ""; position: absolute; left: 21px; top: 10px; width: 2px; height: calc(100% - 20px); background: var(--lime); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform 2s var(--ease); }
.timeline li { position: relative; padding: 0 0 26px 64px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot { position: absolute; left: 0; top: 0; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-700); border: 2px solid rgba(198,244,50,.5); color: var(--lime); }
.timeline .dot .i { width: 20px; height: 20px; }
.timeline time { display: block; font: 500 .8rem var(--mono); color: var(--lime); letter-spacing: .08em; margin-bottom: 2px; }
.timeline strong { display: block; font: 600 1.1rem var(--head); color: #fff; }
.timeline p { margin: 2px 0 0; font-size: .93rem; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 2rem; }
.fact { padding: 20px; border-radius: var(--r); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); transition: background .3s, transform .5s var(--ease); }
.fact:hover { background: rgba(255,255,255,.08); transform: translateY(-3px); }
.fact strong { display: block; font: 700 2.1rem/1 var(--head); color: var(--lime); letter-spacing: -.03em; }
.fact span { font-size: .88rem; color: #aebbd6; }
.fact .i { width: 28px; height: 28px; color: var(--lime); margin-bottom: 10px; }

/* ---------- projekti ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .proj-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .proj-grid { grid-template-columns: 1fr; } }
.proj { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.proj:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.proj-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper); }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.proj:hover .proj-img img { transform: scale(1.08); }
.proj-tag { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 6px; background: rgba(255,255,255,.95); font: 600 .72rem var(--head); color: var(--navy); letter-spacing: .02em; }
.proj-tag.build { background: var(--lime); color: var(--navy-900); }
.proj-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: 6px; align-items: center; padding: 5px 9px; border-radius: 6px; background: rgba(6,18,42,.75); color: #fff; font: 500 .72rem var(--mono); }
.proj-count .i { width: 14px; height: 14px; }
.proj-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.proj h3 { font-size: 1.05rem; margin-bottom: .35em; }
.proj p { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }
.proj-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: .78rem; color: var(--text); background: #fff; }
.chip .i { width: 14px; height: 14px; color: var(--blue); }
.proj.is-hidden { display: none; }
.proj.is-in { animation: popIn .6s var(--ease) both; }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.featured { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .featured { grid-template-columns: 1fr; } }
.slider { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy-900); aspect-ratio: 16/9; }
.slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease), transform 6s linear; }
.slider img.on { opacity: 1; transform: scale(1); }
.slider-btn { position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -23px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); transition: transform .3s var(--ease), background .3s; }
.slider-btn:hover { background: var(--lime); transform: scale(1.08); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; gap: 18px; align-items: center; padding: 16px 20px; background: linear-gradient(0deg, rgba(6,18,42,.9), transparent); color: #fff; font-size: .85rem; }
.slider-dots { display: flex; gap: 6px; margin-left: auto; }
.slider-dots button { width: 28px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: rgba(255,255,255,.35); transition: background .3s, width .4s var(--ease); }
.slider-dots button[aria-current="true"] { background: var(--lime); width: 44px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: .62em 1.1em; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; font: 600 .9rem var(--head); color: var(--text); transition: all .3s var(--ease); }
.filters button:hover { border-color: var(--navy); color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--navy-900); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(4,10,24,.95); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(92vw, 1500px); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); transform: scale(.96); opacity: 0; transition: transform .45s var(--ease), opacity .35s; margin-inline: auto; }
.lightbox.open img.loaded { transform: none; opacity: 1; }
.lightbox figcaption { text-align: center; color: #c3cde0; font-size: .9rem; margin-top: 12px; }
.lb-btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; transition: background .3s, color .3s, transform .3s var(--ease); }
.lb-btn:hover { background: var(--lime); color: var(--navy-900); transform: scale(1.08); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -26px; }
.lb-next { right: 18px; top: 50%; margin-top: -26px; }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 18px; margin: 0; } }

/* ---------- podijeljeni blok ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 76px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.img-frame { position: relative; }
.img-frame img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); position: relative; z-index: 1; }
.img-frame::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 2px solid var(--lime); border-radius: var(--r-lg); transition: transform .8s var(--ease); }
.img-frame:hover::before { transform: translate(8px, -8px); }
.img-frame .corner { position: absolute; z-index: 2; right: -12px; bottom: 24px; padding: 14px 18px; border-radius: 12px; background: var(--navy); color: #fff; box-shadow: var(--shadow); font: 500 .8rem/1.4 var(--mono); animation: float 7s ease-in-out infinite; }
.img-frame .corner strong { display: block; font: 700 1.5rem var(--head); color: var(--lime); }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 520px) { .img-frame .corner { right: 10px; bottom: -18px; } .img-frame::before { inset: -8px 8px 8px -8px; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 11px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .i { margin-top: 3px; width: 22px; height: 22px; padding: 4px; border-radius: 6px; background: var(--navy); color: var(--lime); stroke-width: 2.8; }
.dark .checklist .i { background: var(--lime); color: var(--navy-900); }

/* ---------- detalji usluge (lijevi izbornik + sadrzaj) ---------- */
.detail { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.detail-nav { position: sticky; top: calc(var(--header-h) + 24px); list-style: none; margin: 0; padding: 10px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.detail-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 10px; color: var(--ink); font: 500 .96rem var(--head); transition: background .25s, padding .3s var(--ease), color .25s; }
.detail-nav a .i { color: var(--blue); }
.detail-nav a:hover { background: var(--paper); padding-left: 16px; }
.detail-nav a.active { background: var(--navy); color: #fff; }
.detail-nav a.active .i { color: var(--lime); }
@media (max-width: 900px) { .detail-nav { position: static; display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; } .detail-nav li { flex: none; } .detail-nav a { white-space: nowrap; } }
.detail-item { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 32px 0; border-bottom: 1px dashed var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.detail-item:first-child { padding-top: 0; }
.detail-item:last-child { border: 0; }
.detail-item > .di { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: var(--paper); color: var(--navy); transition: background .4s, color .4s, transform .6s var(--ease); }
.detail-item:hover > .di { background: var(--navy); color: var(--lime); transform: rotate(-8deg); }
.detail-item > .di .i { width: 30px; height: 30px; stroke-width: 1.6; }
.detail-item h3 { font-size: 1.45rem; }
.detail-item .num { font: 500 .75rem var(--mono); color: var(--blue); letter-spacing: .1em; display: block; margin-bottom: 4px; }
@media (max-width: 520px) { .detail-item { grid-template-columns: 1fr; gap: 12px; } }
.req-box { padding: 18px 20px; border-radius: 12px; background: var(--paper); border-left: 4px solid var(--lime); margin-top: 1em; }
.req-box strong { color: var(--ink); }
.req-box ul { margin: .5em 0 0; padding-left: 1.2em; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: fl; position: relative; }
@media (max-width: 800px) { .flow { grid-template-columns: 1fr; gap: 14px; } }
.flow li { counter-increment: fl; position: relative; padding: 26px 24px; background: #fff; border: 1px solid var(--line); }
.flow li:first-child { border-radius: var(--r) 0 0 var(--r); }
.flow li:last-child { border-radius: 0 var(--r) var(--r) 0; }
@media (max-width: 800px) { .flow li, .flow li:first-child, .flow li:last-child { border-radius: var(--r); } }
.flow li + li { border-left: 0; }
@media (max-width: 800px) { .flow li + li { border-left: 1px solid var(--line); } }
.flow li::before { content: "0" counter(fl); font: 500 .8rem var(--mono); color: var(--blue); }
.flow h3 { margin: .4em 0 .35em; }
.flow p { font-size: .93rem; margin: 0; }
.flow li::after { content: ""; position: absolute; top: 50%; right: -9px; z-index: 1; width: 16px; height: 16px; background: #fff; border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); }
.flow li:last-child::after { display: none; }
@media (max-width: 800px) { .flow li::after { display: none; } }

/* ---------- instrumenti ---------- */
.why { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.1); }
@media (max-width: 1000px) { .why { grid-template-columns: 1fr 1fr; } }
.why li { list-style: none; padding: 24px 20px; border-right: 1px solid rgba(255,255,255,.08); }
.why li:last-child { border-right: 0; }
.why .i { width: 34px; height: 34px; color: var(--lime); margin-bottom: 12px; stroke-width: 1.5; }
.why strong { display: block; font: 600 1rem var(--head); color: #fff; margin-bottom: 4px; }
.why span { font-size: .86rem; color: #9fb0cf; }
.why { padding: 0; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tabs button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 600 .95rem var(--head); color: var(--ink); transition: all .3s var(--ease); }
.tabs button small { font: 500 .72rem var(--mono); color: var(--muted); }
.tabs button:hover { border-color: var(--navy); }
.tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: var(--shadow); }
.tabs button[aria-selected="true"] small { color: var(--lime); }
.tab-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: start; padding: clamp(24px, 4vw, 44px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tab-panel[hidden] { display: none; }
.tab-panel.in { animation: fadeUp .6s var(--ease) both; opacity: 0; transform: translateY(14px); }
@media (max-width: 900px) { .tab-panel { grid-template-columns: 1fr; } }
.product-visual { position: sticky; top: calc(var(--header-h) + 24px); display: grid; place-items: center; min-height: 380px; border-radius: var(--r); background: radial-gradient(circle at 50% 60%, #eef3fb 0%, #dbe5f4 60%, #cfdbef 100%); overflow: hidden; }
.product-visual img { max-height: 420px; width: auto; filter: drop-shadow(0 30px 30px rgba(6,18,42,.25)); animation: float 6s ease-in-out infinite; position: relative; z-index: 1; }
.product-visual .ring { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(15,45,107,.25); animation: spin 40s linear infinite; }
.product-visual .ring.r2 { width: 92%; border-style: solid; border-color: rgba(15,45,107,.1); animation-direction: reverse; animation-duration: 60s; }
.product-visual.wide img { max-height: none; width: 100%; animation: none; filter: none; }
@media (max-width: 900px) { .product-visual { position: relative; top: auto; min-height: 280px; } .product-visual img { max-height: 300px; } }
.product-head .kicker { font: 500 .78rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.product-head h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: .2em 0 .3em; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.specs li { padding: 6px 12px; border-radius: 8px; background: var(--navy); color: #fff; font: 500 .8rem var(--mono); }
.specs li b { color: var(--lime); font-weight: 500; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 1.4em; padding: 0; list-style: none; }
@media (max-width: 620px) { .feat { grid-template-columns: 1fr; } }
.feat li { padding: 16px 16px 14px; border-radius: 12px; background: var(--paper); border: 1px solid transparent; transition: border-color .3s, background .3s, transform .4s var(--ease); }
.feat li:hover { border-color: var(--line); background: #fff; transform: translateY(-2px); }
.feat strong { display: flex; gap: 8px; align-items: center; font: 600 .98rem var(--head); color: var(--ink); margin-bottom: 4px; }
.feat strong .i { color: var(--blue); }
.feat p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.phones { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.phones img { width: 150px; flex: none; border-radius: 12px; background: #f1f1f1; transition: transform .5s var(--ease); }
.phones img:hover { transform: translateY(-6px) rotate(-1.5deg); }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cat-grid { grid-template-columns: 1fr; } }
.cat { padding: 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s, border-color .3s; }
.cat:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.cat .ci { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--paper); color: var(--navy); margin-bottom: 16px; transition: background .3s, color .3s, transform .6s var(--ease); }
.cat:hover .ci { background: var(--navy); color: var(--lime); transform: rotate(-8deg); }
.cat .ci .i { width: 26px; height: 26px; stroke-width: 1.6; }
.cat h3 { font-size: 1.12rem; margin-bottom: .3em; }
.cat p { margin: 0; font-size: .9rem; color: var(--muted); }

/* rabljeni */
.used { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 900px) { .used { grid-template-columns: 1fr; } }
.used-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .5s, transform .5s var(--ease); }
.used-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.used-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; aspect-ratio: 16/10; background: var(--paper); }
.used-gallery a { overflow: hidden; }
.used-gallery a:first-child { grid-row: span 2; }
.used-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.used-gallery a:hover img { transform: scale(1.08); }
.used-body { padding: 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.used-body h3 { margin: 0; font-size: 1.5rem; }
.used-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.price { font: 700 1.9rem/1 var(--head); color: var(--navy); letter-spacing: -.02em; }
.price small { font: 500 .85rem var(--font); color: var(--muted); letter-spacing: 0; }
.badge-stock { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #e9f8d0; color: #3c5a00; font-size: .82rem; font-weight: 600; }
.badge-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6cae00; box-shadow: 0 0 0 0 rgba(108,174,0,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(108,174,0,0); } 100% { box-shadow: 0 0 0 0 rgba(108,174,0,0); } }
.used-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* ---------- lokacije i kontakt ---------- */
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .locations { grid-template-columns: 1fr; } }
.loc { position: relative; overflow: hidden; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s; }
.loc:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.loc-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.loc h3 { font-size: 1.5rem; margin: 0; }
.loc .loc-tag { font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.loc .pin { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--navy); color: var(--lime); flex: none; }
.loc ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.loc li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; }
.loc li .i { color: var(--blue); margin-top: 4px; }
.loc li a { color: var(--ink); font-weight: 500; }
.loc li a:hover { color: var(--blue); }
.loc .coord { position: absolute; right: 18px; bottom: 14px; font: 500 .7rem var(--mono); color: #b7c1d3; }

.map { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; background: var(--navy-800); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-load { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #c3cde0; }
.map-load .contours { opacity: .5; }
.map-load > div { position: relative; z-index: 1; }
.map-load .i { width: 54px; height: 54px; padding: 14px; margin: 0 auto 14px; border-radius: 50%; background: var(--lime); color: var(--navy-900); animation: float 5s ease-in-out infinite; }
.map-load strong { color: #fff; }

.form-card { position: relative; padding: clamp(26px, 4vw, 44px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 20px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }
.field { position: relative; }
.field input, .field textarea, .field select { width: 100%; padding: 25px 16px 9px; font: 500 1rem/1.4 var(--font); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; transition: border-color .25s, box-shadow .25s, background .25s; -webkit-appearance: none; appearance: none; }
.field select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230f2d6b' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field textarea { min-height: 140px; resize: vertical; }
.field label { position: absolute; left: 17px; top: 17px; color: var(--muted); pointer-events: none; transform-origin: 0 0; transition: transform .3s var(--ease), color .3s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(198,244,50,.35); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field select + label { transform: translateY(-10px) scale(.76); color: var(--blue); font-weight: 600; }
.req { color: var(--err); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 21px; height: 21px; margin: 1px 0 0; accent-color: var(--navy); cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; grid-column: 1 / -1; padding: 15px 18px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.form-status.ok { display: block; background: #e8f7ee; color: var(--ok); animation: popIn .5s var(--ease); }
.form-status.err { display: block; background: #fcecea; color: var(--err); animation: popIn .5s var(--ease); }
.form .btn[disabled] { opacity: .7; pointer-events: none; }
.form .btn .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(6,18,42,.25); border-top-color: var(--navy-900); animation: spin .8s linear infinite; }
.form .btn.loading .spinner { display: block; }
.form .btn.loading .i { display: none; }

.dept { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .dept { grid-template-columns: 1fr; } }
.dept a { display: flex; gap: 16px; padding: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); color: var(--text); transition: transform .5s var(--ease), box-shadow .5s, border-color .3s; }
.dept a:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.dept .ci { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: var(--paper); color: var(--navy); transition: background .3s, color .3s; }
.dept a:hover .ci { background: var(--navy); color: var(--lime); }
.dept strong { display: block; font: 600 1.08rem var(--head); color: var(--ink); }
.dept p { margin: 4px 0 8px; font-size: .88rem; color: var(--muted); }

/* ---------- prose (pravila privatnosti) ---------- */
.prose { max-width: 76ch; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); font-size: .92rem; }
.toc ol { margin: .5em 0 0; padding-left: 1.2em; }
.toc li { margin-bottom: .35em; }
.legal { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .toc { position: static; order: -1; } }

/* ---------- podnožje ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-900); color: #9fb0cf; font-size: .94rem; }
.site-footer .contours { opacity: .25; }
.footer-cta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(46px, 6vw, 76px) 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-cta h2 { color: #fff; margin: 0 0 .3em; font-size: clamp(1.8rem, 3.4vw, 2.7rem); max-width: 18em; }
.footer-cta h2 em { color: var(--lime); }
.footer-cta p { margin: 0; max-width: 56ch; }
.footer-cta .eyebrow { color: var(--lime); }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.1fr; gap: 40px; padding: clamp(40px, 6vw, 64px) 0 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin: 18px 0 0; max-width: 34ch; }
.site-footer h3 { color: #fff; font: 500 .78rem var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #b9c6de; }
.site-footer a:hover { color: var(--lime); }
.site-footer .btn-lime, .site-footer .btn-lime:hover { color: var(--navy-900); }
.footer-grid ul:not(.footer-contact) a { display: inline-block; transition: transform .3s var(--ease), color .2s; }
.footer-grid ul:not(.footer-contact) a:hover { transform: translateX(5px); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .i { color: var(--lime); margin-top: 4px; }
.footer-bottom { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 20px 0 26px; border-top: 1px solid rgba(255,255,255,.08); font-size: .84rem; color: #7485a6; }
.footer-bottom .coords { font-family: var(--mono); color: var(--lime); opacity: .7; }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: var(--lime); color: var(--navy-900); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(20px) scale(.8); transition: all .45s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--navy-900); transform: translateY(-3px); }

/* ---------- animacije pri skrolanju ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.from-left { transform: translateX(-40px); }
.js .reveal.from-right { transform: translateX(40px); }
.js .reveal.zoom { transform: scale(.94); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
    .split-words .w > span, .fade-in { transform: none; opacity: 1; }
    .reticle { display: none; }
}
.fact strong.sm { font-size: 1.45rem; line-height: 1.45; }
.hero-product { position: absolute; z-index: 0; right: clamp(-40px, 4vw, 90px); bottom: -40px; height: 118%; width: auto; max-width: none; filter: drop-shadow(0 40px 50px rgba(0,0,0,.55)); animation: float 7s ease-in-out infinite; opacity: .95; }
.page-hero:has(.hero-product) .wrap { position: relative; z-index: 1; }
.page-hero:has(.hero-product)::before { background: linear-gradient(90deg, rgba(6,18,42,.97) 0%, rgba(6,18,42,.85) 55%, rgba(6,18,42,.4) 100%); }
@media (max-width: 900px) { .hero-product { opacity: .25; right: -80px; } }
