:root {
  /* ---------- povrsine ---------- */
  --paper: #0e0f12; /* osnovna pozadina stranice */
  --dark: #070809; /* tamne trake (footer, CTA) */
  --dark-2: #050506;
  --surface: #17191e; /* kartice, header */
  --surface-2: #1c1f25; /* sekundarne plohe, inputi */

  /* ---------- tekst ---------- */
  --ink: #f3f5f7; /* naslovi */
  --ink-soft: #c4c9d1; /* tekst */
  --muted: #9298a3; /* sekundarni tekst */
  --muted-2: #666c75;
  --copper: #8a919c; /* eyebrow / mono labeli */

  /* ---------- brand ---------- */
  --brand: #ff5b66;
  --brand-2: #ff7d86;
  --brand-deep: #e8404b;
  --brand-glow: rgba(255, 91, 102, 0.24);

  /* ---------- linije ---------- */
  --line-d: rgba(255, 255, 255, 0.045);
  --line-d2: rgba(255, 255, 255, 0.09);
  --line-d3: rgba(255, 255, 255, 0.16);

  /* ---------- status ---------- */
  --ok: #4ade80;
  --err: #ff5b66;

  /* ---------- oblik ---------- */
  --r: 14px;
  --maxw: 1200px;

  /* ---------- tipografija ---------- */
  --ds: "Space Grotesk", sans-serif; /* display / naslovi */
  --bd: "IBM Plex Sans", sans-serif; /* body */
  --mn: "IBM Plex Mono", monospace; /* mono labeli */

  /* ---------- legacy aliasi (stari nazivi -> novi sustav) ---------- */
  --text_blue: var(--ink-soft);
  --text_red: var(--brand);
  --blue_bcg: var(--surface-2);
  --gray_bcg: var(--surface);
  --white: #ffffff;
  --brown: var(--brand);
}

html {
  /* rezerviraj mjesto za scrollbar umjesto overflow-y:scroll na <body>
       (CMS addons/css/basic.css) - inace sticky header ne radi */
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  padding: 0;
  height: auto;
  overflow-x: clip;
  overflow-y: visible;
  font-family: var(--bd);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}
.slicknav_menu {
  display: none;
}
.wrapper {
  margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ds);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}
a {
  font-family: var(--bd);
  font-weight: 500;
}
.wrapper > header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(14, 15, 18, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
/* stanje nakon skrolanja - klasu dodaje inline skripta u predlosku */
body.scrolled .wrapper > header {
  background: rgba(14, 15, 18, 0.94);
  border-bottom-color: var(--line-d2);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}
.wrapper > header article {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  box-sizing: border-box;
  max-width: none;
  width: 100%;
  height: 80px;
  margin: 0;
  padding: 0 16px;
  transition: height 0.35s;
}
body.scrolled .wrapper > header article {
  height: 66px;
}
.wrapper > header figure {
  margin: 0;
  flex: 0 0 auto;
}
.wrapper > header img {
  max-height: 58px;
  max-width: 200px;
  width: auto;
  transition: max-height 0.35s;
}
body.scrolled .wrapper > header img {
  max-height: 46px;
}
.lang_box {
  order: 3;
  margin: 0;
  flex: 0 0 auto;
}
.lang_box dl {
  margin: 0;
}
.lang_box dd {
  margin: 0;
}
.lang_box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}
.lang_box li {
  margin: 0;
}
.lang_box a {
  text-decoration: none;
  color: var(--muted);
  border-bottom: 0;
  padding: 0 5px;
  font-family: var(--mn);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: 0.25s;
  text-transform: uppercase;
}
.lang_box ul #dash:nth-of-type(1) {
  display: none;
}
.lang_box #dash {
  color: var(--muted-2);
}
.lang_box a:hover {
  color: var(--brand);
  cursor: pointer;
}
nav {
  margin-left: 20px;
}
/* glavni izbornik gura sadrzaj desno; jezici idu skroz na kraj */
.wrapper > header nav {
  margin-left: auto;
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}
nav li {
  margin: 0 10px;
}
nav a {
  text-decoration: none;
  color: var(--muted);
  text-transform: uppercase;
  border-bottom: 0;
  font-family: var(--mn);
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: color 0.25s;
}
nav a:hover {
  color: var(--brand);
}
/* <header> koje ispisuju CMS moduli (npr. .main_services_content > article > header)
   nije site header - drzi ga u normalnom toku */
main :not(.wrapper) > header,
.main_services_content header,
.services_content header,
.references_content header,
article > header {
  position: static;
  width: auto;
  max-width: none;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: auto;
}

/* ===== PADAJUCI PODIZBORNIK U GLAVNOJ NAVIGACIJI =====
   CMS ispisuje <ul class="submenu"> (tip izbornika 4) ili <ul class="sub-links"> (tip 5),
   pa su pokrivena oba naziva. Vrijedi samo za desktop traku - slicknav na
   mobitelu klonira izbornik izvan <header> pa ga ova pravila ne dohvacaju. */
.wrapper > header nav li {
  position: relative;
}
/* nevidljivi most preko razmaka: hover ne propada na putu do panela */
.wrapper > header nav li:has(> .submenu)::before,
.wrapper > header nav li:has(> .sub-links)::before {
  content: "";
  position: absolute;
  top: 100%;
  left: -26px;
  width: 330px;
  height: 32px;
}
/* strelica uz stavku koja ima podizbornik */
.wrapper > header nav li:has(> .submenu) > a::after,
.wrapper > header nav li:has(> .sub-links) > a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: -3px 0 0 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
  transition: transform 0.25s, opacity 0.25s;
  vertical-align: middle;
}
.wrapper > header nav li:hover > a::after {
  transform: rotate(225deg);
  margin-top: 2px;
  opacity: 1;
}
.wrapper > header nav li:hover > a {
  color: var(--brand);
}

/* panel */
.wrapper > header nav .submenu,
.wrapper > header nav .sub-links {
  position: absolute;
  top: calc(100% + 30px);
  left: -26px;
  z-index: 60;
  display: block;
  min-width: 330px;
  margin: 0;
  padding: 26px 0 0;
  list-style: none;
  background: rgba(20, 22, 27, 0.98);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line-d2);
  border-radius: 16px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease,
    visibility 0s linear 0.22s;
}
.wrapper > header nav li:hover > .submenu,
.wrapper > header nav li:hover > .sub-links,
.wrapper > header nav li:focus-within > .submenu,
.wrapper > header nav li:focus-within > .sub-links {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

/* stavke u panelu */
.wrapper > header nav .submenu li,
.wrapper > header nav .sub-links li {
  display: block;
  margin: 0;
  position: static;
}
.wrapper > header nav .submenu a,
.wrapper > header nav .sub-links a {
  display: block;
  padding: 13px 30px;
  font-family: var(--ds);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-transform: none;
  color: var(--ink);
  border: 0;
  transition: color 0.2s;
}
.wrapper > header nav .submenu a:hover,
.wrapper > header nav .sub-links a:hover {
  color: var(--brand);
}

/* stavka s oznakom i opisom - markup dodaje inc/print_custom.php
   ("USLUGE DROPDOWN"): .sm-head (.sm-tag + .sm-name), .sm-desc, li.sm-all */
.wrapper > header nav .submenu li:not(.sm-all) a:has(.sm-head) {
  padding: 12px 28px;
}
.wrapper > header nav .submenu .sm-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wrapper > header nav .submenu .sm-tag {
  flex: 0 0 auto;
  padding: 4px 7px;
  font-family: var(--mn);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 5px;
}
.wrapper > header nav .submenu .sm-name {
  font-size: 18px;
}
.wrapper > header nav .submenu .sm-desc {
  display: block;
  margin-top: 7px;
  font-family: var(--bd);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--muted);
}
.wrapper > header nav .submenu .sm-all {
  margin: 14px 22px 0;
  border-top: 1px solid var(--line-d2);
}
.wrapper > header nav .submenu .sm-all a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8px 20px;
  font-family: var(--mn);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--brand);
}
.wrapper > header nav .submenu .sm-all a::after {
  content: "\2192";
  font-size: 17px;
  line-height: 1;
  transition: transform 0.2s;
}
.wrapper > header nav .submenu .sm-all:hover > a::after {
  margin-top: 0;
  transform: translateX(4px);
}

/* podnozje panela: oznaka lijevo, strelica desno (samo ako PHP nije dodao li.sm-all) */
.wrapper > header nav .submenu:not(:has(.sm-all))::after,
.wrapper > header nav .sub-links::after {
  content: "Usluge";
  display: block;
  margin: 18px 22px 0;
  padding: 16px 8px 18px;
  border-top: 1px solid var(--line-d2);
  font-family: var(--mn);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.wrapper > header nav .submenu:not(:has(.sm-all))::before,
.wrapper > header nav .sub-links::before {
  content: "\2192";
  position: absolute;
  right: 30px;
  bottom: 16px;
  font-family: var(--mn);
  font-size: 17px;
  line-height: 1;
  color: var(--brand);
}

@media only screen and (max-width: 1220px) {
  .wrapper > header nav .submenu,
  .wrapper > header nav .sub-links {
    min-width: 290px;
  }
  .wrapper > header nav .submenu a,
  .wrapper > header nav .sub-links a {
    font-size: 17px;
    padding: 11px 24px;
  }
}

/* mobilni (slicknav) - obican uvuceni popis, bez panela */
.slicknav_nav .submenu,
.slicknav_nav .sub-links {
  list-style: none;
  margin: 0;
  padding: 0 0 6px 16px;
}
.slicknav_nav .submenu a,
.slicknav_nav .sub-links a {
  font-family: var(--bd);
  font-size: 14px;
  text-transform: none;
}
.slicknav_nav .submenu .sm-tag,
.slicknav_nav .submenu .sm-desc {
  display: none;
}

/* ===== TRAKA POVJERENJA (ispod heroja na naslovnici) ===== */
.trust {
  background-color: var(--paper);
  border-top: 1px solid var(--line-d2);
  border-bottom: 1px solid var(--line-d2);
  padding: 30px 0;
}
.trust-row {
  box-sizing: border-box;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  flex-wrap: wrap;
}
.iso-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.iso {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mn);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
  border: 1px solid var(--line-d3);
  border-radius: 30px;
  padding: 8px 14px;
  white-space: nowrap;
}
.iso b {
  font-weight: 600;
  color: var(--ink);
}
.sectors {
  font-family: var(--mn);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--muted-2);
  max-width: none;
}
.sectors b {
  font-weight: 600;
  color: var(--muted);
}

