/* =====================================================================
   NORMEDICA – Poliklinika Herceg Novi
   Čisti CSS, bez frameworka.
   ===================================================================== */

:root {
  --navy: #1f2d6e;
  --navy-700: #182357;
  --navy-900: #0f173a;
  --navy-50: #eef2fb;
  --red: #e4382f;
  --red-600: #c82c25;
  --red-50: #fdeceb;
  --sky: #3c8fd8;
  --sky-50: #e8f2fc;
  --ink: #1b2130;
  --muted: #5c6577;
  --line: #e4e9f1;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px -18px rgba(23, 35, 90, 0.25);
  --shadow-sm: 0 4px 14px -6px rgba(23, 35, 90, 0.18);
  --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1180px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  letter-spacing: .01em; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  line-height: 1.1;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(228, 56, 47, .6); }
.btn-red:hover { background: var(--red-600); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(31, 45, 110, .6); }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-900);
  color: #c9d2ee;
  font-size: .86rem;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 40px; flex-wrap: wrap; padding: 4px 0;
}
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.topbar li { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; color: var(--red); flex: none; }
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: #ffb3ae; }
.topbar .phones a { font-size: .95rem; letter-spacing: .01em; }
.topbar__social { margin-left: auto; gap: 10px !important; }
.topbar__social a {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff; transition: background .2s ease, transform .2s ease;
}
.topbar__social a svg { width: 20px; height: 20px; color: #fff; }
.topbar__social a:hover { background: var(--red); transform: translateY(-1px); }
.topbar__social a:hover svg { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(15, 23, 58, .35); }
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 20px;
}
.brand img { height: 52px; width: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 14px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--navy);
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--red); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a:hover { color: var(--red); background: var(--red-50); }
.nav a.is-active { color: var(--red); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 12px; width: 22px; height: 2px; background: var(--navy);
  border-radius: 2px; transition: transform .25s ease, top .25s ease, opacity .25s ease;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy) 55%, #2a63b8 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(255,255,255,.25), transparent 60%),
    radial-gradient(500px 400px at 10% 100%, rgba(60,143,216,.6), transparent 60%);
}
.hero__ecg {
  position: absolute; left: 0; right: 0; bottom: 14%; width: 100%; height: 120px;
  opacity: .18; pointer-events: none;
}
.hero__ecg path { stroke: #fff; stroke-width: 2; fill: none; stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: ecg 9s linear infinite; }
@keyframes ecg { to { stroke-dashoffset: 0; } }

.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  gap: 32px; min-height: 520px; padding: 56px 0 72px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head);
  font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem;
  color: #ffd7d4; margin-bottom: 18px;
}
.hero__eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); border-radius: 2px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.4rem); margin-bottom: 14px; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #dbe3fb; max-width: 560px; margin-bottom: 30px; font-weight: 400; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; }
.hero__blob {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), rgba(255,255,255,.08) 70%);
  border: 1px solid rgba(255,255,255,.25);
  animation: float 7s ease-in-out infinite;
}
.hero__blob::after {
  content: ""; position: absolute; inset: -28px; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.3); animation: spin 40s linear infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.slides { position: relative; width: 360px; height: 360px; }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.92); transition: opacity .8s ease, transform .8s ease;
}
.slide img { max-height: 340px; width: auto; filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); }
.slide.is-active { opacity: 1; transform: scale(1); }
.slides__dots { position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.slides__dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0;
  transition: background .2s, transform .2s;
}
.slides__dots button.is-active { background: #fff; transform: scale(1.25); }

.hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.hero__wave svg { width: 100%; height: 60px; display: block; }

/* Quick info strip under hero */
.quick-info { position: relative; z-index: 2; margin-top: -36px; }
.quick-info__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
  border: 1px solid var(--line);
}
.quick-info__item { display: flex; gap: 14px; align-items: center; padding: 8px 10px; }
.quick-info__item + .quick-info__item { border-left: 1px solid var(--line); }
.quick-info__icon {
  width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: var(--navy-50); color: var(--navy);
}
.quick-info__icon svg { width: 24px; height: 24px; }
.quick-info__item strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: .95rem; }
.quick-info__item span { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section__head.is-left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; color: var(--red); font-family: var(--font-head);
  font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section__head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 24px;
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(var(--red), var(--sky)); opacity: 0; transition: opacity .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-card__icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red-50), var(--sky-50)); color: var(--red);
  transition: transform .3s ease;
}
.service-card__icon svg { width: 32px; height: 32px; }
.service-card:hover .service-card__icon { transform: rotate(-6deg) scale(1.06); }
.service-card h3 { font-size: 1.28rem; margin: 0; color: var(--red); }
.service-card p { margin: 0; color: var(--muted); }
.service-card .btn { margin-top: auto; align-self: flex-start; }
.service-card .btn svg { transition: transform .2s ease; }
.service-card:hover .btn svg { transform: translateX(4px); }

