/* Reset i osnove */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 600; line-height: var(--lh-head); letter-spacing: -0.01em; color: var(--text); }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--text); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2.25rem, 5vw, 4rem); }
.eyebrow { font-family: var(--ff-body); font-weight: 600; font-size: var(--fs-small); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.55; max-width: 58ch; }
.section__head { max-width: 62ch; margin-bottom: clamp(1.5rem, 4vw, 2.75rem); }
.section__head h2 { font-size: var(--fs-h2); margin-top: 0.4rem; }
.section__head p { margin-top: 0.75rem; color: var(--muted); font-size: var(--fs-lead); }

.skip-link {
  position: absolute; left: 0.75rem; top: -3rem;
  background: var(--surface); color: var(--text);
  padding: 0.6rem 1rem; border-radius: var(--r-xs); border: 1px solid var(--line);
  z-index: var(--z-toast); transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 0.75rem; }

/* Dugmad */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.55rem 1.35rem;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border-radius: var(--r-pill); border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent-strong); color: var(--on-strong); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-strong); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn--on-accent { background: var(--surface); color: var(--accent-ink); }
.btn--on-accent:hover { background: var(--bg); color: var(--accent-hover); }
.btn--block { width: 100%; }
.btn--lg { min-height: 52px; padding: 0.7rem 1.75rem; font-size: 1.0625rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: var(--bg); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px) saturate(1.08); }
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--accent); margin-right: auto; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__mark polyline { stroke: var(--surface); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--ff-head); font-weight: 700; font-size: 1.18rem; color: var(--text); letter-spacing: -0.01em; }
.brand__tag { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.01em; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 0.25rem; list-style: none; padding: 0; }
.nav__link {
  display: inline-block; padding: 0.5rem 0.75rem; border-radius: var(--r-xs);
  font-size: 0.95rem; font-weight: 500; text-decoration: none; color: var(--text);
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.nav__link:hover { color: var(--accent-ink); background: var(--surface-2); }
.nav__link[aria-current="page"] { color: var(--accent-ink); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.theme-switch { display: none; align-items: center; gap: 0.15rem; padding: 0.2rem; border: 1px solid var(--line); border-radius: var(--r-pill); }
.theme-switch__btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; transition: background-color var(--dur) var(--ease-out); }
.theme-switch__btn:hover { background: var(--surface-2); }
.theme-switch__btn[aria-pressed="true"] { background: var(--accent-soft); }
.theme-switch__dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,0.14); }
.theme-switch__dot--svetla { background: #FAFAF8; }
.theme-switch__dot--tamna { background: linear-gradient(135deg, #132320 50%, #C9A96A 50%); }
.theme-switch__dot--blush { background: linear-gradient(135deg, #FBF3F0 50%, #B76E79 50%); }

.header-call { display: none; }

.hamburger { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-xs); color: var(--text); }
.hamburger__box { position: relative; width: 22px; height: 16px; }
.hamburger__bar, .hamburger__bar::before, .hamburger__bar::after {
  position: absolute; left: 0; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.hamburger__bar { top: 7px; }
.hamburger__bar::before { content: ""; top: -7px; }
.hamburger__bar::after { content: ""; top: 7px; }
.hamburger[aria-expanded="true"] .hamburger__bar { background: transparent; }
.hamburger[aria-expanded="true"] .hamburger__bar::before { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* Drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(12, 21, 20, 0.44); z-index: var(--z-overlay); opacity: 0; transition: opacity var(--dur) var(--ease-out); }
.drawer-scrim.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(86vw, 340px);
  background: var(--surface); border-left: 1px solid var(--line); z-index: var(--z-drawer);
  display: flex; flex-direction: column; padding: 1rem 1.25rem 1.5rem;
  transform: translateX(100%); transition: transform var(--dur-slow) var(--ease-out);
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.drawer__title { font-family: var(--ff-head); font-weight: 600; font-size: 1.1rem; }
.drawer__close { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-xs); color: var(--text); }
.drawer__close:hover { background: var(--surface-2); }
.drawer__list { list-style: none; padding: 0; margin: 0.5rem 0; display: flex; flex-direction: column; }
.drawer__link { display: block; padding: 0.85rem 0.5rem; font-size: 1.075rem; font-weight: 500; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.drawer__link[aria-current="page"] { color: var(--accent-ink); font-weight: 700; }
.drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.6rem; padding-top: 1rem; }
.drawer__theme { display: flex; align-items: center; justify-content: center; gap: 0.35rem; margin-top: 0.75rem; }

/* Hero — naslovna */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero__grid { display: grid; gap: clamp(1.75rem, 5vw, 3.5rem); align-items: center; }
.hero__title { font-size: var(--fs-display); font-weight: 700; letter-spacing: -0.02em; }
.hero__title em { font-style: italic; color: var(--accent-ink); }
.hero__lead { margin-top: 1.15rem; font-size: var(--fs-lead); color: var(--muted); max-width: 46ch; }
.hero__actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: var(--fs-small); color: var(--muted); }
.hero__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__meta svg { color: var(--accent); }
.hero__media { position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--surface-2); }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); will-change: transform; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: var(--hero-scrim); pointer-events: none; }
.hero__badge { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.85rem; border-radius: var(--r-pill); background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--line); font-size: 0.8rem; font-weight: 600; color: var(--text); }
.hero__badge b { color: var(--accent-ink); }