@media only screen and (max-width: 980px) {
  .trust-row {
    justify-content: flex-start;
  }
}
@media only screen and (max-width: 600px) {
  .trust {
    padding: 22px 0;
  }
  .trust-row {
    padding: 0 14px;
    gap: 16px;
  }
  .iso {
    font-size: 11px;
    padding: 7px 13px;
  }
}

/* ===== HERO NASLOVNICE ===== */
.hero {
  background-color: var(--paper);
  padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 7vw, 96px);
}
.hero-inner {
  box-sizing: border-box;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mn);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 18px;
  max-width: none;
}
.hero-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--copper);
  opacity: 0.7;
  flex: 0 0 auto;
}
.hero-title {
  font-family: var(--ds);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 22px;
  text-transform: none;
}
.hero-title .hl {
  color: var(--brand);
}
.hero-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 34px;
}
.hero-actions {
  margin: 0;
  max-width: 100%;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mn);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--brand);
  border-radius: 9px;
  padding: 14px 24px;
  text-decoration: none;
  transition: 0.25s;
}
.hero-btn::after {
  content: "\2192";
  transition: transform 0.25s;
}
.hero-btn:hover {
  background: var(--brand-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--brand-glow);
}
.hero-btn:hover::after {
  transform: translateX(3px);
}
.hero-media {
  margin: 0;
}
.hero-media picture {
  display: block;
}
.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r);
}

/* Kartica s podacima u heroju (print_custom.php, heroFactsCard()) - HTML umjesto
   dosadasnjih slika s tekstom, da tekst moze biti na HR i EN. Velicine su u cqw
   (postotak sirine .hero-media) pa se kartica skalira s kolonom kao slika prije
   i zadrzava proporcije iz Figme; px vrijednosti su rezerva za starije preglednike. */
.hero-media:has(> .hero-facts) {
  container-type: inline-size;
}
.hero-facts {
  background: var(--surface);
  border: 1px solid var(--line-d2);
  border-radius: 18px;
  border-radius: clamp(14px, 4cqw, 22px);
  overflow: hidden;
  font-family: var(--mn);
  line-height: 1.25;
}
.hf-t {
  padding: 24px 26px;
  padding: 5.5cqw 5.2cqw;
  font-size: 13px;
  font-size: 3.1cqw;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}
.hf-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  gap: 4cqw;
  padding: 22px 26px;
  padding: 4.7cqw 5.2cqw;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 20px;
  font-size: 4.55cqw;
}
.hf-k {
  color: var(--muted);
}
.hf-v {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}
.hf-v b {
  color: var(--brand-deep);
  font-weight: 600;
}

@media only screen and (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-media {
    max-width: 520px;
  }
  .hero-lead {
    max-width: none;
  }
}
@media only screen and (max-width: 600px) {
  .hero {
    padding: 44px 0 40px;
  }
  .hero-inner {
    padding: 0 14px;
  }
  .hero-btn {
    justify-content: center;
  }
}

/*slider content*/
.hpage_slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hpage_slider .bx-wrapper {
  margin: 0 auto !important;
  height: 100%;
  width: 100%;
}
.hpage_slider .bx-wrapper .bx-viewport {
  height: 450px !important;
}
.bx-wrapper .bx-viewport {
  border: none;
  background: none;
  left: 0;
  box-shadow: none;
  height: 150px !important;
}
.bxslider {
  list-style: none;
  padding: 0;
  margin: 0;
  display: table;
}

.bx-wrapper img {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}
.bx-wrapper .bx-pager {
  padding: 0;
  width: auto;
}
.bx-controls {
  height: 0;
}
.bx-wrapper .bx-pager,
.bx-wrapper .bx-controls-auto {
  bottom: -40px;
  right: inherit;
  left: inherit;
  height: 16px;
  margin: 0 auto;
  padding: 0;
  display: table;
  position: relative;
  z-index: 9999;
}
.bx-wrapper .bx-pager.bx-default-pager a:hover,
.bx-wrapper .bx-pager.bx-default-pager a.active {
  background: var(--brand);
  border: 2px solid var(--brand);
}
.bx-wrapper .bx-pager.bx-default-pager a {
  background: transparent;
  border: 2px solid var(--line-d3);
  border-radius: 500em;
  margin: 0 2.5px;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
}
.bx-wrapper .bx-controls-direction a {
  display: none;
}
.text_over_slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.text_over_slide h1 {
  text-transform: uppercase;
  color: var(--white);
  font-size: 64px;
  opacity: 0.8;
  margin: 0;
}
.text_over_slide p {
  text-transform: uppercase;
  background-color: var(--brand);
  color: #fff;
  padding: 0 20px;
  font-family: var(--ds);
  font-size: 46px;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
  margin: 0;
}
.hpage_card {
  width: 100%;
  margin: 0;
}
/* --- hero podstranice (O nama): eyebrow u brand boji, slika bez okvira --- */
.hero--page .hero-eyebrow {
  color: var(--brand);
}
.hero--page .hero-eyebrow::before {
  background: var(--brand);
  opacity: 1;
}
.hero--page .hero-lead {
  margin-bottom: 0;
}
.hero--page .hero-media img {
  border-radius: 0;
}
@media only screen and (max-width: 860px) {
  .hero--page .hero-media {
    max-width: 460px;
  }
}

/* ===== USLUGE NA NASLOVNICI (.main_services_content) ===== */
.main_services_content {
  box-sizing: border-box;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) 24px;
}
.svc-head {
  max-width: 680px;
  margin: 0 0 clamp(32px, 5vw, 54px);
}
.svc-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mn);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 18px;
  max-width: none;
}
.svc-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--copper);
  opacity: 0.7;
  flex: 0 0 auto;
}
.svc-heading {
  font-family: var(--ds);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 16px;
  text-transform: none;
}
.svc-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 62ch;
}

/* grid */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* kartica */
.main_services_content .svc-card {
  display: block;
  float: none;
  width: auto;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line-d2);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.main_services_content .svc-card:hover {
  border-color: var(--brand);
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.main_services_content .svc-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  font-family: var(--bd);
  font-weight: 400;
}
.main_services_content .svc-img {
  float: none;
  width: 100%;
  height: 172px;
  margin: 0;
  overflow: hidden;
}
.main_services_content .svc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.6s;
}
.main_services_content .svc-card:hover .svc-img img {
  transform: scale(1.06);
}
.svc-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.svc-idx {
  font-family: var(--mn);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--copper);
}
.main_services_content .svc-title {
  font-family: var(--ds);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin: 8px 0 0;
  text-transform: none;
}
.svc-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mn);
  font-size: 13px;
  color: var(--brand);
  margin-top: 18px;
  transition: gap 0.2s;
}
.svc-more svg {
  width: 14px;
  height: 14px;
}
.main_services_content .svc-card:hover .svc-more {
  gap: 13px;
}

@media only screen and (max-width: 820px) {
  .svc-grid {
    grid-template-columns: 1fr;
  }
}
@media only screen and (max-width: 600px) {
  .main_services_content {
    padding: 44px 14px;
  }
  .main_services_content .svc-img {
    height: 190px;
  }
}

.hpage_text {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--maxw);
  margin: 80px auto 0;
  padding: 0 24px;
}
.hpage_text h2 {
  font-family: var(--ds);
  color: var(--ink);
  font-size: clamp(28px, 3.3vw, 46px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin: 0;
  text-align: left;
  text-transform: none;
}

.hpage_video {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--maxw);
  margin: 34px auto 0;
  padding: 0 24px;
}
.hpage_video article {
  position: relative;
}
.hpage_video iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
  border-radius: 12px;
}
.video_caption {
  font-family: var(--mn);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 520px;
  margin: 20px 0 0;
}
.hpage_news {
  display: block;
  width: 1200px;
  margin: 50px auto;
  position: relative;
  border-radius: var(--r);
  background-color: var(--surface);
  border: 1px solid var(--line-d2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.hpage_news > div {
  background-color: var(--surface-2);
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.45),
    0 2px 2px -1px rgba(0, 0, 0, 0.3);
}
.hpage_news > div h2 {
  color: var(--white);
  text-transform: uppercase;
  font-size: 24px;
  padding: 20px 0 20px 100px;
}
.hpage_news article {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  padding: 10px 40px 26px 100px;
}
.hpage_news .news_thumb {
  flex: 0 0 220px;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-d2);
  background-color: var(--surface-2);
}
.hpage_news .news_thumb img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.35s;
}
.hpage_news .news_thumb:hover img {
  transform: scale(1.04);
}
.hpage_news .news_body {
  min-width: 0;
}
.hpage_news .news_body em {
  display: block;
  margin: 0;
}
.hpage_news article h3 {
  font-family: var(--ds);
  color: var(--ink);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  text-transform: none;
  margin: 0 0 12px 0;
}
.hpage_news article h3 a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.25s;
}
.hpage_news article h3 a:hover {
  color: var(--brand);
  text-decoration: none;
}
.hpage_news article p {
  color: var(--text_blue);
  font-size: 16px;
  margin: 0 0 10px 0;
}
.hpage_news article time {
  font-size: 14px;
  color: var(--text_blue);
}
.hpage_news article:nth-of-type(1) {
  margin: 100px 0 0 0;
}

