/* ════════════════════════════════════════════════════════════════════
   DSN d.o.o. · Homepage stylesheet
   Author: Apis Development · 2026
   Stack: Vanilla CSS3 · Mobile-first · No build step
   ──────────────────────────────────────────────────────────────────
   Table of contents
   01  Tokens (CSS variables) & reset
   02  Typography
   03  Layout primitives (container, section, grid, buttons)
   04  Utility bar
   05  Navbar + dropdown + mobile menu
   06  Hero slider (100dvh strict)
   07  Stats strip
   08  About teaser
   09  Products grid
   10  Why DSN
   11  Radovi gallery
   12  CTA band
   13  Certificates
   14  Footer
   15  AI Assistant (floating left)
   16  Back-to-top (floating right)
   17  Reveal / motion utilities
   18  Reduced motion + small-screen overrides
   ════════════════════════════════════════════════════════════════════ */


/* 01 ── Tokens & reset ────────────────────────────────────────────── */

:root {
  /* Brand */
  --navy: #1F2271;
  --navy-900: #14163F;
  --navy-600: #2D31A0;
  --red: #D00000;
  --red-600: #AE0000;

  /* Neutrals */
  --ink: #14151A;
  --muted: #5B5F73;
  --bg: #FFFFFF;
  --bg-soft: #F5F6FA;
  --line: #E6E8F0;

  /* System */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 63, .05), 0 2px 8px rgba(20, 22, 63, .04);
  --shadow-md: 0 8px 24px rgba(20, 22, 63, .08), 0 2px 6px rgba(20, 22, 63, .04);
  --shadow-lg: 0 24px 48px rgba(20, 22, 63, .14), 0 8px 16px rgba(20, 22, 63, .06);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Layout */
  --container: 1280px;
  --container-pad: clamp(20px, 5vw, 48px);
  --nav-h: 84px;

  /* JS-driven 1vh (mobile-browser-chrome safe). Falls back to 1vh. */
  --vh: 1vh;
}

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

html, body { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: auto; /* Lenis controls scroll */
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Global: hide images that fail to load — placeholder gradient on the parent stays visible */
img[data-failed] { visibility: hidden; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

iframe { border: 0; }

/* Selection */
::selection { background: var(--navy); color: #fff; }

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--navy-600);
  outline-offset: 3px;
  border-radius: 4px;
}


/* 02 ── Typography ───────────────────────────────────────────────── */

.h1, .h2, .h3, h1, h2, h3 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--navy-900);
  margin: 0;
}

.h2 {
  font-size: clamp(1.875rem, 1rem + 2.7vw, 3.25rem);
  letter-spacing: -0.025em;
}

.h3 {
  font-size: clamp(1.375rem, .9rem + 1.4vw, 1.875rem);
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.0625rem, .95rem + .3vw, 1.1875rem);
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 1em;
}

.muted-p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 1em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  padding: 6px 12px 6px 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(208, 0, 0, .22);
  flex-shrink: 0;
}

.eyebrow--dark {
  color: var(--navy);
  background: rgba(31, 34, 113, .06);
  border-color: rgba(31, 34, 113, .12);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}

.eyebrow--on-dark { color: #fff; }


/* 03 ── Layout primitives ───────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: clamp(56px, 8vw, 96px);
  position: relative;
}
.section--lg { padding-block: clamp(72px, 10vw, 128px); }
.section--soft { background: var(--bg-soft); }

.section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
@media (min-width: 900px) {
  .section__head {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
    gap: 32px;
  }
  .section__head-sub {
    text-align: right;
    color: var(--muted);
    max-width: 38ch;
    margin-left: auto;
  }
}
.section__head-sub { color: var(--muted); margin: 0; }
.section__head--center {
  text-align: center;
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-inline: auto;
}
.section__head--center .eyebrow { margin-inline: auto; }

/* Buttons */
.btn {
  --bg: transparent;
  --c: var(--ink);
  --bd: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  border-radius: 999px;
  background: var(--bg);
  color: var(--c);
  border: 1.5px solid var(--bd);
  cursor: pointer;
  transition:
    transform .35s var(--ease),
    box-shadow .35s var(--ease),
    background .25s var(--ease),
    color .25s var(--ease),
    border-color .25s var(--ease);
  white-space: nowrap;
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--red {
  --bg: var(--red);
  --c: #fff;
  --bd: var(--red);
  box-shadow: 0 10px 24px -8px rgba(208, 0, 0, .55);
}
.btn--red:hover {
  --bg: var(--red-600);
  --bd: var(--red-600);
  box-shadow: 0 16px 32px -10px rgba(208, 0, 0, .65);
  transform: translateY(-1px);
}

.btn--navy {
  --bg: var(--navy);
  --c: #fff;
  --bd: var(--navy);
}
.btn--navy:hover {
  --bg: var(--navy-600);
  --bd: var(--navy-600);
  transform: translateY(-1px);
}

.btn--ghost {
  --bg: rgba(255, 255, 255, .06);
  --c: #fff;
  --bd: rgba(255, 255, 255, .35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  --bg: #fff;
  --c: var(--navy-900);
  --bd: #fff;
}

.btn--lg { padding: 18px 28px; font-size: 16px; }

/* Link arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Sora', sans-serif; font-weight: 600;
  color: var(--navy); font-size: 15px;
  position: relative;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow::after {
  content: ''; position: absolute; left: 0; right: 26px; bottom: -3px;
  height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Hairline border helper */
.border-t { border-top: 1px solid var(--line); }

/* Status dot */
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1FCB72;
  box-shadow: 0 0 0 3px rgba(31, 203, 114, .25);
  display: inline-block;
}

/* Inline icon */
.ic { width: 14px; height: 14px; flex-shrink: 0; }


/* 04 ── Utility bar ─────────────────────────────────────────────── */

.utilitybar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .8);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
}
.utilitybar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding-block: 8px;
}
.utilitybar__left,
.utilitybar__right {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.utilitybar__link {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, .85);
  transition: color .2s ease;
}
.utilitybar__link:hover { color: #fff; }
.utilitybar__sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .14); }
.utilitybar__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .85);
}
.utilitybar__chip--soft .status-dot { box-shadow: 0 0 0 3px rgba(31, 203, 114, .2); }

