﻿/* =========================================================
   KoDent — stomatološka ordinacija, Podgorica
   ========================================================= */

:root {
  --navy: #26407c;
  --navy-2: #1b2f5e;
  --ink: #0b1633;
  --sky: #5a9fc4;
  --sky-2: #9cc9e2;
  --mist: #eef5fa;
  --paper: #fafcfe;
  --white: #fff;
  --text: #3a4665;
  --line: rgba(38, 64, 124, .14);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 4.2vw, 64px);
  --maxw: 1360px;
  --radius: 28px;
  --nav-h: 84px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(15.5px, .35vw + 14px, 17.5px);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

/* ---------- layout ---------- */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.container { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: clamp(84px, 11vw, 176px); position: relative; }
.section__head { margin-bottom: clamp(36px, 5vw, 72px); max-width: 880px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section__head--row > div { max-width: 820px; }

/* ---------- type ---------- */
.display, .h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -.02em; }
.display { font-size: clamp(2.9rem, 6.6vw, 6.4rem); line-height: .98; }
.h2 { font-size: clamp(2.3rem, 4.8vw, 4.4rem); line-height: 1.02; }
.display em, .h2 em { font-style: italic; color: var(--navy); }
.display em .wi, .h2 em .wi { background: linear-gradient(100deg, var(--navy), var(--sky)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { font-size: clamp(1.02rem, .6vw + .9rem, 1.28rem); line-height: 1.6; max-width: 34em; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); margin-bottom: 22px; }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 5px rgba(90, 159, 196, .18); }
.eyebrow--light { color: var(--sky-2); }

/* split words */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .1em .14em 0; margin: 0 -.1em -.14em 0; }
.wi { display: inline-block; padding-right: .1em; margin-right: -.1em; will-change: transform; }
.sw { display: inline-block; }

/* ---------- buttons ---------- */
.btn {
  --h: 58px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: var(--h); padding: 0 8px 0 28px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; white-space: nowrap;
  transition: color .5s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 12px 30px -12px rgba(38, 64, 124, .55); }
.btn--primary::before { background: var(--ink); }
.btn--ghost { padding: 0 28px; border: 1.5px solid var(--line); color: var(--navy); background: transparent; }
.btn--ghost::before { background: var(--navy); }
.btn--ghost:hover { color: #fff; border-color: var(--navy); }
.btn__icon { display: grid; place-items: center; width: calc(var(--h) - 16px); height: calc(var(--h) - 16px); border-radius: 50%; background: rgba(255, 255, 255, .14); transition: transform .6s var(--ease), background-color .5s; }
.btn__icon svg { width: 18px; height: 18px; }
.btn:hover .btn__icon { transform: translateX(3px) rotate(-45deg); background: var(--sky); }
.btn--sm { --h: 46px; padding: 0 6px 0 22px; font-size: .88rem; }
.btn--sm:not(:has(.btn__icon)) { padding: 0 22px; }
.btn--block { width: 100%; justify-content: space-between; }

.round { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--navy); transition: background-color .4s var(--ease), color .4s, border-color .4s, transform .4s var(--ease); }
.round svg { width: 20px; height: 20px; }
.round:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.round:active { transform: scale(.94); }

/* ---------- hero: skriveno do starta intro animacije (bez treperenja) ---------- */
.js:not(.no-anim) .hero-fade, .js:not(.no-anim) .hero-card, .js:not(.no-anim) .hero__frame, .js:not(.no-anim) .hero .display, .js:not(.no-anim) .page-home .nav__inner { opacity: 0; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); transition: transform .7s var(--ease), background-color .5s var(--ease), box-shadow .5s, height .5s var(--ease); }
.nav__inner { width: min(var(--maxw), 100% - var(--gutter) * 2); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav.is-scrolled { --nav-h: 72px; height: 72px; background: rgba(250, 252, 254, .78); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-101%); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.brand__mark { height: 44px; width: auto; }
.brand__mark--light { display: none; }
.brand__word { font-family: var(--serif); font-size: 1.85rem; letter-spacing: -.01em; line-height: 1; }
.brand__word i { font-style: italic; color: var(--sky); }

.nav__links { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.nav__links a { position: relative; font-size: .92rem; font-weight: 500; color: var(--ink); padding-block: 6px; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--sky); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--navy); }
.lang__opt { opacity: .4; transition: opacity .3s; }
.lang__opt.is-on { opacity: 1; }
.lang__sep { width: 1px; height: 12px; background: currentColor; opacity: .3; }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; border: 1.5px solid var(--line); color: var(--navy); }
.burger span { position: absolute; left: 50%; top: 50%; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .6s var(--ease); }
.burger span:first-child { transform: translate(-50%, -4px); }
.burger span:last-child { transform: translate(-50%, 4px); }
.nav.menu-open .burger span:first-child { transform: translate(-50%, 0) rotate(45deg); }
.nav.menu-open .burger span:last-child { transform: translate(-50%, 0) rotate(-45deg); }