/* ===== HODOGRAM RADA (naslovnica, iznad referenci) ===== */
.process {
  background-color: var(--paper);
  padding: 80px 0 0;
}
.process-inner {
  box-sizing: border-box;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.process-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mn);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 20px;
}
.process-eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 34px;
  height: 1px;
  background-color: var(--muted-2);
}
.process h2 {
  font-family: var(--ds);
  color: var(--ink);
  font-size: clamp(28px, 3.3vw, 46px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  max-width: 900px;
  margin: 0 0 14px;
}
.process-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 52px;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 34px;
  row-gap: 46px;
}
.process-step {
  position: relative;
  padding-top: 34px;
}
.process-step::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  right: -34px;
  height: 1px;
  background-color: var(--line-d2);
}
.process-step:nth-child(4n)::before {
  right: 0;
}
.process-step::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  top: 3px;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  background-color: var(--paper);
}
.process-num {
  display: block;
  font-family: var(--mn);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin: 0 0 10px;
}
.process-step h3 {
  font-family: var(--ds);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  text-transform: none;
  margin: 0 0 8px;
}
.process-step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.process-stats {
  margin-top: 74px;
  background-color: var(--dark);
  border-top: 1px solid var(--line-d2);
}
.process-stats-inner {
  box-sizing: border-box;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.process-stat {
  text-align: center;
  padding: 46px 16px;
  border-left: 1px solid var(--line-d2);
}
.process-stat:first-child {
  border-left: 0;
}
.process-stat b {
  display: block;
  font-family: var(--ds);
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--brand);
}
.process-stat span {
  display: block;
  margin-top: 16px;
  font-family: var(--mn);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
@media only screen and (max-width: 1080px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-step:nth-child(4n)::before {
    right: -34px;
  }
  .process-step:nth-child(2n)::before {
    right: 0;
  }
}
@media only screen and (max-width: 900px) {
  .process-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-stat:nth-child(3) {
    border-left: 0;
  }
  .process-stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-d2);
  }
}
@media only screen and (max-width: 600px) {
  .process {
    padding-top: 52px;
  }
  .process-inner,
  .process-stats-inner {
    padding: 0 16px;
  }
  .process-grid {
    grid-template-columns: 1fr;
    row-gap: 34px;
  }
  .process-step::before {
    right: 0;
  }
  .process-lead {
    margin-bottom: 38px;
  }
  .process-stats {
    margin-top: 48px;
  }
  .process-stat {
    padding: 32px 12px;
  }
}

/*references featured cnt*/
.references_featured_cnt {
  box-sizing: border-box;
  width: 1080px;
  max-width: 100%;
  margin: 20px auto;
  padding: 0 24px 47px;
  display: block;
}
.bxslider_references {
  list-style: none;
  padding: 0;
  margin: 0;
  display: table;
}
.references_featured_cnt .bx-wrapper img {
  width: 190px;
  height: 150px;
  margin: 10px 40px;
}
.references_featured_cnt .bx-wrapper .bx-pager,
.references_featured_cnt .bx-wrapper .bx-controls-auto {
  bottom: -30px;
  right: inherit;
  left: inherit;
  height: 10px;
  margin: 0 auto;
  padding: 0;
  display: table;
  position: relative;
  z-index: 9999;
}
.references_featured_cnt .bx-wrapper .bx-pager.bx-default-pager a {
  background-color: var(--line-d3);
  border: none;
  scale: 1;
  margin: 0 5px;
  width: 10px;
  height: 10px;
  transition: 0.5s;
}
.references_featured_cnt .bx-wrapper .bx-pager.bx-default-pager a:hover {
  background-color: var(--brand-2);
  border: none;
}
.references_featured_cnt .bx-wrapper .bx-pager.bx-default-pager a.active {
  scale: 1.4;
  background-color: var(--text_red);
  border: none;
}
.references_featured_cnt .bx-wrapper .bx-controls-direction a {
  display: inherit;
  z-index: 99;
  margin: 0;
  top: inherit;
  bottom: -59px;
  transition: none;
}
.references_featured_cnt .bx-clone {
  /*display: none;*/
}
.references_featured_cnt .bx-wrapper .bx-prev,
.references_featured_cnt .bx-wrapper .bx-next {
  width: 44px !important;
  height: 44px !important;
  background: var(--surface-2) !important;
  background-image: none !important;
  border: 1px solid var(--line-d2);
  border-radius: 50%;
  opacity: 1;
  text-indent: 0;
  font-size: 0;
  transition: border-color 0.25s, background-color 0.25s;
}
/* strelice crtane CSS-om (bez sprite slike) */
.references_featured_cnt .bx-wrapper .bx-prev::before,
.references_featured_cnt .bx-wrapper .bx-next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transition: border-color 0.25s;
}
.references_featured_cnt .bx-wrapper .bx-prev::before {
  transform: translate(-40%, -50%) rotate(135deg);
}
.references_featured_cnt .bx-wrapper .bx-next::before {
  transform: translate(-60%, -50%) rotate(-45deg);
}
.references_featured_cnt .bx-wrapper .bx-prev:hover,
.references_featured_cnt .bx-wrapper .bx-next:hover {
  background: var(--surface-2) !important;
  background-image: none !important;
  border-color: var(--brand);
}
.references_featured_cnt .bx-wrapper .bx-prev:hover::before,
.references_featured_cnt .bx-wrapper .bx-next:hover::before {
  border-color: var(--brand);
}
.references_featured_cnt .bx-wrapper .bx-prev {
  left: 30%;
}
.references_featured_cnt .bx-wrapper .bx-next {
  left: inherit;
  right: 30%;
}
/* ===== NASLOVNICA: proizvodna linija uzivo (print_custom.php -> {%line_section%}) ===== */
.plocice-section {
  background-color: var(--paper);
  padding: clamp(56px, 8vw, 100px) 0;
}
.plocice-section .wrap {
  box-sizing: border-box;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
.line-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.line-grid .rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.line-grid .rv.in {
  opacity: 1;
  transform: translateY(0);
}
.line-grid .rv-d1 {
  transition-delay: 0.12s;
}
.line-grid h2 {
  font-family: var(--ds);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.line-grid > .rv-d1 > p {
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 54ch;
}
.line-grid .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mn);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 18px;
}
.line-grid .eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--copper);
  opacity: 0.7;
  flex: 0 0 auto;
}

/* dijagram linije */
.board-stage {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-d2);
  border-radius: var(--r);
  padding: 28px 28px 20px;
  box-sizing: border-box;
}
.stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mn);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 18px;
}
.stage-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: plocicePulse 1.6s ease-out infinite;
}
@keyframes plocicePulse {
  0% {
    box-shadow: 0 0 0 0 var(--brand-glow);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 91, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 91, 102, 0);
  }
}
#lineSvg {
  display: block;
  width: 100%;
  height: auto;
}
.stage-readout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-d2);
  font-family: var(--mn);
  font-size: 12px;
  color: var(--muted);
}
.stage-readout b {
  color: var(--ink);
  font-weight: 600;
}

/* popis znacajki */
.line-feat {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 30px;
}
.feat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feat .ic {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-d2);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.feat .ic svg {
  width: 20px;
  height: 20px;
}
.feat h4 {
  font-family: var(--ds);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 4px;
}
.feat p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.feat p code {
  font-family: var(--mn);
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 4px;
}

@media only screen and (max-width: 900px) {
  .line-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== NASLOVNICA: kontrola kvalitete (print_custom.php -> {%quality_section%}) ===== */
.quality-section {
  background-color: var(--paper);
  padding: clamp(56px, 8vw, 100px) 0;
}
.quality-section .wrap {
  box-sizing: border-box;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
.quality-head {
  max-width: 62ch;
  margin: 0 0 clamp(36px, 5vw, 56px);
}
.quality-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mn);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 18px;
}
.quality-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--copper);
  opacity: 0.7;
  flex: 0 0 auto;
}
.quality-title {
  font-family: var(--ds);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 14px;
}
.quality-lead {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
.quality-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.quality-card {
  background: var(--surface);
  border: 1px solid var(--line-d2);
  border-radius: var(--r);
  padding: 26px 24px 24px;
  box-sizing: border-box;
}
.quality-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line-d2);
  background: var(--surface-2);
  color: var(--brand);
  margin: 0 0 20px;
}
.quality-ic svg {
  width: 22px;
  height: 22px;
}
.quality-card h3 {
  font-family: var(--ds);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 8px;
}
.quality-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
@media only screen and (max-width: 900px) {
  .quality-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (max-width: 520px) {
  .quality-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CTA TRAKA NA NASLOVNICI (zone7) =====
   Sadrzaj dolazi iz CMS-a kao tekstualni blok (e_contents.type = 0):
     intro_text -> eyebrow (<em>),  title -> naslov (<h2>),  content -> lead + gumb */
/* dok zona 7 nema sadrzaja, traka se ne prikazuje */
.hpage_cta:not(:has(article)) {
  display: none;
}
.hpage_cta {
  position: relative;
  overflow: hidden;
  background-color: var(--dark);
  padding: clamp(64px, 9vw, 96px) 0;
}
.hpage_cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    70% 130% at 50% 120%,
    var(--brand-glow),
    transparent 60%
  );
  pointer-events: none;
}
.hpage_cta article {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* eyebrow - <em> iz intro_text, podignut iznad naslova */
.hpage_cta article em {
  order: -1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mn);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 20px;
}
.hpage_cta article em::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--copper);
  opacity: 0.7;
  flex: 0 0 auto;
}
.hpage_cta article :is(h1, h2, h3) {
  font-family: var(--ds);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #fff;
  max-width: 780px;
  margin: 0 0 18px;
  text-transform: none;
}
.hpage_cta article p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 0 32px;
}
.hpage_cta article p:last-of-type {
  margin-bottom: 0;
}
/* gumb - bilo koji link u CTA sadrzaju */
.hpage_cta article a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mn);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--brand);
  border-radius: 9px;
  padding: 14px 24px;
  text-decoration: none;
  transition: 0.25s;
  max-width: fit-content;
  margin-top: 24px;
}
.hpage_cta article a::after {
  content: "\2192";
  transition: transform 0.25s;
}
.hpage_cta article a:hover {
  background: var(--brand-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--brand-glow);
}
.hpage_cta article a:hover::after {
  transform: translateX(3px);
}
/* ako je gumb u vlastitom odlomku, makni razmak ispod teksta */
.hpage_cta article p:has(> a:only-child) {
  margin-top: 14px;
  margin-bottom: 0;
}