@media (max-width: 768px) { .utilitybar { display: none; } }


/* 05 ── Navbar ──────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: transparent;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.nav.is-glassy {
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
}
.nav.is-solid {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(20, 22, 63, .04);
}

.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-h);
}

.nav__logo {
  display: inline-flex; align-items: center;
  flex-shrink: 0;
}
.nav__logo img {
  height: 48px;
  width: auto;
  transition: transform .35s var(--ease), filter .35s var(--ease);
}
/* When sitting on hero (not solid), make the logo readable on dark via subtle invert backdrop pill */
.nav:not(.is-solid) .nav__logo img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
}
.nav__logo:hover img { transform: scale(1.03); }

/* Desktop menu */
.nav__menu { display: none; }
@media (min-width: 1024px) {
  .nav__menu { display: block; }
}

.nav__list {
  display: flex; align-items: center; gap: 4px;
}
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: .005em;
  color: #fff;
  position: relative;
  transition: color .25s ease, background .25s ease;
}
.nav.is-solid .nav__link { color: var(--ink); }
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav.is-solid .nav__link:hover { color: var(--navy); background: rgba(31, 34, 113, .06); }

.nav__link--active::before {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 2px; background: var(--red); border-radius: 2px;
}

.nav__link--dd .caret {
  width: 14px; height: 14px; transition: transform .35s var(--ease);
}
.nav__item-has-dd:hover .nav__link--dd .caret,
.nav__item-has-dd:focus-within .nav__link--dd .caret { transform: rotate(180deg); }

/* Dropdown */
.nav__item-has-dd { position: relative; }
.dd {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 8px);
  width: min(680px, 92vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility .35s;
}
.nav__item-has-dd:hover .dd,
.nav__item-has-dd:focus-within .dd {
  opacity: 1; visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.dd::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px; background: #fff;
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}
.dd__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.dd__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  transition: background .2s ease;
}
.dd__item:hover { background: var(--bg-soft); }
.dd__num {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--red);
  background: rgba(208, 0, 0, .07);
  padding: 5px 7px;
  border-radius: 6px;
}
.dd__txt strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  color: var(--navy-900);
  font-weight: 600;
}
.dd__txt small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}

/* Right CTA + burger */
.nav__cta-wrap {
  display: flex; align-items: center; gap: 10px;
}
.nav__cta {
  padding: 11px 18px;
  font-size: 14px;
}
@media (max-width: 1023px) {
  .nav__cta { display: none; }
}

.nav__burger {
  width: 44px; height: 44px;
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center; align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .25s ease;
}
.nav.is-solid .nav__burger {
  background: rgba(31, 34, 113, .06);
  border-color: rgba(31, 34, 113, .14);
}
.nav__burger span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .3s ease, background .25s ease;
}
.nav.is-solid .nav__burger span { background: var(--navy-900); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) { .nav__burger { display: none; } }

/* Mobile fullscreen menu */
.mnav {
  position: fixed; inset: 0;
  z-index: 90;
  background: rgba(20, 22, 63, .98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 24px) var(--container-pad) 40px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.mnav[hidden] { display: none; }
.mnav.is-open { opacity: 1; transform: none; }
.mnav__inner {
  display: flex; flex-direction: column; gap: 4px;
  max-width: 520px; margin-inline: auto; width: 100%;
}
.mnav__link {
  display: block;
  padding: 18px 0;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.mnav__details summary { list-style: none; cursor: pointer; }
.mnav__details summary::-webkit-details-marker { display: none; }
.mnav__details summary::after {
  content: '+'; float: right; color: var(--red); font-weight: 400;
  transition: transform .3s ease;
}
.mnav__details[open] summary::after { content: '−'; }
.mnav__sub {
  display: flex; flex-direction: column; gap: 4px;
  padding: 4px 0 16px 12px;
}
.mnav__sub a {
  padding: 10px 0;
  color: rgba(255, 255, 255, .75);
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.mnav__sub a:hover { color: #fff; }
.mnav__cta { margin-top: 24px; align-self: stretch; }
.mnav__foot {
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 8px;
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
}
.mnav__foot a { color: rgba(255, 255, 255, .85); }


/* 06 ── HERO SLIDER ─────────────────────────────────────────────── */

.hero {
  position: relative;
  margin-top: calc(var(--nav-h) * -1); /* let nav float over */
  height: 100vh;            /* fallback */
  height: 100dvh;           /* modern */
  min-height: 560px;
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
  isolation: isolate;
}
/* JS-driven fallback for very old mobile WebKit */
@supports not (height: 100dvh) {
  .hero { height: calc(var(--vh, 1vh) * 100); }
}

.hero__progress {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: rgba(255, 255, 255, .08);
  z-index: 6;
}
.hero__progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--red), #ff3535);
  width: 0%;
  transform-origin: left;
}

.hero__slides { position: absolute; inset: 0; }

.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s var(--ease), visibility 1.2s;
  pointer-events: none;
}
.slide.is-active {
  opacity: 1; visibility: visible; pointer-events: auto;
}

/* Image layer — fills the fixed slide frame and is cropped to fit (object-fit: cover).
   The slide container keeps its 100vh dimensions; the image conforms to the box.
   Layer order: image (z 0) → overlay (z 1, in markup) → content (z 2). */
.slide__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transition: transform 7s linear;
  z-index: 0;
  will-change: transform;
}
.slide.is-active .slide__img { transform: scale(1.18); } /* Ken Burns on active */
.slide__img[data-failed] { display: none; }

.slide__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(20, 22, 63, .85) 0%, rgba(20, 22, 63, .55) 45%, rgba(20, 22, 63, .15) 75%, transparent 100%),
    linear-gradient(180deg, rgba(20, 22, 63, .25) 0%, transparent 30%, rgba(20, 22, 63, .55) 100%);
}

.slide__content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  max-width: 760px;
  padding-top: var(--nav-h);
  width: 100%;
}

.slide__title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 1rem + 5.4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 4px 32px rgba(0, 0, 0, .35);
}

.slide__sub {
  font-size: clamp(1rem, .9rem + .4vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
  max-width: 56ch;
  margin: 0;
}

.slide__cta {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px;
}

/* Arrows */
.hero__arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, border-color .25s ease, transform .35s var(--ease);
}
.hero__arrow svg { width: 22px; height: 22px; }
.hero__arrow:hover {
  background: var(--red);
  border-color: var(--red);
}
.hero__arrow--prev { left: clamp(12px, 3vw, 32px); }
.hero__arrow--next { right: clamp(12px, 3vw, 32px); }

