/* ==========================================================================
   TRI FAZE DOO – Električar Podgorica
   Izrada: Morava Digital – moravadigital.com
   ========================================================================== */

:root {
  --bg: #f7f6f3;
  --bg-2: #efede8;
  --white: #ffffff;
  --ink: #1c2733;
  --ink-2: #2b3846;
  --muted: #5d6874;
  --line: #e3e0d9;
  --line-2: #d4d0c7;
  --accent: #d9982b;        /* mirna amber */
  --accent-2: #b97e1c;
  --accent-soft: #f7ecd8;
  --navy: #1d2a37;
  --navy-2: #253545;
  --l1: #8b5a3c;            /* faza L1 – braon */
  --l2: #3a4048;            /* faza L2 – crna/grafit */
  --l3: #9aa0a6;            /* faza L3 – siva */
  --ok: #3f8f5f;
  --wa: #25d366;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -22px rgba(28, 39, 51, .28);
  --shadow-sm: 0 6px 18px -10px rgba(28, 39, 51, .22);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: clamp(1rem, .97rem + .15vw, 1.0625rem); line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
p { margin: 0; }
button { font: inherit; cursor: pointer; color: inherit; }
address { font-style: normal; }
svg { width: 1em; height: 1em; flex: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { --container: 860px; }
.accent { color: var(--accent-2); }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .96rem; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { min-height: 56px; padding: 0 1.7em; font-size: 1rem; }
.btn--sm { min-height: 42px; padding: 0 1.1em; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: #1b1407; box-shadow: 0 10px 24px -12px rgba(185, 126, 28, .7); }
.btn--primary:hover { background: #e2a43b; box-shadow: 0 14px 28px -12px rgba(185, 126, 28, .8); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); box-shadow: var(--shadow-sm); }
.btn--outline { border-color: var(--line-2); background: var(--white); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--ghost-light { border-color: rgba(255,255,255,.3); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--wa { background: var(--wa); color: #0b2b16; }
.btn .ico--fill { width: 1.2em; height: 1.2em; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--accent-2); }
.link-arrow .ico { transition: transform .3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Top traka ---------- */
.topbar { background: var(--navy); color: #d7dde4; font-size: .86rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; font-weight: 700; }
.topbar__alert { display: inline-flex; align-items: center; gap: 8px; }
.topbar__alert .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(217,152,43,.6); animation: beat 2s infinite; }
.topbar__meta { display: flex; gap: 22px; color: #aab4bf; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(217,152,43,.6); } 70% { box-shadow: 0 0 0 8px rgba(217,152,43,0); } 100% { box-shadow: 0 0 0 0 rgba(217,152,43,0); } }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(28,39,51,.35); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 800; font-size: 1.32rem; letter-spacing: -.02em; }
.brand small { font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: background .2s, color .2s; }
.nav__link:hover { background: var(--bg); }
.nav__link.is-active { color: var(--accent-2); }
.sub-toggle { display: none; }
.nav__item--sub > .nav__link .ico { width: .9em; height: .9em; transition: transform .3s; }
.sub {
  position: absolute; top: calc(100% + 8px); left: -20px; width: 560px; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.nav__item--sub:hover .sub, .nav__item--sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav__item--sub:hover > .nav__link .ico { transform: rotate(180deg); }
.sub a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: .92rem; font-weight: 600; transition: background .2s; }
.sub a:hover { background: var(--bg); }
.sub a .sub__ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); flex: none; }
.sub a .sub__ico svg { width: 18px; height: 18px; }
.sub__all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.sub__all a { color: var(--accent-2); }

.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease), opacity .25s, top .35s var(--ease); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero (početna) ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 85% 20%, rgba(217,152,43,.10), transparent 60%); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.7rem); margin: 18px 0 20px; }
.hero__lead { font-size: clamp(1.03rem, .98rem + .3vw, 1.18rem); color: var(--muted); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; }
.checks li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .94rem; color: var(--ink-2); }
.checks .ico { color: var(--ok); stroke-width: 2.4; }

/* Animacija struje */
.hero-anim { position: relative; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(10px, 2vw, 18px); }
.hero-anim svg { width: 100%; height: auto; display: block; }
.hero-anim__status { position: absolute; left: 22px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--muted); }
.hero-anim__status .led { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); transition: background .6s, box-shadow .6s; }
.hero-anim.is-live .hero-anim__status .led { background: var(--ok); box-shadow: 0 0 0 4px rgba(63,143,95,.15); }
.hero-anim__volt { position: absolute; right: 22px; top: 20px; padding: 8px 12px; border-radius: 10px; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.hero-anim__volt span { color: var(--accent); }

.svg-label { font: 700 11px var(--font); fill: #7a848f; letter-spacing: .08em; }
.svg-title { font: 800 11px var(--font); fill: #7a848f; letter-spacing: .16em; }
.toggle { transition: transform .5s var(--ease), fill .4s; fill: #b9bec4; }
.breaker.is-on .toggle { transform: translateY(-24px); fill: var(--ink); }
.breaker .bled { fill: #d4d0c7; transition: fill .4s; }
.breaker.is-on .bled { fill: var(--ok); }
.wire { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.pulse { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 6 94; stroke-dashoffset: 100; opacity: 0; filter: url(#glow); }
.hero-anim.is-live .pulse { opacity: 1; animation: flow 2.4s linear infinite; }
.hero-anim.is-live .pulse--2 { animation-delay: -.8s; }
.hero-anim.is-live .pulse--3 { animation-delay: -1.6s; }
@keyframes flow { to { stroke-dashoffset: 0; } }
.bulb-glow { opacity: 0; transition: opacity 1.2s; }
.hero-anim.is-live .bulb-glow { opacity: 1; animation: breathe 3.2s ease-in-out infinite; }
.bulb-fill { fill: #fff; transition: fill 1s; }
.hero-anim.is-live .bulb-fill { fill: #fdf3df; }
.boiler-led { fill: #d4d0c7; transition: fill .6s; }
.hero-anim.is-live .boiler-led { fill: var(--accent); }
.heat { opacity: 0; }
.hero-anim.is-live .heat { animation: heat 2.6s ease-in-out infinite; }
.hero-anim.is-live .heat--2 { animation-delay: .5s; }
.socket-led { fill: #d4d0c7; transition: fill .6s; }
.hero-anim.is-live .socket-led { fill: var(--ok); }
@keyframes breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes heat { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-10px); } }

/* ---------- Zaglavlje podstranica ---------- */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero__lines { position: absolute; right: -40px; bottom: -10px; width: min(560px, 60vw); opacity: .55; pointer-events: none; }
.page-hero__lines path { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.page-hero__grid { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.page-hero__icon { width: 92px; height: 92px; border-radius: 24px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); border: 1px solid #efd9b1; }
.page-hero__icon svg { width: 44px; height: 44px; }
.page-hero h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); margin: 12px 0 14px; }
.page-hero p.lead { color: var(--muted); font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); max-width: 62ch; }
.page-hero .hero__actions { margin-top: 26px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--muted); }
.breadcrumb a { color: var(--ink-2); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }

/* ---------- Sekcije ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--white { background: #fff; border-block: 1px solid var(--line); }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section__head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.section__head--left { margin-left: 0; text-align: left; align-items: flex-start; }
.section__head h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.55rem); margin: 14px 0 14px; }
.section__head p { color: var(--muted); font-size: clamp(1rem, .97rem + .2vw, 1.1rem); }

/* Kartice usluga */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.service-card__ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); transition: background .3s, color .3s; }
.service-card:hover .service-card__ico { background: var(--ink); color: #fff; }
.service-card__ico svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.12rem; }
.service-card p { color: var(--muted); font-size: .95rem; flex: 1; }

/* Prednosti */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.section--white .feature { background: var(--bg); }
.feature__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--accent-2); margin-bottom: 18px; }
.feature__ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .94rem; }

/* Proces */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: st; }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 16px; }
.step h3 { font-size: 1.04rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .94rem; }

/* Split blok */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__media { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); margin: 14px 0 16px; }
.split p { color: var(--muted); margin-bottom: 14px; }
.split .hero__actions { margin-top: 24px; }