.nav.menu-open { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
.nav.menu-open .brand, .nav.menu-open .lang, .nav.menu-open .burger { color: #fff; border-color: rgba(255, 255, 255, .28); }
.nav.menu-open .brand { border: 0; }
.nav.menu-open .brand__mark--dark { display: none; }
.nav.menu-open .brand__mark--light { display: block; }

/* mobile menu */
.menu { position: fixed; inset: 0; z-index: 90; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .9s var(--ease-io), visibility 0s .9s; overflow-y: auto; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a { display: flex; align-items: baseline; gap: 18px; padding-block: clamp(8px, 1.6vh, 16px); border-bottom: 1px solid rgba(255, 255, 255, .1); opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.menu__nav a span { font-size: .78rem; letter-spacing: .14em; color: var(--sky-2); }
.menu__nav a b { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 8vw, 3.4rem); line-height: 1.1; }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: .25s; } .menu.is-open .menu__nav a:nth-child(2) { transition-delay: .3s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .35s; } .menu.is-open .menu__nav a:nth-child(4) { transition-delay: .4s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .45s; } .menu.is-open .menu__nav a:nth-child(6) { transition-delay: .5s; }
.menu.is-open .menu__nav a:nth-child(7) { transition-delay: .55s; }
.menu__foot { display: flex; flex-direction: column; gap: 6px; padding-top: 28px; color: var(--sky-2); font-size: .95rem; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: calc(var(--nav-h) + 16px); padding-bottom: 64px; overflow: clip; background: radial-gradient(90% 70% at 85% 10%, #e3f0f8 0%, transparent 60%), radial-gradient(60% 60% at 0% 100%, #edf4fb 0%, transparent 60%), var(--paper); }
.hero__mark { position: absolute; right: -4vw; top: 50%; translate: 0 -50%; width: min(52vw, 760px); opacity: .055; pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); align-items: center; gap: clamp(32px, 5vw, 96px); }
.hero__text .lead { margin-top: clamp(22px, 2.6vw, 34px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 3.4vw, 44px); }

.hero__visual { position: relative; justify-self: end; width: min(100%, 470px); }
.hero__frame { position: relative; aspect-ratio: 9 / 15.2; border-radius: 999px 999px 32px 32px; overflow: hidden; background: var(--navy); box-shadow: 0 50px 90px -40px rgba(11, 22, 51, .55), 0 0 0 10px rgba(255, 255, 255, .6), 0 0 0 11px var(--line); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 22, 51, .35)); pointer-events: none; }

.glass { position: absolute; display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 22px; background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 24px 50px -24px rgba(11, 22, 51, .45); color: var(--ink); }
.glass b { display: block; font-size: .92rem; font-weight: 700; line-height: 1.25; }
.glass small { display: block; font-size: .76rem; color: var(--text); line-height: 1.3; }
.glass__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--navy); color: #fff; }
.glass__ico svg { width: 20px; height: 20px; }
.glass--a { left: -16%; bottom: 14%; }
.glass--b { right: -6%; top: 13%; padding: 14px 18px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #3fbf8a; box-shadow: 0 0 0 0 rgba(63, 191, 138, .55); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(63, 191, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 191, 138, 0); } }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid var(--line); border-radius: 20px; display: none; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--navy); animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (min-width: 1025px) and (min-height: 760px) { .scroll-cue { display: block; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; background: var(--navy); color: #fff; padding-block: 22px; border-block: 1px solid rgba(255, 255, 255, .08); }
.marquee__track { display: flex; align-items: center; width: max-content; gap: 38px; animation: marquee 38s linear infinite; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2.1rem); white-space: nowrap; }
.marquee__track i { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); flex: none; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- frames & parallax ---------- */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.par { position: relative; width: 100%; height: 100%; overflow: hidden; }
.par > img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.about__media { position: relative; padding-bottom: 12%; }
.about__img1 { aspect-ratio: 5 / 5.6; width: 82%; }
.about__img2 { position: absolute; right: -10px; bottom: -10px; width: 44%; aspect-ratio: 4 / 5; border: 10px solid var(--paper); border-radius: calc(var(--radius) + 6px); box-sizing: content-box; }
.about__badge { position: absolute; left: -2%; top: 8%; display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; max-width: 250px; background: #fff; border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(11, 22, 51, .4); font-size: .8rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.about__badge img { width: 32px; height: auto; }
.about__text .h2 { margin-bottom: 28px; }
.about__text p { margin-top: 18px; max-width: 34em; }

/* ---------- services ---------- */
.services { background: linear-gradient(180deg, var(--paper), var(--mist) 40%, var(--mist) 100%); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.card { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); min-height: clamp(340px, 34vw, 500px); color: #fff; display: flex; align-items: flex-end; background: var(--navy); cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.card--1 { grid-column: span 7; } .card--2 { grid-column: span 5; }
.card--3 { grid-column: span 5; } .card--4 { grid-column: span 7; }
.card--5 { grid-column: span 6; } .card--6 { grid-column: span 6; }
.card__img { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.card__img { transition: transform 1.4s var(--ease); }
.card:hover .card__img { transform: scale(1.07); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 22, 51, .12) 0%, rgba(11, 22, 51, .1) 35%, rgba(11, 22, 51, .82) 100%); transition: background .6s var(--ease); }
.card:hover::after { background: linear-gradient(180deg, rgba(11, 22, 51, .28) 0%, rgba(11, 22, 51, .35) 35%, rgba(11, 22, 51, .9) 100%); }
.card__num { position: absolute; left: clamp(20px, 2.4vw, 34px); top: clamp(20px, 2.4vw, 30px); font-size: .8rem; font-weight: 600; letter-spacing: .14em; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.card__arrow { position: absolute; right: clamp(20px, 2.4vw, 30px); top: clamp(16px, 2vw, 24px); display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; color: var(--navy); transform: scale(.7) rotate(-20deg); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
.card__arrow svg { width: 20px; height: 20px; }
.card:hover .card__arrow { transform: none; opacity: 1; }
.card__body { padding: clamp(22px, 2.6vw, 38px); width: 100%; }
.card__body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 2.8vw, 2.8rem); line-height: 1.05; letter-spacing: -.01em; }
.card__body p { max-width: 28em; font-size: .95rem; line-height: 1.55; color: rgba(255, 255, 255, .86); margin-top: 0; max-height: 0; opacity: 0; transform: translateY(12px); transition: max-height .7s var(--ease), opacity .6s var(--ease), margin .6s var(--ease), transform .7s var(--ease); }
.card:hover .card__body p, .card:focus-within .card__body p { max-height: 120px; opacity: 1; margin-top: 12px; transform: none; }
@media (hover: none) { .card__body p { max-height: none; opacity: 1; margin-top: 10px; transform: none; } .card__arrow { display: none; } }

/* ---------- technology ---------- */
.tech { background: var(--ink); color: rgba(255, 255, 255, .78); overflow: clip; }
.tech__glow { position: absolute; inset: 0; background: radial-gradient(50% 50% at 88% 12%, rgba(90, 159, 196, .28), transparent 70%), radial-gradient(45% 45% at 0% 100%, rgba(38, 64, 124, .7), transparent 70%); pointer-events: none; }
.tech .h2 { color: #fff; margin-bottom: 26px; }
.tech .h2 em { color: var(--sky-2); }
.tech .h2 em .wi { background: linear-gradient(100deg, #fff, var(--sky-2)); -webkit-background-clip: text; background-clip: text; }
.tech__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.tech__text > p { max-width: 34em; }
.steps { margin-top: clamp(32px, 4vw, 52px); display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.step:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.step__n { font-family: var(--serif); font-size: 1.7rem; color: var(--sky-2); line-height: 1.2; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: #fff; line-height: 1.2; }
.step p { font-size: .94rem; margin-top: 4px; color: rgba(255, 255, 255, .66); }
.tech__media { position: relative; padding-bottom: 14%; }
.tech__img1 { aspect-ratio: 5 / 4.6; width: 100%; background: #fff; }
.tech__img1 .par > img { object-fit: contain; transform: scale(1.04); }
.tech__img2 { position: absolute; left: -8%; bottom: 0; width: 46%; aspect-ratio: 5 / 4; border: 8px solid var(--ink); border-radius: calc(var(--radius) + 6px); box-sizing: content-box; }

/* ---------- statement ---------- */
.statement { position: relative; isolation: isolate; overflow: clip; min-height: min(92svh, 860px); display: grid; align-items: center; color: #fff; }
.statement__bg { position: absolute; inset: -10% 0; z-index: -2; height: 120%; }
.statement__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 22, 51, .85) 0%, rgba(11, 22, 51, .5) 60%, rgba(11, 22, 51, .35) 100%); }
.statement__text { font-family: var(--serif); font-size: clamp(2.2rem, 5.4vw, 5rem); line-height: 1.08; letter-spacing: -.015em; max-width: 17em; padding-block: 80px; }

/* ---------- gallery ---------- */
.gallery { background: var(--mist); }
.masonry { columns: 3; column-gap: clamp(12px, 1.6vw, 22px); }
.g-item { position: relative; display: block; margin-bottom: clamp(12px, 1.6vw, 22px); break-inside: avoid; border-radius: 22px; overflow: hidden; background: #dbe9f3; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.g-item img { width: 100%; height: auto; transition: transform 1.2s var(--ease), filter .6s; }
.g-item:hover img { transform: scale(1.06); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 22, 51, .4)); opacity: 0; transition: opacity .5s; }
.g-item:hover::after { opacity: 1; }
.g-item__zoom { position: absolute; z-index: 2; right: 14px; bottom: 14px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--navy); transform: scale(.6); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.g-item__zoom svg { width: 18px; height: 18px; }
.g-item:hover .g-item__zoom { transform: none; opacity: 1; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: rgba(8, 15, 35, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease), visibility 0s; }
.lb__fig { display: grid; gap: 14px; justify-items: center; max-width: min(1400px, 92vw); transform: scale(.94); transition: transform .7s var(--ease); }
.lb.is-open .lb__fig { transform: none; }
.lb__img { max-width: 100%; max-height: 82svh; width: auto; height: auto; border-radius: 16px; object-fit: contain; transition: opacity .35s; }
.lb__img.is-swap { opacity: 0; }
.lb__cap { color: rgba(255, 255, 255, .75); font-size: .9rem; text-align: center; }
.lb .round { position: absolute; background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lb .round:hover { background: #fff; color: var(--navy); border-color: #fff; }
.lb__close { top: max(18px, env(safe-area-inset-top)); right: 18px; }
.lb__prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb__next { right: 18px; top: 50%; translate: 0 -50%; }

/* ---------- faq ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 120px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 30px); margin-bottom: 0; }
.faq__head .btn { margin-top: 32px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa__h { margin: 0; font: inherit; }
.qa__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(20px, 2.2vw, 30px); text-align: left; font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.9rem); line-height: 1.2; color: var(--ink); transition: color .4s; }
.qa__q:hover { color: var(--navy); }
.qa__q i { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); transition: background-color .5s var(--ease), border-color .5s, transform .7s var(--ease); }
.qa__q i::before, .qa__q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; background: var(--navy); translate: -50% -50%; transition: transform .6s var(--ease), background-color .4s; }
.qa__q i::after { transform: rotate(90deg); }
.qa__q[aria-expanded="true"] i { background: var(--navy); border-color: var(--navy); transform: rotate(180deg); }
.qa__q[aria-expanded="true"] i::before, .qa__q[aria-expanded="true"] i::after { background: #fff; }
.qa__q[aria-expanded="true"] i::after { transform: rotate(0); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 64px clamp(20px, 2.2vw, 30px) 0; max-width: 40em; opacity: 0; transform: translateY(-8px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa.is-open .qa__a p { opacity: 1; transform: none; transition-delay: .12s; }

/* ---------- contact ---------- */
.contact { background: var(--mist); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.contact .h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.info { display: grid; gap: 22px; }
.info li { display: flex; align-items: center; gap: 18px; }
.info__ico { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: 0 0 0 1px var(--line); }
.info__ico svg { width: 22px; height: 22px; }
.info small { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--sky); font-weight: 700; }
.info b { font-weight: 600; color: var(--ink); font-size: 1.05rem; line-height: 1.4; }
.info a b { transition: color .3s; }
.info a:hover b { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.social { display: flex; gap: 12px; margin-top: 34px; }
.social a { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--navy); transition: background-color .4s var(--ease), color .4s, transform .5s var(--ease); }
.social a:hover { background: var(--navy); color: #fff; transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; }

.form { display: grid; gap: 18px; padding: clamp(26px, 3.2vw, 48px); border-radius: calc(var(--radius) + 6px); background: #fff; box-shadow: 0 50px 90px -50px rgba(38, 64, 124, .5); }
.form h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.4rem); color: var(--ink); line-height: 1.1; margin-bottom: 4px; }
.field { position: relative; display: block; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid transparent; border-radius: 16px; padding: 24px 18px 10px; outline: 0; transition: border-color .4s var(--ease), background-color .4s, box-shadow .4s; resize: vertical; appearance: none; -webkit-appearance: none; }
.field textarea { min-height: 110px; }
.field select { padding-block: 18px 16px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2326407c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 20px; padding-right: 48px; }
.field span { position: absolute; left: 18px; top: 18px; font-size: 1rem; color: #7b87a6; pointer-events: none; transform-origin: left top; transition: transform .4s var(--ease), color .3s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--sky); background: #fff; box-shadow: 0 0 0 5px rgba(90, 159, 196, .16); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-11px) scale(.76); color: var(--navy); font-weight: 600; }
.field.is-error input, .field.is-error select { border-color: #d96a6a; }
.form .btn { margin-top: 6px; }
.form__note { font-size: .9rem; min-height: 1.4em; color: var(--navy); }

.map { position: relative; margin-top: clamp(40px, 5vw, 72px); height: clamp(320px, 38vw, 520px); border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: #dbe9f3; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.8) contrast(1.02); }
.map__btn { position: absolute; left: 20px; bottom: 20px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding-top: clamp(64px, 8vw, 112px); overflow: clip; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand img { width: 52px; height: auto; margin-bottom: 20px; }
.footer__brand p { max-width: 22em; font-size: .94rem; }
.footer__col { display: grid; gap: 10px; align-content: start; font-size: .95rem; }
.footer__h { margin: 0 0 6px; font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sky-2); }
.footer a { transition: color .3s; }
.footer a:hover { color: #fff; }
.footer__word { font-family: var(--serif); font-size: clamp(6rem, 26vw, 25rem); line-height: .8; letter-spacing: -.04em; text-align: center; margin-top: clamp(40px, 6vw, 80px); background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; user-select: none; padding-bottom: .05em; }
.footer__credit { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; transition: text-decoration-color .3s; }
.footer__credit:hover { text-decoration-color: var(--sky-2); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 26px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* ---------- mobile bar ---------- */
.mbar { display: none; }

/* =========================================================
   Višestranični sajt: dodatne komponente
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.section--tight { padding-block: clamp(40px, 6vw, 88px); }
.section--flush { padding-top: 0; }
.section--flush-top { padding-top: clamp(64px, 8vw, 120px); }
.section--tint { background: var(--mist); }

/* nav: dropdown + aktivna stranica */
.nav__item { position: relative; }
.nav__links a[aria-current="page"] { color: var(--navy); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__sub { position: absolute; top: 100%; left: -22px; min-width: 300px; padding-top: 18px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .4s; }
.nav__sub-in { display: grid; padding: 10px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: 20px; box-shadow: 0 30px 70px -30px rgba(11, 22, 51, .45), 0 0 0 1px var(--line); }
.nav__sub a { padding: 12px 16px; border-radius: 12px; font-size: .92rem; font-weight: 500; color: var(--ink); transition: background-color .3s, color .3s; }
.nav__sub a::after { display: none; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--mist); color: var(--navy); }
.nav__sub .nav__sub-all { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; color: var(--navy); font-weight: 600; }
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s; }
.menu__nav a[aria-current="page"] b { color: var(--sky-2); }

/* page hero: kratka CSS animacija, počinje odmah pri prvom crtanju (bez čekanja na JS) */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.page-hero .container > * { animation: rise .5s var(--ease) both; }
.page-hero .container > :nth-child(2) { animation-delay: .04s; }
.page-hero .container > :nth-child(3) { animation-delay: .08s; }
.page-hero .container > :nth-child(4) { animation-delay: .12s; }
.page-hero .container > :nth-child(5) { animation-delay: .16s; }
.page-hero .display em { background: linear-gradient(100deg, var(--navy), var(--sky)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .08em; }
/* page hero */
.page-hero { position: relative; padding-top: calc(var(--nav-h) + clamp(32px, 5.5vw, 80px)); padding-bottom: clamp(36px, 5vw, 72px); background: radial-gradient(70% 90% at 90% 0%, #e3f0f8 0%, transparent 60%), var(--paper); overflow: clip; }
.page-hero--center { min-height: 80svh; display: grid; align-items: center; }
.display--page { font-size: clamp(2.5rem, 5.4vw, 5rem); max-width: 15em; }
.page-hero .lead { margin-top: clamp(20px, 2.4vw, 30px); }
.page-hero .hero__cta { margin-top: clamp(24px, 3vw, 38px); }
.crumbs { margin-bottom: clamp(22px, 3vw, 36px); font-size: .84rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .45; }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--navy); font-weight: 600; }

/* linkovi, dugmad */
.textlink { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; color: var(--navy); white-space: nowrap; }
.textlink svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.textlink:hover svg { transform: translate(3px, -3px); }
.about__links { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 34px; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light::before { background: var(--sky-2); }
.btn--light .btn__icon { background: var(--navy); color: #fff; }
.section__head--row { align-items: flex-end; }
.section__head--row > .textlink { margin-bottom: 14px; }
.prose a, .qa__a a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(38, 64, 124, .35); text-underline-offset: 3px; }

/* CTA traka */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(32px, 5vw, 72px); border-radius: calc(var(--radius) + 10px); background: radial-gradient(60% 120% at 100% 0%, rgba(90, 159, 196, .35), transparent 60%), linear-gradient(135deg, var(--navy-2), var(--ink)); color: rgba(255, 255, 255, .78); }
.cta-band .h2 { color: #fff; margin-bottom: 14px; }
.cta-band .h2 em { color: var(--sky-2); }
.cta-band .h2 em .wi { background: linear-gradient(100deg, #fff, var(--sky-2)); -webkit-background-clip: text; background-clip: text; }
.cta-band__text { max-width: 36em; }
.cta-band .btn { flex: none; }

/* preview galerije, trio */
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 20px); }
.preview-grid .g-item, .trio .g-item { margin: 0; aspect-ratio: 4 / 5; }
.preview-grid .g-item img, .trio .g-item img { height: 100%; object-fit: cover; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 20px); }
.trio .g-item { aspect-ratio: 5 / 4; }
.section--map { padding-bottom: clamp(24px, 4vw, 56px); }
.section--map .map { margin-top: 0; }
.gallery-page { background: var(--mist); padding-top: clamp(36px, 5vw, 72px); }

/* stranica usluge */
.bento--two .card { grid-column: span 6; }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(36px, 6vw, 96px); align-items: start; }
.svc--single { grid-template-columns: minmax(0, 52em); }
.prose { font-size: 1.04rem; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.08; letter-spacing: -.015em; color: var(--ink); margin: clamp(36px, 4.4vw, 60px) 0 14px; }
.prose h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.8rem); color: var(--navy); margin: 26px 0 6px; line-height: 1.15; }
.prose p { margin-top: 12px; max-width: 42em; }
.prose .banner { aspect-ratio: 16 / 8.5; margin: 0 0 clamp(8px, 2vw, 24px); }
.prose .banner .par > img { object-fit: cover; }
.checks { display: grid; gap: 12px; margin-top: 16px; max-width: 42em; }
.checks li { position: relative; padding-left: 38px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .22em; width: 22px; height: 22px; border-radius: 50%; background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2326407c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: 0 0 0 1px var(--line); }
.aside { position: sticky; top: calc(var(--nav-h) + 24px); padding: clamp(24px, 2.6vw, 36px); border-radius: calc(var(--radius) + 4px); background: #fff; box-shadow: 0 40px 80px -50px rgba(38, 64, 124, .55), 0 0 0 1px var(--line); }
.aside h2 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; color: var(--ink); }
.aside p { margin: 10px 0 22px; font-size: .96rem; }
.aside .btn { width: 100%; justify-content: space-between; }
.aside__links { display: grid; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.aside__links small { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--sky); margin-bottom: 4px; }
.aside__links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .95rem; color: var(--ink); transition: color .3s; }
.aside__links a:last-child { border-bottom: 0; }
.aside__links a svg { width: 18px; height: 18px; color: var(--navy); transition: transform .5s var(--ease); }
.aside__links a:hover { color: var(--navy); }
.aside__links a:hover svg { transform: translate(3px, -3px); }

/* tok terapije (svijetla varijanta) */
.flow__title { margin-bottom: clamp(28px, 4vw, 56px); max-width: 16em; }
.flow__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px); }
.flow__list li { position: relative; padding-top: 22px; border-top: 1.5px solid var(--line); }
.flow__list li::before { content: ""; position: absolute; left: 0; top: -1.5px; width: 56px; height: 1.5px; background: var(--navy); }
.flow__n { font-family: var(--serif); font-size: 1.5rem; color: var(--sky); line-height: 1; }
.flow__list h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; color: var(--ink); margin: 14px 0 8px; }
.flow__list p { font-size: .96rem; }

/* O nama */
.bigfact { display: flex; align-items: baseline; gap: 16px; margin-top: clamp(28px, 3.4vw, 44px); padding-top: 26px; border-top: 1px solid var(--line); }
.bigfact b { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 4vw, 3.8rem); line-height: 1; color: var(--navy); }
.about .checks { margin-top: 26px; }
.doctor { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.doctor__img { aspect-ratio: 4 / 5; }
.doctor__photo { object-position: 50% 12%; }
.doctor--next { margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.doctor__text h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 3rem); color: var(--ink); line-height: 1.05; }
.doctor__role { margin: 8px 0 18px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--sky); }
.doctor__text p + p { margin-top: 12px; }
.link-list { display: grid; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 28px; align-items: center; gap: 24px; padding-block: clamp(18px, 2.2vw, 28px); transition: padding .6s var(--ease); }
.link-list b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2.2rem); color: var(--ink); line-height: 1.1; transition: color .3s; }
.link-list span { font-size: .96rem; }
.link-list svg { width: 22px; height: 22px; color: var(--navy); transition: transform .6s var(--ease); }
.link-list a:hover { padding-left: 14px; }
.link-list a:hover b { color: var(--navy); }
.link-list a:hover svg { transform: translate(4px, -4px); }

