/* Aqualab laboratorije – javni sajt */
:root {
  --red: #d71f2b;
  --red-d: #b3141f;
  --red-soft: #fdeeef;
  --ink: #142230;
  --ink-2: #33475b;
  --muted: #627386;
  --line: #e3e9ef;
  --soft: #f3f6f9;
  --white: #fff;
  --ok: #138a5b;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 34, 48, .05), 0 8px 24px -8px rgba(20, 34, 48, .12);
  --shadow-lg: 0 2px 4px rgba(20, 34, 48, .04), 0 24px 48px -16px rgba(20, 34, 48, .22);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink-2); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-d); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }
.small { font-size: .85rem; color: var(--muted); }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* Dugmad */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .78em 1.35em; border-radius: 999px; font: 600 .97rem/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .95em 1.6em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(215, 31, 43, .6); }
.btn-red:hover { background: var(--red-d); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--red-soft); color: var(--red-d); }
.btn-ghost-w { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost-w:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .1); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--red); text-decoration: none; font-size: .95rem; }
.link-arrow .ic { transition: transform .2s; }
.link-arrow:hover .ic, a:hover .link-arrow .ic { transform: translateX(4px); }
.link-back:hover .ic { transform: translateX(-4px) !important; }

.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .7em; }
.eyebrow-light { color: #ff9aa1; }
.chip { display: inline-flex; align-items: center; gap: .55em; padding: .45em .95em; border-radius: 999px; background: var(--red-soft); color: var(--red-d); font-size: .85rem; font-weight: 700; }
.chip-w { background: rgba(255, 255, 255, .16); color: #fff; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse::after { animation: none; } html { scroll-behavior: auto; } }

/* Gornja traka i zaglavlje */
.topbar { background: var(--ink); color: #c9d4de; font-size: .85rem; }
.topbar-in { display: flex; align-items: center; gap: 22px; min-height: 40px; }
.topbar a { color: #e6edf3; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar-live { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; margin-right: auto; }
.topbar-live .pulse { color: #ff4d58; }
.topbar-soc { display: flex; gap: 12px; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(20, 34, 48, .25); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 96px; gap: 24px; }
.logo img { height: 84px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav li { position: relative; }
.nav > ul > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 13px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav > ul > li > a:hover, .nav > ul > li > a[aria-current] { color: var(--red); }
.nav > ul > li > a[aria-current]:not(.btn) { background: var(--red-soft); }
.nav .ic { width: 16px; height: 16px; transition: transform .2s; }
.nav-cta { margin-left: 8px; }
.nav-cta .btn { padding: .65em 1.3em; color: #fff !important; }
.sub { position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, 6px); min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-sub:hover > a .ic { transform: rotate(180deg); }
.sub a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500; }
.sub a:hover { background: var(--soft); color: var(--red); }
.sub-wide { min-width: 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; padding: 12px; }
.sub-grp { padding: 4px 0; }
.sub-city { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 4px 12px; }
.sub-all { grid-column: 1 / -1; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px !important; margin-top: 4px; padding-top: 12px !important; font-weight: 700 !important; color: var(--red) !important; }
.badge-new { font-style: normal; font-size: .68rem; font-weight: 800; background: var(--red); color: #fff; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle .ic { width: 28px; height: 28px; }
.nav-toggle .i-close, .nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

/* Naslovna – hero */
.hero { position: relative; padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 60px); background: radial-gradient(1000px 500px at 85% 0%, var(--red-soft), transparent 60%), linear-gradient(180deg, #fff, var(--soft)); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin: 18px 0 18px; font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.07; letter-spacing: -.035em; }
.hl { color: var(--red); white-space: nowrap; }
.hl-light { color: #ff6b74; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.hero-facts li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--muted); }
.hero-facts b { color: var(--ink); display: block; font-size: .95rem; }
.hero-facts .ic { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: #fff; color: var(--red); box-shadow: var(--shadow); }
.hero-media { position: relative; }
.hero-media img { border-radius: 28px; aspect-ratio: 5 / 4; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.hero-media::before { content: ""; position: absolute; inset: auto -24px -24px auto; width: 60%; height: 60%; border-radius: 28px; background: repeating-radial-gradient(circle at 0 0, transparent 0 10px, rgba(215, 31, 43, .12) 10px 12px); z-index: -1; }
.hero-card { position: absolute; left: -28px; bottom: 32px; display: flex; align-items: center; gap: 14px; background: #fff; padding: 14px 22px 14px 14px; border-radius: 18px; box-shadow: var(--shadow-lg); }
.hero-card-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--red); color: #fff; }
.hero-card small { display: block; color: var(--muted); font-size: .8rem; }
.hero-card a { font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }

.quick { margin-top: -28px; position: relative; z-index: 2; }
.quick-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 14px; }
.quick-find, .quick-link { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.quick-find label { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: .92rem; margin-bottom: 10px; }
.quick-find label .ic { color: var(--red); }
.quick-row { display: flex; gap: 10px; }
.quick-row select { flex: 1; min-width: 0; }
.quick-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--muted); font-size: .88rem; line-height: 1.4; transition: border-color .2s, transform .2s; }
.quick-link:hover { border-color: var(--red); transform: translateY(-2px); color: var(--muted); }
.quick-link .ic { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--red-soft); color: var(--red); }
.quick-link b { display: block; color: var(--ink); font-size: 1rem; }

/* Sekcije */
.sec { padding: clamp(28px, 3.5vw, 44px) 0; }
.sec-tight { padding: clamp(24px, 3vw, 36px) 0 clamp(28px, 3.5vw, 44px); }
.sec-soft { background: var(--soft); }
.sec-dark { background: var(--ink); color: #b9c6d2; }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-head { max-width: 680px; margin-bottom: 22px; }
.sec-head p { color: var(--muted); }
.sec-head-c { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sec-head-row > div { max-width: 640px; }
.sec-head-row p { margin: 0; }

.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.h1-pre { display: flex; width: fit-content; margin: -18px 0 18px; letter-spacing: 0; line-height: 1.4; }   /* natpis u h1 (SEO), izgleda kao chip */.svc { display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--r); border: 1px solid var(--line); text-decoration: none; color: var(--muted); background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--muted); }
.svc p { font-size: .94rem; flex: 1; }
.svc-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--red-soft); color: var(--red); margin-bottom: 20px; }
.svc-ic .ic { width: 28px; height: 28px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-rev .split-media { order: 2; }
.split-media img { border-radius: 24px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-txt h2 { margin-bottom: .6em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.stats div { border-top: 2px solid rgba(255, 255, 255, .15); padding-top: 16px; }
.stats b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stats span { font-size: .9rem; }

/* Kartice laboratorija */
.lab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lab-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.lab-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.lab-card-img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.lab-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.lab-card:hover .lab-card-img img { transform: scale(1.04); }
.lab-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(circle at 30% 20%, #fff 0, transparent 50%), linear-gradient(135deg, var(--red-soft), #f6dfe1); color: var(--red); }
.lab-ph .ic { width: 42px; height: 42px; opacity: .85; }
.lab-ph b { font-size: 1.1rem; color: var(--ink); letter-spacing: -.01em; }
.tag { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .02em; }
.tag-live { background: var(--ink); color: #fff; }
.tag-live .pulse { color: #ff4d58; }
.tag-new { background: var(--red); color: #fff; }
.tag-live + .tag-new { left: auto; right: 12px; }
.tag-static { position: static; }
.lab-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.lab-card-body .eyebrow { margin-bottom: 4px; }
.lab-card-body h3 { margin-bottom: 12px; }
.lab-card-body h3 a { color: var(--ink); text-decoration: none; }
.lab-card-body h3 a:hover { color: var(--red); }
.lab-line { display: flex; gap: 10px; font-size: .92rem; margin: 0 0 7px; line-height: 1.45; }
.lab-line .ic { color: var(--red); margin-top: 1px; }
.lab-line a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.lab-line a:hover { color: var(--red); }
.lab-card-body .link-arrow { margin-top: auto; padding-top: 12px; }

/* Savjeti */
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tips-1 { grid-template-columns: 1fr; }
.tip { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.tip:hover { border-color: var(--red); box-shadow: var(--shadow); color: var(--muted); }
.tip b { display: block; color: var(--ink); margin-bottom: 2px; }
.tip small { display: block; font-size: .84rem; line-height: 1.45; }
.tip-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red); }
.tip-arrow { color: var(--red); margin-left: auto; transition: transform .2s; }
.tip:hover .tip-arrow { transform: translateX(4px); }

/* Vijesti */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { display: flex; flex-direction: column; }
.news-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--soft); margin-bottom: 16px; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-img img { transform: scale(1.04); }
.news-body time, .article-head time, .news-feature time { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); font-weight: 600; }
.news-body h3 { margin: 6px 0 8px; font-size: 1.15rem; line-height: 1.35; }
.news-body h3 a { color: var(--ink); text-decoration: none; }
.news-body h3 a:hover { color: var(--red); }
.news-body p { font-size: .93rem; color: var(--muted); margin: 0; }
.news-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.news-feature-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--soft); }
.news-feature-img img { width: 100%; height: 100%; object-fit: cover; }
.news-feature h2 { margin: 8px 0 14px; }
.news-feature h2 a { color: var(--ink); text-decoration: none; }
.news-feature h2 a:hover { color: var(--red); }
.news-feature .eyebrow { display: block; margin-bottom: 6px; }
.news-feature p { color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pager a { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.pager a:hover { border-color: var(--red); color: var(--red); }
.pager a[aria-current] { background: var(--red); border-color: var(--red); color: #fff; }

.article-head { padding: clamp(32px, 5vw, 56px) 0 28px; background: linear-gradient(180deg, var(--soft), #fff); }
.article-head h1 { margin: 12px 0 12px; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.article-img img { border-radius: 22px; width: 100%; max-height: 560px; object-fit: cover; margin-bottom: 36px; }
.article-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 64px; margin-top: 24px; border-top: 1px solid var(--line); }
.share { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.share a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--soft); color: var(--ink); }
.share a:hover { background: var(--red); color: #fff; }

.prose { font-size: 1.04rem; color: var(--ink-2); }
.prose h2 { font-size: 1.4rem; margin: 1.8em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.prose li { position: relative; padding-left: 1.6em; margin-bottom: .45em; }
.prose li::before { content: ""; position: absolute; left: .3em; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.prose strong { color: var(--ink); }
.prose-guide strong:only-child { display: block; margin-top: 1.4em; font-size: 1.05rem; }

/* Podstranice */
.phero { padding: clamp(24px, 3.5vw, 44px) 0 clamp(24px, 3.5vw, 40px); background: radial-gradient(800px 360px at 100% 0, var(--red-soft), transparent 65%), var(--soft); border-bottom: 1px solid var(--line); }
.phero h1 { margin: 8px 0 12px; }
.phero .lead { max-width: 760px; margin: 0; display: flex; gap: 8px; align-items: baseline; }
.phero .lead .ic { color: var(--red); }
.phero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }

.city-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.city-tab { font: 600 .93rem var(--font); padding: .6em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.city-tab small { font-size: .75rem; background: var(--soft); border-radius: 999px; padding: 1px 8px; color: var(--muted); }
.city-tab:hover { border-color: var(--ink); }
.city-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.city-tab[aria-selected="true"] small { background: rgba(255, 255, 255, .18); color: #fff; }
.city-block { display: flex; }
.city-block > .lab-card { flex: 1; }
.city-block[hidden] { display: none; }
.city-title { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.city-title .ic { color: var(--red); }

.lab-detail { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.lab-photo { width: 100%; border-radius: 22px; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 28px; }
.lab-photo-wide { aspect-ratio: 21 / 9; }
.map { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--soft); margin-top: 8px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.lab-side { position: sticky; top: 116px; display: grid; gap: 16px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.info-card h2 { font-size: 1.2rem; margin-bottom: 16px; }
.info-card dl { margin: 0 0 20px; }
.info-card dt { display: flex; align-items: center; gap: 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); margin-top: 16px; }
.info-card dt:first-child { margin-top: 0; }
.info-card dt .ic { color: var(--red); }
.info-card dd { margin: 4px 0 0 26px; color: var(--ink); font-weight: 500; }
.info-card dd .row { display: block; }
.big-tel { display: block; font-size: 1.25rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.big-tel:hover { color: var(--red); }
.info-soft { background: var(--soft); box-shadow: none; }
.mini-lab { display: block; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.mini-lab b { display: block; color: var(--ink); }
.mini-lab span { font-size: .9rem; color: var(--muted); }
.info-red { background: var(--red); border-color: var(--red); color: #fff; }
.info-red h2 { color: #fff; margin: 14px 0 10px; }
.info-red a { color: #fff; }
.info-red .big-tel { color: #fff; }

.with-side { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; }
.side-nav { position: sticky; top: 116px; display: flex; flex-direction: column; gap: 2px; }
.side-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); padding: 0 14px 8px; }
.side-nav > a { padding: 10px 14px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.side-nav > a:hover { background: var(--soft); color: var(--red); }
.side-nav > a[aria-current] { background: var(--red-soft); color: var(--red); }
.side-box { margin-top: 20px; padding: 18px; border-radius: var(--r-sm); background: var(--ink); color: #b9c6d2; font-size: .9rem; }
.side-box b { color: #fff; }
.side-box p { margin: 4px 0 10px; }
.side-box a { color: #fff; font-weight: 800; font-size: 1.1rem; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.side-main { min-width: 0; }
.h-sm { font-size: 1.3rem; margin-top: 36px; }

/* Analize */
.intro { margin-bottom: 40px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.note-card { background: var(--soft); border-radius: var(--r); padding: 22px 24px; font-size: .95rem; }
.note-card h3 { font-size: 1.05rem; }
.an-tools { position: sticky; top: 96px; z-index: 5; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); padding: 12px 0; margin-bottom: 12px; }
.an-search { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 14px; padding: 0 16px; background: #fff; transition: border-color .2s; }
.an-search:focus-within { border-color: var(--red); }
.an-search .ic { color: var(--muted); }
.an-search input { border: 0; outline: 0; flex: 1; min-width: 0; padding: 14px 0; font: 500 1rem var(--font); background: transparent; color: var(--ink); }
.an-jump { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; scrollbar-width: none; }
.an-jump a { flex: none; font-size: .85rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--soft); color: var(--ink-2); text-decoration: none; }
.an-jump a:hover { background: var(--red-soft); color: var(--red); }
.an-group { margin-bottom: 36px; scroll-margin-top: 190px; }
.an-group h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; margin: 16px 0 14px; }
.an-group h2 small { font-size: .78rem; font-weight: 700; background: var(--soft); color: var(--muted); padding: 2px 10px; border-radius: 999px; }
.an-item { border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 8px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.an-item[open] { border-color: #f1c4c7; box-shadow: var(--shadow); }
.an-item summary { display: flex; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; list-style: none; }
.an-item summary::-webkit-details-marker { display: none; }
.an-name { font-weight: 700; color: var(--ink); flex: 1; }
.an-meta { display: flex; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--soft); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill .ic { width: 13px; height: 13px; }
.an-chev { color: var(--muted); transition: transform .2s; }
.an-item[open] .an-chev { transform: rotate(180deg); color: var(--red); }
.an-body { padding: 0 18px 18px; font-size: .95rem; }
.an-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0 0; }
.an-facts div { background: var(--soft); border-radius: 10px; padding: 10px 14px; }
.an-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.an-facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 700; }
.an-empty { padding: 24px; text-align: center; color: var(--muted); background: var(--soft); border-radius: var(--r); }

/* Uputstva */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; background: #fff; transition: box-shadow .25s, transform .25s; }
.guide:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.guide-img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.guide-img img { width: 100%; height: 100%; object-fit: cover; }
.guide-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.guide-body b { color: var(--ink); font-size: 1.08rem; line-height: 1.35; }
.guide-body small { color: var(--muted); font-size: .9rem; flex: 1; }
.center-note { text-align: center; margin-top: 40px; color: var(--muted); }
.print-btn { margin-top: 20px; }

/* O nama */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: linear-gradient(90deg, var(--red), #f2b6ba); }
.tl-item { position: relative; padding: 52px 22px 0 0; }
.tl-item::before { content: ""; position: absolute; top: 15px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--red); }
.tl-item b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin-bottom: 6px; }
.tl-item p { font-size: .95rem; color: var(--muted); }
.mvc { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.mvc-card { background: #fff; border-radius: var(--r); padding: 30px 28px; border: 1px solid var(--line); }
.mvc-card p { color: var(--muted); font-size: .96rem; margin: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; }
.checks .ic { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--red-soft); color: var(--red); margin-top: 1px; }
.quality { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.badges { display: grid; gap: 12px; }
.badges span { display: flex; align-items: baseline; gap: 12px; padding: 18px 22px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); }
.badges b { color: #fff; font-size: 1.4rem; font-weight: 800; min-width: 120px; }
.team-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 22px 0; }
.team-nums span { background: var(--soft); border-radius: var(--r-sm); padding: 14px; font-size: .82rem; line-height: 1.3; color: var(--muted); }
.team-nums b { display: block; font-size: 1.7rem; color: var(--red); font-weight: 800; }
.units { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.units span { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.units .ic { color: var(--red); }

/* Citati */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; background: #fff; border-radius: var(--r); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.quote > .ic { width: 34px; height: 34px; color: var(--red); opacity: .25; margin-bottom: 12px; }
.quote blockquote { margin: 0 0 22px; flex: 1; color: var(--ink-2); font-size: .98rem; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: .86rem; color: var(--muted); }
.quote figcaption b { display: block; color: var(--ink); font-size: .95rem; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-weight: 800; font-size: .9rem; }
.partners { padding: 8px 0 36px; }
.partners-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 32px; }
.partners-in p { margin: 0; max-width: 780px; }
.partners-in b { color: var(--ink); }

/* Cjenovnik */
.price-card { display: flex; align-items: center; gap: 22px; padding: 26px 28px; border-radius: var(--r); background: var(--soft); margin-bottom: 24px; }
.price-card h2 { font-size: 1.3rem; margin-bottom: 4px; }
.price-card p { margin: 0; color: var(--muted); }
.price-ic { display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 16px; background: var(--red); color: #fff; }
.price-ic .ic { width: 28px; height: 28px; }
.price-btns { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.pdf-frame { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; height: 80vh; min-height: 520px; }
.pdf-frame iframe { width: 100%; height: 100%; border: 0; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 400px 1fr; gap: 40px; align-items: start; }
.c-soc { display: flex; flex-wrap: wrap; gap: 10px; }
.c-soc a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; }
.c-soc a:hover { background: var(--ink); }
.f-row { margin-bottom: 16px; }
.f-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); }
input, select, textarea { display: block; width: 100%; margin-top: 6px; font: 500 1rem var(--font); color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px rgba(215, 31, 43, .12); }
textarea { resize: vertical; }
.quick-row select { margin-top: 0; }
.err { display: block; color: var(--red-d); font-style: normal; font-size: .85rem; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.alert { display: flex; gap: 10px; align-items: center; padding: 16px 20px; border-radius: 14px; margin-bottom: 18px; font-weight: 600; }
.alert-ok { background: #e7f6ef; color: var(--ok); }
.contact-side { display: grid; gap: 16px; }
.c-lab { padding: 12px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.c-lab:first-of-type { border-top: 0; padding-top: 0; }
.c-lab > a { display: block; color: var(--ink); text-decoration: none; }
.c-lab > a:hover { color: var(--red); }
.c-lab span a { color: var(--muted); text-decoration: none; font-weight: 600; }

.nf { text-align: center; }
.nf-code { font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; color: var(--red-soft); line-height: 1; letter-spacing: -.05em; -webkit-text-stroke: 2px var(--red); }
.nf .hero-btns { justify-content: center; }

/* Podnožje */
.footer { background: var(--ink); color: #9fb0bf; font-size: .93rem; padding-top: 44px; }
.f-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(120deg, var(--red), #e8434d); border-radius: 24px; padding: 32px 36px; color: #fff; margin-bottom: 40px; }
.f-cta h2 { color: #fff; font-size: 1.6rem; margin-bottom: 4px; }
.f-cta p { margin: 0; opacity: .9; }
.f-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.f-grid { display: grid; grid-template-columns: 1.4fr 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.f-grid h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.f-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.f-grid a { color: #c4d0db; text-decoration: none; }
.f-grid a:hover { color: #fff; }
.f-labs strong { color: #fff; font-weight: 600; margin-right: 4px; }
.f-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 8px 14px; margin-bottom: 16px; }
.f-logo img { height: 64px; width: auto; }
.f-soc { display: flex; gap: 10px; margin-top: 16px; }
.f-soc a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; }
.f-soc a:hover { background: var(--red); color: #fff; }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.f-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.f-legal a, .linkbtn { color: #9fb0bf; text-decoration: none; }
.f-legal a:hover, .linkbtn:hover { color: #fff; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Kolačići */
.cc { position: fixed; left: 20px; bottom: 20px; z-index: 90; width: min(560px, calc(100vw - 32px)); opacity: 0; transform: translateY(16px); transition: opacity .25s, transform .25s; }
.cc[hidden] { display: none; }
.cc.in { opacity: 1; transform: none; }
.cc-box { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 24px 60px -16px rgba(20, 34, 48, .35); }
.cc h2 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cc p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.55; }
.cc-opts { display: grid; gap: 8px; margin-top: 16px; }
.cc-opts[hidden] { display: none; }
.cc-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; background: var(--soft); border-radius: 12px; cursor: pointer; font-weight: 400; }
.cc-opt b { display: block; color: var(--ink); font-size: .92rem; }
.cc-opt small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.cc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.cc-sw { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: #c9d3dd; transition: background .2s; }
.cc-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.cc-opt input:checked + .cc-sw { background: var(--ok); }
.cc-opt input:checked + .cc-sw::after { transform: translateX(18px); }
.cc-opt input:focus-visible + .cc-sw { outline: 3px solid rgba(215, 31, 43, .4); outline-offset: 2px; }
.cc-opt-off { cursor: default; }
.cc-opt-off .cc-sw { opacity: .55; }
.cc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cc-btns .btn { flex: 1 1 auto; padding: .7em 1.1em; font-size: .9rem; }
.cc-btns .btn[hidden] { display: none; }

.map-gate { display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 30% 20%, #fff 0, transparent 55%), linear-gradient(135deg, var(--soft), #e9eef3); }
.map-ph { padding: 24px; max-width: 440px; }
.map-ph > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: #fff; color: var(--red); box-shadow: var(--shadow); margin-bottom: 10px; box-sizing: content-box; }
.map-ph b { display: block; color: var(--ink); font-size: 1.05rem; }
.map-ph p { font-size: .9rem; color: var(--muted); margin: 4px 0 16px; }
.map-ph-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.map-ph-btns .btn { padding: .65em 1.1em; font-size: .9rem; }

.cookie-table { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; margin: 0 0 1.4em; font-size: .92rem; }
.ct-row { display: grid; grid-template-columns: 1.1fr 2.4fr 1fr .9fr; gap: 12px; padding: 12px 16px; }
.ct-row + .ct-row { border-top: 1px solid var(--line); }
.ct-head { background: var(--soft); font-weight: 700; color: var(--ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }

/* Animacija pojavljivanja */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 1100px) {
  .nav > ul > li > a { padding: 10px 9px; font-size: .9rem; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .lab-detail { grid-template-columns: 1fr 340px; }
  .contact { grid-template-columns: 340px 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 136px 0 0 0; background: #fff; overflow-y: auto; padding: 16px var(--gutter) 40px; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s; }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  /* backdrop-filter bi vezao fiksni meni za zaglavlje umjesto za ekran */
  .nav-open .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav > ul > li > a { padding: 16px 4px; font-size: 1.08rem; justify-content: space-between; width: 100%; }
  .sub, .sub-wide { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 12px 8px; min-width: 0; display: none; grid-template-columns: 1fr; }
  .has-sub.open .sub { display: block; }
  .has-sub.open > a .ic { transform: rotate(180deg); }
  .has-sub:hover .sub { transform: none; }
  .nav-cta { margin: 20px 0 0; border: 0 !important; }
  .nav-cta .btn { width: 100%; justify-content: center; padding: 1em; }
  .hero-in, .split, .news-feature, .quality { grid-template-columns: 1fr; }
  .split-rev .split-media { order: 0; }
  .hero-media { max-width: 640px; }
  .hero-card { left: 16px; bottom: 16px; }
  .quick { margin-top: 0; padding-top: 24px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-find { grid-column: 1 / -1; }
  .lab-grid, .news-grid, .tips, .guide-grid, .quotes { grid-template-columns: 1fr 1fr; }
  .lab-detail, .contact, .with-side { grid-template-columns: 1fr; }
  .lab-side, .side-nav { position: static; }
  .side-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .side-title { flex-basis: 100%; padding: 0 0 4px; }
  .side-box { flex-basis: 100%; margin-top: 10px; }
  .side-nav > a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .88rem; }
  .an-tools { top: 96px; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .timeline::before { display: none; }
  .mvc { grid-template-columns: 1fr; }
  .partners-in, .f-cta, .price-card { flex-direction: column; align-items: flex-start; }
  .price-btns { margin-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-in { flex-wrap: wrap; gap: 4px 16px; padding: 8px var(--gutter); }
  .topbar-live { flex-basis: 100%; }
  .topbar-soc { margin-left: auto; }
  .header-in { min-height: 70px; }
  .nav { inset: 110px 0 0 0; }
  .an-tools { top: 70px; }
  .logo img { height: 62px; }
  .hero-btns .btn { width: 100%; }
  .svc-grid, .quick-grid, .lab-grid, .news-grid, .tips, .guide-grid, .quotes, .two-col, .f-2, .f-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .stats span { font-size: .78rem; }
  .sec-head-row { flex-direction: column; align-items: flex-start; }
  .timeline { grid-template-columns: 1fr; }
  .tl-item { padding: 0 0 0 34px; }
  .tl-item::before { top: 8px; }
  .an-item summary { flex-wrap: wrap; row-gap: 6px; }
  .an-meta { order: 3; flex-basis: 100%; }
  .article-foot, .f-bottom { flex-direction: column; align-items: flex-start; }
  .f-cta { padding: 26px 22px; }
  .f-cta-btns, .f-cta-btns .btn { width: 100%; }
  .hero-media::before { display: none; }
  .badges b { min-width: 96px; }
  .cc { left: 8px; right: 8px; bottom: 8px; width: auto; }
  .cc-box { padding: 18px; border-radius: 18px; }
  .cc-btns .btn { flex: 1 1 45%; }
  .cc-btns .btn-red { flex-basis: 100%; order: -1; }
  .ct-head { display: none; }
  .ct-row { grid-template-columns: 1fr; gap: 2px; }
  .ct-row span:nth-child(3), .ct-row span:nth-child(4) { font-size: .82rem; color: var(--muted); }
}

@media print {
  .topbar, .header, .footer, .side-nav, .print-btn, .crumbs, .cc { display: none !important; }
  .with-side { display: block; }
  .phero { background: none; border: 0; padding: 0 0 12px; }
  body { font-size: 12pt; }
}
