:root {
  --ink: #141416;
  --ink-2: #1f1f23;
  --ink-3: #2b2b31;
  --paper: #f6f3ec;
  --paper-2: #ece7dc;
  --white: #ffffff;
  --yellow: #ffcc44;
  --yellow-2: #f2b705;
  --olive: #6b6f3c;
  --muted: #6d6a63;
  --muted-dark: #a3a09a;
  --line: rgba(20, 20, 22, .12);
  --line-dark: rgba(255, 255, 255, .12);
  --ok: #3f8f5a;
  --warn: #c98a12;
  --bad: #b3452f;
  --radius: 4px;
  --wrap: 1240px;
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.08; margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--yellow-2); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--yellow-2); }
.dark .eyebrow { color: var(--muted-dark); }
.dark .eyebrow::before { background: var(--yellow); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 15px 26px; border: 0; border-radius: var(--radius);
  font: 600 15px/1 var(--body); text-decoration: none; transition: background .2s, color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-2); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); }
.dark .btn-ghost:hover { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-3); }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: var(--muted-dark); font-size: 13px; }
.topbar .wrap { display: flex; gap: 28px; align-items: center; height: 38px; }
.topbar a { text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.topbar a:hover { color: var(--yellow); }
.topbar svg { width: 14px; height: 14px; color: var(--yellow); }
.topbar .right { margin-left: auto; }
@media (max-width: 760px) { .topbar .hide-sm { display: none; } .topbar .wrap { gap: 18px; } }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(20, 20, 22, .96);
  backdrop-filter: blur(10px); color: var(--white); border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; height: 76px; gap: 32px; }
.logo img { height: 38px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  text-decoration: none; padding: 10px 14px; font-size: 15px; font-weight: 500; color: #d9d7d2; border-radius: var(--radius);
  position: relative;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--yellow);
}
.nav .btn { margin-left: 12px; padding: 12px 18px; color: var(--ink); }
.nav .btn::after { display: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--white); padding: 8px; }
.menu-btn svg { width: 28px; height: 28px; }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px 16px 24px; border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 16px 4px; border-bottom: 1px solid var(--line-dark); font-size: 17px; }
  .nav a[aria-current="page"]::after { left: 4px; right: auto; width: 24px; bottom: 10px; }
  .nav .btn { margin: 18px 0 0; border: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,20,22,.94) 0%, rgba(20,20,22,.78) 38%, rgba(20,20,22,.15) 72%, rgba(20,20,22,0) 100%),
              linear-gradient(0deg, rgba(20,20,22,.6) 0%, rgba(20,20,22,0) 35%);
}
.hero .wrap { position: relative; min-height: min(86vh, 820px); display: flex; flex-direction: column; justify-content: center; padding-top: 80px; padding-bottom: 140px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 88px); font-weight: 800; max-width: 14ch; margin: 22px 0 24px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); color: #d7d4ce; max-width: 46ch; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 760px) {
  .hero-media::after { background: linear-gradient(0deg, rgba(20,20,22,.96) 30%, rgba(20,20,22,.5) 70%, rgba(20,20,22,.2) 100%); }
  .hero .wrap { justify-content: flex-end; min-height: 88vh; padding-bottom: 150px; }
}

.stats {
  position: relative; margin-top: -92px; z-index: 2;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white);
  border-radius: var(--radius); box-shadow: 0 24px 60px -24px rgba(20,20,22,.35);
}
.stat { padding: 30px 30px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 800 44px/1 var(--head); letter-spacing: -.03em; }
.stat b sup { font-size: 22px; color: var(--yellow-2); top: -.8em; margin-left: 2px; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat { padding: 22px 20px; }
  .stat b { font-size: 34px; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 120px 0; }
.section.tight { padding: 88px 0; }
.dark { background: var(--ink); color: var(--white); }
.dark-2 { background: var(--ink-2); }
.paper-2 { background: var(--paper-2); }
.white { background: var(--white); }
@media (max-width: 760px) { .section { padding: 80px 0; } .section.tight { padding: 64px 0; } }

.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(34px, 4.2vw, 56px); font-weight: 800; margin-top: 16px; }
.sec-head p { color: var(--muted); max-width: 52ch; margin: 0; }
.dark .sec-head p { color: var(--muted-dark); }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; } }

