/* Podne obloge: ulazni ekrani (index.html, ambijenti.html, prostorija.html). Font: Montserrat. Svetla i tamna tema prate sistem (prefers-color-scheme).
   Isti jezik kao ostatak projekta: svetli "glass" paneli, zaobljene kartice, crno-narandžasti akcenat. */
:root {
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --bg: #f5f3ee; --bg-2: #ece9e2; --surface: #fff; --surface-2: #f6f4ef;
  --ink: #10151a; --muted: #5a646f; --line: rgba(16, 21, 26, .10); --line-2: rgba(16, 21, 26, .18);
  --accent: #ff5a1f; --accent-2: #ff8a3d; --accent-ink: #b63a08; --accent-soft: rgba(255, 90, 31, .10);
  --glass: rgba(255, 255, 255, .74); --glass-line: rgba(16, 21, 26, .08);
  --shadow-1: 0 1px 2px rgba(16, 21, 26, .05), 0 10px 30px rgba(16, 21, 26, .06);
  --shadow-2: 0 2px 6px rgba(16, 21, 26, .06), 0 28px 70px rgba(16, 21, 26, .16);
  --stage-a: #efebe3; --stage-b: #e2ddd2; --glow: rgba(255, 106, 46, .17);
  /* ilustracije */
  --il-wall: #f4f1eb; --il-walldark: #3b424a; --il-walltile: #e2ecef; --il-wallout: #f0ece4; --il-slab: #d8d2c7; --il-stone: #ebe8e2;
  --il-frame: #ffffff; --il-glass: #c4e2ef; --il-curtain: #efe6d6; --il-door: #b9a58c; --il-art: #2e343b;
  --il-white: #fbfaf7; --il-linen: #f1ece3; --il-pot: #ece7dd; --il-rug: #e6ded0; --il-ruga: #cdd9dc; --il-rugb: #ead0bd;
  --plan-wall: #2b3138; --plan-dim: #e04a12;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1116; --bg-2: #11171d; --surface: #151b22; --surface-2: #1b232b;
    --ink: #f2f4f6; --muted: #9ba6b1; --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .17);
    --accent: #ff6a2e; --accent-2: #ff9a55; --accent-ink: #ff8f5c; --accent-soft: rgba(255, 106, 46, .15);
    --glass: rgba(21, 27, 34, .72); --glass-line: rgba(255, 255, 255, .09);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .28);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .35), 0 28px 70px rgba(0, 0, 0, .5);
    --stage-a: #1d252e; --stage-b: #11171d; --glow: rgba(255, 106, 46, .2);
    --il-wall: #444c56; --il-walldark: #262c33; --il-walltile: #3d4a52; --il-wallout: #48505a; --il-slab: #2c333b; --il-stone: #aab0b8;
    --il-frame: #d5d9de; --il-glass: #5f8aa0; --il-curtain: #8e8676; --il-door: #7d6d5b; --il-art: #1a1f24;
    --il-white: #e8e6e1; --il-linen: #cdc7bb; --il-pot: #b9b3a8; --il-rug: #6a6254; --il-ruga: #54646b; --il-rugb: #7a5f4e;
    --plan-wall: #cbd2d9; --plan-dim: #ff8f5c;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 72px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1344px; margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── zaglavlje ───────── */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--ink); color: var(--bg); }
.brand__mark svg { width: 24px; height: 24px; }
.brand small { display: block; margin-top: -2px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; height: 40px; padding: 0 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .2s, background-color .2s; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--line); }
.nav a[aria-current] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-1); }
.nav .nav__start { display: none; }
.nav .nav__go { margin-left: 6px; background: var(--ink); color: var(--bg); font-weight: 700; }
.nav .nav__go:hover { background: var(--ink); color: var(--bg); box-shadow: 0 8px 20px rgba(16, 21, 26, .25); }