@media only screen and (max-width: 600px) {
  .hpage_cta {
    padding: 56px 0;
  }
  .hpage_cta article {
    padding: 0 14px;
  }
  .hpage_cta article a {
    width: 100%;
    justify-content: center;
  }
}

/* CTA gumb na stranici Usluge (onama.php: .about_us odmah prije .hpage_cta) -
   malo vise razmaka od teksta iznad njega i da ne bude prilijepljen za rub
   ekrana. Skopano preko sibling selektora da ne dira isti gumb na naslovnici. */
.about_us + .hpage_cta article a {
  margin: 28px 24px 0;
}
@media only screen and (max-width: 600px) {
  .about_us + .hpage_cta article a {
    width: auto;
  }
}

/* ===== REFERENCE: brojke + sektori ===== */
.rf-wrap {
  box-sizing: border-box;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- traka s brojkama --- */
.rf-stats {
  background-color: var(--paper);
  border-top: 1px solid var(--line-d2);
  border-bottom: 1px solid var(--line-d2);
  padding: clamp(30px, 4vw, 44px) 0;
}
.rf-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.rf-num {
  font-family: var(--ds);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 50px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: #fff;
}
.rf-num .hl {
  color: var(--brand);
}
.rf-lbl {
  font-family: var(--mn);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 14px;
}
/* Tehno kutak ({%tk_stats%}): tamna traka, broj i oznaka poravnati lijevo */
.rf-stats.tk-stats {
  background-color: var(--dark);
}
.tk-stats .rf-stats-grid {
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}

/* --- sektori --- */
.rf-sectors {
  background-color: var(--paper);
  padding: clamp(52px, 8vw, 96px) 0;
}
.rf-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.rf-sec-title {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--ds);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-transform: none;
}
.rf-sec-num {
  font-family: var(--mn);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--brand);
}
.rf-sec-note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 34ch;
  text-align: right;
}
.rf-sec-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: clamp(36px, 5vw, 62px);
}
.rf-sec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px 12px;
}
.rf-sec-item + .rf-sec-item {
  border-left: 1px solid var(--line-d2);
}
.rf-sec-ico {
  display: block;
  color: var(--brand);
}
.rf-sec-ico svg {
  width: 26px;
  height: 26px;
  display: block;
}
.rf-sec-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
}

@media only screen and (max-width: 900px) {
  .rf-sec-head {
    display: block;
  }
  .rf-sec-note {
    text-align: left;
    max-width: none;
    margin-top: 12px;
  }
  .rf-sec-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .rf-sec-item + .rf-sec-item {
    border-left: 0;
  }
  .rf-sec-item {
    border-top: 1px solid var(--line-d2);
  }
  .rf-sec-grid .rf-sec-item:nth-child(-n + 3) {
    border-top: 0;
  }
  .rf-sec-grid .rf-sec-item:not(:nth-child(3n + 1)) {
    border-left: 1px solid var(--line-d2);
  }
}
@media only screen and (max-width: 600px) {
  .rf-wrap {
    padding: 0 14px;
  }
  .rf-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }
  .rf-sec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rf-sec-grid .rf-sec-item:nth-child(-n + 3) {
    border-top: 1px solid var(--line-d2);
  }
  .rf-sec-grid .rf-sec-item:nth-child(-n + 2) {
    border-top: 0;
  }
  .rf-sec-grid .rf-sec-item:not(:nth-child(3n + 1)) {
    border-left: 0;
  }
  .rf-sec-grid .rf-sec-item:not(:nth-child(2n + 1)) {
    border-left: 1px solid var(--line-d2);
  }
}

/* ===== FOOTER ===== */
.site-foot {
  width: 100%;
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--bd);
  border-top: 1px solid var(--line-d2);
  padding: clamp(48px, 6vw, 64px) 0 30px;
}
.foot-wrap {
  box-sizing: border-box;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.foot-col h5 {
  font-family: var(--mn);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 18px;
}
.foot-col a,
.foot-col p {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px;
  max-width: none;
  text-decoration: none;
  transition: color 0.2s;
}
.foot-col a:hover {
  color: var(--brand);
}

/* brand stupac */
.foot-brand .logo-foot {
  display: inline-block;
  margin: 0 0 16px;
}
.foot-brand .logo-foot img {
  height: 40px;
  width: auto;
  display: block;
}
.foot-desc {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 13.5px !important;
  line-height: 1.6;
  max-width: 280px;
  margin: 0 !important;
}

/* drustvene mreze - {%social%} ispisuje <a class="fa-brands ..."> */
.socials {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.socials a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  margin: 0;
  text-decoration: none;
  transition: 0.25s;
}
.socials a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* obvezni podaci o tvrtki */
.foot-legal,
.foot-legal p {
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.32);
  margin: 0 0 22px;
  max-width: none;
}

/* donja traka */
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mn);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
}
.foot-bottom a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}
.foot-bottom a:hover {
  color: var(--brand);
}

@media only screen and (max-width: 900px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media only screen and (max-width: 600px) {
  .foot-wrap {
    padding: 0 14px;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .foot-bottom {
    justify-content: flex-start;
  }
}

/*-------------Kontakt START--------------------*/
.basic_site_inner_content_contact {
  width: 1200px;
  margin: 50px auto;
  padding: 20px 20px 0 20px;
  display: table;
}
.basic_site_inner_content_contact article {
  width: 500px;
  float: left;
  margin: 0;
}
.basic_site_inner_content_contact h1 {
  font-size: 36px;
  color: var(--text_red);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  padding: 0 0 10px;
}
.basic_site_inner_content_contact h2 {
  font-size: 26px;
  color: var(--text_red);
  font-weight: 600;
  margin: 0;
  padding: 0 0 5px;
}
.basic_site_inner_content_contact h3 {
  font-size: 24px;
  color: var(--text_red);
  font-weight: 600;
  margin: 0;
  padding: 0 0 5px;
}
.right_column_contact {
  width: 640px;
  float: right;
  margin: 50px 0 0;
}
.basic_site_inner_content_contact iframe {
  width: 100%;
  height: 480px;
  border: none;
  outline: none;
  margin: 60px auto;
}
.basic_site_inner_content_contact .grecaptcha-logo iframe {
  width: inherit;
  height: inherit;
  border: inherit;
  margin: inherit;
}
.basic_site_inner_content_contact em {
  line-height: 26px;
  color: var(--text_blue);
}
.basic_site_inner_content_contact p {
  line-height: 24px;
  color: var(--text_blue);
  margin: 0 0 10px 0;
}
.basic_site_inner_content_contact p a {
  color: var(--text_red);
  text-decoration: none;
  transition: 0.5s;
}
.basic_site_inner_content_contact p a:hover {
  text-decoration: underline;
}
/*contact form*/
.contact_form {
  width: 100%;
  margin: 0;
  padding: 0;
  display: table;
}
.contact_form dl {
  width: 100%;
  margin: 0;
  padding: 0;
  clear: both;
  display: table;
}
.contact_form div {
  width: 310px;
  float: left;
  margin: 0 20px 20px 0;
  padding: 0;
}
.contact_form div.cnt_form_div_note {
  width: 100%;
  float: none;
  margin: 0 0 15px;
}
.contact_form div:nth-of-type(2n) {
  margin-right: 0;
}
.contact_form dd div {
  width: auto;
  float: none;
  margin: 0;
}
.contact_form dt {
  display: table;
  margin: 0 10px 0 0;
  padding: 0 !important;
  float: left;
}
.contact_form dt label {
  font-size: 12px;
  font-family: var(--mn);
  letter-spacing: 0.12em;
  color: var(--copper);
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
  padding: 0 0 10px 5px;
  display: block;
  cursor: text;
}
.contact_form dd {
  width: 89% !important;
  display: table;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}
.buttons_action input[type="reset"] {
  font-family: var(--mn);
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 9px !important;
  border: 1px solid var(--line-d3) !important;
  padding: 8px 25px !important;
  font-size: 14px !important;
  color: var(--ink-soft) !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  float: left;
  width: auto !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  transition: all 0.2s linear !important;
  margin: 0 5px 0 0 !important;
}
.buttons_action input[type="reset"]:hover,
.buttons_action input[type="reset"]:focus {
  font-size: 14px !important;
  color: var(--brand) !important;
  background: transparent !important;
  border: 1px solid var(--brand) !important;
  opacity: 1;
}
.buttons_action input[type="submit"] {
  font-family: var(--mn);
  background: var(--brand) !important;
  border: 1px solid var(--brand) !important;
  box-shadow: none !important;
  border-radius: 9px !important;
  padding: 8px 25px !important;
  font-size: 14px !important;
  color: #fff !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  float: left;
  width: auto !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  transition: all 0.2s linear !important;
  margin: 0 !important;
}
.buttons_action input[type="submit"]:hover,
.buttons_action input[type="submit"]:focus,
.buttons_action input[type="submit"]:valid:hover,
.buttons_action input[type="submit"]:valid:focus {
  font-size: 14px !important;
  color: #fff !important;
  background: var(--brand-2) !important;
  border: 1px solid var(--brand-2) !important;
  box-shadow: 0 12px 32px var(--brand-glow) !important;
  opacity: 1;
}
.contact_form dd input,
.contact_form dd textarea,
.contact_form dd select {
  width: 100%;
  max-width: 100%;
  padding: 13px 15px 14px;
  margin: 0 !important;
  background: var(--surface-2) !important;
  border: 1px solid var(--line-d2) !important;
  color: var(--ink);
  border-radius: 9px;
  outline: none;
  box-shadow: none !important;
  font-family: var(--bd);
  font-size: 14px !important;
  font-weight: 400;
  opacity: 1;
}
.contact_form dd textarea {
  width: 605px;
}
.contact_form dd input:hover,
.contact_form dd input:focus,
.contact_form dd input:active {
  background: var(--surface) !important;
  border: 1px solid var(--brand) !important;
  box-shadow: none !important;
}
.contact_form dd textarea:hover,
.contact_form dd textarea:focus,
.contact_form dd textarea:active {
  background: var(--surface) !important;
  border: 1px solid var(--brand) !important;
  box-shadow: none !important;
}
.contact_form dd select:hover,
.contact_form dd select:focus,
.contact_form dd select:active {
  background: var(--surface) !important;
  border: 1px solid var(--line-d3) !important;
  box-shadow: none !important;
}
.contact_form dd textarea {
  min-height: 120px;
  max-height: 120px;
  resize: none;
}
.contact_form div dd .formInfo:nth-child(2) {
  position: absolute;
  right: 5px;
  top: -22px;
}
.contact_form dd select {
  padding: 8px 10px 10px;
}
.contact_form dd input[type="file"] {
  padding: 7px 10px 7px;
}
/*invalid input*/
.contact_form dd input:invalid:focus,
.contact_form dd select:invalid:focus,
.contact_form dd textarea:invalid:focus {
  border: 1px solid var(--err) !important;
}
.contact_form dd input:valid:focus,
.contact_form dd select:valid:focus,
.contact_form dd textarea:valid:focus {
  border: 1px solid var(--ok) !important;
}
.formInfo {
  margin: 0;
  color: var(--err);
  font-size: 18px;
  cursor: help;
}
.FormButton {
  width: auto !important;
}
.contact_form dd img {
  border: none;
}
#reload_ecaptcha_contact {
  border: none;
}
.contact_form dd.buttons_action {
  padding: 20px 0 0 !important;
}
.contact_form dd div p {
  font-size: 13px;
  color: var(--muted);
  font-weight: normal;
  margin: 0 0 8px;
  padding: 0;
  display: block;
}
.error_content {
  color: var(--err) !important;
  margin: 20px 0;
}
.msg_content {
  color: var(--ink-soft) !important;
  margin: 20px 0;
}
.right_column_contact form#contact_form dl div.consent_data {
  width: 100%;
}
.right_column_contact form#contact_form dl div.consent_data dd {
  width: 96%;
}
/*-------------Kontakt END--------------------*/

