/* ==========================================================================
   Mediagon Hrvatska — stilovi
   Boje:  plava (logo) #054CB3 · tinta #071A36 · čelik #8A93A1 · magla #EEF2F7
          papir #F7F9FC · švicarska crvena #E3261B · kamenac #CFC6B3
   Pismo: Archivo (naslovi prošireni, tekst normalan) · IBM Plex Mono (podaci)
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-mono-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-mono-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plex-mono-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plex-mono-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #054CB3;
  --blue-deep: #043B8C;
  --blue-soft: #DCE8FB;
  --plate: #1D3BD4;
  --ink: #071A36;
  --ink-2: #44526B;
  --steel: #8A93A1;
  --line: #D8DEE7;
  --mist: #EEF2F7;
  --paper: #F7F9FC;
  --white: #FFFFFF;
  --red: #E3261B;
  --scale: #CFC6B3;
  --scale-edge: #A99F88;

  --m-steel: #0B7FCB;
  --m-copper: #D4322C;
  --m-pe: #2F9E44;

  --sans: "Archivo", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 72px;
  --radius: 10px;
  --radius-lg: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: var(--blue);
}

*, *::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;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }

p { text-wrap: pretty; }

h1, h2, h3, h4 { text-wrap: balance; }

h1 {
  font-size: clamp(2.5rem, 6.1vw, 5.4rem);
  font-stretch: 122%;
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.028em;
}
h2 {
  font-size: clamp(1.85rem, 3.7vw, 3.1rem);
  font-stretch: 116%;
  font-weight: 680;
  line-height: 1.05;
  letter-spacing: -.022em;
}
h3 {
  font-size: 1.2rem;
  font-stretch: 108%;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.01em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--blue); color: #fff; }

.container {
  width: 100%;
  max-width: calc(1240px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 8px;
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 1rem; }

.muted { color: var(--ink-2); }

/* ---------- natpisi iznad naslova ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--mono);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1.5px; background: currentColor; flex: none;
}
.eyebrow:has(.swiss)::before { display: none; }

.swiss {
  width: 18px; height: 18px; flex: none; border-radius: 3px;
  background:
    linear-gradient(#fff, #fff) center / 10px 3.2px no-repeat,
    linear-gradient(#fff, #fff) center / 3.2px 10px no-repeat,
    var(--red);
}

.lead {
  font-size: clamp(1.1rem, 1.45vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
}
.lead--sm { font-size: clamp(1.05rem, 1.25vw, 1.18rem); }

/* ---------- gumbi ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  padding: .95rem 1.45rem;
  border-radius: var(--radius);
  font-weight: 620; font-stretch: 106%; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); }
.btn--ghost { border-color: rgba(7, 26, 54, .22); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost:hover .icon { transform: none; }
.btn--sm { padding: .7rem 1.1rem; font-size: .94rem; }

/* ==========================================================================
   Zaglavlje
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(247, 249, 252, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.header.is-stuck { border-bottom-color: var(--line); }

.header__row {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; flex: none; }
.brand img { width: 172px; height: auto; }
.brand__note {
  font-family: var(--mono); font-size: .64rem; line-height: 1.35;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  padding-left: 1rem; border-left: 1px solid var(--line);
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav a {
  position: relative;
  font-size: .95rem; font-weight: 520; text-decoration: none; color: var(--ink);
  padding-block: .5rem; white-space: nowrap;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--blue); }
.nav a.is-active::after { transform: scaleX(1); }
.nav__contact { display: none; }

.header__actions { display: flex; align-items: center; gap: 1.1rem; flex: none; }
.header__phone {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .86rem; font-weight: 500;
  text-decoration: none; color: var(--ink);
}
.header__phone:hover { color: var(--blue); }

.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 8px;
  align-items: center; justify-content: center;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), background-color .2s;
}
.menu-btn__bars { position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -7px; }
.menu-btn__bars::after { top: 7px; }
.menu-open .menu-btn__bars { background: transparent; }
.menu-open .menu-btn__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1400px) {
  .brand__note { display: none; }
}
@media (max-width: 1160px) {
  .header__phone span { display: none; }
  .header__phone { width: 44px; height: 44px; justify-content: center; border-radius: 8px; }
}
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .header__phone { display: none; }
  .nav {
    /* zaglavlje ima backdrop-filter pa je ono referentni okvir: visinu zadajemo izričito */
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.25rem var(--gutter) 6rem;
    background: var(--paper);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a {
    font-size: 1.6rem; font-stretch: 112%; font-weight: 650; letter-spacing: -.02em;
    padding-block: 1rem; border-bottom: 1px solid var(--line);
  }
  .nav a::after { display: none; }
  .nav__contact { display: block; color: var(--blue) !important; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 520px) {
  .header__cta { display: none; }
  .brand img { width: 150px; }
}

