/* Eleven nekretnine, elevennekretnine.rs. Nastalo iz nacrta dizajna v2 (2026-10-16). */

/* Fontovi (sa sajta, latin + latin-ext) */
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-display: swap; font-weight: 400 900; src: url("/assets/fonts/bodoni-moda-latin-ext-opsz-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-display: swap; font-weight: 400 900; src: url("/assets/fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-display: swap; font-weight: 400 900; src: url("/assets/fonts/bodoni-moda-latin-ext-opsz-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-display: swap; font-weight: 400 900; src: url("/assets/fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/assets/fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


/* ===== Osnovni reset (u nacrtima ga je davao Claude artifact) ===== */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg, video { max-width: 100%; }
[hidden] { display: none !important; }

/* ===== Osnova, zaglavlje, početna ===== */

/* Layout: light gallery — pale graphite-gray paper, white cards and photographs that drift slower than the page (parallax), the 11 ring as a faint watermark. */
:root {
  --bg: #ECECEA;
  --bg-2: #E3E3E0;
  --surface: #FFFFFF;
  --ink: #1C1C1E;
  --ink-2: #4B4B4D;
  --muted: #62626A;
  --line: #D8D8D4;
  --accent: #FF4F00;
  --accent-text: #B83A00;
  --cta-bg: #FF4F00;
  --cta-fg: #1C1C1E;
  --ring: #4B4B4D;
  --shadow: 0 30px 60px -30px rgba(28,28,30,.35);
  --tmp-bg: #FFE7D9;

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --s-1: clamp(2.6rem, 6vw, 5rem);
  --s-2: clamp(1.9rem, 3.6vw, 3rem);
  --s-3: clamp(1.3rem, 1.9vw, 1.6rem);
  --s-body: 1.0625rem;
  --s-small: 0.875rem;
  --s-label: 0.75rem;
  --wrap: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #18181A; --bg-2: #202023; --surface: #232326; --ink: #EDEBE7; --ink-2: #CFCCC7; --muted: #A2A09D;
    --line: #333337; --accent: #FF6A26; --accent-text: #FF8247; --cta-bg: #FF6A26; --cta-fg: #1C1C1E; --ring: #EDEBE7;
    --shadow: 0 30px 60px -30px rgba(0,0,0,.7); --tmp-bg: #3A2215; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #18181A; --bg-2: #202023; --surface: #232326; --ink: #EDEBE7; --ink-2: #CFCCC7; --muted: #A2A09D;
  --line: #333337; --accent: #FF6A26; --accent-text: #FF8247; --cta-bg: #FF6A26; --cta-fg: #1C1C1E; --ring: #EDEBE7;
  --shadow: 0 30px 60px -30px rgba(0,0,0,.7); --tmp-bg: #3A2215; color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: var(--s-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: var(--wrap); margin: 0 auto; }

.label {
  font-size: var(--s-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.label::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

.draft { background: var(--tmp-bg); color: var(--ink); font-size: var(--s-small); }
.draft .wrap { padding-block: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.draft strong { color: var(--accent-text); }
.tmp { background: var(--tmp-bg); border-bottom: 1px dashed var(--accent); padding: 0 4px; border-radius: 2px; }
.tmp-tag { font-family: var(--f-body); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); display: block; margin-top: 6px; }

/* header */
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 44px; height: 44px; color: var(--ink-2); flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.02em; }
.brand-name span { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 28px; font-size: var(--s-small); font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.top-call { display: flex; align-items: center; gap: 16px; font-size: var(--s-small); }
.top-call .num { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-cta { background: var(--cta-bg); color: var(--cta-fg); }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-line:hover { border-color: var(--ink-2); }
.btn-sm { padding: 9px 16px; font-size: var(--s-small); }

/* parallax primitives: a frame clips, the layer inside is taller and drifts */
.frame { position: relative; overflow: hidden; max-width: 100%; }
.layer { position: absolute; left: 0; right: 0; top: -12%; height: 124%; background-size: cover; background-position: center; will-change: transform; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 104px); }
.ring-mark { position: absolute; width: min(820px, 95vw); aspect-ratio: 1; left: -18%; top: 50%; transform: translateY(-50%); color: var(--ring); opacity: 0.05; pointer-events: none; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; position: relative; }
.hero h1 { font-size: var(--s-1); font-weight: 450; }
.hero h1 em { color: var(--accent-text); font-weight: 500; }
.hero-lead { color: var(--muted); font-size: 1.15rem; max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: var(--s-small); color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }
.hero-trust b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-photo { aspect-ratio: 4 / 5; border-radius: 4px; box-shadow: var(--shadow); }
.hero-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 22px 18px; background: linear-gradient(180deg, transparent, rgba(20,20,22,.6)); color: #FFFFFF; font-size: var(--s-small); display: flex; justify-content: space-between; gap: 12px; }
.hero-photo figcaption b { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.15rem; }

/* sections */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec-alt { background: var(--surface); }
.sec-grid { display: grid; grid-template-columns: 220px 1fr; gap: 24px clamp(24px, 5vw, 72px); }
.sec-head { display: flex; flex-direction: column; gap: 20px; max-width: 760px; min-width: 0; }
.sec-head h2 { font-size: var(--s-2); }
.sec-head h2 em { color: var(--accent-text); }
.sec-head p { color: var(--muted); max-width: 60ch; }
.sec-body { grid-column: 2; min-width: 0; }

/* intents */
.intents { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 48px; }
.intent { background: var(--surface); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; transition: background .2s; }
.intent:hover { background: var(--bg-2); }
.intent .k { font-size: var(--s-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); font-weight: 700; }
.intent h3 { font-size: var(--s-3); }
.intent p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.intent a.go { font-weight: 600; font-size: var(--s-small); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.intent a.go span { color: var(--accent-text); transition: transform .2s; }
.intent a.go:hover span { transform: translateX(3px); }

/* services */
.services { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 5vw, 64px); }
.services li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding-block: 24px; border-top: 1px solid var(--line); min-width: 0; }
.services svg { width: 22px; height: 22px; color: var(--accent); margin-top: 6px; }
.services h3 { font-size: 1.35rem; margin-bottom: 6px; }
.services p { color: var(--muted); font-size: 0.97rem; }

/* collage band with parallax */
.collage { position: relative; padding-block: clamp(72px, 10vw, 140px); background: var(--bg-2); overflow: hidden; }
.collage .wrap { position: relative; min-height: 640px; }
.c-img { position: absolute; border-radius: 3px; box-shadow: var(--shadow); }
.c-img .layer { top: -10%; height: 120%; }
.c-1 { left: 0; top: 0; width: 46%; aspect-ratio: 3 / 2; }
.c-2 { right: 0; top: 60px; width: 40%; aspect-ratio: 4 / 5; }
.c-3 { left: 18%; bottom: 0; width: 36%; aspect-ratio: 4 / 3; }
.c-card { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: min(460px, 92%); background: var(--surface); padding: 36px 36px 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; z-index: 2; }
.c-card h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.c-card h2 em { color: var(--accent-text); }
.c-card p { color: var(--muted); }
.c-tag { position: absolute; z-index: 1; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: #FFFFFF; left: 14px; bottom: 12px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }

/* figures */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.fig { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--ink); padding-top: 20px; min-width: 0; }
.fig .n { font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.fig .n sup { font-size: 0.75em; font-weight: 800; -webkit-text-stroke: 0.035em currentColor; paint-order: stroke fill; color: var(--accent-text); margin-left: 3px; position: relative; top: -0.05em; vertical-align: top; line-height: 1; }
.fig .t { color: var(--muted); font-size: 0.95rem; }
.pledge { margin-top: 64px; font-family: var(--f-display); font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.3; max-width: 30ch; font-weight: 400; }
.pledge em { color: var(--accent-text); }
.pledge-by { margin-top: 16px; font-size: var(--s-small); color: var(--muted); letter-spacing: 0.06em; }

/* posts */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.post { display: flex; flex-direction: column; gap: 16px; text-decoration: none; min-width: 0; }
.post-img { aspect-ratio: 3 / 2; max-width: 100%; border-radius: 3px; background-size: cover; background-position: center; position: relative; }
.post-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px clamp(24px, 4vw, 48px); align-items: center; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.post-feature .post-img { aspect-ratio: 16 / 10; }
.post-feature h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.post-feature .post-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.post-feature .read { font-weight: 600; font-size: var(--s-small); color: var(--accent-text); }
.post-meta { font-size: var(--s-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; display: flex; gap: 10px; }
.post-meta { flex-wrap: wrap; align-items: center; }
.cat { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); letter-spacing: 0.12em; }
.cat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); }
.cat-zanimljivosti::before { background: var(--accent); }
.series { color: var(--accent-text); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.filter button { font: inherit; font-size: var(--s-small); font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.filter button:hover { border-color: var(--ink-2); }
.filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.post[hidden] { display: none !important; }
.c-num { font-family: var(--f-display); font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: 0.9; color: var(--accent-text); font-variant-numeric: lining-nums; }
.c-card .go { font-weight: 600; font-size: var(--s-small); text-decoration: none; color: var(--accent-text); }
.post-meta b { color: var(--accent-text); font-weight: 700; }
.post h3 { font-size: 1.45rem; transition: color .2s; }
.post:hover h3 { color: var(--accent-text); }
.post p { color: var(--muted); font-size: 0.97rem; }
.more { margin-top: 40px; display: flex; }

/* districts */
.districts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.districts a { text-decoration: none; border: 1px solid var(--line); background: var(--surface); padding: 10px 18px; border-radius: 999px; font-size: 0.95rem; transition: border-color .2s, color .2s; }
.districts a:hover { border-color: var(--accent); color: var(--accent-text); }

/* offer CTA over a drifting photo */
.offer { position: relative; overflow: hidden; }
.offer .wrap { position: relative; padding-block: clamp(80px, 12vw, 160px); display: flex; }
.offer-card { background: var(--surface); padding: clamp(28px, 4vw, 48px); max-width: 560px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.offer-card h2 { font-size: var(--s-2); }
.offer-card h2 em { color: var(--accent-text); }
.offer-card p { color: var(--muted); }

/* footer */
.foot { background: var(--surface); color: var(--muted); font-size: var(--s-small); border-top: 1px solid var(--line); }
.foot .wrap { padding-block: 56px 40px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 12px; font-size: var(--s-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); font-weight: 600; }
.foot p + p { margin-top: 4px; }
.foot .num { font-variant-numeric: tabular-nums; color: var(--ink); }
.foot .brand svg { width: 52px; height: 52px; }
.foot-legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.8rem; }
.credits { grid-column: 1 / -1; font-size: 0.72rem; line-height: 1.5; }
.credits a { color: var(--muted); }

/* mobile menu: a hamburger opens a full-screen sheet with every nav item, the phone and Viber */
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px; padding: 0; flex: none; }
.burger span { display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor; }
.mnav { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  padding: calc(16px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 28px; animation: mnav-in .22s ease-out; }
@keyframes mnav-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mnav-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mnav-close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.mnav-close svg { width: 18px; height: 18px; }
.mnav-links { display: flex; flex-direction: column; }
.mnav-links a { font-family: var(--f-display); font-size: clamp(1.8rem, 8vw, 2.4rem); line-height: 1.15; text-decoration: none; padding-block: 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mnav-links a small { font-family: var(--f-body); font-size: var(--s-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.mnav-contact { display: flex; flex-direction: column; gap: 10px; }
.mnav-contact .num { font-family: var(--f-display); font-size: 1.5rem; font-variant-numeric: lining-nums tabular-nums; }
.mnav-contact .row { display: flex; gap: 10px; }
.mnav-contact .row .btn { flex: 1; }
.mnav-contact .sub { font-size: var(--s-small); color: var(--muted); }
body.mnav-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .mnav { animation: none; } }
.callbar { display: none; }

@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .intents { grid-template-columns: repeat(2, 1fr); }
  .figures { gap: 20px; }
  .posts { grid-template-columns: 1fr 1fr; }
  .posts .post:nth-child(4) { display: none; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .top-call .num, .top-call .btn { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .sec-grid { grid-template-columns: 1fr; }
  .sec-body { grid-column: 1; }
  .services { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .posts .post:nth-child(4) { display: flex; }
  .post-feature { grid-template-columns: 1fr; }
  .collage .wrap { min-height: 0; display: grid; gap: 16px; }
  .c-img, .c-card { position: relative; left: auto; right: auto; top: auto; bottom: auto; transform: none; width: 100%; }
  .c-1 { aspect-ratio: 16 / 10; }
  .c-2 { display: none; }
  .c-3 { aspect-ratio: 16 / 10; }
  .c-card { order: 2; box-shadow: none; padding: 28px 24px; }
  .c-3 { order: 3; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }
  .callbar .btn { padding: 12px; }
  body { padding-bottom: 76px; }
}
@media (max-width: 480px) {
  .intents { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr; }
  .foot .wrap { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .layer { transform: none !important; } }


/* ===== Stranica teksta ===== */

/* post page */
.crumbs { font-size: var(--s-small); color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; padding-top: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); }
.art-head { padding-block: clamp(32px, 5vw, 64px) clamp(28px, 4vw, 48px); }
.art-head .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px clamp(24px, 5vw, 72px); }
.art-head .inner { display: flex; flex-direction: column; gap: 22px; max-width: 820px; min-width: 0; }
.art-head h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); font-weight: 450; }
.art-head h1 em { color: var(--accent-text); }
.art-lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink-2); max-width: 58ch; line-height: 1.5; }
.art-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--s-small); color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.art-meta b { color: var(--ink); font-weight: 600; }
.art-cover { aspect-ratio: 21 / 9; border-radius: 4px; box-shadow: var(--shadow); }
.art-cover figcaption { position: absolute; right: 16px; bottom: 12px; font-size: 0.72rem; color: #FFFFFF; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

.art { padding-block: clamp(48px, 7vw, 88px); }
.art .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px clamp(24px, 5vw, 72px); }
.toc { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 14px; font-size: var(--s-small); }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: t; }
.toc li { counter-increment: t; display: grid; grid-template-columns: 22px 1fr; }
.toc li::before { content: counter(t); color: var(--accent-text); font-variant-numeric: tabular-nums; font-weight: 600; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--ink); }
.toc ol { border-left: 1px solid var(--line); }
.toc li { position: relative; padding-left: 14px; transition: color .2s; }
.toc li::after { content: ""; position: absolute; left: -1px; top: 2px; bottom: 2px; width: 2px; background: var(--accent); opacity: 0; transition: opacity .2s; }
.toc li.is-active::after { opacity: 1; }
.toc li.is-active a { color: var(--accent-text); font-weight: 600; }
.toc li.is-done a { color: var(--ink-2); }
/* reading progress on narrow screens, where the side "Sadržaj" is hidden */
.readbar { display: none; position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 3px; z-index: 30; background: var(--line); pointer-events: none; }
.readbar span { display: block; height: 100%; background: var(--accent); transform-origin: left center; transform: scaleX(0); }
@media (max-width: 980px) { .readbar { display: block; } }

.prose { max-width: 680px; min-width: 0; display: flex; flex-direction: column; gap: 22px; font-size: 1.1rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-top: 28px; scroll-margin-top: 24px; }
.prose strong { font-weight: 600; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--accent); }

