/* OrthoNova — tokens (generated from the design system) */
:root {
  --surface: #ffffff;
  --surface-alt: #f2f8fc;
  --ink: #0f2a3d;
  --ink-muted: #4b6476;
  --brand: #0c5e98;
  --brand-strong: #0a4c7c;
  --on-brand: #ffffff;
  --brand-tint: #e6f1f9;
  --accent-ink: #0e7c86;
  --shard-navy: #1867a6;
  --shard-sky: #69bffc;
  --shard-teal: #0ca6af;
  --shard-aqua: #8ae1e5;
  --shard-slate: #869bad;
  --line: #dbe8f1;
  --line-strong: #9fb4c3;
  --focus: #0e7c86;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-16: 64px;
  --space-20: 80px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 12px 32px -12px rgba(15, 42, 61, 0.18);
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.display-xl { font-family: var(--font-sans); font-size: 64px; line-height: 68px; font-weight: 800; letter-spacing: -0.03em; }
.display-l { font-family: var(--font-sans); font-size: 44px; line-height: 50px; font-weight: 700; letter-spacing: -0.02em; }
.heading { font-family: var(--font-sans); font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-family: var(--font-sans); font-size: 16px; line-height: 26px; font-weight: 400; }
.body { font-family: var(--font-sans); font-size: 16px; line-height: 26px; font-weight: 400; }
.small { font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 500; }

/* ── Loading screen ── */
.on-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), visibility 0.6s;
}
.on-loader.is-done {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.on-loader__tooth {
  width: 90px; height: auto;
  filter: drop-shadow(0 0 0 transparent);
  animation: loader-assemble 1.8s cubic-bezier(0.4,0,0.2,1) forwards,
             loader-pulse 2s ease-in-out 1.8s infinite;
}
.on-loader__shard {
  opacity: 0;
  transform-origin: 768px 844px;
  transform: scale(0.3) rotate(calc(var(--r, 0) * 1deg));
  animation: shard-in 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: var(--d, 0s);
}
/* Stagger each shard */
.on-loader__shard:nth-child(1)  { --d: 0.00s; --r: -25; }
.on-loader__shard:nth-child(2)  { --d: 0.05s; --r: 20; }
.on-loader__shard:nth-child(3)  { --d: 0.10s; --r: -15; }
.on-loader__shard:nth-child(4)  { --d: 0.15s; --r: 30; }
.on-loader__shard:nth-child(5)  { --d: 0.18s; --r: -20; }
.on-loader__shard:nth-child(6)  { --d: 0.22s; --r: 15; }
.on-loader__shard:nth-child(7)  { --d: 0.26s; --r: -30; }
.on-loader__shard:nth-child(8)  { --d: 0.30s; --r: 25; }
.on-loader__shard:nth-child(9)  { --d: 0.34s; --r: -10; }
.on-loader__shard:nth-child(10) { --d: 0.38s; --r: 20; }
.on-loader__shard:nth-child(11) { --d: 0.42s; --r: -25; }
.on-loader__shard:nth-child(12) { --d: 0.46s; --r: 15; }
.on-loader__shard:nth-child(13) { --d: 0.52s; --r: -20; }
.on-loader__shard:nth-child(14) { --d: 0.58s; --r: 30; }
.on-loader__shard:nth-child(15) { --d: 0.64s; --r: -15; }
.on-loader__shard:nth-child(16) { --d: 0.70s; --r: 25; }
.on-loader__shard:nth-child(17) { --d: 0.76s; --r: -30; }
.on-loader__shard:nth-child(18) { --d: 0.82s; --r: 20; }
.on-loader__shard:nth-child(19) { --d: 0.88s; --r: -25; }

@keyframes shard-in {
  from { opacity: 0; transform: scale(0.3) rotate(calc(var(--r, 0) * 1deg)); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes loader-assemble {
  0%, 60% { filter: drop-shadow(0 0 0 transparent); }
  100%    { filter: drop-shadow(0 4px 20px rgba(60,197,226,0.35)); }
}
@keyframes loader-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 4px 20px rgba(60,197,226,0.35)); }
  50%      { transform: scale(1.06); filter: drop-shadow(0 6px 30px rgba(60,197,226,0.5)); }
}

/* Glow ring behind the tooth */
.on-loader__glow {
  position: absolute; width: 140px; height: 140px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: radial-gradient(circle, rgba(60,197,226,0.08) 0%, transparent 70%);
  animation: glow-ring 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow-ring {
  0%, 100% { transform: scale(0.8); opacity: 0; }
  50%      { transform: scale(1.4); opacity: 1; }
}
/* Progress of the hero 3D tooth; appears once the shard assembly is done and real progress is known */
.on-loader__bar {
  position: absolute; left: 50%; top: calc(50% + 78px); width: 120px; height: 3px; margin-left: -60px;
  border-radius: 2px; background: rgba(60, 197, 226, 0.15); overflow: hidden;
  opacity: 0; transition: opacity 0.4s ease;
}
.on-loader.has-progress .on-loader__bar { opacity: 1; transition-delay: 1.4s; }
.on-loader__bar-fill { display: block; width: 0; height: 100%; border-radius: 2px; background: #3CC5E2; transition: width 0.25s ease; }
@media (prefers-reduced-motion: reduce) {
  .on-loader__bar, .on-loader__bar-fill { transition: none; }
  .on-loader__tooth { animation: none; }
  .on-loader__shard { animation: none; opacity: 1; transform: none; }
  .on-loader__glow  { animation: none; opacity: 0; }
}

/* Components (from the design system) */
/* OrthoNova — component styles. Reads tokens.css custom properties only. The site is light-only: white grounds. */
.on-shards { display: block; width: 100%; height: 100%; overflow: visible; }
.on-shard { transition: filter 260ms ease; }
.on-shard.is-hot { filter: brightness(1.12) saturate(1.1); }

.on-btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6);
  font: 600 15px/1 var(--font-sans); letter-spacing: 0.01em;
  border-radius: var(--radius-pill); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.on-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-btn:active { transform: translateY(1px); }
.on-btn--primary { background: var(--brand); color: var(--on-brand); }
.on-btn--primary:hover { background: var(--brand-strong); }
.on-btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.on-btn--secondary:hover { border-color: var(--brand); color: var(--brand); }
.on-btn svg { width: 18px; height: 18px; flex: none; }

/* Logo: animated tooth mark + wordmark */
.on-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.on-logo__mark { width: 40px; height: 44px; flex: none; }
.on-logo__word { font: 800 22px/1 var(--font-sans); letter-spacing: -0.02em; }
.on-logo__word b { color: var(--brand); font-weight: 800; }
.on-logo:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: var(--radius-sm); }

/* ── Header navigation ── */
.on-header-nav {
  position: relative; margin: 0 auto; max-width: 72rem;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 1.25rem 1rem;
}
@media (min-width: 768px) {
  .on-header-nav { justify-content: center; padding: 2rem 1rem; }
}

