/* ==========================================================================
   Moto servis Crnčević — dizajn sistem
   Tamna "garažna" tema, crveni akcenat iz logotipa, Oswald + Barlow.
   ========================================================================== */
:root {
  --bg: #0c0c0d;
  --bg-2: #121214;
  --surface: #17171a;
  --surface-2: #1f1f23;
  --line: #2b2b30;
  --line-2: #3a3a40;
  --text: #ececee;
  --text-2: #c9c9cf;
  --muted: #9d9da6;
  --red: #d9141f;
  --red-2: #b80713;
  --red-hi: #ff5a64;
  --amber: #f2a93b;
  --green: #3ec27a;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1200px;
  --head-h: 76px;
  --f-head: "Oswald", "Arial Narrow", Impact, system-ui, sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow: 0 20px 50px -20px rgba(0,0,0,.7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); text-transform: uppercase; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
ul, ol { padding-left: 1.2em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

.ic { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Dugmad, tagovi, linkovi ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 1.4em; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-head); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem;
  transition: background .25s var(--ease), border-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -12px rgba(217,20,31,.8); }
.btn--red:hover { background: #ec1c28; }
.btn--ghost { border-color: rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--block { width: 100%; }
.btn .ic { width: 1.1em; height: 1.1em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em; margin: 0 0 .9em;
  font-family: var(--f-head); font-size: .82rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--red-hi);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.tag {
  display: inline-block; font-family: var(--f-head); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-hi); border: 1px solid rgba(255,90,100,.35); padding: .25em .7em; border-radius: 999px; line-height: 1.4;
}
.tag--solid { background: var(--red); border-color: var(--red); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; color: var(--red-hi); }
.link-arrow .ic { transition: transform .25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--head-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, body:not(.has-hero) .site-header { background: rgba(12,12,13,.86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-color: var(--line); }
.site-header__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand img { width: 92px; height: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  position: relative; display: block; padding: 10px 12px; font-family: var(--f-head); font-weight: 500;
  font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); transition: color .2s;
}
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav__mobile-extra { display: none; }
.header-call { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--red); color: #fff; line-height: 1.15; font-family: var(--f-head); letter-spacing: .04em; transition: background .2s, transform .2s; }
.header-call:hover { background: #ec1c28; transform: translateY(-1px); }
.header-call .ic { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgba(0,0,0,.22); }
.header-call small { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--line-2); background: rgba(0,0,0,.35); border-radius: 12px; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 16px; } .nav-toggle span:nth-child(2) { top: 23px; } .nav-toggle span:nth-child(3) { top: 30px; right: 20px; }
.nav-open .nav-toggle span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 23px; right: 13px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .header-call span { display: none; }
  .header-call { padding: 7px; }
}
@media (max-width: 960px) {
  :root { --head-h: 66px; }
  .brand img { width: 78px; }
  .header-call { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--head-h) 0 0 0; background: rgba(10,10,11,.98); backdrop-filter: blur(10px);
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: space-between;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; overflow-y: auto;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { font-size: 1.6rem; padding: 14px 4px; border-bottom: 1px solid var(--line); color: #fff; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--red-hi); }
  .nav__mobile-extra { display: block; margin-top: 24px; color: var(--muted); text-align: center; }
  .nav__mobile-extra p { margin-top: 12px; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { background: rgba(10,10,11,.98); }
}

/* ---------- Sekcije ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--red); }
.section-head p.lead, .lead { font-size: 1.15rem; color: var(--text-2); }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.section-head--row h2 { margin: 0; }
.muted { color: var(--muted); }

/* ---------- Hero (početna) ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: flex-end; padding: calc(var(--head-h) + 60px) 0 clamp(40px, 7vw, 80px); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,8,9,.94) 0%, rgba(8,8,9,.75) 42%, rgba(8,8,9,.2) 75%, rgba(8,8,9,.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(12,12,13,0) 40%); }
.hero::after { content: ""; position: absolute; right: -10vw; top: 0; bottom: 0; width: 38vw; z-index: -1; background: linear-gradient(180deg, rgba(217,20,31,.0), rgba(217,20,31,.22)); clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%); mix-blend-mode: screen; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__in { max-width: 760px; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--red); -webkit-text-stroke: 0; }
.hero__lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--text-2); max-width: 600px; margin-bottom: 1.8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: clamp(40px, 7vw, 80px); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 900px; }
.hero-stats div { background: rgba(14,14,16,.82); backdrop-filter: blur(8px); padding: 18px 22px; }
.hero-stats strong { display: block; font-family: var(--f-head); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; color: #fff; }
.hero-stats span { font-size: .92rem; color: var(--muted); }
@media (max-width: 640px) {
  .hero { align-items: flex-end; min-height: 92svh; }
  .hero::before { background: linear-gradient(0deg, rgba(8,8,9,.97) 10%, rgba(8,8,9,.6) 60%, rgba(8,8,9,.45) 100%); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div:last-child { grid-column: span 2; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Podnaslovni hero (unutrašnje strane) ---------- */
.page-hero { position: relative; padding: calc(var(--head-h) + clamp(56px, 9vw, 110px)) 0 clamp(48px, 7vw, 80px); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,8,9,.95) 0%, rgba(8,8,9,.78) 50%, rgba(8,8,9,.45) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 60%); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 900px; }
.page-hero p { font-size: 1.15rem; color: var(--text-2); max-width: 680px; }
.has-hero .site-header:not(.is-solid) { background: linear-gradient(180deg, rgba(0,0,0,.55), transparent); }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--text-2); }

