/* ==========================================================================
   KresicLaw — glavni stil
   Paleta: pergament, tamni bordo (oxblood), mesing. Bez standardne plavo-bijele.
   ========================================================================== */

:root {
  --paper: #f5efe4;
  --paper-2: #ece3d3;
  --card: #fbf8f2;
  --ink: #1f1b16;
  --ink-2: #4a4239;
  --muted: #776b5d;
  --line: #d9cdb9;
  --line-2: #e6dccb;

  --ox: #6b1d28;
  --ox-2: #85283a;
  --ox-deep: #3a0f17;
  --on-ox: #f7efe2;
  --brass: #9c7631;
  --brass-2: #c8a25a;
  --sage: #3e5246;
  --sage-soft: #e3e8df;
  --ok: #2f6b4a;
  --ok-soft: #e4efe7;
  --warn: #8a5c0c;
  --warn-soft: #f7ecd6;
  --bad: #9b2b2b;
  --bad-soft: #f5e1de;

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r: 14px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(40, 25, 15, .06), 0 8px 24px -12px rgba(40, 25, 15, .18);
  --wrap: 1180px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15110e;
    --paper-2: #1d1814;
    --card: #221b16;
    --ink: #eee5d7;
    --ink-2: #cdbfab;
    --muted: #9c8e7b;
    --line: #3b3029;
    --line-2: #2d251f;
    --ox: #c4606d;
    --ox-2: #d47884;
    --ox-deep: #2a0b10;
    --on-ox: #1a0d0f;
    --brass: #d1ac63;
    --brass-2: #e0c07e;
    --sage: #9db3a4;
    --sage-soft: #1f2a23;
    --ok: #7cc39b;
    --ok-soft: #17271e;
    --warn: #e0b45e;
    --warn-soft: #2b2112;
    --bad: #e08a80;
    --bad-soft: #2d1714;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
  }
}

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ox); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ox-2); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ox); color: var(--on-ox); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Zaglavlje ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ox); color: var(--on-ox);
  font-family: var(--serif); font-size: 20px; font-weight: 600;
}
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.brand-name em { font-style: italic; color: var(--brass); font-weight: 500; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.site-nav { position: fixed; inset: 68px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: none; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--line-2); }
.site-nav a:hover, .site-nav a.active { color: var(--ox); }
.site-nav .nav-cta a { margin-top: 12px; text-align: center; border: 0; background: var(--ox); color: var(--on-ox); border-radius: 999px; }

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; background: none; border: 0; padding: 0; }
  .site-nav ul { display: flex; align-items: center; gap: 4px; }
  .site-nav a { border: 0; padding: 8px 12px; font-size: 14px; border-radius: 999px; }
  .site-nav a:hover { background: var(--paper-2); }
  .site-nav .nav-cta a { margin: 0 0 0 8px; padding: 9px 18px; }
  .site-nav .nav-cta a:hover { background: var(--ox-2); color: var(--on-ox); }
}

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px; border-radius: 999px;
  font-family: var(--sans); font-weight: 700; font-size: 15px; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ox); color: var(--on-ox); }