/* ---------- Hours & location (home) ---------- */
.hours { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: stretch; }
.hours__card {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 34px 32px;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.hours__card::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
}
.hours__card h2 { color: #fff; }
.hours__list { list-style: none; padding: 0; margin: 0 0 24px; }
.hours__list li { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.2); }
.hours__list li:last-child { border-bottom: 0; }
.hours__list i { font-style: normal; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: #ffd7d4; min-width: 78px; }
.hours__card .btn { align-self: flex-start; margin-top: auto; position: relative; z-index: 1; }
.hours__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; min-height: 240px; }
.hours__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hours__img:hover img { transform: scale(1.05); }

/* ---------- Partners ---------- */
.partners { padding: 56px 0; }
.partners__title { text-align: center; color: var(--muted); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 26px; }
.partners__logos { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.partners__logos img { height: 58px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s ease, opacity .3s ease, transform .3s ease; }
.partners__logos img:hover { filter: none; opacity: 1; transform: translateY(-3px); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(100deg, var(--navy) 0%, #2a63b8 100%); color: #fff; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px;
}
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 0; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.cta-band p { margin: 6px 0 0; color: #dbe3fb; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #aeb8d8; font-size: .9rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; flex-wrap: wrap; }
.footer a { color: #fff; }
.footer a:hover { color: #ffb3ae; }
.footer__links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.footer__links span { color: #4d5a86; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--red); color: #fff; box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: 56px 0 64px;
  background: linear-gradient(120deg, var(--navy-900), var(--navy) 60%, #2a63b8);
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
}
.page-hero h1 { color: #fff; margin: 10px 0 0; overflow-wrap: anywhere; }
.crumbs { overflow-wrap: anywhere; display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: #c9d2ee; align-items: center; }
.crumbs a { color: #fff; }
.crumbs a:hover { color: #ffb3ae; }
.crumbs .sep { opacity: .5; }
.crumbs .active { color: #ffd7d4; }

/* ---------- Content layouts ---------- */
.content { padding: 64px 0 80px; }
.content--with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }

.prose { max-width: 820px; }
.prose p, .prose li { font-size: 1.02rem; color: #2b3345; }
.prose h2 { margin-top: 1.6em; padding-top: 0; position: relative; }
.prose h2:first-child, .prose h1:first-child { margin-top: 0; }
.prose h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--red); border-radius: 2px; margin-top: 10px; }
.prose h3 { margin-top: 1.4em; color: var(--navy-700); }
.prose h4 { margin-top: 1.2em; }
.prose h1.inline-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.2em; }
.prose ul.check { list-style: none; padding: 0; }
.prose ul.check li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.prose ul.check li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--red-50);
  -webkit-mask: none;
}
.prose ul.check li::after {
  content: ""; position: absolute; left: 6px; top: 10px; width: 5px; height: 9px;
  border: solid var(--red); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.prose ol.steps { counter-reset: step; list-style: none; padding: 0; }
.prose ol.steps li { position: relative; padding-left: 44px; margin-bottom: 14px; counter-increment: step; }
.prose ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .85rem;
  display: grid; place-items: center;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose .note {
  background: var(--sky-50); border-left: 4px solid var(--sky); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}
.prose .note p:last-child { margin: 0; }
.prose .highlight { background: var(--red-50); border-left: 4px solid var(--red); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; }
.prose .highlight p:last-child { margin: 0; }
.prose figure { margin: 28px 0; }
.prose figure img { border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.prose figure.narrow img { max-width: 320px; }
.prose figure.half img { max-width: 480px; }
.prose figure.center { text-align: center; }
.prose figure.center img { margin-inline: auto; }

.lead-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 48px;
}
.lead-card__img img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.lead-card__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.lead-card__body p { font-size: 1.08rem; color: #2b3345; margin: 0; }

/* Pills (sub navigation) */
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 32px; }
.pills a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  box-shadow: 0 8px 20px -10px rgba(228,56,47,.6); transition: transform .2s ease, background .2s ease;
}
.pills a:hover { transform: translateY(-2px); background: var(--red-600); color: #fff; }
.pills a svg { width: 16px; height: 16px; }

/* Aside */
.aside { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 20px; }
.aside__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.aside__card h4 { margin-bottom: 14px; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.aside__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.aside__links a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg-soft); font-weight: 600; font-size: .95rem; transition: background .2s, transform .2s;
}
.aside__links a:hover { background: var(--red-50); transform: translateX(4px); }
.aside__links svg { width: 18px; height: 18px; flex: none; color: var(--red); }
.aside__card--navy { background: var(--navy); color: #fff; border: 0; }
.aside__card--navy h4 { color: #c9d2ee; }
.aside__card--navy a { color: #fff; }
.aside__card--navy .btn { margin-top: 12px; }

/* Services list page */
.services-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.services-list li a, .services-list li span {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  color: var(--navy); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.services-list li a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--red); }
.services-list li span { color: var(--navy-700); }
.services-list .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; box-shadow: 0 0 0 4px var(--red-50); }
.services-list li span .dot { background: var(--sky); box-shadow: 0 0 0 4px var(--sky-50); }
.services-list li a::after { content: "→"; margin-left: auto; opacity: 0; transform: translateX(-6px); transition: all .2s ease; color: var(--red); }
.services-list li a:hover::after { opacity: 1; transform: none; }

/* Doctors */
.doctor { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.doctor:last-child { border-bottom: 0; }
.doctor__head { position: sticky; top: calc(var(--header-h) + 20px); }
.doctor__avatar {
  width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--navy), var(--sky)); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem;
  box-shadow: var(--shadow);
}
.doctor__head h2 { font-size: 1.4rem; margin-bottom: 6px; }
.doctor__spec { display: inline-block; color: var(--red); font-weight: 700; font-family: var(--font-head); font-size: .95rem; }
.doctor__bio p { color: #2b3345; }
.doctor__bio b { color: var(--navy); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery a {
  position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--bg-soft); box-shadow: var(--shadow-sm);
}
.gallery a.wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery a::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,58,.45), transparent 50%);
  opacity: 0; transition: opacity .3s ease;
}
.gallery a::before {
  content: "+"; position: absolute; right: 14px; bottom: 14px; width: 36px; height: 36px; border-radius: 50%; z-index: 1;
  background: #fff; color: var(--navy); font-weight: 800; display: grid; place-items: center; font-size: 1.3rem;
  opacity: 0; transform: translateY(6px); transition: all .3s ease;
}
.gallery a:hover img { transform: scale(1.06); }
.gallery a:hover::after, .gallery a:hover::before { opacity: 1; transform: none; }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery--4 { grid-template-columns: repeat(4, 1fr); }
.gallery--portrait a { aspect-ratio: 3 / 4; }
.gallery-title { margin: 56px 0 20px; display: flex; align-items: center; gap: 14px; }
.gallery-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 14, 32, .92); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; padding: 24px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1100px, 100%); max-height: 88vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); object-fit: contain; }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff;
  cursor: pointer; display: grid; place-items: center; transition: background .2s;
}
.lightbox__btn:hover { background: var(--red); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #c9d2ee; font-size: .9rem; }

/* Video */
.video-wrap { max-width: 900px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-wrap video { width: 100%; display: block; aspect-ratio: 16 / 10; }

/* Pricelist */
.price-card {
  max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 48px 32px; box-shadow: var(--shadow);
}
.price-card__icon { width: 84px; height: 84px; border-radius: 24px; margin: 0 auto 20px; display: grid; place-items: center; background: var(--red-50); color: var(--red); }
.price-card__icon svg { width: 42px; height: 42px; }
.price-card h2 { margin-bottom: 8px; }
.price-card p { color: var(--muted); margin-bottom: 24px; }

/* Contact */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 48px; line-height: 0; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: .98rem;
  background: var(--bg-soft); color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-field input:focus, .form-field textarea:focus { outline: 0; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px var(--navy-50); }
.form-field textarea { min-height: 160px; resize: vertical; }
.form-actions { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.form-msg { grid-column: 1 / -1; display: none; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.form-msg.is-visible { display: block; }
.form-msg.success { background: #e7f7ee; color: #176b3a; border: 1px solid #bfe8d0; }
.form-msg.warning { background: var(--red-50); color: var(--red-600); border: 1px solid #f6c4c0; }

.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-card .logo { margin-bottom: 20px; }
.contact-card .logo img { height: 56px; width: auto; }
.contact-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.contact-line:last-of-type { border-bottom: 0; }
.contact-line__icon { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--red-50); color: var(--red); }
.contact-line__icon svg { width: 20px; height: 20px; }
.contact-line strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.contact-line a { font-weight: 600; }
.contact-line .big { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: var(--navy); display: block; }
.contact-card .hours-box { margin-top: 22px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--navy); color: #fff; }
.contact-card .hours-box h3 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.contact-card .hours-box p { margin: 0; line-height: 1.9; }
.contact-card .hours-box i { font-style: normal; font-weight: 800; color: #ffd7d4; display: inline-block; min-width: 70px; }

/* Notice page */
.notice-card { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); font-size: 1.05rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__ecg path, .hero__blob, .hero__blob::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding-bottom: 96px; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { min-height: 320px; }
  .hero__blob { width: 320px; height: 320px; }
  .slides { width: 280px; height: 280px; }
  .slide img { max-height: 260px; }
  .hours { grid-template-columns: 1fr; }
  .hours__img { min-height: 260px; }
  .content--with-aside { grid-template-columns: 1fr; }
  .aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .doctor { grid-template-columns: 1fr; gap: 16px; }
  .doctor__head { position: static; }
  .lead-card { grid-template-columns: 1fr; }
  .lead-card__img img { min-height: 220px; max-height: 320px; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .topbar .address { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(15,23,58,.3); max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav.is-open { max-height: 520px; }
  .nav ul { flex-direction: column; padding: 12px 16px 18px; gap: 2px; }
  .nav a { padding: 13px 14px; font-size: .95rem; }
  .nav a::after { display: none; }
  .quick-info__grid { grid-template-columns: 1fr; gap: 4px; }
  .quick-info__item + .quick-info__item { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 60px 0; }
  .gallery, .gallery--4 { grid-template-columns: repeat(2, 1fr); }
  .services-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band__inner { justify-content: center; text-align: center; }
  .footer__inner { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .brand img { height: 44px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery, .gallery--4, .gallery--2 { grid-template-columns: 1fr; }
  .gallery a.wide { grid-column: auto; }
  .topbar ul { gap: 10px; }
  .topbar__inner { justify-content: center; text-align: center; }
  .hero__inner { min-height: auto; padding-top: 40px; }
  .form-card, .contact-card, .notice-card, .lead-card__body { padding: 22px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 56px; transform: none; }
}

/* ---------- Razmak između teksta i galerije ---------- */
.gallery-sep { height: 1px; background: var(--line); margin: 44px 0 28px; }

/* ---------- Cookie / GDPR consent ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; display: flex; justify-content: center;
  opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.consent.is-open { opacity: 1; transform: none; pointer-events: auto; }
.consent[hidden] { display: none; }
.consent__box {
  width: min(100%, 760px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(15, 23, 58, .45); padding: 22px 24px;
}
.consent__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.consent__head h3 { margin: 0; font-size: 1.1rem; }
.consent__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); flex: none; }
.consent__icon svg { width: 20px; height: 20px; }
.consent__text { font-size: .92rem; color: var(--muted); margin: 0 0 14px; }
.consent__text a { font-weight: 600; text-decoration: underline; }
.consent__options { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; padding: 14px 16px; background: var(--bg-soft); border-radius: var(--radius-sm); }
.consent__options[hidden] { display: none; }
.consent__opt { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: #2b3345; cursor: pointer; }
.consent__opt input { margin-top: 4px; accent-color: var(--red); width: 16px; height: 16px; flex: none; }
.consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent__actions [hidden] { display: none; }
@media (max-width: 560px) {
  .consent { left: 8px; right: 8px; bottom: 8px; }
  .consent__box { padding: 18px 16px; }
  .consent__actions .btn { flex: 1 1 auto; justify-content: center; }
}