/* ───────── tipografija ───────── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 800; }
.h1 { font-size: clamp(2.4rem, 5.6vw, 4.7rem); line-height: 1.01; letter-spacing: -.048em; text-wrap: balance; }
.h1 em { font-style: normal; background: linear-gradient(transparent 68%, color-mix(in srgb, var(--accent) 38%, transparent) 68% 90%, transparent 90%); padding: 0 .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { margin: 0; max-width: 34em; font-size: clamp(1.05rem, 1.55vw, 1.25rem); line-height: 1.62; color: var(--muted); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }

/* ───────── dugmad ───────── */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; height: 58px; padding: 0 8px 0 26px; border: 0; border-radius: 18px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: transform .25s, box-shadow .25s, background-color .25s; }
.btn--primary { background: var(--ink); color: var(--bg); box-shadow: 0 10px 26px rgba(16, 21, 26, .22); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(16, 21, 26, .3); }
.btn__go { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--accent); color: #fff; transition: transform .25s; }
.btn:hover .btn__go { transform: translateX(3px); }
.btn--ghost { padding: 0 24px; border: 1.5px solid var(--line-2); background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); box-shadow: none; pointer-events: none; }
.btn[aria-disabled="true"] .btn__go { background: var(--line-2); color: var(--muted); }
.btn--sm { height: 48px; border-radius: 15px; padding: 0 6px 0 20px; font-size: 12px; }
.btn--sm .btn__go { width: 36px; height: 36px; border-radius: 11px; }

/* ───────── hero ───────── */
.hero { position: relative; padding: clamp(28px, 4.6vw, 64px) 0 clamp(24px, 3vw, 40px); }
.hero::before { content: ''; position: absolute; z-index: -1; inset: -120px 0 auto auto; width: min(900px, 100%); height: 700px; background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero .eyebrow { margin-bottom: 22px; }
.hero .lead { margin-top: 22px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 32px 0 0; padding: 0; list-style: none; }
.facts b { display: block; font-size: 30px; line-height: 1.1; letter-spacing: -.04em; font-weight: 800; }
.facts span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.fan { position: relative; height: clamp(300px, 34vw, 460px); }
.fan__tile { position: absolute; width: 54%; aspect-ratio: 4 / 5; margin: 0; border-radius: 24px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-2); outline: 7px solid var(--surface); outline-offset: -7px; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.fan__tile canvas { display: block; width: 100%; height: 100%; }
.fan__tile figcaption { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--glass-line); font-size: 11.5px; font-weight: 700; }
.fan__tile--1 { left: 0; top: 12%; transform: rotate(-9deg); }
.fan__tile--2 { left: 23%; top: 0; z-index: 2; transform: rotate(2deg); }
.fan__tile--3 { right: 0; top: 16%; transform: rotate(10deg); }
.fan:hover .fan__tile--1 { transform: rotate(-13deg) translateX(-14px); }
.fan:hover .fan__tile--2 { transform: rotate(1deg) translateY(-8px); }
.fan:hover .fan__tile--3 { transform: rotate(14deg) translateX(14px); }

