/* ==========================================================================
   Klinika – base, layout and shared components
   Mobile-first. Breakpoints: 480 · 768 · 1024 · 1200 · 1440
   ========================================================================== */

/* ---------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hd-h) + 16px);
}
html:focus-within { scroll-behavior: smooth; }
/* pages with sticky section tabs (product, sector): header + tabs, sections carry no extra margin */
html:has([data-kl-ptabs]) { scroll-padding-top: calc(var(--hd-h) + 57px); }
@media (min-width: 1024px) { html:has([data-kl-ptabs]) { scroll-padding-top: 121px; } }
/* bottom action bar (< 1024 px): keyboard focus and anchor targets must not stop under it (WCAG 2.4.11) */
@media (max-width: 1023.98px) { html:has(body.has-bar) { scroll-padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 16px); } }
/* demo theme switcher (.tsw) floats above the bar, the same offset as the cookie notice and toast */
@media (max-width: 1023.98px) { html:has(body.has-bar .tsw) { scroll-padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 66px); } }
[tabindex="-1"]:focus:not(:focus-visible), section[tabindex="-1"]:focus { outline: none; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  font-stretch: 100%;
  font-kerning: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
}
body.nav-open, body.filters-open, body.lb-open, body.sheet-open { overflow: hidden; }
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
svg { overflow: visible; }
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
input { text-overflow: ellipsis; } /* predugi placeholder na uskim zaslonima završava s … umjesto odrezane riječi */
button { cursor: pointer; }
button:disabled { cursor: default; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
main { display: block; outline: none; }
.print-only { display: none; }
::selection { background: var(--c-surface-3); color: var(--c-text); }

/* Long Croatian compounds never overflow */
h1, h2, h3, h4, .display, .h1, .h2, .h3, .h4 {
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 10 4 4;
}
p, li, dd, dt, td, th, figcaption, label, a, span { overflow-wrap: break-word; }

/* ---------------------------------------------------------------- Focus */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.ft :focus-visible, .on-dark :focus-visible, .mega__feature :focus-visible { outline-color: var(--c-highlight); }

/* ---------------------------------------------------------------- A11y helpers */
.sr, .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 1000;
  padding: 12px 18px;
  background: var(--c-dark); color: #fff;
  border-radius: var(--r-btn);
  font-weight: 600; text-decoration: none;
  transform: translateY(-150%);
  transition: transform var(--dur-1) var(--ease);
}
.skip:focus { transform: none; }

/* ---------------------------------------------------------------- Icons */
.icon {
  width: 20px; height: 20px;
  flex: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--xs { width: 14px; height: 14px; stroke-width: 1.75; }
.icon--sm { width: 16px; height: 16px; stroke-width: 1.6; }
.icon--md { width: 24px; height: 24px; }
.icon--lg { width: 32px; height: 32px; stroke-width: 1.25; }
.icon--xl { width: 40px; height: 40px; stroke-width: 1.25; }

/* ---------------------------------------------------------------- Layout */
.wrap {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.wrap--text { max-width: calc(var(--text-col) + 2 * var(--gutter)); }
.sec { padding-block: var(--sec); }
.sec--sm { padding-block: var(--sec-sm); }
.sec--surface { background: var(--c-surface); }
.sec--ice { background: var(--c-surface-2); }
.sec--line { border-top: 1px solid var(--c-border); }
.sec--white + .sec--white, .sec:not(.sec--surface):not(.sec--ice) + .sec:not(.sec--surface):not(.sec--ice) { padding-top: 0; }
.sec--surface + .sec--surface, .sec--ice + .sec--ice { padding-top: 0; }
.stack > * + * { margin-top: var(--s-4); }

.sec-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--s-4) var(--s-7);
  margin-bottom: var(--s-7);
}
.sec-head__txt { max-width: 720px; }
.sec-head__txt > * + * { margin-top: var(--s-3); }
@media (min-width: 1024px) { .sec-head { margin-bottom: var(--s-8); } }