/* Nav links — desktop */
.on-header-nav__links {
  display: none; list-style: none; margin: 0; padding: 0;
}
@media (min-width: 768px) {
  .on-header-nav__links {
    display: flex; flex-direction: row;
    font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em;
  }
  .on-header-nav__links a {
    display: block; padding: 0.5rem 1.1rem;
    color: var(--ink); text-decoration: none;
    transition: color 0.2s ease;
  }
  .on-header-nav__links a:hover { color: #3CC5E2; }
}
@media (min-width: 1024px) {
  .on-header-nav__links a { padding: 0.5rem 1.5rem; }
}

/* ── Burger button ── */
.on-burger {
  position: relative; z-index: 51;
  width: 28px; height: 20px;
  background: none; border: none; cursor: pointer; padding: 0;
}
@media (min-width: 768px) { .on-burger { display: none; } }

.on-burger__line {
  display: block; position: absolute; left: 0;
  width: 100%; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
              opacity 0.25s ease,
              background-color 0.3s ease,
              width 0.3s ease,
              top 0.35s cubic-bezier(0.4,0,0.2,1);
  transform-origin: center;
}
.on-burger__line:nth-child(1) { top: 0; }
.on-burger__line:nth-child(2) { top: 9px; }
.on-burger__line:nth-child(3) { top: 18px; }

.on-burger:hover .on-burger__line:nth-child(2) { width: 60%; }

/* Burger → X */
.on-burger.is-open .on-burger__line { background: #fff; width: 100%; }
.on-burger.is-open .on-burger__line:nth-child(1) {
  top: 9px; transform: rotate(45deg);
}
.on-burger.is-open .on-burger__line:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.on-burger.is-open .on-burger__line:nth-child(3) {
  top: 9px; transform: rotate(-45deg);
}

/* ── Mobile nav overlay ── */
@media (max-width: 767px) {
  .on-header-nav__links {
    position: fixed; inset: 0; z-index: 50;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 0;
    background: linear-gradient(160deg,
      rgba(10,76,124,0.97) 0%,
      rgba(12,94,152,0.96) 40%,
      rgba(9,128,183,0.95) 100%);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1),
                visibility 0.4s cubic-bezier(0.4,0,0.2,1);
  }
  .on-header-nav__links.is-open { opacity: 1; visibility: visible; }

  /* Decorative shard shapes */
  .on-header-nav__links::before,
  .on-header-nav__links::after {
    content: ''; position: absolute; pointer-events: none;
    border-radius: 4px; opacity: 0;
    transition: opacity 0.6s ease 0.25s;
  }
  .on-header-nav__links.is-open::before,
  .on-header-nav__links.is-open::after { opacity: 1; }
  .on-header-nav__links::before {
    right: -30px; bottom: 12%;
    width: 140px; height: 140px;
    background: rgba(138,225,229,0.07);
    transform: rotate(45deg);
  }
  .on-header-nav__links::after {
    left: -20px; top: 14%;
    width: 90px; height: 90px;
    background: rgba(105,191,252,0.05);
    transform: rotate(30deg);
  }

  /* Link items — staggered entrance */
  .on-header-nav__links li {
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1),
                opacity 0.4s cubic-bezier(0.4,0,0.2,1);
  }
  .on-header-nav__links.is-open li { transform: translateY(0); opacity: 1; }
  .on-header-nav__links.is-open li:nth-child(1) { transition-delay: 0.08s; }
  .on-header-nav__links.is-open li:nth-child(2) { transition-delay: 0.14s; }
  .on-header-nav__links.is-open li:nth-child(3) { transition-delay: 0.20s; }
  .on-header-nav__links.is-open li:nth-child(4) { transition-delay: 0.26s; }
  .on-header-nav__links.is-open li:nth-child(5) { transition-delay: 0.32s; }
  .on-header-nav__links.is-open li:nth-child(6) { transition-delay: 0.38s; }

  /* Link styling */
  .on-header-nav__links a {
    display: block; padding: 0.85rem 2rem;
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem; font-weight: 300;
    text-transform: uppercase; letter-spacing: 0.12em;
    text-decoration: none; position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  .on-header-nav__links a:hover,
  .on-header-nav__links a:focus {
    color: var(--shard-aqua);
    transform: translateX(6px);
  }
  /* Animated underline */
  .on-header-nav__links a::after {
    content: ''; display: block; margin-top: 4px;
    width: 0; height: 1px;
    background: linear-gradient(90deg, var(--shard-aqua), transparent);
    transition: width 0.35s cubic-bezier(0.4,0,0.2,1);
  }
  .on-header-nav__links a:hover::after,
  .on-header-nav__links a:focus::after { width: 100%; }
}

.on-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; background: var(--surface); color: var(--ink);
  font-family: var(--font-sans);
}
.on-hero__art { position: absolute; right: 0; bottom: 0; width: 64%; height: 100%; z-index: -1; }
.on-hero__nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1240px; margin: 0 auto; padding: var(--space-6) var(--space-8);
}
.on-hero__links { display: flex; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.on-hero__links a { color: var(--ink-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.on-hero__links a:hover, .on-hero__links a[aria-current] { color: var(--ink); }
.on-hero__body { max-width: 1240px; margin: 0 auto; padding: var(--space-20) var(--space-8) var(--space-20); }
.on-hero__copy { max-width: 560px; }
.on-hero__title { margin: 0 0 var(--space-6); }
.on-hero__lead { margin: 0 0 var(--space-8); color: var(--ink-muted); max-width: 440px; }
.on-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Second section: large interactive tooth beside copy */
.on-about { background: var(--surface); color: var(--ink); font-family: var(--font-sans); }
.on-about__inner {
  max-width: 1240px; margin: 0 auto; padding: var(--space-20) var(--space-8);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center;
}
.on-about__tooth { height: 480px; cursor: default; }
.on-about__title { margin: 0 0 var(--space-6); }
.on-story__text { margin: 0 0 var(--space-8); color: var(--ink-muted); max-width: 460px; }

@media (max-width: 860px) {
  .on-hero__links { display: none; }
  .on-hero__nav, .on-hero__body, .on-about__inner { padding-left: var(--space-4); padding-right: var(--space-4); }
  .on-hero__body { padding-top: var(--space-10); padding-bottom: 340px; }
  .on-hero__art { width: 100%; height: 360px; top: auto; }
  .on-hero__title.display-xl { font-size: 40px; line-height: 44px; }
  .on-about__inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .on-about__tooth { height: 320px; }
}

/* Team section: founder feature + team cards. Portraits are white-ground cut-outs multiplied over shards. */
.on-team { background: var(--surface); color: var(--ink); font-family: var(--font-sans); }
.on-team__inner { max-width: 1240px; margin: 0 auto; padding: var(--space-20) var(--space-8); }
.on-team__head { max-width: 560px; margin-bottom: var(--space-16); }
.on-team__title { margin: 0 0 var(--space-4); }
.on-team__lead { margin: 0; color: var(--ink-muted); }

.on-portrait { position: relative; isolation: isolate; }
.on-portrait__shards { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.on-portrait__img {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%;
  object-fit: contain; object-position: center bottom; mix-blend-mode: multiply;
  transition: transform 450ms cubic-bezier(.2, .7, .2, 1);
}

.on-team__founder { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-16); align-items: center; margin-bottom: var(--space-20); }
.on-team__founder .on-portrait { height: 600px; }
.on-team__founder:hover .on-portrait__img { transform: translateY(-8px); }
.on-team__name { margin: 0 0 var(--space-2); }
.on-team__prefix { font-size: 0.5em; font-weight: 600; color: var(--ink-muted); margin-right: 0.2em; letter-spacing: 0; }
.on-team__role { margin: 0 0 var(--space-6); color: var(--accent-ink); font-weight: 600; }
.on-team__bio { color: var(--ink-muted); max-width: 520px; }
.on-team__bio p { margin: 0 0 var(--space-3); }
.on-team__facts { display: flex; gap: var(--space-8); margin: var(--space-8) 0; padding: var(--space-6) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 520px; }
.on-team__fact strong { display: block; font-size: 28px; line-height: 32px; font-weight: 800; letter-spacing: -0.02em; color: var(--brand); }
.on-team__fact span { color: var(--ink-muted); }

.on-team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.on-member { display: block; color: inherit; text-decoration: none; border-radius: var(--radius-lg); }
.on-member:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }
.on-member .on-portrait { height: 420px; }
.on-member:hover .on-portrait__img, .on-member:focus-visible .on-portrait__img { transform: translateY(-8px); }
.on-member__name { margin: var(--space-4) 0 2px; display: flex; align-items: center; gap: var(--space-2); }
.on-member__name svg { width: 20px; height: 20px; color: var(--brand); opacity: 0; transform: translateX(-6px); transition: opacity 250ms ease, transform 250ms ease; }
.on-member:hover .on-member__name svg, .on-member:focus-visible .on-member__name svg { opacity: 1; transform: none; }
.on-member__role { margin: 0; color: var(--accent-ink); }
.on-member__name .on-team__prefix { font-size: 14px; }

@media (max-width: 860px) {
  .on-team__inner { padding-left: var(--space-4); padding-right: var(--space-4); }
  .on-team__head { margin-bottom: var(--space-10); }
  .on-team__founder { grid-template-columns: 1fr; gap: var(--space-6); margin-bottom: var(--space-16); }
  .on-team__founder .on-portrait { height: 440px; }
  .on-team__facts { gap: var(--space-4); }
  .on-team__fact strong { font-size: 22px; line-height: 28px; }
  .on-team__grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .on-member .on-portrait { height: 400px; }
}

/* Two-weight section title, from the original design: a soft first word over a bold second line */
.on-title2 { margin: 0; font-family: var(--font-sans); color: var(--ink); line-height: 0.98; letter-spacing: -0.02em; }
.on-title2__soft { display: block; font-weight: 400; color: var(--brand); padding-left: 0.08em; }
.on-title2__bold { display: block; font-weight: 800; }

/* Naša ordinacija: the shard photo collage with the title set in its white top-left */
.on-practice { background: var(--surface); color: var(--ink); font-family: var(--font-sans); }
.on-practice__figure { position: relative; max-width: 1240px; margin: 0 auto; container-type: inline-size; }
.on-practice__img { display: block; width: 100%; height: auto; }
.on-practice__title { position: absolute; left: 5%; top: 7%; font-size: 5cqw; }
.on-practice__body {
  max-width: 1240px; margin: 0 auto; padding: var(--space-10) var(--space-8) var(--space-20);
  display: grid; grid-template-columns: 7fr 5fr; gap: var(--space-16); align-items: start;
}
.on-practice__text { color: var(--ink-muted); max-width: 560px; }
.on-practice__text p { margin: 0 0 var(--space-4); }
.on-practice__text p:first-child { color: var(--ink); }
.on-practice__facts { list-style: none; margin: 0; padding: 0; }
.on-practice__facts li { padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.on-practice__facts li:last-child { border-bottom: 1px solid var(--line); }
.on-practice__facts strong { display: block; font-size: 20px; line-height: 28px; font-weight: 800; color: var(--brand); letter-spacing: -0.01em; }
.on-practice__facts span { color: var(--ink-muted); }

/* Naše usluge: two service cards with the 3D renders over portrait-style shards */
.on-services { background: var(--surface); color: var(--ink); font-family: var(--font-sans); }
.on-services__inner { max-width: 1240px; margin: 0 auto; padding: var(--space-10) var(--space-8) var(--space-20); }
.on-services__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-8); margin-bottom: var(--space-10); }
.on-services__head .on-title2 { font-size: 44px; }
.on-services__head p { margin: 0; color: var(--ink-muted); max-width: 400px; }
.on-services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.on-service { display: flex; flex-direction: column; color: inherit; text-decoration: none; border-radius: var(--radius-lg); }
.on-service:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }
.on-service .on-portrait { height: 380px; }
.on-service .on-portrait__img { object-position: center; }
.on-service:hover .on-portrait__img, .on-service:focus-visible .on-portrait__img { transform: translateY(-10px) scale(1.02); }
.on-service__title { margin: var(--space-6) 0 var(--space-2); font-size: 28px; line-height: 34px; font-weight: 800; letter-spacing: -0.01em; }
.on-service__text { margin: 0 0 var(--space-4); color: var(--ink-muted); max-width: 440px; }
.on-service__more { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--brand); font-weight: 600; font-size: 15px; }
.on-service__more svg { width: 18px; height: 18px; transition: transform 250ms ease; }
.on-service:hover .on-service__more svg, .on-service:focus-visible .on-service__more svg { transform: translateX(4px); }