.map {
  width: 100%;
  margin: 50px 0;
}
.map div {
  width: 1200px;
  margin: 0 auto;
}
.map h2 {
  font-size: 30px;
  color: var(--text_red);
  text-transform: uppercase;
}
.map em {
  color: var(--text_blue);
}
.map iframe {
  width: 100%;
  height: 480px;
  margin: 30px auto;
}

.about_us {
  width: 100%;
  display: table;
  margin: 50px auto;
}

.about_us article {
  width: 1100px;
  margin: 0 auto;
  background-color: var(--surface);
  border: 1px solid var(--line-d2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  border-radius: var(--r);
  box-sizing: border-box;
  padding: 20px;
  margin-top: 20px;
}
.about_us article::after {
  content: "";
  display: table;
  clear: both;
}
.about_us article figure {
  margin: 0 20px 0 0;
  display: table;
  float: left;
  width: 300px;
  height: auto;
}
.about_us article figure figcaption {
  display: table;
  margin: 10px 0;
  color: var(--text_red);
}
.about_us article img {
  max-width: 100%;
  border-radius: 10px;
  object-fit: contain;
}
.about_us article h1 {
  color: var(--text_red);
  text-transform: uppercase;
  font-size: 28px;
  margin-bottom: 20px;
}
.about_us article h1 a {
  color: var(--text_red);
  text-decoration: none;
}
.about_us article h1 a:hover {
  text-decoration: underline;
}
.about_us article em {
  display: table;
  color: var(--text_blue);
  font-size: 14px;
  margin-bottom: 20px;
}
.about_us article p {
  color: var(--text_blue);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.about_us article p a {
  color: var(--text_red);
  text-decoration: none;
}
.about_us article p a:hover {
  text-decoration: underline;
}
.about_us article a.send_request_button {
  display: table;
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  background-color: var(--brand);
  border-radius: 9px;
  font-family: var(--mn);
  font-size: 14px;
  transition: 0.25s;
  margin: 0 0 20px 0;
}
.about_us article a.send_request_button i {
  margin-right: 5px;
}
.about_us article a.send_request_button:hover {
  background-color: var(--brand-2);
  box-shadow: 0 12px 32px var(--brand-glow);
}
/* ===== TEHNO KUTAK - popis vijesti (e5cms/modules/news/web.php, case
   'category_view', unutar section.about_us). Prva vijest je istaknuta
   (.tk-feat), ostale su kartice u gridu (.tk-grid). Kartice su <a>, ne
   <article>, da ih ne diraju stara .about_us article pravila gore. ===== */
.tk-news {
  box-sizing: border-box;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.tk-feat,
.tk-card {
  background: var(--surface);
  border: 1px solid var(--line-d2);
  border-radius: var(--r);
  overflow: hidden;
  color: inherit;
  font-weight: 400;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.tk-feat:hover,
.tk-card:hover {
  border-color: rgba(255, 91, 102, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.tk-feat-img img,
.tk-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s;
}
.tk-feat:hover .tk-feat-img img,
.tk-card:hover .tk-card-img img {
  transform: scale(1.04);
}
.tk-date {
  display: block;
  font-family: var(--mn);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

/* istaknuta vijest: slika lijevo, tekst desno */
.tk-feat {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
}
/* slika ne dize visinu reda - popuni visinu koju odredi tekst (min. 320px) */
.tk-feat-img {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--surface-2);
}
.tk-feat-img img {
  position: absolute;
  inset: 0;
}
.tk-feat-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
}
.tk-eyebrow {
  font-family: var(--mn);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 16px;
  max-width: none;
}
.tk-feat-title {
  font-family: var(--ds);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-transform: none;
  margin: 0 0 16px;
}
.tk-feat-intro {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 22px;
}

/* "01 Sve novosti" (.rf-sec-head s Referenci) + grid kartica */
.tk-list-head {
  margin-top: 26px;
  padding-top: clamp(24px, 3vw, 30px);
  border-top: 1px solid var(--line-d3);
}
.tk-list-head .rf-sec-num {
  font-family: var(--ds);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 24px);
}
.tk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: clamp(28px, 4vw, 48px);
}
.tk-card {
  display: flex;
  flex-direction: column;
}
.tk-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
}
.tk-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 26px;
}
.tk-card-title {
  font-family: var(--ds);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
  text-transform: none;
  margin: 0;
}
.tk-card-intro {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
@media only screen and (max-width: 980px) {
  .tk-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (max-width: 760px) {
  .tk-feat {
    grid-template-columns: 1fr;
  }
  .tk-feat-img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}
@media only screen and (max-width: 600px) {
  .tk-news {
    padding: 0 14px;
  }
  .tk-grid {
    grid-template-columns: 1fr;
  }
}

/* prazna navigacija (npr. iskljucene kategorije novosti) ne ostavlja razmak */
.about_us_nav:not(:has(ul)) {
  display: none;
}
.about_us_nav {
  text-align: center;
  margin-bottom: 50px;
}
.about_us_nav ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  max-width: 1200px;
}
.about_us_nav li {
  margin: 0;
}
.about_us #hist a,
.about_us_nav a {
  text-decoration: none;
  color: var(--ink);
  background-color: var(--surface-2);
  border: 1px solid var(--line-d2);
  padding: 10px 20px;
  border-radius: 9px;
  font-family: var(--mn);
  font-size: 13px;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}
.about_us #hist a:hover,
.about_us_nav a:hover {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #fff;
  cursor: pointer;
}
.about_us .hist_and_social {
  display: table;
  width: 1100px;
  margin: 30px auto;
}
.about_us #hist {
  max-width: 1200px;
  display: table;
}

/* --- doseg (CH -> HR) --- */
.rf-reach {
  background-color: var(--dark);
  padding: clamp(48px, 7vw, 84px) 0;
}
.rf-reach-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.rf-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mn);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 18px;
  max-width: none;
}
.rf-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brand);
  flex: 0 0 auto;
}
.rf-reach-title {
  font-family: var(--ds);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 14px;
  text-transform: none;
}
.rf-reach-lead {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}
/* desni stupac s okomitom linijom */
.rf-reach-mark {
  border-left: 1px solid var(--line-d2);
  padding-left: clamp(28px, 4vw, 56px);
  text-align: right;
}
.rf-route {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.18em;
  font-family: var(--ds);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--brand);
}
.rf-arrow {
  width: 0.72em;
  height: 0.28em;
  flex: 0 0 auto;
  overflow: visible;
}
.rf-route-lbl {
  font-family: var(--mn);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 16px 0 0;
  max-width: none;
}
/* Reference - "Doseg" ({%ref_reach%}): veci i deblji naslov, veliki "CH -> HR"
   s debljom strelicom i manjim razmakom (prema Figmi) */
.rf-reach--big .rf-reach-title {
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 48px);
}
.rf-reach--big .rf-route {
  font-size: clamp(56px, 7.5vw, 112px);
  gap: 0.08em;
  letter-spacing: -0.03em;
}
.rf-reach--big .rf-arrow {
  width: 0.8em;
  height: 0.36em;
}
/* crveni sjaj gore lijevo na var(--dark) - Tehno kutak ({%tk_invest%}), Reference ({%ref_reach%}) */
.rf-reach.rf-reach--glow {
  background: radial-gradient(
      ellipse 30% 65% at 0% 0%,
      rgba(230, 40, 55, 0.26),
      rgba(230, 40, 55, 0) 72%
    ),
    var(--dark);
}

