/* ============================================================
   ČAVIĆ — style.css
   Paleta iz master prompta:
   #1b1b1b · #DE7D4D · #523426→#865438 · #2F2F2F · #888888
   Dvije teme: [data-theme="dark"] (default) i [data-theme="light"]
   ============================================================ */

/* ---------- TEMA: TAMNA (default) ---------- */
html[data-theme="dark"]{
  --bg:            #1b1b1b;
  --bg-alt:        #171717;
  --surface:       #2F2F2F;
  --surface-hover: #383838;
  --text:          #ffffff;
  --text-soft:     rgba(255,255,255,.78);
  --muted:         #888888;
  --line:          rgba(255,255,255,.13);
  --line-strong:   rgba(255,255,255,.24);
  --field:         #262626;
  --field-border:  rgba(255,255,255,.16);
  --logo-filter:   brightness(0) invert(1);
  --hero-scrim:    linear-gradient(180deg,rgba(27,27,27,.55) 0%,rgba(27,27,27,.25) 40%,rgba(27,27,27,.95) 100%);
  --btn-bg:        #ffffff;
  --btn-fg:        #1b1b1b;
  --btn-bg-hover:  #ece7e3;
  --shadow:        0 20px 60px rgba(0,0,0,.4);
  --marquee-fill: rgba(255,255,255,.09);
}

/* ---------- TEMA: SVIJETLA (default) ---------- */
:root,
[data-theme="light"]{
  --bg:            #F7F4F1;
  --bg-alt:        #F1ECE7;
  --surface:       #ffffff;
  --surface-hover: #FDFAF7;
  --text:          #1b1b1b;
  --text-soft:     rgba(27,27,27,.78);
  --muted:         #6E6862;
  --line:          rgba(27,27,27,.13);
  --line-strong:   rgba(27,27,27,.22);
  --field:         #ffffff;
  --field-border:  rgba(27,27,27,.18);
  --logo-filter:   none;
  --hero-scrim:    linear-gradient(180deg,rgba(20,16,13,.42) 0%,rgba(20,16,13,.18) 40%,rgba(20,16,13,.72) 100%);
  --btn-bg:        #1b1b1b;
  --btn-fg:        #ffffff;
  --btn-bg-hover:  #333030;
  --shadow:        0 18px 50px rgba(82,52,38,.10);
  --marquee-fill: rgba(82,52,38,.10);
}

/* ---------- KONSTANTE (iste u obje teme) ---------- */
:root{
  --accent:      #DE7D4D;
  --accent-deep: #C4653A;
  --brown-dark:  #523426;
  --brown-light: #865438;
  --pad-x:       20px;
  --pad-x-lg:    40px;
  --radius:      2px;
  --ease:        cubic-bezier(.25,1,.5,1);
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; scroll-padding-top:90px; }

body{
  background:var(--bg);
  color:var(--text);
  font-family:'Inter Tight',system-ui,-apple-system,"Segoe UI",sans-serif;
  font-weight:400; line-height:1.5;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  transition:background-color .35s var(--ease), color .35s var(--ease);
}

img{ display:block; max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }
strong{ font-weight:600; color:var(--text); }
ul{ list-style:none; }

.wrap{ width:100%; max-width:1728px; margin-inline:auto; padding-inline:var(--pad-x); }
@media(min-width:1024px){ .wrap{ padding-inline:var(--pad-x-lg); } }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.skip{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--accent); color:#1b1b1b; padding:12px 20px; font-weight:600;
}
.skip:focus{ left:12px; top:12px; }

:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }

/* ---------- IKONE ---------- */
.ico{ flex:none; }
.ico-xs{ width:14px; height:14px; }
.ico-sm{ width:18px; height:18px; }
.ico-md{ width:26px; height:26px; }
.ico-lg{ width:34px; height:34px; }

/* ---------- DUGMAD ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:15px 26px; border:none; border-radius:var(--radius);
  font-family:inherit; font-size:15px; font-weight:500; line-height:1;
  cursor:pointer; white-space:nowrap;
  transition:transform .25s var(--ease), background-color .25s var(--ease), opacity .2s;
}
.btn-solid{ background:var(--btn-bg); color:var(--btn-fg); }
.btn-solid:hover{ background:var(--btn-bg-hover); transform:translateY(-2px); }
.btn-ghost{ background:transparent; color:var(--text); border:1px solid var(--line-strong); }
.btn-ghost:hover{ border-color:var(--text); }
.btn-onbrown{ background:#fff; color:#523426; }
.btn-onbrown:hover{ background:#f3ece7; transform:translateY(-2px); }
.btn-block{ width:100%; }
/* Strelica se lagano pomjeri na hover — isto kao kod ostalih dugmadi */
.btn .ico{ transition:transform .25s var(--ease); }
.btn:hover .ico{ transform:translate(2px,-2px); }
.btn[disabled]{ opacity:.55; cursor:not-allowed; transform:none; }

/* ---------- TIPOGRAFIJA ---------- */
.h-lg{ font-size:clamp(34px,6vw,81px); line-height:1.04; font-weight:300; letter-spacing:-.022em; }
.h-md{ font-size:clamp(28px,4.4vw,60px); line-height:1.06; font-weight:300; letter-spacing:-.016em; }
.h-sm{ font-size:clamp(22px,2.6vw,34px); line-height:1.15; font-weight:400; letter-spacing:-.012em; }
.dim{ opacity:.5; }
.muted{ color:var(--muted); font-size:16px; line-height:1.68; }
.muted + .muted{ margin-top:16px; }
.small{ font-size:14px; }
.lead{ color:var(--muted); font-size:clamp(15px,1.4vw,19px); line-height:1.6; max-width:520px; }
.lead-wide{ max-width:780px; color:var(--text-soft); }
.micro{ font-size:11px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; color:var(--text-soft); }
.micro-dim{ color:var(--muted); }
.eyebrow{ display:block; font-size:18px; font-weight:400; color:var(--text); margin-bottom:16px; }
.eyebrow-onbrown{ color:rgba(255,255,255,.85); }
.rule{ height:1px; background:var(--line-strong); transform:scaleX(0); transform-origin:center; }
.rule.in{ transform:scaleX(1); transition:transform .8s ease-in-out; }

/* ---------- SEKCIJE ---------- */
.section{ padding:68px 0; }
@media(min-width:1024px){ .section{ padding:120px 0; } }
.section-head{ margin-bottom:48px; }
@media(min-width:1024px){
  .section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:60px; margin-bottom:72px; }
}
.section-split,.section-services{ border-top:1px solid var(--line); }
.section-split{ padding-bottom:44px; }
@media(min-width:1024px){ .section-split{ padding-bottom:64px; } }

/* ============================================================
   HEADER — bez bordera, samo blur
   ============================================================ */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:100;
  transition:background-color .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header.scrolled{
  background:color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter:blur(16px) saturate(1.1);
  -webkit-backdrop-filter:blur(16px) saturate(1.1);
}

/* Dok stoji preko tamne hero slike, zaglavlje je uvijek bijelo —
   bez obzira na temu. Čim se skrola, vraća se na boje teme. */