@media (max-width: 720px) {
  .hero__arrow { width: 44px; height: 44px; }
  .hero__arrow svg { width: 18px; height: 18px; }
}

/* Dots */
.hero__dots {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: clamp(24px, 5vh, 48px);
  z-index: 5;
  display: inline-flex; gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(20, 22, 63, .35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .12);
}
.hero__dot {
  width: 28px; height: 6px; border-radius: 4px;
  background: rgba(255, 255, 255, .25);
  transition: background .3s ease, width .35s var(--ease);
}
.hero__dot.is-active {
  background: var(--red);
  width: 44px;
}

/* Scroll cue */
.hero__cue {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  bottom: clamp(24px, 5vh, 48px);
  z-index: 5;
  color: rgba(255, 255, 255, .8);
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.hero__cue-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .8), transparent);
  position: relative; overflow: hidden;
}
.hero__cue-line::after {
  content: ''; position: absolute; top: -40px; left: 0; width: 100%; height: 40px;
  background: linear-gradient(180deg, transparent, var(--red));
  animation: cueDrop 2.4s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { top: -40px; }
  60%, 100% { top: 40px; }
}
@media (max-width: 720px) { .hero__cue { display: none; } }


/* 07 ── STATS strip ──────────────────────────────────────────────── */

.stats { background: var(--bg-soft); padding-block: clamp(48px, 6vw, 80px); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.stats__item {
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid var(--line);
}
.stats__item:last-child { border-right: 0; }
@media (max-width: 760px) {
  .stats__item:nth-child(2) { border-right: 0; }
  .stats__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.stats__num {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 1rem + 3vw, 3.25rem);
  color: var(--navy-900);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.stats__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}


/* 08 ── ABOUT teaser ─────────────────────────────────────────────── */

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .about__grid { grid-template-columns: 1.05fr 1fr; gap: clamp(48px, 7vw, 96px); }
}
.about__copy { max-width: 60ch; }
.about__copy .eyebrow { margin-bottom: 16px; }
.about__copy .h2 { margin-bottom: 18px; }

.bullets { display: grid; gap: 10px; margin: 24px 0 28px; }
.bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  font-weight: 500;
  color: var(--navy-900);
}
.bullets__check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy);
  position: relative; flex-shrink: 0; margin-top: 2px;
}
.bullets__check::after {
  content: ''; position: absolute; left: 5px; top: 8px;
  width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.about__cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.about__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 560px;
  margin-inline: auto;
  width: 100%;
}
.about__card {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about__card--main {
  inset: 0 18% 12% 0;
  background: linear-gradient(135deg, var(--navy-900), var(--navy));
}
.about__card--main img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.about__card--main img[data-failed] { display: none; }
.about__card--main::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(20, 22, 63, .8));
  pointer-events: none;
}
.about__caption {
  position: absolute; left: 22px; bottom: 22px; z-index: 1;
  color: #fff;
  display: flex; flex-direction: column; gap: 2px;
}
.about__caption span {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.about__caption strong {
  font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 600;
}

.about__card--badge {
  width: 38%; aspect-ratio: 1;
  right: 0; bottom: 0;
  background: var(--red);
  display: grid; place-items: center;
  color: #fff;
  border-radius: var(--radius-lg);
}
.about__badge { text-align: center; padding: 12px; }
.about__badge-num {
  display: block;
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
}
.about__badge-lbl {
  display: block; margin-top: 8px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500;
  opacity: .92;
}

.about__wave {
  position: absolute; left: -36px; top: 22%;
  width: 120px; height: auto;
  opacity: .9;
  transform: rotate(-90deg);
}


/* 09 ── PRODUCTS grid ───────────────────────────────────────────── */

.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  justify-items: stretch;
}
@media (min-width: 720px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 1080px) {
  /* 3-up grid: 8 items lay out as 3 + 3 + 2 (last row left-aligned, no stretching) */
  .products__grid { grid-template-columns: repeat(3, 1fr); }
}

.prod-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .35s ease;
  isolation: isolate;
}
.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.prod-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-600));
}
.prod-card__media::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.3px);
  background-size: 18px 18px;
  opacity: .55;
}
.prod-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.prod-card:hover .prod-card__media img { transform: scale(1.08); }
.prod-card__media img[data-failed] { display: none; }

.prod-card__tag {
  position: absolute; top: 14px; left: 14px;
  z-index: 1;
  font-family: 'Sora', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 22, 63, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .14);
}

.prod-card__body {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.prod-card__title {
  font-family: 'Sora', sans-serif;
  font-size: 18px; font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  margin: 0;
}
.prod-card__desc {
  font-size: 14.5px; color: var(--muted); line-height: 1.55;
  margin: 0;
  flex: 1;
}
.prod-card__more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 12px;
  position: relative;
  padding-bottom: 4px;
  width: max-content;
}
.prod-card__more svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.prod-card__more::after {
  content: '';
  position: absolute; left: 0; bottom: 0; width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(.35); transform-origin: left;
  transition: transform .45s var(--ease);
}
.prod-card:hover .prod-card__more::after { transform: scaleX(1); }
.prod-card:hover .prod-card__more svg { transform: translateX(4px); }


/* 10 ── WHY DSN ─────────────────────────────────────────────────── */

.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 720px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  /* 3-up: 6 features fill exactly 2 rows (3+3) with no empty cells */
  .why__grid { grid-template-columns: repeat(3, 1fr); }
}
.feat {
  background: #fff;
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background .3s ease;
}
.feat:hover { background: var(--bg-soft); }
.feat__ic {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
  color: #fff;
  position: relative;
}
.feat__ic::after {
  content: ''; position: absolute; inset: -6px;
  border: 1px solid var(--navy);
  border-radius: 18px;
  opacity: .12;
}
.feat__ic svg { width: 26px; height: 26px; }
.feat__title {
  font-family: 'Sora', sans-serif;
  font-size: 17px; font-weight: 600;
  color: var(--navy-900);
  margin: 6px 0 0;
}
.feat__desc {
  font-size: 14.5px; color: var(--muted); margin: 0;
  line-height: 1.6;
}