/* Naši rezultati: before/after collage with labels, case note beneath */
.on-results { background: var(--surface); color: var(--ink); font-family: var(--font-sans); }
.on-results__inner { max-width: 1240px; margin: 0 auto; padding: var(--space-10) 0 var(--space-20); }
.on-results .on-title2 { font-size: 44px; padding: 0 var(--space-8); margin-left: 20%; }
.on-results__case { margin: var(--space-6) 0 0 37%; max-width: 520px; padding-right: var(--space-8); display: grid; grid-template-columns: auto 1fr; gap: var(--space-6); align-items: start; }
.on-results__stat strong { display: block; font-size: 44px; line-height: 44px; font-weight: 800; letter-spacing: -0.03em; color: var(--brand); }
.on-results__stat span { color: var(--ink-muted); }
.on-results__case p { margin: 0 0 var(--space-4); color: var(--ink-muted); }

/* Footer: brand CTA block with the hero cluster in miniature, then contact columns on white */
.on-btn--light { background: var(--on-brand); color: var(--brand); }
.on-btn--light:hover { background: var(--brand-tint); }
.on-btn--ghost-light { background: transparent; color: var(--on-brand); border-color: rgba(255, 255, 255, 0.6); }
.on-btn--ghost-light:hover { border-color: var(--on-brand); }
.on-cta .on-btn:focus-visible { outline-color: var(--on-brand); }

