/* Domišljato. Katalog: prozirno zaglavlje s padajućim pločama, scena u kojoj se tlocrt podiže u maketu, katalog s padajućim filterima.
   Stranica kuće: radni stol s tlocrtom i 3D-om. Kretanje odgovara na radnju korisnika; jedina samostalna animacija je naslovna scena. */
:root {
  /* paleta „vino i šafran”: topli pijesak, bijele plohe, tamno vino za tekst i gumbe, šafran za oznake */
  --bg: #f3ede6; --surface: #ffffff; --ground: #ebe2d8; --ink: #2a1a20; --muted: #74636a; --line: #e3d8ce;
  --accent: #9a2f4a; --on-accent: #fff6f2; --sel: #c9811a; --saffron: #f0a83a; --on-saffron: #2a1a20; --danger: #a23b2c; --scrim: rgba(42, 26, 32, .32);
  --plan-bg: #fdfaf6; --wall: #2f2026; --wall-int: #5c4a51; --win: #d7e4e8; --sky: #efe7de; --floor-filter: none;
  --nav-bg: rgba(42, 26, 32, .94); --nav-solid: #2a1a20; --nav-h: 48px; --pop-bg: rgba(255, 251, 247, .95);
  --nav-ink: #f6efe8; --nav-dim: rgba(246, 239, 232, .8); --nav-muted: #ab9aa0; --nav-hover: #f2b04a; --nav-dom: #f2b04a; --nav-spark: #ef8a63; --curtain: rgba(42, 26, 32, .25);
  --pop-hover: #f5ece3; --pop-line: rgba(70, 30, 40, .12); --pop-shadow: 0 18px 48px rgba(60, 25, 35, .18), 0 2px 6px rgba(60, 25, 35, .07);
  --m-lo: #cdbcb3; --m-hi: #f8f1ea; --m-cap: #2a1a20; --m-glass: rgba(150, 190, 205, .55); --m-shadow: rgba(60, 30, 35, .3);
  --soft-shadow: rgba(60, 30, 35, .12); --tile-shade: rgba(36, 18, 24, .72);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #161012; --surface: #201719; --ground: #2a1f23; --ink: #f4ece6; --muted: #b3a3a9; --line: #3a2b31;
  --accent: #e27b95; --on-accent: #26101a; --sel: #f2b04a; --saffron: #f2b04a; --on-saffron: #26101a; --danger: #ee8a7a; --scrim: rgba(0, 0, 0, .5);
  --plan-bg: #1d1517; --wall: #ecdfe2; --wall-int: #bba9af; --win: #3b4a50; --sky: #251b1e; --floor-filter: brightness(.58) saturate(.85);
  --nav-bg: rgba(20, 13, 16, .92); --nav-solid: #1a1114; --pop-bg: rgba(40, 30, 34, .95);
  --nav-ink: #f6efe8; --nav-dim: rgba(246, 239, 232, .8); --nav-muted: #a1939a; --nav-hover: #f2b04a; --nav-dom: #f2b04a; --nav-spark: #ef8a63; --curtain: rgba(0, 0, 0, .35);
  --pop-hover: #3b2c32; --pop-line: rgba(246, 239, 232, .1); --pop-shadow: 0 18px 48px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .3);
  --m-lo: #3f3237; --m-hi: #7f6f75; --m-cap: #f4ece6; --m-glass: rgba(120, 165, 185, .45); --m-shadow: rgba(0, 0, 0, .45);
  --soft-shadow: rgba(0, 0, 0, .4); --tile-shade: rgba(12, 6, 9, .78);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #161012; --surface: #201719; --ground: #2a1f23; --ink: #f4ece6; --muted: #b3a3a9; --line: #3a2b31;
  --accent: #e27b95; --on-accent: #26101a; --sel: #f2b04a; --saffron: #f2b04a; --on-saffron: #26101a; --danger: #ee8a7a; --scrim: rgba(0, 0, 0, .5);
  --plan-bg: #1d1517; --wall: #ecdfe2; --wall-int: #bba9af; --win: #3b4a50; --sky: #251b1e; --floor-filter: brightness(.58) saturate(.85);
  --nav-bg: rgba(20, 13, 16, .92); --nav-solid: #1a1114; --pop-bg: rgba(40, 30, 34, .95);
  --nav-ink: #f6efe8; --nav-dim: rgba(246, 239, 232, .8); --nav-muted: #a1939a; --nav-hover: #f2b04a; --nav-dom: #f2b04a; --nav-spark: #ef8a63; --curtain: rgba(0, 0, 0, .35);
  --pop-hover: #3b2c32; --pop-line: rgba(246, 239, 232, .1); --pop-shadow: 0 18px 48px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .3);
  --m-lo: #3f3237; --m-hi: #7f6f75; --m-cap: #f4ece6; --m-glass: rgba(120, 165, 185, .45); --m-shadow: rgba(0, 0, 0, .45);
  --soft-shadow: rgba(0, 0, 0, .4); --tile-shade: rgba(12, 6, 9, .78);
  color-scheme: dark; }