/* 11 ── RADOVI gallery ─────────────────────────────────────────── */

.radovi__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
}
@media (min-width: 720px) {
  .radovi__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
  }
}

.rad {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
  isolation: isolate;
}
.rad img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease);
}
.rad img[data-failed] { display: none; }
.rad::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(20, 22, 63, .85));
  z-index: 1;
}
.rad__cap {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  z-index: 2;
  color: #fff;
  font-family: 'Sora', sans-serif; font-weight: 500;
  font-size: 13px;
  letter-spacing: .01em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.rad:hover img { transform: scale(1.07); }
.rad:hover .rad__cap { opacity: 1; transform: none; }

/* Asymmetric layout — 6 tiles, varied spans */
@media (min-width: 720px) {
  .rad--1 { grid-column: span 2; grid-row: span 2; }
  .rad--2 { grid-column: span 2; }
  .rad--3 { grid-column: span 1; grid-row: span 1; }
  .rad--4 { grid-column: span 1; grid-row: span 1; }
  .rad--5 { grid-column: span 2; }
  .rad--6 { grid-column: span 4; grid-row: span 1; }
}
@media (min-width: 720px) {
  .radovi__grid { grid-auto-rows: 200px; }
}

.radovi__cta { text-align: center; margin-top: 40px; }


/* 12 ── CTA BAND ────────────────────────────────────────────────── */

.cta-band {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  padding-block: clamp(56px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(800px 360px at 90% 30%, rgba(45, 49, 160, .55), transparent 70%),
    radial-gradient(600px 300px at 5% 90%, rgba(208, 0, 0, .18), transparent 70%);
}
.cta-band__deco {
  position: absolute; inset: 0;
  z-index: 0;
  opacity: .9;
}
.cta-band__deco svg { width: 100%; height: 100%; }

.cta-band__row {
  position: relative; z-index: 1;
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .cta-band__row { grid-template-columns: 1.4fr 1fr; gap: 48px; }
}
.cta-band__copy { display: flex; flex-direction: column; gap: 14px; }
.cta-band__title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(1.875rem, 1rem + 3.2vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}
.cta-band__sub {
  color: rgba(255, 255, 255, .82);
  max-width: 56ch;
  margin: 0;
  line-height: 1.65;
}

.cta-band__actions {
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
@media (min-width: 880px) { .cta-band__actions { align-items: flex-end; } }
.cta-band__phone {
  display: flex; flex-direction: column;
  color: rgba(255, 255, 255, .9);
  font-family: 'Sora', sans-serif;
  text-align: left;
}
@media (min-width: 880px) { .cta-band__phone { text-align: right; } }
.cta-band__phone small {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  opacity: .7;
  margin-bottom: 4px;
}
.cta-band__phone strong {
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
}


/* 13 ── CERTIFICATES ────────────────────────────────────────────── */

.cert { padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.cert__row {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .cert__row { grid-template-columns: 1fr 1.2fr; gap: 56px; }
}
.cert__copy { max-width: 48ch; }
.cert__copy .eyebrow { margin-bottom: 14px; }
.cert__copy .h3 { margin-bottom: 10px; }

.cert__badges {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.cert__badge {
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s ease, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cert__badge:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.cert__badge svg {
  width: 48px; height: 48px; flex-shrink: 0;
}
.cert__badge strong {
  display: block;
  font-family: 'Sora', sans-serif; font-weight: 600;
  color: var(--navy-900);
  font-size: 15px;
}
.cert__badge small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}


/* 14 ── FOOTER ──────────────────────────────────────────────────── */

.foot {
  position: relative;
  background: var(--navy-900);
  color: rgba(255, 255, 255, .85);
  padding-block: clamp(56px, 7vw, 88px) 0;
}
.foot__wave {
  position: absolute; top: 0; left: 0; right: 0;
  width: 100%; height: 60px;
  opacity: .7;
  pointer-events: none;
}

.foot__grid {
  display: grid;
  gap: 40px 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .foot__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .foot__grid { grid-template-columns: 1.3fr 1fr 1.1fr 1.2fr; } }

.foot__col--brand { display: flex; flex-direction: column; gap: 20px; }
.foot__logo-pill {
  display: inline-flex; align-items: center;
  padding: 10px 18px;
  background: #fff;
  border-radius: 12px;
  width: max-content;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.foot__logo-pill img { height: 40px; width: auto; }

.foot__tag {
  color: rgba(255, 255, 255, .7);
  font-size: 14.5px;
  max-width: 38ch;
  line-height: 1.6;
  margin: 0;
}

.foot__social { display: flex; gap: 8px; }
.foot__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: background .25s ease, color .25s ease, transform .35s var(--ease);
}
.foot__social a svg { width: 16px; height: 16px; }
.foot__social a:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: translateY(-2px);
}

.foot__h {
  font-family: 'Sora', sans-serif;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px;
}

.foot__links li { margin-bottom: 8px; }
.foot__links a {
  color: rgba(255, 255, 255, .72);
  font-size: 14.5px;
  transition: color .2s ease, padding-left .25s var(--ease);
  position: relative;
}
.foot__links a:hover { color: #fff; padding-left: 14px; }
.foot__links a:hover::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 8px; height: 2px; background: var(--red);
  transform: translateY(-50%); border-radius: 2px;
}

.foot__contact li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.55;
}
.foot__contact svg { width: 18px; height: 18px; color: rgba(255, 255, 255, .55); margin-top: 2px; }
.foot__contact a:hover { color: #fff; }

.foot__map {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .08);
}
.foot__map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  filter: grayscale(.4) brightness(.85) contrast(1.05);
}
.foot__map-cta {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--navy-900);
  color: #fff;
  border-radius: 999px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
}
.foot__map-cta svg { width: 14px; height: 14px; }

.foot__bar {
  margin-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.foot__bar-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
  padding-block: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}
.foot__credit a {
  color: rgba(255, 255, 255, .8);
  border-bottom: 1px dotted rgba(255, 255, 255, .4);
}
.foot__credit a:hover { color: #fff; border-color: #fff; }


/* 15 ── AI ASSISTANT ────────────────────────────────────────────── */

.ai-asst {
  position: fixed;
  bottom: clamp(18px, 3vw, 28px);
  left: clamp(18px, 3vw, 28px);
  z-index: 70;
}

.ai-asst__launcher {
  position: relative;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(20, 22, 63, .55), 0 4px 10px rgba(0, 0, 0, .2);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ai-asst__launcher:hover { transform: translateY(-2px) scale(1.04); }
.ai-asst__launcher svg { width: 28px; height: 28px; }
.ai-asst__pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(31, 34, 113, .55);
  animation: aiPulse 2.6s ease-out infinite;
}
@keyframes aiPulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 34, 113, .55); }
  70% { box-shadow: 0 0 0 18px rgba(31, 34, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 34, 113, 0); }
}
.ai-asst__badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--red);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 11px; font-weight: 700;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid #fff;
}
.ai-asst.is-open .ai-asst__badge { display: none; }