.grid { display: grid; gap: var(--gap); }
.grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 480px) {
  .grid--3c, .grid--4c { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (min-width: 768px) {
  .grid--2, .grid--3, .grid--4, .grid--3c, .grid--4c { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
}
@media (min-width: 1024px) {
  .grid--3, .grid--3c, .grid--4, .grid--4c { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .grid--4, .grid--4c { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- Typography */
.display, .h1, .h2, .h3, .h4, h1, h2, h3, h4 { font-weight: 600; color: var(--c-text); }
.display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: -.02em; text-wrap: balance; }
h1, .h1 { font-size: var(--fs-h1); line-height: 1.18; letter-spacing: -.02em; text-wrap: balance; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.36; letter-spacing: -.01em; }
h4, .h4 { font-size: var(--fs-h4); line-height: 1.42; letter-spacing: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--c-muted); max-width: 64ch; text-wrap: pretty; }
.muted { color: var(--c-muted); }
.small { font-size: var(--fs-sm); line-height: 1.6; }
.xs { font-size: var(--fs-xs); line-height: 1.54; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-eyebrow); line-height: 16px;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-primary);
}
.eyebrow::before {
  /* oznaka kote (dimension tick) – potpis teme */
  content: ""; flex: none;
  width: 18px; height: 9px;
  background:
    linear-gradient(currentColor, currentColor) left center / 1.5px 9px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 1.5px 9px no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
  opacity: .7;
}
.eyebrow--plain::before { display: none; }
.eyebrow--light { color: var(--c-highlight); }
.code {
  font-size: var(--fs-xs); line-height: 20px; font-weight: 600;
  color: var(--c-primary);
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}

/* Rich text (CMS) */
.prose { max-width: 72ch; color: var(--c-text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-h3); line-height: 1.36; margin-top: 1.8em; }
.prose h3 { font-size: var(--fs-h4); margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose ul > li, .prose ol > li { position: relative; padding-left: 28px; }
.prose ul > li + li, .prose ol > li + li { margin-top: .45em; }
.prose ul > li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 12px; height: 7px;
  border-left: 1.75px solid var(--c-primary); border-bottom: 1.75px solid var(--c-primary);
  transform: rotate(-45deg) translateY(-2px);
}
.prose ol { counter-reset: kl-ol; }
.prose ol > li::before {
  counter-increment: kl-ol; content: counter(kl-ol);
  position: absolute; left: 0; top: .15em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-surface-2); color: var(--c-primary);
  font-size: 12px; font-weight: 600; line-height: 20px; text-align: center;
}
.prose a { font-weight: 500; }
.prose strong { font-weight: 600; }
.prose img { border-radius: var(--r-card); }
.prose blockquote {
  padding: var(--s-5) var(--s-6);
  border-left: 3px solid var(--c-primary);
  background: var(--c-surface);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  font-size: var(--fs-lead);
}
.prose table { font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.prose th { font-weight: 600; background: var(--c-surface); }
.prose--lead > p:first-child { font-size: var(--fs-lead); line-height: 1.6; color: var(--c-muted); }

/* ---------------------------------------------------------------- Buttons */
.btn {
  --btn-h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h);
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: var(--r-btn);
  background: var(--c-primary); color: #fff;
  font-size: 1rem; line-height: 20px; font-weight: 600;
  text-decoration: none; text-align: center;
  white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn .icon { transition: transform var(--dur-2) var(--ease); }
@media (hover: hover) and (pointer: fine) { .btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); } }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-700); }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: var(--c-accent-700); }
.btn--outline { background: #fff; color: var(--c-primary); border-color: var(--c-primary); }
.btn--outline:hover { background: var(--c-surface); color: var(--c-primary-700); border-color: var(--c-primary-700); }
.btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-border-strong); }
.btn--ghost:hover { background: var(--c-surface); border-color: var(--c-primary); }
.btn--light { background: #fff; color: var(--c-text); }
.btn--light:hover { background: var(--c-surface-2); }
.btn--ondark { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ondark:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--sm { --btn-h: 40px; padding: 0 16px; font-size: .9375rem; }
.btn--lg { --btn-h: 52px; padding: 0 26px; }
.btn--block { display: flex; width: 100%; }
.btn--wrap { white-space: normal; }
.btn, .btn--sm, .btn--lg { padding-block: 6px; }
@media (max-width: 599.98px) { .btn { white-space: normal; } }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: kl-spin .7s linear infinite;
}
.btn--outline.is-loading::after, .btn--ghost.is-loading::after, .btn--light.is-loading::after { border-color: var(--c-surface-3); border-top-color: var(--c-primary); }
@keyframes kl-spin { to { transform: rotate(360deg); } }

.iconbtn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  padding: 0; border: 0; border-radius: var(--r-btn);
  background: transparent; color: var(--c-text);
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.iconbtn:hover { background: var(--c-surface); color: var(--c-primary); }
.iconbtn[aria-expanded="true"] { background: var(--c-surface-2); color: var(--c-primary); }
.iconbtn .icon { width: 22px; height: 22px; }

/* text link with arrow */
.tlink {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  color: var(--c-primary); font-weight: 600; text-decoration: none;
}
.tlink .icon { transition: transform var(--dur-2) var(--ease); }
.tlink:hover { color: var(--c-primary-700); text-decoration: underline; text-decoration-thickness: 2px; }
.tlink:hover .icon { transform: translateX(4px); }
.tlink--muted { color: var(--c-muted); font-weight: 500; }

/* pills & chips */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 14px;
  border: 1px solid var(--c-border); border-radius: var(--r-pill);
  background: #fff; color: var(--c-text);
  font-size: .875rem; line-height: 18px; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.pill:hover { border-color: var(--c-border-strong); background: var(--c-surface); }
.pill.is-active, .pill[aria-pressed="true"], .pill[aria-current="page"], .pill[aria-selected="true"] {
  background: var(--c-surface-2); border-color: var(--c-surface-3); color: var(--c-primary); font-weight: 600;
}
.pill .icon { color: var(--c-primary); }
.pill__count { color: var(--c-muted); font-weight: 500; font-variant-numeric: tabular-nums; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 28px; padding: 3px 12px;
  border-radius: var(--r-pill);
  background: var(--c-surface-2); color: var(--c-primary-700);
  font-size: var(--fs-xs); line-height: 18px; font-weight: 600;
  text-decoration: none;
}
.chip .icon { width: 14px; height: 14px; }
.chip--outline { background: #fff; border: 1px solid var(--c-border); color: var(--c-text); font-weight: 500; }
.chip--link { min-height: 36px; padding: 6px 14px; background: #fff; border: 1px solid var(--c-border); color: var(--c-text); font-weight: 500; font-size: .875rem; }
.chip--link:hover { border-color: var(--c-primary); color: var(--c-primary); }
.chip--x { padding-right: 6px; min-height: 32px; font-size: .875rem; }
.chip--x .chip__x { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.chip--x:hover .chip__x { background: var(--c-surface-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.badge {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--c-accent); color: #fff;
  font-size: 11px; line-height: 18px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.badge--light { background: #fff; color: var(--c-accent-700); }
.badge.is-bump { animation: kl-bump 300ms var(--ease); }
@keyframes kl-bump { 50% { transform: scale(1.25); } }

/* ---------------------------------------------------------------- Forms */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 768px) { .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field__label { font-size: .875rem; line-height: 20px; font-weight: 600; color: var(--c-text); }
.field__label .req { color: var(--c-accent-700); margin-left: 2px; }
.field__label .opt { color: var(--c-muted); font-weight: 400; margin-left: 4px; }
.field__hint { font-size: var(--fs-xs); line-height: 18px; color: var(--c-muted); }
.input, .select, .textarea {
  display: block; width: 100%;
  min-height: 48px; padding: 0 14px;
  border: 1px solid var(--c-border-input); border-radius: var(--r-input);
  background: #fff; color: var(--c-text);
  font-size: 1rem; line-height: 24px;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.textarea { padding: 12px 14px; min-height: 132px; resize: vertical; }
.select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A5C7A' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
  text-overflow: ellipsis;
}
.input::placeholder, .textarea::placeholder { color: #6f8796; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--c-primary); }
.input:focus, .select:focus, .textarea:focus, .input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-ring);
}
.is-invalid .input, .is-invalid .select, .is-invalid .textarea, .input[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--c-accent-700); box-shadow: 0 0 0 3px rgba(168, 44, 50, .12);
}
.field__err {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: var(--fs-xs); line-height: 18px; font-weight: 500;
  color: var(--c-accent-700);
}
.field__err .icon { width: 16px; height: 16px; margin-top: 1px; }

.check {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  min-height: 44px; padding: 10px 0;
  font-size: var(--fs-sm); line-height: 22px; cursor: pointer;
}
.check input {
  flex: none; margin: 0;
  width: 22px; height: 22px; margin-top: 0;
  border: 1.5px solid var(--c-border-input); border-radius: 6px;
  background: #fff; -webkit-appearance: none; appearance: none;
  display: grid; place-content: center;
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
  cursor: pointer;
}
.check input[type="radio"] { border-radius: 50%; }
.check input::before {
  content: ""; width: 12px; height: 7px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform var(--dur-1) var(--ease);
}
.check input[type="radio"]::before { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #fff; transform: scale(0); }
.check input:checked { background: var(--c-primary); border-color: var(--c-primary); }
.check input:checked::before { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input[type="radio"]:checked::before { transform: scale(1); }
.check input:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.is-invalid .check input, .check.is-invalid input { border-color: var(--c-accent-700); }

/* Radio "pills" and "cards" */
.choice { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: 8px; }
.choice__opt { position: relative; }
.choice__opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__opt span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--c-border-input); border-radius: var(--r-btn);
  background: #fff; font-size: var(--fs-sm); font-weight: 500;
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.choice__opt input:hover + span { border-color: var(--c-primary); }
.choice__opt input:checked + span { background: var(--c-surface-2); border-color: var(--c-primary); color: var(--c-primary-700); font-weight: 600; box-shadow: inset 0 0 0 1px var(--c-primary); }
.choice__opt input:focus-visible + span { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.choice--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.choice--cards .choice__opt span { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; min-height: 72px; padding: 12px 14px; width: 100%; line-height: 1.3; }
.choice--cards .choice__opt .icon { color: var(--c-primary); }

/* ---------------------------------------------------------------- Utility bar + header */
.util { display: none; }
@media (min-width: 1024px) {
  .util {
    display: block;
    height: var(--util-h);
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    font-size: var(--fs-xs); line-height: 20px;
  }
  .util__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
  .util__tag { display: flex; align-items: center; gap: 12px; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .util__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--c-border-strong); }
  .util__links { display: flex; align-items: center; gap: 24px; white-space: nowrap; }
  .util__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--c-muted); text-decoration: none; min-height: 32px; }
  .util__links a:hover, .util__links a[aria-current="page"] { color: var(--c-primary); }
  .util__links .util__strong { color: var(--c-text); font-weight: 600; font-variant-numeric: tabular-nums; }
}

.hd {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--c-border);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hd { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
}
.is-scrolled .hd { box-shadow: var(--sh-1); }
.hd__in { display: flex; align-items: center; gap: 12px; height: var(--hd-h); transition: transform var(--dur-2) var(--ease); }
@media (max-width: 1023.98px) {
  .is-scrolling-down:not(.nav-open):not(.hd-open):not(.filters-open) .hd { transform: translateY(-100%); box-shadow: none; }
}
@media (min-width: 1024px) {
  /* main bar sticks at -8px → visible 64px; content re-centred (no layout shift) */
  .hd { top: -8px; }
  .is-scrolled .hd__in { transform: translateY(4px); }
}

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; color: var(--c-text); text-decoration: none; margin-right: auto; }
.logo__img { height: 32px; width: auto; }
/* C01 (znak + ARB)RO + INDUSTRIAL) – inline SVG iz brand_logo() (partials/logo.php). Boje i ton dolaze iz Brand.php
   (svijetli ton u zaglavlju, tamni ton u podnožju); ovdje samo veličina: visina određuje veličinu, širina prati omjer
   ≈ 4,55 : 1. Puni znak ne ide ispod 32 px visine (ispod toga INDUSTRIAL postaje nečitljiv). */
.logo__svg { display: block; flex: 0 1 auto; min-width: 0; height: 36px; width: auto; aspect-ratio: 663.13 / 145.75; }
.logo--light { justify-self: start; }
.logo--light .logo__svg { height: 48px; }
@media (min-width: 1024px) { .logo__svg { height: 40px; } .logo--light .logo__svg { height: 44px; } }
@media (min-width: 1200px) { .logo--light .logo__svg { height: 52px; } }
/* zaštita za zaslone uže od 360 px: logo se smije proporcionalno suziti umjesto da gura gumbe izvan zaslona */
@media (max-width: 359.98px) { .hd .logo, .mnav__head .logo { flex: 0 1 auto; min-width: 0; } }
@media (forced-colors: active) {
  .brand-logo { --brand-ink: CanvasText; --brand-accent: CanvasText; --brand-sub: CanvasText; }
  .brand-logo path { fill: CanvasText !important; }
}

.dnav { display: none; }
.hd__actions { display: flex; align-items: center; gap: 4px; }
.hd__cta { display: none; }
.quotebtn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; min-width: 44px; padding: 0 10px;
  border-radius: var(--r-btn);
  color: var(--c-text); text-decoration: none; font-weight: 600; font-size: .9375rem;
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.quotebtn:hover, .quotebtn[aria-current="page"] { background: var(--c-surface); color: var(--c-primary); }
.quotebtn__ic { width: 22px; height: 22px; }
.quotebtn__label { display: none; }
.quotebtn .badge { position: absolute; top: 3px; right: 1px; box-shadow: 0 0 0 2px #fff; }

@media (min-width: 1024px) {
  .hd__in { gap: 20px; }
  .hd__burger { display: none; }
  /* Traka se može suziti; stavke koje ne stanu theme.js premješta pod "Više". Bez JS-a višak se reže
     (overflow-x: clip) umjesto da gura gumbe izvan zaslona; padding/margin čuvaju vidljiv fokus na rubovima. */
  .dnav { display: block; min-width: 0; padding: 4px; margin: -4px; overflow-x: clip; }
  .dnav__list { display: flex; align-items: center; gap: 2px; }
  .dnav__list > li[hidden] { display: none; }
  .dnav__link {
    position: relative;
    display: inline-flex; align-items: center; gap: 6px;
    height: 44px; padding: 0 12px;
    border: 0; border-radius: var(--r-btn); background: none;
    color: var(--c-text); font-size: .9375rem; line-height: 20px; font-weight: 500;
    text-decoration: none; white-space: nowrap;
    transition: color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
  }
  .dnav__link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: calc((44px - var(--hd-h)) / 2 + 0px);
    height: 2px; background: var(--c-primary); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease);
  }
  .dnav__link:hover { color: var(--c-primary); background: var(--c-surface); }
  .dnav__link[aria-current="page"], .dnav__link.is-current { color: var(--c-primary); font-weight: 600; }
  .dnav__link[aria-current="page"]::after, .dnav__link.is-current::after, .dnav__btn[aria-expanded="true"]::after { transform: scaleX(1); }
  .dnav__btn[aria-expanded="true"] { color: var(--c-primary); }
  .is-scrolled .dnav__link::after { bottom: -10px; }
  .dnav__chev { transition: transform var(--dur-2) var(--ease); }
  .dnav__btn[aria-expanded="true"] .dnav__chev { transform: rotate(180deg); }
  .hd__actions { gap: 8px; margin-left: 4px; }
  .quotebtn { height: 40px; padding: 0 14px 0 12px; border: 1.5px solid var(--c-border-strong); }
  .quotebtn:hover, .quotebtn[aria-current="page"] { border-color: var(--c-primary); }
  .quotebtn__label { display: inline; }
  .quotebtn__ic { width: 20px; height: 20px; }
  .quotebtn .badge { position: static; box-shadow: none; }
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
  /* compact desktop: tighter nav, icon-only quote button, primary CTA always present */
  .hd__in { gap: 12px; }
  .hd__actions { gap: 6px; margin-left: 0; }
  .dnav__link { padding: 0 9px; font-size: .9063rem; }
  .dnav__link::after { left: 9px; right: 9px; }
  .quotebtn { padding: 0 10px; gap: 6px; }
  .quotebtn__label { display: none; }
  .hd__cta { display: inline-flex; --btn-h: 40px; padding: 0 14px; font-size: .9063rem; }
}
@media (min-width: 1200px) { .dnav__link { padding: 0 14px; font-size: 1rem; } }
/* 1200–1239 px: traka sa zadanim stavkama inače bi bila nekoliko px preširoka (gumb ulazi u rub) */
@media (min-width: 1200px) and (max-width: 1239.98px) { .dnav__link { padding: 0 12px; } }
@media (min-width: 1200px) { .hd__cta { display: inline-flex; --btn-h: 44px; padding: 0 20px; } }

/* ---------------------------------------------------------------- Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  z-index: var(--z-mega);
  background: #fff;
  border-top: 1px solid var(--c-border);
  box-shadow: var(--sh-2);
  /* --util-h: the utility bar above the header (0 below 1024 px) */
  max-height: calc(100vh - var(--hd-h) - var(--util-h) - 8px);
  max-height: calc(100dvh - var(--hd-h) - var(--util-h) - 8px);
  overflow-y: auto; overscroll-behavior: contain;
  animation: kl-drop var(--dur-2) var(--ease);
}
@keyframes kl-drop { from { opacity: 0; transform: translateY(-6px); } }
.mega__in { padding-block: 28px 0; }
.mega__lens { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.mega__lens-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); margin-right: 6px; }
.mega__lens .pill { min-height: 32px; font-size: .875rem; }
.mega__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
.mega__cats { columns: 2; column-gap: 24px; }
.mega__cats > li { break-inside: avoid; padding-bottom: 4px; }
@media (min-width: 1200px) { .mega__grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; } .mega__cats { columns: 3; } }
.mitem {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px; margin: 0 -12px;
  border-radius: var(--r-card);
  color: var(--c-text); text-decoration: none;
  transition: background-color var(--dur-1) var(--ease), opacity var(--dur-2) var(--ease);
}
.mitem:hover { background: var(--c-surface); }
.mitem:hover .mitem__name { color: var(--c-primary); }
.mitem__ic {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: var(--r-btn);
  background: var(--c-surface-2); color: var(--c-primary);
}
.mitem__ic .icon { width: 24px; height: 24px; }
.mitem__txt { display: grid; gap: 2px; min-width: 0; }
.mitem__name { font-size: .9375rem; line-height: 22px; font-weight: 600; transition: color var(--dur-1) var(--ease); }
.mitem__count { margin-left: 4px; color: var(--c-muted); font-weight: 500; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.mitem__desc { font-size: var(--fs-xs); line-height: 20px; color: var(--c-muted); }
.mitem.is-empty { opacity: .45; }
.mega .mitem__sub { margin: -4px 0 10px 54px; padding-left: 12px; border-left: 1px solid var(--c-border); display: grid; }
.mitem__sub a { font-size: .875rem; line-height: 18px; color: var(--c-muted); text-decoration: none; display: flex; align-items: center; min-height: 30px; padding: 4px 0; }
.mitem__sub a:hover { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.mega__feature {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--c-dark); color: var(--c-dark-text);
  align-self: start;
}
.mega__feature::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px;
  border: 1.5px solid rgba(95, 195, 232, .25); border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(95, 195, 232, .05), 0 0 0 56px rgba(95, 195, 232, .03);
  pointer-events: none;
}
.mega__feature-title { font-size: 1.25rem; line-height: 1.35; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.mega__feature-text { font-size: .9375rem; line-height: 1.6; color: var(--c-dark-muted); }
.mega__feature .btn { margin-top: 6px; position: relative; z-index: 1; }
.mega__feature-tel { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; text-decoration: none; min-height: 44px; font-variant-numeric: tabular-nums; }
.mega__feature-tel:hover { color: var(--c-highlight); }
.mega__foot {
  display: flex; flex-wrap: wrap; gap: 4px 32px;
  margin-top: 24px; padding-block: 8px;
  border-top: 1px solid var(--c-border);
}
.mega--more .mega__in { padding-bottom: 24px; }
.mega__more { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 32px; }
.mega__more > li[hidden] { display: none; }
.mega__more .mitem[aria-current="page"] .mitem__name { color: var(--c-primary); }
.mega__sectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.msector { display: grid; gap: 6px; color: var(--c-text); text-decoration: none; }
.msector__img { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--c-surface-2); margin-bottom: 8px; }
.msector__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease); }
.msector:hover .msector__img img { transform: scale(1.04); }
.msector__name { display: flex; align-items: center; gap: 8px; font-size: 1.0625rem; line-height: 24px; font-weight: 600; }
.msector__name .icon { color: var(--c-primary); }
.msector:hover .msector__name { color: var(--c-primary); }
.msector__tag { font-size: var(--fs-xs); line-height: 20px; color: var(--c-muted); }
.msector__count { font-size: var(--fs-xs); font-weight: 600; color: var(--c-primary); }
.well-ic { display: grid; place-items: center; width: 100%; height: 100%; color: var(--c-border-strong); }

