﻿/* =======================================================================
   Limarija Marković - jedan stylesheet, bez framework-a.
   Plava i crvena firme, tehnički crtež (blueprint) kao motiv, ivice od trapeznog lima.
   ===================================================================== */

/* Exo 2 (varijabilan 100-900): latinica, srpska slova i ćirilica u posebnim fajlovima - učitava se samo ono što stranica koristi */
@font-face { font-family: "Exo 2"; font-weight: 100 900; font-display: swap; src: url(/fonts/exo2.woff2) format("woff2"); unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2116, U+2122, U+2212; }
@font-face { font-family: "Exo 2"; font-weight: 100 900; font-display: swap; src: url(/fonts/exo2-sr.woff2) format("woff2"); unicode-range: U+010C-010D, U+0106-0107, U+0110-0111, U+0160-0161, U+017D-017E; }
@font-face { font-family: "Exo 2"; font-weight: 100 900; font-display: swap; src: url(/fonts/exo2-ru.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491; }

/* ------------------------------------------------------------- tokeni */
:root {
    --bg: #f4f7fa;
    --bg-2: #e5edf4;
    --hdr-bg: #e6eef6;
    --surface: #ffffff;
    --ink: #0c1b2a;
    --ink-2: #3d5164;
    --ink-3: #627789;
    --line: #d0dbe5;
    --steel: #8ea2b4;
    --blue: #01579b;          /* plava sa starog sajta */
    --blue-ink: #01579b;      /* plava za tekst/linkove na pozadini */
    --blue-hover: #01457c;
    --deep: #013b6d;          /* tamnoplava traka */
    --deep-2: #022a4d;        /* footer */
    --band-ink: #ffffff;
    --band-ink-2: #b9d1e8;
    --red: #e3120b;           /* crvena iz loga */
    --red-hover: #c00e08;
    --water: #2f9bf0;
    --bp: #01579b;            /* blueprint pozadina */
    --bp-line: rgba(255, 255, 255, .08);
    --bp-line-2: rgba(255, 255, 255, .16);
    --glass: rgba(255, 255, 255, .82);
    --map-filter: grayscale(1) contrast(1.05) brightness(1.05);
    --shadow: 0 30px 60px -30px rgba(1, 59, 109, .45);

    --font: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --hdr-h: 104px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --profile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='12'%3E%3Cpath d='M0 12V8h18l5-8h18l5 8h18v4z'/%3E%3C/svg%3E");
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #07121d;
    --bg-2: #0d1d2d;
    --hdr-bg: #0e1f31;
    --surface: #0f2234;
    --ink: #e9f1f8;
    --ink-2: #a7bdd0;
    --ink-3: #7d95aa;
    --line: #1d3550;
    --steel: #5b7792;
    --blue: #1e7fd0;
    --blue-ink: #5fb0f5;
    --blue-hover: #2a8fe3;
    --deep: #17528c;
    --deep-2: #0c2d4f;
    --band-ink: #ffffff;
    --band-ink-2: #cfe0f0;
    --red: #ff3a33;
    --red-hover: #ff5a54;
    --water: #59b6ff;
    --bp: #0b3a66;
    --glass: rgba(9, 22, 35, .82);
    --map-filter: invert(.92) hue-rotate(180deg) saturate(.45) brightness(.8) contrast(1.1);
    --shadow: 0 30px 70px -30px rgba(0, 0, 0, .95);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg: #07121d; --bg-2: #0d1d2d; --hdr-bg: #0e1f31; --surface: #0f2234; --ink: #e9f1f8; --ink-2: #a7bdd0; --ink-3: #7d95aa; --line: #1d3550; --steel: #5b7792;
        --blue: #1e7fd0; --blue-ink: #5fb0f5; --blue-hover: #2a8fe3; --deep: #17528c; --deep-2: #0c2d4f; --band-ink-2: #cfe0f0;
        --red: #ff3a33; --red-hover: #ff5a54; --water: #59b6ff; --bp: #0b3a66; --glass: rgba(9, 22, 35, .82);
        --map-filter: invert(.92) hue-rotate(180deg) saturate(.45) brightness(.8) contrast(1.1); color-scheme: dark;
    }
}

/* ------------------------------------------------------------- osnova */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; max-width: 100%; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    transition: background-color .3s, color .3s;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--font); font-weight: 800; line-height: 1.02; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.sr { position: absolute; 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; padding: 10px 16px; background: var(--red); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
/* kad je ekran uži od sadržaja, desno se ostavlja mesta za slivnik (progress) */
@media (max-width: 1300px) { .wrap { width: auto; max-width: var(--wrap); margin-left: var(--gutter); margin-right: calc(var(--gutter) + 26px); } }
/* telefon: slivnik počinje 14 px od desne ivice, pa je sadržaj od njega udaljen koliko i od leve ivice */
@media (max-width: 720px) { .wrap { margin-right: calc(var(--gutter) + 14px); } }
/* navigacija i meni ostaju simetrični - tu se slivnik ne vidi */
@media (max-width: 1300px) { .hdr .wrap, .menu .wrap { margin-right: var(--gutter); } }

/* ------------------------------------------------------------- dugmad */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: .7em 1.4em;
    border: 2px solid transparent; border-radius: 4px; cursor: pointer; text-decoration: none; white-space: nowrap;
    font: 700 1rem/1 var(--font); letter-spacing: .01em; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--red) 90%, transparent); }