.keyfigs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-block: 8px; }
.keyfig { background: var(--surface); padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.keyfig .n { font-family: var(--f-display); font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.keyfig .n small { font-size: 0.5em; color: var(--muted); margin-left: 4px; font-family: var(--f-body); }
.keyfig .t { font-size: 0.88rem; color: var(--muted); line-height: 1.4; }

.chart { background: var(--surface); border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 18px; margin-block: 8px; }
.chart-head h3 { font-family: var(--f-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.chart-head p { font-size: 0.85rem; color: var(--muted); line-height: 1.4; margin-top: 4px; }
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; position: relative; }
.bar { display: grid; grid-template-columns: 128px minmax(0, 1fr) 64px; align-items: center; gap: 12px; padding-block: 5px; font-size: 0.9rem; position: relative; border-radius: 3px; cursor: default; }
.bar:hover, .bar:focus-visible { background: var(--bg); }
.bar .name { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .track { position: relative; height: 14px; }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink-2); border-radius: 0 4px 4px 0; }
.bar.top .fill { background: var(--accent); }
.bar .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.avgline { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 1px dashed var(--muted); pointer-events: none; }
.avgline span { position: absolute; top: -18px; left: 4px; font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.bars-area { position: relative; padding-top: 20px; }
.avg-layer { position: absolute; top: 20px; bottom: 0; left: 140px; right: 76px; pointer-events: none; }
.tip { position: absolute; z-index: 5; background: var(--ink); color: var(--bg); font-size: 0.8rem; padding: 8px 10px; border-radius: 4px; pointer-events: none; white-space: nowrap; line-height: 1.35; }
.chart-foot { font-size: 0.78rem; color: var(--muted); }

.pull { font-family: var(--f-display); font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.3; border-left: 2px solid var(--accent); padding-left: 22px; margin-block: 12px; }

.note { font-size: 0.95rem; color: var(--muted); background: var(--bg-2); padding: 16px 18px; border-radius: 3px; }

/* contact block at the end of every post */
.contact { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; margin-top: 40px; position: relative; overflow: hidden; }
/* the 11 mark sits behind the block's content, barely visible, drifting slower than the page */
.contact-mark { position: absolute; z-index: 0; right: -70px; top: 50%; width: 340px; height: 340px; margin-top: -170px; color: var(--ink-2); opacity: 0.06; pointer-events: none; will-change: transform; }
.contact-copy, .contact-act { z-index: 1; }
.contact-copy { position: relative; }
.contact h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.contact h2 em { color: var(--accent-text); }
.contact-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.contact-copy p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.contact-act { display: flex; flex-direction: column; gap: 12px; justify-content: center; min-width: 0; position: relative; }
.contact-num { font-family: var(--f-display); font-size: clamp(1.2rem, 1.9vw, 1.55rem); font-variant-numeric: lining-nums tabular-nums; line-height: 1.1; white-space: nowrap; }
.contact-sub { font-size: 0.85rem; color: var(--muted); }
.contact-act .row { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-act .row .btn { flex: 1 1 140px; }
.contact-offer { font-size: 0.9rem; }
.contact-offer a { color: var(--accent-text); font-weight: 600; text-decoration: none; }

.sources { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; display: flex; flex-direction: column; gap: 6px; }
.sources b { color: var(--ink); font-weight: 600; }

.related { padding-block: clamp(56px, 8vw, 96px); background: var(--surface); }
.related .posts { margin-top: 32px; }

@media (max-width: 980px) {
  .art .wrap, .art-head .wrap { grid-template-columns: 1fr; }
  .toc { display: none; }
  .art-head .label { display: none; }
}
@media (max-width: 640px) {
  .keyfigs { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .art-cover { aspect-ratio: 16 / 10; }
  .bar { grid-template-columns: 96px minmax(0, 1fr) 54px; gap: 8px; font-size: 0.82rem; }
  .avg-layer { left: 104px; right: 62px; }
}


/* ===== Serija Beograd na broju 11 ===== */

/* series post: "Beograd na broju 11" */
.art-cover.b11 { aspect-ratio: 16 / 9; }
.series-mark { display: flex; align-items: baseline; gap: 14px; }
.series-mark .c-num { font-size: clamp(2.6rem, 5vw, 3.6rem); }
.series-mark span { font-size: var(--s-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-block: 8px; }
.fact div { background: var(--surface); padding: 18px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fact b { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; line-height: 1.1; }
.fact span { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 22px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline b { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent-text); margin-right: 8px; }
/* the series collage: 21 photos in a mosaic, columns drift at different speeds */
.b11-collage { background: var(--bg-2); padding-block: clamp(64px, 9vw, 120px); overflow: hidden; }
.b11-collage h2 { font-size: clamp(1.9rem, 4vw, 3.4rem); font-weight: 450; max-width: 24ch; margin-bottom: clamp(36px, 5vw, 64px); }
.b11-collage h2 em { color: var(--accent-text); }
.b11-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(70px, 9vw, 120px); grid-auto-flow: dense; gap: 12px; }
.b11-mosaic .tile { position: relative; overflow: hidden; border-radius: 3px; box-shadow: var(--shadow); will-change: transform; }
.b11-mosaic .tile .layer { top: -12%; height: 124%; }
.b11-mosaic .w2 { grid-column: span 2; } .b11-mosaic .w3 { grid-column: span 3; }
.b11-mosaic .h2 { grid-row: span 2; } .b11-mosaic .h3 { grid-row: span 3; }
.b11-mosaic .tile.is-this { outline: 2px solid var(--accent); outline-offset: 3px; }
.art-end { padding-top: clamp(40px, 6vw, 72px); }
.g-item { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.g-img { aspect-ratio: 4 / 3; max-width: 100%; border-radius: 3px; background-size: cover; background-position: center; position: relative; }
.g-img .no { position: absolute; left: 8px; top: 8px; background: var(--surface); color: var(--ink); font-family: var(--f-display); font-size: 0.95rem; padding: 2px 9px; border-radius: 999px; font-variant-numeric: lining-nums; }
.g-item.is-this .g-img { outline: 2px solid var(--accent); outline-offset: 3px; }
.g-item figcaption { font-size: 0.85rem; color: var(--muted); line-height: 1.35; }
.g-item figcaption b { color: var(--ink); font-weight: 600; }
.wide-figure { margin: 8px 0; display: flex; flex-direction: column; gap: 8px; }
.wide-figure .g-img { aspect-ratio: 1005 / 737; }
@media (max-width: 640px) {
  .fact { grid-template-columns: 1fr; }
  .b11-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 90px; gap: 8px; }
  .b11-mosaic .w3 { grid-column: span 2; }
}


/* ===== Stranica opštine ===== */

/* district page: Čukarica. One permanent URL, refreshed in place */
.updated { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: var(--s-small); color: var(--muted); }
.updated .pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.updated .pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hoods { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-block: 8px; }
.hood { background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hood h3 { font-size: 1.25rem; }
.hood p { font-size: 0.95rem; color: var(--muted); line-height: 1.5; }
.hood.ours { background: var(--bg); }
.hood .tag { font-size: var(--s-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); font-weight: 700; }
.bar.here .fill { background: var(--accent); }
.bar.ref .fill { background: var(--muted); }
.bar.ref .name, .bar.ref .val { color: var(--muted); }
.related-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-mini .post-img { aspect-ratio: 16 / 10; }
.related-mini h3 { font-size: 1.2rem; }
.offer-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid var(--line); padding: 22px 24px; }
.offer-inline p { margin: 0; max-width: 40ch; color: var(--muted); font-size: 0.98rem; }
.offer-inline b { color: var(--ink); font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; display: block; margin-bottom: 4px; }
.changelog { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.changelog b { color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 8px; }
@media (max-width: 640px) {
  .hoods, .related-mini { grid-template-columns: 1fr; }
}


/* ===== Kolekcija Saveti i priče ===== */

/* collection page: all "Saveti i priče", filterable */
.coll-head { padding-block: clamp(32px, 5vw, 64px) clamp(20px, 3vw, 32px); }
.coll-head .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px clamp(24px, 5vw, 72px); }
.coll-head .inner { display: flex; flex-direction: column; gap: 20px; max-width: 820px; min-width: 0; }
.coll-head h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); font-weight: 450; }
.coll-head h1 em { color: var(--accent-text); }
.coll-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.coll-tools .filter { margin: 0; }
.filter button .count { font-variant-numeric: tabular-nums; opacity: .65; margin-left: 4px; font-weight: 500; }
.filter .series-btn[aria-pressed="true"] { background: var(--cta-bg); border-color: var(--cta-bg); color: var(--cta-fg); }
.coll-count { font-size: var(--s-small); color: var(--muted); }
.coll { padding-block: clamp(24px, 4vw, 48px) clamp(64px, 9vw, 112px); }
.coll .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px clamp(24px, 5vw, 72px); }
.coll-grid { grid-column: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; min-width: 0; }
.coll-grid .post { display: flex; flex-direction: column; gap: 14px; text-decoration: none; min-width: 0; }
.coll-grid .post h3 { font-size: 1.35rem; }
.coll-grid .post p { color: var(--muted); font-size: 0.95rem; }
.coll-grid .post .read-time { font-size: var(--s-small); color: var(--muted); }
.post-img .demo { position: absolute; right: 10px; top: 10px; background: var(--tmp-bg); color: var(--accent-text); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.coll-empty { grid-column: 2; padding: 40px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.coll-series { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); overflow: hidden; margin-top: 24px; }
.coll-series .pic { min-height: 240px; background-size: cover; background-position: center; }
.coll-series .txt { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.coll-series h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.coll-series h2 em { color: var(--accent-text); }
.coll-series p { color: var(--muted); }
.coll-series .prog { font-size: var(--s-small); color: var(--ink-2); font-weight: 600; }
.coll-series .prog span { display: block; height: 4px; background: var(--line); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.coll-series .prog span i { display: block; height: 100%; background: var(--accent); }
.coll .contact { grid-column: 2; }
@media (max-width: 980px) {
  .coll-head .wrap, .coll .wrap { grid-template-columns: 1fr; }
  .coll-head .label { display: none; }
  .coll-grid, .coll-empty, .coll-series, .coll .contact { grid-column: 1; }
  .coll-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .coll-grid { grid-template-columns: 1fr; }
  .coll-series { grid-template-columns: 1fr; }
}


/* ===== Slike kao <img> (paralaks slojevi i kartice) ===== */
picture { display: contents; }
img.layer { width: 100%; object-fit: cover; display: block; }
.hero-photo img.layer { object-position: 62% center; }
.post-img { overflow: hidden; }
.post-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.coll-series .pic { position: relative; overflow: hidden; }
.coll-series .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wide-figure .g-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 3px; }
.prose figure.photo { margin: 8px 0; display: flex; flex-direction: column; gap: 8px; }
.prose figure.photo img { width: 100%; height: auto; border-radius: 3px; display: block; }
.prose figure.photo figcaption { font-size: 0.78rem; color: var(--muted); }
.prose blockquote { font-family: var(--f-display); font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.3; border-left: 2px solid var(--accent); padding-left: 22px; margin: 12px 0; }
.prose blockquote p { margin: 0; }
.cover-credit { position: absolute; right: 16px; bottom: 12px; font-size: 0.72rem; color: #FFFFFF; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