/* ==========================================================================
   Uvod
   ========================================================================== */
.hero { padding-top: clamp(2rem, 5vw, 4.5rem); overflow: hidden; }

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
}

.hero__copy h1 { margin-bottom: clamp(1.25rem, 2.4vw, 2rem); }
.hero__copy .lead { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero__figure {
  position: relative;
  aspect-ratio: 1 / .96;
  isolation: isolate;
}
.hero__figure::before {
  content: ""; position: absolute; inset: -6% -10%; z-index: -1;
  background-image:
    linear-gradient(rgba(5, 76, 179, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 76, 179, .09) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
}
.hero__img {
  position: absolute; left: 50%; top: 50%;
  width: 66%; height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 30px 40px rgba(7, 26, 54, .16));
}
.hero__leaders {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
}
.hero__leaders path {
  fill: none; stroke: var(--steel); stroke-width: 1; vector-effect: non-scaling-stroke;
  stroke-dasharray: 3 3;
}

.callout { position: absolute; max-width: 11.5rem; }
.callout dt {
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: .15rem;
}
.callout dd { font-weight: 640; font-stretch: 106%; font-size: 1.02rem; line-height: 1.2; }
.callout--tl { left: 0; top: 3%; }
.callout--tr { right: 0; top: 3%; text-align: right; }
.callout--bl { left: 0; bottom: 3%; }
.callout--br { right: 0; bottom: 3%; text-align: right; }

.without {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-block: 1.35rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .8rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.without li { display: flex; align-items: center; gap: .6rem; }
.without li::before {
  content: ""; width: 7px; height: 7px; background: var(--blue); border-radius: 1px; flex: none;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__figure { max-width: 520px; width: 100%; margin-inline: auto; aspect-ratio: auto; }
  .hero__leaders { display: none; }
  .hero__img { position: static; transform: none; width: 72%; margin: .5rem auto 1.75rem; }
  .callouts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 1.5rem; }
  .callout { position: static; max-width: none; text-align: left !important;
    padding-top: .8rem; border-top: 1px solid var(--line); }
  .without { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .hero__cta .btn { flex: 1 1 100%; }
  .without { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); font-size: .72rem; }
}

/* ==========================================================================
   Sekcije
   ========================================================================== */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(4rem, 7vw, 6.5rem); }
.section--mist { background: var(--mist); }

.section__head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--wide { max-width: 56rem; }
.section__head h2 { margin-bottom: 1.25rem; }
.section__head--wide .lead { max-width: 44em; }