.on-footer { background: var(--surface); color: var(--ink); font-family: var(--font-sans); }
.on-footer__inner { max-width: 1240px; margin: 0 auto; padding: var(--space-10) var(--space-8) var(--space-6); }
.on-cta { position: relative; overflow: hidden; isolation: isolate; background: var(--brand); color: var(--on-brand); border-radius: var(--radius-lg); padding: var(--space-16) var(--space-16); min-height: 340px; }
.on-cta__art { position: absolute; right: 0; bottom: 0; width: 46%; height: 100%; z-index: -1; }
.on-cta__copy { max-width: 520px; }
.on-cta__title { margin: 0 0 var(--space-4); color: var(--on-brand); }
.on-cta__text { margin: 0 0 var(--space-8); color: rgba(255, 255, 255, 0.86); }
.on-cta__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.on-footer__map { margin-top: var(--space-8); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); height: 360px; }
.on-footer__map iframe { display: block; width: 100%; height: 100%; }

.on-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); padding: var(--space-16) 0 var(--space-10); }
.on-footer__about { margin: var(--space-4) 0 0; color: var(--ink-muted); max-width: 300px; }
.on-footer__h { margin: 0 0 var(--space-4); font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.on-footer__list { list-style: none; margin: 0; padding: 0; color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.on-footer__list li + li { margin-top: var(--space-2); }
.on-footer__list a { color: var(--ink-muted); text-decoration: none; }
.on-footer__list a:hover { color: var(--brand); }
.on-footer__list a:focus-visible, .on-footer__bar a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.on-footer__bar { display: flex; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-6); border-top: 1px solid var(--line); color: var(--ink-muted); }
.on-footer__bar a { color: var(--ink-muted); text-decoration: none; }
.on-footer__bar a:hover { color: var(--brand); }

@media (max-width: 860px) {
  .on-practice__title { position: static; font-size: 40px; padding: 0 var(--space-4) var(--space-4); }
  .on-practice__body { grid-template-columns: 1fr; gap: var(--space-8); padding: var(--space-8) var(--space-4) var(--space-16); }
  .on-services__inner { padding: var(--space-8) var(--space-4) var(--space-16); }
  .on-services__head { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .on-services__head .on-title2, .on-results .on-title2 { font-size: 36px; }
  .on-services__grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .on-service .on-portrait { height: 300px; }
  .on-results .on-title2 { margin-left: 0; padding: 0 var(--space-4); }
  .on-results__case { margin: var(--space-6) var(--space-4) 0; padding: 0; grid-template-columns: 1fr; gap: var(--space-4); }
  .on-footer__inner { padding: var(--space-8) var(--space-4) var(--space-6); }
  .on-footer__map { height: 240px; margin-top: var(--space-6); }
  .on-cta { padding: var(--space-10) var(--space-6) 220px; }
  .on-cta__art { width: 100%; height: 240px; top: auto; }
  .on-footer__cols { grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-6); padding: var(--space-10) 0 var(--space-8); }
  .on-footer__brand { grid-column: 1 / -1; }
  .on-footer__bar { flex-direction: column; }
}

/* FAQ: two-weight title + contact nudge on the left, single-open accordion on the right */
.on-faq { background: var(--surface); color: var(--ink); font-family: var(--font-sans); }
.on-faq__inner { max-width: 1240px; margin: 0 auto; padding: var(--space-10) var(--space-8) var(--space-20); display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-16); align-items: start; }
.on-faq__aside { position: sticky; top: var(--space-8); }
.on-faq .on-title2 { font-size: 44px; margin-bottom: var(--space-4); }
.on-faq__lead { margin: 0 0 var(--space-8); color: var(--ink-muted); max-width: 380px; }
.on-faq__ask { margin: 0 0 var(--space-3); color: var(--ink); font-weight: 600; }

.on-acc { border-top: 1px solid var(--line); }
.on-acc__item { border-bottom: 1px solid var(--line); }
.on-acc__h { margin: 0; }
.on-acc__btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  width: 100%; padding: var(--space-6) 0; margin: 0; border: 0; background: none; cursor: pointer;
  font: 600 18px/26px var(--font-sans); color: var(--ink); text-align: left;
  transition: color 200ms ease;
}
.on-acc__btn:hover, .on-acc__item.is-open .on-acc__btn { color: var(--brand); }
.on-acc__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: var(--radius-sm); }
.on-acc__icon {
  position: relative; flex: none; width: 36px; height: 36px; border-radius: var(--radius-pill);
  background: var(--brand-tint); color: var(--brand);
  transition: background-color 300ms ease, color 300ms ease, transform 450ms cubic-bezier(.2, .7, .2, 1);
}
.on-acc__icon::before, .on-acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: currentColor; transition: transform 450ms cubic-bezier(.2, .7, .2, 1); }
.on-acc__icon::after { transform: rotate(90deg); }
.on-acc__item.is-open .on-acc__icon { background: var(--brand); color: var(--on-brand); transform: rotate(180deg); }
.on-acc__item.is-open .on-acc__icon::after { transform: rotate(90deg) scaleX(0); }
.on-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 450ms cubic-bezier(.2, .7, .2, 1); }
.on-acc__item.is-open .on-acc__panel { grid-template-rows: 1fr; }
.on-acc__panel > div { overflow: hidden; min-height: 0; }
.on-acc__content { padding: 0 60px var(--space-6) 0; color: var(--ink-muted); opacity: 0; transform: translateY(-8px); transition: opacity 250ms ease, transform 450ms cubic-bezier(.2, .7, .2, 1); }
.on-acc__item.is-open .on-acc__content { opacity: 1; transform: none; transition-delay: 100ms, 0ms; }
.on-acc__content p { margin: 0; }
.on-acc__content p + p { margin-top: var(--space-3); }
.on-acc__content a { color: var(--brand); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .on-acc__panel, .on-acc__content, .on-acc__icon, .on-acc__icon::before, .on-acc__icon::after { transition: none; }
}
@media (max-width: 860px) {
  .on-faq__inner { grid-template-columns: 1fr; gap: var(--space-8); padding: var(--space-8) var(--space-4) var(--space-16); }
  .on-faq__aside { position: static; }
  .on-faq .on-title2 { font-size: 36px; }
  .on-acc__btn { font-size: 16px; line-height: 24px; padding: var(--space-4) 0; }
  .on-acc__content { padding-right: 0; }
}

/* Team cards open a bio dialog: the name is the button, stretched over the whole card */
.on-member { position: relative; }
.on-member__btn { display: inline-flex; align-items: center; gap: var(--space-2); padding: 0; margin: 0; border: 0; background: none; font: inherit; color: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.on-member__btn::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.on-member__btn:focus-visible { outline: none; }
.on-member__btn:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 6px; }
.on-member:focus-within .on-portrait__img { transform: translateY(-8px); }
.on-member__more { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); color: var(--brand); font-weight: 600; font-size: 14px; }
.on-member__more svg { width: 16px; height: 16px; transition: transform 250ms ease; }
.on-member:hover .on-member__more svg, .on-member:focus-within .on-member__more svg { transform: translateX(4px); }

/* Dialog shell (native <dialog>, animated by OrthoNova.Dialog) */
html.on-lock { overflow: hidden; }
.on-dialog {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0;
  padding: var(--space-8); border: 0; color: var(--ink); overflow-y: auto; overscroll-behavior: contain;
  background-color: rgba(15, 42, 61, 0); transition: background-color 320ms ease;
}
.on-dialog[open] { display: grid; place-items: center; }
.on-dialog.is-open { background-color: rgba(15, 42, 61, 0.55); }
.on-dialog::backdrop { background: transparent; }