/* --- izjava --- */
.rf-quote {
  background-color: var(--paper);
  padding: 0 0 clamp(56px, 8vw, 96px);
}
.rf-quote-box {
  margin: 0 auto;
  padding-top: 72px;
  border: 0;
  max-width: 62ch;
  font-style: normal; /* globalni blockquote je kurziv */
  color: var(--ink);
}
.rf-quote-box p {
  font-family: var(--ds);
  font-weight: 600;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: none;
  font-style: normal;
}
.rf-quote-box footer {
  font-family: var(--bd);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

@media only screen and (max-width: 900px) {
  .rf-reach-grid {
    grid-template-columns: 1fr;
  }
  .rf-reach-mark {
    border-left: 0;
    border-top: 1px solid var(--line-d2);
    padding-left: 0;
    padding-top: 28px;
    text-align: left;
  }
  .rf-route {
    justify-content: flex-start;
  }
  .rf-quote-box {
    margin-left: 0;
  }
}

/* ===== STRANICA EU PROJEKTI ===== */
.eu-wrap {
  box-sizing: border-box;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.eu-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mn);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 18px;
  max-width: none;
}
.eu-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--copper);
  opacity: 0.7;
  flex: 0 0 auto;
}

/* --- naslovna traka --- */
.eu-hero {
  background-color: var(--paper);
  padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 4vw, 48px);
}
.eu-title {
  font-family: var(--ds);
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 24px;
  text-transform: none;
}
.eu-lead {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
  margin: 0;
}

/* --- projekt --- */
.eu-project {
  background-color: var(--paper);
  padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 6vw, 64px);
}
.eu-project-title {
  font-family: var(--ds);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 30px;
  max-width: 20ch;
  text-transform: none;
}
.eu-project-img {
  margin: 0 0 34px;
  max-width: 760px;
}
.eu-project-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r);
}
/* engleski okomiti logo ("Co-funded by the European Union") - uzi okvir */
.eu-project-img--v {
  max-width: 260px;
}
.eu-project-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 76ch;
}
.eu-project-text p b {
  color: var(--ink);
  font-weight: 600;
}

/* --- kartice s podacima (tablica) --- */
.eu-cards {
  background-color: var(--paper);
  padding: 0 0 clamp(40px, 6vw, 64px);
}
.eu-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line-d2);
  border-radius: 16px;
  overflow: hidden;
}
.eu-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 118px;
  margin: 0;
  padding: 24px 34px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line-d2);
  border-bottom: 1px solid var(--line-d2);
  border-radius: 0;
}
.eu-card:nth-child(2n) {
  border-right: 0;
}
.eu-card:last-child {
  border-bottom: 0;
}
/* neparan broj kartica: zadnja se rasteze preko oba stupca */
.eu-card:last-child:nth-child(2n + 1) {
  grid-column: 1 / -1;
  border-right: 0;
}
.eu-card h3 {
  margin: 0 0 12px;
  font-family: var(--mn);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}
.eu-card-val {
  margin: 0;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: none;
}
.eu-card:last-child .eu-card-val {
  color: var(--brand);
}

/* --- izjava o odricanju --- */
.eu-disclaimer {
  background-color: var(--paper);
  padding: 0 0 clamp(56px, 8vw, 96px);
}
.eu-disclaimer p {
  font-size: 13px;
  line-height: 1.6;
  font-style: italic;
  color: var(--muted-2);
  max-width: 900px;
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid var(--line-d3);
}

@media only screen and (max-width: 640px) {
  .eu-wrap {
    padding: 0 14px;
  }
  .eu-cards-grid {
    grid-template-columns: 1fr;
  }
  .eu-card {
    border-right: 0;
    padding: 20px 22px;
    min-height: 0;
  }
  .eu-project-title {
    max-width: none;
  }
}

/* ===== STRANICA REFERENCE: lista ===== */
/* modul ispisuje <section class="references_content"> s <article><figure><img><figcaption>,
   a ne .ref_container - zato lista dosad nije bila stilizirana */
.references {
  box-sizing: border-box;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 24px clamp(56px, 8vw, 90px);
}
.references .sorter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  max-width: none;
  margin: 0 0 clamp(26px, 4vw, 40px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-d2);
}
.references .sorter form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
}
.references .sorter form > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.references .sorter label {
  margin: 0;
  white-space: nowrap;
}

