/* =========================================================
   ELEKTROMATERIJAL d.o.o. — global styles
   Minimalist B2B industrial catalog
   ========================================================= */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tokens ---------- */
:root{
  --brand:        #F00000;
  --brand-deep:   #C10000;
  --brand-tint:   #FFF1F1;
  --ink:          #121212;
  --ink-soft:     #3A3A3D;
  --muted:        #6B6B70;
  --line:         #E6E6E9;
  --line-strong:  #D1D1D6;
  --surface:      #F5F5F6;
  --paper:        #FFFFFF;
  --radius:       14px;
  --radius-sm:    8px;
  --maxw:         1200px;

  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* fluid type scale */
  --fs-eyebrow: 12px;
  --fs-body:    16px;
  --fs-lead:    clamp(17px, 1.1vw + 14px, 20px);
  --fs-h4:      clamp(18px, 0.5vw + 16px, 22px);
  --fs-h3:      clamp(22px, 1vw + 18px, 28px);
  --fs-h2:      clamp(28px, 2vw + 20px, 44px);
  --fs-h1:      clamp(36px, 4vw + 20px, 68px);
  --fs-display: clamp(44px, 6vw + 20px, 96px);

  /* spacing (8pt) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  --header-h: 72px;
  --easing: cubic-bezier(.2,.7,.2,1);

  --shadow-1: 0 1px 2px rgba(20,20,25,.04), 0 2px 8px rgba(20,20,25,.04);
  --shadow-2: 0 4px 16px rgba(20,20,25,.06), 0 12px 40px rgba(20,20,25,.06);
  --shadow-3: 0 8px 24px rgba(20,20,25,.10), 0 24px 64px rgba(20,20,25,.10);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: 1.1; }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
h4 { font-size: var(--fs-h4); line-height: 1.2; letter-spacing: -0.01em; }
p  { font-size: var(--fs-body); color: var(--ink-soft); }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: 1.5; }
.display { font-size: var(--fs-display); line-height: .95; letter-spacing: -0.035em; font-weight: 800; }
.mono { font-family: var(--font-mono); font-weight: 500; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--brand);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--brand); }

.section-title { max-width: 720px; margin-bottom: var(--s-2); }
.section-lead  { max-width: 640px; margin-top: var(--s-3); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.section {
  padding-block: clamp(64px, 10vw, 128px);
}
.section--tight { padding-block: clamp(48px, 8vw, 88px); }
.section--surface { background: var(--surface); }
.section--dark {
  background: var(--ink);
  color: #EDEDF0;
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: #B7B7BE; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: clamp(32px, 5vw, 64px);
}
.section-head .row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .18s var(--easing), background .18s var(--easing), color .18s var(--easing), border-color .18s var(--easing), box-shadow .18s var(--easing);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 20px rgba(240,0,0,.22);
}
.btn--primary:hover { background: var(--brand-deep); box-shadow: 0 8px 26px rgba(193,0,0,.32); }
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--surface); }
.btn--sm { padding: 10px 16px; min-height: 40px; font-size: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .18s var(--easing), border-color .18s var(--easing), gap .18s var(--easing);
}
.link-arrow:hover { color: var(--brand); border-color: var(--brand); gap: 12px; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .18s var(--easing); }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: height .3s var(--easing), background .3s var(--easing), border-color .3s var(--easing);
}
.site-header.is-scrolled {
  height: 60px;
  background: rgba(255,255,255,.94);
  border-bottom-color: var(--line);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding-block: 10px;
}
.brand img { height: 100%; max-height: 44px; width: auto; }
.site-header.is-scrolled .brand img { max-height: 38px; }

.nav {
  display: none;
  gap: 2px;
  align-items: center;
  flex-wrap: nowrap;
}
.nav a {
  padding: 10px 12px;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color .18s var(--easing), background .18s var(--easing);
  position: relative;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
/* Desktop header keeps only logo + nav. Phone + Zatraži ponudu live inside the
   mobile overlay menu (see .mobile-menu .actions). */
.header-phone {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
.header-phone svg { display: inline-block; vertical-align: -3px; width: 14px; height: 14px; margin-right: 6px; color: var(--brand); }

.hamburger {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}
.hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .3s var(--easing), background .3s;
}
.hamburger span::before, .hamburger span::after {
  content: '';
  position: absolute; left: 0;
  width: 18px; height: 2px;
  background: var(--ink);
  transition: transform .3s var(--easing);
}
.hamburger span::before { top: -6px; }
.hamburger span::after  { top: 6px; }
.mobile-menu-open .hamburger span { background: transparent; }
.mobile-menu-open .hamburger span::before { transform: translateY(6px) rotate(45deg); }
.mobile-menu-open .hamburger span::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform .5s var(--easing), opacity .3s var(--easing), visibility .3s;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 32px) clamp(20px, 5vw, 40px) 40px;
  overflow-y: auto;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .actions {
  margin-top: auto;
  padding-top: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.mobile-menu .actions .header-phone { font-size: 16px; }

body.mobile-menu-open { overflow: hidden; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 620px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__slides {
  position: absolute;
  inset: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--easing), transform 8s linear;
  transform: scale(1.08);
  will-change: opacity, transform;
}
.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero__slide-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 700px at 82% 18%, rgba(240,0,0,.14), transparent 60%),
    linear-gradient(180deg, rgba(18,18,18,.25) 0%, rgba(18,18,18,.45) 45%, rgba(18,18,18,.78) 100%),
    linear-gradient(90deg, rgba(18,18,18,.55) 0%, rgba(18,18,18,0) 55%);
}
.hero__slide-media { background-color: #0f0f10; }

.hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(96px, 12vh, 160px);
}
.hero__eyebrow {
  color: #fff;
  opacity: .85;
  margin-bottom: var(--s-5);
}
.hero__eyebrow::before { background: var(--brand); }
.hero h1 {
  color: #fff;
  max-width: 14ch;
  margin-bottom: var(--s-5);
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: .95;
}
.hero__sub {
  color: rgba(255,255,255,.85);
  font-size: var(--fs-lead);
  max-width: 44ch;
  margin-bottom: var(--s-6);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__ctas .btn--ghost {
  border-color: rgba(255,255,255,.35);
  color: #fff;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(4px);
}
.hero__ctas .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Slider controls */
.hero__controls {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 4vw, 40px);
  right: clamp(20px, 4vw, 40px);
  bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.hero__dots { display: flex; gap: 10px; }
.hero__dot {
  width: 32px; height: 3px;
  background: rgba(255,255,255,.28);
  border-radius: 3px;
  transition: background .3s var(--easing), width .3s var(--easing);
}
.hero__dot.is-active { background: #fff; width: 56px; }
.hero__arrows { display: flex; gap: 8px; }
.hero__arrow {
  width: 48px; height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s, border-color .18s;
}
.hero__arrow:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero__arrow svg { width: 18px; height: 18px; }

.hero__scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  bottom: 88px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  display: none;
}
.hero__scroll-cue::after {
  content: '';
  display: block;
  width: 1px; height: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.8), transparent);
  margin: 12px auto 0;
  animation: cue 2s var(--easing) infinite;
}
@keyframes cue { 0%,100% { transform: translateY(0); opacity: .8; } 50% { transform: translateY(6px); opacity: .3; } }