/* Bio panel */
.on-bio {
  position: relative; display: grid; grid-template-columns: 5fr 7fr; width: min(980px, 100%);
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; font-family: var(--font-sans);
  box-shadow: 0 30px 80px -20px rgba(15, 42, 61, 0.45);
  opacity: 0; transform: translateY(28px) scale(0.98);
  transition: opacity 320ms ease, transform 420ms cubic-bezier(.2, .7, .2, 1);
}
.on-dialog.is-open .on-bio { opacity: 1; transform: none; }
.on-bio__media { padding: var(--space-8) 0 0 var(--space-6); background: var(--surface); }
.on-bio__media .on-portrait { height: 100%; min-height: 520px; }
.on-bio__body { display: flex; flex-direction: column; padding: var(--space-16) var(--space-10) var(--space-10) var(--space-8); }
.on-bio__role { margin: 0 0 var(--space-2); color: var(--accent-ink); font-weight: 600; }
.on-bio__name { margin: 0 0 var(--space-6); }
.on-bio__text { color: var(--ink-muted); }
.on-bio__text p { margin: 0 0 var(--space-4); }
.on-bio__text p:first-child { color: var(--ink); }
.on-bio__actions { margin-top: auto; padding-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.on-bio__close {
  position: absolute; top: var(--space-4); right: var(--space-4); z-index: 2;
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, transform 300ms cubic-bezier(.2, .7, .2, 1);
}
.on-bio__close:hover { border-color: var(--brand); color: var(--brand); transform: rotate(90deg); }
.on-bio__close:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-bio__close svg { width: 20px; height: 20px; }

/* Testimonials ("Iskustva pacijenata") */
.on-quotes { background: var(--surface); color: var(--ink); font-family: var(--font-sans); }
.on-quotes__inner { max-width: 1240px; margin: 0 auto; padding: var(--space-10) var(--space-8) var(--space-20); }
.on-quotes__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-8); margin-bottom: var(--space-10); }
.on-quotes .on-title2 { font-size: 44px; }
.on-quotes__head p { margin: 0; color: var(--ink-muted); max-width: 400px; }
.on-quotes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); align-items: stretch; }
.on-quote {
  display: flex; flex-direction: column; margin: 0; padding: var(--space-8);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform 350ms cubic-bezier(.2, .7, .2, 1), box-shadow 350ms ease, border-color 350ms ease;
}
.on-quote:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }
.on-quote__mark { display: block; width: 56px; height: 44px; margin-bottom: var(--space-6); overflow: visible; }
.on-quote__mark polygon { transform-box: fill-box; transform-origin: center; transition: transform 450ms cubic-bezier(.2, .7, .2, 1); }
.on-quote__mark .q1 { fill: var(--shard-navy); } .on-quote__mark .q2 { fill: var(--shard-sky); }
.on-quote__mark .q3 { fill: var(--shard-teal); } .on-quote__mark .q4 { fill: var(--shard-aqua); }
.on-quote:hover .on-quote__mark .q1 { transform: translate(-3px, -2px) rotate(-8deg); }
.on-quote:hover .on-quote__mark .q2 { transform: translate(-2px, 3px) rotate(6deg); }
.on-quote:hover .on-quote__mark .q3 { transform: translate(3px, -3px) rotate(7deg); }
.on-quote:hover .on-quote__mark .q4 { transform: translate(2px, 3px) rotate(-6deg); }
.on-quote__text { flex: 1; margin: 0 0 var(--space-8); font-size: 17px; line-height: 28px; color: var(--ink); }
.on-quote__who { display: flex; align-items: center; gap: var(--space-3); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.on-quote__avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--brand-tint); color: var(--brand); font-weight: 800; font-size: 15px; }
.on-quote__name { display: block; font-style: normal; font-weight: 700; font-size: 15px; line-height: 20px; color: var(--ink); }
.on-quote__meta { color: var(--accent-ink); }
/* the middle card carries the brand color */
.on-quote--brand { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.on-quote--brand:hover { border-color: var(--brand); }
.on-quote--brand .on-quote__text, .on-quote--brand .on-quote__name { color: var(--on-brand); }
.on-quote--brand .on-quote__meta { color: rgba(255, 255, 255, 0.82); }
.on-quote--brand .on-quote__who { border-top-color: rgba(255, 255, 255, 0.22); }
.on-quote--brand .on-quote__avatar { background: var(--on-brand); color: var(--brand); }
.on-quote--brand .on-quote__mark .q1 { fill: var(--shard-aqua); } .on-quote--brand .on-quote__mark .q2 { fill: var(--shard-sky); }
.on-quote--brand .on-quote__mark .q3 { fill: var(--brand-tint); } .on-quote--brand .on-quote__mark .q4 { fill: var(--shard-aqua); }

@media (prefers-reduced-motion: reduce) {
  .on-dialog, .on-bio, .on-bio__close, .on-quote, .on-quote__mark polygon { transition: none; }
}
@media (max-width: 860px) {
  .on-dialog { padding: 0; }
  .on-dialog[open] { place-items: end center; }
  .on-bio { grid-template-columns: 1fr; max-height: 92dvh; overflow-y: auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0; transform: translateY(48px); }
  .on-bio__media { padding: var(--space-6) var(--space-4) 0; }
  .on-bio__media .on-portrait { min-height: 0; height: 300px; }
  .on-bio__body { padding: var(--space-6) var(--space-4) var(--space-8); }
  .on-quotes__inner { padding: var(--space-8) var(--space-4) var(--space-16); }
  .on-quotes__head { flex-direction: column; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-8); }
  .on-quotes .on-title2 { font-size: 36px; }
  .on-quotes__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .on-quote { padding: var(--space-6); }
}
.on-quote__text p { margin: 0; }
.on-quote__meta { display: block; }


/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
[id] { scroll-margin-top: 16px; }
.on-skip { position: absolute; left: 16px; top: -64px; z-index: 50; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--brand); color: var(--on-brand); font-weight: 600; text-decoration: none; transition: top 150ms ease; }
.on-skip:focus { top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Header actions + mobile menu */
.on-hero__actions { display: flex; align-items: center; gap: var(--space-2); }
.on-menu-btn { display: none; width: 48px; height: 48px; padding: 0; align-items: center; justify-content: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); cursor: pointer; }
.on-menu-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-menu-btn svg { width: 22px; height: 22px; }
.on-menu-btn .i-close { display: none; }
.on-menu-btn[aria-expanded="true"] .i-open { display: none; }
.on-menu-btn[aria-expanded="true"] .i-close { display: block; }
@media (max-width: 860px) {
  .on-hero__nav { position: relative; z-index: 5; }
  .on-menu-btn { display: inline-flex; }
  .on-hero__links.is-open {
    display: flex; flex-direction: column; gap: 2px; position: absolute; top: calc(100% - 8px); left: var(--space-4); right: var(--space-4);
    padding: var(--space-3); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); border: 1px solid var(--line);
  }
  .on-hero__links.is-open a { display: block; padding: 12px var(--space-3); font-size: 16px; border-radius: var(--radius-sm); }
  .on-hero__links.is-open a:hover { background: var(--brand-tint); }
}
@media (max-width: 520px) { .on-hero__phone { display: none; } }