/* mreza kartica */
.references_content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
/* svijetla ploha - logotipi klijenata su tamni na bijeloj podlozi */
.references_content article {
  display: flex;
  flex-direction: column;
  background-color: #cbd0d6;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--r);
  padding: 26px;
  box-sizing: border-box;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.references_content article figure {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  height: auto;
  margin: 0;
  align-self: auto;
}
.references_content article figure img {
  width: auto;
  height: auto;
  max-height: 92px;
  max-width: 240px;
  object-fit: contain;
  align-self: flex-start;
}
.references_content article figcaption {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.references_content article figcaption .ref-card-title {
  font-family: var(--ds);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #0a0a0a;
  margin: 0;
  max-width: none;
}
.references_content article figcaption .ref-card-desc {
  font-family: var(--bd);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.5;
  color: #4a5058;
  margin: 0;
  max-width: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.references_content article figcaption a {
  color: #0a0a0a;
  text-decoration: none;
}
.references_content article figcaption a:hover {
  color: var(--brand-deep);
}

/* naslovnica ("Partneri") - modul ispisuje <article><figure><a><img></a></figure><h1><a>naslov</a></h1><em>opis</em></article>,
   izravna djeca bez figcaption, pa se stiliziraju odvojeno da ne kolidiraju s .references_content article figcaption gore */
.references_content article > h1 {
  font-family: var(--ds);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 20px 0 0;
  max-width: none;
}
.references_content article > h1 a {
  color: #0a0a0a;
  text-decoration: none;
}
.references_content article > h1 a:hover {
  color: var(--brand-deep);
}
.references_content article > em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--bd);
  font-style: normal;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.5;
  color: #4a5058;
  margin: 8px 0 0;
  max-width: none;
}

@media only screen and (max-width: 600px) {
  .references {
    padding-left: 14px;
    padding-right: 14px;
  }
  .references_content {
    grid-template-columns: 1fr;
  }
}
/* ===== STRANICA USLUGE: "Cetiri usluge" (b-module-embed / .svc-*) =====
   Sadrzaj (HTML) za ovu sekciju zivi u bazi (e_contents_code, page_id=6,
   zone=4) jer se stranica Usluge sastavlja kroz CMS content-zone sustav.
   Sam CSS, medjutim, ne mora biti tamo pa je premjesten ovdje - ubuduce se
   izgled sekcije mijenja izmjenom ovog fajla, bez SQL querija. ===== */
.b-module-embed-head {
  box-sizing: border-box;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
.b-module-embed-head h2 {
  font-size: clamp(30px, 4vw, 46px);
}
.b-module-embed section:first-of-type {
  padding-top: 0;
}
.svc-wrap {
  padding: 64px 0;
}
.svc-wrap > .wrap {
  box-sizing: border-box;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
.z-pattern-services {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 88px);
}
.z-pattern-services .svc-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  color: inherit;
  text-decoration: none;
}
.z-pattern-services .svc-card:nth-child(even) {
  flex-direction: row-reverse;
}
.z-pattern-services .svc-card .svc-img {
  flex: 1 1 50%;
  height: clamp(280px, 32vw, 480px);
  border-radius: 20px;
  overflow: hidden;
}
.z-pattern-services .svc-card .svc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s;
}
.z-pattern-services .svc-card:hover .svc-img img {
  transform: scale(1.06);
}
.z-pattern-services .svc-card .svc-body {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.z-pattern-services .svc-card .idx {
  position: absolute;
  top: 28px;
  font-family: var(--ds, sans-serif);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
  z-index: 2;
}
.z-pattern-services .svc-card:nth-child(odd) .idx {
  left: 28px;
}
.z-pattern-services .svc-card:nth-child(even) .idx {
  right: 28px;
}
.z-pattern-services .svc-card h3 {
  font-family: var(--ds, sans-serif);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 16px;
  color: var(--ink-light, #f3f5f7);
}
.z-pattern-services .svc-card p {
  color: var(--muted-light, #9298a3);
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 0 26px;
}
.z-pattern-services .svc-card .more {
  font-family: var(--mn, monospace);
  font-size: 13px;
  color: var(--ink-light, #f3f5f7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  padding: 12px 20px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  transition: 0.25s;
}
.z-pattern-services .svc-card .more:hover {
  border-color: var(--brand, #ff5b66);
  color: var(--brand, #ff5b66);
  gap: 14px;
}
.z-pattern-services .svc-card .more svg {
  width: 14px;
  height: 14px;
}
/* svc-single / svc-back / svc-summary: prikaz pojedinacnog clanka - koristi
   ga stranica jedne vijesti Tehno kutka (e5cms/modules/news/web.php, case
   'details': naslov, slika, uvod, tekst) */
.svc-single {
  box-sizing: border-box;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.svc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mn, monospace);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper, #8a919c);
  margin: 0 0 26px;
  transition: color 0.25s;
}
.svc-back:hover {
  color: var(--brand, #ff5b66);
}
/* vijest: visoke slike (npr. kvadratni logo) ne guraju tekst ispod ruba
   ekrana; fotografije 4:3 ostaju cijele, visak je bijel kao kod slika usluga */
.tk-article img.cover {
  max-height: 580px;
  background: #fff;
}
.svc-single h1 {
  font-family: var(--ds);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  color: var(--ink);
  text-transform: none;
  margin: 0 0 26px;
  letter-spacing: -0.02em;
}
.svc-single img.cover {
  width: 100%;
  object-fit: contain;
  border-radius: 16px;
  margin: 6px 0 30px;
  display: block;
  border: 1px solid var(--line-d, rgba(255, 255, 255, 0.09));
}
.svc-summary {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-soft, #c4c9d1);
  max-width: none;
  margin: 0 0 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-d, rgba(255, 255, 255, 0.09));
}
.svc-single .svc-body {
  /* ponistava globalni .svc-body s kartica na naslovnici (padding + flex) */
  display: block;
  padding: 0;
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink-soft, #c4c9d1);
}
.svc-single .svc-body p {
  margin: 0 0 20px;
  max-width: none;
}
.svc-single .svc-body h2,
.svc-single .svc-body h3 {
  color: var(--ink-light, #f3f5f7);
  font-family: var(--ds, "Space Grotesk", sans-serif);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 36px 0 14px;
}
.svc-single .svc-body h2 {
  font-size: 27px;
}
.svc-single .svc-body h3 {
  font-size: 21px;
}
.svc-single .svc-body a {
  color: var(--brand, #ff5b66);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 91, 102, 0.35);
  transition: border-color 0.2s;
}
.svc-single .svc-body a:hover {
  border-color: var(--brand, #ff5b66);
}
.svc-single .svc-body ul,
.svc-single .svc-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.svc-single .svc-body li {
  margin: 0 0 8px;
}
.svc-single .svc-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
  border: 1px solid var(--line-d, rgba(255, 255, 255, 0.09));
}
.svc-single .svc-body blockquote {
  margin: 28px 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--brand, #ff5b66);
  color: var(--ink-light, #f3f5f7);
  font-size: 19px;
  font-style: italic;
  line-height: 1.6;
}
.svc-single .svc-body code {
  font-family: var(--mn, monospace);
  font-size: 0.9em;
  background: var(--surface-2, #1c1f25);
  border: 1px solid var(--line-d, rgba(255, 255, 255, 0.09));
  border-radius: 6px;
  padding: 2px 7px;
}
.svc-single .svc-body hr {
  border: 0;
  border-top: 1px solid var(--line-d, rgba(255, 255, 255, 0.09));
  margin: 36px 0;
}
.svc-single > [class^="b-"]:first-of-type {
  padding-top: 0;
}
@media (max-width: 760px) {
  .z-pattern-services .svc-card,
  .z-pattern-services .svc-card:nth-child(even) {
    flex-direction: column;
  }
  .z-pattern-services .svc-card .idx {
    font-size: 44px;
    top: 16px;
    left: 16px;
    right: auto;
  }
  .svc-single img.cover {
    margin-bottom: 20px;
  }
  .svc-summary {
    font-size: 17px;
    margin-bottom: 24px;
    padding-bottom: 20px;
  }
  .svc-single .svc-body {
    font-size: 16.5px;
  }
}

/* --- dodatne sekcije ispod "Cetiri usluge" (inc/print_custom.php ->
   {%usx_lines%}/{%usx_machines%}/{%usx_process%}/{%usx_quote%}, page_id=6).
   usx_lines i usx_quote ponovno koriste .rf-reach / .rf-quote (vidi REFERENCE
   sekciju CSS-a gore) - ovdje su samo .usx-machines i .usx-process, novo. --- */
.usx-machines {
  background-color: var(--paper);
  padding: clamp(52px, 8vw, 96px) 0 0;
}
.usx-mtable {
  margin-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line-d2);
}
.usx-mrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-d2);
}
.usx-mcat {
  font-family: var(--mn);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  flex: 0 0 auto;
}
.usx-mval {
  font-family: var(--ds);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  text-align: right;
}
.usx-myear {
  font-weight: 600;
  color: var(--brand);
}

.usx-process {
  background-color: var(--paper);
  padding: clamp(52px, 8vw, 96px) 0;
}
.usx-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 34px;
  row-gap: 56px;
  margin-top: clamp(48px, 6vw, 74px);
}
.usx-step {
  position: relative;
}
.usx-step::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  right: -34px;
  height: 1px;
  background-color: var(--line-d2);
  z-index: 0;
}
.usx-step:nth-child(4n)::before {
  right: 0;
}
.usx-step-num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--brand);
  color: #fff;
  font-family: var(--mn);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 22px;
}
.usx-step h3 {
  font-family: var(--ds);
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
  margin: 0 0 8px;
}
.usx-step p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
@media only screen and (max-width: 1080px) {
  .usx-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .usx-step:nth-child(4n)::before {
    right: -34px;
  }
  .usx-step:nth-child(2n)::before {
    right: 0;
  }
}
@media only screen and (max-width: 640px) {
  .usx-mrow {
    flex-direction: column;
    align-items: flex-start;
  }
  .usx-mval {
    text-align: left;
  }
  .usx-steps {
    grid-template-columns: 1fr;
  }
  .usx-step::before {
    display: none;
  }
}

/* ===== STRANICA O NAMA - citat (onama.php, zone6, page_id=9) =====
   isti tretman kao .rf-quote/.rf-quote-box na stranici Reference */
.onas-quote {
  background-color: var(--paper);
  box-sizing: border-box;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px clamp(56px, 8vw, 96px);
}
.onas-quote p {
  margin: 0 0 0 14%;
  font-family: var(--ds);
  font-weight: 600;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 62ch;
}
.onas-quote cite {
  display: block;
  margin: 18px 0 0 14%;
  font-style: normal;
  font-family: var(--bd);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}
@media only screen and (max-width: 900px) {
  .onas-quote p,
  .onas-quote cite {
    margin-left: 0;
  }
}

/* ===== STRANICA O NAMA - Vizija i misija / Naše vrijednosti / Povijest
   (onama.php, page_id=9, inc/print_custom.php -> {%onas_vision%}/
   {%onas_values%}/{%onas_history%}). Naslijeđe ({%onas_legacy%}) ponovno
   koristi .rf-reach - CSS gore, sekcija REFERENCE. Header (broj+naslov+
   napomena) na sve tri koristi vec postojeci .rf-sec-head/.rf-sec-title/
   .rf-sec-num/.rf-sec-note. ===== */
.onas-vm,
.onas-values,
.onas-history {
  background-color: var(--paper);
  padding: clamp(52px, 8vw, 96px) 0;
}

/* --- 1) vizija/misija: dvije obrubljene kartice --- */
.onas-vm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: clamp(36px, 5vw, 56px);
}
.onas-vm-card {
  box-sizing: border-box;
  border: 1px solid var(--line-d2);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 32px);
}
.onas-vm-label {
  display: block;
  font-family: var(--mn);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 16px;
}
.onas-vm-card p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* --- 2) vrijednosti: red pilula --- */
.onas-values-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(36px, 5vw, 56px);
}
.onas-value-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-d2);
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.onas-value-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--brand);
  flex: 0 0 auto;
}

/* --- 3) povijest: okomiti vremenski slijed --- */
.onas-timeline {
  margin-top: clamp(36px, 5vw, 56px);
  max-width: 720px;
}
.onas-timeline-item {
  padding: 18px 0;
  border-top: 1px solid var(--line-d2);
}
.onas-timeline-item:last-child {
  border-bottom: 1px solid var(--line-d2);
}
.onas-timeline-year {
  display: block;
  font-family: var(--mn);
  font-weight: 600;
  font-size: 15px;
  color: var(--brand);
  margin: 0 0 8px;
}
.onas-timeline-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

@media only screen and (max-width: 700px) {
  .onas-vm-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== STRANICA USLUGE - DETALJI (templates/usluge_detalji.php, zone2 ->
   Usluge modul, case 'category_details'). HTML: <article class="cd-article">
   <div class="cd-head">broj+naslov</div><div class="cd-grid"><div
   class="cd-media">slika</div><div class="cd-body">tekst+gumb</div></div>
   </article> ===== */
.detalji_usluge {
  background-color: var(--paper);
  padding: clamp(48px, 7vw, 88px) 0;
}
.cd-article {
  box-sizing: border-box;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.cd-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 0 0 clamp(28px, 4vw, 44px);
}
.cd-num {
  font-family: var(--mn);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--brand);
}
.cd-head h1 {
  font-family: var(--ds);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-transform: none;
  margin: 0;
}
.cd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
/* slika popunjava cijeli okvir (4:3, bez bijelog ruba) */
.cd-media {
  aspect-ratio: 4 / 3;
  background-color: var(--surface-2);
  border-radius: var(--r);
  overflow: hidden;
}
.cd-media a,
.cd-media img {
  display: block;
  width: 100%;
  height: 100%;
}
.cd-media img {
  object-fit: cover;
}
.cd-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cd-body .cd-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 20px;
}
.cd-body p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 18px;
}
.cd-body .send_request_button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mn);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--brand);
  border-radius: 9px;
  padding: 14px 24px;
  text-decoration: none;
  margin-top: 8px;
  transition: 0.25s;
}
.cd-body .send_request_button i {
  display: none;
}
.cd-body .send_request_button::after {
  content: "\2192";
  transition: transform 0.25s;
}
.cd-body .send_request_button:hover {
  background: var(--brand-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--brand-glow);
}
.cd-body .send_request_button:hover::after {
  transform: translateX(3px);
}
.cd-article .ecms_gallery_box {
  margin-top: clamp(32px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cd-article .ecms_gallery_box img {
  border-radius: var(--r);
  display: block;
}
@media only screen and (max-width: 860px) {
  .cd-grid {
    grid-template-columns: 1fr;
  }
}

/* --- dodatne sekcije stranice usluge (admin: Usluge -> Stranica sa detaljima
   usluge; web.php, case 'category_details'). Hero koristi .hero--page markup,
   CTA koristi .hpage_cta, tekst je .svc-sec-text. --- */
.detalji_usluge:has(> .svc-hero:first-child) {
  padding-top: 0;
}
.detalji_usluge:has(> .hpage_cta:last-child) {
  padding-bottom: 0;
}
.svc-hero {
  margin-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line-d2);
}
.svc-hero--noimg .hero-inner {
  grid-template-columns: 1fr;
}
.svc-hero .hero-lead:not(:last-child) {
  margin-bottom: 34px;
}
.svc-hero .hero-media img {
  border-radius: var(--r);
}
.svc-sec-text {
  padding-top: clamp(40px, 6vw, 72px);
}
.svc-sec-wrap {
  box-sizing: border-box;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.svc-sec-wrap :is(h2, h3) {
  font-family: var(--ds);
  font-weight: 600;
  color: var(--ink);
  text-transform: none;
  margin: 0 0 16px;
}
.svc-sec-wrap h2 {
  font-size: clamp(26px, 3.2vw, 36px);
}
.svc-sec-wrap p,
.svc-sec-wrap li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 72ch;
}
.svc-sec-wrap p {
  margin: 0 0 18px;
}
.detalji_usluge > .hpage_cta {
  margin-top: clamp(48px, 7vw, 88px);
}

/* =====================================================================
   GLOBALNA BAZA — dizajn sustav na cijelom webu
   (sve sto CMS moduli i addoni ispisuju, a nije pokriveno gore)
   ===================================================================== */

html {
  background-color: var(--paper);
}
::selection {
  background: var(--brand);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
/* tamni scrollbar */
html {
  scrollbar-color: var(--line-d3) var(--paper);
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--paper);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border: 3px solid var(--paper);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--line-d3);
}