/* scrim behind mega/search */
.scrim {
  position: fixed; inset: 0; z-index: calc(var(--z-header) - 1);
  background: rgba(13, 38, 51, .28);
  animation: kl-fade var(--dur-2) var(--ease);
}
@keyframes kl-fade { from { opacity: 0; } }

/* ---------------------------------------------------------------- Header search */
.hsearch {
  position: absolute; left: 0; right: 0; top: 100%;
  z-index: var(--z-mega);
  background: #fff; border-top: 1px solid var(--c-border); box-shadow: var(--sh-2);
  padding-block: 16px 20px;
  animation: kl-drop var(--dur-2) var(--ease);
}
.hsearch__form { position: relative; display: flex; align-items: center; gap: 8px; }
.hsearch__ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--c-muted); pointer-events: none; }
.hsearch__input {
  flex: 1; min-width: 0; height: 52px; padding: 0 14px 0 46px;
  border: 1px solid var(--c-border-input); border-radius: var(--r-input);
  font-size: 1.0625rem; background: #fff;
  -webkit-appearance: none; appearance: none;
}
.hsearch__input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-ring); }
.hsearch__go { display: none; }
.hsearch__quick { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.hsearch__quick::-webkit-scrollbar { display: none; }
.hsearch__quick-label { font-size: var(--fs-xs); color: var(--c-muted); font-weight: 600; white-space: nowrap; }
.hsearch__quick .chip { white-space: nowrap; }
@media (min-width: 768px) { .hsearch__go { display: inline-flex; --btn-h: 52px; } .hsearch__quick { flex-wrap: wrap; overflow: visible; } }

/* Live search results (site-core: .ls-*) */
.ls {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5;
  max-height: min(70vh, 520px); overflow-y: auto;
  padding: 8px;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-card);
  box-shadow: var(--sh-3);
}
.ls-item {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 6px 10px;
  border-radius: var(--r-btn);
  color: var(--c-text); text-decoration: none;
}
.ls-item:hover, .ls-item:focus-visible { background: var(--c-surface); outline-offset: -2px; }
.ls-thumb { flex: none; width: 48px; height: 48px; border-radius: var(--r-btn); background: var(--c-surface); object-fit: contain; border: 1px solid var(--c-border); }
.ls-thumb--empty { display: block; background: var(--c-surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237E98A8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 21V3h12v18M3 21h18M14 12h.01'/%3E%3C/svg%3E") center / 22px no-repeat; }
.ls-text { display: grid; min-width: 0; }
.ls-name { font-size: .9375rem; line-height: 20px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ls-meta { font-size: var(--fs-xs); line-height: 18px; color: var(--c-muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-item--page { min-height: 44px; }
.ls-item--page::before {
  content: ""; flex: none; width: 48px; height: 32px; border-radius: var(--r-btn);
  background: var(--c-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A5C7A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6v18h12V7z'/%3E%3Cpath d='M14 3v4h4M9 13h6M9 17h4'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.ls-all {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; margin-top: 6px;
  border-top: 1px solid var(--c-border);
  color: var(--c-primary); font-weight: 600; font-size: .9375rem; text-decoration: none;
}
.ls-all:hover { background: var(--c-surface); border-radius: var(--r-btn); }
.ls-empty { padding: 16px 12px; color: var(--c-muted); font-size: .9375rem; }

/* ---------------------------------------------------------------- Mobile drill-down navigation */
.mnav {
  position: fixed; inset: 0; z-index: var(--z-sheet);
  display: none; flex-direction: column;
  width: 100%; height: 100vh; height: 100dvh;
  background: #fff;
  transform: translateX(100%);
  transition: transform var(--dur-3) var(--ease), display var(--dur-3) allow-discrete;
}
.nav-open .mnav { display: flex; transform: none; }
@starting-style { .nav-open .mnav { transform: translateX(100%); } }
@media (min-width: 1024px) { .mnav, .nav-open .mnav { display: none; } }
.mnav__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 60px; flex: none;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(calc(var(--gutter) - 10px), env(safe-area-inset-right));
  border-bottom: 1px solid var(--c-border);
}
.mnav__body { position: relative; flex: 1; overflow: hidden; }
.mnav__level {
  position: absolute; inset: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 16px max(var(--gutter), env(safe-area-inset-right)) 24px max(var(--gutter), env(safe-area-inset-left));
  background: #fff;
  transition: transform var(--dur-3) var(--ease);
}
.mnav__level[data-kl-level="root"].is-behind { transform: translateX(-24%); }
.mnav__sub { transform: translateX(100%); }
.mnav__sub.is-current { transform: none; box-shadow: var(--sh-3); }
.mnav__search { position: relative; margin-bottom: 8px; }
.mnav__search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--c-muted); }
.mnav__search input {
  width: 100%; height: 48px; padding: 0 14px 0 44px;
  border: 1px solid var(--c-border-input); border-radius: var(--r-input); background: var(--c-surface);
  font-size: 1rem; -webkit-appearance: none; appearance: none;
}
.mnav__search input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-ring); background: #fff; }
.mnav__list > li { border-bottom: 1px solid var(--c-border); }
.mnav__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 56px; padding: 0 2px;
  border: 0; background: none; text-align: left;
  color: var(--c-text); font-size: 1.125rem; line-height: 24px; font-weight: 600;
  text-decoration: none;
}
.mnav__row .icon { color: var(--c-primary); }
.mnav__row[aria-current="page"] { color: var(--c-primary); }
.mnav__back {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; padding: 0 8px 0 0; margin-left: -4px;
  border: 0; background: none; color: var(--c-primary); font-weight: 600; font-size: 1rem;
}
.mnav__title { font-size: var(--fs-h3); line-height: 1.3; font-weight: 600; margin: 4px 0 8px; letter-spacing: -.01em; }
.mnav__list--sub > li { border-bottom: 0; }
.mnav__item {
  display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 6px 0;
  color: var(--c-text); text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 22px;
}
.mnav__item[aria-current="page"] { color: var(--c-primary); }
.mnav__item-txt { flex: 1; min-width: 0; }
.mnav__item-count { color: var(--c-muted); font-weight: 500; font-size: var(--fs-xs); }
.mnav__children { margin: -4px 0 8px 54px; }
.mnav__children a { display: flex; align-items: center; min-height: 40px; color: var(--c-muted); text-decoration: none; }
.mnav__contact { display: grid; gap: 4px; margin-top: 20px; padding: 16px; border-radius: var(--r-card); background: var(--c-surface); }
.mnav__contact a, .mnav__contact p { display: flex; align-items: flex-start; gap: 10px; min-height: 40px; padding-top: 10px; color: var(--c-text); text-decoration: none; font-size: .9375rem; line-height: 20px; font-variant-numeric: tabular-nums; }
.mnav__contact a { font-weight: 600; }
.mnav__contact .icon { color: var(--c-primary); margin-top: 2px; }
.mnav__foot {
  flex: none; display: grid; gap: 8px;
  padding: 12px max(var(--gutter), env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  border-top: 1px solid var(--c-border); background: #fff;
}

/* ---------------------------------------------------------------- Flash, cookie, toast */
.flashes { display: grid; gap: 8px; margin-top: 16px; }
.flash {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 8px 14px 16px;
  border-radius: var(--r-card); border: 1px solid;
  font-size: .9375rem; line-height: 22px;
}
.flash__ic { margin-top: 1px; }
.flash__msg { flex: 1; min-width: 0; padding-top: 0; }
.flash__x { display: grid; place-items: center; width: 32px; height: 32px; margin: -6px 0; border: 0; border-radius: 6px; background: transparent; color: inherit; }
.flash__x:hover { background: rgba(13, 38, 51, .06); }
.flash--success { background: var(--c-success-bg); border-color: #b7dcc7; color: #155c3b; }
.flash--error { background: var(--c-error-bg); border-color: #f0c4c6; color: var(--c-accent-700); }
.flash--info, .flash--warning { background: var(--c-surface); border-color: var(--c-border); color: var(--c-text); }
.flash--info .flash__ic { color: var(--c-primary); }

.cookie {
  position: fixed; z-index: var(--z-cookie);
  left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  padding: 14px 14px 14px 16px;
  background: var(--c-dark); color: var(--c-dark-text);
  border-radius: var(--r-card); box-shadow: var(--sh-3);
  font-size: .875rem; line-height: 20px;
  animation: kl-rise var(--dur-3) var(--ease);
}
.has-bar .cookie { bottom: calc(var(--bar-h) + 10px + env(safe-area-inset-bottom)); }
.cookie__txt { display: flex; gap: 10px; flex: 1 1 260px; min-width: 0; }
.cookie__txt .icon { color: var(--c-highlight); margin-top: 2px; }
.cookie a { color: #fff; font-weight: 600; }
.cookie .btn { --btn-h: 44px; background: #fff; color: var(--c-text); }
.cookie .btn:hover { background: var(--c-surface-2); }
@keyframes kl-rise { from { opacity: 0; transform: translateY(12px); } }
@media (min-width: 768px) {
  .cookie { left: auto; right: 24px; bottom: 24px; max-width: 520px; }
  .has-bar .cookie { bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom)); }
}
@media (min-width: 1024px) { .has-bar .cookie { bottom: 24px; } }
/* demo odabir dizajna (.tsw) – obavijesti iznad njega */
body:has(.tsw) .cookie, body:has(.tsw) .site-toast { bottom: calc(68px + env(safe-area-inset-bottom)); }
@media (max-width: 1023.98px) { body.has-bar:has(.tsw) .cookie, body.has-bar:has(.tsw) .site-toast { bottom: calc(var(--bar-h) + 66px + env(safe-area-inset-bottom)); } }

.site-toast {
  position: fixed; z-index: var(--z-toast);
  left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px 14px 48px;
  background: var(--c-dark); color: #fff;
  border-radius: var(--r-card); box-shadow: var(--sh-3);
  font-size: .9375rem; line-height: 22px;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.has-bar .site-toast { bottom: calc(var(--bar-h) + 10px + env(safe-area-inset-bottom)); }
.site-toast::before {
  content: ""; position: absolute; left: 14px; top: 50%; margin-top: -12px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.site-toast.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.site-toast--error::before { background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / 16px no-repeat; }
.site-toast__msg { flex: 1 1 200px; min-width: 0; }
.site-toast__link {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border-radius: var(--r-btn); background: #fff; color: var(--c-text);
  font-weight: 600; font-size: .875rem; text-decoration: none; white-space: nowrap;
}
.site-toast__link:hover { background: var(--c-surface-2); }
@media (min-width: 768px) {
  .site-toast { left: auto; right: 24px; bottom: 24px; max-width: 460px; }
  .has-bar .site-toast { bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom)); }
}
@media (min-width: 1024px) { .has-bar .site-toast { bottom: 24px; } }

/* ---------------------------------------------------------------- Lightbox (site-core: .lb*) */
.lb {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: none; align-items: center; justify-content: center;
  padding: 64px max(12px, env(safe-area-inset-right)) calc(56px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(8, 26, 35, .94);
}
.lb.is-open { display: flex; animation: kl-fade var(--dur-2) var(--ease); }
.lb__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.lb__img {
  max-width: min(100%, 1400px); max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px);
  width: auto; height: auto; object-fit: contain;
  border-radius: var(--r-img); background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.lb__cap { color: var(--c-dark-text); font-size: .875rem; line-height: 20px; text-align: center; max-width: 64ch; }
.lb__cap:empty { display: none; }
.lb__close, .lb__prev, .lb__next {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0;
  border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  font-size: 28px; line-height: 1; font-weight: 300;
  transition: background-color var(--dur-1) var(--ease);
}
.lb__close:hover, .lb__prev:hover, .lb__next:hover { background: rgba(255,255,255,.2); }
.lb__close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
.lb__prev, .lb__next { top: 50%; margin-top: -24px; }
.lb__prev { left: max(12px, env(safe-area-inset-left)); }
.lb__next { right: max(12px, env(safe-area-inset-right)); }
.lb--single .lb__prev, .lb--single .lb__next { display: none; }
.lb__count {
  position: absolute; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  padding: 4px 12px; border-radius: var(--r-pill); background: rgba(255,255,255,.1);
  color: #fff; font-size: .8125rem; font-variant-numeric: tabular-nums;
}
.lb__count:empty { display: none; }
@media (max-width: 767.98px) {
  .lb__prev, .lb__next { top: auto; bottom: calc(8px + env(safe-area-inset-bottom)); margin: 0; }
}

/* ---------------------------------------------------------------- Breadcrumbs, pager */
.crumbs { font-size: var(--fs-xs); line-height: 20px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; min-width: 0; color: var(--c-muted); }
.crumbs li + li::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237E98A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.crumbs a { color: var(--c-muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--c-primary); text-decoration: underline; }
.crumbs [aria-current] { color: var(--c-text); font-weight: 500; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs-back { display: none; }
@media (max-width: 767.98px) {
  .crumbs--compact ol { display: none; }
  .crumbs--compact .crumbs-back { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; color: var(--c-primary); font-weight: 600; font-size: .875rem; text-decoration: none; }
}

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: var(--s-9); }
.pager > a, .pager > span {
  display: inline-grid; place-items: center;
  min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: var(--r-btn); border: 1px solid var(--c-border);
  color: var(--c-text); text-decoration: none; font-weight: 500; font-variant-numeric: tabular-nums;
}
.pager > a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pager [aria-current="page"] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 600; }
.pager .pager__gap { border-color: transparent; min-width: 24px; padding: 0; color: var(--c-muted); }
.pager .pager__dir { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
@media (max-width: 479.98px) { .pager .pager__dir span.lbl { display: none; } .pager .pager__dir { padding: 0; width: 44px; } }

/* ---------------------------------------------------------------- Page head */
.phead { padding-block: 20px var(--sec-sm); }
.phead--surface { background: linear-gradient(180deg, var(--c-surface) 0%, #fff 100%); }
.phead__crumbs { margin-bottom: 20px; }
.phead__grid { display: grid; gap: 20px; }
.phead__txt > * + * { margin-top: 14px; }
.phead__txt .lead { margin-top: 16px; }
.phead__aside { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
@media (min-width: 1024px) {
  .phead { padding-top: 24px; }
  .phead__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 48px; }
  .phead__aside { justify-content: flex-end; }
}

/* ---------------------------------------------------------------- Media wells */
.well {
  position: relative; display: grid; place-items: center;
  background: var(--c-surface); overflow: hidden;
}
.well > img { width: 100%; height: 100%; object-fit: cover; }
.well--contain > img { width: auto; height: auto; max-width: min(100%, var(--nw, 100%)); max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
/* definite track: without it the auto row grows with the image, max-height: 100% never applies and tall images are cropped */
.well--contain { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.well__ph { display: grid; place-items: center; gap: 8px; color: var(--c-border-strong); font-size: var(--fs-xs); font-weight: 500; text-align: center; }
.well__ph .icon { width: 44px; height: 44px; stroke-width: 1.1; }

/* ---------------------------------------------------------------- Product card */
.pcard {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-card);
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
  min-width: 0;
}
@media (hover: hover) and (pointer: fine) {
  .pcard:hover { transform: translateY(-2px); border-color: var(--c-border-strong); box-shadow: var(--sh-2); }
  .pcard:hover .pcard__name { color: var(--c-primary); }
  .pcard:hover .pcard__more .icon { transform: translateX(4px); }
}
.pcard:focus-within { border-color: var(--c-border-strong); }
.pcard__media {
  position: relative; aspect-ratio: 4 / 3;
  margin: 8px 8px 0; border-radius: var(--r-img);
  padding: 20px;
}
.pcard__media > img { transition: opacity var(--dur-3) var(--ease); }
.pcard__media .pcard__alt { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; opacity: 0; border-radius: var(--r-img); mix-blend-mode: normal; }
@media (hover: hover) and (pointer: fine) { .pcard:hover .pcard__alt { opacity: 1; } }
.pcard__tag {
  position: absolute; left: 10px; top: 10px; z-index: 1;
  max-width: calc(100% - 20px);
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .94); color: var(--c-primary-700);
  font-size: 12px; line-height: 16px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 0 0 1px var(--c-border);
}
.pcard__tag--badge { background: var(--c-accent); color: #fff; box-shadow: none; }
.pcard__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 16px var(--card-pad) 0; }
.pcard__code { font-size: var(--fs-xs); line-height: 20px; font-weight: 600; color: var(--c-primary); font-variant-numeric: tabular-nums; letter-spacing: .01em; overflow-wrap: anywhere; }
.pcard__name { font-size: 1.1875rem; line-height: 26px; font-weight: 600; letter-spacing: -.01em; transition: color var(--dur-1) var(--ease); hyphens: auto; }
.pcard__link { color: inherit; text-decoration: none; }
.pcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-card); }
.pcard__link:focus-visible { outline: none; }
.pcard__link:focus-visible::after { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.pcard__desc {
  font-size: .9375rem; line-height: 24px; color: var(--c-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard__sectors { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pcard__sector {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px 0 7px; border-radius: var(--r-pill);
  background: var(--c-surface); color: var(--c-muted);
  font-size: 12px; line-height: 16px; font-weight: 600;
}
.pcard__sector .icon { width: 14px; height: 14px; color: var(--c-primary); }
.pcard__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding: 14px var(--card-pad) 16px;
}
.pcard__more { display: inline-flex; align-items: center; gap: 6px; color: var(--c-primary); font-weight: 600; font-size: .9375rem; }
.pcard__more .icon { transition: transform var(--dur-2) var(--ease); }
.pcard__body + .pcard__foot { padding-top: 16px; }
.qadd { position: relative; z-index: 2; margin: 0; }
.qadd__btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1.5px solid var(--c-border-strong); border-radius: var(--r-btn);
  background: #fff; color: var(--c-primary);
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.qadd__btn:hover { border-color: var(--c-accent); color: var(--c-accent); background: #fff6f6; }
.qadd__btn:active { transform: scale(.94); }
.qadd__btn .i-added { display: none; }
.qadd.is-added .qadd__btn, .qadd.is-in .qadd__btn { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.qadd.is-added .i-add, .qadd.is-in .i-add { display: none; }
.qadd.is-added .i-added, .qadd.is-in .i-added { display: block; }
.qadd__btn.is-loading .icon { opacity: 0; }
.qadd__btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--c-surface-3); border-top-color: var(--c-primary); animation: kl-spin .7s linear infinite;
}
.qadd__tip {
  position: absolute; right: 0; bottom: calc(100% + 8px);
  padding: 5px 10px; border-radius: var(--r-tip);
  background: var(--c-dark); color: #fff; font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .qadd__btn:hover + .qadd__tip, .qadd__btn:focus-visible + .qadd__tip { opacity: 1; transform: none; }
}
/* touch screens have no hover tooltip: the card button says what it does ("Na upit" / "Na upitu") */
.qadd__txt { display: none; }
@media (hover: none) {
  /* only buttons that carry the label (icon-only ones, e.g. quote suggestions, stay 44 × 44) */
  .qadd__btn--txt { width: auto; min-width: 44px; padding: 0 12px; grid-auto-flow: column; gap: 6px; }
  /* both labels share one grid cell, so the button keeps the width of the longer one when "Na upit" → "Na upitu" */
  .qadd__txt { display: inline-grid; justify-items: center; font-size: .875rem; line-height: 20px; font-weight: 600; white-space: nowrap; }
  .qadd__txt > span { grid-area: 1 / 1; display: block; }
  .qadd .qadd__txt .t-in, .qadd.is-in .qadd__txt .t-add, .qadd.is-added .qadd__txt .t-add { visibility: hidden; }
  .qadd.is-in .qadd__txt .t-in, .qadd.is-added .qadd__txt .t-in { visibility: visible; }
  .qadd__btn.is-loading .qadd__txt { opacity: 0; }
}
/* compact phone "Popis" rows have no room for the label: icon only */
@media (hover: none) and (max-width: 639.98px) {
  .is-list .pgrid .qadd__btn--txt { width: 44px; padding: 0; }
  .is-list .pgrid .qadd__txt { display: none; }
}

/* list view (catalog toggle) */
@media (min-width: 640px) {
  .is-list .pgrid { grid-template-columns: minmax(0, 1fr) !important; gap: 12px; }
  .is-list .pcard { flex-direction: row; align-items: stretch; }
  .is-list .pcard__media { flex: none; width: 176px; aspect-ratio: 4 / 3; margin: 8px; padding: 12px; align-self: center; }
  .is-list .pcard__body { padding: 16px 8px 16px 12px; justify-content: center; }
  .is-list .pcard__foot { flex-direction: column; align-items: flex-end; justify-content: center; padding: 16px 20px; margin-top: 0; border-left: 1px solid var(--c-border); }
  .is-list .pcard__desc { -webkit-line-clamp: 1; }
}

/* compact 2-col cards on small phones (≥480) */
@media (min-width: 480px) and (max-width: 767.98px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pgrid .pcard__media { padding: 12px; margin: 6px 6px 0; }
  .pgrid .pcard__body { padding: 12px 14px 0; }
  .pgrid .pcard__name { font-size: 1rem; line-height: 22px; }
  .pgrid .pcard__desc { font-size: .875rem; line-height: 20px; }
  .pgrid .pcard__sectors { display: none; }
  .pgrid .pcard__foot { padding: 12px 14px 14px; }
  .pgrid .pcard__more { font-size: .875rem; }
  .pgrid .pcard__tag { display: none; }
}
.pgrid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* compact list rows on phones (catalog "Popis" view): 96 × 72 thumbnail, name, code, add-to-quote */
@media (max-width: 639.98px) {
  .is-list .pgrid { grid-template-columns: minmax(0, 1fr) !important; gap: 8px; }
  .is-list .pgrid .pcard { flex-direction: row; align-items: center; }
  .is-list .pgrid .pcard__media { flex: none; width: 96px; height: 72px; aspect-ratio: auto; margin: 8px 0 8px 8px; padding: 6px; }
  .is-list .pgrid .pcard__tag, .is-list .pgrid .pcard__desc, .is-list .pgrid .pcard__sectors, .is-list .pgrid .pcard__more { display: none; }
  .is-list .pgrid .pcard__body { flex: 1; min-width: 0; gap: 0; padding: 10px 4px 10px 12px; justify-content: center; }
  .is-list .pgrid .pcard__code { font-size: 12px; line-height: 18px; }
  .is-list .pgrid .pcard__name { font-size: .9375rem; line-height: 21px; }
  .is-list .pgrid .pcard__foot { flex: none; margin-top: 0; padding: 8px 12px 8px 4px; }
  .is-list .pgrid .pcard__body + .pcard__foot { padding-top: 8px; }
}
.pgrid--4 { }
@media (min-width: 1024px) { .pgrid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .pgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- Generic cards */
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-card);
  color: var(--c-text); text-decoration: none; overflow: hidden; min-width: 0;
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  a.card:hover, .card--hover:hover { transform: translateY(-2px); border-color: var(--c-border-strong); box-shadow: var(--sh-2); }
  a.card:hover .card__title, .card--hover:hover .card__title { color: var(--c-primary); }
  a.card:hover .card__img img, .card--hover:hover .card__img img { transform: scale(1.03); }
  a.card:hover .card__arrow, .card--hover:hover .card__arrow { transform: translateX(4px); }
}
.card__img { position: relative; overflow: hidden; background: var(--c-surface-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease); }
.card__img--43 { aspect-ratio: 4 / 3; }
.card__img--32 { aspect-ratio: 3 / 2; }
.card__img--169 { aspect-ratio: 16 / 9; }
.card__inset { margin: 8px 8px 0; border-radius: var(--r-img); }
.card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: var(--card-pad); }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: var(--fs-xs); line-height: 20px; color: var(--c-muted); font-weight: 500; }
.card__title { font-size: var(--fs-h3); line-height: 1.36; font-weight: 600; letter-spacing: -.01em; transition: color var(--dur-1) var(--ease); }
.card__text { color: var(--c-muted); font-size: .9375rem; line-height: 24px; }
.card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--c-primary); font-weight: 600; font-size: .9375rem; }
.card__arrow { transition: transform var(--dur-2) var(--ease); }
.card__stretch { color: inherit; text-decoration: none; }
.card__stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__stretch:focus-visible { outline: none; }
.card__stretch:focus-visible::after { outline: 2px solid var(--c-focus); outline-offset: -2px; border-radius: var(--r-card); }
.card--flat { background: var(--c-surface); border-color: transparent; }

/* ---------------------------------------------------------------- Accordion (FAQ) */
.acc { border-top: 1px solid var(--c-border); }
.acc__item { border-bottom: 1px solid var(--c-border); }
.acc__sum {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 0;
  list-style: none; cursor: pointer;
  font-size: var(--fs-h4); line-height: 26px; font-weight: 600;
}
.acc__sum::-webkit-details-marker { display: none; }
.acc__sum:hover { color: var(--c-primary); }
.acc__ic {
  flex: none; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--c-surface-2); color: var(--c-primary);
  transition: transform var(--dur-2) var(--ease), background-color var(--dur-1) var(--ease);
}
.acc__item[open] .acc__ic { transform: rotate(180deg); background: var(--c-primary); color: #fff; }
.acc__body { padding: 0 48px 20px 0; color: var(--c-muted); }
.acc__body > * + * { margin-top: .8em; }

/* ---------------------------------------------------------------- CTA band + support card */
.ctaband {
  position: relative; overflow: hidden;
  display: grid; gap: 28px;
  padding: 32px 24px;
  border-radius: var(--r-hero);
  background: var(--c-surface-2);
}
.ctaband::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(10, 92, 122, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 92, 122, .06) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 60%);
  mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 60%);
}
.ctaband > * { position: relative; }
.ctaband__txt > * + * { margin-top: 12px; }
.ctaband__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 479.98px) { .ctaband__actions .btn { width: 100%; } }
@media (min-width: 1024px) {
  .ctaband { grid-template-columns: minmax(0, 1fr) 380px; align-items: center; gap: 48px; padding: 48px 56px; }
}
.support {
  display: grid; gap: 14px;
  padding: 20px;
  border-radius: var(--r-card); background: #fff; border: 1px solid var(--c-border);
  box-shadow: var(--sh-1);
}
.support__head { display: flex; align-items: center; gap: 14px; }
.support__av {
  position: relative; flex: none; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
}
.support__av .icon { width: 26px; height: 26px; }
.support__av::after {
  content: ""; position: absolute; right: 1px; bottom: 1px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c-success); box-shadow: 0 0 0 2px #fff;
}
.support__name { font-weight: 600; line-height: 22px; }
.support__role { font-size: var(--fs-xs); line-height: 18px; color: var(--c-muted); }
.support__links { display: grid; gap: 2px; }
.support__links a, .support__links span {
  display: flex; align-items: center; gap: 10px; min-height: 40px;
  color: var(--c-text); text-decoration: none; font-weight: 500; font-size: .9375rem; line-height: 20px;
  font-variant-numeric: tabular-nums; min-width: 0;
}
.support__links a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 0; }
.support__links a:hover { color: var(--c-primary); }
.support__links .icon { color: var(--c-primary); }
.support__links span.support__hours { color: var(--c-muted); font-size: var(--fs-xs); align-items: flex-start; line-height: 18px; padding-top: 4px; }