/* Kartice stubova */
.pillars { display: grid; gap: clamp(1rem, 3vw, 1.5rem); }
.pillar {
  display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.pillar__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 1rem; }
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: var(--fs-h3); }
.pillar p { margin-top: 0.5rem; color: var(--muted); font-size: 0.975rem; }
.pillar__more { margin-top: 1.15rem; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--accent-ink); }
.pillar__more svg { transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) {
  .pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
  .pillar:hover .pillar__more svg { transform: translateX(4px); }
}

/* Grid kartica usluga (hub) */
.svc-grid { display: grid; gap: clamp(0.85rem, 2vw, 1.25rem); }
.svc-card {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.35rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  text-decoration: none; color: var(--text);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.svc-card__body { flex: 1; min-width: 0; }
.svc-card h3 { font-size: 1.075rem; font-weight: 600; font-family: var(--ff-body); }
.svc-card p { margin-top: 0.2rem; color: var(--muted); font-size: 0.925rem; line-height: 1.5; }
.svc-card__arrow { flex: none; color: var(--accent); margin-top: 0.15rem; transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) {
  .svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
  .svc-card:hover .svc-card__arrow { transform: translateX(4px); }
}

/* Zašto Medica Centar */
.reasons { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.reason { display: flex; gap: 1rem; }
.reason__icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-ink); }
.reason__icon svg { width: 24px; height: 24px; }
.reason h3 { font-size: 1.1rem; font-family: var(--ff-body); font-weight: 700; }
.reason p { margin-top: 0.35rem; color: var(--muted); font-size: 0.95rem; }

/* Traka akcija */
.promo { background: var(--accent-soft); border-radius: var(--r-md); padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); }
.promo__grid { display: grid; gap: 1.25rem; align-items: center; }
.promo h2 { font-size: var(--fs-h2); }
.promo p { margin-top: 0.5rem; color: var(--muted); max-width: 52ch; }
.promo__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Traka osiguranja / partnera */
.partners { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partners__label { font-size: var(--fs-small); color: var(--muted); text-align: center; margin-bottom: 1rem; }
.partners__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 0.9rem; list-style: none; padding: 0; }
.partners__list li { padding: 0.45rem 0.95rem; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 0.875rem; color: var(--muted); background: var(--surface); }