.teammate { display: flex; align-items: center; gap: 18px; margin-top: clamp(24px, 3vw, 40px); padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); }
.teammate__av { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(140deg, var(--navy), var(--sky)); color: #fff; font-family: var(--serif); font-size: 1.5rem; }
.teammate h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--ink); line-height: 1.1; }
.teammate p { margin-top: 2px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--sky); }

/* video sekcija (tehnologija) */
.video-sec__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(32px, 6vw, 96px); align-items: center; justify-content: space-between; }
.video-sec__text .h2 { margin-bottom: 18px; }
.video-sec__text p:not(.eyebrow) { max-width: 30em; }
.video-sec__media { justify-self: end; width: 100%; }
.video-sec__video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); background: var(--ink); box-shadow: 0 40px 80px -40px rgba(11, 22, 51, .55); }
@media (max-width: 860px) { .video-sec__grid { grid-template-columns: 1fr; } .video-sec__media { justify-self: center; max-width: 340px; } }

/* Aligner.Kom oznaka (boje loga) */
.brandmark { display: inline-flex; align-items: baseline; margin-top: 12px; padding: 7px 18px; border-radius: 999px; background: #fff; font-family: var(--sans); font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 800; letter-spacing: .01em; line-height: 1.2; box-shadow: 0 8px 20px -10px rgba(11, 22, 51, .5); }
.brandmark b { color: var(--navy); font-weight: 800; }
.brandmark i { color: var(--sky); font-style: normal; }

/* slika u tekstu usluge */
.fig-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 26px 0 6px; max-width: 42em; align-items: start; }
.prose-fig { margin: 0; }
@media (max-width: 560px) { .fig-row { grid-template-columns: 1fr; } }
.prose-fig img { width: 100%; height: auto; border-radius: var(--radius); }
.prose-fig figcaption { margin-top: 10px; font-size: .88rem; color: var(--text); }