/* ---------- tipografija ---------- */
.hl {
  color: var(--brand);
}
p,
li,
dd,
dt,
td,
th,
em,
strong,
small,
time,
address,
figcaption,
label,
blockquote {
  color: inherit;
}
a {
  color: var(--brand);
  transition: color 0.25s;
}
a:hover {
  color: var(--brand-2);
}
code,
pre,
kbd,
samp {
  font-family: var(--mn);
  font-size: 0.92em;
  background: var(--surface-2);
  border: 1px solid var(--line-d2);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--ink);
}
pre {
  padding: 16px 18px;
  overflow: auto;
}
hr {
  border: 0;
  border-top: 1px solid var(--line-d2);
  margin: 32px 0;
}
blockquote {
  margin: 26px 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--brand);
  color: var(--ink);
  font-style: italic;
}
table {
  border-collapse: collapse;
  color: var(--ink-soft);
}
th {
  font-family: var(--mn);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  text-align: left;
}
th,
td {
  border-bottom: 1px solid var(--line-d2);
  padding: 10px 12px;
}

/* ---------- form kontrole (svi moduli, ne samo kontakt) ---------- */
input,
select,
textarea,
button {
  font-family: var(--bd);
  font-size: 14px;
  color: var(--ink);
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="file"],
select,
textarea {
  background: var(--surface-2);
  border: 1px solid var(--line-d2);
  border-radius: 9px;
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: none;
}
/* autofill: preglednik automatski popunjenom polju stavi svoju svijetlu
   pozadinu (background-color !important), pa se bijeli tekst ne vidi. Pozadina
   se prekrije tamnom unutarnjom sjenom, a tekst ostaje bijel. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset;
  box-shadow: 0 0 0 1000px var(--surface-2) inset;
  transition: background-color 600000s 0s, color 600000s 0s;
}
/* kontakt forma: .contact_form dd input ima box-shadow: none !important, pa
   opce pravilo gore tamo ne djeluje - ovdje jaci selektor + !important;
   hover/focus prate obicno polje (var(--surface)) */
.contact_form dd input:-webkit-autofill,
.contact_form dd textarea:-webkit-autofill,
.contact_form dd select:-webkit-autofill {
  -webkit-text-fill-color: var(--ink) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset !important;
  box-shadow: 0 0 0 1000px var(--surface-2) inset !important;
}
.contact_form dd input:-webkit-autofill:hover,
.contact_form dd input:-webkit-autofill:focus,
.contact_form dd input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset !important;
  box-shadow: 0 0 0 1000px var(--surface) inset !important;
}
/* Firefox autofill boji polje filterom */
input:autofill,
textarea:autofill,
select:autofill {
  filter: none;
}
button,
input[type="button"] {
  font-family: var(--mn);
  cursor: pointer;
}

/* ---------- gumbi koje ispisuju CMS moduli ---------- */
.news_more_button,
.more_info_button,
.reservation_button,
.form_submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mn);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 9px;
  padding: 12px 22px;
  text-decoration: none;
  transition: 0.25s;
}
.news_more_button:hover,
.more_info_button:hover,
.reservation_button:hover,
.form_submit:hover {
  background: var(--brand-2);
  color: #fff;
  box-shadow: 0 12px 32px var(--brand-glow);
}
.form_reset {
  font-family: var(--mn);
  font-size: 14px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line-d3);
  border-radius: 9px;
  padding: 12px 22px;
  transition: 0.25s;
}
.form_reset:hover {
  color: var(--brand);
  border-color: var(--brand);
}

/* ---------- paginacija i sortiranje ---------- */
.paging_content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 30px auto;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-d2);
}
.paging_info {
  font-family: var(--mn);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.paging {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.paging a {
  font-family: var(--mn);
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line-d2);
  border-radius: 9px;
  padding: 8px 14px;
  text-decoration: none;
  transition: 0.2s;
}
.paging a:hover {
  color: #fff;
  background: var(--surface-2);
  border-color: var(--line-d3);
}
.paging a.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}
.sorter {
  max-width: 1200px;
  margin: 0 auto 20px;
}
.sorter label {
  font-family: var(--mn);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-right: 10px;
}

/* ---------- listanja modula (novosti, usluge, reference, dokumenti) ---------- */
.main_services_content,
.services_content,
.references_content,
.documents_content,
.downloads_list,
.description-details {
  color: var(--ink-soft);
}
.document_category {
  font-family: var(--mn);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}
.downloads_list a,
.documents_content a {
  color: var(--brand);
}
.ecms_gallery_box img {
  border-radius: 9px;
  border: 1px solid var(--line-d2);
}
.group,
.label {
  color: var(--ink-soft);
}

/* ---------- generic inner stranice (npr. GDPR) ---------- */
.main_container {
  width: 100%;
}
.basic_site_inner_content {
  max-width: var(--maxw);
  margin: 50px auto;
  padding: 20px 20px 40px;
  color: var(--ink-soft);
}
.basic_site_inner_content h1,
.basic_site_inner_content h2,
.basic_site_inner_content h3 {
  color: var(--ink);
}

/* ---------- addoni (vendor CSS ucitan prije ove datoteke) ---------- */
.bx-wrapper {
  background: transparent;
}
.bx-wrapper .bx-viewport {
  background: transparent;
  border: 0;
  box-shadow: none;
  left: 0;
}
.bx-wrapper .bx-caption {
  background: rgba(7, 8, 9, 0.78);
}
.bx-wrapper .bx-caption span {
  font-family: var(--bd);
  color: var(--ink);
}
.bx-wrapper .bx-loading {
  background-color: var(--paper);
  background-image: none;
}
/* nijedan vendor sprite/pozadinska slika u slideru */
.bx-wrapper .bx-controls-direction a,
.bx-wrapper .bx-pager.bx-default-pager a {
  background-image: none;
}
/* chosen select (CMS ga stavlja na .chzn-select) */
.chzn-container,
.chosen-container {
  font-family: var(--bd);
}
.chzn-container-single .chzn-single,
.chosen-container-single .chosen-single {
  background: var(--surface-2);
  background-image: none;
  border: 1px solid var(--line-d2);
  border-radius: 9px;
  box-shadow: none;
  color: var(--ink);
}
.chzn-container .chzn-drop,
.chosen-container .chosen-drop {
  background: var(--surface);
  border: 1px solid var(--line-d2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
.chzn-container .chzn-results li,
.chosen-container .chosen-results li {
  color: var(--ink-soft);
}
.chzn-container .chzn-results li.highlighted,
.chosen-container .chosen-results li.highlighted {
  background: var(--brand);
  background-image: none;
  color: #fff;
}
/* fancybox / messi / jquery.alerts dijalozi */
.fancybox-skin,
.messi-box,
.messi-content,
#popup_container {
  background: var(--surface) !important;
  color: var(--ink-soft) !important;
  border-radius: var(--r) !important;
}
.fancybox-title,
.messi-title,
#popup_title {
  font-family: var(--ds);
  color: var(--ink) !important;
  background: var(--surface-2) !important;
}
.messi-modal-overlay,
.fancybox-overlay {
  background: rgba(0, 0, 0, 0.72) !important;
}

/* ===== OBAVIJEST O KOLACICIMA (inc/print_custom.php -> {%cookie_info%}):
   bijela kartica dolje lijevo, naslov + tekst s linkom + 2 gumba ===== */
.cookie_card {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 100000;
  box-sizing: border-box;
  width: min(560px, calc(100% - 32px));
  padding: 20px 22px 22px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  font-family: var(--bd);
}
.cookie_card form {
  margin: 0;
  padding: 0;
}
.cookie_card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--bd);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #16181d;
  margin: 0 0 8px;
  max-width: none;
}
.cookie_card__text {
  font-size: 15px;
  line-height: 1.6;
  color: #555b64;
  margin: 0 0 18px;
  max-width: none;
}
.cookie_card__text a {
  font-weight: 600;
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie_card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie_card__btn {
  font-family: var(--bd);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  padding: 11px 20px;
  color: #16181d;
  background: #fff;
  border: 1px solid #dcdfe4;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.cookie_card__btn:hover {
  border-color: #b5bac2;
}
.cookie_card__btn--primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}
.cookie_card__btn--primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}
@media only screen and (max-width: 600px) {
  .cookie_card {
    left: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
    padding: 18px;
  }
  .cookie_card__btn {
    flex: 1 1 auto;
  }
}