/* FAQ */
.faq { display: grid; gap: 0.75rem; max-width: 780px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1.05rem 1.25rem; font-weight: 600; font-size: 1.05rem; text-align: left; list-style: none; color: var(--text); }
.faq__q::-webkit-details-marker { display: none; }
.faq__sign { flex: none; position: relative; width: 20px; height: 20px; color: var(--accent-ink); }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq__sign::before { top: 9px; left: 2px; width: 16px; height: 2px; }
.faq__sign::after { top: 2px; left: 9px; width: 2px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.faq__item[open] .faq__sign::after { transform: rotate(90deg); opacity: 0; }
.faq__a { padding: 0 1.25rem 1.2rem; color: var(--muted); }
.faq__a p + p { margin-top: 0.75rem; }
.faq__item[open] .faq__q { color: var(--accent-ink); }

/* CTA band */
.cta {
  background: var(--accent-strong); color: var(--on-strong); border-radius: var(--r-md);
  padding: clamp(2rem, 5vw, 3.25rem); text-align: center;
}
.cta h2 { color: var(--on-strong); font-size: var(--fs-h2); }
.cta p { margin: 0.65rem auto 0; max-width: 48ch; color: color-mix(in srgb, var(--on-strong) 84%, transparent); }
.cta__phone { display: inline-block; margin-top: 1.25rem; font-family: var(--ff-head); font-weight: 700; font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--on-strong); text-decoration: none; letter-spacing: -0.01em; }
.cta__phone:hover { color: var(--on-strong); text-decoration: underline; text-underline-offset: 0.15em; }
.cta__actions { margin-top: 1.35rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* Inner hero + breadcrumbs */
.breadcrumbs { font-size: var(--fs-small); color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; list-style: none; padding: 0; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-ink); }
.breadcrumbs li[aria-current="page"] { color: var(--text); }
.breadcrumbs svg { width: 14px; height: 14px; opacity: 0.6; }
.page-hero { padding-block: clamp(1.75rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-hero__grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: center; }
.page-hero h1 { font-size: var(--fs-h1); margin-top: 0.85rem; }
.page-hero__intro { margin-top: 1rem; font-size: var(--fs-lead); color: var(--muted); max-width: 60ch; }
.page-hero__media { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Prose (sadržaj servisne stranice) */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-h2); margin-top: clamp(2rem, 5vw, 3rem); }
.prose h3 { font-size: var(--fs-h3); margin-top: 1.75rem; font-family: var(--ff-body); font-weight: 700; }
.prose p { margin-top: 1rem; }
.prose ul, .prose ol { margin-top: 1rem; padding-left: 1.35rem; }
.prose li { margin-top: 0.5rem; }
.prose li::marker { color: var(--accent); }
.prose a { font-weight: 500; }
.prose strong { color: var(--text); }