/* dvije stavke opreme (tehnologija) */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.duo__img { aspect-ratio: 4 / 3; margin-bottom: 22px; }
.duo__img img { width: 100%; height: 100%; object-fit: cover; }
.duo__item h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; color: var(--ink); margin-bottom: 10px; }
.duo__item p { max-width: 34em; }
@media (max-width: 768px) { .duo { grid-template-columns: 1fr; } }

/* FAQ stranica */
.faq-wrap { display: grid; gap: clamp(40px, 5vw, 72px); max-width: 980px; }
.faq-group__h { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.08; color: var(--ink); margin-bottom: 20px; }
.faq__grid .faq__list { min-width: 0; }

/* tehnologija / kontakt */
.tech .step h3 { color: #fff; }
.contact { background: var(--mist); padding-bottom: clamp(60px, 8vw, 120px); }
.contact__info { padding-top: 8px; }

@media (max-width: 1024px) {
  .svc { grid-template-columns: 1fr; }
  .aside { position: static; }
  .flow__list { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .doctor { grid-template-columns: minmax(0, 300px) 1fr; }
}
@media (max-width: 860px) {
  .cta-band { flex-direction: column; align-items: flex-start; }
  .link-list a { grid-template-columns: minmax(0, 1fr) 28px; }
  .link-list a span { grid-column: 1; grid-row: 2; }
  .link-list a svg { grid-column: 2; grid-row: 1 / span 2; }
  .bento--two .card { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .page-hero { padding-top: calc(var(--nav-h) + 28px); }
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .trio { grid-template-columns: 1fr; }
  .trio .g-item { aspect-ratio: 16 / 10; }
  .prose .banner { aspect-ratio: 4 / 3; }
  .doctor { grid-template-columns: 1fr; }
  .doctor__img { max-width: 360px; }
  .cta-band .btn { width: 100%; justify-content: space-between; }
}
@media (max-width: 560px) {
  .flow__list { grid-template-columns: 1fr; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .glass--a { left: -10%; }
  .glass--b { right: -3%; }
}

@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .about__grid, .tech__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 640px; }
  .tech__media { max-width: 640px; margin-left: 8%; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .masonry { columns: 2; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { justify-self: center; width: min(76%, 400px); }
  .glass--a { left: -14%; }
  .glass--b { right: -12%; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--1, .card--2, .card--3, .card--4, .card--5, .card--6 { grid-column: span 1; }
  .card--1, .card--4 { grid-column: 1 / -1; }
}

/* phones: full-bleed portrait video as hero background */
@media (max-width: 768px) {
  :root { --nav-h: 70px; --radius: 22px; }
  body { padding-bottom: 0; }
  .hero { min-height: 100svh; align-items: flex-end; padding: 0; color: #fff; background: var(--ink); }
  .hero__mark, .scroll-cue { display: none; }
  .hero__grid { display: block; width: 100%; margin: 0; padding: 0; position: static; }
  .hero__visual { position: absolute; inset: 0; width: 100%; justify-self: auto; }
  .hero__frame { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .hero__frame::after { background: linear-gradient(180deg, rgba(11, 22, 51, .6) 0%, rgba(11, 22, 51, .22) 24%, rgba(11, 22, 51, .62) 48%, rgba(11, 22, 51, .9) 70%, rgba(11, 22, 51, .96) 100%); }
  .glass { display: none; }
  .hero__text { position: relative; z-index: 2; padding: 0 var(--gutter) calc(36px + env(safe-area-inset-bottom)); padding-top: calc(var(--nav-h) + 40px); }
  .hero .eyebrow { color: var(--sky-2); }
  .hero .display { color: #fff; font-size: clamp(2.7rem, 12.4vw, 4rem); }
  .hero .display em { color: var(--sky-2); }
  .hero .display em .wi { background: linear-gradient(100deg, #fff, var(--sky-2)); -webkit-background-clip: text; background-clip: text; }
  .hero .lead { color: rgba(255, 255, 255, .86); font-size: 1rem; }
  .hero .btn--primary { background: #fff; color: var(--navy); box-shadow: none; }
  .hero .btn--primary::before { background: var(--sky-2); }
  .hero .btn--primary .btn__icon { background: var(--navy); color: #fff; }
  .hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
  .hero .btn--ghost::before { background: #fff; }
  .hero .btn--ghost:hover { color: var(--navy); }
  .hero__cta .btn { flex: 1 1 auto; }
      
  .page-home .nav:not(.is-scrolled):not(.menu-open) .brand,
  .page-home .nav:not(.is-scrolled):not(.menu-open) .lang,
  .page-home .nav:not(.is-scrolled):not(.menu-open) .burger { color: #fff; border-color: rgba(255, 255, 255, .34); }
  .page-home .nav:not(.is-scrolled):not(.menu-open) .brand { border: 0; }
  .page-home .nav:not(.is-scrolled):not(.menu-open) .brand__mark--dark { display: none; }
  .page-home .nav:not(.is-scrolled):not(.menu-open) .brand__mark--light { display: block; }
  .brand__mark { height: 38px; }
  .brand__word { font-size: 1.6rem; }

  .about__img1 { width: 86%; }
  .about__badge { left: 0; top: 4%; max-width: 210px; padding: 10px 16px 10px 10px; font-size: .74rem; }
    .step { grid-template-columns: 48px 1fr; }
  .tech__media { margin-left: 0; margin-right: 6%; }
  .tech__img2 { left: -4%; }
  .statement { min-height: 80svh; }
  .statement__shade { background: linear-gradient(180deg, rgba(11, 22, 51, .55), rgba(11, 22, 51, .82)); }
  .section__head--row { flex-direction: column; align-items: flex-start; }
    .qa__a p { padding-right: 8px; }
  .qa__q i { width: 38px; height: 38px; }

  .mbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80; display: flex; gap: 10px; transform: translateY(160%); transition: transform .8s var(--ease); }
  .mbar.is-on { transform: none; }
  .mbar .btn { --h: 54px; flex: 1; box-shadow: 0 18px 40px -12px rgba(11, 22, 51, .6); }
  .mbar__call { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: 0 18px 40px -12px rgba(11, 22, 51, .5); }
  .mbar__call svg { width: 22px; height: 22px; }
  .footer__bottom { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .lb__prev, .lb__next { top: auto; bottom: 22px; translate: 0 0; }
  .lb__prev { left: calc(50% - 66px); } .lb__next { right: calc(50% - 66px); }
  .lb__img { max-height: 70svh; }
}

@media (max-width: 560px) {
  .masonry { columns: 2; column-gap: 10px; }
  .g-item { margin-bottom: 10px; border-radius: 16px; }
  .g-item__zoom { display: none; }
  .bento { grid-template-columns: 1fr; }
  .card--1, .card--4 { grid-column: auto; }
  .card { min-height: 360px; }
    .footer__top { grid-template-columns: 1fr; }
  .form { padding: 22px 18px; }
  .map__btn { left: 12px; bottom: 12px; }
  .hero__cta .btn { width: 100%; }
}

@media (max-width: 380px) {
  .brand__word { display: none; }
  }

@media (max-height: 560px) and (orientation: landscape) and (max-width: 900px) {
  .hero { min-height: 640px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  .par > img { transform: none; }
}