/* ───────── dve kartice ───────── */
.choose { padding: clamp(8px, 2vw, 24px) 0 clamp(56px, 8vw, 112px); }
.choose__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.choose__head h2 { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.choose__head::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.card { position: relative; display: flex; flex-direction: column; padding: clamp(20px, 2.6vw, 36px); border: 1px solid var(--line); border-radius: 32px; background: var(--surface); box-shadow: var(--shadow-1); isolation: isolate; transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s, border-color .4s; }
.card::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 0%), var(--glow), transparent 48%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); }
.card:hover::before, .card:focus-within::before { opacity: 1; }
.card__tag { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card__num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--ink); color: var(--bg); font-size: 13px; letter-spacing: 0; }
.card h3 { margin: 20px 0 12px; font-size: clamp(1.9rem, 2.8vw, 2.7rem); line-height: 1.04; letter-spacing: -.04em; }
.card__desc { margin: 0 0 22px; max-width: 38em; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.card__cta { margin-top: auto; padding-top: 26px; }
.card__cta .btn { width: 100%; }
.stage { position: relative; aspect-ratio: 16 / 11; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(160deg, var(--stage-a), var(--stage-b)); overflow: hidden; }
#card-amb .stage { flex: 1 0 auto; }
.stage > svg.il { position: absolute; inset: 0; width: 100%; height: 100%; padding: 4px 10px 10px; }
.stage__badge { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 10px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--glass-line); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.stage__badge .ico { width: 16px; height: 16px; color: var(--accent); }
.stage__bar { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none; }
.stage__bar > * { pointer-events: auto; }
.floorname { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: calc(100% - 56px); padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--glass-line); font-size: 13px; font-weight: 700; line-height: 1.25; }
.floorname i { flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); background: var(--c, #ccc); transition: background-color .6s; }
.floorname span { min-width: 0; }
.floorname small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.roundbtn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--glass-line); border-radius: 50%; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .2s, background-color .2s; }
.roundbtn:hover { transform: scale(1.06); background: var(--surface); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.swatch { position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); transition: transform .2s; }
.swatch::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 8px, rgba(0, 0, 0, .13) 8px 9px); }
.swatch::after { content: ''; position: absolute; inset: -3px; border-radius: 17px; border: 2.5px solid var(--ink); opacity: 0; transform: scale(.88); transition: opacity .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"]::after { opacity: 1; transform: scale(1); }
.swatch:focus-visible { outline-offset: 5px; }
.swatches__note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tags li { padding: 7px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tags li.more { background: transparent; border-style: dashed; }

/* ───────── mini-interakcija (tlocrt, mere, vrsta prostorije) ───────── */
.plan { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.plan__floor { stroke: none; }
.plan__walls { fill: var(--plan-wall); }
.plan__win { fill: var(--il-glass); stroke: var(--plan-wall); stroke-width: 1.2; }
.plan__wl { fill: none; stroke: var(--plan-wall); stroke-width: 1; }
.plan__door { fill: none; stroke: var(--plan-wall); stroke-width: 1.4; }
.plan__arc { fill: none; stroke: var(--plan-wall); stroke-width: 1; stroke-dasharray: 3 3; opacity: .6; }
.plan__dim line, .plan__dim path { stroke: var(--plan-dim); stroke-width: 1.4; fill: none; }
.plan__dim .ext { stroke-width: 1; stroke-dasharray: 2 3; opacity: .7; }
.plan__dim text { fill: var(--plan-dim); font: 800 13px var(--font); text-anchor: middle; paint-order: stroke; stroke: var(--stage-a); stroke-width: 4px; stroke-linejoin: round; letter-spacing: .02em; }
.plan__scale line, .plan__scale path { stroke: var(--muted); stroke-width: 1.4; fill: none; }
.plan__scale text { fill: var(--muted); font: 700 11px var(--font); }
.plan-label { position: absolute; z-index: 2; display: grid; gap: 1px; padding: 9px 16px 10px; border-radius: 16px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--glass-line); text-align: center; pointer-events: none; transform: translate(-50%, -50%); box-shadow: var(--shadow-1); white-space: nowrap; }
.plan-label span { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plan-label b { font-size: 24px; line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.plan-label.small { padding: 6px 11px 7px; border-radius: 12px; }
.plan-label.small span { font-size: 9.5px; }
.plan-label.small b { font-size: 16px; }
.readout { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; margin: 20px 0 0; }
.readout__dims { font-size: clamp(1.55rem, 2.3vw, 2.1rem); line-height: 1.1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.readout__dims i { margin: 0 .22em; font-style: normal; font-weight: 600; color: var(--muted); }
.readout__dims small, .readout__area small { font-size: .6em; font-weight: 700; letter-spacing: 0; color: var(--muted); margin-left: .18em; }
.readout__area { font-size: clamp(1.55rem, 2.3vw, 2.1rem); line-height: 1.1; font-weight: 800; letter-spacing: -.04em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.readout__area::before { content: '='; margin-right: .3em; font-weight: 600; color: var(--muted); }
.hint { margin: 6px 0 0; min-height: 1.5em; font-size: 12.5px; color: var(--muted); }
.ctl { display: grid; gap: 16px; margin-top: 14px; }
.ctl__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 4px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.field__top label, .field legend { padding: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.num { display: inline-flex; align-items: baseline; gap: 4px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.num input { width: 3.4ch; padding: 2px 0; border: 0; border-bottom: 2px solid var(--line-2); border-radius: 0; background: transparent; text-align: right; font: inherit; font-variant-numeric: tabular-nums; color: inherit; transition: border-color .2s; }
.num input:hover { border-bottom-color: var(--muted); }
.num input:focus { outline: none; border-bottom-color: var(--accent); }
.num input:focus-visible { outline: none; border-bottom-color: var(--accent); box-shadow: 0 2px 0 0 var(--accent); }
.num span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
input[type="range"] { --p: 40%; width: 100%; height: 34px; margin: 0; padding: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--accent) var(--p), var(--line-2) var(--p)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border: 3px solid var(--accent); border-radius: 50%; background: var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, .28); transition: transform .15s; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 3px solid var(--accent); border-radius: 50%; background: var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, .28); }
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--accent); outline-offset: 3px; }
input[type="range"]:focus-visible::-moz-range-thumb { outline: 3px solid var(--accent); outline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border: 1.5px solid var(--line-2); border-radius: 14px; font-size: 13px; font-weight: 700; transition: border-color .2s, background-color .2s, transform .2s; }
.chip .ico { width: 19px; height: 19px; color: var(--muted); transition: color .2s; }
.chip:hover span { border-color: var(--muted); }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.chip input:checked + span .ico { color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ───────── odeljci ───────── */
.sec { padding: clamp(52px, 7vw, 100px) 0; }
.sec--tint { background: var(--bg-2); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; margin-bottom: clamp(24px, 3.4vw, 44px); }
.sec__head .eyebrow { margin-bottom: 14px; }
.sec__head p { margin: 0; max-width: 28em; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tile { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.tile canvas { display: block; width: 100%; aspect-ratio: 8 / 5; background: var(--c, var(--surface-2)); }
.tile__body { padding: 14px 16px 16px; }
.tile__name { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.3; }
.tile__code { margin: 4px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.soon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; }
.soon__label { margin: 0 8px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 8px 8px 16px; border: 1.5px dashed var(--line-2); border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.pill b { padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.soon__note { flex-basis: 100%; margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); }
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.step__n { font-size: 68px; line-height: .85; font-weight: 800; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); }
.step__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--accent-soft); color: var(--accent-ink); }
.step__ico .ico { width: 24px; height: 24px; }
.step h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.025em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.foot { padding: 36px 0 52px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px 40px; }
.foot p { margin: 0; max-width: 44em; line-height: 1.65; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { font-weight: 700; color: var(--ink); text-decoration: none; }
.foot nav a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ───────── ilustracije prostora (scene.js) ───────── */
svg.il { display: block; overflow: visible; filter: drop-shadow(0 18px 22px rgba(16, 21, 26, .18)); }
.il .fT, .il .fL, .il .fR { fill: var(--c, #999); stroke: var(--c, #999); stroke-width: .8; stroke-linejoin: round; }
@supports (color: color-mix(in srgb, red, blue)) {
  .il .fT { --f: color-mix(in srgb, var(--c) 90%, #fff); fill: var(--f); stroke: var(--f); }
  .il .lite .fT { --f: color-mix(in srgb, var(--c) 80%, #fff); }
  .il .fL { --f: color-mix(in srgb, var(--c) 91%, #000); fill: var(--f); stroke: var(--f); }
  .il .fR { --f: color-mix(in srgb, var(--c) 78%, #000); fill: var(--f); stroke: var(--f); }
}
.tn-wall { --c: var(--il-wall); } .tn-wallDark { --c: var(--il-walldark); } .tn-wallTile { --c: var(--il-walltile); } .tn-wallOut { --c: var(--il-wallout); }
.tn-slab { --c: var(--il-slab); } .tn-stone { --c: var(--il-stone); }
.tn-slate { --c: #6c7a88; } .tn-charcoal { --c: #353c44; } .tn-sand { --c: #d9c8aa; } .tn-linen { --c: var(--il-linen); } .tn-white { --c: var(--il-white); }
.tn-oak { --c: #cfa874; } .tn-woodD { --c: #7a5a40; } .tn-accent { --c: #ff6a2e; } .tn-accentlite { --c: #ffb88f; }
.tn-leaf { --c: #5b9465; } .tn-leaf2 { --c: #86bb8a; } .tn-hedge { --c: #4b7d56; } .tn-pot { --c: var(--il-pot); } .tn-terra { --c: #c97b52; }
.tn-glass { --c: #bfe2f0; } .tn-water { --c: #62c3dc; } .tn-steel { --c: #bdc5cc; } .tn-black { --c: #262b31; } .tn-dark { --c: #3d444b; }
.tn-cabinet { --c: #8c9ba6; } .tn-frame { --c: #c6ccd2; } .tn-wicker { --c: #b79c7a; }
.tn-rug { --c: var(--il-rug); } .tn-rugA { --c: var(--il-ruga); } .tn-rugB { --c: var(--il-rugb); }
.il .rug-in { fill: rgba(255, 255, 255, .34); stroke: none; }
.il-floor { stroke: none; }
.il-floor-b { opacity: 0; transition: opacity .95s ease; }
.il-sun { fill: #fff; opacity: .15; }
.il-shade polygon { stroke: none; }
.il-shadow { fill: #1a1410; opacity: .17; } .il-shadow * { stroke: none; }
.il .cs { stroke: none; }
@supports (color: color-mix(in srgb, red, blue)) {
  .il [class*="tn-wall"] .fL { --f: color-mix(in srgb, var(--c) 95%, #000); }
  .il [class*="tn-wall"] .fR { --f: color-mix(in srgb, var(--c) 86%, #000); }
}
.dc-frame { fill: var(--il-frame); } .dc-glass { fill: var(--il-glass); } .dc-shine { fill: #fff; opacity: .3; } .dc-curtain { fill: var(--il-curtain); } .dc-rod { fill: #4d545b; }
.dc-door { fill: var(--il-door); } .dc-handle { fill: #3b4148; } .dc-artframe { fill: var(--il-art); } .dc-art { fill: #e7b79b; } .dc-art-b { fill: #9cb7c5; } .dc-art-dot { fill: #ff6a2e; }
.dc-mirror { fill: #dcecf1; } .dc-panel-a { fill: #6e7a5e; } .dc-panel-b { fill: #7d5c43; } .dc-panel-c { fill: #3f4d44; }
.dc-shelf { fill: #8b6b4b; } .dc-shelfshadow { fill: rgba(0, 0, 0, .25); } .dc-b1 { fill: #2f6b4f; } .dc-b2 { fill: #d79b3f; } .dc-b3 { fill: #8a3f3f; }
.dc-sign { fill: #1d2228; } .dc-signmark { fill: #ff6a2e; } .dc-grout { fill: rgba(0, 0, 0, .09); } .dc-base { fill: #fff; opacity: .85; }
.wL { filter: brightness(.86); }
.pool-coping { fill: var(--il-stone); } .pool-wall { stroke: none; } .pool-wallx { fill: #5fb6d0; } .pool-wally { fill: #86cde0; } .pool-water { fill: #46b0d1; }
.il-wave { stroke: #fff; stroke-opacity: .45; stroke-width: 3; stroke-linecap: round; } .pool-shine { fill: #fff; opacity: .13; }

/* ───────── ambijenti ───────── */
.sub { padding: clamp(28px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 26px; padding: 0; list-style: none; font-size: 13px; font-weight: 600; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px 7px 9px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); transition: background-color .2s, border-color .2s; }
.crumbs a:hover { background: var(--surface); border-color: var(--ink); }
.crumbs a .ico { width: 16px; height: 16px; }
.sub .h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); margin-top: 18px; }
.sub .lead { margin-top: 20px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.ft { display: inline-flex; align-items: center; padding: 5px 11px; border: 1.5px solid var(--line-2); border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.2; }
.ft--now { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.ft--soon { border-style: dashed; color: var(--muted); }
.pick { position: sticky; top: 72px; z-index: 20; margin: 0 0 28px; padding: 12px 14px; border: 1px solid var(--glass-line); border-radius: 22px; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: var(--shadow-1); }
.pick__row { display: flex; align-items: center; gap: 16px; }
.pick__label { flex: none; margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pick__cur { flex: none; min-width: 0; margin: 0 0 0 auto; font-size: 13px; font-weight: 700; text-align: right; }
.pick .swatches { margin: 0; flex-wrap: nowrap; overflow-x: auto; padding: 5px 5px; scrollbar-width: none; }
.pick .swatches::-webkit-scrollbar { display: none; }
.pick .swatch { flex: none; width: 40px; height: 40px; border-radius: 12px; }
.amb { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.amb__card { position: relative; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow-1); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
.amb__card.is-ready:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); }
.amb__media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--stage-a), var(--stage-b)); border-bottom: 1px solid var(--line); }
.amb__media svg.il { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6px 8px 10px; filter: drop-shadow(0 10px 12px rgba(16, 21, 26, .16)); }
.amb__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.amb__title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.amb__title h3 { font-size: 19px; line-height: 1.2; letter-spacing: -.025em; }
.badge { flex: none; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.amb__blurb { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.amb__floors { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 8px 0 0; list-style: none; }
.amb__go { margin-top: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.amb__card.is-ready .amb__go { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.amb__card.is-ready .amb__go .ico { width: 17px; height: 17px; color: var(--accent); transition: transform .25s; }
.amb__card.is-ready:hover .amb__go .ico { transform: translateX(3px); }
.amb__media--photo { overflow: hidden; }
.amb__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .6s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.amb__photo.on { opacity: 1; transform: none; }
.amb__card.is-ready:hover .amb__photo.on { transform: scale(1.04); }
.tags li.is-ready { padding: 0; border-color: var(--ink); background: var(--ink); }
.tags li.is-ready a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; color: var(--bg); font-weight: 700; text-decoration: none; }
.tags li.is-ready a::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
a.amb__go { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.amb__cta { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(22px, 3vw, 36px); border: 1px solid transparent; border-radius: 26px; background: var(--ink); color: var(--bg); overflow: hidden; position: relative; }
.amb__cta::before { content: ''; position: absolute; inset: auto -20% -60% auto; width: 420px; height: 420px; background: radial-gradient(closest-side, rgba(255, 106, 46, .5), transparent 70%); pointer-events: none; }
.amb__cta h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.1; letter-spacing: -.035em; position: relative; }
.amb__cta p { margin: 0; max-width: 30em; font-size: 14.5px; line-height: 1.6; opacity: .78; position: relative; }
.amb__cta .btn { align-self: flex-start; position: relative; background: var(--bg); color: var(--ink); box-shadow: none; }
.amb__cta .btn:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }
.note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin: 36px 0 0; padding: 22px 26px; border: 1.5px dashed var(--line-2); border-radius: 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.note p { margin: 0; max-width: 44em; }
.note strong { color: var(--ink); }

/* ───────── prostorija ───────── */
.room { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; padding-bottom: clamp(48px, 7vw, 96px); }
.panel { padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow-1); }
.room__side { display: grid; gap: clamp(16px, 2.4vw, 28px); min-width: 0; }
@media (min-width: 1001px) { .room > .panel { position: sticky; top: 92px; } }
.panel h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.025em; }
.panel__sub { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.stage--plan { aspect-ratio: 5 / 4; }
.sumline { margin: 0 0 18px; font-size: clamp(1.25rem, 2.3vw, 1.85rem); line-height: 1.2; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.sumline span { color: var(--accent-ink); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.stat { padding: 14px 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.callout { margin: 14px 0 0; padding: 11px 14px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--accent-soft); font-size: 13px; line-height: 1.55; }
.next { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: n; }
.next li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 13px 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.next li::before { counter-increment: n; content: counter(n); display: grid; place-items: center; grid-row: span 2; width: 34px; height: 34px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; font-weight: 800; }
.next li.now::before { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.next b { font-size: 14.5px; line-height: 1.3; letter-spacing: -.01em; }
.next em { grid-column: 2; font-style: normal; font-size: 13px; line-height: 1.5; color: var(--muted); }
.next .badge { grid-column: 3; grid-row: 1; }
.badge--now { background: var(--ink); color: var(--bg); }
.demo { position: relative; padding: clamp(18px, 2.2vw, 26px); border: 1.5px dashed var(--line-2); border-radius: 26px; }
.demo .badge { position: absolute; top: -13px; left: 20px; background: var(--bg); border: 1.5px solid var(--accent); }
.demo p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.demo strong { color: var(--ink); }

/* ───────── pojavljivanje ───────── */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); }
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ───────── responzivno ───────── */
@media (max-width: 1180px) { .amb { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hero__grid { grid-template-columns: 1fr; } .fan { display: none; } }
@media (max-width: 1000px) {
  .fan__tile { width: 58%; }
  .cards { grid-template-columns: 1fr; }
  .room { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav .nav__minor { display: none; }
}
@media (max-width: 900px) { .amb { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .top__in { height: 64px; }
  .pick { top: 64px; }
  .tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 64%; scroll-snap-align: start; }
  .tile:hover { transform: none; }
  .step { padding: 22px; }
  .step__n { font-size: 54px; }
}
@media (max-width: 600px) {
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .facts b { font-size: 26px; }
  .facts span { font-size: 12px; line-height: 1.35; display: block; }
  #card-amb .stage { aspect-ratio: 1 / 1.02; flex: none; }
  #card-amb .stage > svg.il { inset: 46px 0 76px 0; height: calc(100% - 122px); padding: 0 6px; }
  #room-stage { aspect-ratio: 1 / .95; }
  #amb-sw { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  #amb-sw .swatch { width: 100%; }
  .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip span { width: 100%; padding-right: 10px; }
  .hide-sm { display: none; }
  .amb { grid-template-columns: 1fr; }
  .amb__cta { grid-column: auto; }
  .ctl__pair { grid-template-columns: 1fr; gap: 10px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 12px 12px; }
  .brand small { display: none; }
  .nav a { padding: 0 13px; }
  .nav .nav__flow { display: none; }
  .nav .nav__start { display: inline-flex; }
  .nav a[aria-current] { display: none; }
  .card { border-radius: 26px; }
  .stage { border-radius: 20px; }
  .next li { grid-template-columns: 34px minmax(0, 1fr); }
  .next .badge { grid-column: 2; grid-row: auto; justify-self: start; }
  .readout { margin-top: 16px; }
  .hero__cta .btn { width: 100%; }
  .pick { padding: 8px 10px 6px; border-radius: 18px; }
  .pick__row { flex-wrap: wrap; gap: 2px; }
  .pick__label { display: none; }
  .pick .swatches { order: 1; flex: 1 0 100%; padding: 3px; }
  .pick .swatch { width: 36px; height: 36px; border-radius: 11px; }
  .pick__cur { order: 2; flex: 1 0 100%; margin: 0; padding: 0 4px; text-align: left; font-size: 12px; }
  .stat b { font-size: 1.15rem; white-space: nowrap; }
  .stat span { font-size: 10px; letter-spacing: .1em; }
}
@media (hover: none) { .card:hover, .amb__card:hover, .tile:hover { transform: none; } .card:hover::before { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .card:hover, .card:focus-within, .amb__card:hover, .tile:hover, .btn--primary:hover { transform: none; }
}