/* About */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
.about h2 { font-size: clamp(34px, 4.2vw, 56px); font-weight: 800; margin: 16px 0 0; }
.about .body p { color: #3b3935; font-size: 17px; }
.about .body p:first-child { font-size: 21px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); margin-top: 40px; border: 1px solid var(--line); }
.values div { background: var(--paper); padding: 26px; }
.values h3 { font-size: 20px; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.values h3::before { content: ""; width: 10px; height: 10px; border: 2px solid var(--yellow-2); }
.values p { font-size: 15px !important; color: var(--muted) !important; margin: 0; font-weight: 400 !important; line-height: 1.6 !important; }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 600px) { .values { grid-template-columns: 1fr; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.service { background: var(--ink); padding: 40px 34px 44px; transition: background .25s; }
.service:hover { background: var(--ink-2); }
.service .num { font: 700 14px/1 var(--head); color: var(--yellow); letter-spacing: .1em; }
.service svg { width: 44px; height: 44px; color: var(--yellow); margin: 34px 0 26px; stroke-width: 1.4; }
.service h3 { font-size: 23px; margin-bottom: 14px; }
.service p { color: var(--muted-dark); margin: 0; font-size: 15.5px; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } .service { padding: 32px 24px; } .service svg { margin: 22px 0 18px; } }

/* Featured project banner */
.feature { display: grid; grid-template-columns: 7fr 5fr; min-height: 620px; background: var(--ink); color: var(--white); }
.feature-img { position: relative; overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.feature:hover .feature-img img { transform: scale(1.03); }
.feature-badge {
  position: absolute; top: 24px; left: 24px; background: var(--yellow); color: var(--ink);
  font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; padding: 10px 14px; border-radius: 2px;
}
.feature-body { padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; }
.feature-body h2 { font-size: clamp(32px, 3.6vw, 50px); font-weight: 800; margin: 16px 0 20px; }
.feature-body p { color: var(--muted-dark); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin: 18px 0 36px; padding: 26px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.kv dt { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-dark); }
.kv dd { margin: 4px 0 0; font: 700 26px/1.1 var(--head); }
.kv dd small { font-size: 15px; font-weight: 600; color: var(--muted-dark); }
@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; }
  .feature-img { aspect-ratio: 16/10; }
  .feature-body { padding: 44px 24px 56px; }
}

/* Projects */
.tabs { display: inline-flex; gap: 4px; background: var(--paper-2); padding: 4px; border-radius: 6px; margin-bottom: 32px; }
.tabs button {
  border: 0; background: transparent; padding: 11px 20px; border-radius: 4px; font-weight: 600; font-size: 14.5px; color: var(--muted);
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.dark .tabs { background: var(--ink-3); }
.dark .tabs button { color: var(--muted-dark); }
.dark .tabs button[aria-selected="true"] { background: var(--yellow); color: var(--ink); }

/* Kartice projekata – jednake visine u retku */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.project {
  display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; text-align: left;
  background: var(--white); border-radius: var(--radius); overflow: hidden; color: inherit;
  transition: transform .25s, box-shadow .25s; cursor: pointer;
}
.project:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -22px rgba(20,20,22,.35); }
.project .ph { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); position: relative; flex: none; }
.project .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.project:hover .ph img { transform: scale(1.04); }
.project .ph::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(0deg, rgba(20,20,22,.35), transparent); opacity: 0; transition: opacity .3s;
}
.project:hover .ph::after { opacity: 1; }
.project .pb { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.project .tag { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); }
.project h3 { font-size: 19px; line-height: 1.3; margin: 8px 0 10px; letter-spacing: -.005em; }
.project p {
  color: var(--muted); font-size: 14.5px; margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
}
.project .foto { font-size: 13px; color: var(--muted); white-space: nowrap; }
.project .foto::before { content: "◼ "; color: var(--yellow-2); font-size: 9px; vertical-align: 2px; }
@media (max-width: 1000px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .projects { grid-template-columns: 1fr; } }