/* Page hero (non-index) — dark image + consistent overlay */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(80px, 12vw, 140px));
  padding-bottom: clamp(72px, 12vw, 140px);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(0,0,0,.15);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1400px 800px at 82% 12%, rgba(240,0,0,.18), transparent 55%),
    linear-gradient(180deg, rgba(18,18,18,.25) 0%, rgba(18,18,18,.55) 45%, rgba(18,18,18,.85) 100%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.7);
  margin-bottom: var(--s-4);
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.85); }
.page-hero .breadcrumb a:hover { color: var(--brand); }
.page-hero .breadcrumb span { color: rgba(255,255,255,.28); margin: 0 8px; }
.page-hero .breadcrumb > span:last-child { color: #fff; margin: 0; font-weight: 500; }
.page-hero .eyebrow { color: rgba(255,255,255,.9); }
.page-hero .eyebrow::before { background: var(--brand); }
.page-hero h1 { max-width: 20ch; margin-bottom: var(--s-4); color: #fff; }
.page-hero .lead { max-width: 60ch; color: rgba(255,255,255,.82); }
.page-hero .lead a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.4); }
.page-hero .lead a:hover { color: var(--brand); border-color: var(--brand); }
.page-hero .lead b { color: #fff; }

/* ---------- USP strip ---------- */
.usp {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.usp__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.usp__item {
  padding: var(--s-6) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.usp__item:last-child { border-bottom: 0; }
.usp__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.14em;
  min-width: 40px;
  padding-top: 4px;
}
.usp__ic {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.usp__ic svg { width: 20px; height: 20px; }
.usp__text h4 { margin-bottom: 4px; }
.usp__text p { font-size: 14px; color: var(--muted); }

/* ---------- Categories grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cat-card {
  background: #fff;
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: background .25s var(--easing);
  position: relative;
  min-height: 220px;
}
.cat-card:hover { background: var(--brand-tint); }
.cat-card__ic {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s var(--easing), color .25s var(--easing);
}
.cat-card:hover .cat-card__ic { background: var(--brand); color: #fff; }
.cat-card__ic svg { width: 22px; height: 22px; }
.cat-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  position: absolute;
  top: var(--s-6);
  right: var(--s-6);
}
.cat-card h3 { font-size: 20px; letter-spacing: -0.015em; }
.cat-card p { font-size: 14px; color: var(--muted); }
.cat-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: var(--s-4);
}
.cat-card__count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.cat-card__arrow {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s, transform .25s var(--easing);
}
.cat-card:hover .cat-card__arrow { background: var(--brand); transform: rotate(-45deg); }
.cat-card__arrow svg { width: 14px; height: 14px; }

/* ---------- Brands row ---------- */
/* Uses flex-wrap (not grid) so any last-row orphans center instead of leaving empty cells.
   Basis is set per breakpoint via CSS custom property --tile-basis. */
.brands-row {
  --tile-basis: calc(50% - 1px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.brands-row .brand-tile {
  flex: 1 1 var(--tile-basis);
  max-width: var(--tile-basis);
}
.brand-tile {
  background: #fff;
  padding: var(--s-5) var(--s-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 120px;
  text-align: center;
  transition: background .25s var(--easing);
}
.brand-tile:hover { background: var(--surface); }
.brand-tile__name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-tile__note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Reference tags/cards ---------- */
.ref-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
.ref-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-6);
  background: #fff;
}
.ref-block h3 {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  font-size: 22px;
}
.ref-block h3 .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ref-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ref-tag {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: border-color .18s, color .18s, background .18s;
  font-weight: 500;
}
.ref-tag:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.ref-tag--strong { border-color: var(--ink); color: var(--ink); }

/* ---------- Big CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 80px);
  display: grid;
  gap: var(--s-5);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(240,0,0,.5) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 55ch; font-size: var(--fs-lead); }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  margin-top: var(--s-3);
}
.cta-band__phone {
  font-family: var(--font-mono);
  font-size: 15px;
  color: #fff;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
}
.cta-band__phone svg { width: 14px; height: 14px; margin-right: 8px; color: var(--brand); vertical-align: -2px; }

/* ---------- About teaser ---------- */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: start;
}
.about-teaser__figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-figure {
  background: #fff;
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-figure__num {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.about-figure__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- Contact preview ---------- */
.locations {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
.location-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.location-card__type {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
}
.location-card h4 { font-size: 20px; letter-spacing: -0.01em; }
.location-card__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.location-card__row svg { width: 16px; height: 16px; color: var(--muted); flex: none; margin-top: 3px; }
.location-card__row a:hover { color: var(--brand); }
.location-card__phones { display: flex; flex-direction: column; gap: 4px; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ink);
  color: #C3C3C9;
  padding: clamp(48px, 8vw, 96px) 0 32px;
}
.site-footer .container { display: grid; gap: var(--s-6); }
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid #2A2A2E;
}
.footer-brand { display: flex; flex-direction: column; gap: var(--s-3); max-width: 320px; }
.footer-brand .brand-logo {
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  align-self: flex-start;
}
.footer-brand .brand-logo img { max-height: 40px; width: auto; }
.footer-brand p { color: #8E8E96; font-size: 14px; line-height: 1.6; }
.footer-brand .iso {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
  border: 1px solid #2A2A2E;
  padding: 8px 12px;
  border-radius: 999px;
  align-self: flex-start;
}
.footer-brand .iso .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--brand); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8E8E96;
  margin-bottom: var(--s-4);
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #C3C3C9; font-size: 14.5px; transition: color .18s; }
.footer-col a:hover { color: #fff; }
.footer-col .mono { font-family: var(--font-mono); font-size: 13px; color: #fff; display: block; }
.footer-col .muted-line { color: #8E8E96; font-size: 13px; line-height: 1.6; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #6B6B70;
}
.footer-bottom .mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; }

/* ---------- Floating widgets ---------- */
.ai-launcher {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 80;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 30px rgba(240,0,0,.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s var(--easing), background .2s;
}
.ai-launcher:hover { background: var(--brand-deep); transform: scale(1.05); }
.ai-launcher svg { width: 24px; height: 24px; }
.ai-launcher.is-open { background: var(--ink); }
.ai-launcher .close-icon { display: none; }
.ai-launcher.is-open .open-icon { display: none; }
.ai-launcher.is-open .close-icon { display: block; }

.ai-panel {
  position: fixed;
  left: 20px;
  bottom: 88px;
  z-index: 80;
  width: min(360px, calc(100vw - 40px));
  height: min(540px, calc(100vh - 120px));
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-3);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(.96);
  transform-origin: bottom left;
  transition: opacity .25s var(--easing), transform .25s var(--easing), visibility .25s;
  overflow: hidden;
}
.ai-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.ai-panel__head {
  padding: var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.ai-panel__avatar {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.ai-panel__avatar svg { width: 18px; height: 18px; }
.ai-panel__title { font-weight: 700; font-size: 15px; color: var(--ink); }
.ai-panel__subtitle { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.ai-panel__status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #10a37f; }
.ai-panel__status::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: #10a37f; }
.ai-panel__close {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.ai-panel__close:hover { background: var(--surface); color: var(--ink); }

.ai-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  background: var(--surface);
}
.ai-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  animation: msgIn .3s var(--easing);
}
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.ai-msg--bot {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.ai-msg--user {
  background: var(--ink);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.ai-msg .quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.ai-msg .quick-chips button {
  font-size: 12px;
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  transition: background .18s, border-color .18s;
}
.ai-msg .quick-chips button:hover { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); }

.ai-panel__foot {
  padding: var(--s-3);
  border-top: 1px solid var(--line);
  background: #fff;
  display: flex;
  gap: 8px;
  align-items: center;
}
.ai-panel__input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  background: var(--surface);
  transition: border-color .18s, background .18s;
}
.ai-panel__input:focus { outline: none; border-color: var(--brand); background: #fff; }
.ai-panel__send {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s;
  flex: none;
}
.ai-panel__send:hover { background: var(--brand-deep); }
.ai-panel__send svg { width: 16px; height: 16px; }

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity .25s var(--easing), transform .25s var(--easing), visibility .25s, background .18s;
  box-shadow: var(--shadow-2);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand); }
.back-to-top svg { width: 18px; height: 18px; }

/* ---------- Products page ---------- */
.filter-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-6);
}
.search-box {
  position: relative;
}
.search-box svg {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  transition: border-color .18s, box-shadow .18s;
}
.search-box input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: border-color .18s, background .18s, color .18s;
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Product category sections (proizvodi.html) */
.cat-section {
  padding-block: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.cat-section:last-child { border-bottom: 0; }
.cat-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}
.cat-section__title {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex: 1 1 320px;
}
.cat-section__title .ic {
  width: 44px; height: 44px; flex: none;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.cat-section__title .ic svg { width: 22px; height: 22px; }
.cat-section__title h3 { font-size: 22px; margin-bottom: 2px; }
.cat-section__title p { font-size: 14px; color: var(--muted); }

.item-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.item-row {
  background: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  transition: background .18s;
  font-size: 14.5px;
}
.item-row:hover { background: var(--surface); }
.item-row__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  min-width: 32px;
  letter-spacing: 0.06em;
}
.item-row__name { flex: 1; color: var(--ink); }
.item-row__cta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .18s;
}
.item-row:hover .item-row__cta { opacity: 1; }

.empty-state {
  padding: var(--s-8) var(--s-5);
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.empty-state .mono { color: var(--brand); display: block; margin-bottom: var(--s-3); }

/* ---------- Category page ---------- */
.cat-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
}
.cat-side {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.cat-side .location-card { padding: var(--s-5); }

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
}
.mvv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
.mvv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-6);
}
.mvv-card .eyebrow { margin-bottom: var(--s-4); }
.mvv-card h3 { margin-bottom: var(--s-3); }
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
.timeline__item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.timeline__item:last-child { border-bottom: 0; }
.timeline__year {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--brand);
  font-size: 14px;
  letter-spacing: 0.06em;
}
.timeline__body h4 { margin-bottom: 6px; }
.timeline__body p { font-size: 14.5px; }