.btn-primary:hover { background: var(--ox-2); color: var(--on-ox); }
.btn-brass { background: var(--brass-2); color: #22170a; }
.btn-brass:hover { background: #d8b46c; color: #22170a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-light { background: transparent; color: #f5ead8; border-color: rgba(245, 234, 216, .35); }
.btn-light:hover { border-color: #f5ead8; color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(200, 162, 90, .16), transparent 60%),
    linear-gradient(160deg, #4a1320 0%, #2c0b12 70%);
  color: #f3e9d9;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 100% 34px; mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-2);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(40px, 9vw, 76px); font-weight: 500; margin: 18px 0 16px; color: #fbf3e6; }
.hero h1 .title-pre { display: block; font-size: .42em; font-style: italic; font-weight: 400; color: var(--brass-2); letter-spacing: 0; margin-bottom: 6px; }
.hero-lead { font-size: clamp(17px, 2.4vw, 20px); color: #e5d7c2; max-width: 34em; }
.hero-role { margin: 0 0 28px; color: #cdb99b; font-size: 15px; }
.hero-role strong { color: #f3e9d9; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { max-width: 420px; justify-self: center; width: 100%; opacity: .95; }
.hero-stats { position: relative; z-index: 1; border-top: 1px solid rgba(243, 233, 217, .14); }
.hero-stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.hero-stats li { padding: 20px 4px; border-bottom: 1px solid rgba(243, 233, 217, .1); }
.hero-stats b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 500; color: #fbf3e6; line-height: 1.1; }
.hero-stats span { font-size: 13px; color: #c9b597; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.25fr 1fr; align-items: center; padding-top: 88px; padding-bottom: 88px; }
  .hero-stats ul { grid-template-columns: repeat(4, 1fr); }
  .hero-stats li { border-bottom: 0; border-right: 1px solid rgba(243, 233, 217, .1); padding: 26px 24px; }
  .hero-stats li:first-child { padding-left: 0; }
  .hero-stats li:last-child { border-right: 0; }
}

/* ---------- Sekcije ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--paper-2); }
.section-head { display: grid; gap: 10px; margin-bottom: 40px; max-width: 760px; }
.section-num { font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 18px; }
.section-head h2 { font-size: clamp(30px, 5vw, 46px); font-weight: 500; margin: 0; }
.section-head p { color: var(--ink-2); font-size: 17px; margin: 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }

/* ---------- O profesoru ---------- */
.about { display: grid; gap: 40px; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; max-width: 360px; width: 100%;
  border-radius: var(--r); overflow: hidden;
  background: linear-gradient(155deg, var(--ox) 0%, var(--ox-deep) 100%);
  box-shadow: var(--shadow);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 120px; font-weight: 400; color: rgba(247, 239, 226, .9); letter-spacing: -.04em; }
.portrait-mono small { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-2); }
.portrait::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(200, 162, 90, .45); border-radius: 8px; pointer-events: none; z-index: 1; }
.about-text .lead { font-family: var(--serif); font-size: clamp(21px, 3vw, 27px); line-height: 1.4; color: var(--ink); font-weight: 400; }
.about-text p { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.tags li { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); }
@media (min-width: 900px) { .about { grid-template-columns: 360px 1fr; gap: 64px; align-items: start; } }

/* ---------- Akademski put (timeline) ---------- */
.path { display: grid; gap: 40px; margin-top: 64px; }
.path h3 { font-size: 22px; font-weight: 500; margin-bottom: 20px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 26px 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brass); }
.timeline li.now::before { background: var(--ox); border-color: var(--ox); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ox) 18%, transparent); }
.timeline .when { font-size: 13px; font-weight: 700; color: var(--brass); letter-spacing: .04em; }
.timeline .what { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.3; }
.timeline .where { font-size: 14px; color: var(--muted); }
@media (min-width: 900px) { .path { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------- Kalkulatori (kartice) ---------- */
.calc-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.calc-card {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 28px; border-radius: 20px; text-decoration: none; overflow: hidden;
  min-height: 420px; isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}
.calc-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -22px rgba(40, 20, 10, .45); }
.calc-card.inherit { background: linear-gradient(160deg, #5a1a26, #2f0c13); color: #f3e9d9; }
.calc-card.marital { background: linear-gradient(160deg, #3c5044, #1f2c25); color: #eef0e6; }
.calc-card .calc-art { position: absolute; right: -30px; top: -20px; width: 170px; opacity: .45; z-index: -1; }
@media (min-width: 640px) { .calc-card .calc-art { right: -20px; top: -10px; width: 230px; opacity: .9; } }
.calc-card .badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: inherit;
}
.badge.gold { background: var(--brass-2); color: #22170a; border-color: transparent; }
.calc-card .kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; opacity: .72; margin-top: auto; }
.calc-card h3 { font-size: clamp(28px, 4vw, 36px); font-weight: 500; margin: 0; color: #fff8ec; max-width: 12em; }
.calc-card p { margin: 0; opacity: .86; font-size: 15px; max-width: 34em; }
.calc-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.calc-card ul li { display: flex; gap: 10px; opacity: .92; }
.calc-card ul li::before { content: "§"; font-family: var(--serif); color: var(--brass-2); }
.calc-card .go { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: #fff8ec; }
.calc-card .go span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brass-2); color: #22170a; transition: transform .2s ease; }
.calc-card:hover .go span { transform: translateX(4px); }
.calc-note { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* ---------- Radovi ---------- */
.pub-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 38px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  font: 600 13px/1.2 var(--sans);
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .n { opacity: .6; margin-left: 4px; font-weight: 700; }
.search { flex: 1 1 220px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 500 14px var(--sans); }
.pub-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pub { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pub[hidden] { display: none; }
.pub .yr { font-family: var(--serif); font-size: 18px; color: var(--brass); padding-top: 1px; }
.pub .t { font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.35; color: var(--ink); margin: 0 0 4px; }
.pub .a { font-size: 14px; color: var(--ink-2); margin: 0; }
.pub .v { font-size: 13.5px; color: var(--muted); margin: 2px 0 0; font-style: italic; }
.pub .k { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sage); background: var(--sage-soft); padding: 3px 9px; border-radius: 999px; }
.pub .k.book { color: var(--on-ox); background: var(--ox); }
.pub .k.star { color: #22170a; background: var(--brass-2); }
.pub-empty { padding: 24px 0; color: var(--muted); }
@media (min-width: 768px) { .pub { grid-template-columns: 80px 1fr; gap: 20px; } .pub .yr { font-size: 22px; } }

.books { display: grid; gap: 16px; margin-bottom: 48px; }
@media (min-width: 700px) { .books { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .books { grid-template-columns: repeat(4, 1fr); } }
.book {
  position: relative; padding: 22px 20px 20px 26px; border-radius: 6px 14px 14px 6px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px; min-height: 220px;
}
.book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--ox); border-radius: 6px 0 0 6px; }
.book .yr { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--brass); }
.book h3 { font-size: 19px; font-weight: 500; margin: 0; line-height: 1.3; }
.book p { font-size: 13.5px; color: var(--muted); margin: 0; }
.book .tp { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--ox); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Projekti ---------- */
.proj-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .proj-grid { grid-template-columns: repeat(3, 1fr); } }
.proj { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.proj h3 { font-size: 20px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.proj h3 .ic { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--paper-2); color: var(--ox); font-family: var(--serif); font-size: 17px; flex: none; }
.proj ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.proj li { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; padding-left: 14px; border-left: 2px solid var(--line); }
.proj li b { color: var(--ink); font-weight: 700; }
.proj li small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ---------- Vodiči ---------- */
.guides { display: grid; gap: 14px; }
@media (min-width: 900px) { .guides { grid-template-columns: 1fr 1fr; gap: 18px; } }
.guide { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.guide summary { list-style: none; cursor: pointer; padding: 22px 56px 22px 22px; position: relative; display: grid; gap: 6px; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: "+"; position: absolute; right: 22px; top: 20px; font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--brass); transition: transform .2s ease; }
.guide[open] summary::after { transform: rotate(45deg); }
.guide .g-k { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ox); }
.guide .g-t { font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.guide .g-body { padding: 0 22px 22px; color: var(--ink-2); font-size: 15px; }
.guide .g-body ul { padding-left: 18px; margin: 0 0 1em; }
.guide .g-body li { margin-bottom: 6px; }
.guide .g-body .g-link { font-weight: 700; }
.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 8px 0 14px; }
.cmp th, .cmp td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: 20px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.1fr 1fr; gap: 28px; } }
.contact-main { background: var(--ox-deep); color: #f3e9d9; border-radius: 20px; padding: 32px; }
.contact-main h3 { font-size: clamp(26px, 4vw, 34px); font-weight: 500; color: #fbf3e6; }
.contact-main p { color: #dccab0; }
.contact-main .mail { display: inline-block; font-family: var(--serif); font-size: clamp(20px, 3.4vw, 26px); color: var(--brass-2); text-decoration: none; border-bottom: 1px solid rgba(200, 162, 90, .5); word-break: break-all; margin: 8px 0 22px; }
.contact-main .mail:hover { color: #e6c88a; }
.contact-side { display: grid; gap: 14px; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.info-card h4 { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.info-card p { margin: 0; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: #1a0e0f; color: #bfae95; padding: 56px 0 28px; font-size: 14px; }
.site-footer .wrap { display: grid; gap: 32px; }
.site-footer .brand { color: #f3e9d9; }
.site-footer .brand-mark { background: var(--brass-2); color: #22170a; }
.site-footer h4 { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #e0c07e; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #e7dac6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 12.5px; color: #8f806c; }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } .foot-bottom { grid-column: 1 / -1; } }

/* ---------- Animacija pojavljivanja ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   STRANICE KALKULATORA
   ========================================================================== */
.page-hero { background: linear-gradient(160deg, #4a1320 0%, #2c0b12 75%); color: #f3e9d9; }
.page-hero.sage { background: linear-gradient(160deg, #3c5044 0%, #1d2a23 80%); }
.page-hero .wrap { padding-top: 40px; padding-bottom: 40px; }
.crumbs { font-size: 13px; color: #cdb99b; margin-bottom: 14px; }
.crumbs a { color: #e9d9bf; }
.page-hero h1 { font-size: clamp(30px, 6vw, 50px); font-weight: 500; color: #fbf3e6; margin: 8px 0 10px; }
.page-hero p { color: #dccab0; max-width: 44em; margin: 0; }

.calc-wrap { padding: 28px 0 72px; }
.jur-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin: -54px 0 24px; position: relative; box-shadow: var(--shadow); }
.jur-tab { border: 0; background: transparent; color: var(--ink-2); padding: 10px 6px; border-radius: 11px; cursor: pointer; font: 700 14px/1.2 var(--sans); display: grid; gap: 2px; text-align: center; min-height: 56px; }
.jur-tab small { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.jur-tab[aria-selected="true"] { background: var(--ox); color: var(--on-ox); }
.jur-tab[aria-selected="true"] small { color: inherit; opacity: .8; }
.jur-tab:hover:not([aria-selected="true"]) { background: var(--paper-2); }

.stepper { display: flex; gap: 6px; margin-bottom: 20px; list-style: none; padding: 0; }
.stepper li { flex: 1; }
.stepper button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 600 13px var(--sans); cursor: pointer; text-align: left; }
.stepper button .d { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-weight: 800; font-size: 12px; }
.stepper button[aria-current="step"] { border-color: var(--ox); color: var(--ink); }
.stepper button[aria-current="step"] .d { background: var(--ox); color: var(--on-ox); }
.stepper button.done .d { background: var(--brass-2); color: #22170a; }
.stepper button[disabled] { cursor: not-allowed; opacity: .6; }
@media (max-width: 520px) { .stepper .lbl { display: none; } .stepper button { justify-content: center; } }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; }
@media (min-width: 768px) { .panel { padding: 26px 28px; } }
.panel > h2 { font-size: 22px; font-weight: 500; display: flex; align-items: baseline; gap: 10px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.panel > h2 .ord { font-style: italic; color: var(--brass); font-size: 18px; flex: none; }
.panel.muted-panel { opacity: .62; }
.applies { margin-left: auto; align-self: center; font: 800 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ok); background: var(--ok-soft); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.panel h3 { font-family: var(--sans); font-size: 14px; font-weight: 800; margin: 18px 0 10px; color: var(--ink); }

.field { margin-bottom: 16px; }
.field > label, .field > .lbl { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field .sub { font-size: 12.5px; color: var(--muted); margin: 5px 0 0; }
.grid2 { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.inp, .sel, textarea.inp {
  width: 100%; min-height: 44px; padding: 9px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font: 500 15px var(--sans);
}
textarea.inp { min-height: 80px; resize: vertical; }
.inp:focus, .sel:focus { outline: 2px solid color-mix(in srgb, var(--brass) 60%, transparent); outline-offset: 0; border-color: var(--brass); }
.inline { display: flex; gap: 8px; }
.inline .inp { flex: 1; }
.inline .sel { width: auto; flex: none; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; background: var(--paper); }
.radios label:has(input:checked) { border-color: var(--ox); background: color-mix(in srgb, var(--ox) 9%, var(--paper)); }
.radios input, .chk input { accent-color: var(--ox); width: 17px; height: 17px; }
.chk { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }

.hint, .warn { border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 10px 14px; font-size: 13.5px; line-height: 1.55; margin: 10px 0; }
.hint { background: var(--sage-soft); border-left: 3px solid var(--sage); color: var(--ink-2); }
.warn { background: var(--warn-soft); border-left: 3px solid var(--warn); color: var(--ink-2); }

.item { border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.item.dead { border-color: color-mix(in srgb, var(--brass) 55%, var(--line)); background: color-mix(in srgb, var(--brass) 7%, var(--paper)); }
.item-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.item-row .inp { flex: 1 1 180px; min-height: 40px; padding: 7px 10px; font-size: 14px; }
.item-row .sel { flex: 1 1 150px; min-height: 40px; padding: 7px 8px; font-size: 13px; }
.pill { flex: none; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--paper); letter-spacing: .04em; }
.pill.dead { background: var(--bad); color: #fff; }
.x { flex: none; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--bad); cursor: pointer; font-size: 16px; line-height: 1; }
.x:hover { background: var(--bad-soft); }
.sub-list { margin: 10px 0 0; padding-left: 12px; border-left: 2px solid var(--brass-2); display: grid; gap: 6px; }
.sub-list .item-row .inp { min-height: 38px; }
.add { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; min-height: 40px; border-radius: 999px; border: 1px dashed var(--ink-2); background: transparent; color: var(--ink); cursor: pointer; font: 700 13px var(--sans); }
.add:hover { border-style: solid; }
.add.sm { padding: 5px 11px; min-height: 34px; font-size: 12px; }
.empty-note { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; }
.pp { display: grid; gap: 12px; }
@media (min-width: 640px) { .pp { grid-template-columns: 1fr 1fr; } }
.pp-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--paper); }
.pp-card .lbl { font-weight: 800; font-size: 13px; margin-bottom: 8px; display: block; color: var(--ox); }
.pp-card .sel { margin-bottom: 8px; }
.ggp { display: grid; gap: 8px; }
@media (min-width: 640px) { .ggp { grid-template-columns: 1fr 1fr; } }
.ggp .pp-card { padding: 10px 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* Rezultati */
.summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 768px) { .summary { grid-template-columns: repeat(4, 1fr); } }
.sum { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.sum .l { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sum .v { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.25; margin-top: 4px; color: var(--ink); overflow-wrap: anywhere; }
.bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; gap: 2px; margin: 8px 0 12px; }
.bar > div { display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; min-width: 3px; overflow: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 13.5px; }
.chain .from { background: var(--bad); color: #fff; border-radius: 6px; padding: 3px 9px; font-weight: 700; }
.chain .to { background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; font-weight: 600; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tab { border: 0; background: transparent; padding: 12px 14px; font: 700 14px var(--sans); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--ox); border-bottom-color: var(--ox); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px; border-bottom: 2px solid var(--line); }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tr.rep td:first-child { box-shadow: inset 3px 0 0 var(--brass-2); }
.tbl tr.off { opacity: .45; }
.tbl .frac { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ox); text-align: center; white-space: nowrap; }
.tbl .num { text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl .note { font-size: 12.5px; color: var(--muted); }
.tbl tfoot td { font-weight: 800; border-top: 2px solid var(--line); border-bottom: 0; }
.draft { white-space: pre-wrap; font-family: var(--serif); font-size: 15px; line-height: 1.8; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 18px; max-height: 520px; overflow: auto; }

/* Bračna stečevina */
.verdict { border-radius: 12px; padding: 14px 16px; margin-top: 14px; border: 1.5px solid; }
.verdict.st { background: var(--ok-soft); border-color: var(--ok); }
.verdict.po { background: var(--warn-soft); border-color: var(--warn); }
.verdict .vh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 4px; }
.verdict .vt { font-weight: 800; font-size: 14px; letter-spacing: .06em; }
.verdict.st .vt { color: var(--ok); }
.verdict.po .vt { color: var(--warn); }
.verdict .vc { font-size: 12.5px; color: var(--muted); font-style: italic; }
.verdict p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.asset { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; margin-bottom: 6px; border: 1px solid var(--line); background: var(--paper); }
.asset .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.asset .dot.st { background: var(--ok); }
.asset .dot.po { background: var(--warn); }
.asset .body { flex: 1; min-width: 0; }
.asset .nm { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset .meta { font-size: 12px; color: var(--muted); }
.asset .val { font-weight: 800; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cards3 { display: grid; gap: 10px; margin-bottom: 16px; }
@media (min-width: 768px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.kpi { border-radius: 14px; padding: 16px; border: 1px solid var(--line); background: var(--card); }
.kpi.st { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.kpi .l { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font-family: var(--serif); font-size: 26px; font-weight: 500; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12.5px; color: var(--muted); }
.ptags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ptag { border-radius: 10px; padding: 8px 12px; border: 1px solid var(--line); background: var(--paper); }
.ptag .l { font-size: 11px; color: var(--muted); font-weight: 700; }
.ptag .v { font-weight: 800; font-variant-numeric: tabular-nums; }
.ptag.total { background: var(--ox); color: var(--on-ox); border-color: var(--ox); }
.ptag.total .l { color: inherit; opacity: .8; }
.err { color: var(--bad); font-weight: 700; font-size: 13.5px; margin-top: 10px; }

/* ==========================================================================
   PRAVNE STRANICE, KONTAKT, COOKIE BANNER
   ========================================================================== */
.legal { max-width: 820px; margin: 0 auto; font-size: 16px; color: var(--ink-2); }
.legal h2 { font-size: clamp(22px, 3vw, 27px); font-weight: 500; color: var(--ink); margin: 44px 0 14px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.legal h3 { font-family: var(--sans); font-size: 16px; font-weight: 800; color: var(--ink); margin: 26px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.legal ul, .legal ol { padding-left: 20px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal section { scroll-margin-top: 90px; }
.legal-meta { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin-bottom: 20px; }
.legal-toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin: 0 0 12px; }
.legal-toc h2 { border: 0; margin: 0 0 8px; padding: 0; font-size: 18px; }
.legal-toc ol { margin: 0; columns: 2 260px; column-gap: 28px; }
.legal-toc li { break-inside: avoid; font-size: 14.5px; }
.legal-callout { background: var(--ox-deep); color: #f0e4d0; border-radius: var(--r); padding: 20px 22px; margin-bottom: 20px; }
.legal-callout p { margin: 0; }
.legal-callout b { color: var(--brass-2); }
.legal-box { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brass); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 16px 18px; margin: 12px 0 16px; }
.legal-box p { margin: 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 600px; margin: 6px 0 12px; }
.legal-table th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px; border-bottom: 2px solid var(--line); background: var(--card); }
.legal-table td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.legal-table code, .legal code { font-size: 13px; background: var(--paper-2); padding: 1px 6px; border-radius: 5px; }
.legal .rights dt { font-weight: 800; color: var(--ink); margin-top: 14px; }
.legal .rights dd { margin: 4px 0 0; padding-left: 14px; border-left: 2px solid var(--line); }
.small-note { font-size: 13px; color: var(--muted); }
.status { font: 800 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.status.on { background: var(--ok-soft); color: var(--ok); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ox); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.site-footer .linklike { color: #e7dac6; text-decoration: none; }
.site-footer .linklike:hover { color: #fff; text-decoration: underline; }
.site-footer .gdpr-note .linklike { text-decoration: underline; }
.gdpr-note { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.6; color: #a99a84; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; }
.gdpr-note b { color: #e0c07e; }
.gdpr-note a { text-decoration: underline; }

.contact-page { display: grid; gap: 20px; }
@media (min-width: 960px) { .contact-page { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.contact-aside { display: grid; gap: 14px; }
.contact-aside .info-card p { font-size: 14px; }
.consent-box { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 8px 0 14px; display: grid; gap: 14px; }
.consent-box h3 { margin: 0; }
.consent-box .chk { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.consent-box .chk input { flex: none; margin-top: 3px; }
.ok { color: var(--ok); font-weight: 700; font-size: 14px; margin-top: 10px; }
.inp:user-invalid, .sel:user-invalid { border-color: var(--bad); }

.cookie-banner {
  position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px;
  max-width: 560px; margin-left: auto;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(30, 12, 8, .5); padding: 20px;
  max-height: calc(100vh - 24px); overflow-y: auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 21px; font-weight: 500; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.cookie-banner h2::before { content: "§"; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ox); color: var(--on-ox); font-size: 16px; }
.cookie-banner p { font-size: 14px; color: var(--ink-2); margin: 0 0 12px; }
.cb-cats { display: grid; gap: 8px; margin: 0 0 14px; }
.cb-cat { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; }
.cb-cat input { accent-color: var(--ox); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.cb-cat b { display: block; font-size: 14px; }
.cb-cat span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.cb-actions { display: grid; gap: 8px; }
.cb-actions .btn { width: 100%; min-height: 44px; font-size: 14px; }
@media (min-width: 560px) { .cb-actions { grid-template-columns: repeat(3, 1fr); } .cb-actions .btn { padding: 10px 12px; } }
.cb-links { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------- Ispis ---------- */
@media print {
  .cookie-banner, .site-header, .site-footer, .jur-tabs, .stepper, .actions, .tabs, .no-print, .hero-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .page-hero { background: none; color: #000; }
  .page-hero h1, .page-hero p, .crumbs { color: #000; }
  .panel, .sum, .kpi { break-inside: avoid; border-color: #bbb; }
  .tab-pane[hidden] { display: block !important; }
}