/* Liste */
.list-check { display: grid; gap: 12px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; }
.list-check li .ico { color: var(--ok); margin-top: 4px; stroke-width: 2.4; }
.list-check--2 { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.box { padding: clamp(24px, 3.5vw, 36px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.box h3 { font-size: 1.18rem; margin-bottom: 18px; }
.box--warn { background: #fffaf1; border-color: #f0dcb6; }
.box--warn .list-check .ico { color: var(--accent-2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Tekst usluge */
.prose { max-width: 70ch; }
.prose p { color: var(--ink-2); margin-bottom: 16px; }
.prose h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2rem); margin: 0 0 16px; }

/* Hitan kvar */
.emergency { background: var(--navy); color: #d7dde4; position: relative; overflow: hidden; }
.emergency::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0%, rgba(217,152,43,.14), transparent 60%); pointer-events: none; }
.emergency__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.emergency .eyebrow { color: var(--accent); }
.emergency h2 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); margin: 14px 0 14px; }
.emergency__lead { color: #b9c3cd; font-size: 1.08rem; max-width: 52ch; }
.emergency__phone { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; }
.emergency__phone span.ring { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #1b1407; position: relative; flex: none; }
.emergency__phone span.ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); opacity: .6; animation: ring 2s var(--ease) infinite; }
.emergency__phone .ico--fill { width: 26px; height: 26px; }
@keyframes ring { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.emergency .hero__actions { margin-top: 22px; }
.emergency__cards { display: grid; gap: 14px; }
.emergency__card { padding: 24px; border-radius: var(--radius); background: var(--navy-2); border: 1px solid rgba(255,255,255,.08); }
.emergency__card h3 { color: #fff; font-size: 1.04rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.emergency__card h3 .ico { color: var(--accent); }
.emergency__card li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; padding: 4px 0; color: #c9d1d9; }
.emergency__card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 10px; flex: none; }

/* CTA traka */
.cta { padding: clamp(28px, 4vw, 44px); border-radius: 24px; background: var(--accent-soft); border: 1px solid #efd9b1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { font-size: clamp(1.35rem, 1.05rem + 1.3vw, 1.9rem); margin-bottom: 6px; }
.cta p { color: var(--ink-2); }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b97e1c' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }
.faq details a { color: var(--accent-2); font-weight: 700; }
.faq-more { text-align: center; margin-top: 26px; color: var(--muted); }
.faq-more a { color: var(--accent-2); font-weight: 700; }

/* Galerija */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.filter { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 700; font-size: .9rem; transition: background .2s, color .2s, border-color .2s; }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery__item { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: .8rem; font-weight: 700; }
.gallery__item.is-hidden { display: none; }

/* Područje rada */
.areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.areas li { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); transition: border-color .25s, transform .3s var(--ease); }
a.contact-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.contact-card__ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); flex: none; }
.contact-card__ico svg { width: 21px; height: 21px; }
.contact-card__ico--wa { background: #e5f8ec; color: #1d9b50; }
.contact-card__ico--viber { background: #ece9fd; color: #6b57e8; }
.contact-card small { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.contact-card strong { font-size: 1rem; }

.form { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: grid; gap: 16px; }
.form h2, .form h3 { font-size: 1.4rem; }
.form > p { color: var(--muted); font-size: .95rem; margin-top: -8px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg);
  font: inherit; font-size: 1rem; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6874' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; cursor: pointer; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(217,152,43,.15); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #d65151; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-2); flex: none; }
.check.is-invalid span { color: #c43d3d; }
.form__status { min-height: 1.4em; font-weight: 700; text-align: center; font-size: .95rem; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: #c43d3d; }
.form.is-loading button[type="submit"] { opacity: .7; pointer-events: none; }
.map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: clamp(300px, 38vw, 430px); background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(.95); }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 700; }

/* Povezane usluge */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related a { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); font-weight: 700; transition: border-color .25s, transform .3s var(--ease); }
.related a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.related .sub__ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); flex: none; }
.related .sub__ico svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; }
.footer__about p { color: var(--muted); font-size: .94rem; margin: 14px 0 20px; max-width: 36ch; }
.footer h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer li { margin-bottom: 9px; font-size: .94rem; color: var(--ink-2); }
.footer li a:hover { color: var(--accent-2); }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink-2); transition: background .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 48px; padding: 22px 0; border-top: 1px solid var(--line); font-size: .87rem; color: var(--muted); }
.footer__bottom a { font-weight: 700; color: var(--ink-2); }
.footer__bottom a:hover { color: var(--accent-2); }