/* Hero 3D model */
.on-hero-3d {
  position: relative; overflow: hidden; background: #fff;
  height: 100vh;
}
.on-hero-3d__canvas {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important;
  display: block;
}
/* Loading progress bar */
.on-hero-3d__loader {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  transition: opacity 0.8s ease;
}
.on-hero-3d.is-loaded .on-hero-3d__loader {
  opacity: 0; pointer-events: none;
}
.on-hero-3d__progress {
  width: 120px; height: 3px; border-radius: 2px;
  background: rgba(0,170,180,0.15);
  overflow: hidden;
}
.on-hero-3d__progress-fill {
  height: 100%; width: 0; border-radius: 2px;
  background: #3CC5E2;
  transition: width 0.2s ease;
}
@media (max-width: 860px) {
  .on-hero-3d { height: 80vh; }
}
@media (max-width: 480px) {
  .on-hero-3d { height: 70vh; }
}

/* Team showcase: animated member switching */
[data-showcase-feature] {
  transition: opacity 280ms ease, transform 280ms ease;
}
[data-showcase-feature].is-leaving {
  opacity: 0;
  transform: translateY(20px);
}
[data-showcase-feature].is-entering {
  animation: showcase-enter 380ms ease-out;
}
[data-showcase-grid] {
  transition: opacity 200ms ease;
}
[data-showcase-grid].is-leaving {
  opacity: 0;
}
[data-showcase-grid].is-entering {
  animation: showcase-fade 300ms ease-out;
}
@keyframes showcase-enter {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes showcase-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.on-showcase__card {
  cursor: pointer;
  transition: transform 300ms cubic-bezier(.2, .7, .2, 1);
}
@media (hover: hover) {
  .on-showcase__card:hover { transform: translateY(-6px); }
  .on-showcase__card:hover .on-showcase__card-photo img { transform: scale(1.04); }
}
.on-showcase__card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 6px;
  border-radius: var(--radius-sm);
}
.on-showcase__card-photo {
  width: 100%; max-width: 200px; aspect-ratio: 5/9;
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
}
.on-showcase__card-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform 300ms ease;
}
@media (prefers-reduced-motion: reduce) {
  [data-showcase-feature], [data-showcase-grid], .on-showcase__card, .on-showcase__card-photo img {
    transition: none;
    animation: none;
  }
}

/* Ordinacija animated composition */
.on-ordinacija__scene {
  position: relative; width: 100%; aspect-ratio: 1600 / 672; overflow: hidden; /* ends just below the two photos */
}
.on-ordinacija__img {
  position: absolute; display: block; height: auto;
  transition: transform 600ms cubic-bezier(.2, .7, .2, 1), opacity 600ms ease;
}
.on-ordinacija__img--left {
  width: 62%; left: 0; top: 2%; z-index: 1;
}
.on-ordinacija__img--right {
  width: 60%; right: -2%; top: 0; z-index: 2;
}
/* Before entrance */
[data-ordinacija-anim]:not(.is-visible) .on-ordinacija__img--left {
  opacity: 0; transform: translateX(-60px);
}
[data-ordinacija-anim]:not(.is-visible) .on-ordinacija__img--right {
  opacity: 0; transform: translateX(60px);
}
[data-ordinacija-anim]:not(.is-visible) /* Stagger */
.on-ordinacija__img--right { transition-delay: 150ms; }
@media (max-width: 640px) {
  .on-ordinacija__scene { aspect-ratio: 100 / 49; }
  .on-ordinacija__img--left { width: 70%; top: 5%; }
  .on-ordinacija__img--right { width: 68%; right: -4%; top: 2%; }
}

/* Ordinacija gallery trigger overlay */
.on-gallery-trigger {
  position: relative; cursor: pointer;
}
.on-gallery-trigger::after {
  content: none;
}
.on-gallery-trigger__hint {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  transform: translate(-50%, -50%) scale(0.9);
  display: flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius-pill);
  background: var(--on-brand); color: var(--brand);
  font: 600 15px/1 var(--font-sans); letter-spacing: 0.01em;
  box-shadow: 0 8px 28px -8px rgba(15, 42, 61, 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 350ms ease, transform 350ms ease;
}
.on-gallery-trigger:hover .on-gallery-trigger__hint {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
}
.on-gallery-trigger__hint svg { width: 20px; height: 20px; flex: none; }
/* Pulse animation on the hint icon to draw attention */
.on-gallery-trigger__pulse {
  position: absolute; right: 16px; bottom: 16px; z-index: 1;
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  background: var(--on-brand); color: var(--brand);
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(15, 42, 61, 0.3);
  animation: gallery-pulse 2.5s ease-in-out infinite;
  pointer-events: none;
}
.on-gallery-trigger:hover .on-gallery-trigger__pulse { opacity: 0; }
.on-gallery-trigger__pulse svg { width: 22px; height: 22px; }
@keyframes gallery-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(15, 42, 61, 0.3); }
  50% { transform: scale(1.12); box-shadow: 0 6px 24px rgba(15, 42, 61, 0.45); }
}

/* Gallery lightbox */
.on-gallery {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 42, 61, 0);
  opacity: 0; pointer-events: none;
  transition: background 320ms ease, opacity 320ms ease;
}
.on-gallery.is-open {
  background: rgba(15, 42, 61, 0.95);
  opacity: 1; pointer-events: auto;
}
.on-gallery__close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.15); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background 200ms ease, transform 300ms ease;
}
.on-gallery__close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }
.on-gallery__close:focus-visible { outline: 3px solid var(--on-brand); outline-offset: 3px; }
.on-gallery__close svg { width: 24px; height: 24px; }
.on-gallery__stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  min-width: 0; height: 100%; padding: 60px 16px;
  touch-action: pan-y;
}
.on-gallery__img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: var(--radius-sm);
  transition: opacity 150ms ease, transform 150ms ease;
  user-select: none; -webkit-user-drag: none;
}
.on-gallery__img.is-switching { opacity: 0; transform: scale(0.97); }
.on-gallery__nav {
  position: absolute; top: 50%; z-index: 2;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.15); color: #fff; cursor: pointer;
  display: grid; place-items: center; transform: translateY(-50%);
  transition: background 200ms ease;
}
.on-gallery__nav:hover { background: rgba(255,255,255,0.3); }
.on-gallery__nav:focus-visible { outline: 3px solid var(--on-brand); outline-offset: 3px; }
.on-gallery__nav svg { width: 24px; height: 24px; }
.on-gallery__nav--prev { left: 12px; }
.on-gallery__nav--next { right: 12px; }
.on-gallery__counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font: 500 14px/1 var(--font-sans); color: rgba(255,255,255,0.7); letter-spacing: 0.06em;
}
@media (max-width: 767px) {
  .on-gallery__nav { width: 40px; height: 40px; }
  .on-gallery__nav--prev { left: 6px; }
  .on-gallery__nav--next { right: 6px; }
  .on-gallery__stage { padding: 56px 8px; }
  .on-gallery-trigger__hint { font-size: 13px; padding: 10px 20px; }
  .on-gallery-trigger__pulse { right: 10px; bottom: 10px; width: 36px; height: 36px; }
  .on-gallery-trigger__pulse svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .on-gallery, .on-gallery__img, .on-gallery__close, .on-gallery-trigger::after,
  .on-gallery-trigger__hint, .on-gallery-trigger__pulse { transition: none; animation: none; }
}