/* ---------------------------------------------------------------- Empty state */
.empty {
  display: grid; justify-items: center; gap: 12px; text-align: center;
  padding: 48px 24px;
  border: 1.5px dashed var(--c-border-strong); border-radius: var(--r-card);
  background: var(--c-surface);
}
.empty__ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--c-primary); box-shadow: var(--sh-1); }
.empty__ic .icon { width: 28px; height: 28px; }
.empty__title { font-size: var(--fs-h3); line-height: 1.36; font-weight: 600; }
.empty__text { color: var(--c-muted); max-width: 52ch; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }

/* ---------------------------------------------------------------- Footer */
.ft {
  background: var(--c-dark); color: var(--c-dark-text);
  font-size: .9375rem; line-height: 24px;
  padding-top: 48px;
}
.ft a { color: var(--c-dark-text); text-decoration: none; }
.ft a:hover { color: #fff; text-decoration: underline; }
.ft .btn--accent, .ft .btn--accent:hover { color: #fff; text-decoration: none; }
.ft__cookie { display: inline-flex; align-items: center; min-height: 32px; padding: 0; border: 0; background: none; color: var(--c-dark-muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(157, 180, 194, .5); cursor: pointer; }
.ft__cookie:hover { color: #fff; }
.ft__top {
  display: grid; gap: 20px;
  padding-bottom: 36px; margin-bottom: 36px;
  border-bottom: 1px solid var(--c-dark-line);
}
.ft__top-title { font-size: var(--fs-h2); line-height: 1.25; font-weight: 600; color: #fff; letter-spacing: -.015em; margin-top: 10px; }
.ft__top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.ft__big { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 1.0625rem; font-weight: 600; color: #fff !important; }
.ft__big .icon { color: var(--c-highlight); }
@media (max-width: 479.98px) { .ft__top-actions .btn { width: 100%; } }
@media (min-width: 1024px) { .ft__top { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.ft__grid { display: grid; gap: 0; }
.ft__brand { display: grid; gap: 16px; align-content: start; padding-bottom: 28px; }
.ft__text { color: var(--c-dark-muted); max-width: 40ch; }
.ft__addr { display: grid; gap: 8px; color: var(--c-dark-muted); }
.ft__addr > * { display: flex; align-items: flex-start; gap: 10px; }
.ft__addr .icon { color: var(--c-highlight); margin-top: 4px; }
.ft__social { display: flex; gap: 8px; }
.ft__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-dark-line); }
.ft__social a:hover { border-color: var(--c-highlight); color: var(--c-highlight); }
.ft__col { border-top: 1px solid var(--c-dark-line); }
.ft__h { font-size: .8125rem; line-height: 20px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-dark-muted); }
.ft__toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 56px; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left;
}
.ft__toggle .icon { transition: transform var(--dur-2) var(--ease); }
.ft__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.ft__list { display: grid; gap: 2px; padding-bottom: 16px; }
.ft__list a { display: inline-flex; align-items: center; min-height: 40px; color: var(--c-dark-text); }

@media (min-width: 768px) {
  .ft__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .ft__brand { grid-column: 1 / -1; }
  .ft__col { border-top: 0; }
  .ft__toggle { min-height: 0; margin-bottom: 14px; cursor: default; pointer-events: none; }
  .ft__toggle .icon { display: none; }
  .ft__list[hidden] { display: grid !important; }
  .ft__list a { min-height: 32px; }
}
@media (min-width: 1024px) {
  .ft__grid { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 40px; }
  .ft__brand { grid-column: auto; padding-bottom: 0; }
}
.ft__bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  margin-top: 40px; padding: 20px 0 calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-dark-line);
  font-size: var(--fs-xs); line-height: 20px; color: var(--c-dark-muted);
}
.ft__bottom a { color: var(--c-dark-muted); display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.ft__legal { display: flex; flex-wrap: wrap; gap: 0 20px; }
.ft__maker { margin-left: auto; }
@media (max-width: 767.98px) { .ft__maker { margin-left: 0; width: 100%; } }
.has-bar .ft__bottom { padding-bottom: calc(var(--bar-h) + 24px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .has-bar .ft__bottom { padding-bottom: 24px; } }

/* ---------------------------------------------------------------- Mobile bottom action bar */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  display: grid; grid-template-columns: 1fr 1fr 2fr; align-items: center; gap: 8px;
  height: calc(var(--bar-h) + env(safe-area-inset-bottom));
  padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: #fff; border-top: 1px solid var(--c-border);
  box-shadow: var(--sh-up);
}
.bar__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 48px; border-radius: var(--r-btn);
  color: var(--c-text); text-decoration: none; font-size: 12px; line-height: 14px; font-weight: 600;
  border: 0; background: none; padding: 0;
}
.bar__btn .icon { width: 22px; height: 22px; color: var(--c-primary); }
.bar__btn:hover, .bar__btn[aria-current="page"] { background: var(--c-surface); }
.bar__cta { --btn-h: 48px; padding: 0 12px; gap: 8px; font-size: .9375rem; }
.bar__cta .badge { margin-left: 2px; }
.bar--product { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); transition: transform var(--dur-2) var(--ease), visibility var(--dur-2); }
/* While the page's own "Dodaj na upit" is on screen the bar steps aside (theme.js initProduct)… – only where :has()
   works, because the cookie notice / toast exception below needs it (elsewhere the bar simply stays, as before) */
@supports selector(:has(*)) {
  /* hiding waits 150 ms, so a toast replacing another toast does not make the bar dip and come back */
  body.pd-cta-inview .bar--product { transform: translateY(calc(100% + 2px)); visibility: hidden; transition: transform var(--dur-2) var(--ease) 150ms, visibility var(--dur-2) 150ms; }
  /* …but not while the cookie notice or a toast sits above the bar's place and covers the page's own button */
  body.pd-cta-inview:has([data-cookie-notice]:not([hidden]), .site-toast.is-visible) .bar--product { transform: none; visibility: visible; transition: transform var(--dur-2) var(--ease), visibility var(--dur-2); }
}
.bar--product .btn { --btn-h: 48px; padding: 0 12px; font-size: .9375rem; min-width: 0; }
.bar--product form { margin: 0; min-width: 0; }
.bar--product form .btn { width: 100%; }
@media (min-width: 1024px) { .bar { display: none; } }
body.nav-open .tsw, body.filters-open .tsw, body.lb-open .tsw { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
@media (max-width: 1023.98px) {
  .has-bar { padding-bottom: 0; }
  .has-bar .tsw { bottom: calc(var(--bar-h) + 12px + env(safe-area-inset-bottom)) !important; }
}

/* ---------------------------------------------------------------- Reveal */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal-on [data-reveal].is-visible { opacity: 1; transform: none; }
.reveal-on [data-reveal-delay="1"] { transition-delay: 80ms; }
.reveal-on [data-reveal-delay="2"] { transition-delay: 160ms; }
.reveal-on [data-reveal-delay="3"] { transition-delay: 240ms; }

/* ---------------------------------------------------------------- Horizontal scroller */
.hscroll {
  position: relative;
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }
.fade-edges {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
}

/* ---------------------------------------------------------------- Carousel */
.carousel { position: relative; }
.carousel__track {
  position: relative;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 82%);
  gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
  margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px;
  scroll-padding-inline: var(--gutter);
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
@media (min-width: 640px) { .carousel__track { grid-auto-columns: calc((100% - var(--gap)) / 2 - 2px); margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; } }
@media (min-width: 1024px) { .carousel__track { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); } }
@media (min-width: 1200px) { .carousel__track { grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); } }
.carousel__nav { display: flex; gap: 8px; }
.carousel__btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1.5px solid var(--c-border-strong); border-radius: 50%; background: #fff; color: var(--c-primary);
  transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease);
}
.carousel__btn:hover:not(:disabled) { border-color: var(--c-primary); background: var(--c-surface); }
.carousel__btn:disabled { opacity: .35; }

