/* Покрет горана Младеновац — стилови сајта */

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/golos-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/golos-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/golos-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(../fonts/lora-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(../fonts/lora-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f8f6f0;
  --surface: #ffffff;
  --surface-alt: #eef1e8;
  --text: #1f2a22;
  --muted: #56625a;
  --green: #1f4d33;
  --green-dark: #163a26;
  --green-soft: #dfe9dc;
  --leaf: #6a9a3a;
  --earth: #8a5a34;
  --line: #dcdcd0;
  --radius: 14px;
  --wrap: 1120px;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-dark);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }

/* ---------- Заглавље ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 240, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--green-dark);
  font-weight: 700; line-height: 1.15;
}
.brand img { width: 46px; height: 46px; }
.brand span { font-size: 1rem; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font: inherit; font-size: .95rem; color: var(--green-dark); cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  text-decoration: none; color: var(--text); font-weight: 500; font-size: .98rem;
}
.site-nav a:hover { background: var(--green-soft); color: var(--green-dark); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .site-nav a { padding: 12px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav li:last-child a { border-bottom: 0; }
}

/* ---------- Насловна ---------- */

.hero {
  position: relative; color: #fff;
  min-height: min(82vh, 680px);
  display: flex; align-items: flex-end;
  background: var(--green-dark);
  overflow: hidden;
}
.hero picture, .hero > img { position: absolute; inset: 0; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 32, 21, .15) 0%, rgba(14, 32, 21, .35) 45%, rgba(14, 32, 21, .82) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding: 120px 0 56px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero p { font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 40rem; margin-bottom: 1.6em; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 1rem; line-height: 1.2;
  border: 2px solid transparent;
}
.btn-primary { background: #fff; color: var(--green-dark); }
.btn-primary:hover { background: var(--green-soft); color: var(--green-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green-soft); }

/* ---------- Секције ---------- */

.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-alt { background: var(--surface-alt); }
.eyebrow {
  display: block; text-transform: uppercase; letter-spacing: .08em;
  font-size: .8rem; font-weight: 700; color: var(--leaf); margin-bottom: .6em;
}
.lead { font-size: 1.15rem; color: var(--text); max-width: 46rem; }
.muted { color: var(--muted); }

.two-col { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px;
}
.facts strong { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--green-dark); line-height: 1.25; }
.facts span { color: var(--muted); font-size: .95rem; }

.focus { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-top: 36px; }
.focus div { border-top: 3px solid var(--leaf); padding-top: 14px; }
.focus h3 { font-size: 1.12rem; margin-bottom: .35em; }
.focus p { color: var(--muted); font-size: 1rem; margin: 0; }
@media (max-width: 760px) { .focus { grid-template-columns: 1fr; } }

/* ---------- Активности ---------- */

.group-title {
  font-family: var(--font); font-size: .9rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin: 40px 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.contain img { object-fit: contain; }
.tag {
  position: absolute; left: 12px; top: 12px;
  background: rgba(255, 255, 255, .94); color: var(--green-dark);
  font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .3em; }
.card-meta { font-size: .92rem; color: var(--muted); margin-bottom: .8em; }
.card-body p { font-size: 1rem; }
.status { display: inline-block; font-size: .8rem; font-weight: 700; border-radius: 6px; padding: 2px 8px; margin-right: 6px; }
.status-done { background: var(--green-soft); color: var(--green-dark); }
.status-current { background: #f3e7d6; color: #6b4421; }
.funder {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted);
}
.funder b { color: var(--text); font-weight: 600; }
.card .more { margin-top: 14px; font-weight: 600; }
.media-note { font-size: .85rem; color: var(--muted); margin: -.4em 0 .8em; font-style: italic; }

/* Када је у групи само једна активност, на ширим екранима картица је положена */
@media (min-width: 760px) {
  .cards > .card:only-child { grid-column: 1 / -1; flex-direction: row; }
  .cards > .card:only-child .card-media { flex: 0 0 46%; aspect-ratio: auto; min-height: 320px; }
  .cards > .card:only-child .card-body { padding: 28px 32px; }
}

/* ---------- Галерија ---------- */

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery li:first-child img { aspect-ratio: auto; }
.gallery a { display: block; height: 100%; border-radius: 10px; overflow: hidden; background: var(--surface-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery li:first-child { grid-column: auto; grid-row: auto; }
  .gallery li:first-child img { aspect-ratio: 4 / 3; }
}
.gallery-note { font-size: .92rem; color: var(--muted); margin-top: 14px; }

/* ---------- Укључи се ---------- */

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.steps li { position: relative; padding-left: 48px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: .95rem;
}
.box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.box h3 { margin-bottom: .5em; }
.box ul { margin: 0; padding-left: 1.2em; }
.box li { margin-bottom: .35em; }

/* ---------- Контакт ---------- */

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list span { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.contact-list a, .contact-list b { font-size: 1.2rem; font-weight: 600; word-break: break-word; }

/* ---------- Подножје ---------- */

.site-footer { background: var(--green-dark); color: #dfe8df; padding: 40px 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer img { width: 40px; height: 40px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }

/* ---------- Страница активности ---------- */

.page-head { padding: 48px 0 24px; }
.crumbs { font-size: .92rem; margin-bottom: 18px; }
.page-hero { border-radius: var(--radius); overflow: hidden; margin: 8px 0 40px; }
.page-hero img { width: 100%; max-height: 560px; object-fit: cover; }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.aside-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.aside-list span { display: block; font-size: .85rem; color: var(--muted); }
.figure { margin: 0; }
.figure figcaption { font-size: .92rem; color: var(--muted); margin-top: 8px; }
.photo-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; }
.photo-grid a { display: block; border-radius: 10px; overflow: hidden; }
.photo-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 560px) { .photo-grid { grid-template-columns: 1fr; } }