/* Cenovnik: orthodontics on the brand ground (sticky beside the long list on desktop), general dentistry on white */
.on-prices { background: var(--surface); color: var(--ink); font-family: var(--font-sans); }
.on-prices__inner { max-width: 1240px; margin: 0 auto; padding: var(--space-10) var(--space-8) var(--space-20); }
.on-prices__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-8); margin-bottom: var(--space-10); }
.on-prices .on-title2 { font-size: 44px; }
.on-prices__head p { margin: 0; color: var(--ink-muted); max-width: 400px; }
.on-prices__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6); align-items: start; }

.on-price { position: relative; isolation: isolate; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.on-price__head { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-8) var(--space-8) var(--space-6); }
.on-price__mark { flex: none; display: block; width: 40px; height: 44px; overflow: visible; }
.on-price__mark polygon { transform-box: fill-box; transform-origin: center; transition: transform 450ms cubic-bezier(.2, .7, .2, 1); }
.on-price__mark .p1 { fill: var(--shard-navy); } .on-price__mark .p2 { fill: var(--shard-sky); }
.on-price__mark .p3 { fill: var(--shard-teal); } .on-price__mark .p4 { fill: var(--shard-aqua); }
.on-price__title { margin: 0; font-size: 24px; line-height: 30px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.on-price__sub { margin: 2px 0 0; color: var(--accent-ink); }

.on-price__list { margin: 0; }
.on-price__row {
  display: grid; grid-template-columns: minmax(0, 1fr) fit-content(45%); column-gap: var(--space-4); align-items: baseline;
  padding: 14px var(--space-8); border-top: 1px solid var(--line); transition: background-color 200ms ease;
}
.on-price__name { margin: 0; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink); text-wrap: balance; }
.on-price__per { white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.on-price__val { margin: 0; text-align: right; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.on-price__cur { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-muted); }

/* the orthodontics card carries the brand color, with a corner of the hero shard cluster */
.on-price--brand { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.on-price--brand .on-price__title, .on-price--brand .on-price__name { color: var(--on-brand); }
.on-price--brand .on-price__sub { color: rgba(255, 255, 255, 0.82); }
.on-price--brand .on-price__per, .on-price--brand .on-price__cur { color: rgba(255, 255, 255, 0.7); }
.on-price--brand .on-price__val { color: var(--shard-aqua); }
.on-price--brand .on-price__row { border-top-color: rgba(255, 255, 255, 0.18); }
.on-price--brand .on-price__mark .p1 { fill: var(--shard-aqua); } .on-price--brand .on-price__mark .p2 { fill: var(--shard-sky); }
.on-price--brand .on-price__mark .p3 { fill: var(--brand-tint); } .on-price--brand .on-price__mark .p4 { fill: var(--shard-aqua); }
.on-price__foot { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-6) var(--space-8) var(--space-8); border-top: 1px solid rgba(255, 255, 255, 0.18); }
/* shards fill the footer's height from the bottom-right corner and fade out toward the copy */
.on-price__art {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: -1; width: auto; height: 100%; aspect-ratio: 470 / 500; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 40%, transparent 78%);
  mask-image: radial-gradient(circle at 100% 100%, #000 40%, transparent 78%);
  transform-origin: 100% 100%; transition: transform 600ms cubic-bezier(.2, .7, .2, 1);
}
.on-price__ask { margin: 0; max-width: 240px; font-size: 15px; line-height: 22px; color: rgba(255, 255, 255, 0.86); }
.on-price__ask strong { display: block; font-weight: 700; color: var(--on-brand); }
.on-price--brand .on-btn:focus-visible { outline-color: var(--on-brand); }

.on-prices__note { display: flex; align-items: flex-start; gap: var(--space-2); max-width: 640px; margin: var(--space-6) 0 0; color: var(--ink-muted); }
.on-prices__note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--brand); }

/* hover only where a pointer can hover, so a tapped row doesn't stay tinted on touch screens */
@media (hover: hover) {
  .on-price__row:hover { background: var(--surface-alt); }
  .on-price--brand .on-price__row:hover { background: rgba(255, 255, 255, 0.07); }
  .on-price:hover .on-price__mark .p1 { transform: translate(-2px, -2px) rotate(-8deg); }
  .on-price:hover .on-price__mark .p2 { transform: translate(2px, -2px) rotate(8deg); }
  .on-price:hover .on-price__mark .p3 { transform: translate(-2px, 2px) rotate(6deg); }
  .on-price:hover .on-price__mark .p4 { transform: translate(2px, 2px) rotate(-6deg); }
  .on-price--brand:hover .on-price__art { transform: scale(1.05); }
}
/* the short orthodontics card follows the long list while it scrolls */
@media (min-width: 961px) and (min-height: 760px) {
  .on-price--brand { position: sticky; top: var(--space-8); }
}
@media (prefers-reduced-motion: reduce) {
  .on-price__row, .on-price__mark polygon, .on-price__art { transition: none; }
}
@media (max-width: 960px) {
  .on-prices__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
}
@media (max-width: 860px) {
  .on-prices__inner { padding: var(--space-8) var(--space-4) var(--space-16); }
  .on-prices__head { flex-direction: column; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-8); }
  .on-prices .on-title2 { font-size: 36px; }
  .on-price__head { padding: var(--space-6) var(--space-6) var(--space-4); }
  .on-price__row { padding: 12px var(--space-6); }
  .on-price__name, .on-price__val { font-size: 15px; line-height: 22px; }
  .on-price__foot { padding: var(--space-6); }
  .on-price__art { top: auto; height: 80%; }
}
@media (max-width: 400px) {
  .on-price__head, .on-price__row, .on-price__foot { padding-left: 20px; padding-right: 20px; }
  .on-price__title { font-size: 22px; line-height: 28px; }
}

/* O nama + the two service write-ups (Ortopedija vilica, Opšta stomatologija).
   Same Montserrat / cyan voice as the neighbouring PSD sections: one body style for every paragraph,
   and a short summary column that follows the long text on desktop. */