.ai-asst__panel {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  width: min(360px, calc(100vw - 36px));
  max-height: 70vh;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform-origin: bottom left;
  animation: aiOpen .45s var(--ease) both;
}
.ai-asst__panel[hidden] { display: none; }
@keyframes aiOpen {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-asst__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 14px 16px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy));
  color: #fff;
}
.ai-asst__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  display: grid; place-items: center;
}
.ai-asst__avatar svg { width: 22px; height: 22px; }
.ai-asst__title-wrap {
  display: flex; flex-direction: column;
  flex: 1; min-width: 0;
}
.ai-asst__title-wrap strong {
  font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em;
}
.ai-asst__status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .75);
  margin-top: 2px;
}
.ai-asst__close {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, .8);
  transition: background .2s ease, color .2s ease;
}
.ai-asst__close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.ai-asst__close svg { width: 18px; height: 18px; }

.ai-asst__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 8px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  background:
    linear-gradient(180deg, var(--bg-soft) 0%, #fff 80px);
}
.ai-asst__body::-webkit-scrollbar { width: 6px; }
.ai-asst__body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.bub {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  animation: bubIn .35s var(--ease) both;
}
@keyframes bubIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.bub--bot {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 2px 6px rgba(20, 22, 63, .04);
}
.bub--user {
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.bub a {
  color: var(--red);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}
.bub--user a { color: #fff; }
.bub__cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  font-family: 'Sora', sans-serif;
  font-size: 12.5px; font-weight: 600;
}
.bub__cta:hover { background: var(--red-600); }
.bub__cta svg { width: 12px; height: 12px; }

.typing {
  display: inline-flex; gap: 4px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px; border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
  animation: typingDot 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 4px 0 8px;
  animation: bubIn .35s var(--ease) both;
}
.chip {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy-900);
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  text-align: left;
}
.chip:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.chip:disabled { opacity: .5; cursor: default; }

.ai-asst__foot {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.ai-asst__foot a { color: var(--navy); font-weight: 500; border-bottom: 1px dotted var(--muted); }


/* 16 ── BACK-TO-TOP ─────────────────────────────────────────────── */

/* Button is exactly square; the ring SVG is the same square size,
   absolutely centered on the button so the circle is always perfectly round. */
.totop {
  --totop-size: 56px;
  position: fixed;
  bottom: clamp(18px, 3vw, 28px);
  right: clamp(18px, 3vw, 28px);
  z-index: 70;
  width: var(--totop-size);
  height: var(--totop-size);
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -10px rgba(20, 22, 63, .65), 0 4px 10px rgba(0, 0, 0, .18);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity .35s var(--ease),
    transform .35s var(--ease),
    background .25s ease,
    box-shadow .35s var(--ease);
}
.totop.is-visible { opacity: 1; transform: none; }
.totop:hover {
  background: var(--navy-900);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 36px -10px rgba(20, 22, 63, .7), 0 6px 12px rgba(0, 0, 0, .2);
}
.totop[hidden] { display: none; }

/* Ring sits on top of the button, exactly the same size, perfectly centered.
   viewBox 0 0 56 56, circle cx=cy=28, r=25 → 2π·25 = 157.0796… (JS uses 157.08). */
.totop__ring {
  position: absolute;
  top: 50%; left: 50%;
  width: var(--totop-size);
  height: var(--totop-size);
  transform: translate(-50%, -50%);
  pointer-events: none;
  overflow: visible;
}
.totop__ring circle { transition: stroke-dashoffset .15s linear; }

.totop__arrow {
  width: 20px; height: 20px;
  position: relative;
  z-index: 1;
  transition: transform .35s var(--ease);
}
.totop:hover .totop__arrow { transform: translateY(-1px); }


/* 17 ── REVEAL / MOTION utilities ───────────────────────────────── */

/* Used by JS via GSAP / ScrollTrigger */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
}
.reveal-text .word,
.reveal-text .line {
  display: inline-block;
  overflow: hidden;
}

/* Footer "red wave" appears on scroll */
.foot__wave path {
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
}


/* 18 ── REDUCED MOTION + small-screen overrides ─────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .slide.is-active .slide__img { transform: scale(1); }
  .hero__cue-line::after { display: none; }
  .ai-asst__pulse { display: none; }
}

/* Very small screens */
@media (max-width: 380px) {
  .slide__title { font-size: 2rem; }
  .slide__sub { font-size: .95rem; }
  .slide__cta { flex-direction: column; align-items: stretch; }
  .slide__cta .btn { width: 100%; }
}

/* Avoid widget collision on small screens */
@media (max-width: 480px) {
  .ai-asst { bottom: 14px; left: 14px; }
  .totop { bottom: 14px; right: 14px; width: 44px; height: 44px; }
  .totop__arrow { width: 18px; height: 18px; }
}

/* Layer order safety: nav above hero, widgets above content but below mobile menu */
.mnav { z-index: 90; }
.nav { z-index: 80; }
.ai-asst, .totop { z-index: 70; }
.hero { z-index: 1; }


/* ════════════════════════════════════════════════════════════════════
   SUBPAGE COMPONENTS (used by o-nama.html, kontakt.html and beyond)
   19  Page header
   20  Story (about page two-col)
   21  Timeline
   22  Dual cards (Dizajn / Konstrukcija)
   23  Partners block
   24  Process steps
   25  Contact form
   26  Big map
   ════════════════════════════════════════════════════════════════════ */