/* ---------- problem ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.split__head h2 { margin-bottom: 1.25rem; }
.cost {
  display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: .5rem 2rem;
  padding-block: 1.6rem; border-top: 1px solid var(--line);
}
.cost:last-child { border-bottom: 1px solid var(--line); }
.cost p { color: var(--ink-2); }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .cost { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- shema cijevi ---------- */
.pipe-wrap { margin-bottom: clamp(3rem, 6vw, 5rem); }
.pipe { display: block; width: 100%; height: clamp(210px, 25vw, 310px); }
.pipe__crust { fill: var(--scale); stroke: var(--scale-edge); stroke-width: 1; stroke-linejoin: round; }
#pipe-crystals path { fill: var(--scale); stroke: var(--scale-edge); stroke-width: 1.2; stroke-linejoin: round; }
#pipe-dust circle { fill: #B9AE95; }
.pipe__device circle { fill: #DCE1E8; stroke: #7B8390; stroke-width: 1.2; }
.pipe__flow--in { animation: flow 16s linear infinite; }
.pipe__flow--out { animation: flow 8s linear infinite; }
@keyframes flow { to { transform: translateX(520px); } }

.pipe__legend {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem;
  margin-top: 1.5rem;
  font-size: .95rem; color: var(--ink-2); line-height: 1.5;
}
.pipe__legend strong {
  display: block; margin-bottom: .3rem;
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.pipe__legend p { max-width: 19rem; }
.pipe__legend-mid { justify-self: center; text-align: center; }
.pipe__legend p:last-child { justify-self: end; text-align: right; }

@media (max-width: 720px) {
  .pipe__legend { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .pipe__legend p, .pipe__legend-mid, .pipe__legend p:last-child {
    justify-self: start; text-align: left; max-width: none;
    padding-left: 1rem; border-left: 2px solid var(--line);
  }
  .pipe__legend-mid { border-left-color: var(--plate); }
}

/* ---------- koraci ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}
.step { border-top: 2px solid var(--ink); padding-top: 1.4rem; }
.step__no {
  display: block; margin-bottom: 1.1rem;
  font-family: var(--mono); font-size: .82rem; font-weight: 500; color: var(--blue);
}
.step__no::before { content: "0"; }
.step h3 { margin-bottom: .6rem; }
.step p { color: var(--ink-2); }

.notes {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(3rem, 6vw, 5rem); align-items: stretch;
}
.note {
  background: var(--white); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.note h3 { margin-bottom: .6rem; }
.note p { color: var(--ink-2); }
.note--quote { background: var(--ink); color: #fff; display: flex; align-items: center; }
.note--quote p {
  color: #fff; font-size: clamp(1.2rem, 2vw, 1.55rem); font-stretch: 108%;
  font-weight: 520; line-height: 1.35; letter-spacing: -.012em;
}

@media (max-width: 860px) {
  .steps, .notes { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- primjena ---------- */
.uses__tabs, .models__tabs { display: flex; gap: .5rem; }
.uses__tabs {
  overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter); padding-bottom: 2px;
}
.uses__tabs::-webkit-scrollbar { display: none; }
.uses__tabs [role="tab"] {
  flex: none; padding: .7rem 1.15rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white);
  font-weight: 560; font-size: .97rem; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.uses__tabs [role="tab"]:hover { border-color: var(--ink); }
.uses__tabs [role="tab"][aria-selected="true"] {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.uses__panel {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  margin-top: 2rem; padding-top: 2.25rem; border-top: 1px solid var(--line);
}
.uses__panel[hidden] { display: none; }
.uses__intro h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-stretch: 114%; margin-bottom: .9rem; }
.uses__intro p { color: var(--ink-2); }
.uses__model {
  margin-top: 1.4rem; font-family: var(--mono); font-size: .84rem; line-height: 1.6;
}
.uses__model a, .muted a, .howto a, .faq__list a, .finder__tip a {
  color: var(--blue); font-weight: 600; text-underline-offset: 3px;
}
.uses__model a:hover, .muted a:hover, .howto a:hover, .faq__list a:hover { text-decoration-thickness: 2px; }

.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; align-content: start; }
.checks li {
  position: relative; padding: .95rem 0 .95rem 2.1rem;
  border-bottom: 1px solid var(--line); line-height: 1.45;
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem; width: 1.25rem; height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23054CB3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 860px) {
  .uses__panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .checks { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- modeli ---------- */
.models__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.models__tabs [role="tab"] {
  display: flex; align-items: center; gap: .9rem; text-align: left;
  padding: .9rem 1.1rem; border-radius: var(--radius);
  background: var(--white); border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.models__tabs [role="tab"] b {
  font-size: 1.9rem; font-stretch: 125%; font-weight: 750; line-height: 1; color: var(--blue);
  min-width: 1.6rem; transition: color .2s;
}
.models__tabs [role="tab"] span { font-size: .9rem; font-weight: 540; line-height: 1.25; color: var(--ink-2); transition: color .2s; }
.models__tabs [role="tab"]:hover { border-color: var(--blue); }
.models__tabs [role="tab"][aria-selected="true"] { background: var(--blue); }
.models__tabs [role="tab"][aria-selected="true"] b,
.models__tabs [role="tab"][aria-selected="true"] span { color: #fff; }

.models__panel {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  margin-top: .6rem; padding: clamp(1.25rem, 3.5vw, 3rem);
  background: var(--white); border-radius: var(--radius-lg);
}

.viewer__stage {
  aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #fff 0%, var(--mist) 100%);
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.viewer__stage.is-dragging { cursor: grabbing; }
.viewer__stage img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .75rem; }
.viewer__btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1.5px solid var(--line); color: var(--ink);
  transition: border-color .2s, background-color .2s, color .2s;
}
.viewer__btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.viewer__hint {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}

.model__for {
  font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .6rem;
}
.model__name { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-stretch: 122%; font-weight: 720; letter-spacing: -.03em; line-height: 1; margin-bottom: 1rem; }
.model__text { color: var(--ink-2); max-width: 34em; }
.model__facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem;
  margin-block: 1.75rem;
}
.model__facts div { padding-block: .9rem; border-top: 1px solid var(--line); }
.model__facts dt {
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: .2rem;
}
.model__facts dd { font-weight: 620; font-size: 1.08rem; line-height: 1.3; }
.model__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.specs { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.specs__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.specs__top h4 { font-size: 1.1rem; font-stretch: 108%; font-weight: 650; }

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--mist); }
.seg button {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 560; white-space: nowrap;
  color: var(--ink-2); transition: background-color .2s, color .2s;
}
.seg button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--steel)); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(7, 26, 54, .14); }
.seg button:disabled { opacity: .4; cursor: not-allowed; }