.project-list { display: none; }
.project-list li { break-inside: avoid; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; display: flex; gap: 14px; }
.project-list li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--yellow-2); margin-top: 8px; }
@media (max-width: 960px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .projects { grid-template-columns: 1fr; } .projects .project:first-child { grid-column: auto; } .project-list { columns: 1; } }

/* Careers */
.careers { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; background: var(--yellow); padding: 56px 60px; border-radius: var(--radius); }
.careers h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; }
.careers p { margin: 12px 0 0; max-width: 56ch; color: #3a3219; }
@media (max-width: 760px) { .careers { grid-template-columns: 1fr; padding: 36px 24px; } }

/* Contact */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; }
.contact h2 { font-size: clamp(34px, 4.2vw, 56px); font-weight: 800; margin: 16px 0 22px; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.contact-list .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--ink-3); display: grid; place-items: center; color: var(--yellow); }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--muted-dark); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; }
.contact-list a, .contact-list span { font-size: 17px; text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--yellow); }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; gap: 40px; } }

.form { position: relative; background: var(--white); color: var(--ink); padding: 44px; border-radius: var(--radius); }
.form h3 { font-size: 26px; margin-bottom: 6px; }
.form > p { color: var(--muted); font-size: 15px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.fgrid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 13px 14px; border: 1.5px solid #d9d4c8; border-radius: var(--radius);
  background: var(--paper); color: var(--ink); transition: border-color .15s, background .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); background: var(--white); }