/* 19 ── PAGE HEADER ─────────────────────────────────────────────── */

.page-header {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  margin-top: calc(var(--nav-h) * -1);
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(72px, 10vw, 128px);
  overflow: hidden;
  isolation: isolate;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 360px at 92% 25%, rgba(45, 49, 160, .55), transparent 65%),
    radial-gradient(620px 320px at 0% 100%, rgba(208, 0, 0, .12), transparent 70%);
}
.page-header::after {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1.4px);
  background-size: 28px 28px;
  opacity: .9;
}
.page-header__wave {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: 60px;
  pointer-events: none;
  opacity: .8;
}
.page-header__wave path {
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
}
.page-header__inner {
  display: flex; flex-direction: column;
  gap: 18px;
  max-width: 920px;
}
.page-header__title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 1rem + 4.5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: #fff;
  text-wrap: balance;
  margin: 0;
}
.page-header__sub {
  font-size: clamp(1.0625rem, .95rem + .35vw, 1.1875rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
  max-width: 60ch;
  margin: 0;
}

/* Breadcrumb */
.crumb {
  display: inline-flex; align-items: center; flex-wrap: wrap;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 4px;
}
.crumb a { color: rgba(255, 255, 255, .85); transition: color .2s ease; }
.crumb a:hover { color: #fff; }
.crumb svg { width: 12px; height: 12px; opacity: .6; }
.crumb__here { color: #fff; }


/* 20 ── STORY (about) ───────────────────────────────────────────── */

.story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .story__grid { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 96px); }
}
.story__copy { max-width: 60ch; }
.story__copy .eyebrow { margin-bottom: 16px; }
.story__copy .h2 { margin-bottom: 18px; }

.story__visual {
  position: relative;
  aspect-ratio: 5 / 6;
  max-width: 560px;
  margin-inline: auto;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-600));
}
.story__visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.story__visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 22, 63, .8));
  pointer-events: none;
}
.story__visual-cap {
  position: absolute; left: 22px; bottom: 22px; z-index: 1;
  color: #fff;
}
.story__visual-cap span {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  opacity: .8;
}
.story__visual-cap strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  margin-top: 4px;
}


/* 21 ── TIMELINE ────────────────────────────────────────────────── */

.tl { position: relative; max-width: 880px; margin-inline: auto; }
.tl::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--navy-600), var(--navy));
  border-radius: 2px;
}
@media (min-width: 720px) {
  .tl::before { left: 50%; transform: translateX(-50%); }
}

.tl__item {
  position: relative;
  padding-left: 50px;
  padding-block: 22px;
}
@media (min-width: 720px) {
  .tl__item {
    width: 50%;
    padding-left: 0;
    padding-right: 56px;
  }
  .tl__item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 56px;
    text-align: left;
  }
  .tl__item:nth-child(odd) { text-align: right; }
}

/* Dot */
.tl__dot {
  position: absolute;
  left: 6px; top: 28px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--red);
  box-shadow: 0 0 0 4px rgba(208, 0, 0, .12);
  z-index: 1;
}
@media (min-width: 720px) {
  .tl__item:nth-child(odd) .tl__dot { left: auto; right: -9px; }
  .tl__item:nth-child(even) .tl__dot { left: -9px; right: auto; }
}

.tl__year {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.tl__title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: clamp(1.125rem, .95rem + .55vw, 1.375rem);
  color: var(--navy-900);
  margin: 0 0 8px;
  letter-spacing: -0.012em;
}
.tl__desc {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}


/* 22 ── DUAL CARDS (Dizajn / Konstrukcija) ──────────────────────── */

.duo {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .duo { grid-template-columns: 1fr 1fr; gap: 28px; } }

.duo__card {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  display: flex; flex-direction: column; gap: 18px;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .35s ease;
  isolation: isolate;
}
.duo__card::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(400px 200px at 100% 0%, rgba(31, 34, 113, .06), transparent 70%);
}
.duo__card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.duo__num {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .22em;
  color: var(--red);
  display: inline-flex; align-items: center; gap: 8px;
}
.duo__num::before {
  content: ''; width: 24px; height: 2px; background: var(--red); border-radius: 2px;
}
.duo__title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2rem);
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.duo__body {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0;
}
.duo__ic {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
  color: #fff;
  margin-bottom: 4px;
}
.duo__ic svg { width: 28px; height: 28px; }


/* 23 ── PARTNERS ────────────────────────────────────────────────── */

.partners__head { margin-bottom: 32px; text-align: center; max-width: 640px; margin-inline: auto; }
.partners__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .partners__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

.partner {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  display: flex; align-items: center; gap: 22px;
  transition: border-color .3s ease, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.partner:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.partner__mark {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700; color: var(--navy);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.partner__copy strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 4px;
}
.partner__copy small {
  color: var(--muted);
  font-size: 13.5px;
}
.partner__flag {
  width: 22px; height: 16px;
  border-radius: 3px;
  display: inline-flex; flex-direction: column;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 6px;
  box-shadow: 0 0 0 1px var(--line);
}
.partner__flag span { flex: 1; }
.partner__flag.gr span:nth-child(odd) { background: #0d5eaf; }
.partner__flag.gr span:nth-child(even) { background: #fff; }
.partner__flag.it { flex-direction: row; }
.partner__flag.it span:nth-child(1) { background: #008c45; }
.partner__flag.it span:nth-child(2) { background: #fff; }
.partner__flag.it span:nth-child(3) { background: #cd212a; }


/* 24 ── PROCESS STEPS ──────────────────────────────────────────── */

.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.step {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .45s var(--ease), box-shadow .35s var(--ease), border-color .3s ease;
  overflow: hidden;
  isolation: isolate;
}
.step::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--navy));
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.step:hover::before { transform: scaleX(1); }
.step__n {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--muted);
}
.step__n span {
  color: var(--red);
  font-size: 36px;
  letter-spacing: -0.02em;
  display: block;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.step__title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--navy-900);
  margin: 0;
}
.step__desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Connector arrow between steps (desktop only) */
@media (min-width: 1080px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px; top: 50%;
    width: 22px; height: 22px;
    background: #fff;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    transform: translateY(-50%) rotate(45deg);
    z-index: 2;
  }
}


/* 25 ── CONTACT FORM ───────────────────────────────────────────── */

.contact-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(48px, 6vw, 80px);
  }
}

