/* ==========================================================================
   TITAN INVEST — stil
   Bež osnova, tamnoplavi akcenti. Premium, čisto, pregledno.
   ========================================================================== */

:root {
  /* Pozadine su bele; bež boje su samo akcenti (osnove stanova, ikonice, oznake, ilustracije) */
  --bg: #FFFFFF;
  --paper: #FFFFFF;      /* kartice, prozor za zakazivanje */
  --sand: #F5F0E8;       /* bež akcent / svetao tekst na tamnoj pozadini */
  --sand-2: #EDE5D8;     /* bež akcent */
  --beige: #E2D6C3;
  --taupe: #B9A88F;
  --muted: #675F52;
  --ink: #18202E;
  --navy: #172A46;
  --navy-2: #24406A;
  --navy-ink: #0F1C30;
  --line: rgba(23, 42, 70, .14);
  --line-light: rgba(245, 240, 232, .22);
  --live: #E0483A;

  /* naslovi: Helvetica stil (Inter Tight), isto kao naslov na početnoj */
  --display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 3px;
  --shadow: 0 1px 2px rgba(15, 28, 48, .05), 0 18px 40px -22px rgba(15, 28, 48, .28);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.12rem; letter-spacing: -.005em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 3px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 18px; height: 18px; flex: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 11.5px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.eyebrow--light { color: rgba(245, 240, 232, .72); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 54ch; }

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--r); background: none;
  font: 600 14.5px/1 var(--sans); letter-spacing: .02em; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 13.5px; }
.btn--primary { background: var(--navy); color: var(--sand); }
.btn--primary:hover { background: var(--navy-2); }
.btn--outline { border-color: rgba(23, 42, 70, .35); color: var(--navy); background: transparent; }
.btn--outline:hover { border-color: var(--navy); background: rgba(23, 42, 70, .05); }
.btn--light { background: var(--sand); color: var(--navy); }
.btn--light:hover { background: #fff; }
.btn--outline-light { border-color: var(--line-light); color: var(--sand); }
.btn--outline-light:hover { border-color: var(--sand); background: rgba(245, 240, 232, .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--navy);
}
.link-arrow .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- Oznake statusa ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 6px 11px; border-radius: 99px;
  font: 700 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.badge--lg { padding: 8px 14px; font-size: 11.5px; }
.badge--ready { background: var(--navy); color: var(--sand); }
.badge--build { background: var(--paper); color: var(--navy); border: 1px solid rgba(23, 42, 70, .25); }
.badge--plan { color: var(--navy); border: 1px dashed rgba(23, 42, 70, .45); }

.dot-live {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 rgba(224, 72, 58, .55); animation: pulse 1.8s infinite; vertical-align: middle;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 72, 58, .55); }
  70% { box-shadow: 0 0 0 9px rgba(224, 72, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 72, 58, 0); }
}

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.brand__mark { width: 38px; height: 38px; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font: 800 16px/1 var(--sans); letter-spacing: .34em; margin-right: -.34em; }
.brand__sub { font: 500 9.5px/1 var(--sans); letter-spacing: .62em; margin-top: 6px; opacity: .72; }
.brand--light { color: var(--sand); }
.brand__img { display: block; height: 46px; width: auto; }
.site-footer__brand .brand__img { height: 58px; }
.hero__brand .brand__img { height: clamp(48px, 6.4vw, 76px); filter: drop-shadow(0 2px 16px rgba(15, 28, 48, .55)); }

/* ---------- Header ---------- */
/* Stanja (sve strane osim početne, koja nema gornju navigaciju):
   na vrhu:  providan preko slike (bez klase) ili bež (.is-solid)
   skrol:    .is-scrolled → bela pozadina, tamni logo, tamnoplavi tekst i dugme  */
