/* Početna modula „Podne obloge“ (index.html, podovi/pocetna.js): kratak naslov, dve velike kartice ambijenata sa fotografijama u kojima se pod blago smenjuje,
   diskretna kartica „Uskoro“. Samostalan stil (bez podovi.css, da početna bude laka); boje, font (Montserrat) i jezik isti kao ostale stranice
   (svetli paneli, zaobljene kartice, crno-narandžasti akcenat). Svetla i tamna tema prate sistem (prefers-color-scheme). Bez cena. */
: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: #f3f0ea;
  --ink: #10151a; --muted: #5a646f; --line: rgba(16, 21, 26, .10); --line-2: rgba(16, 21, 26, .18);
  --accent: #ff5a1f; --accent-ink: #b63a08; --accent-soft: rgba(255, 90, 31, .10);
  --glass: rgba(255, 255, 255, .8); --glass-ink: #10151a; --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);
  --glow: rgba(255, 106, 46, .16);
  --fade: 1400ms;                                                        /* preliv slika na kartici (isto FADE_MS u pocetna.js) */
  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-ink: #ff8f5c; --accent-soft: rgba(255, 106, 46, .15);
    --glass: rgba(16, 21, 27, .72); --glass-ink: #f2f4f6; --glass-line: rgba(255, 255, 255, .1);
    --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);
    --glow: rgba(255, 106, 46, .18);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 500 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pc-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; }
.pc-skip:focus { top: 12px; }
.pc-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* ───────── gornja traka ───────── */
.pc-top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
.pc-top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.pc-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; font-size: 17px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.pc-brand__mark { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 13px; background: var(--ink); color: var(--bg); }
.pc-brand__mark svg { width: 24px; height: 24px; }
.pc-brand__txt { line-height: 1.2; }
.pc-brand small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pc-badge { display: inline-flex; align-items: center; gap: 9px; flex: none; height: 34px; margin: 0; padding: 0 14px 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pc-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ───────── naslov ───────── */
.pc-hero { position: relative; padding: clamp(22px, 5.4vw, 64px) 0 clamp(20px, 3.2vw, 38px); }
.pc-hero::before { content: ''; position: absolute; z-index: -1; inset: -140px 0 auto auto; width: min(860px, 100%); height: 620px; background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; }
.pc-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 clamp(16px, 2.4vw, 24px); padding: 0; list-style: none; }
.pc-steps li { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px 0 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.pc-steps b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); font-size: 11px; font-weight: 800; color: var(--muted); }
.pc-steps [aria-current] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--ink); }
.pc-steps [aria-current] b { background: var(--accent); color: #fff; }
.pc-hero h1 { margin: 0; font-size: clamp(2.3rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.047em; font-weight: 800; text-wrap: balance; }
.pc-hero h1 em { font-style: normal; background: linear-gradient(transparent 66%, color-mix(in srgb, var(--accent) 38%, transparent) 66% 90%, transparent 90%); padding: 0 .04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pc-lead { margin: clamp(12px, 1.6vw, 18px) 0 0; max-width: 36em; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.6; color: var(--muted); }

/* ───────── kartice ambijenata ───────── */
.pc-pick { padding: 0 0 clamp(36px, 6vw, 80px); outline: none; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(16px, 2.4vw, 28px); margin: 0; padding: 0; list-style: none; }
.pc-item { position: relative; min-width: 0; animation: pc-rise .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 110ms); }
@keyframes pc-rise { from { opacity: 0; transform: translateY(18px); } }
.pc-card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-1); color: inherit; text-decoration: none; isolation: isolate; -webkit-tap-highlight-color: transparent; transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, border-color .45s; }
.pc-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 100%), var(--glow), transparent 46%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.pc-card:hover, .pc-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--accent) 36%, var(--line)); }
.pc-card:hover::after, .pc-card:focus-visible::after { opacity: 1; }
.pc-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 28px; }
.pc-card:active { transform: translateY(-1px) scale(.995); }