.contact-left { display: flex; flex-direction: column; gap: 24px; max-width: 56ch; }
.contact-left .eyebrow { margin-bottom: 4px; }
.contact-left .h2 { margin-bottom: 8px; }
.contact-left .lead { color: var(--ink); }

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}
@media (min-width: 540px) {
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}

.cc {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .3s ease, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cc:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.cc__ic {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(31, 34, 113, .08);
  color: var(--navy);
}
.cc__ic svg { width: 20px; height: 20px; }
.cc__lbl {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.cc__val {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.35;
}
.cc__val a { color: inherit; }
.cc__val a:hover { color: var(--red); }

/* Form */
.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 18px;
}
.form__head {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 4px;
}
.form__head strong {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  color: var(--navy-900);
}
.form__head small { color: var(--muted); font-size: 14px; }

.form__row {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field {
  display: flex; flex-direction: column;
  gap: 6px;
}
.field__lbl {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
}
.field__lbl::after {
  content: ' *';
  color: var(--red);
}
.field--optional .field__lbl::after { content: ''; }

.field__input,
.field__select,
.field__textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  width: 100%;
  transition: border-color .25s ease, box-shadow .25s ease, background .2s ease;
  outline: none;
  appearance: none;
}
.field__input:hover,
.field__select:hover,
.field__textarea:hover { border-color: rgba(31, 34, 113, .4); }
.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(31, 34, 113, .14);
}
.field__textarea { resize: vertical; min-height: 140px; line-height: 1.55; }

.field__select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='%231F2271' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}

.field--invalid .field__input,
.field--invalid .field__select,
.field--invalid .field__textarea {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(208, 0, 0, .12);
}
.field__err {
  color: var(--red);
  font-size: 12.5px;
  font-weight: 500;
  display: none;
}
.field--invalid .field__err { display: block; }

.form__submit {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.form__submit small {
  color: var(--muted);
  font-size: 12.5px;
  max-width: 26ch;
  line-height: 1.5;
}

.form__alert {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  display: none;
  align-items: flex-start;
  gap: 10px;
}
.form__alert.is-show { display: flex; }
.form__alert--ok {
  background: rgba(31, 203, 114, .12);
  color: #146E3D;
  border: 1px solid rgba(31, 203, 114, .25);
}
.form__alert--err {
  background: rgba(208, 0, 0, .08);
  color: var(--red-600);
  border: 1px solid rgba(208, 0, 0, .2);
}
.form__alert svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; }


/* 26 ── BIG MAP ────────────────────────────────────────────────── */

.bigmap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
@media (max-width: 720px) { .bigmap { aspect-ratio: 4 / 5; } }
.bigmap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bigmap__pin {
  position: absolute; left: 24px; top: 24px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: rgba(20, 22, 63, .92);
  color: #fff;
  border-radius: 999px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.bigmap__pin svg { width: 16px; height: 16px; color: var(--red); }


/* ════════════════════════════════════════════════════════════════════
   PRODUCT PAGES (used by proizvodi.html + 8 detail pages)
   27  Language switcher
   28  Filter chips
   29  Family / number badges
   30  Product split (gallery + intro)
   31  Image gallery + lightbox
   32  Spec tables
   33  Accordion (custom-styled <details>)
   34  Advantage list
   35  Color swatches & application chips
   36  Related products
   ════════════════════════════════════════════════════════════════════ */


/* 27 ── LANGUAGE SWITCHER ───────────────────────────────────────── */

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .25s ease, border-color .25s ease;
}
.nav.is-solid .lang {
  background: rgba(31, 34, 113, .04);
  border-color: rgba(31, 34, 113, .14);
}
.lang__opt {
  font-family: 'Sora', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #fff;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
  line-height: 1;
}
.nav.is-solid .lang__opt { color: var(--ink); }

.lang__opt--active {
  background: var(--red);
  color: #fff !important;
  box-shadow: 0 4px 10px -3px rgba(208, 0, 0, .55);
}

.lang__opt--disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}
.nav.is-solid .lang__opt--disabled { opacity: .35; }

/* Hide nav lang on smallest screens — burger menu has its own */
@media (max-width: 1023px) {
  .nav__cta-wrap .lang { display: none; }
}

/* Mobile menu lang variant */
.lang--mobile {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
  width: max-content;
  margin: 0 auto 24px;
}
.lang--mobile .lang__opt { color: #fff; }
.lang--mobile .lang__opt--active { color: #fff !important; }

/* Mobile "all products" link styling */
.mnav__sub-all {
  color: var(--red) !important;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .01em;
  padding: 14px 0 !important;
  border-bottom: 1px solid rgba(208, 0, 0, .15) !important;
  margin-bottom: 4px;
}
.mnav__sub-all:hover { color: #ff5a5a !important; }


/* 28 ── FILTER CHIPS (proizvodi listing) ─────────────────────── */

.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 40px;
}
@media (max-width: 720px) {
  .filters { border-radius: 16px; }
}

.filter-chip {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 9px 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--navy-900);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .35s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.filter-chip:hover { background: rgba(31, 34, 113, .06); }
.filter-chip.is-active {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(31, 34, 113, .55);
}
.filter-chip__n {
  font-size: 11px;
  opacity: .75;
  font-weight: 500;
}

/* Filtered-out card animation */
.prod-card[hidden] { display: none; }


/* 29 ── FAMILY / NUMBER BADGES (extend prod-card) ──────────── */

/* No-op: existing .prod-card__tag already does numbered badge. */


/* 30 ── PRODUCT SPLIT (gallery + intro) ───────────────────── */

.psplit {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 980px) {
  .psplit { grid-template-columns: 1.05fr 1fr; gap: clamp(48px, 6vw, 80px); }
}

.psplit__intro {
  display: flex; flex-direction: column; gap: 16px;
}
.psplit__intro .eyebrow { margin-bottom: 4px; }
.psplit__intro .lead { color: var(--ink); }
.psplit__intro .muted-p { font-size: 15.5px; }
.psplit__ctas {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px;
}


/* 31 ── IMAGE GALLERY + LIGHTBOX ──────────────────────────── */

.gal { display: flex; flex-direction: column; gap: 12px; }

.gal__main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-600));
  cursor: zoom-in;
  border: 1px solid var(--line);
}
.gal__main::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.3px);
  background-size: 18px 18px;
  opacity: .5;
}
.gal__main img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .35s var(--ease);
}
.gal__main img[data-failed] { display: none; }
.gal__zoom {
  position: absolute; right: 14px; top: 14px;
  width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(20, 22, 63, .65);
  color: #fff; backdrop-filter: blur(6px);
  pointer-events: none;
  transition: background .25s ease;
}
.gal__main:hover .gal__zoom { background: var(--red); }
.gal__zoom svg { width: 18px; height: 18px; }

