/* =========================================================
   TERRA VERITAS · stilovi mrežne stranice
   Boje prema čl. 6. i 7. statuta: Terra zelena #045A2B,
   Voda plava #1A5F9E, Tlo smeđa #7A4A24
   ========================================================= */

:root {
  --terra: #045A2B;
  --terra-dark: #023d1d;
  --terra-deep: #01291a;
  --terra-mid: #0b7a3e;
  --terra-light: #8cc79b;
  --terra-pale: #e5f1e8;
  --voda: #1A5F9E;
  --voda-pale: #e3eef8;
  --tlo: #7A4A24;
  --tlo-pale: #f3eadf;
  --zrak: #5d6d74;
  --zrak-pale: #eef2f3;
  --signal: #e0892a;
  --paper: #f7f5ef;
  --paper-2: #efece2;
  --white: #ffffff;
  --ink: #15211b;
  --ink-2: #44524b;
  --line: #d9ddd5;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(1, 41, 26, .25);
  --shadow-lg: 0 30px 60px -25px rgba(1, 41, 26, .45);
  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra); text-underline-offset: 3px; }
a:hover { color: var(--terra-mid); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; flex: none; }
.i.flip { transform: scaleX(-1); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--terra); color: #fff; padding: 8px 14px; z-index: 1000; border-radius: 8px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- gumbi ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.45em; border-radius: 999px; border: 2px solid var(--terra);
  background: var(--terra); color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { background: var(--terra-mid); border-color: var(--terra-mid); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-light { background: #fff; color: var(--terra); border-color: #fff; }
.btn-light:hover { background: var(--terra-pale); border-color: var(--terra-pale); color: var(--terra-dark); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { background: transparent; color: var(--terra); }
.btn-outline:hover { color: #fff; }
.btn-small { padding: .55em 1.1em; font-size: .92rem; }
.btn-signal { background: var(--signal); border-color: var(--signal); padding: .6em 1.1em; font-size: .95rem; }
.btn-signal:hover { background: #c87316; border-color: #c87316; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; color: var(--terra); }
.link:hover .i { transform: translateX(3px); }
.link .i { transition: transform .2s; }

/* ---------- zaglavlje ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 245, 239, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.35); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-symbol { width: 44px; height: 44px; transition: transform .6s var(--ease); }
.brand:hover .brand-symbol { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 600; letter-spacing: .16em; font-size: 1.05rem; }
.brand-sub { font-size: .74rem; color: var(--ink-2); letter-spacing: .03em; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav ul a {
  display: block; padding: 8px 9px; border-radius: 8px; white-space: nowrap; text-decoration: none; color: var(--ink);
  font-family: var(--font-head); font-size: .95rem; font-weight: 500; position: relative;
}
.main-nav ul a::after { content: ''; position: absolute; left: 9px; right: 9px; bottom: 4px; height: 2px; background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav ul a:hover::after, .main-nav ul a[aria-current]::after, .main-nav ul a.active::after { transform: scaleX(1); }
.main-nav ul a:hover { color: var(--terra); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.status-ribbon { background: var(--terra); color: #e5f1e8; text-align: center; font-size: .8rem; padding: 4px 16px; letter-spacing: .02em; }

@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 12px;
    background: var(--paper); padding: 16px 16px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); transform: translateY(-120%); transition: transform .4s var(--ease);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav ul a::after { display: none; }
  .btn-signal { justify-content: center; }
}
@media (max-width: 420px) { .brand-sub { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: -40px 0; z-index: -2;
  background-size: cover; background-position: center 60%;
  transform: translateY(var(--parallax, 0px)) scale(1.06);
  will-change: transform;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 80% 40%, rgba(4,90,43,.15), transparent 60%),
    linear-gradient(100deg, rgba(1,41,26,.94) 0%, rgba(2,61,29,.82) 45%, rgba(4,90,43,.35) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; padding: 72px 0 110px; }
.hero h1 { color: #fff; }
.hero .hl { color: var(--terra-light); }
.hero .lead { font-size: 1.22rem; max-width: 38em; color: rgba(255,255,255,.9); }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 600; color: var(--terra-mid); margin-bottom: .9em; }
.eyebrow.light { color: var(--terra-light); }
.slogan-rotator { font-family: var(--font-head); font-size: 1.35rem; font-weight: 300; min-height: 1.6em; margin: 1.4em 0 1.8em; border-left: 3px solid var(--terra-light); padding-left: 16px; }
.sr-swap { display: inline-block; transition: opacity .5s, transform .5s var(--ease); }
.sr-swap.out { opacity: 0; transform: translateY(10px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img { width: min(380px, 100%); filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.hero-orbs span { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(140,199,155,.35), rgba(140,199,155,0) 70%); z-index: -1; animation: drift 16s ease-in-out infinite; }
.hero-orbs span:nth-child(1) { width: 380px; height: 380px; right: 8%; top: 8%; }
.hero-orbs span:nth-child(2) { width: 220px; height: 220px; right: 32%; top: 30%; animation-delay: -5s; }
.hero-orbs span:nth-child(3) { width: 260px; height: 260px; right: -4%; top: 45%; animation-delay: -9s; }
@keyframes drift { 50% { transform: translate(-30px, 24px) scale(1.08); } }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 16px); } }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 0 100px; gap: 24px; }
  .hero-logo { order: -1; justify-content: flex-start; }
  .hero-logo img { width: 150px; }
}

/* ---------- brojke ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; color: var(--terra); line-height: 1; margin-bottom: 8px; }
.stat span { font-size: .95rem; color: var(--ink-2); }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- sekcije ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--terra-deep); color: #e8f0ea; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: var(--terra-light); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--ink-2); font-size: 1.12rem; }
.section-dark .section-head p:last-child { color: rgba(232,240,234,.8); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}

/* tabovi */
.tabs { margin-top: 28px; }
.tab-list { display: flex; gap: 6px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.tab-list button { background: none; border: 0; padding: 10px 16px; cursor: pointer; font-family: var(--font-head); font-weight: 500; color: var(--ink-2); position: relative; }
.tab-list button[aria-selected="true"] { color: var(--terra); }
.tab-list button[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--terra); border-radius: 3px; }
.tab-panel { padding: 20px 0 0; animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.ticks, .crosses { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li, .crosses li { position: relative; padding-left: 30px; margin-bottom: .5em; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--terra-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23045A2B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.crosses li::before { content: ''; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: #f6e3d6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a4451a' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/11px no-repeat; }

/* foto + kartica */
.photo-stack { position: relative; margin: 0; padding-bottom: 80px; }
.photo-stack img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 78%; aspect-ratio: 4/5; object-fit: cover; }
.photo-stack figcaption { font-size: .78rem; color: var(--ink-2); margin-top: 8px; }
.not-card { position: absolute; right: 0; bottom: 0; width: min(330px, 70%); background: var(--white); border-radius: var(--radius); padding: 24px 24px 12px; box-shadow: var(--shadow-lg); border-top: 4px solid var(--tlo); }
.not-card h3 { font-size: 1.1rem; }
.not-card p { font-size: .95rem; font-style: italic; color: var(--ink-2); }
.not-card li { font-size: .97rem; }
@media (max-width: 560px) { .photo-stack img { width: 100%; } .not-card { position: relative; width: 100%; margin-top: -60px; } .photo-stack { padding-bottom: 0; } }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 72px; }
.value { background: var(--white); border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--terra-light); }
.value .i { width: 40px; height: 40px; padding: 9px; background: var(--terra-pale); color: var(--terra); border-radius: 12px; margin-bottom: 14px; }
.value p { color: var(--ink-2); font-size: .98rem; margin: 0; }
.value:nth-child(2) { transition-delay: .06s; } .value:nth-child(3) { transition-delay: .12s; } .value:nth-child(4) { transition-delay: .18s; }
@media (max-width: 960px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }
.quote { font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 300; text-align: center; margin-top: 64px; color: var(--terra-dark); }

/* ---------- krug ---------- */
.cycle-wrap { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 40px; align-items: center; }
.pillar { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 30px 26px; }
.pillar h3 { display: flex; align-items: center; gap: 10px; }
.pillar h3 .i { color: var(--terra-light); width: 26px; height: 26px; }
.pillar-motto { font-family: var(--font-head); font-size: 1.15rem; color: var(--terra-light); font-weight: 300; }
.pillar p:last-child { color: rgba(232,240,234,.82); font-size: .98rem; margin: 0; }
.cycle { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin: 0 auto; }
.cycle-svg { width: 100%; height: 100%; color: var(--terra-light); }
.cycle-ring { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 2; stroke-dasharray: 4 8; }
.cycle-progress { fill: none; stroke: var(--terra-light); stroke-width: 4; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 200px 200px; stroke-dasharray: 879.6; stroke-dashoffset: 659.7; transition: stroke-dashoffset .9s var(--ease); }
.cycle-center { font-family: var(--font-head); font-size: 30px; fill: #fff; font-weight: 600; letter-spacing: .06em; }
.cycle-center.alt { fill: var(--terra-light); font-weight: 300; }
.cycle-node {
  position: absolute; transform: translate(-50%, -50%); width: 34%;
  background: var(--terra-dark); border: 1px solid rgba(255,255,255,.18); color: #fff;
  border-radius: 14px; padding: 10px 12px; font-family: var(--font-head); font-size: .85rem; line-height: 1.25; cursor: pointer;
  transition: background .3s, transform .3s var(--ease), border-color .3s; text-align: center;
}
.cycle-node span { display: block; font-size: 1.3rem; font-weight: 600; color: var(--terra-light); }
.cycle-node:hover { border-color: var(--terra-light); }
.cycle-node.active { background: var(--terra-light); color: var(--terra-deep); transform: translate(-50%, -50%) scale(1.08); border-color: var(--terra-light); }
.cycle-node.active span { color: var(--terra); }
.n1 { left: 50%; top: 15%; } .n2 { left: 85%; top: 50%; } .n3 { left: 50%; top: 85%; } .n4 { left: 15%; top: 50%; }
.cycle-text { position: absolute; left: 50%; bottom: -88px; transform: translateX(-50%); width: 120%; text-align: center; min-height: 72px; }
.cycle-text p { display: none; margin: 0; color: rgba(232,240,234,.9); }
.cycle-text p.on { display: block; animation: fadeUp .5s var(--ease); }
.cycle-text b { color: var(--terra-light); font-weight: 600; }
@media (max-width: 1000px) {
  .cycle-wrap { grid-template-columns: 1fr; }
  .cycle { order: -1; margin-bottom: 100px; }
}
@media (max-width: 520px) { .cycle-node { font-size: .74rem; padding: 6px 6px; width: 38%; } .cycle-node span { font-size: 1rem; } .cycle-text { width: 100%; } }

/* ---------- teme ---------- */
.theme-switch { --accent: var(--voda); --accent-pale: var(--voda-pale); }
.theme-switch[data-active="tlo"] { --accent: var(--tlo); --accent-pale: var(--tlo-pale); }
.theme-switch[data-active="zrak"] { --accent: var(--zrak); --accent-pale: var(--zrak-pale); }
.theme-tabs { display: inline-flex; background: var(--white); border-radius: 999px; padding: 6px; gap: 4px; box-shadow: var(--shadow); margin-bottom: 32px; flex-wrap: wrap; }
.theme-tabs button { border: 0; background: transparent; padding: 10px 22px; border-radius: 999px; cursor: pointer; font-family: var(--font-head); font-weight: 500; display: inline-flex; gap: 8px; align-items: center; transition: background .3s, color .3s; }
.theme-tabs button[aria-selected="true"].t-voda { background: var(--voda); color: #fff; }
.theme-tabs button[aria-selected="true"].t-tlo { background: var(--tlo); color: #fff; }
.theme-tabs button[aria-selected="true"].t-zrak { background: var(--zrak); color: #fff; }
.theme-stage { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--accent-pale); border-radius: 24px; overflow: hidden; transition: background .6s; min-height: 460px; }
.theme-photo { margin: 0; position: relative; overflow: hidden; }
.theme-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform 1.2s var(--ease); }
.theme-photo img.swap { opacity: 0; transform: scale(1.05); }
.theme-photo figcaption { position: absolute; left: 12px; bottom: 10px; font-size: .74rem; color: #fff; background: rgba(0,0,0,.45); padding: 3px 9px; border-radius: 6px; }
.theme-copy { padding: clamp(28px, 4vw, 52px); }
.theme-copy h3 { font-size: 1.8rem; color: var(--accent); transition: color .5s; }
.theme-logo { width: 120px; margin-bottom: 16px; transition: opacity .3s; }
.theme-copy .ticks li::before { background-color: #fff; }
.theme-copy.swap > * { animation: fadeUp .5s var(--ease); }
@media (max-width: 860px) { .theme-stage { grid-template-columns: 1fr; } .theme-photo { aspect-ratio: 16/10; } }

/* ---------- programi ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { border: 1.5px solid var(--line); background: var(--white); padding: 8px 16px; border-radius: 999px; cursor: pointer; font-family: var(--font-head); font-size: .92rem; transition: all .25s; }
.chip:hover { border-color: var(--terra); }
.chip.active { background: var(--terra); border-color: var(--terra); color: #fff; }
.program-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.program-card {
  --c: var(--terra); --cp: var(--terra-pale);
  display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 20px; cursor: pointer;
  position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, opacity .35s, border-color .35s;
}
.program-card.s-svijest { --c: var(--voda); --cp: var(--voda-pale); }
.program-card.s-oba { --c: var(--tlo); --cp: var(--tlo-pale); }
.program-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.program-card:hover::before { transform: scaleX(1); }
.program-card.hide { display: none; }
.pc-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--cp); color: var(--c); display: grid; place-items: center; margin-bottom: 8px; }
.pc-icon .i { width: 26px; height: 26px; }
.pc-pillar { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c); font-weight: 700; }
.pc-title { font-family: var(--font-head); font-size: 1.22rem; font-weight: 600; line-height: 1.2; }
.pc-phase { font-size: .86rem; color: var(--ink-2); }
.pc-more { margin-top: auto; padding-top: 10px; font-size: .9rem; font-weight: 600; color: var(--c); display: inline-flex; gap: 6px; align-items: center; }

.modal { border: 0; border-radius: 22px; padding: 36px; width: min(560px, calc(100% - 32px)); box-shadow: var(--shadow-lg); color: var(--ink); }
.modal::backdrop { background: rgba(1, 41, 26, .55); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal-close { position: absolute; right: 14px; top: 14px; border: 0; background: var(--paper-2); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.pm-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.pm-head .pc-icon { margin: 0; --c: var(--terra); --cp: var(--terra-pale); }
.pm-head h3 { margin: 0; font-size: 1.6rem; }
.pm-pillar { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--terra-mid); font-weight: 700; }
.pm-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; background: var(--paper); padding: 16px 18px; border-radius: 12px; margin: 0 0 24px; font-size: .97rem; }
.pm-meta dt { font-weight: 700; } .pm-meta dd { margin: 0; color: var(--ink-2); }

/* ---------- razine i kviz ---------- */
.levels { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.lv { display: flex; gap: 16px; align-items: center; background: var(--white); padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.lv:hover, .lv.flash { transform: translateX(6px); border-color: var(--lc); }
.lv b { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-family: var(--font-head); font-size: 1.3rem; color: #fff; background: var(--lc); }
.lv strong { display: block; font-family: var(--font-head); font-weight: 600; }
.lv span { font-size: .93rem; color: var(--ink-2); }
.lv-a { --lc: #045A2B; } .lv-b { --lc: #2f8a52; } .lv-c { --lc: #1A5F9E; } .lv-d { --lc: #7A4A24; } .lv-s { --lc: #e0892a; }

.quiz { background: var(--terra-deep); color: #fff; border-radius: 24px; padding: 32px; position: sticky; top: 110px; box-shadow: var(--shadow-lg); }
.quiz-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.quiz-badge { background: var(--terra-light); color: var(--terra-deep); font-family: var(--font-head); font-weight: 600; font-size: .8rem; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .1em; }
.quiz-progress { font-family: var(--font-head); color: var(--terra-light); }
.quiz-q { font-family: var(--font-head); font-size: 1.3rem; font-weight: 400; min-height: 5.2em; line-height: 1.4; }
.quiz-q::before { content: 'Koju oznaku nosi tvrdnja?'; display: block; font-size: .85rem; color: var(--terra-light); margin-bottom: 8px; letter-spacing: .04em; }
.quiz-opts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 18px 0; }
.quiz-opts button { aspect-ratio: 1; border-radius: 14px; border: 2px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.quiz-opts button:hover:not(:disabled) { border-color: var(--terra-light); background: rgba(255,255,255,.12); transform: translateY(-3px); }
.quiz-opts button.right { background: var(--terra-light); border-color: var(--terra-light); color: var(--terra-deep); }
.quiz-opts button.wrong { background: #b5462a; border-color: #b5462a; }
.quiz-opts button:disabled { cursor: default; }
.quiz-feedback { min-height: 4.8em; color: rgba(255,255,255,.88); font-size: .98rem; }
.quiz-feedback b { color: var(--terra-light); }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; }
.quiz-score b { font-family: var(--font-head); font-size: 1.3rem; color: var(--terra-light); }
.quiz .btn { background: var(--terra-light); border-color: var(--terra-light); color: var(--terra-deep); }
@media (max-width: 900px) { .quiz { position: static; } }

/* ---------- signal ---------- */
.signal-band { color: #fff; overflow: hidden; isolation: isolate; }
.band-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; background-attachment: fixed; }
.signal-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(40,22,8,.93), rgba(122,74,36,.82) 60%, rgba(224,137,42,.6)); }
.signal-band h2 { color: #fff; }
.signal-band .eyebrow.light { color: #ffd4a1; }
.signal-band .btn-light { color: var(--tlo); }
.small-note { font-size: .92rem; opacity: .85; margin-top: 18px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 70px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; backdrop-filter: blur(6px); transition: background .3s, transform .3s var(--ease); }
.steps li:hover { background: rgba(255,255,255,.17); transform: translateX(-4px); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--tlo); font-family: var(--font-head); font-weight: 700; }
.steps b { color: #ffd4a1; }
.signal-note { margin-top: 40px; background: rgba(0,0,0,.25); border-left: 4px solid #ffd4a1; padding: 16px 20px; border-radius: 0 12px 12px 0; }
.credit-inline { font-size: .74rem; opacity: .7; margin-top: 24px; margin-bottom: 0; }
@media (hover: none) { .band-bg { background-attachment: scroll; } }

/* ---------- put člana ---------- */
.path { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 10px 0 64px; }
.path-line { position: absolute; left: 12.5%; right: 12.5%; top: 34px; height: 4px; background: var(--line); border-radius: 4px; }
.path-fill { position: absolute; inset: 0 auto 0 0; width: 0%; background: linear-gradient(90deg, var(--terra-light), var(--terra)); border-radius: 4px; transition: width .7s var(--ease); }
.path-step { position: relative; background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 6px; }
.path-step .dot { width: 72px; height: 72px; border-radius: 50%; background: var(--white); border: 3px solid var(--line); display: grid; place-items: center; color: var(--ink-2); transition: all .4s var(--ease); margin-bottom: 8px; }
.path-step .dot .i { width: 28px; height: 28px; }
.path-step b { font-family: var(--font-head); font-size: 1.15rem; }
.path-step small { color: var(--ink-2); font-size: .9rem; max-width: 16em; }
.path-step.done .dot { border-color: var(--terra); color: var(--terra); }
.path-step.active .dot { background: var(--terra); border-color: var(--terra); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 8px var(--terra-pale); }
@media (max-width: 640px) {
  .path { grid-template-columns: 1fr; gap: 18px; }
  .path-line { left: 34px; right: auto; width: 4px; top: 36px; bottom: 36px; height: auto; }
  .path-fill { width: 100% !important; height: var(--fill, 0%); transition: height .7s var(--ease); }
  .path-step { flex-direction: row; text-align: left; gap: 16px; }
  .path-step .dot { margin: 0; flex: none; }
  .path-step b { min-width: 6em; }
}
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16/10; background-size: cover; background-position: center; transition: transform 1s var(--ease); }
.card:hover .card-img { transform: scale(1.05); }
.card-body { padding: 22px 24px 26px; position: relative; background: var(--white); flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--ink-2); font-size: .98rem; }
.card-body .link { margin-top: auto; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

/* ---------- karta ---------- */
.map-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
.map { height: 520px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: #dfe8e1; z-index: 1; }
.region-panel { background: var(--white); border-radius: 22px; padding: 28px; border: 1px solid var(--line); }
.region-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.region-list button { width: 100%; text-align: left; background: var(--paper); border: 1px solid transparent; padding: 12px 14px; border-radius: 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; transition: all .25s; }
.region-list button:hover { border-color: var(--terra-light); background: var(--terra-pale); }
.region-list button .i { color: var(--terra); }
.r-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--terra-mid); font-weight: 700; margin: 18px 0 4px; }
.region-panel .back { margin-bottom: 14px; font-size: .92rem; }
.region-panel [data-region-detail] { animation: fadeUp .4s var(--ease); }
.tv-marker { background: none; border: 0; }
.tv-marker span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--terra); color: #fff; font-family: var(--font-head); font-weight: 600; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,.3); transition: transform .3s var(--ease); }
.tv-marker:hover span, .tv-marker.on span { transform: scale(1.2); background: var(--signal); }
.tv-marker.hq span { background: var(--terra-deep); width: 22px; height: 22px; border-width: 2px; font-size: 0; }
.tv-marker.pulse span::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--terra); animation: ping 2.4s infinite; }
@keyframes ping { to { transform: scale(1.9); opacity: 0; } }
.leaflet-popup-content { font-family: var(--font-body); }
.branch-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.branch-how > div { display: flex; gap: 16px; }
.branch-how b { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--terra); color: #fff; font-family: var(--font-head); }
.branch-how p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.branch-how strong { color: var(--ink); }
@media (max-width: 900px) { .map-layout, .branch-how { grid-template-columns: 1fr; } .map { height: 400px; } }

/* ---------- plan ---------- */
.roadmap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: end; height: 300px; border-bottom: 2px solid var(--line); }
.rm-year { background: none; border: 0; cursor: pointer; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px; padding: 0; }
.rm-bar { width: min(90px, 80%); height: 0; background: linear-gradient(180deg, var(--terra-light), var(--terra-mid)); border-radius: 14px 14px 0 0; position: relative; transition: height 1.1s var(--ease), background .3s; }
.roadmap.in .rm-bar { height: calc(var(--h) * .8); }
.rm-bar span { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; color: var(--terra); }
.rm-year:nth-child(2) .rm-bar { transition-delay: .1s; } .rm-year:nth-child(3) .rm-bar { transition-delay: .2s; } .rm-year:nth-child(4) .rm-bar { transition-delay: .3s; } .rm-year:nth-child(5) .rm-bar { transition-delay: .4s; }
.rm-year.active .rm-bar, .rm-year:hover .rm-bar { background: linear-gradient(180deg, var(--terra-mid), var(--terra-deep)); }
.rm-label { font-family: var(--font-head); font-weight: 500; padding: 10px 0; color: var(--ink-2); position: relative; top: 46px; margin-top: -46px; }
.rm-year.active .rm-label { color: var(--terra); font-weight: 600; }
.rm-caption { font-size: .85rem; color: var(--ink-2); margin-top: 52px; text-align: center; }
.rm-detail { background: var(--white); border-radius: var(--radius); padding: 24px 28px; border-left: 5px solid var(--terra); margin-top: 18px; box-shadow: var(--shadow); font-size: 1.1rem; }
.rm-detail p { margin: 0; }
.rm-detail p.swap { animation: fadeUp .45s var(--ease); }

/* ---------- obrasci ---------- */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px var(--terra-pale); }
.form .invalid { border-color: #b5462a !important; box-shadow: 0 0 0 4px #f6e0d8 !important; }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .93rem; }
.form label.check input { margin-top: .3em; width: 18px; height: 18px; accent-color: var(--terra); flex: none; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .hint { font-weight: 400; font-size: .85rem; color: var(--ink-2); }
.form fieldset { border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 0; }
.form legend { font-weight: 700; padding: 0 6px; font-family: var(--font-head); }
.form-msg { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-msg.ok { color: var(--terra); }
.form-msg.err { color: #b5462a; }
.card-form { background: var(--white); color: var(--ink); padding: clamp(24px, 4vw, 40px); border-radius: 24px; box-shadow: var(--shadow-lg); }
.card-form .btn-light { background: var(--terra); color: #fff; border-color: var(--terra); justify-self: start; }
.contact .card-form a { color: var(--terra); }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; font-size: 1.1rem; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list .i { color: var(--terra-light); width: 24px; height: 24px; }
@media (max-width: 600px) { .form .row2 { grid-template-columns: 1fr; } }
.success-box { text-align: center; padding: 30px 10px; animation: fadeUp .5s var(--ease); }
.success-box .i { width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: var(--terra-pale); color: var(--terra); stroke-width: 2.5; margin-bottom: 14px; }

/* ---------- podstranice ---------- */
.page-hero { background: var(--terra-deep); color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .35; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--terra-deep) 30%, rgba(1,41,26,.55)); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.page-hero p { max-width: 44em; color: rgba(255,255,255,.88); font-size: 1.15rem; }
.page-hero.signal::before { background: linear-gradient(100deg, rgba(40,22,8,.95) 30%, rgba(122,74,36,.7)); }
.crumbs { font-size: .88rem; margin-bottom: 18px; color: var(--terra-light); }
.crumbs a { color: var(--terra-light); }

.layout-aside { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.aside-sticky { position: sticky; top: 110px; display: grid; gap: 18px; }
.info-box { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.info-box h3 { font-size: 1.1rem; display: flex; gap: 10px; align-items: center; }
.info-box h3 .i { color: var(--terra); }
.info-box.warn { background: #fff4e6; border-color: #f2c48f; }
.info-box.warn h3 .i { color: var(--signal); }
.info-box p:last-child, .info-box ul:last-child { margin-bottom: 0; }
.info-box ul { padding-left: 1.1em; }
@media (max-width: 960px) { .layout-aside { grid-template-columns: 1fr; } .aside-sticky { position: static; } }

/* odabir vrste signala */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.type-grid label { position: relative; font-weight: 500 !important; font-size: .92rem !important; display: block !important; }
.type-grid input { position: absolute; opacity: 0; }
.type-grid span { display: block; padding: 12px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; transition: all .2s; height: 100%; }
.type-grid input:checked + span { border-color: var(--tlo); background: var(--tlo-pale); color: var(--tlo); box-shadow: inset 0 0 0 1px var(--tlo); }
.type-grid input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.pick-map { height: 340px; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--line); z-index: 1; }
.map-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; font-weight: 400; font-size: .9rem; color: var(--ink-2); }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 20px; text-align: center; cursor: pointer; transition: all .2s; background: var(--white); font-weight: 400 !important; }
.drop:hover, .drop.over { border-color: var(--terra); background: var(--terra-pale); }
.drop input { display: none; }
.drop .i { width: 32px; height: 32px; color: var(--terra); margin: 0 auto 6px; display: block; }
.preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.preview img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; }
.stepper { display: flex; gap: 6px; margin-bottom: 22px; counter-reset: st; flex-wrap: wrap; }
.stepper span { counter-increment: st; flex: 1; min-width: 90px; font-size: .82rem; color: var(--ink-2); border-top: 4px solid var(--line); padding-top: 6px; transition: all .3s; }
.stepper span::before { content: counter(st) '. '; font-weight: 700; }
.stepper span.on { border-color: var(--terra); color: var(--terra); font-weight: 600; }
.form-step { display: grid; gap: 16px; }
.form-step[hidden] { display: none; }
.form-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* članarina */
.fee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fee { background: var(--white); border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); text-align: center; }
.fee b { display: block; font-family: var(--font-head); font-size: 2.4rem; color: var(--terra); font-weight: 600; line-height: 1.1; }
.fee small { color: var(--ink-2); }
.fee h3 { font-size: 1.05rem; margin-top: 10px; }
@media (max-width: 720px) { .fee-grid { grid-template-columns: 1fr; } }
.donate { background: linear-gradient(135deg, var(--terra), var(--terra-deep)); color: #fff; border-radius: 24px; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.donate h2, .donate h3 { color: #fff; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.amounts button { border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: #fff; padding: 14px 0; border-radius: 14px; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.amounts button.on, .amounts button:hover { background: #fff; color: var(--terra); border-color: #fff; }
.donate-out { background: rgba(0,0,0,.2); border-radius: 14px; padding: 16px 18px; font-size: .97rem; }
.donate input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 0; font: inherit; margin-bottom: 14px; }
@media (max-width: 860px) { .donate { grid-template-columns: 1fr; } .amounts { grid-template-columns: repeat(2, 1fr); } }
.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; font-size: .97rem; }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--terra); color: #fff; font-family: var(--font-head); font-weight: 500; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* statut */
.statut-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.statut-nav { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 18px; }
.statut-nav ol { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.statut-nav li a { display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); line-height: 1.3; }
.statut-nav li a:hover { background: var(--terra-pale); }
.statut-nav li a.active { background: var(--terra); color: #fff; }
.statut-nav li a small { display: block; font-size: .75rem; opacity: .7; }
.search-box { position: relative; margin-bottom: 14px; }
.search-box input { width: 100%; padding: 11px 12px 11px 38px; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; }
.search-box input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px var(--terra-pale); }
.search-box .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-2); }
.search-count { font-size: .82rem; color: var(--ink-2); margin: -6px 0 10px; min-height: 1.2em; }
.statut-body { max-width: 760px; }
.statut-chapter { margin-bottom: 48px; }
.statut-chapter > h2 { font-size: 1.5rem; padding-bottom: 10px; border-bottom: 2px solid var(--terra); color: var(--terra-dark); }
.statut-chapter > h2 small { display: block; font-size: .85rem; color: var(--terra-mid); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.article { background: var(--white); border-radius: 14px; padding: 22px 26px; margin-bottom: 12px; border: 1px solid var(--line); scroll-margin-top: 100px; }
.article h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--terra-mid); display: flex; justify-content: space-between; align-items: center; }
.article h3 a { font-size: .8rem; text-decoration: none; opacity: 0; transition: opacity .2s; letter-spacing: 0; text-transform: none; }
.article:hover h3 a { opacity: 1; }
.article p { font-size: 1rem; margin-bottom: .6em; }
.article p.item { padding-left: 1.6em; text-indent: -1.6em; }
.article.target { border-color: var(--terra); box-shadow: 0 0 0 4px var(--terra-pale); }
.article mark { background: #ffe58a; padding: 0 2px; border-radius: 3px; }
.article.hidden, .statut-chapter.hidden { display: none; }
.draft-note { background: #fff4e6; border: 1px solid #f2c48f; border-radius: 14px; padding: 14px 18px; font-size: .95rem; margin-bottom: 28px; }
@media (max-width: 900px) { .statut-layout { grid-template-columns: 1fr; } .statut-nav { position: relative; top: 0; max-height: 320px; } }

.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.doc { display: flex; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.doc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--terra-light); color: var(--ink); }
.doc .i { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--terra-pale); color: var(--terra); }
.doc strong { display: block; font-family: var(--font-head); font-weight: 600; }
.doc small { color: var(--ink-2); }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.logo-tile { border-radius: var(--radius); padding: 18px; background: var(--white); border: 1px solid var(--line); text-align: center; text-decoration: none; color: var(--ink); transition: transform .3s var(--ease); }
.logo-tile:hover { transform: translateY(-4px); }
.logo-tile.dark { background: var(--terra); color: #fff; border-color: var(--terra); }
.logo-tile img { width: 100%; max-width: 180px; margin: 0 auto 8px; }
.logo-tile small { font-size: .85rem; }
.swatches { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.swatch { display: flex; align-items: center; gap: 10px; background: var(--white); padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-size: .92rem; }
.swatch i { width: 34px; height: 34px; border-radius: 50%; display: block; }
@media (max-width: 760px) { .logo-grid { grid-template-columns: 1fr 1fr; } }
.credits { font-size: .92rem; }
.credits td:first-child img { width: 84px; height: 60px; object-fit: cover; border-radius: 8px; }

/* ---------- podnožje ---------- */
.site-footer { background: #0d1a14; color: rgba(232,240,234,.78); padding: 72px 0 0; font-size: .96rem; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer a { color: var(--terra-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 1fr; gap: 36px; }
.footer-brand img { width: 150px; margin-bottom: 14px; }
.footer-slogan { font-family: var(--font-head); font-weight: 300; font-size: 1.1rem; color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 22px 0 28px; font-size: .82rem; display: grid; gap: 4px; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; background: var(--terra); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(12px); transition: all .3s var(--ease); z-index: 90; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--terra-mid); color: #fff; }

/* admin */
.admin-table td { font-size: .9rem; }
.admin-table pre { white-space: pre-wrap; margin: 0; font-family: inherit; }

/* ---------- Knjiga i tečaj „Znamo li što jedemo?” ---------- */
.hrana-knjiga { grid-template-columns: minmax(220px, 340px) 1fr; }
.hrana-korica { margin: 0; display: block; max-width: 340px; justify-self: center; }
.hrana-korica img { border-radius: 6px; box-shadow: var(--shadow-lg); transition: transform .6s var(--ease); }
.hrana-korica:hover img { transform: rotate(-1.5deg) translateY(-4px); }
.hrana-korica-mala { max-width: 260px; }
.hrana-najava .split { grid-template-columns: minmax(200px, 300px) 1fr; }
.hrana-autori { font-family: var(--font-head); font-weight: 500; color: var(--ink-2); }
.hrana-docs { margin-top: 48px; }
.hint { font-size: .9rem; color: var(--ink-2); }
.section-dark .hint { color: rgba(255,255,255,.75); }

.hrana-dijelovi { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hrana-dio details { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--dio); border-radius: var(--radius-sm); overflow: hidden; }
.hrana-dio summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 3.2em 1fr auto; gap: 14px; align-items: center; padding: 16px 20px; }
.hrana-dio summary::-webkit-details-marker { display: none; }
.hrana-dio summary:hover { background: color-mix(in srgb, var(--dio) 6%, white); }
.hd-broj { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--dio); }
.hd-tekst b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.hd-tekst small { display: block; color: var(--ink-2); font-size: .93rem; line-height: 1.45; }
.hd-n { font-size: .85rem; color: var(--dio); font-weight: 600; white-space: nowrap; }
.hd-n::after { content: ' ▾'; display: inline-block; transition: transform .3s; }
.hrana-dio details[open] .hd-n::after { transform: rotate(180deg); }
.hrana-dio details ol { margin: 0; padding: 4px 24px 18px calc(3.2em + 54px); color: var(--ink-2); }
.hrana-dio details li { padding: 2px 0; }
.hrana-dio details li::marker { color: var(--dio); font-weight: 600; }

.hrana-galerija { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.hrana-galerija figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.hrana-galerija img { width: 100%; height: 220px; object-fit: contain; }
.hrana-galerija figcaption { font-size: .92rem; color: var(--ink-2); line-height: 1.45; }

.hrana-brojke { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 8px 0 48px; }
.hrana-brojke div { border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-sm); padding: 18px 16px; }
.hrana-brojke b { display: block; font-family: var(--font-head); font-size: 2.2rem; font-weight: 600; color: var(--terra-light); line-height: 1.1; }
.hrana-brojke span { font-size: .9rem; color: rgba(255,255,255,.8); }
.hrana-pristup { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 28px; }

@media (max-width: 900px) {
  .hrana-knjiga, .hrana-najava .split { grid-template-columns: 1fr; }
  .hrana-korica { max-width: 240px; }
  .hrana-brojke { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hrana-dio summary { grid-template-columns: 2.2em 1fr; padding: 14px 16px; }
  .hd-n { grid-column: 2; }
  .hrana-dio details ol { padding-left: calc(2.2em + 46px); }
  .hrana-galerija { grid-template-columns: 1fr; }
}

/* ---------- Publikacije i tečajevi ---------- */
.pub-lista { display: grid; gap: 28px; }
.pub { display: grid; grid-template-columns: 200px 1fr; gap: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pub-korica { display: block; align-self: start; }
.pub-korica img { border-radius: 4px; box-shadow: var(--shadow); transition: transform .5s var(--ease); }
.pub-korica:hover img { transform: translateY(-4px) rotate(-1deg); }
.pub-tijelo h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .25em; }
.pub-tijelo h2 a, .pub-tijelo h3 a { color: var(--ink); text-decoration: none; }
.pub-tijelo h2 a:hover, .pub-tijelo h3 a:hover { color: var(--terra); }
.pub-pod { font-family: var(--font-head); font-size: 1.1rem; color: var(--ink-2); margin-bottom: .6em; }
.pub-gumbi { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.pub-veza { margin-top: 18px; font-size: .97rem; }
.pub-veza .i { width: 22px; height: 22px; color: var(--terra); vertical-align: -5px; margin-right: 8px; }
.pub-uskoro { margin-top: 32px; padding: 18px 22px; border: 1px dashed var(--terra-light); border-radius: var(--radius); color: var(--ink-2); }
.pub-uskoro .i { width: 24px; height: 24px; color: var(--terra); vertical-align: -6px; margin-right: 10px; }
.pub-lista-mala .pub { grid-template-columns: 120px 1fr; padding: 20px; gap: 22px; }
.pub-lista-mala .pub p:last-child { margin-bottom: 0; color: var(--ink-2); font-size: .97rem; }
.pub-datoteke { margin: 20px 0 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.tecaj-lista { display: grid; gap: 28px; }
.tecaj-kartica { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tk-slika { display: flex; align-items: center; justify-content: center; background: var(--paper-2); padding: 24px; }
.tk-slika img { max-height: 280px; object-fit: contain; transition: transform .6s var(--ease); }
.tecaj-kartica:hover .tk-slika img { transform: scale(1.03); }
.tk-tijelo { padding: 28px 32px 32px; }
.tk-tijelo h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .25em; }
.tk-tijelo h2 a { color: var(--ink); text-decoration: none; }
.tk-status { display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 12px; border-radius: 99px; margin-bottom: 12px; }
.tk-status.uskoro { background: #fff4e6; color: #9a5a12; }
.tk-status.otvoren { background: var(--terra-pale); color: var(--terra); }
.tk-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin: 0 0 18px; }
.tk-meta dt { font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--terra); }
.tk-meta dd { margin: 0; font-size: .97rem; }
.tk-meta-velika { grid-template-columns: repeat(4, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 24px; }
.hrana-pristup-svijetli { background: var(--terra-pale); border-radius: var(--radius); padding: 26px 28px; }
.hrana-pristup-svijetli p:last-child { margin-bottom: 0; }
.ticks-2 { columns: 2; column-gap: 40px; }
.ticks-2 li { break-inside: avoid; }

@media (max-width: 900px) {
  .tecaj-kartica { grid-template-columns: 1fr; }
  .tk-meta-velika { grid-template-columns: repeat(2, 1fr); }
  .ticks-2 { columns: 1; }
}
@media (max-width: 640px) {
  .pub { grid-template-columns: 1fr; padding: 22px; }
  .pub-korica { max-width: 180px; }
  .pub-lista-mala .pub { grid-template-columns: 90px 1fr; }
  .tk-tijelo { padding: 22px; }
  .tk-meta, .tk-meta-velika { grid-template-columns: 1fr; }
}

/* ---------- Donacije ---------- */
.namjena { border: 0; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.namjena label { cursor: pointer; }
.namjena input { position: absolute; opacity: 0; }
.namjena span { display: block; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; padding: 12px 14px; transition: all .2s; }
.namjena b { display: block; font-family: var(--font-head); font-weight: 600; }
.namjena small { color: rgba(255,255,255,.8); }
.namjena input:checked + span { background: #fff; color: var(--terra); border-color: #fff; }
.namjena input:checked + span small { color: var(--ink-2); }
.namjena input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.koraci { counter-reset: k; list-style: none; padding: 0; margin: 0 0 1.2em; }
.koraci li { counter-increment: k; position: relative; padding: 0 0 14px 48px; }
.koraci li::before { content: counter(k); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--terra); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; }
@media (max-width: 520px) { .namjena { grid-template-columns: 1fr; } }
.pristup-dvoje { gap: 28px; margin-top: 8px; }
.pristup-dvoje h4 { font-size: 1.1rem; margin-bottom: .35em; }
.pristup-dvoje p { margin-bottom: .6em; }

/* Izbornik s deset stavki: naziv udruge se ne lomi, a podnaslov se na računalu ne prikazuje */
.brand-text { white-space: nowrap; }
@media (min-width: 1241px) {
  .brand-sub { display: none; }
  .main-nav ul a { padding: 8px 8px; font-size: .92rem; }
  .main-nav ul a::after { left: 8px; right: 8px; }
  .main-nav { gap: 12px; }
  .header-inner { gap: 16px; }
}