/* fotografija: slike jedna preko druge, nova se pojavljuje preko prethodne (prethodna ostaje cela ispod, bez propadanja svetline) */
.pc-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.pc-zoom { position: absolute; inset: 0; z-index: 0; isolation: isolate; transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }   /* svoj sloj: z-index slika ne sme preko natpisa */
.pc-card:hover .pc-zoom { transform: scale(1.035); }
.pc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--fade) cubic-bezier(.45, 0, .25, 1); }
.pc-img.is-on { opacity: 1; }
.pc-media::after { content: ''; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(to top, rgba(8, 10, 12, .28), transparent); pointer-events: none; z-index: 1; }
.pc-tag, .pc-floor { position: absolute; z-index: 2; display: inline-flex; align-items: center; max-width: calc(100% - 24px); border: 1px solid var(--glass-line); border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); color: var(--glass-ink); }
.pc-tag { left: 12px; top: 12px; gap: 8px; height: 32px; padding: 0 13px 0 11px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pc-tag svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc-floor { left: 12px; bottom: 12px; gap: 10px; max-width: calc(100% - 96px); padding: 6px 15px 6px 6px; line-height: 1.2; }
.pc-floor i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--c, #bbb); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16); transition: background-color var(--fade) cubic-bezier(.45, 0, .25, 1); }
/* natpis dekora stoji stalno: svi nazivi su jedan preko drugog (širina = najduži), a menjaju se prelivom u istom trajanju kao slika */
.pc-floor__txt { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.pc-floor__it { grid-area: 1 / 1; display: grid; min-width: 0; opacity: 0; transition: opacity calc(var(--fade) * .55) ease; }
.pc-floor__it.is-on { opacity: 1; transition-delay: calc(var(--fade) * .45); }
.pc-floor b, .pc-floor small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-floor b { font-size: 13px; font-weight: 700; }
.pc-floor small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: color-mix(in srgb, var(--glass-ink) 62%, transparent); }
.pc-dots { position: absolute; z-index: 2; right: 14px; bottom: 22px; display: flex; gap: 5px; }
.pc-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .55); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: width .5s cubic-bezier(.2, .8, .2, 1), background-color .5s; }
.pc-dots i.is-on { width: 20px; background: #fff; }

/* tekst kartice */
.pc-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.2vw, 26px) clamp(16px, 2vw, 22px); }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pc-title { margin: 0; font-size: clamp(1.55rem, 2.6vw, 2.15rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; }
.pc-go { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 16px; background: var(--ink); color: var(--bg); transition: transform .3s cubic-bezier(.2, .8, .2, 1), background-color .3s, color .3s; }
.pc-go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc-card:hover .pc-go, .pc-card:focus-visible .pc-go { background: var(--accent); color: #fff; transform: translateX(3px); }
.pc-blurb { margin: 0; max-width: 34em; font-size: 15px; line-height: 1.6; color: var(--muted); }
.pc-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: auto; padding-top: 16px; }
.pc-meta::before { content: ''; flex-basis: 100%; height: 1px; margin-bottom: 2px; background: var(--line); }
.pc-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; min-width: 0; }
.pc-logo img { width: auto; height: 18px; }
.pc-logo[data-brand="egger"] img { height: 24px; }
.pc-logo[data-brand="decospan"] img { height: 15px; }
.pc-logo[data-brand="timbertech"] img { height: 17px; }
.pc-count { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 800; white-space: nowrap; animation: pc-in .4s ease both; }
.pc-count svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pc-in { from { opacity: 0; } }

/* zaustavljanje smene slika: dugme je van veze (kartica je cela veza), preko gornjeg desnog ugla slike */
.pc-pause { position: absolute; z-index: 3; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--glass-line); border-radius: 50%; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--glass-ink); cursor: pointer; opacity: 0; transition: opacity .25s, transform .2s; }
.pc-pause svg { width: 15px; height: 15px; fill: currentColor; }
.pc-pause:hover { transform: scale(1.06); }
.pc-item:hover .pc-pause, .pc-pause:focus-visible, .pc-pause[aria-pressed="true"] { opacity: 1; }
.pc-pause:focus-visible { outline-offset: 2px; border-radius: 50%; }
@media (hover: none) { .pc-pause { opacity: .92; } }

