/* =========================================================
   JMK Group 2019 doo — stilovi
   Boje i tipografija preuzeti sa vizit karte.
   ========================================================= */

/* Montserrat (variable, OFL licenca) — lokalno hostovan */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* boje sa vizitke */
  --red: #E4091F;
  --red-2: #C90316;
  --red-3: #A3020F;
  --ink: #1B2023;
  --ink-2: #4A5157;
  --ink-3: #6B7278;
  --fog: #EEF0F1;
  --line: #D8DCDF;
  --paper: #FFFFFF;

  --font: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
  --chamfer: 12px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- logo ---------- */
.mark-ink { fill: var(--mark-ink, var(--ink)); }
.mark-red { fill: var(--mark-red, var(--red)); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  width: 76px;
  aspect-ratio: 310 / 108;
  height: auto;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-weight: 700; font-size: 0.95rem; letter-spacing: -0.005em; }
.brand__tag {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  color: var(--ink-2);
}
.brand--light { --mark-ink: #fff; color: #fff; }
.brand--light .brand__tag { color: rgba(255, 255, 255, 0.7); }

/* ---------- dugmad ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  font: 600 1rem/1 var(--font);
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  border: 0;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn:focus-visible { clip-path: none; }
.btn__icon { width: 18px; height: 18px; flex: none; }
.btn--red { background: var(--red); }
.btn--red:hover { background: var(--red-3); }
.btn--ink { background: var(--ink); }
.btn--ink:hover { background: #343B40; }
.btn--line {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
  clip-path: none;
}
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.95rem; --chamfer: 9px; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- zaglavlje ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav > a:not(.btn) {
  position: relative;
  padding: 6px 0;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav > a:not(.btn):hover::after,
.nav > a:not(.btn):focus-visible::after { transform: scaleX(1); }
.nav__call { margin-left: 8px; white-space: nowrap; }

/* izbor jezika: SR | EN */
.lang {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.lang a {
  padding: 8px 6px;
  color: var(--ink-3);
  text-decoration: none;
}
.lang a + a { border-left: 1px solid var(--line); }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--red); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 24px; height: 2.5px;
  margin-inline: auto;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7.5px; }
.nav-toggle__bars::after { top: 7.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero__inner {
  display: flex;
  align-items: center;
  min-height: min(720px, calc(100svh - var(--header-h)));
}
.hero__copy {
  width: min(620px, 51%);
  padding-block: 64px 104px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__lead {
  margin-top: 26px;
  max-width: 50ch;
  font-size: 1.125rem;
  color: var(--ink-2);
}
.hero .actions { margin-top: 36px; }
.hero__address {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-3);
}
.hero__address svg { width: 16px; height: 16px; color: var(--red); flex: none; }

.hero__media {
  position: absolute;
  inset: 0 0 0 50%;
  z-index: -1;
  clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 45%;
}
.hero__facets {
  position: absolute;
  right: 0;
  bottom: -1px;
  z-index: -1;
  width: min(38vw, 560px);
  height: auto;
  pointer-events: none;
}

/* ---------- sekcije ---------- */
.section { padding-block: clamp(80px, 10vw, 136px); }
.section-head { max-width: 660px; }
.section h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.lead {
  margin-top: 18px;
  max-width: 58ch;
  font-size: 1.125rem;
  color: var(--ink-2);
}

/* ---------- delatnost ---------- */
.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
  margin-top: 56px;
}
.services__visual {
  position: relative;
  margin: 0;
  padding: 48px 0;
}
.services__visual::before {
  content: "";
  position: absolute;
  inset: 0 6% 0 0;
  background: var(--fog);
  clip-path: polygon(0 0, 100% 0, 74% 100%, 0 100%);
}
.services__visual::after {
  content: "";
  position: absolute;
  right: 6%;
  top: 0;
  width: 26%;
  height: 46%;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.services__visual img {
  position: relative;
  z-index: 1;
  width: min(290px, 66%);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 24px 30px rgba(27, 32, 35, 0.22));
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 6px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.service__mark {
  width: 30px;
  aspect-ratio: 108 / 74;
  height: auto;
  margin-top: 7px;
  fill: var(--red);
}
.service h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.service p {
  grid-column: 2;
  color: var(--ink-2);
  max-width: 54ch;
}

/* ---------- nabavka (koraci) ---------- */
.route { background: var(--fog); }
.route__steps {
  --node: 72px;
  --gap: 28px;
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gap);
}
.step { position: relative; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--node) / 2 - 1px);
  left: calc(var(--node) + 10px);
  right: calc(var(--gap) * -1 + 10px);
  height: 2px;
  background: var(--line);
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: calc(var(--node) / 2 - 8px);
  left: calc((100% + var(--gap) + var(--node)) / 2 - 6px);
  width: 12px;
  height: 16px;
  background: var(--red);
  clip-path: polygon(0 0, 40% 0, 100% 50%, 40% 100%, 0 100%, 60% 50%);
}
.step__node {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  background: #fff;
  border: 1.5px solid var(--line);
}
.step__icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step__num {
  position: absolute;
  top: -11px;
  right: -11px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}