.check { display: flex; gap: 12px; font-size: 13.5px; color: var(--muted); align-items: flex-start; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.form .btn { width: 100%; margin-top: 8px; }
.form-ok { display: none; padding: 16px; background: #eaf3ec; color: #245236; border-radius: var(--radius); font-size: 14.5px; margin-top: 16px; }
.form-ok.err { background: #fbecea; color: #7a2a1d; }
.form-ok a { color: inherit; font-weight: 600; }
@media (max-width: 600px) { .form { padding: 28px 20px; } .fgrid { grid-template-columns: 1fr; } }

/* Certifikati i oznake */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.badge-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; display: flex; align-items: center; gap: 18px; }
.badge-card img { height: 78px; width: auto; }
.badge-card div { max-width: 26ch; }
.badge-card b { display: block; font: 700 15px/1.3 var(--head); }
.badge-card span { font-size: 13px; color: var(--muted); line-height: 1.45; display: block; margin-top: 4px; }
@media (max-width: 600px) { .badge-card { width: 100%; } .badge-card img { height: 62px; } }

/* Footer */
.site-footer { background: #0e0e10; color: var(--muted-dark); font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; padding: 72px 0 56px; }
.foot-grid h4 { color: var(--white); font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--yellow); }
.foot-grid .logo img { height: 34px; margin-bottom: 20px; }
.foot-bottom { border-top: 1px solid var(--line-dark); padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; padding: 56px 0 40px; } }

/* ---------- Katalog ---------- */
.page-hero { position: relative; color: var(--white); background: var(--ink); overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,20,22,.95) 0%, rgba(20,20,22,.55) 50%, rgba(20,20,22,.25) 100%); }
.page-hero .wrap { position: relative; min-height: 640px; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 64px; }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 76px); font-weight: 800; margin: 18px 0 18px; max-width: 16ch; }
.page-hero p { color: #d7d4ce; max-width: 58ch; font-size: 18px; }
.crumbs { font-size: 13.5px; color: #cfccc6; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }
.facts { display: flex; gap: 0; margin-top: 28px; flex-wrap: wrap; border-top: 1px solid var(--line-dark); }
.facts div { padding: 22px 36px 0 0; margin-right: 36px; }
.facts b { display: block; font: 800 32px/1 var(--head); }
.facts span { font-size: 13px; color: var(--muted-dark); }
@media (max-width: 600px) { .page-hero .wrap { min-height: 560px; padding-bottom: 44px; } .facts div { padding-right: 0; margin-right: 28px; } .facts b { font-size: 26px; } }

.subnav { position: sticky; top: 76px; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; text-decoration: none; padding: 18px 14px; font-size: 14.5px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.active { color: var(--ink); border-color: var(--yellow-2); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery button { border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery button:hover img { transform: scale(1.04); }
.gallery button { aspect-ratio: 1728 / 896; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; gap: 10px; } }

.loc { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
.loc h2 { font-size: clamp(32px, 3.8vw, 50px); font-weight: 800; margin: 16px 0 22px; }
.loc p { color: #3b3935; }
.loc .map { position: relative; border-radius: var(--radius); overflow: hidden; border: 0; padding: 0; background: var(--paper-2); }
.map-open {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 11px 16px; border-radius: var(--radius); box-shadow: 0 6px 18px -6px rgba(20,20,22,.4);
}
.map-open:hover { background: var(--yellow); }
.map-open svg { width: 16px; height: 16px; }
.loc .map iframe { display: block; width: 100%; height: 520px; border: 0; }
@media (max-width: 960px) { .loc .map iframe { height: 380px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { font-size: 13.5px; padding: 8px 14px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); }
@media (max-width: 960px) { .loc { grid-template-columns: 1fr; gap: 32px; } }

/* Explorer */
.explorer { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.floor-plan { background: var(--white); border-radius: var(--radius); padding: 18px; position: sticky; top: 150px; }
.floor-plan .fp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
.floor-plan .fp-head b { font: 700 18px var(--head); }
.floor-plan .fp-head button { background: none; border: 0; font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.floor-plan .fp-head button svg { width: 16px; height: 16px; }
.floor-plan img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border-radius: 2px; cursor: zoom-in; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.seg { display: inline-flex; background: var(--paper-2); padding: 4px; border-radius: 6px; gap: 2px; }
.seg button { border: 0; background: none; padding: 9px 14px; border-radius: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.filters .count { margin-left: auto; font-size: 14px; color: var(--muted); }

.unit-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.unit-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.unit-table td { padding: 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.unit-table tbody tr { cursor: pointer; transition: background .15s; }
.unit-table tbody tr:hover { background: #fff8e2; }
.unit-table tbody tr:last-child td { border-bottom: 0; }
.unit-table .name { font-weight: 700; font-family: var(--head); font-size: 17px; }
.unit-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.unit-table .go { text-align: right; color: var(--muted); }
.unit-table .go svg { width: 18px; height: 18px; vertical-align: middle; }
.unit-table .flag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 3px 7px; margin-left: 6px; border-radius: 2px; background: var(--paper-2); color: var(--muted); vertical-align: 2px; font-family: var(--body); }
@media (max-width: 1000px) { .explorer { grid-template-columns: 1fr; } .floor-plan { position: static; } }
@media (max-width: 560px) { .unit-table .hide-xs { display: none; } .unit-table td, .unit-table th { padding: 13px 10px; } .filters .count { margin-left: 0; width: 100%; } }

.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.status.rezerviran::before { background: var(--warn); }
.status.prodan { color: var(--muted); }
.status.prodan::before { background: var(--bad); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(20,20,22,.35); }
.card .ci { aspect-ratio: 16/10; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); padding: 10px; }
.card .ci img { width: 100%; height: 100%; object-fit: contain; }
.card .cb { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card .ct { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card h3 { font-size: 22px; }
.card .meta { display: flex; gap: 18px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.card .meta b { color: var(--ink); font-weight: 700; }
.card .cf { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.card .cf span:last-child { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.card .cf svg { width: 16px; height: 16px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.plan-card { background: var(--white); border-radius: var(--radius); padding: 22px; border: 0; text-align: left; color: inherit; }
.plan-card h3 { font-size: 20px; margin-bottom: 4px; }
.plan-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.plan-card img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; cursor: zoom-in; }
@media (max-width: 760px) { .split2 { grid-template-columns: 1fr; } }

/* ---------- Detalj stana ---------- */
.unit-hero { background: var(--ink); color: var(--white); padding: 44px 0 0; }
.unit-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 22px 0 36px; }
.unit-top h1 { font-size: clamp(44px, 6vw, 80px); font-weight: 800; }
.unit-top .sub { color: var(--muted-dark); font-size: 17px; margin-top: 10px; }
.unit-top .pn { display: flex; gap: 10px; }
.unit-top .pn a { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-dark); text-decoration: none; }
.unit-top .pn a:hover { background: var(--yellow); color: var(--ink); box-shadow: none; }
.unit-top .pn svg { width: 20px; height: 20px; }
.unit-stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-dark); }
.unit-stats div { padding: 24px 20px 28px 0; }
.unit-stats div + div { padding-left: 20px; border-left: 1px solid var(--line-dark); }
.unit-stats small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-dark); margin-bottom: 8px; }
.unit-stats b { font: 700 28px/1 var(--head); }
.unit-stats b small { display: inline; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--muted-dark); margin: 0; }
@media (max-width: 860px) {
  .unit-stats { grid-template-columns: repeat(2, 1fr); }
  .unit-stats div, .unit-stats div + div { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .unit-stats div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-dark); }
  .unit-stats div:nth-child(1), .unit-stats div:nth-child(2) { border-top: 0; }
  .unit-stats b { font-size: 23px; }
  .unit-stats div:last-child { grid-column: span 2; }
}

.unit-main { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.panel { background: var(--white); border-radius: var(--radius); padding: 28px; }
.panel h2 { font-size: 24px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel h2 button { font: 500 13px var(--body); background: none; border: 0; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; letter-spacing: 0; }
.panel h2 button svg { width: 16px; height: 16px; }
.panel .plan-img { cursor: zoom-in; width: 100%; }
.rooms { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rooms th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.rooms th.r, .rooms td.r { text-align: right; font-variant-numeric: tabular-nums; }
.rooms td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.rooms td small { display: block; color: var(--muted); font-size: 12.5px; }
.rooms tfoot td { border: 0; padding-top: 18px; font-weight: 700; font-size: 16px; }
.rooms tfoot td.r { font: 800 24px var(--head); }
.note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 100px; }
.cta-box { background: var(--yellow); border-radius: var(--radius); padding: 28px; }
.cta-box h3 { font-size: 24px; margin-bottom: 8px; }
.cta-box p { font-size: 15px; color: #3a3219; }
.cta-box .price { font: 800 30px var(--head); margin: 6px 0 18px; }
.cta-box .btn { width: 100%; }
.cta-box .btn + .btn { margin-top: 10px; }
.cta-box .btn-ghost:hover { background: var(--ink); color: var(--white); }
.pos { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pos button { border: 0; padding: 0; background: #fff; border-radius: 2px; overflow: hidden; cursor: zoom-in; }
.pos button img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; }
.pos figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.pos figure { margin: 0; }
@media (max-width: 1000px) { .unit-main { grid-template-columns: 1fr; } .side { position: static; } }
@media (max-width: 600px) { .panel { padding: 20px 16px; } .pos { grid-template-columns: 1fr; } }

.int-gallery { columns: 2; column-gap: 14px; }
.int-gallery button { display: block; width: 100%; break-inside: avoid; margin: 0 0 14px; border: 0; padding: 0; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); cursor: zoom-in; }
.int-gallery img { width: 100%; height: auto; display: block; transition: transform .6s ease; }
.int-gallery button:hover img { transform: scale(1.03); }
@media (min-width: 1100px) { .int-gallery { columns: 3; } }
@media (max-width: 600px) { .int-gallery { columns: 1; } }

.others { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .others { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(12,12,14,.96); display: none; color: var(--white); }
.lb.open { display: block; }
.lb-stage { position: absolute; inset: 64px 72px 72px; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.lb-stage img { width: 100%; height: 100%; object-fit: contain; user-select: none; transition: transform .15s ease; transform-origin: center; }
.lb-stage.zoom img { cursor: grab; transition: none; }
.lb button { position: absolute; background: rgba(255,255,255,.08); border: 0; color: var(--white); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.lb button:hover { background: var(--yellow); color: var(--ink); }
.lb button svg { width: 22px; height: 22px; }
.lb .x { top: 12px; right: 16px; }
.lb .prev { left: 14px; top: 50%; margin-top: -24px; }
.lb .next { right: 14px; top: 50%; margin-top: -24px; }
.lb .zi { top: 12px; right: 76px; }
.lb .cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 14px; color: var(--muted-dark); padding: 0 16px; }
@media (max-width: 600px) { .lb-stage { inset: 64px 8px 64px; } .lb .prev, .lb .next { top: auto; bottom: 10px; margin: 0; } .lb .cap { bottom: 70px; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