.gal__counter {
  position: absolute; left: 14px; bottom: 14px;
  font-family: 'Sora', sans-serif; font-weight: 600;
  font-size: 12px; letter-spacing: .14em;
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(20, 22, 63, .55);
  backdrop-filter: blur(6px);
}

.gal__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
@media (min-width: 720px) {
  .gal__thumbs { grid-template-columns: repeat(6, 1fr); }
}
.gal__thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s ease, transform .35s var(--ease), opacity .25s ease;
  opacity: .65;
}
.gal__thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.gal__thumb img[data-failed] { display: none; }
.gal__thumb:hover { opacity: 1; transform: translateY(-2px); }
.gal__thumb.is-active {
  opacity: 1;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(208, 0, 0, .14);
}

/* Lightbox */
.lb {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(20, 22, 63, .96);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 60px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.lb.is-open { opacity: 1; pointer-events: auto; }
.lb__img-wrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  max-height: 80vh;
}
.lb__img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}
.lb__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background .2s ease;
}
.lb__btn:hover { background: var(--red); border-color: var(--red); }
.lb__btn svg { width: 22px; height: 22px; }
.lb__prev { left: 12px; }
.lb__next { right: 12px; }
@media (min-width: 720px) {
  .lb__prev { left: -76px; }
  .lb__next { right: -76px; }
}
.lb__close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.lb__close:hover { background: var(--red); }
.lb__close svg { width: 22px; height: 22px; }
.lb__count {
  position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .65);
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  letter-spacing: .18em;
}


/* 32 ── SPEC TABLES ──────────────────────────────────────── */

.spec-block {
  margin-block: 28px;
}
.spec-block__title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: clamp(1.0625rem, .9rem + .35vw, 1.25rem);
  color: var(--navy-900);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.spec-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 480px;
}
.spec-table th,
.spec-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: middle;
}
.spec-table th:last-child,
.spec-table td:last-child { border-right: 0; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table thead th {
  background: var(--bg-soft);
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy-900);
}
.spec-table tbody th {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-soft);
  width: 1%;
  white-space: nowrap;
}
.spec-table tbody tr:nth-child(even) td { background: rgba(245, 246, 250, .6); }
.spec-table strong { color: var(--navy-900); }

/* Two-column key/value list */
.kv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
@media (min-width: 720px) { .kv { grid-template-columns: repeat(2, 1fr); } }
.kv__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  align-items: center;
}
.kv__row:last-child,
.kv__row:nth-last-child(2) { border-bottom: 0; }
@media (max-width: 719px) {
  .kv__row:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}
.kv__k {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.kv__v { color: var(--navy-900); font-weight: 500; }


/* 33 ── ACCORDION (styled <details>) ─────────────────────── */

.acc {
  display: flex; flex-direction: column;
  gap: 10px;
  margin-block: 28px;
}
.acc__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .35s var(--ease);
}
.acc__item[open] {
  border-color: rgba(31, 34, 113, .25);
  box-shadow: var(--shadow-sm);
}
.acc__sum {
  display: flex; align-items: center; gap: 14px;
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--navy-900);
  letter-spacing: -0.005em;
  user-select: none;
}
.acc__sum::-webkit-details-marker { display: none; }
.acc__sum::marker { display: none; content: ''; }
.acc__sum:hover { color: var(--navy); }
.acc__num {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--red);
  flex-shrink: 0;
  background: rgba(208, 0, 0, .08);
  padding: 4px 8px;
  border-radius: 6px;
}
.acc__icon {
  margin-left: auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid; place-items: center;
  color: var(--navy);
  transition: transform .35s var(--ease), background .25s ease;
  flex-shrink: 0;
}
.acc__icon svg { width: 14px; height: 14px; }
.acc__item[open] .acc__icon {
  transform: rotate(45deg);
  background: var(--red);
  color: #fff;
}
.acc__body {
  padding: 0 20px 20px 56px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.acc__body p { margin: 0 0 10px; }
.acc__body p:last-child { margin-bottom: 0; }
.acc__body strong { color: var(--navy-900); }


/* 34 ── ADVANTAGE LIST ──────────────────────────────────── */

.advs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) { .advs { grid-template-columns: 1fr 1fr; } }

.adv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: start;
  transition: border-color .25s ease, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.adv:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.adv__ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
  color: #fff;
}
.adv__ic svg { width: 18px; height: 18px; }
.adv__title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy-900);
  margin: 0 0 4px;
}
.adv__desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}


/* 35 ── COLOR SWATCHES & APPLICATION CHIPS ───────────────── */

.swatches {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 18px 0 0;
}
.swatch {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  color: var(--navy-900);
  background: #fff;
}
.swatch__dot {
  width: 18px; height: 18px; border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}

.app-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 14px;
}
.app-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(31, 34, 113, .06);
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 500;
  font-family: 'Sora', sans-serif;
}
.app-chip svg { width: 13px; height: 13px; color: var(--red); }


/* 36 ── RELATED PRODUCTS ─────────────────────────────────── */

.related__head { margin-bottom: 32px; }
.related__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .related__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 1080px) {
  .related__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Prevent body scroll when lightbox open */
body.lb-open { overflow: hidden; }


/* ─────────────────────────────────────────────────────────────────────
   DEMO IMAGE MARKER — added at runtime by `useDemo()` in js/main.js
   when an image's original src 404s (placeholder folder not filled yet).
   Swap is silent by default. To highlight every demo image during
   client review, uncomment the rule below.
   TODO: delete this block and the JS counterpart once real images arrive.
   ───────────────────────────────────────────────────────────────────── */
/* .is-demo-img { outline: 2px dashed var(--red); outline-offset: -2px; } */