.step h3 {
  margin-top: 24px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.step p {
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- tipovi panela ---------- */
.types__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  margin-top: 56px;
}
.type__art {
  display: grid;
  place-items: center;
  aspect-ratio: 14 / 9;
  background: var(--fog);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
}
.type__art svg { width: 88%; height: auto; }
.type h3 {
  margin-top: 24px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.type p { margin-top: 8px; color: var(--ink-2); }
.art-label { font-family: var(--font); font-size: 14px; font-weight: 700; fill: var(--ink-2); }
.art-label--red { fill: var(--red); }
.art-axis { font-family: var(--font); font-size: 12px; font-weight: 500; fill: var(--ink-3); }

.service p a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 0.2em; }
.service p a:hover { color: var(--red); }

/* ---------- kako radi (dijagram) ---------- */
.energy {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: var(--ink) url("../img/paneli-detalj.jpg") center / cover no-repeat;
}
.energy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(27, 32, 35, 0.97) 0%, rgba(27, 32, 35, 0.92) 45%, rgba(27, 32, 35, 0.74) 100%);
}
.energy__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.energy .lead { color: rgba(255, 255, 255, 0.78); }
.energy__state {
  margin-top: 32px;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--red);
  font-weight: 500;
  color: #fff;
  min-height: 3.6em;
}

.flow {
  --flow-bg: #fff;
  --flow-fg: var(--ink);
  --flow-muted: var(--ink-3);
  --wire: #D8DCDF;
  --node-bg: #fff;
  --node-line: #D8DCDF;
  --node-icon: var(--ink);
  margin: 0;
  padding: 22px 22px 18px;
  background: var(--flow-bg);
  color: var(--flow-fg);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  transition: background-color 0.6s ease, color 0.6s ease;
}
.flow[data-mode="night"] {
  --flow-bg: #262D31;
  --flow-fg: #fff;
  --flow-muted: #9AA2A8;
  --wire: #3F474D;
  --node-bg: #2F373C;
  --node-line: #485157;
  --node-icon: #E6E9EB;
}
.flow__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.flow__title { font-weight: 700; font-size: 0.95rem; }

.toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--fog);
  transition: background-color 0.6s ease;
}
.flow[data-mode="night"] .toggle { background: #1E2427; }
.toggle button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px;
  font: 600 0.88rem/1 var(--font);
  color: var(--flow-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.toggle button svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.toggle button[data-mode-btn="night"] svg { fill: currentColor; stroke: none; }
.toggle button[aria-pressed="true"] { background: var(--red); color: #fff; }

.flow__svg { width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.flow__video { width: 100%; height: auto; margin-top: 10px; }

.wire {
  fill: none;
  stroke: var(--wire);
  stroke-width: 2;
  transition: stroke 0.6s ease;
}
.pulse {
  fill: none;
  stroke: var(--red);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 0 15;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.pulse.is-in,
.pulse.is-out {
  opacity: 1;
  animation: flow-dots 1.2s linear infinite;
}
.pulse.is-out { animation-direction: reverse; }
@keyframes flow-dots {
  from { stroke-dashoffset: 30; }
  to { stroke-dashoffset: 0; }
}

.node__box {
  fill: var(--node-bg);
  stroke: var(--node-line);
  stroke-width: 1.5;
  transition: fill 0.6s ease, stroke 0.6s ease;
}
.node--hub .node__box { stroke: var(--red); stroke-width: 2; }
.node__icon {
  fill: none;
  stroke: var(--node-icon);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.6s ease, opacity 0.6s ease;
}
.node__name {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  text-anchor: middle;
  fill: var(--flow-fg);
  transition: fill 0.6s ease;
}
.node__state {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  text-anchor: middle;
  fill: var(--red);
}
.node.is-idle .node__state { fill: var(--flow-muted); }
.node.is-idle .node__icon { opacity: 0.4; }

.battery-fill {
  fill: var(--red);
  stroke: none;
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(0.9);
  transition: transform 6s linear;
}
.flow[data-mode="night"] .battery-fill { transform: scaleX(0.25); }

.flow__note {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--flow-muted);
  text-align: center;
}

/* ---------- kontakt ---------- */
.contact { background: var(--fog); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
  margin-top: 56px;
}
.actions--contact { margin-top: 28px; }

/* digitalna vizit karta — skalira se kao prava kartica */
.vcard-wrap { container-type: inline-size; container-name: vcard; }
.vcard {
  position: relative;
  aspect-ratio: 1063 / 591;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px -28px rgba(27, 32, 35, 0.45);
}
.vcard__facets {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.vcard__qr {
  position: absolute;
  left: 6.4cqw;
  top: 3.4cqw;
  width: 17.4cqw;
  padding: 1cqw;
  background: #fff;
}
.vcard__qr svg { width: 100%; height: auto; }

.vcard__logo {
  position: absolute;
  left: 61.6cqw;
  top: 5.2cqw;
  width: 32cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.vcard__logo svg { width: 28.8cqw; aspect-ratio: 310 / 108; height: auto; }
.vcard__company {
  margin-top: 1.9cqw;
  font-size: 2.95cqw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.005em;
}
.vcard__tag {
  margin-top: 1.1cqw;
  font-size: 2.2cqw;
  line-height: 1;
  letter-spacing: 0.2em;
  color: var(--ink-2);
}

.vcard__person {
  position: absolute;
  left: 7.3cqw;
  top: 23cqw;
}
.vcard__name {
  font-size: 6.3cqw;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.vcard__role {
  margin-top: 1.4cqw;
  font-size: 2.3cqw;
  line-height: 1;
  letter-spacing: 0.24em;
  color: var(--ink-2);
}

.vcard__lines {
  position: absolute;
  left: 7.3cqw;
  top: 35.2cqw;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.6cqw;
}
.vcard__lines li {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  font-size: 2.25cqw;
  line-height: 1;
}
.vcard__lines a { text-decoration: none; }
.vcard__lines a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 0.2em; }
.vcard__dot {
  display: grid;
  place-items: center;
  width: 3cqw;
  height: 3cqw;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  flex: none;
}
.vcard__dot svg { width: 58%; height: 58%; }

/* uska kartica: bez proporcija, veća slova, bez QR koda (telefon je već u ruci) */
@container vcard (max-width: 540px) {
  .vcard {
    aspect-ratio: auto;
    padding: 30px 24px 120px;
  }
  .vcard__facets:first-of-type { display: none; }
  .vcard__facets:last-of-type { inset: auto 0 0 auto; width: 100%; height: 150px; }
  .vcard__qr { display: none; }
  .vcard__logo,
  .vcard__person,
  .vcard__lines { position: static; width: auto; }
  .vcard__logo { align-items: flex-start; text-align: left; }
  .vcard__logo svg { width: 120px; }
  .vcard__company { margin-top: 12px; font-size: 1rem; }
  .vcard__tag { margin-top: 6px; font-size: 0.78rem; }
  .vcard__person { margin-top: 32px; }
  .vcard__name { font-size: clamp(1.7rem, 9cqw, 2.3rem); white-space: normal; }
  .vcard__role { margin-top: 8px; font-size: 0.85rem; }
  .vcard__lines { margin-top: 24px; gap: 14px; }
  .vcard__lines li { font-size: 0.95rem; gap: 12px; line-height: 1.35; align-items: flex-start; }
  .vcard__dot { width: 28px; height: 28px; }
}

.company__title {
  font-size: 1.15rem;
  font-weight: 700;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.company__list { margin: 0; }
.company__list > div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.company__list dt {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-3);
  padding-top: 2px;
}
.company__list dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.company__list dd a { text-decoration: none; }
.company__list dd a:hover { color: var(--red); }
.company__list .company__map {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------- podnožje ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding-block: 48px;
  font-size: 0.92rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px 48px;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__meta { line-height: 1.6; }
.site-footer__copy { white-space: nowrap; }

/* ---------- responzivno ---------- */
@media (max-width: 1080px) {
  .nav { gap: 24px; }
  .services__grid,
  .energy__grid,
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .services__visual { max-width: 520px; }
  .energy__copy { max-width: 640px; }
  .contact__grid { max-width: 760px; }

  /* koraci nabavke idu vertikalno */
  .route__steps { grid-template-columns: minmax(0, 1fr); max-width: 640px; --node: 64px; }
  .step {
    display: grid;
    grid-template-columns: var(--node) minmax(0, 1fr);
    column-gap: 24px;
    align-items: start;
  }
  .step__node { grid-row: span 2; }
  .step h3 { margin-top: 4px; }
  .step p { grid-column: 2; }
  .step:not(:last-child)::after {
    top: calc(var(--node) + 10px);
    bottom: calc(var(--gap) * -1 + 10px);
    left: calc(var(--node) / 2 - 1px);
    right: auto;
    width: 2px;
    height: auto;
  }
  .step:not(:last-child)::before {
    top: calc((100% + var(--gap) + var(--node)) / 2 - 6px);
    left: calc(var(--node) / 2 - 8px);
    width: 16px;
    height: 12px;
    clip-path: polygon(0 0, 50% 60%, 100% 0, 100% 40%, 50% 100%, 0 40%);
  }
}

@media (max-width: 760px) {
  .types__grid { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
}

/* pun meni + SR|EN traže ~1140px (engleski), pa meni sa tri crtice počinje ispod 1200px */
@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(27, 32, 35, 0.35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav > a:not(.btn) { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--fog); }
  .nav > a:not(.btn)::after { display: none; }
  .nav__call { margin: 18px 0 0; }
  /* jezik ostaje vidljiv u zaglavlju, levo od dugmeta za meni */
  .lang { margin-left: auto; }
  .nav-toggle { order: 1; margin-left: 0; }

}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .hero__inner { min-height: 0; }
  .hero__copy { width: 100%; max-width: 620px; padding-block: 48px 40px; }
  .hero__media {
    position: relative;
    inset: auto;
    z-index: 0;
    height: clamp(260px, 62vw, 460px);
    clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%);
  }
  .hero { display: flex; flex-direction: column-reverse; }
  .hero__facets { z-index: 1; width: 78vw; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand__mark { width: 62px; }
  .brand__name { font-size: 0.88rem; }
  .brand__tag { font-size: 0.66rem; }
  /* na telefonu samo link ka drugom jeziku, da stane pored logoa */
  .site-header__inner { gap: 10px; }
  .brand { gap: 10px; }
  .lang a { padding: 8px 4px; }
  .lang a[aria-current] { display: none; }
  .lang a + a { border-left: 0; }
  .hero__lead, .lead { font-size: 1.04rem; }
  .actions .btn { flex: 1 1 100%; }
  .flow { padding: 16px 12px 14px; margin-inline: calc(var(--gutter) * -0.5); }
  .node__name { font-size: 21px; }
  .node__state { font-size: 18px; }
  .company__list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* bez animacije tok se prikazuje kao isprekidana linija */
  .pulse.is-in, .pulse.is-out { stroke-dasharray: 2 10; stroke-width: 3; }
}