.btn--red:hover { background: var(--red-hover); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-hover); }
.btn--line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--bp); border-color: #fff; }
.btn--small { min-height: 36px; padding: .4em .9em; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ------------------------------------------------------------- slajder iza navigacije: samo slike koje se smenjuju */
.slider { position: relative; height: clamp(250px, 36vw, 520px); overflow: hidden; background: var(--deep-2); }
.slider--compact { height: clamp(190px, 22vw, 300px); }
/* meko pretapanje: nova slika je odmah ispod, stara polako nestaje preko nje */
.slide { position: absolute; inset: 0; opacity: 0; }
.slide.is-on { opacity: 1; z-index: 1; }
.slide.is-out { opacity: 0; z-index: 2; transition: opacity 1.8s ease-in-out; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.slide.is-on img, .slide.is-out img { animation: kenburns 7s linear forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
/* navigacija se stapa sa slikom: tamno gore, providno ka sredini */
.slider::after {
    content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: linear-gradient(to bottom, rgba(2, 22, 42, .8), rgba(2, 22, 42, .2) 40%, rgba(2, 22, 42, 0) 70%, rgba(2, 22, 42, .35));
}

/* crvena traka sa tekstom ispod slajdera */
.ticker { position: relative; z-index: 4; background: var(--red); color: #fff; }
.ticker::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 12px; background: var(--red);
    -webkit-mask: var(--profile) repeat-x left bottom / 64px 12px; mask: var(--profile) repeat-x left bottom / 64px 12px;
}
.ticker__clip { overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker__list { display: flex; gap: 56px; margin: 0; padding: 15px 56px 15px 0; list-style: none; }
.ticker__list li { display: flex; align-items: center; gap: 16px; white-space: nowrap; font-weight: 800; font-size: clamp(1rem, 1.5vw, 1.2rem); letter-spacing: .01em; }
.ticker__list .profil { width: 38px; color: #fff; }
.ticker__tel svg { width: 20px; height: 20px; fill: #fff; }
@keyframes ticker { to { transform: translateX(-25%); } }

/* progress kroz stranicu: slivnik sa strane koji se puni vodom */
.pipe {
    position: fixed; right: 18px; top: var(--hdr-h); bottom: 56px; z-index: 49; width: 14px;
    border: 3px solid var(--steel); border-top: 0; border-bottom: 0;
    background: color-mix(in srgb, var(--bg) 60%, transparent); pointer-events: none; transition: opacity .3s;
}
.pipe::before { content: ""; position: absolute; left: -10px; right: -10px; top: 0; height: 8px; background: var(--steel); border-radius: 0 0 5px 5px; }
.pipe::after { content: ""; position: absolute; left: -6px; right: -6px; top: 34%; height: 7px; border: 3px solid var(--steel); border-radius: 2px; }
.pipe i { position: absolute; inset: 8px 0 0; background: linear-gradient(180deg, var(--blue), var(--water)); transform: scaleY(var(--scroll, 0)); transform-origin: top; }
body.menu-open .pipe, body:has(.hdr--over:not(.is-solid)) .pipe { opacity: 0; }

/* dugme "nazad na vrh" na dnu slivnika: puni se vodom kad se stigne do kraja stranice */
.totop {
    position: fixed; right: 5px; bottom: 18px; z-index: 49; width: 40px; height: 40px; padding: 0;
    display: grid; place-items: center; overflow: hidden; border: 3px solid var(--steel); border-radius: 50%;
    background: var(--surface); color: var(--ink); cursor: pointer;
    transition: opacity .3s, transform .3s var(--ease), border-color .3s, color .3s, box-shadow .3s;
}
.totop__water { position: absolute; inset: 0; background: linear-gradient(180deg, var(--water), var(--blue)); transform: scaleY(var(--fill, 0)); transform-origin: top; transition: transform .35s ease-out; }
.totop svg { position: relative; z-index: 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.totop:hover { transform: translateY(-3px); border-color: var(--blue); }
.totop.is-full { color: #fff; border-color: var(--blue); box-shadow: 0 0 0 0 color-mix(in srgb, var(--water) 60%, transparent); animation: totop-pulse 1.8s ease-out infinite; }
@keyframes totop-pulse { to { box-shadow: 0 0 0 14px transparent; } }
body.menu-open .totop, body:has(.hdr--over:not(.is-solid)) .totop { opacity: 0; transform: translateY(12px); pointer-events: none; }
/* telefoni: slivnik je jedna SVG putanja (site.js je crta prema ekranu) - od navigacije niz desnu ivicu, lukom u dugme */
.mpipe { display: none; }
@media (max-width: 720px) {
    .pipe { display: none; }
    .mpipe { display: block; position: fixed; top: 0; right: 0; z-index: 49; width: 60px; height: 100%; overflow: visible; pointer-events: none; transition: opacity .3s; }
    .mpipe path { fill: none; }
    .mpipe__body { stroke: color-mix(in srgb, var(--bg) 60%, transparent); stroke-width: 10; }
    .mpipe__water { stroke: var(--water); stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 1; }
    .mpipe__wall { stroke: var(--steel); stroke-width: 2; }
    .mpipe__flange { stroke: var(--steel); stroke-width: 6; stroke-linecap: round; }
    .totop { right: 34px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 46px; height: 46px; }
    /* voda ulazi sa strane i skuplja se u dugmetu odozdo nagore, kao u posudi */
    .totop__water { transform: scaleY(var(--fill, 0)); transform-origin: bottom; }
    body.menu-open .mpipe, body:has(.hdr--over:not(.is-solid)) .mpipe { opacity: 0; }
}

/* bez vidljivih skrolbarova - položaj pokazuje slivnik */
html, * { scrollbar-width: none; }
html::-webkit-scrollbar, *::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ------------------------------------------------------------- header */
.hdr {
    position: sticky; top: 0; z-index: 50; height: var(--hdr-h);
    background: color-mix(in srgb, var(--hdr-bg) 95%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 3px solid var(--steel); box-shadow: 0 12px 34px -22px rgba(1, 59, 109, .55);
    transition: background-color .35s, border-color .35s, box-shadow .35s;
}
/* preko slajdera: providan, bela slova i beli logo; kad se skroluje dole ostaje na vrhu kao puna traka */
.hdr--over {
    --hdr-p: 0;
    position: fixed; left: 0; right: 0; transition: none;
    background: color-mix(in srgb, var(--hdr-bg) calc(var(--hdr-p) * 95%), transparent);
    border-bottom-color: color-mix(in srgb, var(--steel) calc(var(--hdr-p) * 100%), transparent);
    box-shadow: 0 12px 34px -22px rgba(1, 59, 109, calc(var(--hdr-p) * .55));
    backdrop-filter: blur(calc(var(--hdr-p) * 14px)); -webkit-backdrop-filter: blur(calc(var(--hdr-p) * 14px));
}
.hdr--over:not(.is-solid) .nav__list a { color: rgba(255, 255, 255, .92); text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
.hdr--over:not(.is-solid) .nav__list a:hover { color: #fff; }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.hdr__logo { position: relative; flex: none; display: block; width: 140px; }
.hdr__logo .logo { transition: opacity .45s ease; }
.hdr__logo .logo--on-dark { position: absolute; inset: 0; opacity: 0; }
:root[data-theme="dark"] .hdr__logo .logo--on-light, .hdr--over:not(.is-solid) .logo--on-light { opacity: 0; }
:root[data-theme="dark"] .hdr__logo .logo--on-dark, .hdr--over:not(.is-solid) .logo--on-dark { opacity: 1; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__list a { position: relative; display: block; padding: 12px 16px; font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--ink-2); transition: color .45s, text-shadow .45s; }
.nav__list a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 3px; border-radius: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__list a:hover { color: var(--ink); }
.nav__list a:hover::after { transform: scaleX(1); }
.hdr__tools { display: flex; align-items: center; gap: 10px; }

/* dugmad u navigaciji: zaobljena, a preko slajdera staklena */
.langs { position: relative; display: flex; align-items: center; height: 42px; margin: 0; padding: 3px; list-style: none; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); transition: background-color .45s, border-color .45s; }
.langs a { display: grid; place-items: center; height: 34px; min-width: 34px; padding: 0 8px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-align: center; text-decoration: none; color: var(--ink-3); transition: color .2s, background-color .25s; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { background: var(--blue); color: #fff; box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--blue) 80%, transparent); }

.hdr__call {
    display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 4px; border-radius: 999px;
    background: var(--red); color: #fff; text-decoration: none; white-space: nowrap;
    box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--red) 90%, transparent); transition: background-color .2s, transform .25s var(--ease), box-shadow .25s;
}
.hdr__call:hover { background: var(--red-hover); transform: translateY(-2px); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--red) 90%, transparent); }
.hdr__call-ico { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--red); }
.hdr__call-ico::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); animation: ring 2.2s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.hdr__call-ico svg { width: 16px; height: 16px; fill: currentColor; }
.hdr__call:hover .hdr__call-ico svg { animation: wiggle .5s ease; }
@keyframes wiggle { 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.hdr__call-txt { display: grid; line-height: 1.1; }
.hdr__call-txt small { font-size: .66rem; font-weight: 600; opacity: .85; }
.hdr__call-txt b { font-size: .92rem; font-weight: 800; letter-spacing: .01em; }

/* prekidač za temu: kliza kuglica sa suncem / mesecom */
.theme { position: relative; flex: none; width: 70px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); cursor: pointer; color: var(--ink); transition: background-color .45s, border-color .45s; }
.theme__knob { position: absolute; top: 3px; left: 3px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #f0a500; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); transition: transform .4s var(--ease), background-color .3s, color .3s; }
:root[data-theme="dark"] .theme { background: var(--blue); border-color: var(--blue); }
:root[data-theme="dark"] .theme__knob { transform: translateX(28px); background: #0b1d30; color: #ffe08a; }
.theme svg { grid-area: 1 / 1; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: opacity .3s, transform .4s var(--ease); }
.theme__sun { opacity: 1; }
.theme__moon { fill: currentColor; stroke: none; opacity: 0; transform: rotate(-40deg) scale(.6); }
:root[data-theme="dark"] .theme__sun { opacity: 0; transform: rotate(60deg) scale(.6); }
:root[data-theme="dark"] .theme__moon { opacity: 1; transform: none; }

.burger { display: none; width: 42px; height: 42px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; color: var(--ink); transition: background-color .45s, border-color .45s, color .45s; }
.burger span { grid-area: 1 / 1; width: 20px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), width .3s; }
.burger span:nth-child(1) { transform: translateY(-7px); }
.burger span:nth-child(3) { transform: translateY(7px); width: 13px; justify-self: end; margin-right: 10px; }
.burger:hover span:nth-child(3) { width: 20px; }

.hdr--over:not(.is-solid) .langs, .hdr--over:not(.is-solid) .theme, .hdr--over:not(.is-solid) .burger {
    background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .32); color: #fff;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hdr--over:not(.is-solid) .langs a { color: rgba(255, 255, 255, .85); }
.hdr--over:not(.is-solid) .langs a[aria-current] { background: #fff; color: var(--blue); }

@media (max-width: 1100px) {
    .nav, .hdr__tools > .langs { display: none; }
    .hdr__tools { margin-left: auto; }
    .burger { display: grid; }
}
@media (max-width: 720px) {
    .hdr__tools > .hdr__call, .hdr__tools > .theme { display: none; }
}
@media (max-width: 600px) {
    :root { --hdr-h: 86px; }
    .hdr__logo { width: 112px; }
    .hdr__tools { gap: 8px; }
    .hdr__call { width: 42px; padding: 0; justify-content: center; }
    .hdr__call-txt { display: none; }
}

/* meni preko celog ekrana: odmotava se odozgo kao tabla lima */
.menu {
    position: fixed; inset: 0; z-index: 70; overflow-y: auto; overscroll-behavior: contain;
    background:
        linear-gradient(var(--bp-line) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, var(--bp-line) 1px, transparent 1px) 0 0 / 28px 28px,
        var(--bp);
    color: #fff; clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .55s var(--ease), visibility 0s .55s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .55s var(--ease); }
.menu__top { height: var(--hdr-h); display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--red); }
.menu__close { position: relative; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 4px; background: transparent; cursor: pointer; }
.menu__close span { position: absolute; left: 11px; right: 11px; top: 50%; height: 2.5px; background: #fff; rotate: 45deg; }
.menu__close span + span { rotate: -45deg; }
.menu__close:hover { background: var(--red); border-color: var(--red); }
.menu__in { display: grid; gap: 26px; padding: 18px 0 calc(32px + env(safe-area-inset-bottom)); }
.menu__main { margin: 0; padding: 0; list-style: none; }
.menu__main a {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14); text-decoration: none;
    font-weight: 800; font-size: clamp(1.45rem, 6vw, 2rem); line-height: 1.1;
    transform: translateY(18px); opacity: 0; transition: transform .5s var(--ease), opacity .5s, color .2s;
}
.menu__main svg { flex: none; width: 22px; height: 22px; fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease), stroke .2s; }
.menu__main a:hover, .menu__main a:focus-visible { color: #ffd2cf; }
.menu__main a:hover svg { transform: translateX(4px); stroke: #fff; }
.menu.is-open .menu__main a { transform: none; opacity: 1; }
.menu.is-open .menu__main li:nth-child(2) a { transition-delay: .05s; }
.menu.is-open .menu__main li:nth-child(3) a { transition-delay: .1s; }
.menu.is-open .menu__main li:nth-child(4) a { transition-delay: .15s; }

/* jezik i tema */
.menu__set { padding: 4px 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; background: rgba(255, 255, 255, .06); }
.menu__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; }
.menu__row + .menu__row { border-top: 1px solid rgba(255, 255, 255, .14); }
.menu__row > span { font-weight: 700; color: var(--band-ink-2); }
.langs--menu { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); }
.langs--menu a { color: rgba(255, 255, 255, .85); min-width: 42px; }
.langs--menu a[aria-current] { background: #fff; color: var(--bp); }
.theme--menu { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
:root[data-theme="dark"] .theme--menu { background: var(--blue); border-color: var(--blue); }

/* telefoni */
.menu__phones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu__phones a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--red); text-decoration: none; box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .6); }
.menu__phone-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--red); }
.menu__phone-ico svg { width: 16px; height: 16px; fill: currentColor; }
.menu__phones span:last-child { display: grid; line-height: 1.15; min-width: 0; }
.menu__phones small { font-size: .74rem; opacity: .85; }
.menu__phones b { font-size: .95rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* društvene mreže i adresa */
.menu__social { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.menu__social a { display: block; }
.menu__addr { margin-left: auto; color: var(--band-ink-2); font-size: .85rem; text-align: right; }
@media (min-width: 1101px) { .menu { display: none; } }
.menu__close { border-radius: 14px; }

/* ------------------------------------------------------------- hero: tehnički crtež na plavom */
.hero {
    position: relative; overflow: hidden; color: #fff; padding: clamp(44px, 7vw, 96px) 0 clamp(52px, 7vw, 96px);
    background:
        radial-gradient(70% 90% at 15% 0%, rgba(255, 255, 255, .12), transparent 60%),
        var(--bp);
}
/* tanka blueprint mreža, blago ukošena (bez debljih linija) */
.hero::before, .svc-hero::after {
    content: ""; position: absolute; inset: -40%; z-index: 0; pointer-events: none;
    background:
        linear-gradient(var(--bp-line) 1px, transparent 1px) 0 0 / 26px 26px,
        linear-gradient(90deg, var(--bp-line) 1px, transparent 1px) 0 0 / 26px 26px;
    transform: rotate(-8deg);
}
.svc-hero::after { z-index: 1; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.8rem, 6.6vw, 5.6rem); font-weight: 900; line-height: .95; letter-spacing: -.02em; max-width: 11ch; }
.hero__title::after { content: ""; display: block; width: 96px; height: 6px; margin-top: 22px; background: var(--red); }
.hero__lead { margin: 22px 0 30px; max-width: 34em; font-size: clamp(1.06rem, 1.45vw, 1.2rem); color: rgba(255, 255, 255, .86); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__people { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 24px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .7); font-size: .98rem; }
.hero__people a { color: #fff; font-weight: 700; text-decoration: none; margin-left: 4px; }
.hero__people a:hover { text-decoration: underline; }

/* fotografija stoji "ispod krova" na crtežu preseka: krov, okapnica, oluk, slivnik */
.hero__fig { position: relative; margin: 0; aspect-ratio: 520 / 740; max-width: 520px; justify-self: end; width: 100%; }
/* ispod krova: suvo i sigurno */
.hero__safe {
    /* ceo prostor ispod krova, gornja ivica prati nagib krova */
    position: absolute; left: 5.77%; top: 18.96%; width: 76.92%; height: 75.63%;
    clip-path: polygon(0 0, 100% 10.3%, 100% 100%, 0 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16% 20px 24px; text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02));
}
.safe__shield { width: clamp(84px, 9vw, 120px); fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .25)); }
.safe__shield .draw { animation-delay: 1.4s; animation-duration: 1s; }
.safe__shield .safe__tick { stroke: #7fd0ff; stroke-width: 7; animation-delay: 2.2s; animation-duration: .6s; }
.safe__title { margin: 6px 0 0; font-weight: 900; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -.01em; opacity: 0; animation: safe-in .7s 2.4s var(--ease) forwards; }
.safe__text { margin: 0; max-width: 22em; color: rgba(255, 255, 255, .78); font-size: .98rem; opacity: 0; animation: safe-in .7s 2.6s var(--ease) forwards; }
.safe__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; opacity: 0; animation: safe-in .7s 2.8s var(--ease) forwards; }
.safe__tags li { padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 3px; font-size: .85rem; font-weight: 700; }
@keyframes safe-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.roof { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke-linejoin: round; }
.roof__slab { fill: #dcecff; stroke: #fff; stroke-width: 2; }
.roof__wall { stroke: #fff; stroke-width: 2; }
.roof__metal { stroke: #cfe5ff; stroke-width: 2.5; }
.roof__rain { stroke: #9fd6ff; stroke-width: 2; stroke-linecap: round; opacity: .8; }
.roof__rain path { animation: rain 1.1s linear infinite; }
.roof__rain path:nth-child(2) { animation-delay: -.37s; }
.roof__rain path:nth-child(3) { animation-delay: -.74s; }
.roof__water { stroke: #7fd0ff; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 2.2 5; opacity: 0; animation: water-in .6s 1.7s forwards, water 2.4s 1.7s linear infinite; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s var(--ease) forwards; }
.roof__wall.draw { animation-delay: .15s; }
.roof__metal.draw { animation-delay: .55s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rain { from { transform: translate(0, -40px); } to { transform: translate(-14px, 110px); } }
@keyframes water { to { stroke-dashoffset: -14.4; } }
@keyframes water-in { to { opacity: .95; } }

@media (max-width: 880px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__fig { justify-self: center; max-width: 420px; }
}

/* ------------------------------------------------------------- trake sa ivicom trapeznog lima */
.band { position: relative; background: var(--deep); color: var(--band-ink); }
.band::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 12px; background: inherit;
    -webkit-mask: var(--profile) repeat-x left bottom / 64px 12px; mask: var(--profile) repeat-x left bottom / 64px 12px;
}
.band a { color: inherit; }
.band .btn--line { color: #fff; }
.band .btn--line:hover { background: #fff; color: var(--deep); border-color: #fff; }
.band--facts { background: var(--deep); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-block: 0; padding: 26px 0; }
.facts div { padding: 4px 24px; border-left: 1px solid rgba(255, 255, 255, .16); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-weight: 800; font-size: 1.45rem; line-height: 1.1; }
.facts dd { margin: 4px 0 0; color: var(--band-ink-2); }
@media (max-width: 720px) {
    .facts { grid-template-columns: 1fr; padding: 20px 0; }
    .facts div { border-left: 0; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .2); }
    .facts div:first-child { border-top: 0; }
}

/* ------------------------------------------------------------- sekcije */
.sec { padding: clamp(60px, 8vw, 108px) 0; }
.band.sec { padding: clamp(60px, 8vw, 100px) 0; }
.sec__head { max-width: 48rem; margin-bottom: clamp(30px, 4vw, 48px); }
.sec__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sec__head--row > div { max-width: 48rem; }
.sec__title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 900; margin-bottom: 14px; }
.sec__title::before { content: ""; display: block; width: 44px; height: 5px; margin-bottom: 16px; background: var(--red); }
.sec__lead { color: var(--ink-2); font-size: 1.1rem; max-width: 42em; margin: 0; }
.band .sec__lead, .band p { color: var(--band-ink-2); }

/* usluge */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 36px) clamp(16px, 2.4vw, 28px); margin: 0; padding: 0; list-style: none; }
.svc { display: block; height: 100%; text-decoration: none; }
.svc__media { position: relative; display: block; overflow: hidden; border-radius: 4px; }
.svc__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-2); transition: transform .6s var(--ease); }
.svc:hover .svc__img { transform: scale(1.04); }
.svc__chip {
    position: absolute; left: 0; bottom: 0; display: grid; place-items: center; width: 74px; height: 58px; color: #fff;
    background:
        linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px) 0 0 / 10px 10px,
        linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px) 0 0 / 10px 10px, var(--bp);
}
.svc__chip .profil { width: 48px; }
.svc__body { display: block; padding-top: 16px; border-top: 4px solid var(--blue); margin-top: 0; }
.svc__name { display: block; font-weight: 800; font-size: 1.5rem; line-height: 1.1; }
.svc__text { display: block; color: var(--ink-2); font-size: 1rem; margin-top: 6px; }
.svc:hover .svc__name { color: var(--red); }
.svc:hover .svc__body { border-top-color: var(--red); }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

.profil { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: square; stroke-linejoin: miter; }
.profil .profil__thin, .profil__thin { stroke-width: 1.4; opacity: .6; }

/* kako radimo: oluk povezuje korake, voda teče s leva na desno pa niz slivnik do broja */
.sec--steps { background: var(--bg-2); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding-right: 22px; }
.step__gutter { position: relative; display: block; height: 22px; border: 3px solid var(--steel); border-top: 0; border-radius: 0 0 14px 14px; margin-right: -22px; }
.step:last-child .step__gutter { margin-right: 0; }
.step:not(:first-child) .step__gutter { border-left: 0; border-bottom-left-radius: 0; }
.step:not(:last-child) .step__gutter { border-right: 0; border-bottom-right-radius: 0; }
.step__gutter i { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--water); transform: scaleX(0); transform-origin: left; transition: transform .55s linear calc(var(--i) * .55s); }
.step__pipe { position: relative; display: block; width: 18px; height: 44px; margin-left: 26px; border: 3px solid var(--steel); border-top: 0; border-bottom: 0; }
.step__pipe i { position: absolute; inset: 0; background: var(--water); transform: scaleY(0); transform-origin: top; transition: transform .4s ease-in calc(var(--i) * .55s + .35s); }
.step__num {
    display: grid; place-items: center; width: 70px; height: 70px; margin: 0 0 18px; border: 3px solid var(--steel); border-radius: 50%;
    font-weight: 900; font-size: 1.9rem; color: var(--ink-3); background: var(--surface);
    transition: background-color .4s calc(var(--i) * .55s + .7s), color .4s calc(var(--i) * .55s + .7s), border-color .4s calc(var(--i) * .55s + .7s);
}
.steps.is-in .step__gutter i { transform: scaleX(1); }
.steps.is-in .step__pipe i { transform: scaleY(1); }
.steps.is-in .step__num { background: var(--blue); border-color: var(--blue); color: #fff; }
.step__title { font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; }
.step__text { color: var(--ink-2); margin: 0; }
.step__n { display: none; }
/* telefoni: oluk sa 4 slivnika ostaje horizontalan gore, tekstovi koraka idu ispod */
@media (max-width: 880px) {
    .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .step { display: contents; }
    .step__gutter { grid-row: 1; margin-right: 0; height: 18px; }
    .step__pipe { grid-row: 2; height: 30px; width: 14px; margin: 0 auto; }
    .step__num { grid-row: 3; width: 46px; height: 46px; margin: 0 auto 26px; font-size: 1.25rem; }
    .step:nth-child(1) > :not(.step__body) { grid-column: 1; }
    .step:nth-child(2) > :not(.step__body) { grid-column: 2; }
    .step:nth-child(3) > :not(.step__body) { grid-column: 3; }
    .step:nth-child(4) > :not(.step__body) { grid-column: 4; }
    .step__body { grid-column: 1 / -1; padding: 16px 0; border-top: 1px solid var(--line); }
    .step__title { display: flex; align-items: center; gap: 12px; font-size: 1.12rem; margin-bottom: 6px; }
    .step__n { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .9rem; font-weight: 800; }
    .step__text { padding-left: 40px; font-size: .97rem; }
}

/* pre / posle */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split .btn { margin-top: 8px; }
.ba { margin: 0; }
.ba__img { position: relative; overflow: hidden; border-radius: 4px; box-shadow: 0 30px 60px -30px #000; }
.ba__img img { width: 100%; }
.ba__tag { position: absolute; top: 14px; padding: 6px 14px; font-weight: 800; font-size: 1.05rem; color: #fff; border-radius: 3px; }
.ba__tag--pre { left: 14px; background: var(--red); }
.ba__tag--posle { right: 14px; background: var(--blue); }
.ba figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--band-ink-2); font-size: .95rem; }
.ba figcaption span:last-child { text-align: right; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* boje lima */
.colors { --roof: #383e42; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 28px 0 18px; padding: 0; border: 0; }
.swatch { display: grid; gap: 2px; padding: 0 0 8px; border: 2px solid var(--line); border-radius: 4px; background: var(--surface); cursor: pointer; text-align: left; overflow: hidden; transition: border-color .2s, transform .2s; }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 30%, transparent); }
.swatch__chip {
    display: block; height: 46px; margin-bottom: 6px; background: var(--c);
    /* uzorak trapeznog lima: rebra i odsjaj */
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .0) 0 14px, rgba(255, 255, 255, .18) 14px 17px, rgba(0, 0, 0, .25) 17px 20px, rgba(255, 255, 255, 0) 20px 30px);
}
.swatch__name { padding: 0 10px; font-weight: 700; font-size: .9rem; line-height: 1.2; }
.swatch__code { padding: 0 10px; font-size: .78rem; color: var(--ink-3); }
.colors__now { margin: 0 0 6px; font-weight: 800; font-size: 1.4rem; }
.colors__now small { font-weight: 600; font-size: .95rem; color: var(--ink-3); margin-left: 6px; }
.colors__note { color: var(--ink-3); font-size: .92rem; margin: 0; }
.house { width: 100%; height: auto; overflow: visible; }
.house__ground { stroke: var(--steel); stroke-width: 2; }
.house__chimney { fill: #9b5a44; stroke: rgba(0, 0, 0, .35); stroke-width: 1.5; }
.house__roof { fill: var(--roof); transition: fill .5s; }
.house__metal { fill: var(--roof); filter: brightness(1.12); transition: fill .5s; }
.house__metal-line { fill: none; stroke: var(--roof); stroke-width: 6; filter: brightness(1.25); transition: stroke .5s; }
.house__wall { fill: #f3efe7; stroke: rgba(0, 0, 0, .25); stroke-width: 1.5; }
:root[data-theme="dark"] .house__wall { fill: #dcd6cb; }
.house__win rect { fill: #5d8fb9; stroke: #fff; stroke-width: 3; }
.house__win rect:last-of-type { fill: #6a4a35; }
.house__win path { stroke: #fff; stroke-width: 3; }
.house__sheen { animation: sheen 4s ease-in-out infinite; }
@keyframes sheen { 0%, 40% { transform: translateX(0); } 100% { transform: translateX(900px); } }
@media (max-width: 960px) { .colors { grid-template-columns: 1fr; } .house { max-width: 560px; } }
@media (max-width: 480px) { .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* kartice radova */
.sec--works { padding-top: clamp(40px, 6vw, 80px); }
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 30px); margin: 0; padding: 0; list-style: none; }
.work { display: block; text-decoration: none; }
.work__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-2); border-radius: 4px; transition: filter .3s; }
.work__img--empty { display: grid; place-items: center; color: var(--steel); }
.work__img--empty .profil { width: 40%; }
.work__body { display: block; padding: 12px 0 0; border-top: 0; }
.work__name { display: block; font-weight: 800; font-size: 1.25rem; line-height: 1.15; }
.work__loc { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); margin-top: 6px; font-size: .95rem; }
.work__loc::before { content: ""; width: 8px; height: 8px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--blue); }
.work:hover .work__name { color: var(--red); }
.work:hover .work__img { filter: brightness(1.06) saturate(1.1); }
@media (max-width: 880px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .works { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- kontakt */
.sec--contact { background: var(--bg-2); }
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.direct { margin: 28px 0 0; padding: 0; list-style: none; }
.direct li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.direct span { color: var(--ink-3); }
.direct a { font-weight: 800; font-size: 1.15rem; text-decoration: none; overflow-wrap: anywhere; color: var(--blue-ink); }
.direct a:hover { color: var(--red); }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }

.cf { position: relative; padding: clamp(20px, 3vw, 36px); background: var(--surface); border-top: 5px solid var(--blue); border-radius: 4px; box-shadow: var(--shadow); }
.cf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .cf__row { grid-template-columns: 1fr; } }
.fld { display: block; margin-bottom: 16px; }
.fld__l { display: block; margin-bottom: 6px; font-weight: 700; font-size: .95rem; }
.fld__l small { font-weight: 400; color: var(--ink-3); }
.fld input, .fld select, .fld textarea {
    width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px;
    background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.fld textarea { resize: vertical; min-height: 120px; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--ink-3); opacity: .8; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.fld.is-bad input, .fld.is-bad select, .fld.is-bad textarea { border-color: var(--red); }
.fld__err { color: var(--red); font-size: .92rem; }
.cf__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf__err { margin: 0 0 14px; padding: 10px 14px; border-left: 4px solid var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--ink); }
.cf__err:empty { display: none; }
.cf__err ul { margin: 0; padding-left: 18px; }
.cf__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cf__note { margin: 0; color: var(--ink-3); font-size: .9rem; flex: 1 1 220px; }
.cf__note a { color: var(--blue-ink); }
.cf.is-done .cf__row, .cf.is-done > .fld, .cf.is-done .cf__foot { display: none; }

/* oluk kao progress bar: voda puni oluk dok upit putuje, na kraju otiče niz slivnik */
.flow { --p: 0; --d: 0; margin-top: 22px; }
.flow[hidden] { display: none; }
.flow__gutter { width: 100%; height: auto; overflow: visible; }
.flow__metal { fill: none; stroke: var(--steel); stroke-width: 3; stroke-linejoin: round; }
.flow__water { fill: var(--water); transform-box: fill-box; transform-origin: left center; transform: scaleX(var(--p)); transition: transform .9s var(--ease); }
.flow__drain { fill: var(--water); transform-box: fill-box; transform-origin: center top; transform: scaleY(var(--d)); transition: transform .7s .3s var(--ease); }
.flow__steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.flow__steps li { position: relative; padding-left: 30px; color: var(--ink-3); font-size: .93rem; line-height: 1.3; transition: color .3s; }
.flow__steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 50%; transition: border-color .3s, background-color .3s; }
.flow__steps li::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease); }
.flow__steps li.is-active { color: var(--ink); }
.flow__steps li.is-active::before { border-color: var(--water); border-top-color: transparent; animation: spin .8s linear infinite; }
.flow__steps li.is-ok { color: var(--ink); }
.flow__steps li.is-ok::before { border-color: var(--water); background: var(--water); }
.flow__steps li.is-ok::after { transform: rotate(45deg) scale(1); }
.flow__steps li.is-fail { color: var(--ink-3); text-decoration: line-through; }
.flow__steps li.is-fail::before { border-color: var(--red); }
.flow__steps li[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow__msg { margin: 18px 0 0; font-weight: 800; font-size: 1.2rem; line-height: 1.3; }
.flow__msg:empty { display: none; }
.flow__msg a { color: var(--red); }
@media (max-width: 600px) { .flow__steps { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- lokacija (mapa preko cele širine) */
.loc { position: relative; background: var(--bg); }
.loc__map { --px: 50%; position: relative; height: clamp(460px, 70vh, 680px); overflow: hidden; background: var(--bg-2); }
.loc__map iframe {
    /* uvećana mapa centrirana na pin: Google oznaka je uvek ispod našeg pina, mapa ne reaguje na miš,
       a "Otvori u Google mapama" vodi u pravu mapu */
    position: absolute; left: calc(var(--px) - 1900px); top: calc(50% - 900px); width: 3800px; height: 1800px; border: 0; pointer-events: none;
    filter: var(--map-filter); opacity: 0; transition: opacity .8s;
}
.loc__map iframe.is-in { opacity: 1; }
.loc__fade {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(to bottom, var(--bg), transparent 16%, transparent 80%, var(--bg)),
        linear-gradient(to right, var(--bg), transparent 26%, transparent 74%, var(--bg)),
        radial-gradient(40% 50% at var(--px) 50%, transparent, color-mix(in srgb, var(--bg) 35%, transparent));
}
/* plavi pin sa belim logom; vrh repa je tačno na lokaciji */
.loc__pin { position: absolute; left: var(--px); top: 50%; z-index: 3; translate: -50% calc(-100% - 14px); transform-origin: 50% calc(100% + 14px); transition: transform .35s var(--ease); text-decoration: none; }
.loc__pin:hover { transform: scale(1.06); }
.loc__badge { position: relative; display: block; padding: 10px 14px; border-radius: 8px; background: var(--blue); box-shadow: 0 16px 34px -10px color-mix(in srgb, var(--blue) 80%, #000), inset 0 1px 0 rgba(255, 255, 255, .25); }
.loc__badge img { width: 118px; height: auto; }
.loc__badge::after { content: ""; position: absolute; left: 50%; top: 100%; translate: -50% -1px; border: 14px solid transparent; border-top-color: var(--blue); border-bottom: 0; }
.loc__pin::after {
    content: ""; position: absolute; left: 50%; top: calc(100% + 14px); width: 44px; height: 14px; translate: -50% -50%; border-radius: 50%;
    border: 2px solid var(--blue); animation: ping 2.4s var(--ease) infinite; pointer-events: none;
}
@keyframes ping { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.loc__wrap { position: relative; z-index: 4; margin-top: -140px; padding-bottom: clamp(56px, 8vw, 96px); }
.loc__card {
    width: min(440px, 100%); padding: clamp(22px, 3vw, 34px); border-radius: 6px;
    background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line); border-top: 5px solid var(--blue); box-shadow: var(--shadow);
}
.loc__title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 900; margin-bottom: 8px; }
.loc__lead { color: var(--ink-2); margin-bottom: 18px; }
.loc__facts { margin: 0 0 22px; display: grid; }
.loc__facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.loc__facts dt { color: var(--ink-3); }
.loc__facts dd { margin: 0; text-align: right; font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.loc__facts dd small { display: block; font-weight: 400; font-size: .88rem; color: var(--ink-3); }
.loc__facts a { text-decoration: none; color: var(--blue-ink); }
.loc__facts a:hover { color: var(--red); }
.loc__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.loc__cta .btn { flex: 1 1 auto; }
@media (min-width: 1025px) {
    .loc__map { --px: 64%; height: min(76vh, 720px); }
    .loc__wrap { position: absolute; inset: 0; width: auto; margin: 0; padding: 0 max(var(--gutter), (100% - var(--wrap)) / 2); display: flex; align-items: center; pointer-events: none; }
    .loc__card { pointer-events: auto; }
}

/* ------------------------------------------------------------- podstranice */
.page { padding: clamp(24px, 4vw, 44px) 0 clamp(56px, 8vw, 96px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 clamp(22px, 4vw, 40px); padding: 0; list-style: none; color: var(--ink-3); font-size: .93rem; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--steel); }
.crumbs a { text-decoration: none; color: var(--blue-ink); }
.crumbs a:hover { color: var(--red); }
.page__head { margin-bottom: clamp(28px, 5vw, 56px); max-width: 50rem; }
.page__title { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 900; line-height: .98; margin-bottom: 18px; }
.page__title::after { content: ""; display: block; width: 72px; height: 5px; margin-top: 18px; background: var(--red); }
.page__lead { font-size: clamp(1.06rem, 1.45vw, 1.2rem); color: var(--ink-2); max-width: 40em; }
.page__meta { color: var(--ink-2); margin: 0 0 12px; }
.page__meta strong { color: var(--ink); }
/* stranica usluge: jedna slika preko cele širine sa jakim plavim overlayem, navigacija leži preko nje */
.svc-hero {
    position: relative; overflow: hidden; color: #fff; background: var(--deep-2);
    min-height: clamp(480px, 66vh, 680px); display: flex; align-items: flex-end;
    padding: calc(var(--hdr-h) + clamp(28px, 4vw, 48px)) 0 clamp(60px, 7vw, 96px);
}
.svc-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: kenburns 10s ease-out forwards; }
.svc-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(90deg, rgba(2, 24, 46, .95) 0%, rgba(1, 50, 94, .86) 45%, rgba(1, 59, 109, .62) 100%),
        linear-gradient(to bottom, rgba(2, 22, 42, .75), rgba(2, 22, 42, 0) 35%);
}
.svc-hero__in { position: relative; z-index: 2; }
.svc-hero .crumbs ol { color: rgba(255, 255, 255, .7); margin-bottom: clamp(18px, 3vw, 30px); }
.svc-hero .crumbs a { color: #fff; }
.svc-hero .crumbs a:hover { color: #ffd2cf; }
.svc-hero .crumbs li + li::before { color: rgba(255, 255, 255, .45); }
.svc-hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.svc-hero .page__title { color: #fff; max-width: 16ch; }
.svc-hero__lead { max-width: 38em; margin: 0 0 26px; color: rgba(255, 255, 255, .86); font-size: clamp(1.02rem, 1.4vw, 1.15rem); }
.svc-hero__profile {
    margin: 0; padding: clamp(20px, 3vw, 34px); border: 2px solid rgba(255, 255, 255, .45); border-radius: 6px;
    background: rgba(1, 59, 109, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-align: center;
}
.svc-hero__profile .profil { width: 100%; max-width: 260px; margin: 0 auto; color: #fff; stroke-width: 2; }
.svc-hero__profile figcaption { margin-top: 12px; color: rgba(255, 255, 255, .75); font-size: .9rem; font-weight: 600; }
@media (max-width: 880px) {
    .svc-hero { min-height: 0; }
    .svc-hero__grid { grid-template-columns: 1fr; }
    .svc-hero__profile { display: none; }
}

.page--svc { padding-top: clamp(48px, 7vw, 88px); padding-bottom: 0; }   /* forma ide direktno do footera */
.svc-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-aside { position: sticky; top: calc(var(--hdr-h) + 24px); padding: 26px; background: var(--surface); border-top: 5px solid var(--red); border-radius: 6px; box-shadow: var(--shadow); }
.svc-aside__title { margin: 0 0 6px; font-weight: 800; font-size: 1.3rem; line-height: 1.2; }
.svc-aside .direct { margin: 12px 0 18px; }
.svc-aside .btn { width: 100%; }
@media (max-width: 960px) { .svc-body { grid-template-columns: 1fr; } .svc-aside { position: static; } }

.prose { max-width: 46rem; }
.prose section + section { margin-top: 36px; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; margin: 0 0 12px; }
.prose p { color: var(--ink-2); }
.prose--narrow h2 { margin-top: 34px; }
.prose a { color: var(--blue-ink); }
.page > .band { margin-top: clamp(56px, 8vw, 96px); }

.others { padding: clamp(34px, 5vw, 56px) 0 clamp(38px, 5vw, 60px); }
.others__title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 20px; }
/* kartice ostalih usluga: na računaru red, na telefonu slajder koji se prevlači prstom */
.others__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.oc { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; color: #fff; text-decoration: none; background: var(--deep-2); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .7); }
.oc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.oc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2, 24, 46, .92), rgba(1, 59, 109, .35) 55%, rgba(1, 59, 109, .1)); transition: background-color .3s; }
.oc__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 800; line-height: 1.15; }
.oc .profil { flex: none; width: 34px; color: #fff; }
.oc:hover img { transform: scale(1.07); }
.oc:hover .oc__body span { color: #ffd2cf; }
.oc::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 4px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.oc:hover::before { transform: scaleX(1); }
@media (max-width: 960px) {
    .others__list { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: 0; padding-bottom: 4px; }
    .others__list li { flex: 0 0 min(72%, 300px); scroll-snap-align: start; }
}

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 0 0 40px; padding: 0; list-style: none; }
.gallery a { display: block; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-2); border-radius: 4px; }
.zoom { max-width: min(1200px, 96vw); max-height: 92vh; padding: 0; border: 0; background: transparent; }
.zoom::backdrop { background: rgba(2, 14, 26, .9); }
.zoom img { max-width: 100%; max-height: 90vh; width: auto; margin: auto; }
.zoom__close { position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border: 0; border-radius: 4px; background: var(--red); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }

.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 24px 28px; background: var(--bg-2); border-left: 5px solid var(--red); border-radius: 4px; margin-bottom: 26px; }
.cta-box p { margin: 0; font-weight: 800; font-size: 1.5rem; line-height: 1.15; }
.back { color: var(--blue-ink); }
.back:hover { color: var(--red); }
.empty { padding: 36px; background: var(--bg-2); max-width: 40rem; border-radius: 4px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 46px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; font-weight: 700; }
.pager a:hover { border-color: var(--blue); color: var(--blue-ink); }
.pager span[aria-current] { background: var(--blue); color: #fff; border-color: var(--blue); }
.err { padding: clamp(30px, 8vw, 90px) 0; }
.err .profil { width: 120px; color: var(--blue-ink); margin-bottom: 26px; }
.err__id { margin-top: 26px; color: var(--ink-3); font-size: .9rem; }

/* ------------------------------------------------------------- footer */
.ftr { position: relative; margin-top: 12px; background: var(--deep-2); color: var(--band-ink-2); font-size: .97rem; }
.ftr::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 12px; background: var(--deep-2);
    -webkit-mask: var(--profile) repeat-x left bottom / 64px 12px; mask: var(--profile) repeat-x left bottom / 64px 12px;
}
.ftr__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding: clamp(44px, 6vw, 70px) 0 36px; }
.ftr__brand img { width: 150px; margin-bottom: 14px; }
.ftr__h { font-size: 1.15rem; color: #fff; margin-bottom: 12px; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr__links, .ftr__social { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ftr__social a { display: inline-flex; align-items: center; gap: 10px; }
.soc { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; transition: transform .25s var(--ease); }
.soc img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.soc--fb { background: #1877f2; }
.soc--viber { background: #7360f2; }
.soc--wa { background: #25d366; }
.ftr__social a:hover .soc { transform: translateY(-3px) scale(1.06); }
.ftr__bottom { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding: 18px 0 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
@media (max-width: 880px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr__grid { grid-template-columns: 1fr; } }

/* plutajuće dugme za poziv (telefoni) */
.fab-call { display: none; }
@media (max-width: 880px) {
    /* malo okruglo dugme sa telefonom, dole levo */
    .fab-call {
        position: fixed; left: 34px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
        display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
        background: var(--red); color: #fff; text-decoration: none;
        box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--red) 80%, #000);
        transform: translateY(160%); transition: transform .35s var(--ease);
    }
    .fab-call::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--red); animation: ring 2.4s var(--ease) infinite; }
    .fab-call.is-on { transform: none; }
    .fab-call svg { width: 20px; height: 20px; fill: currentColor; }
    body.menu-open .fab-call { transform: translateY(140%); }
    .ftr__bottom { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------------------- admin */
.admin { width: min(1100px, 100% - 2 * var(--gutter)); margin: clamp(30px, 5vw, 60px) auto 80px; }
.admin--narrow { width: min(640px, 100% - 2 * var(--gutter)); }
.admin--login { width: min(440px, 100% - 2 * var(--gutter)); margin-top: clamp(40px, 12vh, 120px); }
.admin__logo { width: 150px; margin: 0 0 24px; }
.admin__logo.logo--on-dark { display: none; }
:root[data-theme="dark"] .admin__logo.logo--on-light { display: none; }
:root[data-theme="dark"] .admin__logo.logo--on-dark { display: block; }
.admin__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin__title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.admin__note { color: var(--ink-3); font-size: .95rem; }
.admin__form { padding: clamp(20px, 3vw, 32px); background: var(--surface); border-top: 5px solid var(--blue); border-radius: 4px; box-shadow: var(--shadow); margin-bottom: 20px; }
.admin__files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.admin__files input { padding: 8px; }
@media (max-width: 600px) { .admin__files { grid-template-columns: 1fr; } }
.admin__table { overflow-x: auto; background: var(--surface); box-shadow: var(--shadow); margin-bottom: 20px; }
.admin__table table { width: 100%; border-collapse: collapse; }
.admin__table th, .admin__table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin__table th { background: var(--blue); color: #fff; font-weight: 700; }
.admin__table form { margin: 0; }

/* ------------------------------------------------------------- telefoni: manje, prozračnije, bez gužve */
@media (max-width: 600px) {
    :root { --gutter: 20px; }
    body { font-size: 1rem; line-height: 1.6; }
    .btn { min-height: 48px; font-size: .98rem; }
    .slider { height: 210px; }
    .slider--compact { height: 150px; }
    .ticker__list { gap: 36px; padding: 11px 36px 11px 0; }
    .ticker__list li { gap: 12px; font-size: .92rem; }
    .ticker__list .profil { width: 30px; }

    .hero { padding: 40px 0 52px; }
    .hero__grid { gap: 36px; }
    .hero__title { font-size: 2.35rem; }
    .hero__title::after { width: 64px; height: 5px; margin-top: 16px; }
    .hero__lead { margin: 18px 0 24px; font-size: 1rem; }
    .hero__cta { flex-direction: column; }
    .hero__cta .btn { width: 100%; }
    .hero__people { flex-direction: column; gap: 4px; font-size: .92rem; }
    .hero__fig { max-width: 330px; }
    .safe__shield { width: 64px; }
    .safe__title { font-size: 1.45rem; }
    .safe__text { font-size: .85rem; }
    .safe__tags li { padding: 3px 9px; font-size: .75rem; }

    .facts dt { font-size: 1.15rem; }
    .facts dd { font-size: .95rem; }
    .sec, .band.sec { padding: 56px 0; }
    .sec__head { margin-bottom: 28px; }
    .sec__title { font-size: 1.85rem; margin-bottom: 12px; }
    .sec__title::before { width: 34px; height: 4px; margin-bottom: 12px; }
    .sec__lead { font-size: 1rem; }
    .sec__head--row { align-items: flex-start; }
    .svc-grid { gap: 32px; }
    .svc__name { font-size: 1.3rem; }
    .svc__text { font-size: .95rem; }
    .svc__chip { width: 60px; height: 48px; }
    .svc__chip .profil { width: 38px; }

    .ba__tag { top: 10px; padding: 4px 10px; font-size: .9rem; }
    .ba__tag--pre { left: 10px; }
    .ba__tag--posle { right: 10px; }
    .ba figcaption { flex-direction: column; gap: 2px; font-size: .88rem; }
    .ba figcaption span:last-child { text-align: left; }

    .swatches { gap: 8px; margin: 22px 0 16px; }
    .swatch__chip { height: 34px; }
    .colors__now { font-size: 1.2rem; }

    .works { gap: 28px; }
    .work__name { font-size: 1.15rem; }
    .cf { padding: 20px 16px; }
    .direct a { font-size: 1.02rem; }
    .loc__map { height: 400px; }
    .loc__card { padding: 22px 18px; }
    .loc__title { font-size: 1.7rem; }
    .loc__facts dd { font-size: 1rem; }

    .page__title { font-size: 2.1rem; }
    .page__title::after { width: 56px; margin-top: 14px; }
    .page__lead { font-size: 1rem; }
    .cta-box { padding: 20px; }
    .cta-box p { font-size: 1.25rem; }
    .ftr__grid { gap: 28px; }
}

/* ------------------------------------------------------------- manje pokreta */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .roof__rain, .house__sheen { display: none; }
    .roof__water { opacity: .9; }
    .safe__title, .safe__text, .safe__tags { opacity: 1; }
    .ticker__track { animation: none; }
    .draw { stroke-dashoffset: 0; }
    .slide img { transform: none; }
}