/* ---------- Marquee marki ---------- */
.makes { border-block: 1px solid var(--line); background: var(--bg-2); padding: 22px 0; overflow: hidden; }
.makes__label { text-align: center; font-family: var(--f-head); font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.marquee { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.makes:hover .marquee { animation-play-state: paused; }
.marquee ul { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0 7px; }
.marquee li { width: 132px; height: 66px; border-radius: 10px; background: #f4f4f5; display: grid; place-items: center; padding: 8px; }
.marquee img { width: 120px; height: 60px; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .85; transition: filter .3s, opacity .3s; }
.marquee li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
.makes { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }

/* ---------- Kartice usluga ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.svc-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s;
}
.svc-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.svc-card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card__ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: rgba(217,20,31,.1); color: var(--red-hi); border: 1px solid rgba(217,20,31,.25); margin-bottom: 6px; }
.svc-card__ic .ic { width: 26px; height: 26px; }
.svc-card h3 { margin: 0; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; }
.svc-card p { color: var(--muted); margin: 0; flex: 1; }
.svc-card .link-arrow { margin-top: 8px; }
.svc-card__num { position: absolute; right: 18px; top: 12px; font-family: var(--f-head); font-size: 3.2rem; font-weight: 700; color: rgba(255,255,255,.04); line-height: 1; }
.svc-card--cta { background: var(--red); border-color: var(--red); justify-content: center; }
.svc-card--cta p { color: rgba(255,255,255,.88); }
.svc-card--cta h3 { color: #fff; }
.svc-card--cta .btn { background: #fff; color: var(--red-2); margin-top: 10px; align-self: flex-start; }
.svc-card--cta::before { display: none; }

/* ---------- O nama ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split--rev { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.08); border-radius: inherit; pointer-events: none; }
.media-badge { position: absolute; left: 18px; bottom: 18px; background: rgba(10,10,11,.85); backdrop-filter: blur(8px); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px; display: flex; gap: 12px; align-items: center; }
.media-badge strong { font-family: var(--f-head); font-size: 2rem; color: var(--red-hi); line-height: 1; }
.media-badge span { font-size: .9rem; line-height: 1.3; color: var(--text-2); }
.checklist { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checklist .ic { color: var(--red-hi); margin-top: .25em; width: 20px; height: 20px; padding: 3px; background: rgba(217,20,31,.12); border-radius: 50%; stroke-width: 3; }
.owner { display: flex; gap: 16px; align-items: center; margin-top: 28px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-width: 440px; }
.owner img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.owner strong { display: block; font-family: var(--f-head); font-size: 1.15rem; letter-spacing: .03em; }
.owner span { color: var(--muted); font-size: .92rem; }

/* ---------- Proces ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 22px; border-left: 2px solid var(--line-2); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--f-head); font-size: 2.6rem; font-weight: 700; color: var(--red); line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 1.2rem; text-transform: uppercase; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Galerija ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 10px; }
.mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic a:nth-child(6) { grid-column: span 2; }
@media (max-width: 860px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } .mosaic a:nth-child(6) { grid-column: span 1; } }
.g-item { position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--surface); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.65), transparent 55%); opacity: 0; transition: opacity .35s; }
.g-item__zoom { position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s var(--ease); }
.g-item__zoom .ic { width: 18px; height: 18px; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.06); }
.g-item:hover::after, .g-item:focus-visible::after, .g-item:hover .g-item__zoom, .g-item:focus-visible .g-item__zoom { opacity: 1; transform: none; }
.gallery-masonry { columns: 3 300px; column-gap: 12px; }
.gallery-masonry .g-item { margin-bottom: 12px; break-inside: avoid; }
.gallery-masonry .g-item img { height: auto; }
.gallery-masonry .g-item[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 9px 18px; font-family: var(--f-head); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; transition: all .2s; }
.chip:hover { border-color: #fff; color: #fff; }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.chip small { opacity: .7; margin-left: 4px; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(5,5,6,.96); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; touch-action: pan-y; }
.lb.is-open { opacity: 1; visibility: visible; }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; color: var(--muted); font-family: var(--f-head); letter-spacing: .12em; }
.lb__stage { position: relative; display: grid; place-items: center; padding: 0 70px; min-height: 0; }
.lb__img { max-width: 100%; max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.6); transition: opacity .25s; }
.lb__img.is-loading { opacity: .25; }
.lb__cap { text-align: center; padding: 14px 20px 22px; color: var(--text-2); min-height: 60px; }
.lb__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(20,20,22,.85); color: #fff; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.lb__btn:hover { background: var(--red); border-color: var(--red); }
.lb__btn .ic { width: 22px; height: 22px; }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__prev { left: 12px; } .lb__next { right: 12px; }
@media (max-width: 640px) { .lb__stage { padding: 0 8px; } .lb__prev, .lb__next { top: auto; bottom: -64px; transform: none; } .lb__prev { left: 20px; } .lb__next { right: 20px; } .lb__cap { padding-inline: 84px; } }

/* ---------- CTA traka ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding: clamp(80px, 12vw, 150px) 0; text-align: center; }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(10,10,11,.55), rgba(10,10,11,.92) 70%); }
.cta-band h2 { max-width: 820px; margin: 0 auto .4em; }
.cta-band p { color: var(--text-2); max-width: 600px; margin: 0 auto 1.8em; font-size: 1.15rem; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Utisci ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote { margin: 0; padding: 30px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.quote .ic { width: 34px; height: 34px; color: var(--red); margin-bottom: 14px; }
.quote blockquote { margin: 0 0 20px; color: var(--text-2); flex: 1; }
.quote figcaption { font-family: var(--f-head); letter-spacing: .05em; }
.quote figcaption span { display: block; font-family: var(--f-body); color: var(--muted); font-size: .9rem; letter-spacing: 0; }

/* ---------- Blog kartice ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.post-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.post-card[hidden] { display: none; }
.post-card__media { display: block; overflow: hidden; aspect-ratio: 16 / 9; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.post-card__title { font-size: 1.3rem; margin-bottom: .5em; letter-spacing: .01em; text-transform: none; }
.post-card__title a { background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.post-card:hover .post-card__title a { background-size: 100% 2px; }
.post-card p { color: var(--muted); font-size: .98rem; flex: 1; }
.post-featured { display: grid; grid-template-columns: 1.3fr 1fr; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); margin-bottom: 26px; }
.post-featured .post-card__media { aspect-ratio: auto; min-height: 320px; }
.post-featured .post-card__body { padding: clamp(24px, 4vw, 44px); justify-content: center; }
.post-featured .post-card__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
@media (max-width: 800px) { .post-featured { grid-template-columns: 1fr; } .post-featured .post-card__media { min-height: 0; aspect-ratio: 16/9; } }
.blog-tools { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.blog-tools .chips { margin: 0; }
.search { position: relative; flex: 0 1 320px; }
.search input { width: 100%; height: 46px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: #fff; padding: 0 18px 0 44px; font: inherit; }
.search input:focus { outline: none; border-color: var(--red-hi); }
.search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.empty { display: none; text-align: center; color: var(--muted); padding: 40px 0; }
.empty.is-visible { display: block; }

/* ---------- Tekst (article) ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.article-hero { position: relative; padding: calc(var(--head-h) + clamp(48px, 8vw, 96px)) 0 clamp(36px, 5vw, 60px); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.article-hero__media { position: absolute; inset: 0; z-index: -2; }
.article-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.article-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0%, rgba(10,10,11,.85) 45%, rgba(10,10,11,.6) 100%); }
.article-hero h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 960px; margin: .45em 0 .4em; text-transform: none; letter-spacing: 0; }
.article-hero__lead { font-size: 1.2rem; color: var(--text-2); max-width: 760px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .92rem; margin-top: 18px; }
.article-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: clamp(30px, 5vw, 72px); justify-content: center; padding-block: clamp(40px, 6vw, 72px); }
@media (max-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.toc__in { position: sticky; top: calc(var(--head-h) + 24px); border-left: 1px solid var(--line); padding-left: 18px; }
.toc__h { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; color: var(--muted); }
.toc__list { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc__list a { display: block; padding: 6px 0; font-size: .93rem; color: var(--muted); line-height: 1.35; transition: color .2s; position: relative; }
.toc__list a:hover { color: #fff; }
.toc__list a.is-active { color: #fff; }
.toc__list a.is-active::before { content: ""; position: absolute; left: -19px; top: 6px; bottom: 6px; width: 2px; background: var(--red); }
.prose { font-size: 1.1rem; line-height: 1.78; color: var(--text-2); min-width: 0; }
.prose > p:first-child { font-size: 1.22rem; color: var(--text); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: #fff; text-transform: none; margin: 2em 0 .6em; letter-spacing: .01em; }
.prose h3 { font-size: 1.3rem; color: #fff; margin: 1.6em 0 .5em; }
.prose :is(p, li, td) a:not(.btn) { color: var(--red-hi); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose :is(p, li, td) a:not(.btn):hover { color: #fff; }
.prose strong { color: #fff; font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .5em; }
.prose ul li::marker { color: var(--red); }
.prose ol li::marker { color: var(--red-hi); font-family: var(--f-head); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0 1.8em; font-size: .98rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--f-head); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; color: #fff; background: var(--surface); }
.note { border: 1px solid var(--line-2); border-left: 3px solid var(--red); background: var(--surface); border-radius: var(--radius-sm); padding: 18px 20px; margin: 1.6em 0; }
.note p:last-child { margin: 0; }
.note--warn { border-left-color: var(--amber); }
.note strong:first-child { display: block; font-family: var(--f-head); letter-spacing: .06em; text-transform: uppercase; font-weight: 500; margin-bottom: .3em; }
.cta-box { display: flex; gap: 20px; margin: 3em 0 1.6em; padding: 28px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(217,20,31,.18), rgba(217,20,31,.04)); border: 1px solid rgba(217,20,31,.35); }
.cta-box__icon { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; }
.cta-box__icon .ic { width: 26px; height: 26px; }
.cta-box__title { font-family: var(--f-head); font-size: 1.4rem; color: #fff; margin-bottom: .3em; }
.cta-box__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (max-width: 560px) { .cta-box { flex-direction: column; } }
.disclaimer { display: flex; gap: 10px; font-size: .92rem; color: var(--muted); }
.disclaimer .ic { margin-top: .3em; }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 22px 0; border-block: 1px solid var(--line); margin: 2em 0; font-family: var(--f-head); letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; color: var(--muted); }
.share a, .share button { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface); color: #fff; transition: background .2s, border-color .2s; text-decoration: none; }
.share a:hover, .share button:hover { background: var(--red); border-color: var(--red); }
.share__ok { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #fff; color: #000; font-size: .72rem; padding: 4px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.share button.is-copied .share__ok { opacity: 1; }
.author { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.author__img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.author__name { font-family: var(--f-head); font-size: 1.15rem; color: #fff; margin-bottom: .2em; }
.author p:last-child { margin: 0; font-size: .98rem; color: var(--muted); }

/* ---------- Usluge (stranica) ---------- */
.svc-nav { position: sticky; top: var(--head-h); z-index: 50; background: rgba(12,12,13,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.svc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.svc-nav ul::-webkit-scrollbar { display: none; }
.svc-nav a { display: block; white-space: nowrap; padding: 16px 14px; font-family: var(--f-head); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; }
.svc-nav a:hover, .svc-nav a.is-active { color: #fff; border-color: var(--red); }
.svc-detail { padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 60px); }
.svc-detail:nth-child(even) { background: var(--bg-2); }
.svc-detail h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.svc-detail .media-frame img { aspect-ratio: 3 / 2; }
.svc-detail__links { margin-top: 1.6em; padding-top: 1.2em; border-top: 1px dashed var(--line-2); font-size: .95rem; color: var(--muted); }
.svc-detail__links a { color: var(--red-hi); }
.svc-detail__links a:hover { color: #fff; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s; }
.faq__item[open] { border-color: var(--line-2); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-family: var(--f-head); font-size: 1.12rem; letter-spacing: .02em; color: #fff; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__ic { width: 22px; height: 22px; color: var(--red-hi); transition: transform .3s var(--ease); }
.faq__item[open] .faq__ic { transform: rotate(45deg); }
.faq__a { padding: 0 22px 20px; color: var(--text-2); }
.faq__a p { margin: 0; }
.faq__a a { color: var(--red-hi); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Partneri ---------- */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.partners li { list-style: none; background: #f4f4f5; border-radius: 10px; aspect-ratio: 2 / 1; display: grid; place-items: center; padding: 10px; }
.partners a, .partners span { display: grid; place-items: center; width: 100%; height: 100%; }
.partners img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.partners li:hover img { filter: none; opacity: 1; }
.partners ul { padding: 0; margin: 0; display: contents; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 12px; }
.c-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .25s var(--ease); }
a.c-card:hover { border-color: var(--red); transform: translateX(4px); }
.c-card__ic { width: 48px; height: 48px; border-radius: 12px; background: rgba(217,20,31,.12); color: var(--red-hi); display: grid; place-items: center; flex: none; }
.c-card small { display: block; font-family: var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-size: .72rem; }
.c-card strong { font-weight: 600; color: #fff; font-size: 1.05rem; overflow-wrap: anywhere; }
.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.form-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .88rem; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.field label span { color: var(--red-hi); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2);
  color: #fff; font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9d9da6 50%), linear-gradient(135deg, #9d9da6 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red-hi); box-shadow: 0 0 0 3px rgba(217,20,31,.2); }
.field.has-error input, .field.has-error textarea { border-color: var(--red-hi); }
.field__err { color: var(--red-hi); font-size: .85rem; margin-top: 4px; }
.captcha { display: flex; gap: 12px; align-items: center; }
.captcha img { height: 50px; width: auto; border-radius: 8px; background: #fff; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 10px; margin-bottom: 20px; }
.alert--ok { background: rgba(62,194,122,.12); border: 1px solid rgba(62,194,122,.4); color: #c9f3dc; }
.alert--err { background: rgba(217,20,31,.12); border: 1px solid rgba(217,20,31,.45); color: #ffd3d6; }
.map { margin-top: clamp(40px, 6vw, 64px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; width: 100%; height: clamp(340px, 38vw, 460px); background: var(--surface); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.map__load { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; gap: 12px; padding: 20px; background: radial-gradient(circle at center, rgba(217,20,31,.14), transparent 60%), var(--surface); }
.map__load p { margin: 0; color: var(--text-2); }

/* ---------- Servisni kalkulator ---------- */
.calc { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } }
.calc__form { position: sticky; top: calc(var(--head-h) + 20px); padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 960px) { .calc__form { position: static; } }
.calc__form .field { margin-bottom: 16px; }
.calc__form .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.calc__summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.calc__summary div { padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.calc__summary strong { display: block; font-family: var(--f-head); font-size: 2rem; line-height: 1.1; }
.calc__summary span { font-size: .85rem; color: var(--muted); }
.s-ok strong { color: var(--green); } .s-soon strong { color: var(--amber); } .s-due strong { color: var(--red-hi); }
.calc__list { display: grid; gap: 10px; }
.ci { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 18px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-2); }
.ci[data-state="ok"] { border-left-color: var(--green); }
.ci[data-state="soon"] { border-left-color: var(--amber); }
.ci[data-state="due"] { border-left-color: var(--red); }
.ci h3 { font-size: 1.1rem; margin: 0; letter-spacing: .02em; }
.ci__int { font-size: .88rem; color: var(--muted); grid-column: 1; }
.ci__badge { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-family: var(--f-head); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.ci[data-state="ok"] .ci__badge { color: var(--green); background: rgba(62,194,122,.1); }
.ci[data-state="soon"] .ci__badge { color: var(--amber); background: rgba(242,169,59,.1); }
.ci[data-state="due"] .ci__badge { color: var(--red-hi); background: rgba(217,20,31,.14); }
.ci__bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.ci__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--green); transition: width .6s var(--ease), background .3s; }
.ci[data-state="soon"] .ci__bar span { background: var(--amber); }
.ci[data-state="due"] .ci__bar span { background: var(--red); }
.ci__tip { grid-column: 1 / -1; font-size: .9rem; color: var(--text-2); margin: 4px 0 0; }
.ci__tip a { color: var(--red-hi); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: #08080a; border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 80px); padding-bottom: 20px; }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 30px clamp(22px, 4vw, 40px); border-radius: var(--radius); background: linear-gradient(120deg, var(--red-2), var(--red) 60%, #ff2e3a); margin-bottom: clamp(48px, 6vw, 72px); position: relative; overflow: hidden; }
.footer-cta::after { content: ""; position: absolute; right: -40px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255,255,255,.08); }
.footer-cta .eyebrow { color: #fff; } .footer-cta .eyebrow::before { background: #fff; }
.footer-cta__title { font-family: var(--f-head); font-size: clamp(1.4rem, 2.8vw, 2rem); text-transform: uppercase; margin: 0; max-width: 560px; line-height: 1.15; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.footer-cta .btn--red { background: #0c0c0d; box-shadow: none; }
.footer-cta .btn--red:hover { background: #000; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1.2fr; gap: 36px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo img { width: 110px; margin-bottom: 14px; }
.footer-col p, .footer-col li, .footer-col address { color: var(--muted); font-size: .96rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a:hover { color: #fff; }
.footer-h { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .16em; font-size: .85rem; color: #fff !important; margin-bottom: 16px; }
.footer-col address { font-style: normal; display: grid; gap: 12px; }
.footer-col address a, .footer-hours { display: flex; gap: 10px; align-items: flex-start; }
.footer-col address .ic { color: var(--red-hi); margin-top: .2em; }
.social { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); border: 1px solid var(--line-2); padding: 8px 14px; border-radius: 999px; font-size: .92rem; }
.social:hover { border-color: var(--red); color: #fff; }
.footer-bottom { margin-top: clamp(40px, 5vw, 60px); padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: .84rem; color: #77777f; }
.footer-bottom p { margin: 0; }
.credits a:hover { color: #fff; }

/* ---------- Mobilna traka i "na vrh" ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .mobile-bar { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 90; background: rgba(12,12,13,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 64px; font-size: .72rem; font-family: var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
  .mobile-bar .ic { width: 22px; height: 22px; }
  .mobile-bar__call { background: var(--red); color: #fff !important; }
  .nav-open .mobile-bar { display: none; }
}
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); border-color: var(--red); }
.to-top__ic { transform: rotate(90deg); }
@media (max-width: 760px) { .to-top { bottom: calc(78px + env(safe-area-inset-bottom)); right: 12px; } }

/* ---------- 404 ---------- */
.nf { min-height: 80svh; display: grid; place-items: center; text-align: center; }
.nf__code { font-family: var(--f-head); font-size: clamp(6rem, 20vw, 12rem); font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--red); margin: 0; }

/* ---------- Animacije pojavljivanja ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; }
}

/* ---------- Štampa ---------- */
@media print {
  .site-header, .site-footer, .mobile-bar, .to-top, .toc, .share, .cta-box, .read-progress, .calc__form, .article-hero__media, .page-hero__media { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .prose, .ci, .ci h3, h1, h2, h3 { color: #000 !important; }
  .article-hero, .page-hero { padding: 0 0 12px; }
  .ci { border: 1px solid #999; break-inside: avoid; background: #fff; }
}