/* Mobilna traka za poziv */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgba(28,39,51,.4); }
.callbar .btn { flex: 1; min-height: 48px; padding: 0 .8em; font-size: .92rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20,27,35,.92); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 100%); max-height: 82vh; border-radius: 14px; animation: zoom .35s var(--ease); }
.lightbox button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.7rem; line-height: 1; }
.lightbox button:hover { background: var(--accent); color: #1b1407; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 18px; top: 50%; translate: 0 -50%; }
@keyframes zoom { from { opacity: 0; transform: scale(.96); } }

/* 404 */
.notfound { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.notfound strong { display: block; font-size: clamp(4rem, 3rem + 6vw, 8rem); line-height: 1; color: var(--accent); letter-spacing: -.04em; }
.notfound .hero__actions { justify-content: center; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .services, .related { grid-template-columns: repeat(2, 1fr); }
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .topbar__meta { display: none; }
  .topbar__inner { justify-content: center; }
  .burger { display: block; z-index: 120; }
  .nav {
    position: fixed; inset: 0; z-index: 110; background: #fff;
    flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 20px;
    padding: calc(var(--header-h) + 50px) var(--gutter) 32px; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__link { flex: 1; justify-content: center; font-size: 1.15rem; padding: 16px 12px; }
  .nav__item--sub > .nav__link .ico { display: none; }
  .sub-toggle { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: var(--bg); border-radius: 10px; }
  .sub-toggle .ico { transition: transform .3s; }
  .sub-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
  .nav__item--sub { padding-left: 48px; }
  .sub { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; display: none; grid-template-columns: 1fr; }
  .nav__item--sub.is-open .sub { display: grid; }
  .nav__item--sub:hover .sub { opacity: 1; }
  .sub a { justify-content: center; }
  .sub a .sub__ico { display: none; }
  .nav__cta { align-self: center; }
  body.menu-open { overflow: hidden; }

  .hero__grid, .split, .emergency__grid { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero__content { display: flex; flex-direction: column; align-items: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .checks { justify-content: center; }
  .hero-anim { max-width: 560px; margin-inline: auto; width: 100%; }

  .page-hero { text-align: center; }
  .page-hero__grid { grid-template-columns: 1fr; justify-items: center; }
  .page-hero p.lead { margin-inline: auto; }
  .page-hero .hero__actions { justify-content: center; }
  .breadcrumb { justify-content: center; }

  .split { text-align: center; }
  .split .hero__actions { justify-content: center; }
  .split .list-check { text-align: left; max-width: 520px; margin-inline: auto; }

  .emergency { text-align: center; }
  .emergency__lead { margin-inline: auto; }
  .emergency .hero__actions { justify-content: center; }
  .emergency__card { text-align: left; }

  .cta { flex-direction: column; text-align: center; }
  .cta__actions { justify-content: center; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .callbar { display: flex; }
  body { padding-bottom: 72px; }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .section, .section__head, .section__head--left { text-align: center; }
  .section__head--left { align-items: center; margin-inline: auto; }
  .services, .features, .steps, .related, .two-col { grid-template-columns: 1fr; }
  .services, .features, .steps, .related { max-width: 480px; margin-inline: auto; }
  .service-card, .feature, .step, .box, .form, .contact-card { text-align: center; }
  .service-card, .contact-card { align-items: center; }
  .feature__ico, .service-card__ico { margin-inline: auto; }
  .contact-card { flex-direction: column; gap: 10px; }
  .list-check, .list-check--2 { grid-template-columns: 1fr; text-align: left; max-width: 480px; margin-inline: auto; }
  .box h3 { text-align: center; }
  .prose { margin-inline: auto; text-align: center; }
  .related a { justify-content: center; }
  .form__row { grid-template-columns: 1fr; }
  .field { text-align: left; }
  .check { text-align: left; }
  .gallery { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .footer, .footer__about { text-align: center; }
  .footer__grid { grid-template-columns: 1fr; justify-items: center; }
  .footer__about p { margin-inline: auto; }
  .socials { justify-content: center; }
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; }
  .hero-anim__status { left: 50%; translate: -50% 0; bottom: 14px; }
  .hero-anim__volt { right: 14px; top: 14px; }
  .emergency__phone { justify-content: center; }
  .hours td { text-align: left; }
}

@media (max-width: 420px) {
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .brand { font-size: 1.15rem; }
  .emergency__phone { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .header, .callbar, .map, .form, .hero-anim { display: none !important; }
  body { background: #fff; }
}

/* sitne dopune */
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .topbar { font-size: .84rem; }
}
.section__head .eyebrow { color: var(--accent-2); font-size: .8rem; }
.emergency .section__head .eyebrow, .emergency .eyebrow { color: var(--accent); }
.service-card--cta { grid-column: span 2; background: var(--navy); border-color: var(--navy); color: #c9d1d9; justify-content: center; }
.service-card--cta:hover { transform: none; }
.service-card--cta h3 { color: #fff; font-size: 1.3rem; }
.service-card--cta p { color: #b9c3cd; flex: 0; max-width: 56ch; }
.service-card--cta .service-card__ico { background: var(--accent); color: #1b1407; }
.service-card--cta:hover .service-card__ico { background: var(--accent); color: #1b1407; }
@media (max-width: 720px) {
  .service-card--cta { grid-column: auto; }
  .service-card--cta .cta__actions { justify-content: center; }
}
.page-hero__lines { top: 50%; bottom: auto; translate: 0 -50%; opacity: .45; }
@media (max-width: 960px) { .page-hero__lines { opacity: .18; } }
@media (max-width: 720px) { .eyebrow::before { display: none; } .eyebrow { justify-content: center; text-align: center; } }
.sub { left: 50%; transform: translate(-50%, 8px); }
.nav__item--sub:hover .sub, .nav__item--sub:focus-within .sub { transform: translate(-50%, 0); }
@media (max-width: 960px) {
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav__item--sub > .nav__link { order: 1; }
  .nav__item--sub > .sub-toggle { order: 2; }
  .nav__item--sub > .sub { order: 3; transform: none; left: auto; }
  .nav__item--sub:hover .sub { transform: none; }
}