.specs__scroll { overflow-x: auto; border-radius: 8px; }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-family: var(--mono); font-size: .88rem; }
.table th, .table td { padding: .7rem .8rem; text-align: right; white-space: nowrap; }
.table th:first-child, .table td:first-child { text-align: left; }
.table thead th {
  font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); border-bottom: 1.5px solid var(--ink); vertical-align: bottom; white-space: normal;
}
.table thead th small { display: block; font-size: inherit; opacity: .75; }
.table tbody td { border-bottom: 1px solid var(--line); }
.table tbody tr:hover td { background: var(--paper); }
.table .code {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem;
  padding: .15rem .5rem; border-radius: 5px; color: #fff; font-weight: 500;
  background: var(--dot, var(--steel));
}
.specs__legend { margin-top: 1rem; font-size: .86rem; color: var(--ink-2); }

@media (max-width: 900px) {
  .models__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .models__panel { grid-template-columns: minmax(0, 1fr); }
  .viewer { max-width: 420px; width: 100%; margin-inline: auto; }
}
@media (max-width: 520px) {
  .models__tabs [role="tab"] { padding: .75rem .85rem; gap: .65rem; }
  .models__tabs [role="tab"] b { font-size: 1.5rem; min-width: 1.2rem; }
  .models__tabs [role="tab"] span { font-size: .8rem; }
  .model__actions .btn { flex: 1 1 100%; padding-inline: .9rem; font-size: .96rem; }
  .model__facts { grid-template-columns: minmax(0, 1fr); }
  .seg { width: 100%; }
  .seg button { flex: 1; justify-content: center; padding-inline: .5rem; font-size: .82rem; }
}

/* ==========================================================================
   Odabir uređaja (nacrt)
   ========================================================================== */