/* ---------- Documents ---------- */
.doc-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.doc-row {
  background: #fff;
  padding: var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  transition: background .18s;
}
.doc-row:hover { background: var(--surface); }
.doc-row__ic {
  width: 44px; height: 44px; flex: none;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.doc-row__ic svg { width: 20px; height: 20px; }
.doc-row__body { flex: 1; min-width: 0; }
.doc-row__title { font-weight: 600; color: var(--ink); font-size: 15.5px; }
.doc-row__meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.doc-row__cta {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .18s, border-color .18s;
}
.doc-row__cta:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.doc-row__cta svg { width: 12px; height: 12px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
.contact-people {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.person-row {
  background: #fff;
  padding: var(--s-5);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
}
.person-row:hover { background: var(--surface); }
.person-row__name { font-weight: 700; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.person-row__role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.person-row__contact { display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: 14px; color: var(--ink-soft); }
.person-row__contact a { display: inline-flex; align-items: center; gap: 6px; }
.person-row__contact a:hover { color: var(--brand); }
.person-row__contact svg { width: 14px; height: 14px; color: var(--muted); }

.map-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 380px;
  background: var(--surface);
}
.map-wrap #map { width: 100%; height: 100%; }
.leaflet-container { font-family: var(--font-sans) !important; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}
.form-card h3 { margin-bottom: var(--s-2); }
.form-card p.lead { margin-bottom: var(--s-6); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.field label .req { color: var(--brand); }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  min-height: 48px;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 140px; resize: vertical; font-family: var(--font-sans); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.field .error {
  font-size: 12.5px;
  color: var(--brand);
  min-height: 16px;
}
.form-status {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.ok { background: #ECFDF3; color: #08703A; border: 1px solid #A6F0C6; }
.form-status.err { background: var(--brand-tint); color: var(--brand-deep); border: 1px solid #FFCDCD; }
.form-status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Honeypot: visually hidden but still submitted. Not display:none — some bots skip that. */
.honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Submit spinner (rotates while form is submitting) */
@keyframes spin { to { transform: rotate(360deg); } }
[data-submit-spinner] { animation: spin .8s linear infinite; }
[data-submit][disabled] { opacity: .6; cursor: wait; }

/* Success block (replaces form on successful submit) */
.form-success {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  padding: var(--s-6);
  background: #ECFDF3;
  border: 1px solid #A6F0C6;
  border-radius: 12px;
  color: #08703A;
}
.form-success__icon {
  width: 44px; height: 44px; flex: none;
  border-radius: 999px;
  background: #08703A;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.form-success__icon svg { width: 22px; height: 22px; }
.form-success h3 { color: #08703A; font-size: 18px; margin-bottom: 6px; }
.form-success p { color: #085F32; font-size: 14.5px; margin: 0; }

/* Contact locations extended */
.contact-loc-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

/* ---------- Distributor benefit section (Brendovi) ---------- */
.dist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
.dist-media {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink) center / cover no-repeat;
  isolation: isolate;
}
.dist-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 80% 20%, rgba(240,0,0,.18), transparent 55%),
    linear-gradient(180deg, rgba(18,18,18,.25) 0%, rgba(18,18,18,.55) 45%, rgba(18,18,18,.9) 100%);
}
.dist-media__inner {
  position: absolute;
  left: var(--s-5);
  right: var(--s-5);
  bottom: var(--s-5);
  z-index: 2;
  color: #fff;
}
.dist-media__inner .eyebrow { color: rgba(255,255,255,.9); margin-bottom: var(--s-2); }
.dist-media__inner .eyebrow::before { background: var(--brand); }
.dist-media__inner h3 { color: #fff; font-size: clamp(20px, 2vw, 28px); }
.dist-media__inner p { color: rgba(255,255,255,.75); font-size: 14px; margin-top: 8px; max-width: 40ch; }

.dist-chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.dist-chip {
  background: #fff;
  padding: var(--s-5);
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  min-height: 120px;
}
.dist-chip__ic {
  width: 40px; height: 40px; flex: none;
  border-radius: 10px;
  background: var(--brand-tint); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.dist-chip__ic svg { width: 20px; height: 20px; }
.dist-chip__body h4 { font-size: 15px; letter-spacing: -0.005em; margin-bottom: 4px; }
.dist-chip__body p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ---------- Client + Project walls (Reference) ---------- */
.client-wall, .project-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.client-tile, .project-tile {
  background: #fff;
  padding: clamp(20px, 3vw, 32px) var(--s-4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 108px;
  font-weight: 600;
  color: var(--ink);
  font-size: 14.5px;
  letter-spacing: -0.005em;
  line-height: 1.35;
  transition: background .2s var(--easing), color .2s var(--easing);
  position: relative;
}
.client-tile::before, .project-tile::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background .2s;
}
.project-tile::before { background: var(--brand); opacity: .35; }
.client-tile:hover, .project-tile:hover { background: var(--surface); }
.client-tile:hover::before { background: var(--brand); }
.project-tile:hover::before { opacity: 1; }

/* ---------- Certificates page ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
.cert-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  transition: border-color .2s var(--easing), box-shadow .2s var(--easing), transform .2s var(--easing);
}
.cert-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.cert-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-3);
}
.cert-card__badge {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.cert-card__badge svg { width: 24px; height: 24px; }
.cert-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cert-card__code {
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--brand);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.cert-card__srps {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: -6px;
}
.cert-card h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-top: var(--s-2);
}
.cert-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.cert-card__cta {
  margin-top: auto;
  padding-top: var(--s-4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  border-top: 1px solid var(--line);
  transition: color .18s;
}
.cert-card__cta:hover { color: var(--brand); }
.cert-card__cta svg { width: 14px; height: 14px; }

.cert-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cert-meta__row {
  background: #fff;
  padding: 14px var(--s-4);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.cert-meta__k {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cert-meta__v {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

.trust-badges {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-5);
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: #fff;
}
.trust-badge__dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--brand);
}

/* ---------- Utility ---------- */
.hidden { display: none !important; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
.stack-lg > * + * { margin-top: var(--s-5); }
.stack-md > * + * { margin-top: var(--s-4); }
.center { text-align: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; }

/* Reveal on scroll (fallback) */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--easing), transform .8s var(--easing);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Root-cause fix: children of a stagger container are animated by GSAP.
   Without this, CSS holds them at opacity:0, GSAP reads that as destination
   and animates 0→0 → cards never appear. */
[data-stagger] > [data-reveal],
[data-stagger] > * > [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Split reveal for headlines (works with SplitType) */
.char { display: inline-block; will-change: transform, opacity; }

/* ---------- Media queries ---------- */
@media (min-width: 640px) {
  .usp__grid { grid-template-columns: repeat(2, 1fr); }
  .usp__item { border-right: 1px solid var(--line); padding: var(--s-5); }
  .usp__item:nth-child(2n) { border-right: 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-row { --tile-basis: calc(33.333% - 1px); }
  .about-teaser__figures { grid-template-columns: repeat(2, 1fr); }
  .locations { grid-template-columns: repeat(2, 1fr); }
  .contact-loc-detail { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .field--full { grid-column: 1 / -1; }
  .dist-chips { grid-template-columns: repeat(2, 1fr); }
  .client-wall,
  .project-wall { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .nav { display: inline-flex; }
  .hamburger { display: none; }
  .hero__scroll-cue { display: block; }
  .usp__grid { grid-template-columns: repeat(4, 1fr); }
  .usp__item { border-bottom: 0; }
  .usp__item:not(:last-child) { border-right: 1px solid var(--line); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .brands-row { --tile-basis: calc(20% - 1px); }
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .cta-band__actions { justify-content: flex-end; }
  .about-teaser { grid-template-columns: 1.1fr 1fr; gap: var(--s-8); }
  .about-teaser__figures { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 2fr; gap: var(--s-8); }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .cat-page-layout { grid-template-columns: 2fr 1fr; }
  .about-grid { grid-template-columns: 3fr 2fr; }
  .mvv-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1.1fr 1fr; }
  /* brands-page-grid deprecated: .brands-row is now flex-centered and handles all counts */
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .dist-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .dist-media { min-height: 420px; }
  .client-wall,
  .project-wall { grid-template-columns: repeat(3, 1fr); }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .ai-launcher { left: 30px; bottom: 30px; }
  .ai-panel { left: 30px; bottom: 100px; }
  .back-to-top { right: 30px; bottom: 30px; }
}

@media (min-width: 1200px) {
  .brands-row { --tile-basis: calc(20% - 1px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__slide { transform: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