.on-story {
  max-width: 64rem; margin: 0 auto; padding: 80px 16px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center;
}
.on-story__img { display: block; width: 100%; max-width: 380px; margin: 0 auto; }
.on-story__text p, .on-svc__body p { margin: 0 0 16px; font-size: 15px; line-height: 1.75; letter-spacing: 0.01em; color: #576471; }
.on-story__facts {
  list-style: none; margin: 30px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.on-story__facts li { display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.45; color: #576471; }
.on-story__facts svg { width: 28px; height: 28px; color: #3CC5E2; }
.on-story__facts strong { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 700; color: #0D4378; }

.on-svc {
  max-width: 72rem; margin: 0 auto; padding: 16px 16px 112px;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start;
}
.on-svc--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.on-svc--flip .on-svc__aside { order: 2; }
.on-svc__aside { position: sticky; top: 32px; }
.on-svc__title { margin: 0; text-transform: uppercase; line-height: 1; letter-spacing: 0.06em; color: #3CC5E2; }
.on-svc__title-soft { display: block; font-size: 24px; font-weight: 400; }
.on-svc__title-bold { display: block; margin-top: 4px; font-size: 34px; font-weight: 700; }
.on-svc__topics { list-style: none; margin: 28px 0 0; padding: 0; }
.on-svc__topics li { position: relative; padding: 11px 0 11px 24px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: #0D4378; }
.on-svc__topics li:last-child { border-bottom: 1px solid var(--line); }
/* shard bullets in the brand palette */
.on-svc__topics li::before {
  content: ""; position: absolute; left: 2px; top: 16px; width: 10px; height: 10px;
  background: var(--shard-sky); clip-path: polygon(0 0, 100% 45%, 15% 100%);
}
.on-svc__topics li:nth-child(4n+2)::before { background: var(--shard-teal); }
.on-svc__topics li:nth-child(4n+3)::before { background: var(--shard-navy); }
.on-svc__topics li:nth-child(4n+4)::before { background: var(--shard-aqua); }
.on-svc__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #0A64C4; text-decoration: none;
  transition: color 200ms ease;
}
.on-svc__more svg { width: 16px; height: 16px; transition: transform 250ms ease; }
.on-svc__more:hover { color: #3CC5E2; }
.on-svc__more:hover svg { transform: translateX(4px); }
.on-svc__more:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
.on-svc__body p:last-child, .on-svc__body > p:last-of-type, .on-story__text p:last-of-type { margin-bottom: 0; }
/* "Read more" (O nama, Ortopedija vilica, Opšta stomatologija): the hidden paragraphs fold open (grid rows 0fr → 1fr), the "…" pill opens them */
.on-story__more { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 550ms cubic-bezier(.2, .7, .2, 1); }
.on-story__more > div { min-height: 0; overflow: hidden; transition: opacity 400ms ease 120ms; }
.on-story__more p:first-child { margin-top: 16px; }
.on-story__more.is-collapsed { grid-template-rows: 0fr; }
.on-story__more.is-collapsed > div { opacity: 0; transition-delay: 0s; }
.on-story__more:focus { outline: none; }
.on-readmore {
  display: inline-flex; align-items: center; justify-content: center; height: 34px; min-width: 64px; margin-top: 14px; padding: 0 18px 6px;
  border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: var(--surface);
  font: 700 24px/1 "Montserrat", sans-serif; letter-spacing: 0.08em; color: #3CC5E2; cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms ease;
}
.on-readmore[hidden] { display: none; }
.on-readmore:hover { border-color: #3CC5E2; background: #f0fbfd; }
.on-readmore:active { transform: translateY(1px); }
.on-readmore:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .on-story__more, .on-story__more > div, .on-readmore { transition: none; } }

@media (prefers-reduced-motion: reduce) { .on-svc__more svg { transition: none; } }
@media (max-width: 899px) {
  .on-story { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 64px 16px; }
  .on-story__img { max-width: 300px; }
  .on-svc, .on-svc--flip { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 72px; }
  .on-svc--flip .on-svc__aside { order: 0; }
  .on-svc__aside { position: static; }
}
@media (max-width: 560px) {
  .on-story__facts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .on-story__facts li { flex-direction: row; align-items: center; gap: 14px; }
  .on-svc__title-bold { font-size: 30px; }
}

/* Footer social links (Instagram, TikTok) */
.on-social { display: flex; gap: var(--space-2); list-style: none; margin: var(--space-4) 0 0; padding: 0; }
.on-social__link {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong); color: var(--ink); background: var(--surface);
  transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease, transform 200ms ease;
}
.on-social__link svg { width: 20px; height: 20px; }
.on-social__link:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); transform: translateY(-2px); }
.on-social__link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .on-social__link { transition: none; } .on-social__link:hover { transform: none; } }

/* Iskustva: two real testimonials (photo avatars) */
.on-quotes__grid--2 { grid-template-columns: repeat(2, 1fr); }
img.on-quote__avatar { width: 52px; height: 52px; object-fit: cover; background: var(--brand-tint); }
.on-quote--brand img.on-quote__avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55); }
@media (max-width: 860px) { .on-quotes__grid--2 { grid-template-columns: 1fr; } }

/* Logo (img/logo.svg): centered under the header nav, and in the footer brand column */
.on-header-logo { display: block; width: 168px; margin: -0.25rem auto 0; }
.on-header-logo img, .on-footer__logo img { display: block; width: 100%; height: auto; }
.on-header-logo:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; border-radius: var(--radius-sm); }
@media (min-width: 768px) {
  .on-header-logo { width: 220px; margin-top: -0.5rem; }
}
@media (min-width: 861px) { .on-hero-3d { height: calc(100vh - 6.5rem); } }
.on-footer__logo { width: 200px; }

/* Cookie consent banner (#kolacici): floating card at the bottom; above page content (z 15),
   below the header's mobile menu (z 20), the gallery (100) and the loading screen */
.on-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 15;
  display: flex; justify-content: center; pointer-events: none; font-family: var(--font-sans);
}
.on-consent[hidden] { display: none; }
.on-consent__card {
  pointer-events: auto; display: flex; align-items: center; gap: 24px; width: min(980px, 100%);
  padding: 20px 22px 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 18px 50px rgba(13, 67, 120, 0.16), 0 2px 8px rgba(13, 67, 120, 0.06);
  opacity: 0; transform: translateY(calc(100% + 24px));
  transition: transform 520ms cubic-bezier(.2, .7, .2, 1), opacity 320ms ease;
}
.on-consent.is-visible .on-consent__card { opacity: 1; transform: none; }
.on-consent__mark { flex: none; width: 34px; height: 27px; overflow: visible; }
.on-consent__mark .q1 { fill: var(--shard-navy); } .on-consent__mark .q2 { fill: var(--shard-sky); }
.on-consent__mark .q3 { fill: var(--shard-teal); } .on-consent__mark .q4 { fill: var(--shard-aqua); }
.on-consent__text { flex: 1; min-width: 0; }
.on-consent__title { margin: 0 0 4px; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.on-consent__text p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-muted); }
.on-consent__actions { flex: none; display: flex; gap: 10px; }
.on-consent__actions .on-btn { min-height: 44px; min-width: 124px; justify-content: center; }
@media (max-width: 760px) {
  .on-consent { left: 12px; right: 12px; bottom: 12px; }
  .on-consent__card { flex-wrap: wrap; gap: 14px 16px; padding: 18px; }
  .on-consent__mark { width: 28px; height: 22px; margin-top: 2px; align-self: flex-start; }
  .on-consent__actions { flex: 1 1 100%; }
  .on-consent__actions .on-btn { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .on-consent__card { transition: none; } }

/* Footer: "Podešavanja kolačića" (reopens the banner) next to "Na vrh" */
.on-footer__bar-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.on-footer__consent { padding: 0; border: 0; background: none; font: inherit; color: var(--ink-muted); cursor: pointer; }
.on-footer__consent:hover { color: var(--brand); }
.on-footer__consent:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
