/* ──────────────────────────────────────────────────────────
   CMF Facility Management — cmf.hr
   Svijetla tema · CMF plava #2B6DB1 · Source Sans 3
   Motiv: linija iz logotipa (obris zgrade + temeljna linija)
   ────────────────────────────────────────────────────────── */

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

:root {
  --blue: #2B6DB1;       /* CMF plava iz logotipa */
  --blue-dk: #1F568F;    /* hover, tekst na svijetlom */
  --blue-tint: #D6E4F4;  /* aktivna stanja ilustracija */
  --ink: #12304F;        /* naslovi: tamna plava umjesto crne */
  --text: #3A4A5C;       /* tekst */
  --muted: #687889;
  --mist: #F1F5FA;       /* izmjenične sekcije */
  --line: #D8E2EC;       /* tanke linije, rubovi */
  --white: #FFFFFF;
  --ok: #1E7A46;
  --err: #B42318;

  --font: 'Source Sans 3', 'Source Sans Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 128px);
  --stroke: 4px;         /* debljina linije iz logotipa na ekranu */
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font); font-size: 1.125rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a[href^="tel:"] { white-space: nowrap; }
a { color: var(--blue-dk); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--blue); color: #fff; }

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.08; letter-spacing: -.022em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 2.1rem + 3.2vw, 4.75rem); letter-spacing: -.032em; line-height: 1.0; }
h2 { font-size: clamp(2rem, 1.6rem + 1.9vw, 3.15rem); }
h3, .h3 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); line-height: 1.2; letter-spacing: -.012em; font-weight: 650; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 650; }
small, .small { font-size: .9rem; color: var(--muted); line-height: 1.5; }
ul, ol { padding: 0; margin: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; color: #fff; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ───────────── gumbi i poveznice */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em; border-radius: var(--r);
  border: 1.5px solid var(--bd); background: var(--bg); color: var(--fg);
  font: 600 1.0625rem/1.1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { --bd: var(--blue); color: var(--blue-dk); }
.btn:active { transform: translateY(1px); }
.btn--primary { --bg: var(--blue); --fg: #fff; --bd: var(--blue); }
.btn--primary:hover { --bg: var(--blue-dk); --bd: var(--blue-dk); color: #fff; }
.btn--ghost { --bg: #fff; }
.btn--lg { min-height: 56px; padding-inline: 1.6em; font-size: 1.125rem; }
.btn--sm { min-height: 42px; padding: .55em 1.1em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn .ico { width: 1.15em; height: 1.15em; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link {
  display: inline-flex; align-items: center; gap: .4em; font-weight: 650; color: var(--blue-dk);
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px;
  transition: background-size .3s var(--ease);
}
.link:hover { background-size: 40% 1.5px; }

/* ───────────── zaglavlje */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .25s var(--ease); }
.hdr.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.hdr__in { display: flex; align-items: center; gap: 32px; height: 84px; transition: height .25s var(--ease); }
.hdr.is-scrolled .hdr__in { height: 70px; }
.hdr__logo { flex: none; display: block; }
.hdr__logo img { height: 66px; width: auto; transition: height .25s var(--ease); }
.hdr.is-scrolled .hdr__logo img { height: 54px; }
.nav { display: flex; align-items: center; flex: 1; gap: 24px; }
.nav__list { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link { display: inline-block; padding: 10px 12px; color: var(--ink); font-weight: 600; text-decoration: none; border-radius: var(--r); }
.nav__link:hover { color: var(--blue); }
.nav__link[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav__drop { position: relative; display: flex; align-items: center; }
.nav__caret { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -8px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 4px; }
.nav__caret .ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav__drop.is-open .nav__caret .ico, .nav__drop:hover .nav__caret .ico { transform: rotate(180deg); }
.mega {
  position: absolute; left: -24px; top: 100%; width: min(760px, 80vw); padding: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 60px -24px rgba(18,48,79,.28);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__drop:hover .mega, .nav__drop.is-open .mega, .nav__drop:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.mega__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega__list a { display: block; padding: 12px 14px; border-radius: 8px; text-decoration: none; }
.mega__list a:hover, .mega__list a[aria-current="page"] { background: var(--mist); }
.mega__name { display: block; color: var(--ink); font-weight: 650; }
.mega__desc { display: block; color: var(--muted); font-size: .92rem; line-height: 1.4; margin-top: 2px; }
.nav__cta { display: flex; align-items: center; gap: 18px; }
.nav__tel { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 650; text-decoration: none; white-space: nowrap; }
.nav__tel .ico { color: var(--blue); }
.hdr__burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); cursor: pointer; place-items: center; }
.hdr__burger .ico { width: 24px; height: 24px; }
.hdr__i-close, .hdr__burger[aria-expanded="true"] .hdr__i-open { display: none; }
.hdr__burger[aria-expanded="true"] .hdr__i-close { display: block; }
.mnav { border-top: 1px solid var(--line); background: #fff; max-height: calc(100dvh - 72px); overflow-y: auto; padding: 20px 0 28px; }
.mnav__h { margin: 0 0 6px; color: var(--muted); font-size: .95rem; }
.mnav__svc a, .mnav__main a { display: block; padding: 10px 0; color: var(--ink); font-weight: 600; font-size: 1.15rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav__main { margin: 18px 0 22px; }
.mnav .btn { margin-top: 10px; }

@media (max-width: 1120px) {
  .nav__tel span { display: none; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .hdr__burger { display: grid; }
  .hdr__in { height: 72px; }
  .hdr__logo img { height: 48px; }
}
@media (min-width: 981px) { .mnav { display: none !important; } }

/* ───────────── sekcije */
.section { padding-block: var(--sec); }
.section--tight { padding-block: calc(var(--sec) * .55); }
.section--mist { background: var(--mist); }
.section:not(.section--mist) + .section:not(.section--mist):not(.section--tight) { padding-top: calc(var(--sec) * .4); }
.shero + .section { padding-top: calc(var(--sec) * .45); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--row { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; }
.section-head--row h2 { margin: 0; }
.lead-sm { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3rem); line-height: 1.55; color: var(--text); max-width: 62ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--wide-left { grid-template-columns: 1.35fr 1fr; align-items: start; }
.split--faq { grid-template-columns: .8fr 1.2fr; align-items: start; }
.split--media { grid-template-columns: .85fr 1.15fr; }
@media (max-width: 900px) {
  .split, .split--wide-left, .split--faq, .split--media, .section-head--row { grid-template-columns: 1fr; }
}

/* uokvirena fotografija: linija iz logotipa ide ispod i uz desni rub */
.framed { position: relative; margin: 0 var(--stroke-gap, 18px) var(--stroke-gap, 18px) 0; }
.framed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; position: relative; z-index: 1; }
.framed::after {
  content: ""; position: absolute; right: calc(-1 * var(--stroke-gap, 18px)); bottom: calc(-1 * var(--stroke-gap, 18px));
  width: 72%; height: 64%; border-right: var(--stroke) solid var(--blue); border-bottom: var(--stroke) solid var(--blue);
}
.framed--hero img { aspect-ratio: 5 / 4; }

/* ───────────── naslovna: hero */
.hero { padding: clamp(32px, 5vw, 72px) 0 clamp(56px, 7vw, 104px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 1.8rem + 3.3vw, 4.7rem); max-width: 15ch; margin-bottom: .38em; }
.hero__lead { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); line-height: 1.55; max-width: 58ch; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta--center { justify-content: center; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; }
.facts li { display: flex; align-items: baseline; gap: 8px; }
.facts strong { color: var(--blue); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.facts--lg strong { font-size: 2rem; }

.hero__fig { position: relative; margin: 0; aspect-ratio: 531.5 / 673.4; width: 100%; max-width: 520px; justify-self: end; }
.hero__mask { position: absolute; inset: 0 22px 22px 0; clip-path: polygon(0 26.05%, 26.66% 18.32%, 26.66% 0, 79.74% 10.97%, 79.74% 34.07%, 100% 24.81%, 100% 100%, 0 100%); background: var(--mist); }
.hero__mask img { width: 100%; height: 100%; object-fit: cover; object-position: 32% 50%; }
.hero__line--m { display: none; }
.hero__line { position: absolute; inset: 22px 0 0 22px; width: calc(100% - 22px); height: calc(100% - 22px); overflow: visible; pointer-events: none; }
.hero__line path { fill: none; stroke: var(--blue); stroke-width: 5; vector-effect: non-scaling-stroke; stroke-linecap: square; stroke-linejoin: miter; stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero__line path { stroke-dashoffset: 1; animation: draw 1.8s .25s var(--ease) forwards; }
  .hero__line path:nth-child(2) { animation-delay: 1s; animation-duration: .9s; }
  .hero__line path:nth-child(3) { animation-delay: 1.2s; animation-duration: .9s; }
  .hero__mask { animation: rise 1s var(--ease) both; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__fig { order: -1; width: 100%; max-width: 640px; justify-self: stretch; aspect-ratio: 531.5 / 460; }
  .hero__mask { inset: 0 14px 14px 0; clip-path: polygon(0 20.98%, 26.66% 14.76%, 26.66% 0, 79.74% 8.83%, 79.74% 27.43%, 100% 19.98%, 100% 100%, 0 100%); }
  .hero__mask img { object-position: 38% 60%; }
  .hero__line { inset: 14px 0 0 14px; width: calc(100% - 14px); height: calc(100% - 14px); }
  .hero__line--d { display: none; }
  .hero__line--m { display: block; }
  .hero h1 { max-width: 16ch; }
}

/* ───────────── klijenti (traka logotipa) */
.clients { padding-block: clamp(44px, 6vw, 80px); border-block: 1px solid var(--line); overflow: hidden; }
.section--mist + .clients, .enquiry + .clients { border-top: 0; }
.clients__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.clients__head .link { white-space: nowrap; }
.clients__head h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.7rem); margin: 0; letter-spacing: -.015em; }
.marquee { --gap: 18px; position: relative; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: var(--gap); width: max-content; padding-inline: var(--gap); }
.marquee__track li { flex: none; width: 112px; height: 112px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.marquee__track img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.marquee__track li:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: no-preference) {
  .marquee.is-running .marquee__track { animation: marquee var(--dur, 60s) linear infinite; }
  .marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; } }

/* ───────────── naslovna: zgrada s uslugama */
.svcmap { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.svcmap__art { position: sticky; top: 110px; }
.bd { width: 100%; height: auto; overflow: visible; }
.bd a { cursor: pointer; transition: opacity .25s var(--ease); }
.bd-ground, .bd-shell { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.bd-fill { fill: #fff; stroke: var(--blue); stroke-width: 3; transition: fill .25s var(--ease); }
.bd-line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bd-thin { stroke-width: 2.25; }
.bd-wheel { fill: #fff; stroke: var(--blue); stroke-width: 3; }
.bd-energy { fill: none; stroke: var(--blue); stroke-width: 7; stroke-linecap: round; }
.bd-door { opacity: .55; }
.bd.has-active a { opacity: .22; }
.bd.has-active a.is-on { opacity: 1; }
.bd a.is-on .bd-fill, .bd a.is-on .bd-wheel { fill: var(--blue-tint); }
.bd a.is-on[data-svc="energetsko-certificiranje"] .bd-energy:nth-child(1) { stroke: #35a443; }
.bd a.is-on .bd-energy { stroke: #8cc63f; }
.svcmap__list { border-top: 1px solid var(--line); counter-reset: none; }
.svcmap__list li { border-bottom: 1px solid var(--line); }
.svcmap__list a { position: relative; display: block; padding: 18px 44px 18px 0; text-decoration: none; transition: padding .25s var(--ease); }
.svcmap__list a::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-top: 2.5px solid var(--blue); border-right: 2.5px solid var(--blue); transform: translateY(-50%) rotate(45deg); transition: right .25s var(--ease); }
.svcmap__name { display: block; color: var(--ink); font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); font-weight: 650; letter-spacing: -.012em; line-height: 1.25; }
.svcmap__desc { display: block; color: var(--muted); font-size: 1rem; line-height: 1.45; margin-top: 4px; }
.svcmap__list li.is-on a, .svcmap__list a:focus-visible { padding-left: 16px; }
.svcmap__list li.is-on a::after { right: 0; }
.svcmap__list li.is-on .svcmap__name { color: var(--blue); }
.svcmap__list li { position: relative; }
.svcmap__list li::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: var(--stroke); background: var(--blue); transform: scaleY(0); transition: transform .25s var(--ease); }
.svcmap__list li.is-on::before { transform: none; }
@media (max-width: 900px) {
  .svcmap { grid-template-columns: 1fr; }
  .svcmap__art { position: relative; top: 0; }
}

/* ───────────── koraci (stvarni slijed → numeracija) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; position: relative; }
.steps--four { grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: step; position: relative; padding: 64px 28px 0 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 1.15rem; z-index: 1;
}
.steps li::after { content: ""; position: absolute; left: 44px; right: 0; top: 20px; height: var(--stroke); background: var(--blue); opacity: .9; }
.steps li:last-child::after { right: auto; width: 24px; }
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--text); max-width: 34ch; }
.steps--compact { grid-template-columns: 1fr; gap: 0; }
.steps--compact li { padding: 0 0 26px 68px; }
.steps--compact li::after { left: 20px; right: auto; top: 44px; bottom: 0; width: var(--stroke); height: auto; }
.steps--compact li:last-child::after { display: none; }
.steps--compact li:last-child { padding-bottom: 0; }
@media (max-width: 900px) {
  .steps, .steps--four { grid-template-columns: 1fr; }
  .steps li { padding: 0 0 32px 68px; }
  .steps li::after { left: 20px; right: auto; top: 44px; bottom: 0; width: var(--stroke); height: auto; }
  .steps li:last-child::after { display: none; }
}

/* ───────────── točke prednosti */
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin: 36px 0; }
.points div { border-top: var(--stroke) solid var(--blue); padding-top: 16px; }
.points dt { color: var(--ink); font-weight: 650; font-size: 1.15rem; margin-bottom: 6px; }
.points dd { margin: 0; font-size: 1.02rem; color: var(--text); }
@media (max-width: 600px) { .points { grid-template-columns: 1fr; } }

/* ───────────── FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; color: var(--ink); font-weight: 650; font-size: clamp(1.1rem, 1.05rem + .25vw, 1.25rem); line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--blue); width: 22px; height: 22px; transition: transform .25s var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq__a { padding: 0 48px 24px 0; max-width: 68ch; }
.faq summary:hover { color: var(--blue-dk); }

/* ───────────── obrazac za upit */
.enquiry { background: var(--mist); padding-block: var(--sec); position: relative; }
.enquiry::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--stroke); background: var(--blue); width: min(38%, 420px); }
.enquiry__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.enquiry__intro h2 { max-width: 15ch; font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem); }
.enquiry__contact { margin-top: 36px; display: grid; gap: 14px; }
.enquiry__contact a { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 1.2rem; }
.enquiry__contact .ico { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: #fff; color: var(--blue); box-shadow: 0 0 0 1px var(--line); }
.enquiry__contact small { display: block; color: var(--muted); font-weight: 400; font-size: .9rem; line-height: 1.2; }
.enquiry__contact a:hover { color: var(--blue); }
.form { background: #fff; border-radius: 10px; padding: clamp(22px, 3.5vw, 44px); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(18,48,79,.35); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { color: var(--ink); font-weight: 600; font-size: 1rem; }
.field label span { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff;
  font: 400 1.0625rem/1.4 var(--font); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B6DB1' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: #9AA7B5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43,109,177,.18); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err); }
.field__err { color: var(--err); font-size: .9rem; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; margin-top: 4px; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--blue); }
.field--check label { font-weight: 400; color: var(--text); font-size: .98rem; line-height: 1.45; }
.field--check.is-invalid label { color: var(--err); }
.hp { position: absolute; left: -9999px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form__status { margin: 0; font-weight: 600; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--err); }
.form.is-sent .form__fields-off { display: none; }
.form-done { text-align: left; }
.form-done .okmark { margin: 0 0 20px; }
@media (max-width: 900px) { .enquiry__grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

.okmark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff; margin: 0 auto 24px; }
.okmark .ico { width: 32px; height: 32px; stroke-width: 2.4; }

/* ───────────── podstranice: zaglavlje stranice */
.crumbs { margin-bottom: 22px; font-size: .95rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.phero { padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); position: relative; }
.phero::after { content: ""; position: absolute; left: 0; bottom: -2px; height: var(--stroke); width: min(38%, 420px); background: var(--blue); }
.phero h1 { max-width: 18ch; }
.phero__lead { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); max-width: 60ch; line-height: 1.55; }
.phero--center { text-align: center; padding-block: clamp(72px, 10vw, 140px); border: 0; }
.phero--center::after { display: none; }
.phero--center h1, .phero--center .phero__lead { margin-inline: auto; }
.phero--center .hero__cta { margin-top: 32px; }
.phero--legal { padding-bottom: 32px; }

.shero { padding: clamp(24px, 3.5vw, 48px) 0 clamp(48px, 6vw, 88px); }
.shero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.shero h1 { max-width: 14ch; }
.shero__lead { font-size: clamp(1.1rem, 1.02rem + .4vw, 1.32rem); line-height: 1.55; max-width: 58ch; margin-bottom: 30px; }
.ticks { display: grid; gap: 10px; margin-top: 32px; }
.ticks li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.ticks .ico { color: #fff; background: var(--blue); border-radius: 50%; padding: 4px; width: 24px; height: 24px; stroke-width: 2.6; }
.shero__art { margin: 0; justify-self: center; width: min(100%, 420px); }
@media (max-width: 900px) {
  .shero__grid { grid-template-columns: 1fr; }
  .shero__grid > figure { order: 2; }
  .shero__art { width: min(72%, 320px); justify-self: start; }
}

/* ───────────── liste */
.checks { display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 18px; height: 10px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.checks--cols { grid-template-columns: repeat(2, 1fr); gap: 0 48px; border-top: 1px solid var(--line); }
.checks--cols li { padding-block: 16px; padding-left: 38px; border-bottom: 1px solid var(--line); }
.checks--cols li::before { top: calc(16px + .38em); }
.split .checks, .section-head + .checks { margin: 20px 0; }
@media (max-width: 700px) { .checks--cols { grid-template-columns: 1fr; } }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; }
.tags li { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: .98rem; }
.tags--lg li { padding: 12px 20px; font-size: 1.08rem; }

.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; border-top: var(--stroke) solid var(--blue); }
.spec--four { grid-template-columns: repeat(4, 1fr); }
.spec div { padding: 26px 32px 0 0; }
.spec div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.spec dt { color: var(--ink); font-size: 1.35rem; font-weight: 700; letter-spacing: -.012em; margin-bottom: 10px; }
.spec dd { margin: 0; color: var(--text); }
@media (max-width: 900px) {
  .spec, .spec--four { grid-template-columns: 1fr; }
  .spec div, .spec div + div { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

.note-card { background: #fff; border: 1px solid var(--line); border-top: var(--stroke) solid var(--blue); padding: 28px; border-radius: 0 0 8px 8px; }
.section--mist .note-card { border-color: transparent; border-top-color: var(--blue); }
.note-card h3 { margin-bottom: .5em; }
.note-card p { font-size: 1.02rem; }

/* paketi dolazaka (tjedni prikaz) */
.packages { margin-top: 28px; }
.packages__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.packages__tabs button { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 600 1rem var(--font); cursor: pointer; transition: all .2s var(--ease); }
.packages__tabs button:hover { border-color: var(--blue); }
.packages__tabs button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 26px 0 16px; }
.week span { position: relative; display: grid; place-items: end center; height: 88px; padding-bottom: 10px; border-radius: 6px; background: var(--mist); color: var(--muted); font-weight: 600; font-size: .95rem; transition: background .3s var(--ease), color .3s var(--ease); }
.week span::before { content: ""; position: absolute; top: 18px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; border: 2.5px solid var(--line); background: #fff; transition: all .3s var(--ease); }
.week span.is-on { background: var(--blue-tint); color: var(--ink); }
.week span.is-on::before { background: var(--blue); border-color: var(--blue); }
.week.is-month span { background: var(--mist); }
.week.is-month span:first-child { background: var(--blue-tint); color: var(--ink); }
.week.is-month span:first-child::before { background: var(--blue); border-color: var(--blue); }
.week.is-month::after { content: "1 × mjesečno"; grid-column: 1 / -1; font-size: .9rem; color: var(--muted); }
.packages__note { color: var(--text); min-height: 3.2em; }

/* godišnja doba */
.seasons__tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.seasons__tabs button { flex: none; padding: 14px 22px; border: 0; background: none; color: var(--muted); font: 650 1.15rem var(--font); cursor: pointer; box-shadow: inset 0 -3px 0 transparent; transition: color .2s, box-shadow .2s; }
.seasons__tabs button:hover { color: var(--ink); }
.seasons__tabs button[aria-selected="true"] { color: var(--blue); box-shadow: inset 0 calc(-1 * var(--stroke)) 0 var(--blue); }
.seasons__panel .checks { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 40px; }
.seasons__now { margin-left: 8px; font-size: .8rem; font-weight: 600; color: var(--blue); }

/* kalkulator cjenika */
.calc { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.calc__table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.calc__table th, .calc__table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.calc__table thead th { font-size: .92rem; color: var(--muted); font-weight: 600; background: #fff; }
.calc__table tbody th { color: var(--ink); font-weight: 600; }
.calc__price { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.calc__table tbody tr:last-child th, .calc__table tbody tr:last-child td { border-bottom: 0; }
.calc__table tr.has-qty { background: #F7FAFD; }
.calc__ask td { color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; }
.qty input { width: 44px; height: 38px; border: 0; text-align: center; font: 600 1rem var(--font); color: var(--ink); -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__btn { display: grid; place-items: center; width: 38px; height: 38px; border: 0; background: none; color: var(--blue); cursor: pointer; }
.qty__btn .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.qty__btn:hover { background: var(--mist); }
.calc__sum { position: sticky; top: 110px; background: #fff; border-radius: 10px; padding: 28px; box-shadow: 0 0 0 1px var(--line); border-top: var(--stroke) solid var(--blue); }
.calc__label { color: var(--muted); margin: 0; font-weight: 600; }
.calc__total { font-size: clamp(2.4rem, 2rem + 1.5vw, 3.2rem); font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.calc__hint { color: var(--text); font-size: 1rem; min-height: 1.5em; }
.calc__sum .btn { width: 100%; margin: 14px 0 16px; }
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .calc__sum { position: relative; top: 0; }
  .calc__table th, .calc__table td { padding: 10px 10px; }
  .calc__table thead th:nth-child(2) { white-space: nowrap; }
}

/* energetski razredi */
.energy { margin: 0; }
.energy__scale { display: grid; gap: 7px; }
.energy__scale li { width: var(--w); background: var(--c); color: var(--t, #fff); font-weight: 700; font-size: 1.15rem; padding: 6px 14px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); }
.energy figcaption { margin-top: 18px; color: var(--muted); font-size: .98rem; }
@media (prefers-reduced-motion: no-preference) {
  .energy.is-in .energy__scale li { animation: grow .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
}
@keyframes grow { from { width: 12%; } }

/* sustavi (tehničko) */
.systems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.systems li { padding: 30px 28px 30px 0; border-bottom: 1px solid var(--line); }
.systems li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.systems__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--mist); color: var(--blue); margin-bottom: 18px; }
.systems__ic .ico { width: 28px; height: 28px; }
.systems h3 { margin-bottom: .4em; }
.systems p { font-size: 1.02rem; }
@media (max-width: 900px) {
  .systems { grid-template-columns: 1fr 1fr; }
  .systems li, .systems li:not(:nth-child(3n+1)) { padding: 26px 20px 26px 0; border-left: 0; }
  .systems li:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .systems { grid-template-columns: 1fr; }
  .systems li:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* dvije slike */
.duo { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: end; }
.duo img { width: 100%; object-fit: cover; border-radius: 2px; }
.duo img:first-child { aspect-ratio: 3 / 2; }
.duo img:last-child { aspect-ratio: 4 / 5; }
@media (max-width: 700px) { .duo { grid-template-columns: 1fr; } .duo img:last-child { aspect-ratio: 3 / 2; } }

/* logotip CMF Logistics */
.brandcard { margin: 0; }
.brandcard img { width: 100%; border-radius: 8px; }

/* ilustracija vending aparata */
.va { width: 100%; height: auto; }
.va-body { fill: #fff; stroke: var(--blue); stroke-width: 5; }
.va-brand { fill: var(--blue); }
.va-brandtext { fill: #fff; font: 700 22px var(--font); letter-spacing: .02em; }
.va-glass { fill: var(--mist); stroke: var(--blue); stroke-width: 3; }
.va-item { fill: #fff; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; }
.va-thin { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; }
.va-panel { fill: var(--mist); stroke: var(--blue); stroke-width: 2.5; }
.va-keys circle { fill: var(--blue); }
.va-contactless { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; }
.va-slot { fill: var(--mist); stroke: var(--blue); stroke-width: 3; }
.va-ground { stroke: var(--blue); stroke-width: 5; stroke-linecap: round; }

/* povezane usluge */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.related a { display: block; height: 100%; padding: 20px 22px; border: 1.5px solid var(--line); border-radius: 8px; text-decoration: none; transition: border-color .2s var(--ease); }
.related a:hover { border-color: var(--blue); }
.related span { display: block; color: var(--ink); font-weight: 650; font-size: 1.15rem; }
.related small { display: block; margin-top: 4px; font-size: .95rem; }
.related a:hover span { color: var(--blue); }
.related--center { grid-template-columns: repeat(4, 1fr); margin-top: 56px; text-align: left; }
@media (max-width: 900px) { .related, .related--center { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .related, .related--center { grid-template-columns: 1fr; } }

/* stranica Usluge: redovi */
.svcrows { border-top: 1px solid var(--line); }
.svcrow { border-bottom: 1px solid var(--line); }
.svcrow a { display: grid; grid-template-columns: 260px 1fr 56px; gap: 36px; align-items: center; padding: 22px 0; text-decoration: none; }
.svcrow__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 2px; background: var(--mist); }
.svcrow__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svcrow__art { display: grid; place-items: center; height: 100%; padding: 10px; }
.svcrow__art svg { height: 100%; width: auto; }
.svcrow__name { display: block; color: var(--ink); font-size: clamp(1.5rem, 1.25rem + 1vw, 2.2rem); font-weight: 700; letter-spacing: -.022em; line-height: 1.1; }
.svcrow__desc { display: block; margin-top: 8px; color: var(--text); max-width: 56ch; }
.svcrow__go { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--blue); transition: all .25s var(--ease); }
.svcrow a:hover .svcrow__go { background: var(--blue); border-color: var(--blue); color: #fff; }
.svcrow a:hover .svcrow__img img { transform: scale(1.04); }
.svcrow a:hover .svcrow__name { color: var(--blue); }
@media (max-width: 760px) {
  .svcrow a { grid-template-columns: 112px 1fr; gap: 18px; }
  .svcrow__go { display: none; }
  .svcrow__desc { font-size: 1rem; }
}

/* reference: mreža logotipa */
.logogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 16px; }
.logogrid li { aspect-ratio: 1; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.logogrid img { width: 100%; height: 100%; object-fit: cover; }

/* kontakt podaci */
.cinfo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.cinfo li { display: flex; gap: 14px; align-items: flex-start; }
.cinfo li > span { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--mist); color: var(--blue); }
.cinfo p { margin: 0; color: var(--muted); font-size: .95rem; }
.cinfo a, .cinfo div > span { color: var(--ink); font-weight: 650; text-decoration: none; font-size: 1.08rem; line-height: 1.35; }
.cinfo a:hover { color: var(--blue); }
@media (max-width: 1000px) { .cinfo { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cinfo { grid-template-columns: 1fr; } }

/* tekstovi (o nama, pravne stranice) */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose--legal h2 { font-size: 1.4rem; }
.prose--legal { font-size: 1.06rem; }

/* ───────────── podnožje */
.ftr { background: var(--blue); color: rgba(255,255,255,.86); padding-top: clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; position: relative; }
.ftr__logo img { width: 190px; height: auto; margin-bottom: 22px; }
.ftr__brand p { max-width: 34ch; font-size: 1.02rem; }
.ftr__h { color: #fff; font-weight: 700; margin-bottom: 14px; font-size: 1.05rem; }
.ftr ul { display: grid; gap: 8px; font-size: 1.02rem; }
.ftr address { font-style: normal; display: grid; gap: 12px; font-size: 1.02rem; }
.ftr address a, .ftr address span { display: inline-flex; align-items: center; gap: 10px; }
.ftr address .ico { opacity: .85; }
.ftr__bottom { margin-top: clamp(48px, 6vw, 80px); font-size: .95rem; position: relative; }
.ftr__bottom p { margin: 0; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.22); }
@media (max-width: 980px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr__grid { grid-template-columns: 1fr; } }

/* ───────────── ispis */
@media print {
  .hdr, .ftr, .enquiry, .clients, .hero__cta { display: none !important; }
  body { font-size: 12pt; }
}

/* ───────────── Privola za kolačiće (Google Ads) */
.ftr__linkbtn { font: inherit; color: #fff; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.ftr__linkbtn:hover { text-decoration: underline; }
.consent {
  position: fixed; z-index: 60; inset: auto 16px 16px auto; width: min(440px, calc(100% - 32px));
  background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 18px 50px rgba(18, 48, 79, .18);
}
.consent[hidden] { display: none; }
.consent__in { padding: 20px 22px 18px; }
.consent__h { margin: 0 0 6px; color: var(--ink); font-weight: 700; font-size: 1.08rem; }
.consent__txt { margin: 0 0 16px; font-size: .98rem; line-height: 1.5; }
.consent__txt a { color: var(--blue-dk); }
.consent__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .consent { inset: auto 12px 12px 12px; width: auto; } }

/* Obrazac bez JS-a: popis grešaka na stranici s odgovorom */
.form-errors { display: inline-block; text-align: left; color: var(--err); margin: 0 auto 24px; }