/* Forma */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow-sm); }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field > label { font-weight: 600; font-size: 0.95rem; }
.field .req { color: var(--accent-ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.75rem 0.9rem; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-xs); min-height: 46px;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field--invalid input, .field--invalid textarea { border-color: #C0392B; }
.field__error { font-size: var(--fs-small); color: #C0392B; min-height: 1em; }
:root[data-theme="tamna"] .field__error, :root[data-theme="tamna"] .field--invalid input, :root[data-theme="tamna"] .field--invalid textarea { color: #F1948A; border-color: #F1948A; }
.field--check { flex-direction: row; align-items: flex-start; gap: 0.65rem; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin-top: 0.15rem; flex: none; accent-color: var(--accent); }
.field--check label { font-weight: 400; font-size: 0.95rem; color: var(--muted); }
.form-note { font-size: 0.9rem; color: var(--muted); background: var(--accent-soft); border-radius: var(--r-xs); padding: 0.85rem 1rem; margin-bottom: 1.25rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--r-xs); font-size: 0.95rem; display: none; }
.form-status.is-ok { display: block; background: var(--accent-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.form-status.is-err { display: block; background: color-mix(in srgb, #C0392B 12%, var(--surface)); color: #96271b; border: 1px solid #C0392B; }
:root[data-theme="tamna"] .form-status.is-err { color: #F1948A; }

/* Cenovnik tabela */
.pricetable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.pricetable { width: 100%; border-collapse: collapse; min-width: 420px; }
.pricetable th, .pricetable td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.pricetable thead th { background: var(--surface-2); font-weight: 700; font-size: 0.9rem; }
.pricetable td:last-child, .pricetable th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pricetable tbody tr:nth-child(even) { background: var(--surface-2); }
.pricetable tbody tr:last-child td { border-bottom: none; }
.pricetable th:first-child, .pricetable td:first-child { position: sticky; left: 0; background: var(--surface); }
.pricetable tbody tr:nth-child(even) td:first-child { background: var(--surface-2); }

/* Kontakt info blok */
.contact-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
.info-list { list-style: none; padding: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: 0.85rem; }
.info-list__ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-ink); }
.info-list__ic svg { width: 20px; height: 20px; }
.info-list dt, .info-list b { font-weight: 700; font-size: 0.95rem; }
.info-list a { color: var(--accent-ink); text-decoration: none; }
.info-list a:hover { text-decoration: underline; }
.info-list__sub { color: var(--muted); font-size: 0.95rem; }
.map-frame { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 3 / 2; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Related */
.related { display: grid; gap: clamp(0.85rem, 2vw, 1.25rem); }
.related-card { padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); text-decoration: none; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 1rem; transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.related-card span { font-weight: 600; }
.related-card svg { flex: none; color: var(--accent); transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) { .related-card:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); transform: translateY(-2px); } .related-card:hover svg { transform: translateX(3px); } }

/* Istaknute usluge (kartice sa slikom) */
.feature-grid { display: grid; gap: clamp(0.85rem, 2vw, 1.25rem); grid-template-columns: 1fr; }
.feature-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
.feature-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.feature-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.feature-card__body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.feature-card h3 { font-size: 1.1rem; font-family: var(--ff-body); font-weight: 700; }
.feature-card p { margin-top: 0.3rem; color: var(--muted); font-size: 0.925rem; line-height: 1.5; flex: 1; }
.feature-card__more { margin-top: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--accent-ink); font-size: 0.925rem; }
.feature-card__more svg { transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) {
  .feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
  .feature-card:hover .feature-card__media img { transform: scale(1.05); }
  .feature-card:hover .feature-card__more svg { transform: translateX(4px); }
}
@media (min-width: 620px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

/* Footer */
.site-footer { margin-top: clamp(3rem, 8vw, 6rem); border-top: 1px solid var(--line); background: var(--surface); }
.site-footer__reg { display: block; margin-top: 0.2rem; font-size: 0.8rem; opacity: 0.85; }
.site-footer__grid { display: grid; gap: clamp(1.75rem, 4vw, 2.5rem); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.site-footer__brand { font-family: var(--ff-head); font-weight: 700; font-size: 1.25rem; color: var(--text); }
.site-footer__tag { margin-top: 0.4rem; color: var(--muted); font-size: 0.925rem; max-width: 34ch; }
.site-footer__nap { font-style: normal; margin-top: 1rem; color: var(--muted); font-size: 0.95rem; line-height: 1.9; }
.site-footer__nap a { color: var(--accent-ink); text-decoration: none; }
.site-footer__nap a:hover { text-decoration: underline; }
.site-footer__title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-family: var(--ff-body); font-weight: 700; margin-bottom: 0.85rem; }
.site-footer__hours { list-style: none; padding: 0; display: grid; gap: 0.5rem; font-size: 0.95rem; }
.site-footer__hours li { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); max-width: 15rem; }
.site-footer__hours span:first-child { color: var(--text); }
.site-footer__links { list-style: none; padding: 0; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.site-footer__links a { color: var(--muted); text-decoration: none; }
.site-footer__links a:hover { color: var(--accent-ink); }
.site-footer__social { display: flex; gap: 0.6rem; }
.site-footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.site-footer__social a:hover { color: var(--accent-ink); border-color: var(--accent); }
.site-footer__maplink { display: inline-block; margin-top: 1rem; font-size: 0.925rem; color: var(--accent-ink); text-decoration: none; }
.site-footer__maplink:hover { text-decoration: underline; }
.site-footer__bar { border-top: 1px solid var(--line); }
.site-footer__bar-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding-block: 1.25rem; font-size: 0.85rem; color: var(--muted); }
.site-footer__credit a { color: var(--muted); text-decoration: none; }
.site-footer__credit a:hover { color: var(--accent-ink); }

/* Sticky mobilni call-bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header);
  display: flex; gap: 0.6rem; padding: 0.6rem var(--gutter);
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px); border-top: 1px solid var(--line);
}
.callbar__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none; }
.callbar__btn--primary { background: var(--accent-strong); color: var(--on-strong); }
.callbar__btn--ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }

/* Reveal (samo kada je JS aktivan, da bez JS-a sadržaj ostane vidljiv) */
:root.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); transition-delay: var(--rv-delay, 0ms); }
:root.js .rv-in { opacity: 1; transform: none; }

/* Linija-vodič */
.guide-root { position: relative; }
.guide-root > * { position: relative; z-index: 1; }
.guide-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: var(--z-guide); pointer-events: none; overflow: visible; }
.guide-path { fill: none; stroke: var(--guide); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: var(--guide-glow); }
.guide-dot { fill: var(--surface); stroke: var(--guide); stroke-width: 2; transform-box: fill-box; transform-origin: center; transition: transform var(--dur-slow) var(--ease-out), fill var(--dur-slow) var(--ease-out); }
.guide-dot.on { fill: var(--guide); transform: scale(1.3); }

/* Prelaz tema (bez skoka pri prvom paint-u) */
:root.mc-theme-ready body,
:root.mc-theme-ready .site-header,
:root.mc-theme-ready .drawer,
:root.mc-theme-ready .site-footer,
:root.mc-theme-ready .card,
:root.mc-theme-ready .pillar,
:root.mc-theme-ready .svc-card,
:root.mc-theme-ready .btn,
:root.mc-theme-ready .faq__item,
:root.mc-theme-ready .form-card,
:root.mc-theme-ready .promo,
:root.mc-theme-ready .field input,
:root.mc-theme-ready .field textarea {
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

/* View transitions */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: mc-vt-out 0.22s var(--ease-out) both; }
::view-transition-new(root) { animation: mc-vt-in 0.22s var(--ease-out) both; }
@keyframes mc-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes mc-vt-in { from { opacity: 0; transform: translateY(8px); } }

/* Responsive */
@media (min-width: 620px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .related { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .site-footer__col:first-child { grid-column: 1 / -1; }
}
@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .page-hero__grid { grid-template-columns: 1.1fr 0.9fr; }
  .promo__grid { grid-template-columns: 1.5fr auto; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .site-footer__col:first-child { grid-column: auto; }
  .callbar { display: none; }
}
@media (min-width: 1000px) {
  .nav { display: block; }
  .theme-switch { display: flex; }
  .header-call { display: inline-flex; }
  .hamburger { display: none; }
  .drawer__theme { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  :root.js .rv, :root.js .rv-in { opacity: 1; transform: none; }
  .hero__img { transform: none !important; }
}

/* Print */
@media print {
  .site-header, .callbar, .drawer, .drawer-scrim, .guide-svg, .theme-switch, .hamburger, .hero__actions, .cta__actions { display: none !important; }
  body { background: #fff; color: #000; }
  .hero__media, .page-hero__media, .map-frame { box-shadow: none; }
}

/* Galerija (O nama) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: clamp(0.6rem, 1.6vw, 1rem); }
.gallery__item { margin: 0; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.gallery__item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery__item figcaption { padding: 0.6rem 0.75rem; font-size: 0.85rem; color: var(--muted); }
.gallery--devices { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* Cenovnik */
.pricegroup { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.pricegroup h3 { font-size: 1.15rem; margin-bottom: 0.75rem; font-family: var(--ff-body); font-weight: 700; }
.pricetable__sub th { background: var(--accent-soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.pricenote { margin-top: 1rem; color: var(--muted); font-size: 0.925rem; }

/* Akcije */
.offers { display: grid; gap: clamp(0.85rem, 2vw, 1.25rem); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.offer { padding: clamp(1.15rem, 3vw, 1.6rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.offer h3 { font-size: 1.075rem; font-family: var(--ff-body); font-weight: 700; }
.offer p { margin-top: 0.6rem; color: var(--muted); line-height: 1.6; }
.offer__note { font-size: 0.875rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }

/* Hub/cenovnik hero bez slike zauzima punu širinu */
.page-hero__grid--wide { grid-template-columns: 1fr; }