/* obris kartice dok se kartice ne naprave (bez JavaScript-a se ne vidi) */
.pc-skel { display: none; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.js .pc-skel { display: block; }
.pc-skel__media { aspect-ratio: 16 / 9; }
.pc-skel__body { display: grid; gap: 12px; padding: 24px; }
.pc-skel__body i { height: 14px; width: 60%; border-radius: 8px; }
.pc-skel__body i:first-child { height: 26px; width: 44%; }
.pc-skel__body i:last-child { width: 78%; }
.pc-skel__media, .pc-skel__body i { background: linear-gradient(100deg, var(--surface-2) 30%, var(--bg-2) 50%, var(--surface-2) 70%) 0 0 / 300% 100%; animation: pc-shimmer 1.5s linear infinite; }
@keyframes pc-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.pc-fallback, .pc-nojs { margin: 18px 0 0; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); color: var(--muted); font-size: 14.5px; }
.pc-fallback { display: none; }
.pc-fail .pc-fallback { display: block; }
.pc-fail .pc-skel { display: none; }
.pc-fallback a, .pc-nojs a { color: var(--accent-ink); font-weight: 700; }

/* ───────── uskoro (bez linka) ───────── */
.pc-soon { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: clamp(16px, 2.4vw, 28px); padding: 16px clamp(16px, 2.2vw, 24px); border: 1.5px dashed var(--line-2); border-radius: 24px; color: var(--muted); }
.pc-soon__ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--accent-ink); }
.pc-soon__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pc-soon__txt { flex: 1 1 220px; min-width: 0; }
.pc-soon h2 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.pc-soon p { margin: 1px 0 0; font-size: 13.5px; line-height: 1.5; }
.pc-soon ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.pc-soon li { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
@media (min-width: 1000px) { .pc-soon ul { flex: 0 1 auto; justify-content: flex-end; max-width: 62%; } }

/* ───────── podnožje (jedan red) ───────── */
.pc-foot { padding: 20px 0 calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.pc-foot p { margin: 0; }

/* ───────── telefon ───────── */
@media (max-width: 560px) {
  .pc-top__in { height: 60px; }
  .pc-brand { gap: 10px; font-size: 16px; }
  .pc-brand__mark { width: 36px; height: 36px; border-radius: 12px; }
  .pc-badge { height: 30px; padding: 0 11px 0 10px; font-size: 11px; }
  .pc-steps li { height: 30px; font-size: 12px; }
  .pc-card { border-radius: 22px; }
  .pc-card:focus-visible { border-radius: 22px; }
  .pc-tag { height: 28px; font-size: 10.5px; }
  .pc-floor { padding: 4px 12px 4px 4px; }
  .pc-floor i { width: 24px; height: 24px; }
  .pc-floor b { font-size: 12px; }
  .pc-go { width: 42px; height: 42px; border-radius: 14px; }
  .pc-blurb { font-size: 14.5px; }
  .pc-meta { gap: 10px 12px; }
  .pc-logos { gap: 8px 14px; }
  .pc-logo[data-brand="egger"] img { height: 21px; }
  .pc-logo[data-brand="decospan"] img { height: 13px; }
  .pc-logo[data-brand="timbertech"] img { height: 15px; }
}
@media (max-width: 380px) { .pc-badge { display: none; } }

/* ───────── bez pokreta ───────── */
@media (prefers-reduced-motion: reduce) {
  .pc-item, .pc-count { animation: none; }
  .pc-card, .pc-zoom, .pc-img, .pc-go, .pc-floor i, .pc-floor__it, .pc-dots i { transition: none !important; }
  .pc-card:hover, .pc-card:focus-visible, .pc-card:active { transform: none; }
  .pc-card:hover .pc-zoom { transform: none; }
  .pc-skel__media, .pc-skel__body i { animation: none; }
  .pc-pause, .pc-dots { display: none; }
}