.site-header {
  --hdr-t: .3s ease;
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h);
  color: var(--sand); background-color: rgba(255, 255, 255, 0);
  transition: background-color var(--hdr-t), color var(--hdr-t), box-shadow var(--hdr-t);
}
.site-header.no-anim, .site-header.no-anim * { transition: none !important; }
.site-header .brand { color: inherit; }
.site-header.is-solid {
  color: var(--navy);
  background-color: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled {
  color: var(--navy);
  background-color: #FFFFFF;
  box-shadow: 0 1px 0 rgba(23, 42, 70, .08), 0 10px 30px -18px rgba(23, 42, 70, .25);
}

/* logo: obe verzije na istom mestu, menjaju se pretapanjem (bez skoka) */
.brand--swap { display: grid; }
.brand--swap .brand__img { grid-area: 1 / 1; transition: opacity var(--hdr-t); }
.brand--swap .brand__img--light { opacity: 0; }
.site-header:not(.is-solid):not(.is-scrolled):not(.nav-open) .brand__img--light { opacity: 1; }
.site-header:not(.is-solid):not(.is-scrolled):not(.nav-open) .brand__img--dark { opacity: 0; }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav > a:not(.btn) { font-weight: 600; font-size: 14px; letter-spacing: .02em; position: relative; padding: 6px 0; }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav > a:not(.btn):hover::after, .nav > a[aria-current]::after { transform: scaleX(1); }
.nav > a .dot-live { width: 6px; height: 6px; margin-left: 4px; vertical-align: 2px; }
.site-header .nav__cta { transition: background-color var(--hdr-t), color var(--hdr-t), border-color var(--hdr-t); }
.site-header:not(.is-solid):not(.is-scrolled) .nav__cta { background: var(--sand); color: var(--navy); }
.site-header.is-scrolled .nav__cta { background: var(--navy); color: #FFFFFF; }
.site-header.is-scrolled .nav__cta:hover { background: var(--navy-2); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* broj, status i kontakt blok postoje samo u meniju na telefonu */
.nav__n, .nav__s, .nav__extra { display: none; }

/* ---------- Meni na telefonu: tamnoplavi panel preko celog ekrana ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; z-index: 2; }
  .site-header .brand { position: relative; z-index: 2; }
  /* bez blur efekta na telefonu: on bi zarobio meni preko celog ekrana unutar trake */
  .site-header, .site-header.is-solid { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.is-solid { background-color: var(--bg); }

  .nav {
    position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(var(--header-h) + clamp(16px, 4vh, 36px)) var(--gutter) max(24px, env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    background:
      radial-gradient(120% 60% at 100% 0%, rgba(185, 168, 143, .14), transparent 60%),
      linear-gradient(180deg, #13233C 0%, var(--navy-ink) 100%);
    color: var(--sand);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }

  /* stavke: broj · naziv · status, tanke linije između */
  .nav > a:not(.btn) {
    display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: baseline; gap: 8px;
    padding: 18px 0; border-bottom: 1px solid rgba(245, 240, 232, .12);
  }
  .nav > a:not(.btn):first-child { border-top: 1px solid rgba(245, 240, 232, .12); }
  .nav > a:not(.btn)::after { display: none; }
  .nav__n { display: block; font: 600 11px/1 var(--sans); letter-spacing: .14em; color: rgba(245, 240, 232, .45); }
  .nav__l { font: 500 clamp(1.3rem, 5.8vw, 1.55rem)/1.1 var(--display); letter-spacing: -.02em; color: var(--sand); }
  .nav__l .dot-live { width: 7px; height: 7px; margin-left: 6px; vertical-align: 5px; }
  .nav__s { display: block; font: 700 9.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(245, 240, 232, .55); white-space: nowrap; }
  .nav > a[aria-current] .nav__n { color: var(--taupe); }
  .nav > a[aria-current] .nav__l { color: #FFFFFF; }

  /* dugme + brzi kontakt */
  .site-header.nav-open .nav .nav__cta { align-self: stretch; margin-top: 28px; min-height: 54px; font-size: 15px; background: var(--sand); color: var(--navy); }
  .nav__extra { display: flex; flex-direction: column; gap: 16px; margin-top: auto; padding-top: 28px; }  /* brzi kontakt na dnu ekrana */
  .nav__quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .nav__quick a {
    display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px;
    border: 1px solid rgba(245, 240, 232, .22); border-radius: var(--r); font: 600 13px/1 var(--sans); color: var(--sand);
  }
  .nav__quick .ic { width: 16px; height: 16px; }
  .nav__info { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; font-size: 13px; color: rgba(245, 240, 232, .6); }
  .nav__info a { color: rgba(245, 240, 232, .85); }

  /* otvaranje: stavke kratko uplove jedna za drugom */
  .nav > * { opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity .4s var(--ease), transform .45s var(--ease); }
  .nav-open .nav > * { opacity: 1; transform: none; transition-delay: calc(.08s + var(--k, 0) * 45ms); }

  /* traka sa logom dok je meni otvoren: providna, svetao logo i × */
  .site-header.nav-open { background-color: transparent; box-shadow: none; color: var(--sand); }
  .site-header.nav-open .brand__img--light { opacity: 1; }
  .site-header.nav-open .brand__img--dark { opacity: 0; }
  .menu-open .callbar { opacity: 0; pointer-events: none; }
}
@media (max-width: 900px) {
  .nav__l { white-space: nowrap; }
}
@media (max-width: 360px) {   /* najmanji telefoni: zbijenije, da sve stane bez skrolovanja */
  .nav > a:not(.btn) { padding: 14px 0; grid-template-columns: 28px minmax(0, 1fr) auto; }
  .nav__l { font-size: 1.2rem; }
  .nav__s { font-size: 8.5px; letter-spacing: .1em; }
  .site-header.nav-open .nav .nav__cta { margin-top: 20px; min-height: 50px; }
  .nav__extra { padding-top: 20px; gap: 12px; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .nav > *, .nav-open .nav > * { transform: none; transition: opacity .2s; transition-delay: 0s; }
}

/* ---------- HERO (početna) ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden;
  background: var(--navy-ink); color: var(--sand); isolation: isolate;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3;
  opacity: 0; transition: opacity .8s var(--ease);
}
.hero.is-playing .hero__video { opacity: 1; }
.hero__fallback {
  position: absolute; inset: 0; z-index: -4;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(185, 168, 143, .22), transparent 60%),
    linear-gradient(180deg, #1E3557 0%, var(--navy-ink) 100%);
}
/* povratak na početnu: završni kadar videa kao slika od prvog trenutka (isti kadar kao zaustavljen video) */
html.home-still .hero__fallback { background: #2B2622 url("../assets/hero-still-1920.jpg") center / cover no-repeat; }
@media (max-width: 759px) { html.home-still .hero__fallback { background-image: url("../assets/hero-still-mobile.jpg"); } }
html.home-still .hero__video { transition: none; }
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(15, 28, 48, .55) 0%, rgba(15, 28, 48, .05) 28%, rgba(15, 28, 48, .1) 62%, rgba(15, 28, 48, .6) 100%);
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .9s var(--ease);
  background:
    radial-gradient(ellipse 75% 60% at 50% 50%, rgba(15, 28, 48, .55), rgba(15, 28, 48, 0) 80%),
    rgba(15, 28, 48, .38);
}
.hero.is-revealed .hero__veil { opacity: 1; }

.hero__content {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px var(--gutter);
}
.hero__eyebrow {
  font: 700 11.5px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: rgba(245, 240, 232, .8);
  opacity: 0; transform: translateY(10px); transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.hero__brand {
  display: inline-flex; color: var(--sand);
  opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.hero__brand .brand__mark { width: 44px; height: 44px; }
.hero__brand { gap: 14px; align-items: center; }
.hero.is-revealed .hero__brand { opacity: 1; transform: none; }
.hero__title {
  margin-top: 28px;
  font: 500 clamp(2.4rem, 6.2vw, 5.4rem)/1.04 "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -.035em;
  text-wrap: balance; text-shadow: 0 2px 30px rgba(15, 28, 48, .35);
}
.hero__title .line { display: block; }
.hero__title .line + .line { font-weight: 300; }
/* reči naslova: samo providnost + pomeranje (GPU) — bez zamućenja, kraće i brže */
.hero__title .w {
  display: inline-block; opacity: 0; transform: translate3d(0, .3em, 0);
  transition: opacity .6s var(--ease), transform .7s var(--ease);
  transition-delay: calc(.1s + var(--i) * 45ms);
}
.hero.is-revealed .hero__eyebrow { opacity: 1; transform: none; }
.hero.is-revealed .hero__title .w { opacity: 1; transform: none; }

.hero__actions {
  margin-top: clamp(32px, 5vh, 52px);
  display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 12px; justify-content: center;
}
.hero-btn {
  --d: 0s;
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 22px;
  border: 1px solid rgba(245, 240, 232, .38); border-radius: var(--r);
  /* bez zamućenja pozadine — preko videa koji se pušta to usporava svaki kadar */
  background: rgba(15, 28, 48, .5);
  color: var(--sand); text-align: left;
  opacity: 0; transform: translate3d(0, 10px, 0);
  transition: opacity .55s var(--ease) var(--d), transform .6s var(--ease) var(--d), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.hero-btn:nth-child(1) { --d: .4s; }
.hero-btn:nth-child(2) { --d: .47s; }
.hero-btn:nth-child(3) { --d: .54s; }
.hero-btn:nth-child(4) { --d: .61s; }
.hero.is-revealed .hero-btn { opacity: 1; transform: none; }
.hero-btn:hover { background: var(--sand); color: var(--navy); border-color: var(--sand); transition-delay: 0s; }
.hero-btn__num { font: 600 11px/1 var(--sans); letter-spacing: .14em; opacity: .55; }
.hero-btn__label { display: flex; flex-direction: column; gap: 5px; font: 600 15.5px/1.1 var(--sans); }
.hero-btn__label small { font: 600 10px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.hero-btn--solid { background: var(--sand); color: var(--navy); border-color: var(--sand); }
.hero-btn--solid:hover { background: #fff; border-color: #fff; }
.hero-btn .ic { margin-left: auto; width: 16px; height: 16px; opacity: .8; }

.live {
  display: inline-flex; align-items: center; gap: 7px; margin-left: 4px;
  padding: 6px 9px 6px 8px; border-radius: 99px;
  background: rgba(224, 72, 58, .16); border: 1px solid rgba(224, 72, 58, .5);
  font: 800 9.5px/1 var(--sans); letter-spacing: .18em; color: #FFE1DC;
}
.hero-btn:hover .live { color: var(--live); }
.live .dot-live { width: 7px; height: 7px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  border: 0; background: none; color: rgba(245, 240, 232, .75);
  font: 700 10px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  opacity: 0; transition: opacity .6s var(--ease) .9s;
}
.hero.is-revealed .hero__scroll { opacity: 1; }
/* povratak na početnu: sve odmah na mestu, bez animacije pojavljivanja */
.hero.is-instant .hero__veil, .hero.is-instant .hero__brand, .hero.is-instant .hero__eyebrow,
.hero.is-instant .hero__title .w, .hero.is-instant .hero-btn, .hero.is-instant .hero__scroll { transition: none !important; }
.hero__scroll i { width: 1px; height: 38px; background: rgba(245, 240, 232, .3); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--sand); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (max-width: 1040px) {
  .hero__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(560px, 100%); }
}
/* telefon: logo gore, naslov i kompaktna dugmad (2 × 2) dole — sredina ekrana ostaje
   slobodna da se vidi enterijer iz videa */
@media (max-width: 560px) {
  .hero { min-height: 0; }   /* tačno visina ekrana — dugmad uvek vidljiva */
  /* logo gore · naslov tačno na sredini ekrana · dugmad dole */
  /* jednak razmak gore i dole (≈12% visine ekrana) — logo i dugmad bliže sredini, naslov ostaje tačno u centru */
  .hero__content { display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; padding: max(clamp(40px, 12svh, 120px), env(safe-area-inset-top)) 14px max(clamp(40px, 12svh, 120px), env(safe-area-inset-bottom)); }
  .hero__brand { align-self: start; }
  .hero__actions { align-self: end; }
  .hero__brand .brand__img { height: 48px; }
  .hero__title { margin-top: 0; font-size: clamp(1.7rem, 8.6vw, 2.45rem); }
  .hero__veil { background: linear-gradient(180deg, rgba(15, 28, 48, .35) 0%, rgba(15, 28, 48, 0) 18%, rgba(15, 28, 48, 0) 45%, rgba(15, 28, 48, .72) 100%); }
  .hero__actions { margin-top: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .hero-btn { position: relative; min-height: 50px; padding: 8px 12px; gap: 8px; }
  .hero-btn__num { display: none; }
  .hero-btn__label { gap: 3px; font-size: 13.5px; }
  .hero-btn__label small { font-size: 8.5px; letter-spacing: .08em; white-space: nowrap; }
  /* LIVE tačka: desno, po sredini visine dugmeta */
  .hero-btn .live { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); margin: 0; padding: 0; border: 0; background: none; font-size: 0; gap: 0; }
  .hero__scroll { display: none; }
}
@media (max-width: 360px) {   /* najmanji telefoni: samo nazivi u dugmadima */
  .hero-btn { min-height: 42px; }
  .hero-btn__label small { display: none; }
}

/* ---------- Sekcije ---------- */
.section { padding: clamp(48px, 6vw, 84px) 0; }
.section--alt { background: var(--bg); border-top: 1px solid var(--line); }
.phero + .section--alt { border-top: 0; } /* već ima liniju ispod činjenica */
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--row > div { display: flex; flex-direction: column; gap: 14px; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--units { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--projects, .grid--units { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--projects, .grid--units { grid-template-columns: 1fr; } }

/* ---------- Kartica projekta ---------- */
.proj-card {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.proj-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.proj-card__art { aspect-ratio: 480 / 330; overflow: hidden; border-bottom: 1px solid var(--line); }
.proj-card__art svg { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.proj-card:hover .proj-card__art svg { transform: scale(1.03); }
.proj-card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 22px; flex: 1; }
.proj-card h3 { font: 500 1.7rem/1.08 var(--display); letter-spacing: -.025em; margin-top: 4px; }
.proj-card__addr { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); }
.proj-card__addr .ic { width: 15px; height: 15px; }
.proj-card__text { color: var(--muted); font-size: 15px; }
.proj-card__foot {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.proj-card__count { font: 700 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Kartica stana ---------- */
.unit {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: box-shadow .35s var(--ease);
}
.unit:hover { box-shadow: var(--shadow); }
.unit__plan { position: relative; background: var(--sand); padding: 46px 28px 22px; border-bottom: 1px solid var(--line); }
.unit__plan .plan { width: 100%; max-width: 300px; margin: 0 auto; }
.unit__code {
  position: absolute; top: 14px; left: 16px;
  font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--navy);
}
.pill {
  position: absolute; top: 10px; right: 12px; padding: 5px 10px; border-radius: 99px;
  font: 700 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.pill--slobodan { background: var(--navy); color: var(--sand); }
.pill--rezervisan { background: var(--beige); color: var(--muted); }
.unit__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.unit__proj { font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.unit__proj .dot-live { width: 6px; height: 6px; }
.unit__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 1.15rem; }
.unit__title span { font: 500 1.55rem/1 var(--display); letter-spacing: -.025em; color: var(--navy); white-space: nowrap; }
.specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; font-size: 13.5px; color: var(--muted); }
.specs li { display: flex; align-items: center; gap: 8px; }
.specs .ic { width: 16px; height: 16px; color: var(--navy); opacity: .75; }
.unit__foot {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.unit__price { font-weight: 700; font-size: 14px; color: var(--navy); }

/* ---------- SVG: zgrade ---------- */
.bldg { width: 100%; height: auto; }
.b-sky { fill: #EDE5D8; }
.b-sun { fill: #E6DAC6; }
.b-far { fill: #E1D5C1; }
.b-earth { fill: #E2D6C3; }
.b-ground { stroke: var(--navy); stroke-width: 1.5; }
.b-body { fill: var(--navy); }
.b-roof { fill: var(--navy-ink); }
.b-slab { stroke: rgba(245, 240, 232, .12); stroke-width: 1; }
.b-win { fill: #CFC2AC; }
.b-win--lit { fill: #F2E2BF; }
.b-door { fill: #F2E2BF; }
.b-bal { fill: #B9A88F; }
.b-open { fill: #2C4467; }
.b-skel { stroke: var(--navy); stroke-width: 3; }
.b-skel-col { stroke: var(--navy); stroke-width: 2.4; }
.b-scaf { stroke: #A8977D; stroke-width: 1; }
.b-crane { stroke: var(--navy-2); stroke-width: 1.5; fill: none; }
.b-crane--thin { stroke-width: 1; }
.b-crane-fill { fill: var(--navy-2); }
.b-load { fill: #B9A88F; }
.b-hook { animation: hook 5s ease-in-out infinite; }
@keyframes hook { 50% { transform: translateY(7px); } }
.b-fence { fill: #E9DFCF; stroke: #B9A88F; }
.b-fence-t { font: 800 7px var(--sans); letter-spacing: .32em; fill: var(--navy); }
.b-tree circle { fill: #CDBFA6; }
.b-tree line { stroke: #A8977D; stroke-width: 2; }
.b-grid { stroke: rgba(23, 42, 70, .07); }
.b-plan { fill: rgba(23, 42, 70, .035); stroke: var(--navy); stroke-width: 1.6; stroke-dasharray: 7 5; animation: march 24s linear infinite; }
.b-plan-thin { fill: none; stroke: var(--navy-2); stroke-width: 1; stroke-dasharray: 3 3; opacity: .65; }
.b-dim { stroke: var(--navy); stroke-width: 1; }
.b-txt { font: 700 9px var(--sans); letter-spacing: .14em; fill: var(--navy); }
.b-north { fill: var(--navy); }
@keyframes march { to { stroke-dashoffset: -240; } }

/* ---------- SVG: osnove ---------- */
.p-room { fill: var(--paper); stroke: var(--navy); stroke-width: 1.4; }
.p-wall { fill: none; stroke: var(--navy); stroke-width: 5; }
.p-win { fill: var(--paper); stroke: var(--navy); stroke-width: 1; }
.p-terrace { stroke: #B9A88F; stroke-width: 1; }
.p-hatch { stroke: #CDBFA6; stroke-width: 1.3; }
.p-label { font: 600 10px var(--sans); fill: var(--muted); text-anchor: middle; }
.p-label--t { fill: var(--navy); font-weight: 700; letter-spacing: .08em; }

/* ---------- O nama ---------- */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__art { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.about__art .bldg { width: 100%; height: auto; }
.about__tag .ic { width: 16px; height: 16px; }
.about__tag {
  position: absolute; left: 18px; bottom: 18px; padding: 12px 16px; background: var(--paper); border-radius: var(--r);
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--navy);
}
.about__text { display: flex; flex-direction: column; gap: 20px; }
.about__text > p { font-size: 1.1rem; color: var(--muted); }
.about__h { font-size: clamp(2.1rem, 4.2vw, 3.2rem); color: var(--navy); }
.values { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.values li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; }
.values .ic { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--navy); color: var(--sand); }
.values h3 { font-size: 15.5px; align-self: end; }
.values p { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ---------- Proces ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { position: relative; padding: 28px 28px 0 0; border-top: 1px solid rgba(23, 42, 70, .25); }
.step::before {
  content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--navy);
}
.step__n { font: 500 2.2rem/1 var(--display); letter-spacing: -.03em; color: var(--taupe); }
.step h3 { margin: 14px 0 8px; }
.step p { font-size: 14.5px; color: var(--muted); }
.step .btn { margin-top: 18px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 32px; } .step { padding-right: 0; } }

/* ---------- CTA traka ---------- */
.cta { background: var(--navy); color: var(--sand); position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(245, 240, 232, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 240, 232, .05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.cta__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding-block: clamp(52px, 6vw, 80px); }
.cta__text { display: flex; flex-direction: column; gap: 16px; }
.cta h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.cta__text p:last-child { color: rgba(245, 240, 232, .72); max-width: 48ch; font-size: 1.05rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 900px) {
  .cta__inner { grid-template-columns: 1fr; }
  .cta__actions { justify-content: flex-start; }
}
@media (max-width: 480px) { .cta__actions .btn { flex: 1 1 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: rgba(245, 240, 232, .72); font-size: 14.5px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-block: 64px 48px; }
.site-footer__brand p { margin-top: 18px; max-width: 34ch; }
.site-footer h4 { font: 700 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--sand); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--sand); }
.site-footer__contact li { display: flex; align-items: center; gap: 10px; }
.site-footer__contact .ic { width: 16px; height: 16px; color: var(--taupe); }
.site-footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 22px; border-top: 1px solid rgba(245, 240, 232, .1); font-size: 12.5px; color: rgba(245, 240, 232, .5);
}
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Brzi kontakt (mobilni) ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--navy); color: var(--sand);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(110%); transition: transform .4s var(--ease);
    box-shadow: 0 -10px 30px -12px rgba(15, 28, 48, .4);
  }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; font-weight: 700; font-size: 13.5px; }
  .callbar a + a { border-left: 1px solid rgba(245, 240, 232, .14); }
  .past-hero .callbar { transform: none; }
  .past-hero .site-footer { padding-bottom: 56px; }
}

/* ---------- Modal zakazivanja ---------- */
.book {
  width: min(520px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 6px;
  background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(15, 28, 48, .55);
}
.book::backdrop { background: rgba(15, 28, 48, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.book[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.book__inner { position: relative; padding: clamp(24px, 5vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.book__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--navy); }
.book__close:hover { background: var(--sand-2); }
.book__title { font: 500 clamp(1.6rem, 4.4vw, 2rem)/1.1 var(--display); letter-spacing: -.025em; color: var(--navy); padding-right: 36px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--sand-2); border-radius: 6px; gap: 4px; }
.seg button {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 10px;
  border: 0; border-radius: 4px; background: transparent; font-weight: 600; font-size: 13.5px; color: var(--muted);
}
.seg button .ic { width: 16px; height: 16px; }
.seg button[aria-checked="true"] { background: var(--paper); color: var(--navy); box-shadow: 0 1px 3px rgba(15, 28, 48, .12); }
.book__lead { color: var(--muted); font-size: 15px; }
.book__ctx {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 4px;
  background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--navy);
}
.book__ctx .ic { width: 16px; height: 16px; }
.book__ctx[hidden] { display: none; }
.book__actions { display: grid; gap: 8px; margin-top: 4px; }
.book-act {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 4px;
  background: var(--paper); border: 1px solid var(--line); transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.book-act:first-child { background: var(--navy); color: var(--sand); border-color: var(--navy); }
.book-act:first-child small { color: rgba(245, 240, 232, .7); }
.book-act:hover { border-color: var(--navy); transform: translateX(2px); }
.book-act > .ic:first-child { width: 22px; height: 22px; }
.book-act span { display: flex; flex-direction: column; gap: 2px; }
.book-act strong { font-size: 15px; }
.book-act small { font-size: 12.5px; color: var(--muted); }
.book-act__arrow { margin-left: auto; width: 16px !important; height: 16px !important; opacity: .6; }
.book__note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.book__note .ic { width: 15px; height: 15px; }

/* ---------- Unutrašnje strane ---------- */
.page-main { padding-top: var(--header-h); }
.page-intro { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); }
.page-intro h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); letter-spacing: -.035em; margin: 14px 0 16px; color: var(--navy); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 14px; color: var(--navy);
  transition: border-color .2s;
}
.jump a:hover { border-color: var(--navy); }
.jump span { font-size: 11.5px; padding: 3px 8px; border-radius: 99px; background: var(--sand-2); color: var(--muted); }

.listing-group { padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.listing-group__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.listing-group__head > div { display: flex; flex-direction: column; gap: 10px; }
.listing-group__head h2 { color: var(--navy); }
.listing-group__head p { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14.5px; }
.listing-group__head p .ic { width: 15px; height: 15px; }

.interest {
  display: grid; grid-template-columns: 1fr 1.1fr; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.interest__art { border-right: 1px solid var(--line); min-height: 260px; }
.interest__art svg { width: 100%; height: 100%; }
.interest__body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.interest h3 { font: 500 clamp(1.5rem, 2.6vw, 1.95rem)/1.12 var(--display); letter-spacing: -.025em; color: var(--navy); }
.interest p { color: var(--muted); }
.interest .btn-row { margin-top: 8px; }
@media (max-width: 800px) {
  .interest { grid-template-columns: 1fr; }
  .interest__art { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; aspect-ratio: 480 / 300; }
}

/* projekat — slika preko celog ekrana */
.phero-full {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  display: flex; align-items: flex-end;
  background: var(--navy-ink); color: var(--sand); isolation: isolate;
}
.phero-full__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; z-index: -2; }
.phero-full__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15, 28, 48, .55) 0%, rgba(15, 28, 48, 0) 20%, rgba(15, 28, 48, 0) 42%, rgba(15, 28, 48, .55) 68%, rgba(15, 28, 48, .88) 100%);
}
.phero-full__content { width: 100%; padding-bottom: clamp(40px, 8vh, 88px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.phero-full__content > * { animation: rise .9s var(--ease) both; }
.phero-full__content > :nth-child(2) { animation-delay: .08s; }
.phero-full__content > :nth-child(3) { animation-delay: .16s; }
.phero-full__content > :nth-child(4) { animation-delay: .24s; }
.phero-full__content > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.phero-full__tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 99px;
  background: rgba(245, 240, 232, .14); border: 1px solid rgba(245, 240, 232, .35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 700 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}
.phero-full__title {
  font: 500 clamp(3rem, 8vw, 6.6rem)/.98 "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -.04em; text-shadow: 0 2px 30px rgba(15, 28, 48, .35);
}
.phero-full__addr { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: rgba(245, 240, 232, .88); }
.phero-full__addr .ic { width: 16px; height: 16px; }
.phero-full__line { max-width: 46ch; color: rgba(245, 240, 232, .8); font-size: 1.05rem; }
.phero-full .btn-row { margin-top: 10px; }
@media (max-width: 480px) { .phero-full .btn-row .btn { flex: 1 1 100%; } }

/* ---------- Zgrada sprat po sprat (js/assembly.js) ---------- */
.assembly { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: var(--sand); background: #FFFFFF; }
.asm__stage { position: absolute; inset: 0; overflow: hidden; background: #FFFFFF; }
.asm__envbg { position: absolute; inset: 0; background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 50%, #1A2536 78%, var(--navy-ink) 100%); }
.asm__env, .asm__overlay { opacity: 0; visibility: hidden; }
.asm__inner { position: absolute; left: 0; top: 0; width: 1672px; height: 941px; transform-origin: 0 0; }
.asm--contained .asm__inner {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 90%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 90%, transparent 100%);
}
.asm--narrow .asm__inner {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.asm__plate, .asm__wash, .asm__sketch, .asm__floors, .asm__floor, .asm__final, .asm__zones { position: absolute; left: 0; top: 0; width: 1672px; height: 941px; }
/* spratovi: zasebni slojevi isečeni iz rendera, pomeraju se i slažu */
.asm__floor { background-size: 1672px 941px; background-repeat: no-repeat; opacity: 0; visibility: hidden; will-change: transform; }
/* beli "wash": nebo i gornji deo okruženja beli, ulica i zelenilo fotografski */
.asm__wash { background: linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,.96) 32%, rgba(255,255,255,.62) 62%, rgba(255,255,255,0) 84%); }
/* ceo originalni render — postavlja se tek kada su svi spratovi na mestu (identičan prikaz, bez spojeva) */
.asm__final { max-width: none; opacity: 0; visibility: hidden; }
.asm--done .asm__final { opacity: 1; visibility: visible; }
.asm__sketch { opacity: 0; visibility: hidden; }

/* arhitektonska skica (ručno crtan stil) */
.asm__sketch { overflow: visible; }
.s-ink line, .s-ink polyline, .s-ink path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.s-main  { stroke: #1A2E52; stroke-width: 1.45; opacity: .9; }
.s-mid   { stroke: #2A3F66; stroke-width: 1.05; opacity: .82; }
.s-light { stroke: #6F7F98; stroke-width: .8; opacity: .7; }
.s-faint { stroke: #93A0B5; stroke-width: .7; opacity: .55; }
.s-refl  { stroke: #A2AEC1; stroke-width: .8; opacity: .6; }
.s-leaf  { stroke: #6B7C95; stroke-width: .8; opacity: .65; }
.s-guide { stroke: #AAB5C6; stroke-width: .7; opacity: .6; }
.s-text  { font: italic 600 9px/1 var(--sans); letter-spacing: .08em; fill: #2A3F66; opacity: .65; }
.s-paper { fill: #FFFFFF; }
.s-tone  { fill: #DCE3EE; opacity: .55; }
.s-tone--deep { fill: #CCD5E2; opacity: .6; }
.s-glass { fill: #E8EDF5; opacity: .55; }
.s-shadow { fill: #C6CFDC; opacity: .45; }
.s-hatch { stroke: #8F9CB2; stroke-width: .7; }
.s-hatchfill { opacity: .45; }
.s-hatchfill--soft { opacity: .3; }
.assembly .phero-full__shade { pointer-events: none; }

/* klikabilne zone */
.asm__zones { pointer-events: none; overflow: visible; }
.zones-on .asm__zones { pointer-events: auto; }
.zone polygon {
  fill: rgba(255, 255, 255, 0); stroke: rgba(245, 240, 232, 0); stroke-width: 1.5; vector-effect: non-scaling-stroke;
  stroke-linejoin: round; cursor: pointer; transition: fill .35s var(--ease), stroke .35s var(--ease);
}
.zones-on .asm__zones.is-hovering .zone polygon { fill: rgba(15, 28, 48, .30); }
.zones-on .asm__zones .zone.is-active polygon { fill: rgba(245, 240, 232, .14); stroke: rgba(255, 255, 255, .95); }
.zone:focus { outline: none; }
.zone:focus-visible polygon { stroke: #FFFFFF; stroke-width: 2.5; }
@media (hover: none) { .zones-on .zone polygon { stroke: rgba(245, 240, 232, .5); } }
.asm__card {
  position: absolute; z-index: 4; left: 0; top: 0; min-width: 230px; max-width: 280px;
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 15px;
  background: #FFFFFF; color: var(--ink); border-radius: 4px; box-shadow: 0 22px 44px -18px rgba(15, 28, 48, .5);
  pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 10px));
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.asm__card.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 16px)); }
.asm__card.is-below { transform: translate(-50%, 10px); }
.asm__card.is-below.is-on { transform: translate(-50%, 16px); }
.asm__card-floor { font: 700 10px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.asm__card strong { font: 500 1.2rem/1.2 var(--display); letter-spacing: -.02em; color: var(--navy); }
.asm__card-meta { font-size: 13px; color: var(--muted); }
.asm__card-meta em { font-style: normal; font-weight: 700; }
.asm__card-meta em.slobodan { color: #1F7A4D; }
.asm__card-cta { margin-top: 6px; font-weight: 700; font-size: 13px; color: var(--navy); }

/* uvod na beloj pozadini */
.asm__intro {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; text-align: center; color: var(--navy);
  /* blag beli sjaj iza teksta — crtež zgrade ostaje vidljiv oko njega */
  background: radial-gradient(ellipse 38% 30% at 50% 50%, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .8) 45%, rgba(255, 255, 255, 0) 100%);
}
.asm__intro .eyebrow { color: var(--muted); }
/* telefon: zgrada je gore, uvodni tekst ispod nje (ne preko crteža) */
.asm--contained .asm__intro { justify-content: flex-end; padding-bottom: 16vh; background: none; }
.asm__intro-title { max-width: 16ch; font: 500 clamp(2.2rem, 5.4vw, 4.6rem)/1.02 var(--display); letter-spacing: -.04em; }
.asm__scroll { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 18px; font: 700 10.5px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.asm__scroll i { width: 1px; height: 44px; background: rgba(23, 42, 70, .15); position: relative; overflow: hidden; }
.asm__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--navy); animation: drip 2.2s var(--ease) infinite; }

/* oznake spratova (desno) i natpis trenutnog sprata (dole levo) */
.asm__levels {
  position: absolute; right: clamp(16px, 3vw, 44px); top: 50%; margin: -110px 0 0; padding: 0; z-index: 2;
  list-style: none; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; opacity: 0; visibility: hidden;
}
/* kao na referenci: tamnoplavi natpis + linija; trenutni sprat = tamnoplava "pilula" */
.asm__level {
  display: flex; align-items: center; gap: 12px; padding: 7px 0 7px 14px; border-radius: 99px;
  font: 700 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(23, 42, 70, .55);
  text-shadow: 0 0 10px rgba(255, 255, 255, .95), 0 0 2px rgba(255, 255, 255, .9);
  transition: color .4s var(--ease), background-color .4s var(--ease), padding .4s var(--ease);
}
.asm__level::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.asm__level.is-done { color: var(--navy); }
.asm__level.is-current { color: #FFFFFF; background: var(--navy); padding-right: 14px; text-shadow: none; box-shadow: 0 8px 20px -10px rgba(15, 28, 48, .6); }
.asm__level.is-current::after { display: none; }
.asm__caption { position: absolute; left: 0; right: 0; bottom: clamp(32px, 7vh, 72px); height: 48px; z-index: 2; }
.asm__caption p {
  position: absolute; left: var(--gutter); bottom: 0; display: flex; align-items: baseline; gap: 16px;
  font: 500 clamp(1.5rem, 2.8vw, 2.3rem)/1 var(--display); letter-spacing: -.03em; opacity: 0; visibility: hidden;
  text-shadow: 0 2px 18px rgba(15, 28, 48, .55);
}
.asm__caption span { font: 700 11px/1 var(--sans); letter-spacing: .2em; color: rgba(245, 240, 232, .75); }

/* završni naslov + poziv na klik */
.asm__hero {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-bottom: clamp(40px, 8vh, 88px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; pointer-events: none;
}
.asm__hero > * { opacity: 0; visibility: hidden; }
.asm__hero a, .asm__hero button { pointer-events: auto; }
.asm__hero .btn-row { margin-top: 10px; }
.asm__hint {
  position: absolute; z-index: 3; right: clamp(16px, 3vw, 44px); bottom: clamp(40px, 8vh, 88px);
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 15px; border-radius: 99px;
  background: rgba(15, 28, 48, .5); border: 1px solid rgba(245, 240, 232, .3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 600 12.5px/1 var(--sans); color: var(--sand); opacity: 0; visibility: hidden; pointer-events: none;
}
.asm__hint .ic { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .asm__levels { display: none; }
  .asm__hint { left: 50%; right: auto; bottom: auto; top: calc(var(--header-h) + 14px); transform: translateX(-50%); white-space: nowrap; }
}
@media (max-width: 480px) { .asm__hero .btn-row .btn { flex: 1 1 100%; } }

/* bez animacije (smanjeni pokreti) / provera poravnanja (?asmdebug) */
.asm--static .asm__env, .asm--static .asm__overlay, .asm--static .asm__final, .asm--static .asm__hero > *, .asm--static .asm__hint { opacity: 1; visibility: visible; }
.asm--static .asm__intro, .asm--static .asm__levels, .asm--static .asm__caption { display: none; }
.asm--debug .zone polygon { stroke: #FF2D55; fill: rgba(255, 45, 85, .1); }
.asm--debug .asm__sketch { z-index: 2; opacity: .62; visibility: visible; }
.asm--debug .asm__zones { display: none; }
.asm--debug .asm__hero { display: none; }

/* stan na koji vodi klik sa zgrade */
.unit.is-flash { animation: unitflash 2.4s var(--ease); }
@keyframes unitflash { 0%, 35% { box-shadow: 0 0 0 2px var(--navy), var(--shadow); } 100% { box-shadow: 0 0 0 0 rgba(23, 42, 70, 0); } }

/* ==========================================================================
   UVODNA ANIMACIJA (preloader) — po uzoru na beta.eko-box.com
   Bela pozadina; slova logoa se iscrtavaju obrisom (jedno za drugim), pa se
   popune bojom; blagi odsjaj preko slova; posle 3 s ekran nestaje (0,45 s).
   html.has-intro postavlja kratka skripta u <head>; js/preloader.js crta logo.
   ========================================================================== */
.intro { display: none; }
html.has-intro { overflow: hidden; }
html.has-intro .intro {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  background: #FFFFFF;
}
.intro.is-leaving { opacity: 0; transition: opacity .45s cubic-bezier(.64, 0, .78, 0); }
.intro__logo { display: block; width: min(80vw, 520px); height: auto; overflow: visible; }
/* obris slova: iscrtava se (0,55 s, ease [.22,1,.36,1]), pa nestaje dok se slovo puni */
.intro__stroke {
  fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 0 1;
  animation: introDraw .55s cubic-bezier(.22, 1, .36, 1) var(--d) forwards, introStrokeOut .35s ease-out calc(var(--d) + .5s) forwards;
}
.intro__fill { opacity: 0; animation: introFill .3s ease-out calc(var(--d) + .45s) forwards; }
.intro__shine { mix-blend-mode: soft-light; transform: translateX(var(--from)); animation: introShine .75s ease-in-out var(--sd) forwards; }
@keyframes introDraw { to { stroke-dasharray: 1 0; } }
@keyframes introStrokeOut { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
@keyframes introFill { to { opacity: 1; } }
@keyframes introShine { from { transform: translateX(var(--from)); } to { transform: translateX(var(--to)); } }

/* projekat */
.phero { padding: calc(var(--header-h) + clamp(28px, 5vw, 56px)) 0 0; }
.phero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.phero__text { display: flex; flex-direction: column; gap: 16px; }
.phero h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); letter-spacing: -.04em; color: var(--navy); margin-top: 4px; }
.phero__addr { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.phero__addr .ic { width: 16px; height: 16px; }
.phero__desc { color: var(--muted); font-size: 1.05rem; max-width: 52ch; }
.phero .btn-row { margin-top: 10px; }
.phero__art { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.phero__art svg { width: 100%; height: auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs a:hover { color: var(--navy); }
.facts {
  margin: clamp(40px, 6vw, 64px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts div { padding: 22px 20px 22px 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { font: 700 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 10px 0 0; font: 500 1.6rem/1.05 var(--display); letter-spacing: -.025em; color: var(--navy); }
@media (max-width: 900px) { .phero__grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.progress { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.progress__head { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.meter { width: 100%; margin: 10px 0 8px; }
.meter__bar { height: 8px; background: var(--beige); border-radius: 99px; overflow: hidden; }
.meter__bar span { display: block; height: 100%; width: 0; background: var(--navy); border-radius: inherit; transition: width 1.6s var(--ease) .2s; }
.in .meter__bar span, .meter__bar span.go { width: var(--v); }
.meter__label { margin-top: 10px; font-size: 14px; color: var(--muted); }
.meter__label strong { font: 500 1.6rem/1 var(--display); letter-spacing: -.025em; color: var(--navy); margin-right: 4px; }
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.phase { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.phase:first-child { border-top: 1px solid var(--line); }
.phase__dot {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font: 700 11px/1 var(--sans); border: 1px solid rgba(23, 42, 70, .3); color: var(--muted);
}
.phase__dot .ic { width: 16px; height: 16px; }
.phase--done .phase__dot { background: var(--navy); border-color: var(--navy); color: var(--sand); }
.phase--active .phase__dot { border: 2px solid var(--navy); color: var(--navy); }
.phase__name { font-weight: 600; }
.phase--todo .phase__name { color: var(--muted); font-weight: 500; }
.phase__state { display: inline-flex; align-items: center; gap: 8px; font: 700 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.phase--active .phase__state { color: var(--navy); }
@media (max-width: 900px) { .progress { grid-template-columns: 1fr; } }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.features li { background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.features .ic { width: 28px; height: 28px; color: var(--navy); margin-bottom: 6px; }
.features p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.section--ruled { border-top: 1px solid var(--line); }

/* ---------- Lokacija ---------- */
.location { overflow: hidden; }
.loc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.loc__info { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.loc__info h2 { color: var(--navy); }
.loc__facts { width: 100%; margin: 14px 0 10px; border-top: 1px solid var(--line); }
.loc__row {
  display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.loc__ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--navy); }
.loc__ic .ic { width: 18px; height: 18px; }
.loc__row dt { font: 700 10.5px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.loc__row dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); }
.loc__map {
  position: relative; align-self: stretch; min-height: 560px; background: #F1F3F4;
  /* mapa se pruža do desne ivice ekrana */
  margin-right: calc(-1 * (max(0px, (100vw - var(--max)) / 2) + var(--gutter)));
}
.loc__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.loc__chip {
  position: absolute; top: 20px; right: 32px; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 15px; border-radius: var(--r); background: #FFFFFF; box-shadow: var(--shadow);
  font-weight: 700; font-size: 13px; color: var(--navy); pointer-events: none;
  z-index: 650; /* iznad mape; dok je otvoren oblačić, oznaka se skloni */
  transition: opacity .2s var(--ease);
}
.loc__map.has-popup .loc__chip { opacity: 0; }
.loc__chip .ic { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .loc { grid-template-columns: 1fr; }
  .loc__map { min-height: 380px; margin: 8px calc(-1 * var(--gutter)) 0; }
  .loc__chip { display: none; } /* na telefonu Google-ova kartica već zauzima vrh mape */
}
@media (max-width: 480px) { .loc .btn-row .btn { flex: 1 1 100%; } }

/* ---------- O investitoru ---------- */
.inv { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.inv__brand {
  position: relative; aspect-ratio: 5 / 4; border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px;
  background: radial-gradient(120% 95% at 28% 18%, #2A4A78 0%, var(--navy) 46%, var(--navy-ink) 100%);
  box-shadow: 0 30px 60px -36px rgba(15, 28, 48, .55);
}
.inv__brand .brand__img { width: min(72%, 320px); height: auto; }
.inv__place { font: 700 10.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: rgba(245, 240, 232, .55); }
.inv__text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.inv__text h2 { color: var(--navy); }
.inv__lead { font-size: 1.1rem; line-height: 1.7; color: var(--muted); max-width: 56ch; }
.inv__text .values { margin: 14px 0 10px; width: 100%; }
@media (max-width: 900px) {
  .inv { grid-template-columns: 1fr; }
  .inv__brand { aspect-ratio: 16 / 9; }
}

/* ---------- Instagram feed ---------- */
.ig .eyebrow .ic { width: 14px; height: 14px; }
.ig__follow .ic { width: 17px; height: 17px; }
/* karusel: jedan red, 4 / 2 / 1 (+ deo sledeće) vidljive objave */
.ig-carousel { position: relative; --ig-gap: clamp(12px, 1.4vw, 20px); --ig-visible: 4; }
.ig-track {
  display: flex; gap: var(--ig-gap); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.ig-track::-webkit-scrollbar { display: none; }
.ig-track:focus-visible { outline: 2px solid var(--navy); outline-offset: 6px; border-radius: 6px; }
.ig-track > .ig__item { flex: 0 0 calc((100% - (var(--ig-visible) - 1) * var(--ig-gap)) / var(--ig-visible)); scroll-snap-align: start; }
.ig-track img { -webkit-user-drag: none; pointer-events: none; }
.ig-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.ig-track.is-dragging .ig__item { pointer-events: none; }
.ig__nav {
  position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%;
  display: grid; place-items: center; color: var(--navy); background: #FFFFFF; border: 1px solid var(--line);
  box-shadow: 0 10px 26px -14px rgba(15, 28, 48, .45);
  transition: background-color .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease), transform .3s var(--ease);
}
.ig__nav .ic { width: 18px; height: 18px; }
.ig__nav--prev { left: -24px; }
.ig__nav--prev .ic { transform: rotate(180deg); }
.ig__nav--next { right: -24px; }
.ig__nav:hover:not(:disabled) { background: var(--navy); color: #FFFFFF; }
.ig__nav:disabled { opacity: 0; pointer-events: none; transform: scale(.9); }
.ig__progress { position: relative; height: 2px; margin-top: clamp(20px, 2.6vw, 30px); background: var(--line); border-radius: 2px; overflow: hidden; }
.ig__progress[hidden] { display: none; }
.ig__progress span { display: block; height: 100%; width: 0; background: var(--navy); border-radius: inherit; transition: transform .25s linear, width .3s var(--ease); }
.ig__item {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px;
  background: var(--sand); isolation: isolate;
}
.ig__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ig__hover {
  position: absolute; inset: 0; display: grid; place-items: center; color: #FFFFFF;
  background: linear-gradient(180deg, rgba(15, 28, 48, .15), rgba(15, 28, 48, .45));
  opacity: 0; transition: opacity .4s var(--ease);
}
.ig__hover .ic { width: 34px; height: 34px; stroke-width: 1.4; transform: scale(.85); transition: transform .5s var(--ease); }
.ig__badge {
  position: absolute; top: 10px; right: 10px; z-index: 1; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; color: #FFFFFF; background: rgba(15, 28, 48, .5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ig__badge .ic { width: 17px; height: 17px; }
@media (hover: hover) {
  .ig__item:hover img { transform: scale(1.05); }
  .ig__item:hover .ig__hover { opacity: 1; }
  .ig__item:hover .ig__hover .ic { transform: scale(1); }
}
.ig__item:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
/* prazna mesta (pregled / nedostupno / učitavanje) */
.ig__item--ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 1px dashed rgba(23, 42, 70, .18); color: rgba(23, 42, 70, .45);
  background: repeating-linear-gradient(135deg, #F8F5EF 0 16px, #F3EFE7 16px 32px);
}
.ig__item--ph .ic { width: 30px; height: 30px; stroke-width: 1.2; }
.ig__item--ph span { font: 700 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.ig__item--ph.is-loading { border-style: solid; background: linear-gradient(100deg, #F3EFE7 30%, #FAF8F4 50%, #F3EFE7 70%) 0 0 / 300% 100%; animation: igshimmer 1.6s linear infinite; }
@keyframes igshimmer { to { background-position: -150% 0; } }
.ig__item.is-broken img { opacity: 0; }
.ig__item.is-broken { background: repeating-linear-gradient(135deg, #F8F5EF 0 16px, #F3EFE7 16px 32px); }
.ig__notice {
  display: flex; align-items: center; gap: 10px; margin: -8px 0 20px; padding: 12px 16px;
  border-radius: 6px; border: 1px solid var(--line); background: #FFFFFF; font-size: 14px; color: var(--muted);
}
.ig__notice[hidden] { display: none; }
.ig__notice .ic { width: 18px; height: 18px; flex: none; color: var(--navy); }
.ig__notice strong { color: var(--navy); }
.ig__notice a { color: var(--navy); font-weight: 700; }
.ig__notice--preview { background: var(--sand); border-color: rgba(23, 42, 70, .14); }
@media (max-width: 1240px) { .ig__nav--prev { left: -12px; } .ig__nav--next { right: -12px; } }
@media (max-width: 1000px) { .ig-carousel { --ig-visible: 2; } }
@media (max-width: 600px) {
  .ig-carousel { --ig-visible: 1.22; }   /* jedna objava + deo sledeće */
  .ig__nav { display: none; }            /* na telefonu: prevlačenje prstom */
}

/* ---------- Tipovi stanova ---------- */
.types__aside { justify-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 46ch; }
.types__aside .amen-head__sub { justify-self: auto; }
.types__sold {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px;
  border: 1px solid var(--line); font: 700 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--navy);
}
.types__sold .ic { width: 14px; height: 14px; }
.types-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
@media (max-width: 1100px) { .types-grid[data-n="5"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.js .utype.reveal { transition-delay: calc(var(--i) * 80ms); }
.utype {
  display: flex; flex-direction: column; background: #FFFFFF;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.utype__plan { padding: 30px 22px 18px; background: var(--sand); border-bottom: 1px solid var(--line); }
.utype__plan .plan { width: 100%; max-width: 260px; margin: 0 auto; transition: transform .5s var(--ease); }
.utype__body { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; flex: 1; }
.utype__n { position: absolute; top: 20px; right: 22px; font: 600 11px/1 var(--sans); letter-spacing: .16em; color: var(--taupe); }
.utype__t { font: 500 1.3rem/1.15 var(--display); letter-spacing: -.02em; color: var(--navy); padding-right: 28px; }
.utype__area { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--navy); }
.utype__area .ic { width: 16px; height: 16px; opacity: .7; }
.utype__note { font-size: 14px; color: var(--muted); line-height: 1.6; }
@media (hover: hover) {
  .utype { transition: border-color .4s var(--ease), box-shadow .4s var(--ease); }
  .utype:hover { border-color: rgba(23, 42, 70, .35); box-shadow: var(--shadow); }
  .utype:hover .utype__plan .plan { transform: scale(1.03); }
}
@media (max-width: 1000px) { .types-grid, .types-grid[data-n] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .types__aside { justify-self: start; } }
@media (max-width: 520px) { .types-grid, .types-grid[data-n] { grid-template-columns: 1fr; } }

/* ---------- Pogodnosti zgrade ---------- */
.amen-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.amen-head > div { display: flex; flex-direction: column; gap: 14px; }
.amen-head h2 { color: var(--navy); }
.amen-head__sub { justify-self: end; max-width: 46ch; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

.amen-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.amen { border-bottom: 1px solid var(--line); }
.amen:not(:nth-child(4n+1)) { border-left: 1px solid var(--line); }
.js .amen.reveal { transition-delay: calc(var(--i) * 70ms); }

.amen__in {
  position: relative; height: 100%; min-height: 228px;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px) clamp(26px, 3vw, 36px);
  transition: background-color .45s var(--ease);
}
.amen__n { position: absolute; top: 22px; right: 24px; font: 600 11px/1 var(--sans); letter-spacing: .16em; color: var(--taupe); }
.amen__ic { display: inline-flex; color: var(--navy); transition: transform .45s var(--ease), color .45s var(--ease); }
.amen__ic .ic { width: 44px; height: 44px; stroke-width: 1.2; }
.amen__t { margin-top: auto; padding-top: 36px; max-width: 22ch; font: 600 15.5px/1.4 var(--sans); letter-spacing: -.005em; color: var(--navy); }
.amen__rule { display: block; width: 24px; height: 1px; margin-top: 16px; background: var(--taupe); transition: width .45s var(--ease), background-color .45s var(--ease); }

@media (hover: hover) {
  .amen__in:hover { background-color: var(--sand); }
  .amen__in:hover .amen__ic { transform: translateY(-4px); color: var(--navy-2); }
  .amen__in:hover .amen__rule { width: 56px; background-color: var(--navy); }
}

@media (max-width: 1000px) {
  .amen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amen-grid .amen { border-left: 0; }
  .amen-grid .amen:nth-child(2n) { border-left: 1px solid var(--line); }
  .amen__in { min-height: 200px; }
}
@media (max-width: 800px) {
  .amen-head { grid-template-columns: 1fr; }
  .amen-head__sub { justify-self: start; }
}
@media (max-width: 560px) {
  .amen__in { min-height: 172px; padding: 24px 16px 22px; }
  .amen__n { top: 16px; right: 14px; }
  .amen__ic .ic { width: 36px; height: 36px; }
  .amen__t { padding-top: 26px; font-size: 14.5px; }
  .amen__rule { margin-top: 12px; }
}

.map-block { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.map-block > div:first-child { display: flex; flex-direction: column; gap: 14px; }
.map-block h2 { color: var(--navy); }
.map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--sand-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.85) sepia(.18) contrast(.95); }
@media (max-width: 900px) { .map-block { grid-template-columns: 1fr; } }

/* mapa sa svim objektima (Kontakt + Lokacija na projektima): prigušen izgled podloge kao na Kontaktu */
.map__canvas { width: 100%; height: 100%; }
.loc__map .pmap { position: absolute; inset: 0; }
.pmap.leaflet-container { background: var(--sand-2); font: 400 14px/1.5 var(--sans); }
.pmap .leaflet-tile-pane { filter: grayscale(.85) sepia(.18) contrast(.95); }
@media (max-width: 640px) { .map--projects { aspect-ratio: 4 / 3; } } /* na telefonu malo viša, da stane oblačić */
.map-pin { background: none; border: 0; }
.map-pin svg { display: block; filter: drop-shadow(0 3px 4px rgba(15, 28, 48, .28)); transition: transform .2s var(--ease); transform-origin: 50% 100%; }
.map-pin:hover svg, .map-pin:focus-visible svg { transform: scale(1.08); }
.map-pin:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 2px; border-radius: 4px; }
.map-pop .leaflet-popup-content-wrapper { border-radius: var(--r); box-shadow: var(--shadow); padding: 0; }
.map-pop .leaflet-popup-content { margin: 14px 34px 14px 16px; display: flex; flex-direction: column; gap: 3px; line-height: 1.4; }
.map-pop .leaflet-popup-content strong { font: 500 1.08rem/1.2 var(--display); letter-spacing: -.015em; color: var(--navy); }
.map-pop .leaflet-popup-content span { font-size: 13px; color: var(--muted); }
.map-pop .leaflet-popup-content .link-arrow { margin-top: 8px; font-size: 13px; color: var(--navy); }
.map-pop .leaflet-popup-tip { box-shadow: none; }
.map-pop a.leaflet-popup-close-button { top: 6px; right: 6px; width: 26px; height: 26px; font: 400 20px/26px var(--sans); color: var(--muted); }
.map-pop a.leaflet-popup-close-button:hover { color: var(--navy); }
.pmap .leaflet-bar { border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; }
.pmap .leaflet-bar a { color: var(--navy); width: 32px; height: 32px; line-height: 30px; }
.pmap .leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .75); color: var(--muted); }
.pmap .leaflet-control-attribution a { color: var(--muted); }

/* kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.cmethod {
  display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.cmethod:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.cmethod--main { background: var(--navy); color: var(--sand); border-color: var(--navy); }
.cmethod__ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-2); color: var(--navy); }
.cmethod--main .cmethod__ic { background: rgba(245, 240, 232, .12); color: var(--sand); }
.cmethod__ic .ic { width: 22px; height: 22px; }
.cmethod h3 { font: 500 1.6rem/1.05 var(--display); letter-spacing: -.025em; margin-top: 8px; }
.cmethod p { font-size: 14.5px; color: var(--muted); }
.cmethod--main p { color: rgba(245, 240, 232, .72); }
.cmethod strong { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; }
.cmethod strong .ic { width: 16px; height: 16px; }

.intents { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.intent { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.intent h3 { font: 500 clamp(1.5rem, 2.6vw, 1.95rem)/1.1 var(--display); letter-spacing: -.025em; color: var(--navy); }
.intent p { color: var(--muted); }
.intent ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.intent li { display: flex; gap: 10px; align-items: flex-start; }
.intent li .ic { width: 16px; height: 16px; margin-top: 4px; color: var(--navy); }
.intent .btn { margin-top: auto; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { width: 20px; height: 20px; color: var(--navy); margin-top: 2px; }
.info-list small { display: block; font: 700 10.5px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.info-list a, .info-list span { font-weight: 600; color: var(--navy); }
.info-list div > a { display: block; } /* dva broja telefona jedan ispod drugog */
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .intents { grid-template-columns: 1fr; } }

/* ---------- Pojavljivanje pri skrolu ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.grid > .reveal:nth-child(2) { transition-delay: .08s; }
.grid > .reveal:nth-child(3) { transition-delay: .16s; }

/* ==========================================================================
   DANIČIĆEVA — moderna strana (veliki naslov) + strane tipova stanova sa 3D
   ========================================================================== */
.dhero { padding: calc(var(--header-h) + clamp(28px, 5vw, 56px)) 0 0; }
.dhero__eyebrow {
  display: flex; align-items: center; gap: 10px; margin-top: clamp(18px, 3vw, 34px);
  font: 700 11.5px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.dhero__eyebrow i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--taupe); flex: none; }
.dhero__title {
  margin: clamp(8px, 1.4vw, 16px) 0 0 -.04em;
  font: 500 clamp(2.6rem, 5.6vw, 4.4rem)/1 var(--display); letter-spacing: -.04em; color: var(--navy);
  animation: rise .9s var(--ease) both;
}
.dhero__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start;
  margin-top: clamp(28px, 4vw, 48px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line);
}
.dhero__lead { font: 400 clamp(1.35rem, 2.3vw, 1.85rem)/1.3 var(--display); letter-spacing: -.02em; color: var(--navy); max-width: 26ch; }
/* tekst levo, animirana dokumentacija desno */
.dhero__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.dhero__text { display: flex; flex-direction: column; gap: 18px; }
.dhero__text .dhero__title { margin-top: 0; }
@media (max-width: 900px) { .dhero__top { grid-template-columns: 1fr; } }

/* ---------- Dokumentacija u izradi (video u petlji) ---------- */
.ddoc { margin: 0; padding: clamp(12px, 1.6vw, 18px); border: 1px solid var(--line); border-radius: var(--r); background: #FFFFFF; }
.ddoc__media { position: relative; overflow: hidden; border-radius: 2px; aspect-ratio: 4 / 3; background: #E9E6E1 url("../assets/daniciceva-dokumentacija.jpg") center / cover no-repeat; }
.ddoc__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ddoc__tag {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px; border-radius: 99px; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px -8px rgba(15, 28, 48, .35);
  font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
}
.ddoc__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--navy); animation: docPulse 1.8s ease-in-out infinite; }
/* faze pripreme */
.ddoc__steps { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ddoc__step { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ddoc__ic { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(23, 42, 70, .25); }
.ddoc__ic .ic { width: 11px; height: 11px; }
.ddoc__step--done .ddoc__ic { background: var(--navy); border-color: var(--navy); color: var(--sand); }
.ddoc__step--active .ddoc__ic { border-color: var(--navy); }
.ddoc__step--active .ddoc__ic::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); animation: docPulse 1.8s ease-in-out infinite; }
.ddoc__name { color: var(--ink); }
.ddoc__step--todo .ddoc__name { color: var(--muted); }
.ddoc__state { font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ddoc__step--active .ddoc__state { color: var(--navy); }
@keyframes docPulse { 0%, 100% { transform: scale(.7); opacity: .55; } 50% { transform: scale(1); opacity: 1; } }
.dhero__side { display: flex; flex-direction: column; gap: 14px; color: var(--muted); }
.dhero__side .btn-row { margin-top: 8px; }
.dfacts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(36px, 5vw, 64px) 0 0;
  border-top: 1px solid var(--line);
}
.dfacts div { padding: 22px 20px 26px 0; }
.dfacts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.dfacts dt { font: 700 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.dfacts dd { margin: 10px 0 0; font: 500 1.6rem/1.05 var(--display); letter-spacing: -.025em; color: var(--navy); }
@media (max-width: 900px) {
  .dhero__grid { grid-template-columns: 1fr; }
  .dfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dfacts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .dfacts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
.dtypes { border-top: 1px solid var(--line); }

/* kartice tipova (link na stranu sa 3D modelom) */
/* 4 u redu (kompaktne kartice); na telefonu 2 u redu */
.dtypes__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.3vw, 18px); }
.dtypes__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .dtypes__grid, .dtypes__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dtype {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  transition: border-color .3s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease), opacity .8s var(--ease);
}
.dtype:hover { border-color: rgba(23, 42, 70, .4); box-shadow: var(--shadow); transform: translateY(-2px); }
.dtype__top { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 0; }
.dtype__n { font: 700 10.5px/1 var(--sans); letter-spacing: .16em; color: var(--muted); }
.dtype__3d { padding: 4px 7px; border-radius: 99px; border: 1px solid rgba(23, 42, 70, .25); font: 700 9.5px/1 var(--sans); letter-spacing: .14em; color: var(--navy); }
.dtype__plan { display: grid; place-items: center; padding: 8px 14px; aspect-ratio: 4 / 3; }
.dtype__plan svg { width: 100%; height: 100%; }
.dtype__body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.dtype__name { font: 500 1rem/1.25 var(--display); letter-spacing: -.01em; color: var(--navy); }
.dtype__area { font: 500 1.4rem/1.05 var(--display); letter-spacing: -.025em; color: var(--navy); }
.dtype__meta { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.dtype__cta { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--navy); }
.dtype__cta .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.dtype:hover .dtype__cta .ic { transform: translateX(4px); }

/* 2D osnova (js/plans.js) — arhitektonski crtež */
.tplan { display: block; width: 100%; height: auto; }
.tp-floor--wood { fill: #F7F2EA; }
.tp-floor--tile { fill: #EEF0F1; }
.tp-tile { fill: none; stroke: rgba(23, 42, 70, .08); stroke-width: 1; }
.tp-hatch { stroke: rgba(23, 42, 70, .2); stroke-width: 1.2; }
.tp-rail { stroke: var(--navy); stroke-width: 2; }
.tp-wall { fill: var(--navy); }
.tp-win { fill: #FFFFFF; stroke: var(--navy); stroke-width: 1.2; }
.tp-glass { stroke: #7FA3BD; stroke-width: 1.6; }
.tp-door { stroke: var(--navy); stroke-width: 1.6; }
.tp-swing { fill: none; stroke: rgba(23, 42, 70, .35); stroke-width: 1; stroke-dasharray: 3 3; }
.tp-furn { fill: none; stroke: #C6BAA6; stroke-width: 1.2; }
.tp-furn--fill { fill: rgba(198, 186, 166, .16); }
.tp-furn--l { fill: none; stroke: #C6BAA6; stroke-width: 1; }
.tp-label { font: 700 10px var(--sans); letter-spacing: .08em; text-transform: uppercase; fill: var(--navy); text-anchor: middle; }
.tp-label--s { font-size: 8.5px; letter-spacing: .04em; }
.tp-area { font: 500 11px var(--sans); fill: var(--muted); text-anchor: middle; }
.tp-area--t { font-weight: 700; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; fill: var(--navy); }

/* strana tipa stana: 3D prikaz levo, specifikacija desno */
.uhero { padding: calc(var(--header-h) + clamp(20px, 3vw, 36px)) 0 clamp(48px, 6vw, 84px); }
.ulayout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 18px; }
.uview { position: sticky; top: calc(var(--header-h) + 16px); }
.uview__stage {
  position: relative; aspect-ratio: 4 / 3.1; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r);
  background: radial-gradient(120% 90% at 50% 40%, #FFFFFF 0%, #F3EFE8 100%);
}
.u3d { position: absolute; inset: 0; touch-action: none; cursor: grab; }
.u3d:active { cursor: grabbing; }
.u3d canvas { display: block; width: 100%; height: 100%; }
.u3d[hidden], .uplan[hidden] { display: none; }
.uplan { position: absolute; inset: 0; display: grid; place-items: center; padding: 70px clamp(16px, 4vw, 48px) 24px; background: #FFFFFF; }
.uplan .tplan { width: 100%; height: 100%; }
.u3d__labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.u3d__labels[hidden] { display: none; }
.u3d__label {
  position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center;
  padding: 5px 9px; border-radius: 3px; background: rgba(255, 255, 255, .9); box-shadow: 0 2px 10px -4px rgba(15, 28, 48, .3);
  font: 700 9.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); white-space: nowrap;
  transition: opacity .2s;
}
.u3d__label b { font-weight: 500; font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.uview__bar { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; }
.uview__bar > * { pointer-events: auto; }
.uview__seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 14px -8px rgba(15, 28, 48, .3); }
.uview__seg[hidden] { display: none; }
.uview__seg button { border: 0; background: none; padding: 8px 14px; border-radius: 99px; font: 600 13px/1 var(--sans); color: var(--muted); }
.uview__seg button[aria-selected="true"] { background: var(--navy); color: #FFFFFF; }
.uview__tools { display: flex; gap: 6px; }
.uview__btn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .94); color: var(--navy); font: 500 18px/1 var(--sans);
}
.uview__btn .ic { width: 16px; height: 16px; }
.uview__btn:hover { border-color: var(--navy); }
.uview__hint { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 12px; color: var(--muted); pointer-events: none; padding: 0 12px; }
[data-mode="plan"] .uview__tools, [data-mode="plan"] .uview__hint,
[data-mode="render"] .uview__tools, [data-mode="render"] .uview__hint { display: none; }
.urender { position: absolute; inset: 0; margin: 0; background: #F2F2F0; } /* ista boja kao pozadina rendera */
.urender[hidden] { display: none; }
.urender .urender__img { position: absolute; inset: 0; width: 100%; height: 100%; box-sizing: border-box; object-fit: contain; padding: 56px 12px 36px; }
.urender figcaption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 12px; color: var(--muted); padding: 0 12px; }
/* render na kartici tipa */
.dtype__plan--img { position: relative; padding: 0; background: #F2F2F0; overflow: hidden; }
.dtype__plan--img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform .6s var(--ease); }
.dtype:hover .dtype__plan--img img { transform: scale(1.1); }
.dtype__tag {
  position: absolute; left: 10px; bottom: 8px; padding: 3px 7px; border-radius: 99px; background: rgba(255, 255, 255, .9);
  font: 700 9px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.dtypes__note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
/* status na kartici (Slobodan / Rezervisan / Prodato) */
.dtype__st { padding: 4px 7px; border-radius: 99px; font: 700 9px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.dtype__st--slobodan { background: var(--navy); color: var(--sand); }
.dtype__st--rezervisan { background: var(--beige); color: var(--muted); }
.dtype__st--prodato { border: 1px solid rgba(23, 42, 70, .25); color: var(--muted); }
.dtype__st--plan { border: 1px dashed rgba(23, 42, 70, .4); color: var(--navy); }
.dtype__top { justify-content: flex-end; }
.dtype.is-flash { animation: unitflash 2.4s var(--ease); } /* klik na sprat u animaciji zgrade */
/* galerija rendera na strani stana */
.urender__img[hidden] { display: none; }
.urender__thumbs { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.urender__thumbs button { width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: #FFFFFF; overflow: hidden; opacity: .7; transition: opacity .2s, border-color .2s; }
.urender__thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--navy); }
.urender__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.urender:has(.urender__thumbs) .urender__img { padding-bottom: 70px; }
.urender:has(.urender__thumbs) figcaption { bottom: 64px; }
.uplan img { position: absolute; inset: 0; width: 100%; height: 100%; box-sizing: border-box; object-fit: contain; padding: 60px 16px 16px; }
/* prostorije numerisane kao na osnovi */
.uspec__rooms--num i {
  display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 10px; border-radius: 50%;
  background: var(--sand); color: var(--navy); font: 700 10.5px/1 var(--sans); font-style: normal;
}
.uview__note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

.uspec { display: flex; flex-direction: column; gap: 14px; }
.uspec .eyebrow { margin-top: 2px; }
.uspec__title { font: 500 clamp(2.3rem, 4.4vw, 3.4rem)/1.02 var(--display); letter-spacing: -.035em; color: var(--navy); }
.uspec__lead { color: var(--muted); font-size: 1.02rem; }
.uspec__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.uspec__stats div { padding: 16px 12px 16px 0; }
.uspec__stats div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.uspec__stats dt { font: 700 10px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.uspec__stats dd { margin: 8px 0 0; font: 500 1.9rem/1 var(--display); letter-spacing: -.03em; color: var(--navy); }
.uspec__stats small { margin-left: 3px; font: 600 13px var(--sans); letter-spacing: 0; color: var(--muted); }
.uspec__h { margin-top: 10px; font: 700 11px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.uspec__rooms { list-style: none; margin: 0; padding: 0; }
.uspec__rooms li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.uspec__rooms b { font-weight: 600; color: var(--navy); white-space: nowrap; }
.uspec__cta { margin-top: 12px; padding: 20px; border-radius: var(--r); background: var(--sand); display: flex; flex-direction: column; gap: 14px; }
.uspec__cta p { color: var(--navy); font-weight: 500; }
.uspec__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.uspec__nav a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--navy); }
.uspec__nav .ic { width: 16px; height: 16px; }
.ic--flip { transform: scaleX(-1); }
@media (max-width: 1000px) {
  .ulayout { grid-template-columns: 1fr; }
  .uview { position: static; }
  .uview__stage { aspect-ratio: 1 / 1; }
}
@media (max-width: 480px) {
  .uspec__cta .btn { flex: 1 1 100%; }
  .uview__seg button { padding: 8px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