.site-header[data-over-hero]:not(.scrolled) .nav-link,
.site-header[data-over-hero]:not(.scrolled) .theme-toggle{ color:#fff; }
.site-header[data-over-hero]:not(.scrolled) .brand-logo{ filter:brightness(0) invert(1); }
.site-header[data-over-hero]:not(.scrolled) .theme-toggle{ border-color:rgba(255,255,255,.32); }
.site-header[data-over-hero]:not(.scrolled) .theme-toggle:hover{ border-color:#fff; color:#fff; }
.site-header[data-over-hero]:not(.scrolled) .burger span{ background:#fff; }
.site-header[data-over-hero]:not(.scrolled) .header-cta{
  background:rgba(255,255,255,.14); color:#fff;
  border:1px solid rgba(255,255,255,.4);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
}
.site-header[data-over-hero]:not(.scrolled) .header-cta:hover{ background:#fff; color:#1b1b1b; }

/* Kad je mobilni meni otvoren, podloga je uvijek u boji teme */
.site-header.menu-open{
  background:var(--bg);
  backdrop-filter:none; -webkit-backdrop-filter:none;
}
.site-header.menu-open .nav-link,
.site-header.menu-open .theme-toggle{ color:var(--text); }
.site-header.menu-open .brand-logo{ filter:var(--logo-filter); }
.site-header.menu-open .burger span{ background:var(--text); }
.site-header.menu-open .theme-toggle{ border-color:var(--line); }
@supports not (background: color-mix(in srgb, red 50%, blue)){
  [data-theme="dark"] .site-header.scrolled{ background:rgba(27,27,27,.86); }
  [data-theme="light"] .site-header.scrolled{ background:rgba(247,244,241,.88); }
}

.header-inner{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:16px var(--pad-x); max-width:1728px; margin-inline:auto;
}
@media(min-width:1024px){ .header-inner{ padding:20px var(--pad-x-lg); } }

.brand-logo{ height:36px; width:auto; filter:var(--logo-filter); transition:filter .35s var(--ease); }
@media(min-width:1024px){ .brand-logo{ height:44px; } }

.nav-desktop{ display:none; }
@media(min-width:1024px){ .nav-desktop{ display:flex; align-items:center; gap:40px; } }
.nav-link{
  display:inline-flex; align-items:center; gap:6px;
  background:none; border:none; cursor:pointer; font-family:inherit;
  font-size:12px; font-weight:600; letter-spacing:.09em; text-transform:uppercase;
  color:var(--text); opacity:.72; transition:opacity .25s; padding:8px 0;
}
.nav-link:hover,.nav-link[aria-current="page"]{ opacity:1; }

.nav-item{ position:relative; }

/* Otvara se odmah ispod stavke — bez praznine koju miš mora „preskočiti".
   Razmak pravi providni pojas unutar samog dropdowna (padding-top),
   pa hover ostaje neprekinut i sadržaj se ne pomjera. */
.dropdown{
  position:absolute; top:100%; left:-18px; width:340px;
  padding:14px 0 0;                       /* providni most preko praznine */
  opacity:0; visibility:hidden;
  transition:opacity .2s var(--ease), visibility .2s;
}
.dropdown-inner{
  padding:10px; background:var(--surface);
  border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown{ opacity:1; visibility:visible; }
.dropdown-item{ display:block; padding:12px 14px; border-radius:var(--radius); transition:background-color .2s; }
.dropdown-item:hover{ background:color-mix(in srgb, var(--accent) 12%, transparent); }
.dropdown-title{ display:block; font-size:15px; font-weight:500; margin-bottom:3px; }
.dropdown-item:hover .dropdown-title{ color:var(--accent); }
.dropdown-desc{ display:block; font-size:13px; color:var(--muted); line-height:1.45; }

.header-actions{ display:flex; align-items:center; gap:10px; }
.header-cta{ display:none; padding:12px 20px; font-size:14px; }
@media(min-width:1024px){ .header-cta{ display:inline-flex; } }

.theme-toggle{
  position:relative; width:38px; height:38px; flex:none;
  display:inline-flex; align-items:center; justify-content:center;
  background:transparent; border:1px solid var(--line); border-radius:var(--radius);
  color:var(--text); cursor:pointer; transition:border-color .25s, background-color .25s;
}
.theme-toggle:hover{ border-color:var(--accent); color:var(--accent); }
.theme-ico{ position:absolute; display:inline-flex; transition:opacity .3s, transform .3s var(--ease); }
[data-theme="dark"] .theme-ico-sun{ opacity:1; transform:rotate(0) scale(1); }
[data-theme="dark"] .theme-ico-moon{ opacity:0; transform:rotate(-90deg) scale(.6); }
[data-theme="light"] .theme-ico-sun{ opacity:0; transform:rotate(90deg) scale(.6); }
[data-theme="light"] .theme-ico-moon{ opacity:1; transform:rotate(0) scale(1); }

.burger{
  display:flex; flex-direction:column; justify-content:center; gap:6px;
  width:38px; height:38px; background:none; border:none; cursor:pointer; padding:0;
}
@media(min-width:1024px){ .burger{ display:none; } }
.burger span{
  display:block; width:22px; height:2px; background:var(--text); margin-inline:auto;
  transition:transform .3s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ transform:translateY(-4px) rotate(-45deg); }

.nav-mobile{
  display:none; flex-direction:column;
  padding:4px var(--pad-x) 28px;
  background:var(--bg);
  max-height:calc(100svh - 70px); overflow-y:auto;
}
.nav-mobile.open{ display:flex; }

/* Stavke prvog nivoa — link i dugme izgledaju identično */
.m-link{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  width:100%; padding:16px 0;
  font-family:inherit; font-size:17px; font-weight:500; text-align:left;
  color:var(--text); background:none; border:none;
  border-bottom:1px solid var(--line); cursor:pointer;
}
.m-toggle .ico{ color:var(--muted); transition:transform .3s var(--ease), color .25s; }
.m-toggle[aria-expanded="true"]{ color:var(--accent); }
.m-toggle[aria-expanded="true"] .ico{ transform:rotate(180deg); color:var(--accent); }

.m-group{ display:flex; flex-direction:column; }
.m-panel{ overflow:hidden; }
.m-panel[hidden]{ display:none; }

/* Podstavke — uvučene, sa linijom uz lijevu ivicu */
.m-sub{
  display:block; padding:14px 0 14px 18px;
  border-bottom:1px solid var(--line);
  border-left:2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  margin-left:2px;
}
.m-sub:last-child{ border-bottom:1px solid var(--line); }
.m-sub-t{ display:block; font-size:16px; font-weight:500; margin-bottom:3px; }
.m-sub-d{ display:block; font-size:13px; color:var(--muted); line-height:1.45; }
.m-sub:active .m-sub-t{ color:var(--accent); }

.nav-mobile .btn{ margin-top:22px; }

/* Otvaranje harmonike */
@media(prefers-reduced-motion:no-preference){
  .m-panel:not([hidden]){ animation:mSlide .3s var(--ease); }
  @keyframes mSlide{ from{ opacity:0; transform:translateY(-6px); } to{ opacity:1; transform:none; } }
}

/* ============================================================
   HERO (početna)
   ============================================================ */
.hero{
  position:relative; min-height:100svh;
  display:flex; flex-direction:column; justify-content:flex-end; overflow:hidden;
  background:var(--bg-alt);
}
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-media picture{ display:contents; }
.hero-media img{ width:100%; height:100%; object-fit:cover; object-position:center 20%; }
.hero-scrim{ position:absolute; inset:0; z-index:1; background:var(--hero-scrim); }
.hero-body{
  position:relative; z-index:2; padding:120px var(--pad-x) 26px;
  display:flex; flex-direction:column; gap:24px; color:#fff;
}
@media(min-width:1024px){ .hero-body{ padding:120px var(--pad-x-lg) 34px; gap:32px; } }
.hero-tags{ display:flex; justify-content:space-between; gap:20px; margin-top:auto; }
.tag{ font-size:10px; font-weight:500; letter-spacing:.09em; text-transform:uppercase; color:rgba(255,255,255,.9); }
.tag-right{ text-align:right; }
@media(min-width:1024px){ .tag{ font-size:12px; } }
.hero .rule{ background:rgba(255,255,255,.3); }
.hero-main{ display:flex; flex-direction:column; gap:20px; }
@media(min-width:1024px){ .hero-main{ flex-direction:row; align-items:flex-end; justify-content:space-between; gap:60px; } }
.hero-title{ font-size:clamp(38px,8.4vw,100px); line-height:1.02; font-weight:400; letter-spacing:-.026em; color:#fff; }
.hero-text{ font-size:14px; line-height:1.66; color:rgba(255,255,255,.78); max-width:420px; }
@media(min-width:1024px){ .hero-text{ font-size:16px; width:420px; flex:none; } }
.hero-foot{ display:flex; flex-direction:column; gap:8px; }
@media(min-width:640px){ .hero-foot{ flex-direction:row; align-items:center; justify-content:space-between; } }
.hero .micro{ color:rgba(255,255,255,.85); }
.hero .micro-dim{ color:rgba(255,255,255,.55); }
.scroll-hint{ display:inline-flex; align-items:center; gap:7px; }
.scroll-ico{ width:13px; height:13px; color:rgba(255,255,255,.55); animation:scrollBlink 1.8s var(--ease) infinite; }
@keyframes scrollBlink{
  0%,100%{ transform:translateY(0); opacity:.4; }
  50%{ transform:translateY(4px); opacity:1; }
}
@media(prefers-reduced-motion:reduce){ .scroll-ico{ animation:none; } }

/* ============================================================
   PAGE HERO (podstranice)
   ============================================================ */
.page-hero{ padding:130px 0 0; }
@media(min-width:1024px){ .page-hero{ padding:170px 0 0; } }
.page-hero-inner{ display:flex; flex-direction:column; }
.page-title{ font-size:clamp(36px,7vw,88px); line-height:1.02; font-weight:300; letter-spacing:-.025em; }

.page-hero.has-media{ position:relative; min-height:52vh; display:flex; align-items:flex-end; padding-bottom:44px; overflow:hidden; }
@media(min-width:1024px){ .page-hero.has-media{ min-height:60vh; padding-bottom:60px; } }
.page-hero-media{ position:absolute; inset:0; z-index:0; }
.page-hero-media picture{ display:contents; }
.page-hero-media img{ width:100%; height:100%; object-fit:cover; }
.page-hero-scrim{ position:absolute; inset:0; z-index:1; background:var(--hero-scrim); }
.page-hero.has-media .page-hero-inner{ position:relative; z-index:2; }
.page-hero.has-media .page-title,
.page-hero.has-media .eyebrow{ color:#fff; }
.page-hero.has-media .crumbs a,
.page-hero.has-media .crumbs span{ color:rgba(255,255,255,.8); }

.crumbs{ margin-bottom:22px; }
.crumbs ul{ display:flex; flex-wrap:wrap; gap:8px; font-size:13px; color:var(--muted); }
.crumbs li + li::before{ content:"/"; margin-right:8px; opacity:.5; }
.crumbs a:hover{ color:var(--accent); }

/* ============================================================
   KARTICE
   ============================================================ */
.cards-3,.cards-4{ display:grid; grid-template-columns:1fr; gap:16px; }
@media(min-width:768px){ .cards-3{ grid-template-columns:repeat(3,1fr); gap:20px; } .cards-4{ grid-template-columns:repeat(2,1fr); gap:20px; } }
@media(min-width:1280px){ .cards-4{ grid-template-columns:repeat(4,1fr); } }
.cards-4{ margin-top:48px; }

.card{
  position:relative; display:flex; flex-direction:column; gap:14px;
  padding:28px 24px 74px; background:var(--surface);
  border:1px solid transparent; border-radius:var(--radius); overflow:hidden;
  transition:border-color .3s var(--ease), transform .35s var(--ease), background-color .3s;
}
.card::after{
  content:''; position:absolute; inset:auto 0 0 0; height:2px; background:var(--accent);
  transform:scaleX(0); transform-origin:left; transition:transform .45s var(--ease);
}
.card:hover{ border-color:var(--line); transform:translateY(-6px); background:var(--surface-hover); }
.card:hover::after{ transform:scaleX(1); }
.card-num{ position:absolute; top:22px; right:24px; font-size:12px; letter-spacing:.1em; color:var(--muted); }
.card .ico-lg{ color:var(--accent); }
.card-title{ font-size:23px; font-weight:500; letter-spacing:-.01em; }
.card-desc{ font-size:15px; color:var(--muted); line-height:1.55; }
.card-arrow{
  position:absolute; left:24px; bottom:26px;
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border:1px solid var(--line); border-radius:var(--radius);
  transition:background-color .3s, color .3s, border-color .3s;
}
.card:hover .card-arrow{ background:var(--accent); border-color:var(--accent); color:#fff; }

/* ---------- SPLIT / RAZLOZI ---------- */
.split{ display:grid; grid-template-columns:1fr; gap:40px; }
@media(min-width:1024px){ .split{ grid-template-columns:4fr 8fr; gap:80px; } }
.split-left .muted{ max-width:330px; }
.split-right{ display:flex; flex-direction:column; }

/* ---------- RAZLOZI (Zašto izabrati nas) ---------- */
.razlozi{
  display:grid; grid-template-columns:1fr;
  gap:1px; background:var(--line);
  border-block:1px solid var(--line);
}
@media(min-width:700px){ .razlozi{ grid-template-columns:repeat(2,1fr); } }
@media(min-width:1200px){ .razlozi{ grid-template-columns:repeat(4,1fr); } }

.razlog{
  position:relative; background:var(--bg);
  padding:34px 28px 38px;
  display:flex; flex-direction:column; gap:14px;
  transition:background-color .3s var(--ease);
}
.razlog:hover{ background:var(--surface); }
.razlog-n{
  font-size:12px; font-weight:600; letter-spacing:.12em;
  color:var(--accent); opacity:.75;
}
.razlog .ico-lg{ color:var(--accent); margin-top:4px; transition:transform .4s var(--ease); }
.razlog:hover .ico-lg{ transform:translateY(-3px) scale(1.06); }
.razlog-t{ font-size:20px; font-weight:500; letter-spacing:-.01em; }
.razlog-d{ font-size:15px; color:var(--muted); line-height:1.6; }

/* ---------- BROJKE ---------- */
.brojke{
  display:grid; grid-template-columns:1fr; gap:36px;
  margin-top:48px;
}
@media(min-width:700px){ .brojke{ grid-template-columns:repeat(3,1fr); gap:40px; } }
.brojka{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:12px; }
.brojka-ico.lottie{
  width:58px; height:58px; max-width:none; margin-inline:0; aspect-ratio:auto;
  flex:none;
}
.brojka-txt{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:center; gap:0 4px; }
.brojka-n,.brojka-plus{
  font-size:clamp(44px,5.4vw,68px); font-weight:600;
  letter-spacing:-.035em; line-height:1; color:var(--accent);
  font-variant-numeric:tabular-nums;
}
.brojka-l{
  flex-basis:100%; margin-top:10px;
  font-size:15px; color:var(--muted); line-height:1.5;
}

/* ---------- FEATURE ---------- */
.feature{ display:grid; grid-template-columns:1fr; gap:36px; align-items:center; }
@media(min-width:1024px){ .feature{ grid-template-columns:5fr 7fr; gap:80px; } }
.feature-media{ overflow:hidden; border-radius:var(--radius); }
.feature-body{ display:flex; flex-direction:column; gap:20px; align-items:flex-start; }
.feature-body .muted{ max-width:580px; }
.feature-body .btn{ margin-top:6px; }

/* ---------- GRID USLUGA ---------- */
.grid-6,.grid-4,.grid-3{ display:grid; grid-template-columns:1fr; gap:12px 40px; }
@media(min-width:768px){ .grid-6,.grid-4{ grid-template-columns:repeat(2,1fr); } .grid-3{ grid-template-columns:repeat(3,1fr); } }
@media(min-width:1280px){ .grid-6{ grid-template-columns:repeat(3,1fr); } .grid-4{ grid-template-columns:repeat(4,1fr); } }

.svc{ padding-bottom:32px; }
.svc-line{ height:1px; background:var(--line); margin-bottom:10px; transform:scaleX(0); transform-origin:left; transition:transform .7s var(--ease); }
.svc.in .svc-line{ transform:scaleX(1); }
.svc .ico-md{ color:var(--accent); margin-bottom:14px; }
.svc-title{ font-size:21px; font-weight:500; margin-bottom:10px; letter-spacing:-.01em; }
.svc-desc{ font-size:15px; color:var(--muted); line-height:1.62; }

/* ---------- STATISTIKA ---------- */
.stat-row{ display:grid; grid-template-columns:1fr; gap:1px; margin-top:56px; background:var(--line); border-block:1px solid var(--line); }
@media(min-width:768px){ .stat-row{ grid-template-columns:repeat(3,1fr); } }
.stat{ background:var(--bg); padding:34px 26px; display:flex; flex-direction:column; gap:8px; }
.stat-num{ font-size:clamp(38px,5vw,60px); font-weight:600; letter-spacing:-.03em; color:var(--accent); line-height:1; }
.stat-lbl{ font-size:14px; color:var(--muted); max-width:22ch; }

/* ---------- TIMELINE ---------- */
.timeline{ display:flex; flex-direction:column; }
.tl-item{
  position:relative; display:grid; grid-template-columns:1fr; gap:6px;
  padding:24px 0 24px 28px;
}
@media(min-width:768px){ .tl-item{ grid-template-columns:120px 1fr; gap:28px; padding-left:32px; } }
.tl-item:first-child{ padding-top:2px; }
.tl-item:last-child{ padding-bottom:2px; }
.tl-item::before{
  content:''; position:absolute; left:0; top:22px; width:11px; height:11px;
  border-radius:50%; background:var(--bg); border:2px solid var(--accent);
}
.tl-item:first-child::before{ top:0; }
.tl-item:last-child::before{ background:var(--accent); }
.tl-item:not(:last-child)::after{
  content:''; position:absolute; left:5px; top:27px; bottom:-27px; width:1px;
  background:var(--line-strong);
}
.tl-item:first-child:not(:last-child)::after{ top:5px; bottom:-27px; }
.tl-year{ font-size:15px; font-weight:600; color:var(--accent); letter-spacing:.02em; }
.tl-text{ font-size:15px; color:var(--muted); line-height:1.65; }

/* ---------- KORACI ---------- */
.steps{ display:grid; grid-template-columns:1fr; gap:1px; background:var(--line); border:1px solid var(--line); }
@media(min-width:768px){ .steps{ grid-template-columns:repeat(2,1fr); } }
@media(min-width:1280px){ .steps{ grid-template-columns:repeat(5,1fr); } }
.step{ background:var(--bg); padding:28px 22px 32px; display:flex; flex-direction:column; gap:10px; }
.step-n{ font-size:13px; letter-spacing:.12em; color:var(--accent); font-weight:600; }
.step-t{ font-size:18px; font-weight:500; }
.step-d{ font-size:14px; color:var(--muted); line-height:1.6; }

/* ---------- CALLOUT / BOX / NOTICE ---------- */
.callout{ margin-top:48px; padding:30px 28px; background:var(--surface); border-left:2px solid var(--accent); border-radius:var(--radius); }
.callout-tight{ margin-top:20px; padding:24px 24px; }
.callout-tight .muted{ font-size:16px; line-height:1.6; }
.callout-t{ font-size:19px; font-weight:500; margin-bottom:14px; }
.callout-list li{ position:relative; padding-left:22px; font-size:15px; color:var(--muted); line-height:1.6; margin-bottom:8px; }
.callout-list li::before{ content:''; position:absolute; left:0; top:.65em; width:8px; height:1px; background:var(--accent); }

.two-col{ display:grid; grid-template-columns:1fr; gap:20px; margin-top:24px; }
@media(min-width:900px){ .two-col{ grid-template-columns:repeat(2,1fr); } }
.box{ padding:28px 26px; background:var(--surface); border-radius:var(--radius); }
.box-t{ font-size:17px; font-weight:500; margin-bottom:10px; color:var(--accent); }
.box-d{ font-size:15px; color:var(--muted); line-height:1.7; }

.notice{
  padding:18px 22px; margin-bottom:32px; border-radius:var(--radius);
  background:color-mix(in srgb, var(--accent) 14%, transparent);
  border-left:2px solid var(--accent);
  font-size:14px; color:var(--text-soft); line-height:1.6;
}
.notice a{ color:var(--accent); text-decoration:underline; text-underline-offset:3px; }

.prose-intro{ max-width:820px; }
.prose{ max-width:760px; }
.prose h2{ font-size:24px; font-weight:500; margin:34px 0 12px; }
.prose h2:first-of-type{ margin-top:0; }
.prose p{ font-size:16px; color:var(--muted); line-height:1.7; }

/* ---------- TABELA PDV STOPA ---------- */
.table-wrap{ margin-top:16px; overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius); }
.rates{ width:100%; border-collapse:collapse; font-size:15px; }
.rates thead th{
  text-align:left; padding:16px 22px; font-weight:600; font-size:12px;
  letter-spacing:.09em; text-transform:uppercase; color:var(--muted);
  border-bottom:1px solid var(--line); background:var(--surface);
}
.rates td{ padding:14px 22px; border-bottom:1px solid var(--line); }
.rates tbody tr:last-child td{ border-bottom:none; }
.rates tbody tr:hover{ background:var(--surface); }
.rates .num{ text-align:right; font-variant-numeric:tabular-nums; font-weight:500; color:var(--accent); }
.table-note{ margin-top:14px; font-size:13px; color:var(--muted); }

/* ---------- CTA TRAKA ---------- */
.cta-strip{ border-top:1px solid var(--line); padding:56px 0; }
.cta-inner{ display:flex; flex-direction:column; gap:20px; align-items:flex-start; }
@media(min-width:768px){ .cta-inner{ flex-direction:row; align-items:center; justify-content:space-between; gap:40px; } }

/* ---------- SMEĐI BANNER ---------- */
.band{ position:relative; overflow:hidden; padding:84px 0;
  background:linear-gradient(180deg,var(--brown-dark) 0%,var(--brown-light) 100%); color:#fff; }
@media(min-width:1024px){ .band{ padding:132px 0; } }
.band-noise{
  position:absolute; inset:0; pointer-events:none; opacity:.15; mix-blend-mode:overlay;
  background-image:radial-gradient(rgba(255,255,255,.5) .6px,transparent .6px); background-size:4px 4px;
}
.band-inner{ position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; text-align:center; gap:20px; }
.band-title{ font-size:clamp(30px,5.2vw,64px); line-height:1.05; font-weight:300; letter-spacing:-.02em; max-width:16ch; color:#fff; }
.band-title em{ font-style:normal; font-weight:600; }
.band-text{ max-width:640px; font-size:16px; line-height:1.7; color:rgba(255,255,255,.84); }
.band .btn{ margin-top:8px; }

/* ---------- MARQUEE ---------- */
.marquee-wrap{ position:relative; overflow:hidden; padding:40px 0; border-top:1px solid var(--line); }
.marquee{ display:flex; width:max-content; animation:slide 34s linear infinite; }
.marquee span{
  /* Puna slova sa niskom prozirnošću. Konture (-webkit-text-stroke) su
     uklonjene jer se obris crta po sredini ivice slova, pa se kod susjednih
     slova preklapa — najvidljivije na D, A i R. */
  font-size:clamp(36px,8vw,112px);
  font-weight:700;
  letter-spacing:-.01em;
  line-height:1.1;
  color:var(--marquee-fill);
  padding-right:56px; white-space:nowrap;
}
@keyframes slide{ to{ transform:translateX(-50%); } }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-grid{ display:grid; grid-template-columns:1fr; gap:48px; }
@media(min-width:1024px){ .contact-grid{ grid-template-columns:4fr 7fr; gap:80px; } }

.info-list{ margin:28px 0 34px; display:flex; flex-direction:column; }
.info-list li{ display:flex; gap:16px; padding:20px 0; border-top:1px solid var(--line); }
.info-list li:last-child{ border-bottom:1px solid var(--line); }
.info-list .ico-sm{ color:var(--accent); margin-top:3px; }
.info-l{ display:block; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:5px; }
.info-v{ display:block; font-size:16px; line-height:1.5; }
a.info-v:hover{ color:var(--accent); }
.info-legal{ display:flex; flex-direction:column; gap:5px; }
.info-legal span{ font-size:13px; color:var(--muted); }

.contact-form-wrap{ background:var(--surface); padding:32px 26px 34px; border-radius:var(--radius); }
@media(min-width:768px){ .contact-form-wrap{ padding:44px 40px 48px; } }
.form-sub{ margin:8px 0 28px; }

.form{ display:flex; flex-direction:column; gap:18px; }
.field{ display:flex; flex-direction:column; gap:7px; }
.field-row{ display:grid; grid-template-columns:1fr; gap:18px; }
@media(min-width:640px){ .field-row{ grid-template-columns:1fr 1fr; } }
.field label{ font-size:14px; font-weight:500; }
.req{ color:var(--accent); }
.field input,.field select,.field textarea{
  width:100%; padding:13px 15px; font-family:inherit; font-size:15px;
  color:var(--text); background:var(--field);
  border:1px solid var(--field-border); border-radius:var(--radius);
  transition:border-color .25s, box-shadow .25s;
}
.field textarea{ resize:vertical; min-height:120px; }
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none; border-color:var(--accent);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field input[aria-invalid="true"],.field select[aria-invalid="true"],.field textarea[aria-invalid="true"]{ border-color:#e05c5c; }
.err{ font-size:13px; color:#e05c5c; }
.err:empty{ display:none; }

.field-check .check{ display:flex; gap:11px; align-items:flex-start; font-weight:400; font-size:14px; color:var(--muted); line-height:1.55; }
.check input{ width:17px; height:17px; margin-top:2px; flex:none; accent-color:var(--accent); }
.check a{ color:var(--accent); text-decoration:underline; text-underline-offset:3px; }

.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

#submitBtn{ margin-top:6px; }
.spinner{
  display:none; width:16px; height:16px; border-radius:50%;
  border:2px solid color-mix(in srgb, var(--btn-fg) 30%, transparent);
  border-top-color:var(--btn-fg); animation:spin .7s linear infinite;
}
#submitBtn.loading .spinner{ display:inline-block; }
#submitBtn.loading .btn-label{ opacity:.7; }
@keyframes spin{ to{ transform:rotate(360deg); } }

.form-status{ font-size:14px; line-height:1.55; margin-top:4px; }
.form-status:empty{ display:none; }
.form-status.ok{ color:#4caf7d; }
.form-status.bad{ color:#e05c5c; }

.map-strip{ position:relative; border-top:1px solid var(--line); }
.map-strip img{ width:100%; height:auto; object-fit:cover; }
.map-strip iframe{ width:100%; aspect-ratio:4/3; display:block; border:0; filter:grayscale(.15) contrast(1.02); }
@media(min-width:600px){ .map-strip iframe{ aspect-ratio:16/9; } }
@media(min-width:1024px){ .map-strip iframe{ aspect-ratio:1920/520; } }
.map-strip-link{
  position:absolute; right:16px; bottom:16px; z-index:1;
  display:inline-flex; align-items:center; gap:8px;
  padding:9px 16px; font-size:13px; font-weight:500;
  background:var(--surface); color:var(--text); border-radius:var(--radius);
  box-shadow:0 8px 24px rgba(0,0,0,.18);
  transition:background-color .2s var(--ease), color .2s var(--ease);
}
.map-strip-link:hover{ background:var(--accent); color:#fff; }
@media(min-width:768px){ .map-strip-link{ right:32px; bottom:28px; padding:11px 18px; font-size:14px; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{ padding:68px 0 30px; border-top:1px solid var(--line); }
@media(min-width:1024px){ .footer{ padding:104px 0 38px; } }
.footer-grid{ display:grid; grid-template-columns:1fr; gap:40px; }
@media(min-width:1024px){ .footer-grid{ grid-template-columns:6fr 3fr 3fr; gap:40px; } }
.footer-logo{ height:52px; margin-bottom:24px; }
@media(min-width:768px){ .footer-logo{ height:62px; } }
.footer-tag{ font-size:clamp(20px,2.4vw,30px); font-weight:300; line-height:1.25; letter-spacing:-.015em; margin-bottom:28px; }
.footer-legal{ display:flex; flex-direction:column; gap:5px; }
.footer-legal span{ font-size:13px; color:var(--muted); }
.footer-col{ display:flex; flex-direction:column; }
@media(min-width:1024px){ .footer-col{ border-left:1px solid var(--line); padding-left:32px; } }
.footer-h{ font-size:24px; font-weight:400; margin-bottom:14px; letter-spacing:-.01em; }
.footer-list li{ margin-bottom:9px; }
.footer-list a{ font-size:15px; color:var(--muted); transition:color .25s; }
.footer-list a:hover{ color:var(--accent); }
.footer-link{ display:inline-flex; align-items:center; gap:10px; margin-top:auto; padding-top:36px; font-size:17px; transition:color .25s; }
.footer-link:hover{ color:var(--accent); }
.footer-bottom{
  display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center;
  margin-top:52px; padding-top:24px; border-top:1px solid var(--line);
  font-size:13px; color:var(--muted);
}
.footer-privacy{ text-underline-offset:4px; }
.footer-privacy:hover{ color:var(--text); text-decoration:underline; }

/* ============================================================
   ANIMACIJE
   ============================================================ */
[data-anim]{ opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
[data-anim].in{ opacity:1; transform:none; }

@media(prefers-reduced-motion:reduce){
  [data-anim],[data-anim].in{ opacity:1; transform:none; transition:none; }
  .rule,.svc-line{ transform:scaleX(1); }
  .marquee{ animation:none; }
  html{ scroll-behavior:auto; }
  *{ transition-duration:.01ms !important; }
}


/* ============================================================
   MEDIJSKI ELEMENTI U SADRŽAJU
   ============================================================ */
.section-media{ padding-bottom:8px; }
.media-band{ margin:0; }
.media-band img{
  width:100%; height:auto; border-radius:var(--radius);
  aspect-ratio:16/7; object-fit:cover;
}
.media-band-sm{ margin-top:48px; }
.media-band-sm img{ aspect-ratio:8/3; }
.media-band figcaption{
  margin-top:14px; font-size:14px; color:var(--muted);
  padding-left:14px; border-left:2px solid var(--accent); line-height:1.55;
}

.feature-rev .feature-media{ order:2; }
@media(max-width:1023px){ .feature-rev .feature-media{ order:0; } }

.mini-steps{ display:flex; flex-direction:column; }
.mini-step{ display:flex; gap:18px; padding:20px 0; border-top:1px solid var(--line); }
.mini-step:last-child{ border-bottom:1px solid var(--line); }
.ms-n{ font-size:13px; font-weight:600; letter-spacing:.1em; color:var(--accent); padding-top:3px; flex:none; }
.ms-t{ font-size:18px; font-weight:500; margin-bottom:5px; }
.ms-d{ font-size:15px; color:var(--muted); line-height:1.6; }

/* ============================================================
   INTERAKTIVNA TABELA / FILTERI (PDV stope i FAQ)
   ============================================================ */
.rates-bar{
  display:flex; flex-direction:column; gap:16px;
  margin:40px 0 20px;
}
@media(min-width:900px){
  .rates-bar{ flex-direction:row; align-items:center; justify-content:space-between; gap:24px; }
}

.rates-search{ position:relative; flex:1; max-width:420px; }
.rates-search .ico{
  position:absolute; left:15px; top:50%; transform:translateY(-50%);
  color:var(--muted); pointer-events:none;
}
.rates-search input{
  width:100%; padding:14px 16px 14px 44px;
  font-family:inherit; font-size:15px; color:var(--text);
  background:var(--field); border:1px solid var(--field-border);
  border-radius:var(--radius); transition:border-color .25s, box-shadow .25s;
}
.rates-search input:focus{
  outline:none; border-color:var(--accent);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.rates-search input::-webkit-search-cancel-button{ cursor:pointer; }

.rates-filters{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  padding:11px 20px; font-family:inherit; font-size:14px; font-weight:500;
  color:var(--muted); background:transparent;
  border:1px solid var(--line); border-radius:var(--radius);
  cursor:pointer; transition:all .22s var(--ease); white-space:nowrap;
}
.chip:hover{ border-color:var(--accent); color:var(--accent); }
.chip.is-on{ background:var(--accent); border-color:var(--accent); color:#fff; }

/* --- tabela --- */
.rates thead th{ padding:0; }
.th-sort{
  display:flex; align-items:center; gap:7px; width:100%;
  padding:16px 22px; font-family:inherit; font-size:12px; font-weight:600;
  letter-spacing:.09em; text-transform:uppercase; color:var(--muted);
  background:none; border:none; cursor:pointer; text-align:left;
  transition:color .2s;
}
.th-sort:hover{ color:var(--accent); }
.sort-ico{
  width:0; height:0; border-left:4px solid transparent; border-right:4px solid transparent;
  border-bottom:5px solid currentColor; opacity:.3; transition:opacity .2s, transform .2s;
}
.th-sort[data-dir="desc"] .sort-ico{ transform:rotate(180deg); }
.th-sort[data-dir] .sort-ico{ opacity:1; }
.th-sort[data-dir]{ color:var(--accent); }

.rate-row td{ transition:background-color .18s; vertical-align:middle; }
.rate-row.is-hidden{ display:none; }

/* Flex ide na unutrašnji omotač, ne na <td>. Kad je sam <td> flex kontejner,
   gubi se ćelijsko poravnanje i redovi počnu odstupati po visini. */
.rates{ table-layout:fixed; }
.rates th:nth-child(1),.rates td:nth-child(1){ width:auto; }
.rates th:nth-child(2),.rates td:nth-child(2){ width:150px; }
.rates th:nth-child(3),.rates td:nth-child(3){ width:150px; }
.rates th:nth-child(4),.rates td:nth-child(4){ width:110px; }
.rates td{ height:60px; }

.drz-wrap{ display:flex; align-items:center; gap:14px; min-width:0; }
.flag-img{
  width:30px; height:20px; flex:none; object-fit:cover;
  border-radius:2px;
  box-shadow:0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent);
  background:var(--line);   /* boja dok se slika učitava */
}
.drz-ime{ font-weight:500; overflow:hidden; text-overflow:ellipsis; }
.rate-pill{
  display:inline-block; padding:5px 12px;
  font-weight:600; font-variant-numeric:tabular-nums;
  color:var(--accent);
  background:color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius:2px;
}
.c-red,.c-eu{ color:var(--muted); font-size:14px; }
.c-eu{ white-space:nowrap; }
.rates-count{ margin-top:16px; font-size:14px; color:var(--muted); }
.rates-empty{ padding:44px 22px; text-align:center; color:var(--muted); }

@media(max-width:700px){
  .rates thead{ display:none; }
  .rates tbody tr{ display:grid; grid-template-columns:1fr auto; gap:6px 14px; padding:16px 18px; border-bottom:1px solid var(--line); }
  .rates td{ padding:0; border:none; }
  .c-drz{ grid-column:1; }
  .drz-wrap{ gap:11px; }
  .c-std{ grid-column:2; grid-row:1; text-align:right; }
  .c-red::before{ content:"Snižene: "; color:var(--muted); }
  .c-red{ grid-column:1; font-size:13px; }
  .c-eu{ grid-column:2; text-align:right; font-size:13px; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list{ border-top:1px solid var(--line); }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-item.is-hidden{ display:none; }
.faq-q{ margin:0; font-size:inherit; font-weight:inherit; }
.faq-btn{
  display:flex; align-items:flex-start; justify-content:space-between; gap:20px;
  width:100%; padding:22px 0; text-align:left;
  font-family:inherit; font-size:clamp(16px,1.7vw,19px); font-weight:500;
  color:var(--text); background:none; border:none; cursor:pointer;
  transition:color .2s;
}
.faq-btn:hover{ color:var(--accent); }
.faq-ico{ color:var(--accent); flex:none; margin-top:4px; transition:transform .3s var(--ease); }
.faq-btn[aria-expanded="true"]{ color:var(--accent); }
.faq-btn[aria-expanded="true"] .faq-ico{ transform:rotate(45deg); }
.faq-a{ padding:0 48px 24px 0; }
.faq-a[hidden]{ display:none; }
.faq-a p{ font-size:16px; color:var(--muted); line-height:1.72; max-width:70ch; }
@media(prefers-reduced-motion:no-preference){
  .faq-a:not([hidden]){ animation:faqIn .28s var(--ease); }
  @keyframes faqIn{ from{ opacity:0; transform:translateY(-6px); } to{ opacity:1; transform:none; } }
}

/* ---------- KONTAKT U PODNOŽJU ---------- */
.footer-contact{ display:flex; flex-direction:column; gap:16px; margin-bottom:8px; }
.footer-contact li{ display:flex; flex-direction:column; gap:3px; }
.fc-l{ font-size:11px; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); }
.fc-v{ font-size:16px; line-height:1.45; }
a.fc-v{ transition:color .2s; }
a.fc-v:hover{ color:var(--accent); }
.chip.is-dim{ opacity:.45; }

/* Napomena u prigušenom tonu — za pravne ograde, ne za upozorenja */
.notice-muted{
  background:var(--surface);
  border-left-color:var(--line-strong);
  color:var(--muted);
  margin-top:28px;
}
.notice-muted strong{ color:var(--text); }

/* ============================================================
   SVG ANIMACIJE
   Vlastite, bez vanjskih biblioteka. Pokreću se kad element uđe
   u vidno polje (klasu .in dodaje main.js), a poštuju i
   prefers-reduced-motion — pri isključenim animacijama prikazuju
   se u završnom stanju.
   ============================================================ */
.anim{ width:100%; height:auto; overflow:visible; }

/* Bez podloge — animacije stoje direktno na pozadini stranice */
.feature-anim{
  display:flex; align-items:center; justify-content:center;
  padding:20px 0;
}
.feature-anim .anim{ max-width:330px; }

.anim-stage{
  display:flex; justify-content:center;
  margin:48px 0 12px;
}
.anim-stage .anim{ max-width:440px; }

.anim-inline{ flex:none; width:132px; }
@media(max-width:1023px){ .anim-inline{ display:none; } }

/* ---------- 1. KNJIGE ---------- */
.anim-knjige .ak-stranica{ fill:none; stroke:var(--line-strong); stroke-width:2; }
.anim-knjige .ak-hrbat{ stroke:var(--accent); stroke-width:2.5; stroke-linecap:round; }
.anim-knjige .ak-red{ fill:var(--muted); opacity:.7; }
.anim-knjige .ak-krug{ fill:var(--accent); opacity:0; }
.anim-knjige .ak-kvaka{
  fill:none; stroke:#fff; stroke-width:3; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:26; stroke-dashoffset:26;
}
.in .anim-knjige .ak-red{ animation:redPisi .5s var(--ease) forwards; animation-delay:var(--d); }
.in .anim-knjige .ak-krug{ animation:krugUlaz .45s var(--ease) .95s forwards; }
.in .anim-knjige .ak-kvaka{ animation:crtaj .4s var(--ease) 1.25s forwards; }
@keyframes redPisi{ to{ width:calc(var(--w) * 1px); } }
@keyframes krugUlaz{ from{ opacity:0; transform:scale(.4); } to{ opacity:1; transform:scale(1); } }
@keyframes crtaj{ to{ stroke-dashoffset:0; } }
.anim-knjige .ak-krug,.anim-knjige .ak-kvaka{ transform-origin:132px 34px; }

/* ---------- 2. GRAFIKON ---------- */
.anim-grafikon .ag-osa{ stroke:var(--line-strong); stroke-width:2; stroke-linecap:round; }
.anim-grafikon .ag-stupac{ fill:var(--accent); opacity:.28; }
.anim-grafikon .ag-linija{
  fill:none; stroke:var(--accent); stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:120; stroke-dashoffset:120;
}
.anim-grafikon .ag-tacka{ fill:var(--accent); opacity:0; }
.anim-grafikon .ag-strelica{
  fill:none; stroke:var(--accent); stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round;
  opacity:0;
}
.in .anim-grafikon .ag-stupac{ animation:stupacRast .6s var(--ease) forwards; animation-delay:var(--d); }
.in .anim-grafikon .ag-linija{ animation:crtaj .9s var(--ease) .75s forwards; }
.in .anim-grafikon .ag-tacka{ animation:tackaUlaz .32s var(--ease) forwards; animation-delay:var(--d); }
.in .anim-grafikon .ag-strelica{ animation:blagoUlaz .4s var(--ease) 1.5s forwards; }
@keyframes stupacRast{ to{ height:calc(var(--h) * 1px); y:calc(100px - var(--h) * 1px); } }
@keyframes tackaUlaz{ from{ opacity:0; r:0; } to{ opacity:1; r:3.5; } }
@keyframes blagoUlaz{ from{ opacity:0; transform:translate(-5px,5px); } to{ opacity:1; transform:none; } }

/* Rezerva za pregledače bez animacije SVG atributa (height/y) */
@supports not (height: calc(1px * 2)){
  .in .anim-grafikon .ag-stupac{ opacity:.28; }
}

/* ---------- 3. POVRAT ---------- */
.anim-povrat .ap-putanja{
  fill:none; stroke:var(--line-strong); stroke-width:2;
  stroke-dasharray:5 7; stroke-linecap:round;
}
.anim-povrat .ap-strelica{
  fill:none; stroke:var(--accent); stroke-width:2.5;
  stroke-linecap:round; stroke-linejoin:round; opacity:0;
}
.anim-povrat .ap-novcic-o{
  fill:var(--accent);
  filter:drop-shadow(0 3px 8px color-mix(in srgb, var(--accent) 45%, transparent));
}
.anim-povrat .ap-novcic-t{
  fill:#fff; font-size:11px; font-weight:700; text-anchor:middle;
  font-family:'Inter Tight',sans-serif; letter-spacing:.04em;
}
.anim-povrat .ap-novcic{
  offset-path:path("M42 84C42 24 218 24 218 84");
  offset-distance:100%; offset-rotate:0deg; opacity:0;
}
.anim-povrat .ap-okvir{ fill:none; }
.anim-povrat .ap-okvir{ stroke:color-mix(in srgb, var(--text) 16%, transparent); stroke-width:1; }
/* Zastave se ne skaliraju mutno — slika je 320px široka za prikaz od 52px */
.anim-povrat image{ image-rendering:auto; }
.anim-povrat .ap-oznaka{
  fill:var(--muted); font-size:13px; font-weight:600; text-anchor:middle;
  font-family:'Inter Tight',sans-serif; letter-spacing:.02em;
}
.anim-povrat .ap-drzava-ba .ap-oznaka{ fill:var(--text); }
.anim-povrat .ap-drzava{ transform-origin:center; }

.in .anim-povrat .ap-novcic{ animation:novcicPut 3s var(--ease) .5s infinite; }
.in .anim-povrat .ap-strelica{ animation:blagoUlaz .4s var(--ease) 1.6s forwards; }
/* BiH zastava blago pulsira kad novčić stigne */
.in .anim-povrat .ap-drzava-ba{ animation:primi 3s var(--ease) .5s infinite; }

@keyframes novcicPut{
  0%   { offset-distance:100%; opacity:0; }
  10%  { opacity:1; }
  78%  { opacity:1; }
  88%  { offset-distance:0%; opacity:1; }
  100% { offset-distance:0%; opacity:0; }
}
@keyframes primi{
  0%,80%  { transform:scale(1); }
  88%     { transform:scale(1.07); }
  96%,100%{ transform:scale(1); }
}

/* Ako offset-path nije podržan, novčić stoji na vrhu luka */
@supports not (offset-path: path("M0 0")){
  .anim-povrat .ap-novcic{ opacity:1; transform:translate(130px,46px); }
  .in .anim-povrat .ap-novcic{ animation:none; }
}

/* ---------- 4. ŠTIT ---------- */
.anim-stit .as-stit{ fill:none; stroke:var(--accent); stroke-width:2.5; stroke-linejoin:round; }
.anim-stit .as-kvaka{
  fill:none; stroke:var(--accent); stroke-width:3; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:44; stroke-dashoffset:44;
}
.anim-stit .as-talas{ fill:none; stroke:var(--accent); stroke-width:1.5; opacity:0; transform-origin:62px 64px; }
.in .anim-stit .as-kvaka{ animation:crtaj .55s var(--ease) .5s forwards; }
.in .anim-stit .as-talas{ animation:talas 3s var(--ease) infinite; }
.in .anim-stit .as-talas-2{ animation-delay:1.5s; }
@keyframes talas{
  0%   { opacity:.5; transform:scale(.85); }
  70%  { opacity:0;  transform:scale(1.35); }
  100% { opacity:0;  transform:scale(1.35); }
}

/* ---------- ISKLJUČENE ANIMACIJE ---------- */
@media(prefers-reduced-motion:reduce){
  .anim *{ animation:none !important; }
  .anim-knjige .ak-red{ width:40px; }
  .anim-knjige .ak-krug{ opacity:1; }
  .anim-knjige .ak-kvaka,.anim-stit .as-kvaka,.anim-grafikon .ag-linija{ stroke-dashoffset:0; }
  .anim-grafikon .ag-stupac{ height:44px; y:56px; }
  .anim-grafikon .ag-tacka,.anim-grafikon .ag-strelica,
  .anim-povrat .ap-strelica,.anim-povrat .ap-novcic{ opacity:1; }
  .anim-povrat .ap-novcic{ transform:translate(130px,46px); }
}

/* ============================================================
   MJESTO ZA LOTTIE (opcionalno — vidi README)
   <div class="lottie" data-lottie="/assets/lottie/naziv.json"></div>
   Biblioteka se učitava samo ako na stranici postoji ovakav element.
   ============================================================ */
.lottie{ width:100%; max-width:360px; margin-inline:auto; aspect-ratio:1; }

/* ---------- 5. KOVERTA (kontakt) ---------- */
.anim-side{ margin:8px 0 30px; max-width:280px; }
.anim-koverta .ak2-tijelo,.anim-koverta .ak2-preklop{
  fill:none; stroke:var(--accent); stroke-width:2.5; stroke-linejoin:round;
}
.anim-koverta .ak2-list{ fill:var(--bg); stroke:var(--line-strong); stroke-width:2; }
.anim-koverta .ak2-tekst{ stroke:var(--muted); stroke-width:2.5; stroke-linecap:round; opacity:.6; }
.anim-koverta .ak2-krug{ fill:var(--accent); opacity:0; transform-origin:134px 34px; }
.anim-koverta .ak2-kvaka{
  fill:none; stroke:#fff; stroke-width:2.8; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:24; stroke-dashoffset:24;
}
.anim-koverta .ak2-list,.anim-koverta .ak2-tekst{ transform-origin:84px 60px; }
.in .anim-koverta .ak2-list{ animation:listGore 1s var(--ease) .3s both; }
.in .anim-koverta .ak2-tekst{ animation:listGore 1s var(--ease) .3s both; }
.in .anim-koverta .ak2-krug{ animation:krugUlaz .4s var(--ease) 1.1s forwards; }
.in .anim-koverta .ak2-kvaka{ animation:crtaj .35s var(--ease) 1.4s forwards; }
@keyframes listGore{
  0%   { transform:translateY(30px) scale(.94); opacity:0; }
  60%  { transform:translateY(-4px) scale(1);   opacity:1; }
  100% { transform:translateY(0)    scale(1);   opacity:1; }
}

/* ---------- MIKRO-ANIMACIJE NA KARTICAMA ---------- */
/* Ikona se blago podigne i pojača na prelazak mišem */
.card .ico-lg{ transition:transform .4s var(--ease), color .3s; }
.card:hover .ico-lg{ transform:translateY(-4px) scale(1.08); }

/* Ikone u listi usluga dobiju suptilan skok kad se pojave */
.svc.in .ico-md{ animation:ikonaUlaz .5s var(--ease) .15s both; }
@keyframes ikonaUlaz{
  0%   { opacity:0; transform:translateY(8px) scale(.85); }
  70%  { transform:translateY(-2px) scale(1.04); }
  100% { opacity:1; transform:none; }
}

/* Podvlačenje stavki u meniju */
.nav-link{ position:relative; }
.nav-link::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:1.5px;
  background:var(--accent); transform:scaleX(0); transform-origin:left;
  transition:transform .3s var(--ease);
}
.nav-link:hover::after,.nav-link[aria-current="page"]::after{ transform:scaleX(1); }

/* Traka napretka pri skrolovanju */
.progress{
  position:fixed; top:0; left:0; height:2px; z-index:120;
  background:var(--accent); width:0; transition:width .1s linear;
  pointer-events:none;
}

@media(prefers-reduced-motion:reduce){
  .card:hover .ico-lg,.svc.in .ico-md{ animation:none; transform:none; }
  .anim-koverta .ak2-list,.anim-koverta .ak2-tekst{ opacity:1; transform:none; }
  .anim-koverta .ak2-krug{ opacity:1; }
  .anim-koverta .ak2-kvaka{ stroke-dashoffset:0; }
  .progress{ display:none; }
}

/* ============================================================
   LICENCE I ZAHVALE
   ============================================================ */
.lic-item{
  padding:24px 0 26px;
  border-top:1px solid var(--line);
}
.lic-item:first-of-type{ border-top:none; }
.lic-t{ font-size:19px; font-weight:500; margin-bottom:8px; }
.lic-d{ font-size:15px; color:var(--muted); line-height:1.65; margin-bottom:10px; }
.lic-note{
  font-size:13px; color:var(--muted); line-height:1.6;
  padding:14px 16px; margin:12px 0;
  background:var(--surface); border-left:2px solid var(--line-strong);
  border-radius:var(--radius);
}
.lic-l{
  display:inline-block; font-size:14px; color:var(--accent);
  text-underline-offset:3px;
}
.lic-l:hover{ text-decoration:underline; }

.prose-list{ margin:12px 0 18px; }
.prose-list li{
  position:relative; padding-left:22px; margin-bottom:10px;
  font-size:16px; color:var(--muted); line-height:1.68;
}
.prose-list li::before{
  content:''; position:absolute; left:0; top:.7em;
  width:8px; height:1px; background:var(--accent);
}
.prose a{ color:var(--accent); text-underline-offset:3px; }
.prose a:hover{ text-decoration:underline; }

/* ---------- KOLAČIĆI (obavještenje) ---------- */
.cookie-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:80;
  background:var(--surface); border-top:1px solid var(--line-strong);
  box-shadow:0 -10px 30px rgba(0,0,0,.12);
  padding:18px var(--pad-x);
  transform:translateY(100%); opacity:0;
  transition:transform .45s var(--ease), opacity .45s var(--ease);
}
.cookie-bar.in{ transform:translateY(0); opacity:1; }
.cookie-bar-inner{
  max-width:1200px; margin-inline:auto;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px 24px;
}
.cookie-bar-text{ font-size:14px; color:var(--muted); line-height:1.6; max-width:640px; }
.cookie-bar-text a{ color:var(--accent); text-underline-offset:3px; }
.cookie-bar-text a:hover{ text-decoration:underline; }
.cookie-bar-btn{ flex:none; padding:11px 22px; font-size:14px; }
@media(prefers-reduced-motion:reduce){ .cookie-bar{ transition:none; } }

.footer-links-inline{ display:flex; flex-wrap:wrap; gap:6px 18px; }