/* ---------------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; scroll-behavior: auto !important;
  }
  html:focus-within { scroll-behavior: auto; }
  .reveal-on [data-reveal] { transform: none; transition: opacity 150ms linear !important; }
  .pcard:hover, a.card:hover, .card--hover:hover { transform: none !important; }
  .mnav { transition: visibility 0s !important; }
}

/* ---------------------------------------------------------------- Card extras */
.pcard__sectors { align-items: center; }
.pcard__sectors-lbl { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--c-muted); margin-right: 2px; }
.pcard__sector { width: 26px; height: 26px; padding: 0; justify-content: center; border-radius: 50%; }
.qadd__tip .t-in { display: none; }
.qadd.is-in .qadd__tip .t-in, .qadd.is-added .qadd__tip .t-in { display: inline; }
.qadd.is-in .qadd__tip .t-add, .qadd.is-added .qadd__tip .t-add { display: none; }
.grid > [data-reveal] { display: flex; flex-direction: column; }
.grid > [data-reveal] > .card { flex: 1; }
.crumbs ol { list-style: none; margin: 0; padding: 0; }
.fset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fset legend { padding: 0; }

/* ---------------------------------------------------------------- Placeholder "nacrt" (proizvod bez fotografije) */
.well__ph--draw { width: 100%; max-width: 280px; gap: 10px; color: var(--c-muted); justify-items: center; }
.ph-draw { width: 100%; height: auto; overflow: visible; }
/* "Popis" rows (96×72 / 176×132 wells): drawing only, scaled to the well */
.is-list .pcard .well__ph-txt { display: none; }
.is-list .pcard .well__ph--draw { height: 100%; min-height: 0; max-width: 100%; grid-template-rows: minmax(0, 1fr); }
.is-list .pcard .ph-draw { width: auto; height: 100%; max-width: 100%; }
.ph-draw * { vector-effect: non-scaling-stroke; fill: none; stroke: var(--c-primary); stroke-linecap: round; stroke-linejoin: round; }
.ph-draw__floor { stroke-opacity: .35; stroke-width: 1.25; }
.ph-draw__frame { stroke-width: 1.5; stroke-opacity: .75; }
.ph-draw__leaf { fill: #fff !important; stroke-width: 1.25; stroke-opacity: .6; }
.ph-draw__glass { fill: var(--c-surface-2) !important; stroke-width: 1; stroke-opacity: .55; }
.ph-draw__handle { stroke-width: 2.25; stroke-opacity: .75; }
.ph-draw__thin { stroke-width: 1.25; stroke-opacity: .5; }
.ph-draw__dim { stroke: var(--c-border-input); stroke-width: 1; stroke-opacity: .7; }
.well__ph-txt { font-size: var(--fs-xs); line-height: 18px; font-weight: 500; color: var(--c-muted); }
.pcard .well__ph--draw { max-width: 180px; }
.pcard .well__ph-txt { font-size: 12px; }
.well:has(> .well__ph--draw), .pd-main:has(.well__ph--draw) {
  background-color: var(--c-surface);
  background-image: linear-gradient(rgba(10, 92, 122, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 92, 122, .06) 1px, transparent 1px);
  background-size: 16px 16px; background-position: center;
}
.pd-main > .well__ph--draw { max-width: 300px; }
.fam__img > .well__ph--draw { max-width: 150px; }
.fam__img:has(> .well__ph--draw) {
  display: grid; place-items: center; padding: 6px;
  background-color: var(--c-surface);
  background-image: linear-gradient(rgba(10, 92, 122, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 92, 122, .06) 1px, transparent 1px);
  background-size: 12px 12px; background-position: center;
}

/* Touch: ≥44 px tap targets – the block is at the end of pages.css (it must come after the page rules it overrides). */