.blueprint {
  --focus: #fff;
  background-color: var(--blue);
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 32px 32px;
  color: #fff;
}
.blueprint .eyebrow { color: #fff; }
.blueprint h2 { margin-bottom: 1.25rem; }
.blueprint .lead { color: rgba(255, 255, 255, .86); }

.finder {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.finder__field { margin-top: 2rem; }
.finder__field legend {
  display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem;
  font-weight: 620; font-stretch: 106%; font-size: 1.05rem;
}
.finder__no {
  display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem;
  border: 1.5px solid #fff; border-radius: 50%;
  font-family: var(--mono); font-size: .8rem; font-weight: 500;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips button {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: .05rem;
  padding: .6rem .95rem; border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, .45); color: #fff;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chips button small {
  font-family: var(--mono); font-size: .68rem; font-weight: 400; opacity: .8; letter-spacing: .02em;
}
.chips button:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.chips button[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--blue); }
.finder__tip {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px dashed rgba(255, 255, 255, .4);
  font-size: .95rem; color: rgba(255, 255, 255, .86); max-width: 34em;
}
.finder__tip a { color: #fff; }

.finder__out { display: grid; gap: 1.5rem; }
.gauge { display: block; width: 100%; max-width: 330px; margin-inline: auto; overflow: visible; }
.gauge__axis { stroke: rgba(255, 255, 255, .35); stroke-width: 1; stroke-dasharray: 10 4 2 4; }
.gauge__ghost { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.gauge__pipe { fill: rgba(255, 255, 255, .1); stroke: #fff; stroke-width: 2.5; transition: r .45s var(--ease); }
.gauge__bore { fill: var(--blue); stroke: rgba(255, 255, 255, .7); stroke-width: 1.2; stroke-dasharray: 4 3; transition: r .45s var(--ease); }
.gauge__ext, .gauge__dimline { stroke: #fff; stroke-width: 1; }
.gauge__ext { stroke-opacity: .6; }
.gauge__arrow { fill: #fff; }
.gauge__label { fill: #fff; font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: .04em; }

.finder__results { display: grid; gap: .6rem; }
.finder__count {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .86);
}
.result {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem 1.25rem; align-items: center;
  background: #fff; color: var(--ink); border-radius: 12px; padding: 1rem 1.15rem;
  box-shadow: 0 10px 30px rgba(3, 30, 80, .25);
}
/* pločica s oznakom, kao na samom uređaju */
.plate {
  display: grid; gap: 4px; padding: 7px 8px 8px; border-radius: 5px;
  border: 1px solid var(--line); background: #fff; min-width: 5.6rem;
}
.plate__brand { height: 9px; width: auto; }
.plate__swiss {
  display: block; background: var(--red); color: #fff; border-radius: 1px;
  font-size: .42rem; font-weight: 700; letter-spacing: .04em; line-height: 1.6; padding-inline: 3px; white-space: nowrap;
}
.plate__code { display: flex; gap: 2px; }
.plate__code i {
  font-style: normal; font-family: var(--mono); font-size: .86rem; font-weight: 500; line-height: 1;
  min-width: 1.05rem; padding: 3px 2px; text-align: center; border: 1px solid var(--steel);
}
.plate__code i:first-child { margin-right: 4px; }
.result__name { font-weight: 680; font-stretch: 110%; font-size: 1.1rem; line-height: 1.2; }
.result__name small { font-weight: 480; font-stretch: 100%; font-size: .9rem; color: var(--ink-2); }
.result__spec { font-family: var(--mono); font-size: .76rem; color: var(--ink-2); margin-top: .3rem; line-height: 1.5; }
.result__go { display: flex; gap: .4rem; }
.result__go a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 8px; background: var(--mist); color: var(--blue); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.result__go a:hover { background: var(--blue); color: #fff; }
.blueprint .result :focus-visible { outline-color: var(--blue); }
.result--none { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 900px) {
  .finder { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .result { grid-template-columns: auto minmax(0, 1fr); }
  .result__go { grid-column: 1 / -1; }
  .result__go a { flex: 1; width: auto; gap: .5rem; font-weight: 600; font-size: .92rem; }
  .result__go a::after { content: attr(data-label); }
}

/* ==========================================================================
   Ugradnja
   ========================================================================== */
.install {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.install__photo { position: sticky; top: calc(var(--header-h) + 2rem); }
.install__photo img { width: 100%; border-radius: var(--radius-lg); }
.install__photo figcaption {
  margin-top: .8rem; font-family: var(--mono); font-size: .76rem; color: var(--ink-2); letter-spacing: .02em;
}
.install__copy h2 { margin-bottom: 1.25rem; }

.howto { counter-reset: howto; margin-top: 2.25rem; }
.howto li {
  counter-increment: howto; position: relative;
  padding: 1.4rem 0 1.4rem 3.6rem; border-top: 1px solid var(--line);
}
.howto li::before {
  content: counter(howto); position: absolute; left: 0; top: 1.35rem;
  width: 2.2rem; height: 2.2rem; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--blue); color: #fff;
  font-family: var(--mono); font-size: .85rem; font-weight: 500;
}
.howto h3 { margin-bottom: .35rem; }
.howto p { color: var(--ink-2); }

.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.pills li {
  padding: .5rem .95rem; border-radius: 999px; background: var(--mist);
  font-size: .9rem; font-weight: 540;
}

@media (max-width: 900px) {
  .install { grid-template-columns: minmax(0, 1fr); }
  .install__photo { position: static; }
}

/* ---------- nakon ugradnje ---------- */
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.proof li { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.4rem, 2.5vw, 2rem); }
.proof h3 { margin-bottom: .6rem; }
.proof p { color: var(--ink-2); font-size: 1rem; }

@media (max-width: 980px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .proof { grid-template-columns: minmax(0, 1fr); } }

/* ---------- reference ---------- */
.refs { columns: 3 17rem; column-gap: clamp(2rem, 4vw, 4rem); }
.ref { break-inside: avoid; margin-bottom: 2.75rem; }
.ref h3 {
  font-family: var(--mono); font-size: .78rem; font-weight: 500; font-stretch: 100%;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue);
  padding-bottom: .8rem; border-bottom: 2px solid var(--ink);
}
.ref li { padding-block: .7rem; border-bottom: 1px solid var(--line); line-height: 1.4; }

/* ---------- pitanja ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq__head h2 { margin-bottom: 1.25rem; }

.docs { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.docs h3 {
  font-family: var(--mono); font-size: .78rem; font-weight: 500; font-stretch: 100%;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .75rem;
}
.docs a {
  display: flex; align-items: center; gap: .7rem; padding-block: .55rem;
  text-decoration: none; font-weight: 540; font-size: .98rem;
}
.docs a .icon { color: var(--blue); }
.docs a:hover { color: var(--blue); }

.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 2px solid var(--ink); }
.faq__list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.3rem; cursor: pointer; list-style: none;
  font-size: 1.12rem; font-stretch: 106%; font-weight: 620; line-height: 1.3;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 1.1rem; height: 1.1rem;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 100% 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 2px 100% no-repeat;
  transition: transform .3s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list summary:hover { color: var(--blue); }
.faq__list details p { padding-bottom: 1.5rem; color: var(--ink-2); max-width: 40em; }

@media (max-width: 900px) {
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq__head { position: static; }
  .docs { display: none; }
}

/* ==========================================================================
   Kontakt i podnožje
   ========================================================================== */
.contact { --focus: #fff; background: var(--ink); color: #fff; }
.contact .eyebrow { color: #8FB8FF; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.contact h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); margin-bottom: 2rem; }
.contact__need { color: rgba(255, 255, 255, .7); margin-bottom: .5rem; }
.checks--light { grid-template-columns: minmax(0, 1fr); max-width: 30rem; }
.checks--light li { border-bottom-color: rgba(255, 255, 255, .14); }
.checks--light li::before { filter: brightness(0) invert(1); }

.contact__ways { display: grid; gap: .6rem; }
.way {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.1rem 1.25rem; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16); text-decoration: none;
  font-weight: 620; font-size: 1.08rem; line-height: 1.3;
  transition: background-color .2s, border-color .2s, transform .25s var(--ease);
}
.way .icon { width: 1.6rem; height: 1.6rem; color: #8FB8FF; }
.way small {
  display: block; font-family: var(--mono); font-size: .68rem; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: .1rem;
}
.way:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .4); transform: translateX(4px); }

.company { margin-top: 1.5rem; font-size: .95rem; line-height: 1.7; color: rgba(255, 255, 255, .7); }
.company strong { display: block; color: #fff; font-size: 1.05rem; }

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

.footer { --focus: #fff; background: var(--ink); color: rgba(255, 255, 255, .7); border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 3rem 2.5rem; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(2rem, 6vw, 6rem); }
.footer__brand img { width: 172px; margin-bottom: 1rem; }
.footer__brand p { max-width: 22rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; align-content: start; }
.footer__nav a { color: #fff; text-decoration: none; font-weight: 520; }
.footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__legal {
  grid-column: 1 / -1; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .12);
  display: grid; gap: .3rem; font-size: .84rem; color: rgba(255, 255, 255, .58);
}
.footer__legal a { color: rgba(255, 255, 255, .8); }

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer { padding-bottom: 6.5rem; }
}

/* ---------- brzi kontakt na mobitelu ---------- */
.quickbar { display: none; }
@media (max-width: 760px) {
  .quickbar:not([hidden]) {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(247, 249, 252, .94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .quickbar.is-on { transform: none; }
  .quickbar__btn {
    display: flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .85rem 1rem; border-radius: var(--radius);
    background: var(--blue); color: #fff; text-decoration: none; font-weight: 620;
  }
  .quickbar__btn--wa { background: var(--ink); }
}

/* ==========================================================================
   Pojavljivanje pri skrolanju
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s);
}

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

@media print {
  .header, .quickbar, .viewer__bar, .hero__cta { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