html, body { min-height: 100%; }
html { scroll-behavior: smooth; }
html.no-scroll, html.no-scroll body { overflow: hidden; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1480px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); box-sizing: border-box; }
.wrap.narrow { max-width: 1240px; }
h1, h2, h3, .h1 { font-family: var(--display); text-wrap: balance; margin: 0; }
.h1 { font-weight: 760; color: inherit; } /* naslov koji na stranici kuće ili kataloga nije glavni, pa nije <h1> */
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--sel); outline-offset: 2px; }
.eyebrow, dt, .sh, .pane-label { font: 600 12.5px/1.3 var(--body); color: var(--muted); }
.chev { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- gumbi ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px/1 var(--body); padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), border-color .2s, filter .2s, background-color .2s; }
.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.large { padding: 15px 26px; font-size: 16px; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.btn svg, .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.seg { position: relative; display: inline-flex; border-radius: 11px; padding: 3px; background: var(--ground); gap: 2px; flex-wrap: wrap; }
.seg button { position: relative; z-index: 1; font: 600 13px/1 var(--body); padding: 8px 13px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; transition: color .3s var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg-pill { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 8px; background: var(--surface); box-shadow: 0 1px 3px var(--soft-shadow), 0 0 0 .5px var(--soft-shadow); pointer-events: none; transition: transform .45s var(--ease), width .45s var(--ease), height .45s var(--ease), opacity .2s; }
.seg-pill.no-anim { transition: none; }

/* ---------- zaglavlje: mjere i ponašanje kao na apple.com (traka 44 px, ploča pune boje, stupci 88 px),
   boje tople: espresso podloga, krem slova, oker za isticanje ---------- */
.gnav { position: sticky; top: 0; z-index: 40; view-transition-name: gnav; color: var(--nav-ink); }
.gnav::before { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); transition: background-color .25s cubic-bezier(.4, 0, .6, 1); }
.gnav.fly-open::before, .gnav.mob-open::before { background: var(--nav-solid); }
.gnav .gnav-bar { position: relative; z-index: 3; height: var(--nav-h); display: flex; align-items: center; gap: 22px; max-width: 1064px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--nav-ink); text-decoration: none; font: 500 18px/1 var(--display); font-stretch: 106%; letter-spacing: -.02em; }
.brand svg { width: 22px; height: 22px; flex: none; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.brand .b-house { stroke: var(--nav-ink); stroke-width: 8; }
.brand .b-plan { stroke: var(--nav-dom); stroke-width: 7; }
.brand .b-spark { stroke: var(--nav-spark); stroke-width: 7; }
.brand b { font-weight: 800; color: var(--nav-dom); letter-spacing: -.01em; margin-right: .03em; }
.gnav-links { display: flex; gap: 6px; margin-left: 10px; }
.gnav-item { display: inline-flex; align-items: center; gap: 4px; height: var(--nav-h); font: 400 12.5px/1 var(--body); letter-spacing: -.01em; color: var(--nav-dim); background: none; border: 0; padding: 0 10px; cursor: pointer; text-decoration: none; transition: color .25s cubic-bezier(.4, 0, .6, 1); }
.gnav-item:hover, .gnav-item[aria-expanded="true"] { color: var(--nav-ink); }
.gnav-item .chev { width: 8px; height: 8px; opacity: .7; transition: transform .3s var(--ease); }
.gnav-item[aria-expanded="true"] .chev { transform: rotate(180deg); }
.gnav-tag { margin-left: auto; font: 400 12.5px var(--body); color: var(--nav-muted); }
.gnav-cta { margin-left: auto; background: var(--nav-dom); border-color: var(--nav-dom); color: #2A1A20; font-weight: 700; }
.gnav-cta:hover { background: #ffc46a; border-color: #ffc46a; color: #2A1A20; }
.band-head.sub { margin-top: 44px; }
.gnav-acct { color: var(--nav-ink); padding-right: 0; gap: 7px; }
.gnav-acct .acct-ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gnav-acct.is-in .acct-ic { color: var(--nav-hover, var(--nav-ink)); }
.mob-acct { margin-top: 10px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--nav-ink) 15%, transparent); }
.gnav-burger { display: none; margin-left: auto; width: 44px; height: 44px; margin-right: -12px; border: 0; background: none; position: relative; cursor: pointer; color: var(--nav-ink); }
.gnav-burger span { position: absolute; left: 14px; right: 14px; top: calc(50% - .6px); height: 1.2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease); }
.gnav-burger span:first-child { transform: translateY(-3.5px); }
.gnav-burger span:last-child { transform: translateY(3.5px); }
.gnav-burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.gnav-burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.fly { position: absolute; left: 0; right: 0; top: 100%; z-index: 2; background: var(--nav-solid); clip-path: inset(0 0 100% 0); transition: clip-path .32s cubic-bezier(.4, 0, .6, 1); }
.fly.is-open { clip-path: inset(0 0 -1px 0); }
.fly.swap { transition: none; }
.fly-in { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; justify-content: start; column-gap: 64px; padding-block: 36px 60px; max-width: 1064px; }
.gnav .fly-col ul.fly-tiles { grid-template-columns: repeat(3, 176px); gap: 18px; }
.gnav .fly-col ul.fly-tiles.two { grid-template-columns: repeat(2, 176px); }
.gnav .fly-col ul.fly-tiles.five { grid-template-columns: repeat(5, 172px); }
.gnav .fly-col a.fly-tile { display: grid; gap: 10px; align-items: start; font: 600 14px/1.25 var(--body); letter-spacing: 0; }
.fly-tile .shot { position: relative; display: block; width: 176px; height: 104px; border-radius: 12px; overflow: hidden; background: #2b2520; transition: transform .45s var(--ease); }
.fly-tile:hover .shot { transform: scale(1.035); }
.fly-tile .shot::before { background-image: linear-gradient(100deg, transparent 30%, rgba(255, 245, 230, .1) 50%, transparent 70%); }
.fly-tile em { display: block; margin-top: 3px; font: 400 12px/1.35 var(--body); font-style: normal; color: var(--nav-muted); }
.gnav .fly-n { font: 400 12px var(--body); color: var(--nav-muted); letter-spacing: 0; }
.gnav .fly-h { font: 400 12px/1.3 var(--body); color: var(--nav-muted); margin: 0 0 14px; }
.gnav .fly-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gnav .fly-col a { color: var(--nav-ink); text-decoration: none; font: 600 12.5px/1.35 var(--body); letter-spacing: -.01em; display: inline-flex; align-items: baseline; gap: 10px; transition: color .2s; }
.gnav .fly-col a:hover, .gnav .fly-col a:focus-visible { color: var(--nav-hover); }
.gnav .fly-col.big ul { gap: 8px; }
.gnav .fly-col.big a { font: 600 24px/28px var(--display); letter-spacing: .005em; }
.gnav .fly-m { font: 400 12px var(--body); font-variant-numeric: tabular-nums; color: var(--nav-muted); letter-spacing: 0; }
.gnav .fly-col .plain li { font: 400 12.5px/1.35 var(--body); color: var(--nav-dim); }
.fly li, .fly .fly-h { opacity: 0; transform: translateY(-4px); transition: opacity .25s cubic-bezier(.4, 0, .6, 1), transform .35s var(--ease); }
.fly.is-open li, .fly.is-open .fly-h { opacity: 1; transform: none; transition-delay: calc(80ms + var(--i, 0) * 25ms); }
.gnav-scrim { position: fixed; inset: 0; z-index: 35; background: var(--curtain); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); opacity: 0; transition: opacity .32s cubic-bezier(.4, 0, .6, 1); }
.gnav-scrim.is-open { opacity: 1; }
.mob { position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0; z-index: 2; background: var(--nav-solid); overflow: hidden; opacity: 0; transition: opacity .3s var(--ease); }
.mob.is-open { opacity: 1; }
.mob-panel { position: absolute; inset: 0; overflow-y: auto; padding: 18px max(32px, env(safe-area-inset-left, 0px)) 48px; transition: transform .5s var(--ease), opacity .35s var(--ease), visibility 0s; }
.mob-root ul { list-style: none; margin: 0; padding: 0; }
.mob-root li > a, .mob-root li > button { width: 100%; display: flex; justify-content: space-between; align-items: center; font: 600 28px/1.15 var(--display); color: var(--nav-ink); background: none; border: 0; padding: 9px 0; text-decoration: none; cursor: pointer; text-align: left; }
.mob-root li > a:hover, .mob-root li > button:hover { color: var(--nav-hover); }
.mob-root .chev { width: 14px; height: 14px; color: var(--nav-muted); }
.mob-root li, .mob-tag { opacity: 0; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.mob.is-open .mob-root li, .mob.is-open .mob-tag { opacity: 1; transform: none; transition-delay: calc(60ms + var(--i, 0) * 40ms); }
.mob-tag { margin: 28px 0 0; color: var(--nav-muted); font-size: 14px; --i: 5; }
.mob-sub { transform: translateX(100%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; }
.mob[data-sub] .mob-root { transform: translateX(-28%); opacity: 0; visibility: hidden; transition: transform .5s var(--ease), opacity .35s var(--ease), visibility 0s .5s; }
.mob[data-sub="kuce"] #mob-kuce, .mob[data-sub="stil"] #mob-stil, .mob[data-sub="cijene"] #mob-cijene { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
.mob-back { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--body); color: var(--nav-hover); background: none; border: 0; padding: 8px 0 20px; cursor: pointer; }
.mob-back .chev { width: 12px; height: 12px; transform: rotate(90deg); }
.mob .fly-col { margin-bottom: 32px; }
.mob .fly-col a { font-size: 17px; }
.mob .fly-col.big a { font-size: 28px; line-height: 1.2; }
.mob .fly-col .plain li { font-size: 17px; font-weight: 400; }
.mob .fly-col ul.fly-tiles, .mob .fly-col ul.fly-tiles.two, .mob .fly-col ul.fly-tiles.five { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mob .fly-col a.fly-tile { font-size: 14px; }
.mob .fly-tile .shot { width: 100%; height: auto; aspect-ratio: 16 / 10; }

/* ---------- naslovna scena ---------- */
.hero { position: relative; height: 250vh; }
.hero-pin { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); overflow: hidden; background: var(--sky); isolation: isolate; }
/* pozornica preko cijele širine (3D kuća), tekst lebdi iznad nje */
.hero-stage { position: absolute; inset: 0; z-index: 0; perspective: 1700px; perspective-origin: 50% 30%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.hero:not(.is-webgl) .hero-stage { left: 38%; }
.hero-stage.dragging { cursor: grabbing; }
.hero-3d { position: absolute; inset: 0; animation: h-fade 1.4s var(--ease) both; }
.hero-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-pin::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(72% 70% at 0% 0%, var(--sky) 16%, transparent 60%); opacity: .72; transition: opacity .6s var(--ease); }
.hero.is-3d .hero-pin::after { opacity: 0; }
.hero-grid { position: relative; z-index: 1; max-width: 1320px; padding-top: clamp(36px, 9vh, 108px); pointer-events: none; }
.hero-copy { max-width: 620px; pointer-events: auto; visibility: visible; transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s; }
.hero.is-webgl.is-3d .hero-copy { opacity: 0; transform: translateY(-28px); visibility: hidden; transition: opacity .45s var(--ease), transform .8s var(--ease), visibility 0s .45s; }
.hero h1, .hero .h1 { font-size: clamp(40px, min(5.6vw, 9.6vh), 86px); line-height: .98; font-weight: 760; font-stretch: 116%; letter-spacing: -.035em; max-width: 11ch; }
.hero-copy p { margin: 22px 0 0; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: clamp(18px, 4.5vh, 44px); z-index: 1; max-width: 1320px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; pointer-events: none; }
.hero-foot .btn { pointer-events: auto; background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hero-cap { position: relative; flex: 1 1 auto; height: 3.1em; margin: 0; font: 500 15px/1.55 var(--body); color: var(--muted); pointer-events: none; max-width: 52ch; }
.hero-cap b { color: var(--ink); font-weight: 600; }
.hero-cap span { position: absolute; left: 0; right: 0; bottom: 0; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.hero-cap span:last-child { opacity: 0; transform: translateY(10px); }
.hero.is-3d .hero-cap span:first-child { opacity: 0; transform: translateY(-10px); }
.hero.is-3d .hero-cap span:last-child { opacity: 1; transform: none; }
.hero-cap { transition: color .6s var(--ease); }
.hero.is-dusk .hero-cap { color: rgba(250, 240, 232, .82); }
.hero.is-dusk .hero-cap b { color: #fff; }
.model { --m: 30px; --tilt: 0; --spin: 0; --lift: 0; --sc: 1; position: absolute; left: 50%; top: 46%; width: calc(var(--W) * var(--m)); height: calc(var(--D) * var(--m)); transform-style: preserve-3d; transform: translate(-50%, -50%) scale(var(--sc)) rotateX(calc(var(--tilt) * 1deg)) rotateZ(calc(var(--spin) * 1deg)); will-change: transform; }
.model > * { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.model .hl { transform: translateZ(calc(var(--lift) * var(--z) * var(--m))); opacity: clamp(0, calc(var(--lift) * 14), 1); }
.model .hs { fill: var(--m-lo); fill: color-mix(in srgb, var(--m-hi) calc(var(--k) * 100%), var(--m-lo)); }
.model .hc { fill: var(--m-cap); }
.model .hg { fill: var(--m-glass); }
.model .hd { opacity: clamp(0, calc(1 - var(--lift) * 5), 1); }
.model .hd .hp { stroke: var(--wall); stroke-width: .03; stroke-linejoin: round; }
.model .hshadow i { position: absolute; border-radius: 6px; background: var(--m-shadow); filter: blur(calc(4px + var(--lift) * 18px)); opacity: calc(var(--lift) * .9); transform: translate(calc(var(--lift) * 12px), calc(var(--lift) * 18px)); }
.hero.is-drawing .model .hd .hp { animation: hp-draw 1s var(--ease) both; animation-delay: calc(150ms + var(--d) * 950ms); }
.hero.is-drawing .model .hfloor, .hero.is-drawing .model .hd .win { animation: h-fade 1s var(--ease) 1.05s both; }
@keyframes hp-draw { 0% { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; } 55% { stroke-dasharray: 1; stroke-dashoffset: 0; fill-opacity: 0; } 100% { stroke-dasharray: 1; stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes h-fade { from { opacity: 0; } }
@media (min-width: 821px) and (max-height: 800px) {
  .hero-copy p { display: none; }
  .hero-cta { margin-top: 22px; }
  .hero-cap { display: none; }
  .hero-foot { justify-content: flex-end; }
}
.hero.is-static { height: auto; }
.hero.is-static.is-webgl .hero-pin { height: min(820px, calc(100svh - var(--nav-h))); }
.hero.is-static .hero-pin { position: relative; top: 0; height: min(780px, calc(100svh - var(--nav-h))); }

/* ---------- naslovnica: pojasevi ---------- */
.band { padding-block: clamp(52px, 7vw, 96px); scroll-margin-top: var(--nav-h); }
.band.alt { background: var(--surface); }
.band.tight { padding-top: 0; }
.band h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.02; font-weight: 760; font-stretch: 112%; letter-spacing: -.03em; }
.band-lead { margin: 12px 0 0; color: var(--muted); font-size: 17px; max-width: 52ch; }
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.more-link { font: 600 14.5px var(--body); color: var(--accent); text-decoration: none; white-space: nowrap; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 24px; list-style: none; margin: 0 auto; padding-block: 20px; }
.trust li { display: flex; gap: 12px; align-items: center; font: 500 14.5px/1.3 var(--body); }
.trust svg, .ico { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* pločice: stilovi i broj soba, s 3D slikom kuće */
.tiles { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none; background: var(--sky); isolation: isolate; }
.tiles.wide .tile { aspect-ratio: 5 / 4; }
.tiles.six { --cols: 6; }
.tiles.six .tile b { font-size: 20px; }
.tile .shot { position: absolute; inset: 0; z-index: 0; } /* slika ispod sjene i teksta (pravilo .tile span inače daje z-index 2) */
.tile .shot img { transition: opacity .7s var(--ease), transform .8s var(--ease); }
.tile:hover .shot img { transform: scale(1.05); }
.tile::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, var(--tile-shade)); pointer-events: none; }
.tile b { position: absolute; left: 16px; right: 16px; bottom: 36px; z-index: 2; font: 760 23px/1.05 var(--display); font-stretch: 108%; letter-spacing: -.01em; }
.tile span { position: absolute; left: 16px; bottom: 14px; z-index: 2; font: 500 13px var(--body); opacity: .88; }
.tile.type { aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 16px 16px; }
.tile.type b, .tile.type span { position: relative; left: auto; right: auto; bottom: auto; }
.tile.type b { font-size: 21px; margin-bottom: 6px; }
.tile.type b i { display: block; font: 600 12.5px var(--body); font-style: normal; opacity: .78; margin-bottom: 5px; letter-spacing: 0; }
.tile.type span { font-size: 12.5px; line-height: 1.38; opacity: .9; }
.tile.type::after { background: linear-gradient(180deg, transparent 30%, rgba(20, 12, 15, .5) 58%, rgba(20, 12, 15, .92) 100%) !important; }
.tile.type .shot { position: absolute; inset: 0; left: 0; right: 0; bottom: 0; opacity: 1; } /* slika je ispod teksta, ne u toku kao oznake */
.tile.type .shot img { object-position: 50% 15%; }
.tile.type b, .tile.type span { text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
/* cijene planova: tipografske pločice, bez slike */
.budget { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.budget a { display: grid; gap: 6px; padding: 22px 22px 20px; border-radius: 18px; background: var(--surface); color: var(--ink); text-decoration: none; border: 1px solid var(--line); transition: border-color .25s, transform .35s var(--ease); }
.budget a:hover { border-color: var(--accent); }
.budget a:active { transform: scale(.985); }
.budget small { font: 500 13px var(--body); color: var(--muted); }
.budget b { font: 760 clamp(28px, 3vw, 40px)/1 var(--display); font-stretch: 112%; letter-spacing: -.02em; color: var(--accent); }
.budget span { font: 500 13.5px var(--body); color: var(--muted); }
/* tlocrt ili 3D: povlačenje razdjelnice */
.compare { position: relative; aspect-ratio: 16 / 8; border-radius: 22px; overflow: hidden; background: var(--plan-bg); user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; --x: 50%; }
.compare > div { position: absolute; inset: 0; display: grid; place-items: center; }
.compare .cmp-plan svg { width: 82%; height: 82%; }
.compare .cmp-3d { clip-path: inset(0 0 0 var(--x)); background: var(--sky); }
.compare .cmp-3d .shot { position: absolute; inset: 0; }
.compare .bar { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--surface); box-shadow: 0 0 0 1px var(--soft-shadow); z-index: 2; }
.compare .knob { position: absolute; top: 50%; left: var(--x); z-index: 3; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--surface); box-shadow: 0 4px 14px var(--soft-shadow); display: grid; place-items: center; }
.compare .knob svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 1.8; }
.compare .lab { position: absolute; top: 14px; z-index: 2; font: 600 12.5px var(--body); padding: 5px 10px; border-radius: 999px; background: var(--surface); color: var(--ink); }
.compare .lab.l { left: 14px; } .compare .lab.r { right: 14px; }
.cmp-cap { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- kartica kuće ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: 16px; overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.card:hover { box-shadow: 0 0 0 1px var(--line), 0 16px 36px var(--soft-shadow); }
.card:active { transform: scale(.985); }
.card .thumb { position: relative; display: block; width: 100%; aspect-ratio: 10 / 7; overflow: hidden; background: var(--sky); }
.card .thumb img { transition: opacity .7s var(--ease), transform .8s var(--ease); }
.card:hover .thumb img { transform: scale(1.04); }
.shot { position: relative; overflow: hidden; background: var(--sky); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .7s var(--ease); }
.shot.is-ready img { opacity: 1; }
.shot img:not([src]) { display: none; }
.shot::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--surface) 55%, transparent) 50%, transparent 70%); background-size: 220% 100%; animation: shot-wait 1.5s linear infinite; }
.shot.is-ready::before { content: none; }
.shot.is-plan { padding: 14px; box-sizing: border-box; background: var(--plan-bg); }
.shot.is-plan svg { width: 100%; height: 100%; display: block; }
.shot.is-missing img { opacity: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shot img { filter: brightness(.88) saturate(.92); } }
:root[data-theme="dark"] .shot img { filter: brightness(.88) saturate(.92); }
/* slika kuće izvana u opisu: na malom ekranu i u prikazu bez 3D-a zamjenjuje 3D model */
.ext-shot { margin: 16px 0 0; }
.ext-shot img { display: block; width: 100%; max-width: 480px; height: auto; border-radius: 14px; background: var(--sky); }
.ext-shot figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.work-main:has(#stage[data-view="split"]) .ext-shot, .work-main:has(#stage[data-view="3d"]) .ext-shot { display: none; }
@keyframes shot-wait { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.snap-stage { position: fixed; left: -10000px; top: 0; width: 800px; height: 560px; pointer-events: none; visibility: hidden; }
.badges { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; gap: 6px; }
.badge { font: 600 12px/1 var(--body); padding: 6px 9px; border-radius: 999px; background: var(--saffron); color: var(--on-saffron); }
.badge.new { background: var(--surface); color: var(--ink); }
.card .code { position: absolute; right: 10px; bottom: 10px; z-index: 2; font: 500 11.5px var(--mono); background: color-mix(in srgb, var(--surface) 88%, transparent); padding: 3px 7px; border-radius: 6px; color: var(--muted); }
.card-body { padding: 15px 17px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font: 700 19px/1.15 var(--display); font-stretch: 106%; letter-spacing: -.01em; }
.card .sub { margin: -6px 0 0; font-size: 13.5px; color: var(--muted); }
.specs-row { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font: 500 13px/1.2 var(--body); }
.specs-row li { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.specs-row svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card .pp { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); }
.pp small { font: 500 13px var(--body); color: var(--muted); }
.pp b { font: 760 20px/1 var(--display); font-stretch: 106%; color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- katalog ---------- */
.shop-head { padding-block: 34px 22px; }
.shop-head h1, .shop-head .h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1; font-weight: 760; font-stretch: 112%; letter-spacing: -.03em; }
.shop-head p { margin: 10px 0 0; color: var(--muted); font-size: 16.5px; max-width: 60ch; }
.shop { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 30px; align-items: start; padding-bottom: 72px; }
.filters { position: sticky; top: calc(var(--nav-h) + 14px); max-height: calc(100vh - var(--nav-h) - 28px); overflow: auto; overscroll-behavior: contain; padding-right: 4px; }
.filters-top { display: none; }
.fgroup { border-top: 1px solid var(--line); padding: 14px 0 12px; }
.fgroup:first-of-type { border-top: 0; padding-top: 0; }
.fgroup h3 { font: 600 14px var(--body); margin: 0 0 8px; }
label.fopt { flex-direction: row; align-items: center; gap: 10px; padding: 5px 0; font: 500 14.5px/1.2 var(--body); color: var(--ink); cursor: pointer; }
.fopt input { width: 17px; height: 17px; margin: 0; padding: 0; accent-color: var(--accent); flex: none; }
.fopt .n { margin-left: auto; color: var(--muted); font: 500 12.5px var(--mono); }
.fopt.zero { opacity: .42; }
.shop-bar { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 240px; max-width: 420px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; stroke: var(--muted); fill: none; stroke-width: 1.8; pointer-events: none; }
.search input { padding: 11px 14px 11px 38px; border-radius: 999px; background: var(--surface); font-size: 14.5px; border: 1px solid var(--line); }
.search input:focus { outline: none; border-color: var(--accent); }
#count { font: 500 14px var(--body); color: var(--muted); font-variant-numeric: tabular-nums; margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 13px var(--body); padding: 6px 8px 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; }
.chip:hover { border-color: var(--accent); }
.chip.clear { color: var(--accent); border-color: transparent; background: none; }
.btn-filters { display: none; }
.load-more { display: flex; justify-content: center; margin-top: 28px; }
.cards-empty { padding: 40px 0 8px; }
.cards-empty p { margin: 0 0 16px; font-size: 18px; }
.pick { position: relative; }
.pick-btn { display: inline-flex; align-items: center; gap: 6px; font: 500 14px/1 var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 11px 14px; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.pick-btn:hover { border-color: var(--muted); }
.pick-btn:active { transform: scale(.97); }
.pick-k { color: var(--muted); }
.pick.is-set .pick-btn { border-color: var(--accent); }
.pick .chev { transition: transform .35s var(--ease); }
.pick-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.pick-menu { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; min-width: 230px; margin: 0; padding: 6px; list-style: none; background: var(--pop-bg); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); border: 1px solid var(--pop-line); border-radius: 14px; box-shadow: var(--pop-shadow); transform-origin: top left; opacity: 0; transform: scale(.92) translateY(-6px); transition: opacity .2s var(--ease), transform .38s var(--ease); }
.pick-menu.to-right { left: auto; right: 0; transform-origin: top right; }
.pick-menu.is-open { opacity: 1; transform: none; }
.pick-menu li { display: flex; align-items: center; gap: 8px; padding: 9px 12px 9px 8px; border-radius: 9px; font: 500 14.5px/1.2 var(--body); color: var(--ink); cursor: pointer; outline: none; white-space: nowrap; }
.pick-menu li:hover, .pick-menu li:focus { background: var(--pop-hover); }
.pick-menu li:focus-visible { box-shadow: inset 0 0 0 2px var(--sel); }
.tick { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.pick-menu li[aria-selected="true"] .tick { opacity: 1; }

/* ---------- kako radi, pravila, podnožje ---------- */
.soon { margin: 26px 0 0; font: 500 14px var(--body); color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 36px; }
.steps > div { border-top: 1px solid var(--line); padding-top: 20px; }
.steps b { font: 760 46px/1 var(--display); font-stretch: 112%; color: var(--accent); }
.steps h3 { font-size: 23px; font-stretch: 110%; letter-spacing: -.01em; margin-block: 14px 8px; }
.steps p { margin: 0; color: var(--muted); }
.ruleset { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 30px 34px; margin-top: 36px; }
.ruleset > div { border-top: 1px solid var(--line); padding-top: 16px; }
.ruleset b { font: 700 19px/1.2 var(--display); font-stretch: 108%; color: var(--ink); }
.ruleset p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.foot-band { background: var(--nav-solid); color: var(--nav-dim); padding-block: 44px 52px; }
.foot-cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; margin-bottom: 30px; }
.foot-cols h3 { font: 600 13px var(--body); color: var(--nav-muted); margin: 0 0 12px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-cols a { color: var(--nav-ink); text-decoration: none; font-size: 14.5px; }
.foot-cols a:hover { color: var(--nav-hover); }
.foot-brand { font: 600 22px var(--display); color: var(--nav-ink); margin: 0 0 8px; }
.foot-brand b { color: var(--nav-dom); font-weight: 800; letter-spacing: -.01em; margin-right: .03em; }
.foot { margin: 0; color: var(--nav-muted); font-size: 13px; max-width: 90ch; }
.foot + .foot { margin-top: 10px; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .34s; animation-timing-function: var(--ease); }
::view-transition-group(plan) { animation-duration: .58s; animation-timing-function: var(--ease); }
#v-house .pane.three { view-transition-name: plan; }

/* ---------- stranica kuće ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 0; margin: 0; list-style: none; font: 500 13px var(--body); color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.hbar { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; padding-block: 10px 16px; }
.hbar .title { flex: 1 1 220px; min-width: 0; }
.hbar h1, .hbar .h1 { font-size: clamp(28px, 3vw, 38px); font-stretch: 114%; font-weight: 760; line-height: 1.05; letter-spacing: -.02em; }
.hbar .badges { position: static; display: inline-flex; vertical-align: middle; margin-left: 8px; }
.hbar .sub { font: 500 14px var(--body); color: var(--muted); }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--body); color: var(--muted); text-decoration: none; padding: 8px 10px 8px 4px; border-radius: 6px; }
.icon-btn:hover { color: var(--ink); }
.work { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; padding-bottom: 26px; }
.stage { position: relative; height: clamp(440px, 70vh, 820px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--plan-bg); }
.is-editing .stage { border-color: var(--sel); box-shadow: 0 0 0 1px var(--sel); }
.stage[data-view="plan"] { grid-template-columns: minmax(0, 1fr); }
.stage[data-view="plan"] .three { display: none; }
.stage[data-view="3d"] { grid-template-columns: minmax(0, 1fr); }
.stage[data-view="3d"] .plan { display: none; }
.pane { position: relative; min-width: 0; min-height: 0; }
.pane.three { border-left: 1px solid var(--line); background: var(--sky); }
#plan { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
#three { position: absolute; inset: 0; touch-action: pan-y; }
/* prst smije skrolati stranicu preko tlocrta i 3D-a; tek uređivanje i šetnja hvataju svaki dodir */
.is-editing #plan, .is-walking #three { touch-action: none; }
#three canvas { display: block; width: 100% !important; height: 100% !important; }
.pane-label { position: absolute; left: 12px; top: 10px; pointer-events: none; background: color-mix(in srgb, var(--plan-bg) 80%, transparent); padding: 3px 6px; border-radius: 4px; }
.tools { position: absolute; display: flex; gap: 6px; flex-wrap: wrap; }
.tools.tr { right: 10px; top: 8px; justify-content: flex-end; }
.tools.bl { left: 10px; bottom: 10px; right: 10px; }
.tools .btn { padding: 7px 10px; font-size: 13px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tools .btn[aria-pressed="false"] { color: var(--muted); }
.tools #dusk-btn[aria-pressed="false"] { color: var(--ink); }
.tools #dusk-btn[aria-pressed="true"] { background: #232a46; border-color: #232a46; color: #f7e6c8; }
.is-editing .plan .pane-label { color: var(--sel); }
.is-editing .plan .pane-label::after { content: ' · uređivanje'; }
.nogl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); margin: 0; }
#walkpad { position: absolute; right: 12px; bottom: 56px; display: grid; grid-template-columns: repeat(3, 44px); gap: 6px; }
#walkpad button { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 18px var(--body); cursor: pointer; touch-action: none; }
#walkpad button:active { background: var(--ink); color: var(--surface); }
#walkpad .hint { grid-column: 1 / -1; font: 500 11px var(--mono); color: var(--muted); text-align: center; background: color-mix(in srgb, var(--surface) 85%, transparent); border-radius: 4px; padding: 2px; }

/* ---------- bočna traka ---------- */
.side { display: grid; gap: 14px; align-self: start; min-width: 0; position: sticky; top: calc(var(--nav-h) + 14px); }
.panel { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 12px; }
/* kupnja plana */
.buy .from { font: 500 13.5px var(--body); color: var(--muted); }
.buy .big { font: 760 40px/1 var(--display); font-stretch: 108%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.buy fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.buy legend { font: 600 13px var(--body); color: var(--muted); padding: 0; margin-bottom: 8px; }
label.opt { flex-direction: row; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; font: 500 14.5px/1.25 var(--body); color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s; }
label.opt:hover { border-color: var(--muted); }
label.opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
label.opt input { width: 17px; height: 17px; margin: 0; padding: 0; accent-color: var(--accent); flex: none; }
label.opt small { display: block; font: 400 12.5px var(--body); color: var(--muted); margin-top: 2px; }
label.opt em { margin-left: auto; font: 600 13.5px var(--body); font-style: normal; color: var(--muted); white-space: nowrap; }
.btn.wide { width: 100%; padding-block: 15px; font-size: 16px; }
.buy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; color: var(--muted); }
.buy-list li { display: flex; gap: 8px; align-items: flex-start; }
.buy-list svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; flex: none; margin-top: 2px; }
.specgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 0 0 26px; }
.specgrid div { background: var(--surface); padding: 14px 16px; display: grid; gap: 3px; }
.specgrid svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.specgrid b { font: 700 17px var(--body); font-variant-numeric: tabular-nums; }
.specgrid span { font: 500 12.5px var(--body); color: var(--muted); }
.work-main { min-width: 0; display: grid; gap: 22px; align-content: start; }
.work-main .specgrid { margin: 0; }
.acc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.acc details + details { border-top: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; cursor: pointer; font: 700 18px var(--display); font-stretch: 106%; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .chev { width: 14px; height: 14px; transition: transform .35s var(--ease); color: var(--muted); }
.acc details[open] summary .chev { transform: rotate(180deg); }
.acc .acc-body { padding: 0 0 20px; display: grid; gap: 12px; }
.acc p { margin: 0; color: var(--ink); }
.acc ul.dots { margin: 0; padding-left: 18px; display: grid; gap: 5px; color: var(--ink); }
.faq dt { font: 600 15px var(--body); color: var(--ink); margin-top: 6px; }
.faq dd { margin: 4px 0 8px; color: var(--muted); }
.related { padding-bottom: 60px; }
.related h2 { font-size: 26px; font-stretch: 110%; margin-bottom: 16px; }
.ph { font-size: 17px; font-stretch: 108%; font-weight: 700; }
.sh { margin: 4px 0 -4px; }
.lead { margin: 0; color: var(--muted); }
.meta { margin: -6px 0 0; font: 500 13px var(--mono); color: var(--muted); }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.facts div { min-width: 0; }
.facts dd { margin: 2px 0 0; font: 600 15px var(--body); font-variant-numeric: tabular-nums; }
.facts.small { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
.price { border: 1.5px solid var(--ink); border-radius: 6px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.price .big { font: 760 32px/1.1 var(--display); font-stretch: 108%; font-variant-numeric: tabular-nums; }
.price .calc { font: 500 13px var(--mono); color: var(--muted); }
.price .range { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 6px; font-size: 14px; font-variant-numeric: tabular-nums; }
.price .range span { color: var(--muted); }
.price .note { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.rooms { list-style: none; margin: 0; padding: 0; }
.rooms button { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 7px 4px; border: 0; border-bottom: 1px dashed var(--line); background: none; color: var(--ink); font: 500 14px var(--body); text-align: left; cursor: pointer; }
.rooms button b { font: 500 13px var(--mono); white-space: nowrap; }
.rooms button:hover, .rooms button[aria-current] { color: var(--accent); }
.rooms-sum { display: flex; justify-content: space-between; font-weight: 600; padding: 2px 4px; }
.rooms-sum b { font-family: var(--mono); }
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.cats button { font: 500 12.5px var(--body); padding: 5px 9px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; }
.cats button[aria-selected="true"] { border-color: var(--ink); color: var(--ink); background: var(--bg); }
.add { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.add button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--plan-bg); color: var(--ink); font: 500 12px/1.2 var(--body); cursor: pointer; text-align: center; }
.add button:hover { border-color: var(--accent); }
.add .mini { width: 46px; height: 34px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.confirm { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.saved { margin: 0; font: 500 12px var(--mono); color: var(--accent); }
label { display: flex; flex-direction: column; gap: 4px; font: 600 12px var(--body); color: var(--muted); }
input, select { font: 500 14px var(--body); color: var(--ink); background: var(--plan-bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 9px; width: 100%; box-sizing: border-box; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sw { display: flex; flex-wrap: wrap; gap: 6px; }
.sw button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--c); cursor: pointer; }
.sw button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--sel); }

#levelsw .seg-pill { background: var(--accent); }
#levelsw button[aria-pressed="true"] { color: var(--on-accent); }
.sh.lv { margin: 6px 0 0; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rules li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 8px; font-size: 13.5px; }
.rules .st { grid-row: span 2; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--mono); }
.rules .ok .st { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); }
.rules .rk { font: 500 10.5px/1 var(--body); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 6px; margin-left: 6px; vertical-align: 2px; font-style: normal; }
.rules .warn .st { background: color-mix(in srgb, var(--sel) 22%, transparent); color: var(--sel); }
.rules b { font-weight: 600; }
.rules span.v { color: var(--muted); font: 500 12px var(--mono); }
.rules-note { margin: 0; font-size: 12px; color: var(--muted); }
/* ---------- kupnja i preuzimanje ---------- */
label.consent { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; font: 400 13px/1.45 var(--body); color: var(--muted); cursor: pointer; }
label.consent input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
label.consent a { color: var(--ink); }
.buy-err { margin: 0; font-size: 13.5px; color: var(--accent); font-weight: 600; }
/* prijava i račun */
.acct-form { display: grid; gap: 14px; max-width: 440px; margin: 26px 0 18px; }
.acct-form label { display: grid; gap: 6px; font: 600 13px var(--body); color: var(--muted); }
.acct-form input { font: 400 17px var(--body); padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); min-width: 0; }
.acct-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.acct-form input.code { font: 600 30px/1 var(--mono); letter-spacing: .32em; text-align: center; padding: 12px 8px 12px 16px; }
.acct-form .row { display: flex; gap: 10px; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.acct-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.acct-list li { display: grid; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.acct-head { display: grid; gap: 3px; }
.acct-head b { font-size: 17px; }
.acct-head span { color: var(--muted); font-size: 13.5px; }
.acct-list .row { display: flex; gap: 8px; flex-wrap: wrap; }
.acct-foot { margin-top: 36px; }
.btn[disabled] { opacity: .6; }
.page { padding-top: clamp(32px, 6vw, 72px); padding-bottom: 80px; max-width: 760px; }
.page h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1; letter-spacing: -.03em; margin: 0 0 14px; }
.imp { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0 0 8px; }
.imp dt { color: var(--muted); }
.imp dd { margin: 0; }
.page h2 { font-size: 20px; margin: 34px 0 8px; }
.page p { line-height: 1.6; max-width: 66ch; }
.page .lead { font-size: 18px; color: var(--muted); }
.page .hint { color: var(--muted); font-size: 14px; }
.dl-list { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 12px; }
.dl-list li { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dl-list span { color: var(--muted); font-size: 14px; }
.dl-wait { display: flex; align-items: center; gap: 12px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
/* ---------- tlocrt (SVG) ---------- */
.floorimg { filter: var(--floor-filter); }
.plan-ink .we { fill: var(--wall); }
.plan-ink .wi { fill: var(--wall-int); }
.plan-ink .wi.sel { fill: var(--sel); }
.plan-ink .fb { fill-opacity: .5; stroke: var(--ink); stroke-width: .014; }
.plan-ink .fb2 { fill: var(--muted); fill-opacity: .3; stroke: var(--ink); stroke-width: .012; }
.plan-ink .fl { fill: none; stroke: var(--ink); stroke-width: .012; stroke-opacity: .65; }
.plan-ink .fd { fill: var(--ink); fill-opacity: .7; }
.plan-ink .fd2 { fill: var(--ink); fill-opacity: .82; }
.plan-ink .fw { fill: var(--plan-bg); stroke: var(--ink); stroke-width: .012; }
.plan-ink .frug { fill-opacity: .32; stroke: var(--ink); stroke-opacity: .5; stroke-width: .01; stroke-dasharray: .06 .05; }
.plan-ink .fpot { fill: var(--plan-bg); stroke: var(--ink); stroke-width: .012; }
.plan-ink .hit { fill: transparent; }
.plan-ink .fu.sel .fb { stroke: var(--sel); stroke-width: .035; }
.plan-ink .tfloor { fill: var(--plan-bg); }
.selbox { fill: none; stroke: var(--sel); }
.selline { stroke: var(--sel); }
.handle { fill: var(--surface); stroke: var(--sel); cursor: grab; }
.win { fill: var(--win); stroke: var(--wall); stroke-width: .012; }
.wl { stroke: var(--wall); stroke-width: .02; }
.leaf { stroke: var(--ink); stroke-width: .035; }
.leaf.front { stroke-width: .06; }
.arc { fill: none; stroke: var(--ink); stroke-width: .012; stroke-dasharray: .05 .04; stroke-opacity: .7; }
.ohit { fill: transparent; }
.op.sel .ohit { fill: var(--sel); fill-opacity: .35; }
.pass { fill: none; stroke: var(--sel); stroke-width: .02; stroke-dasharray: .06 .04; }
.rl { pointer-events: none; }
.rl text { text-anchor: middle; paint-order: stroke; stroke: var(--plan-bg); stroke-width: .07px; stroke-linejoin: round; }
.rn { font: 600 .29px var(--body); fill: var(--ink); }
.ra { font: 500 .22px var(--mono); fill: var(--muted); }
.rl.sel .rn { fill: var(--sel); }
.dl { stroke: var(--muted); stroke-width: .012; }
.dx { stroke: var(--muted); stroke-width: .008; }
.dt { stroke: var(--ink); stroke-width: .022; }
.dtx { font: 500 .21px var(--mono); fill: var(--muted); text-anchor: middle; }
.nc { fill: none; stroke: var(--muted); stroke-width: .015; }
.na, .sb1 { fill: var(--ink); }
.sb2 { fill: none; stroke: var(--ink); stroke-width: .012; }
.wlen { font-family: var(--mono); font-weight: 600; fill: var(--sel); text-anchor: middle; }
.gd { stroke: var(--wall); stroke-width: .02; stroke-dasharray: .12 .08; }
.rail { stroke: var(--ink); stroke-width: .05; stroke-linecap: round; }
.virt { stroke: var(--muted); stroke-width: .015; stroke-dasharray: .06 .05; }
.chain { stroke: var(--muted); stroke-width: .01; }
.chainx { stroke: var(--muted); stroke-width: .008; }
.ctick { stroke: var(--ink); stroke-width: .02; }
.ctx { font: 500 .15px var(--mono); fill: var(--muted); text-anchor: middle; }
.otag { font: 500 .13px var(--mono); fill: var(--accent); text-anchor: middle; paint-order: stroke; stroke: var(--plan-bg); stroke-width: .04px; }
.rf { font: 400 .15px var(--body); fill: var(--muted); }
.stair { fill: var(--plan-bg); stroke: var(--ink); stroke-width: .014; }
.stl { stroke: var(--ink); stroke-width: .01; }
.sarr { fill: none; stroke: var(--ink); stroke-width: .02; }
.sarh { fill: var(--ink); }
.cut { stroke: var(--ink); stroke-width: .014; stroke-dasharray: .08 .05; }
.wpre { stroke: var(--sel); stroke-width: .12; stroke-linecap: round; stroke-opacity: .85; }
#plan { cursor: grab; }
#plan.editing .fu, #plan.editing .wi, #plan.editing .rl { cursor: move; }
#plan.editing .rl { pointer-events: all; }
#plan[data-tool="wall"] { cursor: crosshair; }
#plan[data-tool="wall"] .fu, #plan[data-tool="wall"] .wi { cursor: crosshair; }
#plan[data-tool="door"] .wi { cursor: copy; }

/* ---------- dijalog i obavijest ---------- */
.modal { position: fixed; inset: 0; background: var(--scrim); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; z-index: 50; padding: 16px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); opacity: 0; transition: opacity .3s var(--ease); }
.modal.is-open { opacity: 1; }
.dialog { background: var(--surface); color: var(--ink); border-radius: 24px; width: min(480px, 100%); max-height: calc(100% - 32px); overflow: auto; padding: 30px; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 80px var(--soft-shadow); transform: translateY(28px) scale(.96); transition: transform .5s var(--ease); }
.modal.is-open .dialog { transform: none; }
@media (max-width: 600px) { .modal { place-items: end center; padding: 0; } .dialog { width: 100%; max-height: 92%; border-radius: 24px 24px 0 0; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); } }
.dialog h2 { font-size: 24px; font-stretch: 112%; }
.dialog ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 4px; }
.dialog .cost { display: flex; align-items: baseline; gap: 10px; border-block: 1px solid var(--line); padding-block: 12px; }
.dialog .cost b { font: 760 34px var(--display); font-stretch: 108%; }
.dialog .cost span { color: var(--muted); font-size: 14px; }
.dialog .demo { margin: 0; font-size: 12.5px; color: var(--muted); background: var(--bg); padding: 8px 10px; border-radius: 6px; }
#toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--surface); padding: 12px 20px; border-radius: 999px; font-size: 14px; z-index: 60; max-width: calc(100% - 32px); box-sizing: border-box; box-shadow: 0 10px 30px rgba(0,0,0,.2); transform: translate(-50%, 26px) scale(.96); opacity: 0; transition: transform .5s var(--ease), opacity .3s var(--ease); }
#toast.is-open { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1150px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(200px, 30%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
  .tile { scroll-snap-align: start; }
  .budget { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shop { grid-template-columns: minmax(0, 1fr); }
  .btn-filters { display: inline-flex; }
  .filters { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; top: auto; max-height: 82vh; background: var(--bg); border-radius: 22px 22px 0 0; padding: 0 20px 24px; box-shadow: 0 -20px 50px var(--soft-shadow); transform: translateY(105%); transition: transform .45s var(--ease); }
  .filters.is-open { transform: none; }
  .filters-top { display: flex; position: sticky; top: 0; z-index: 1; background: var(--bg); align-items: center; justify-content: space-between; padding: 16px 0 12px; margin-bottom: 4px; }
  .filters-top b { font: 700 19px var(--display); }
  .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .gnav-links, .gnav-tag, .gnav-acct, .gnav-cta { display: none; }
  .gnav-burger { display: block; }
  .hero { height: 210vh; }
  .hero-grid { padding-top: 24px; }
  .hero-pin::after { background: linear-gradient(180deg, var(--sky) 30%, transparent 62%); }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero h1, .hero .h1 { font-size: clamp(38px, 10.5vw, 58px); }
  .hero-copy p { margin-top: 14px; font-size: 17px; }
  .hero-cta { margin-top: 20px; }
  .hero-cta .btn.large { padding: 13px 20px; font-size: 15px; }
  .hero-cap { font-size: 14px; width: 100%; height: 4.6em; }
  .tiles { grid-auto-columns: 62%; }
  .budget { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .specgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare { aspect-ratio: 4 / 3; }
  .band-head { margin-bottom: 26px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 30px; }
  .stage { height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: clamp(300px, 82vw, 58vh) 54vh; }
  .stage[data-view="plan"], .stage[data-view="3d"] { grid-template-rows: 66vh; }
  .pane.three { border-left: 0; border-top: 1px solid var(--line); }
  .plan .pane-label { top: auto; bottom: 10px; left: 12px; right: auto; max-width: calc(100% - 24px); }
  .plan .tools.tr { left: 10px; right: 10px; justify-content: flex-start; }
  .hbar .seg { order: 3; }
}
@media (max-width: 600px) {
  #home-featured, #home-new { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #home-featured .card h3, #home-new .card h3 { font-size: 15px; }
  #home-featured .card .sub, #home-new .card .sub { font-size: 12px; }
  #home-featured .specs-row, #home-new .specs-row { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}