:root {
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --paper: #f4f0e8;
  --paper-2: #ebe6dc;
  --line: rgba(17, 17, 17, 0.12);
  --muted: #5c574e;
  --white: #f7f4ee;
  --danger: #8a2b2b;
  --ok: #2d5a3d;
  --radius: 2px;
  --header-h: 6.85rem;
  --max: 72rem;
  --font: "Outfit", "Segoe UI", sans-serif;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit-latin-400.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: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext-400.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: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/outfit-latin-500.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: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext-500.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: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-latin-600.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: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext-600.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;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink-soft);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.8rem;
  z-index: 100;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  background: var(--ink);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header .logo img {
  height: 4.35rem;
  width: auto;
}

.site-footer .logo img {
  height: 2.2rem;
  width: auto;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(247, 244, 238, 0.28);
  color: var(--white);
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--white);
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(247, 244, 238, 0.82);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--white);
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.4rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(247, 244, 238, 0.2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.lang a {
  text-decoration: none;
  color: rgba(247, 244, 238, 0.5);
}

.lang a[aria-current="true"],
.lang a:hover {
  color: var(--white);
}

main {
  flex: 1;
}

.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  top: -6rem;
  width: 28rem;
  height: 28rem;
  background: url("../images/hero-ecliptic.svg") center / contain no-repeat;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.hero-tisak::after,
.hero-projekti::after,
.hero-savjetovanje::after {
  display: none;
}

.hero-tisak,
.hero-projekti,
.hero-savjetovanje {
  display: flex;
  align-items: center;
  padding-block: 2.75rem;
}

.hero-tisak .wrap,
.hero-projekti .wrap,
.hero-savjetovanje .wrap {
  width: 100%;
  display: grid;
  grid-template-columns:
    max(1.25rem, calc((100% - var(--max)) / 2))
    minmax(0, 1fr)
    minmax(14rem, 1fr)
    1.25rem;
  align-items: center;
}

.hero-tisak .hero-copy,
.hero-projekti .hero-copy,
.hero-savjetovanje .hero-copy {
  grid-column: 2;
  padding-inline-end: 1.5rem;
}

.hero-tisak .hero-copy h1,
.hero-projekti .hero-copy h1,
.hero-savjetovanje .hero-copy h1 {
  max-width: 16ch;
}

.hero-tisak .hero-copy .lede,
.hero-projekti .hero-copy .lede,
.hero-savjetovanje .hero-copy .lede {
  max-width: 36rem;
}

.hero-tisak .hero-art,
.hero-projekti .hero-art,
.hero-savjetovanje .hero-art {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  pointer-events: none;
}

.hero-projekti .hero-art {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.hero-projekti .hero-art .partner-credit {
  margin-top: 0;
}

.hero-tisak .hero-art img,
.hero-projekti .hero-art > img,
.hero-savjetovanje .hero-art img {
  display: block;
  width: min(100%, 30rem);
  height: auto;
}

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  max-width: 22ch;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 1.15rem;
  max-width: 42rem;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 0.72rem 1.15rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.btn:hover {
  background: #000;
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.section {
  padding: 4rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-head p {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.card {
  background: var(--paper-2);
  padding: 1.5rem 1.4rem 1.35rem;
  display: flex;
  flex-direction: column;
  min-height: 17rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.card:hover {
  border-color: var(--ink);
  color: inherit;
}

.card .num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 2.4rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  flex: 1;
}

.card h3 {
  margin-bottom: 0.55rem;
}

.card .more {
  margin-top: 1.3rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.split-tisak {
  grid-template-columns: 1.5fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
}

.figure-tisak {
  min-height: 36rem;
  margin-inline-start: -7rem;
  width: calc(100% + 7rem);
}

.figure-tisak img {
  min-height: 36rem;
}

.split-tisak .prose {
  margin-inline-end: -3rem;
  min-width: 0;
}

.split-tisak .prose p,
.split-tisak .steps {
  max-width: none;
}

.split-tisak .steps li {
  white-space: nowrap;
}

.prose p {
  margin: 0 0 1rem;
  max-width: 42rem;
}

.prose ul {
  margin: 0 0 1.2rem;
  padding-left: 1.15rem;
  max-width: 42rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 1rem 0 1rem 3.2rem;
  border-top: 1px solid var(--line);
  position: relative;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.note {
  font-size: 0.95rem;
  color: var(--muted);
  border-left: 2px solid var(--ink);
  padding-left: 1rem;
  margin: 1.5rem 0 0;
  max-width: 40rem;
}

.figure {
  background: var(--paper-2);
  min-height: 16rem;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.figure svg {
  width: min(70%, 18rem);
  height: auto;
  opacity: 0.9;
}

.figure img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: contain;
  display: block;
}

.figure-plain {
  background: transparent;
}

.figure-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-inline-start: 5.5rem;
}

.partner-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
  margin: 0.9rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.partner-credit a {
  display: block;
  line-height: 0;
  pointer-events: auto;
}

.partner-credit img {
  display: block;
  height: 2.4rem;
  width: auto;
}

.partner-credit a:hover img,
.partner-credit a:focus-visible img {
  opacity: 0.7;
}

.ph {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  position: absolute;
  bottom: 1rem;
  left: 1rem;
}

.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 3.2rem 0;
}

.cta-band h2 {
  max-width: 16ch;
}

.cta-band p {
  color: rgba(247, 244, 238, 0.75);
  max-width: 36rem;
  margin: 0 0 1.25rem;
}

.cta-band .btn {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
  margin-top: 0.5rem;
}

.cta-band .btn:hover {
  background: transparent;
  color: var(--white);
}

.funders {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2.7rem;
}

.funders .kicker {
  margin-bottom: 1.35rem;
}

.funders-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem 3.5rem;
}

.funders-logos img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.funders-logos .logo-eu {
  width: min(26rem, 100%);
  max-height: 6.5rem;
}

.funders-logos .logo-hamag {
  height: 5.4rem;
  max-width: 100%;
}

@media (max-width: 760px) {
  .funders-logos .logo-eu {
    width: 100%;
    max-height: none;
  }

  .funders-logos .logo-hamag {
    height: 4.2rem;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.meta-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.meta-list strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

form {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 500;
}

input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.22);
  padding: 0.7rem 0.75rem;
  width: 100%;
}

textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.consent input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-status {
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.5rem;
}

.form-status.ok {
  background: #e4eee6;
  color: var(--ok);
}

.form-status.err {
  background: #f3e4e4;
  color: var(--danger);
}

.legal h1 {
  max-width: none;
}

.legal .prose {
  max-width: 46rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.site-footer {
  background: var(--ink);
  color: rgba(247, 244, 238, 0.72);
  padding: 2.4rem 0 1.6rem;
  font-size: 0.88rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: start;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(247, 244, 238, 0.12);
}

.footer-top img {
  height: 1.25rem;
  width: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
}

.footer-nav a {
  text-decoration: none;
  color: rgba(247, 244, 238, 0.72);
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
}

@media (max-width: 900px) {
  .cards,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero::after {
    width: 18rem;
    height: 18rem;
    right: -6rem;
  }

  .hero-tisak .wrap,
  .hero-projekti .wrap,
  .hero-savjetovanje .wrap {
    width: min(var(--max), calc(100% - 2.5rem));
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }

  .hero-tisak .hero-copy,
  .hero-tisak .hero-art,
  .hero-projekti .hero-copy,
  .hero-projekti .hero-art,
  .hero-savjetovanje .hero-copy,
  .hero-savjetovanje .hero-art {
    grid-column: auto;
    padding-inline-end: 0;
  }

  .hero-tisak .hero-art img,
  .hero-projekti .hero-art > img,
  .hero-savjetovanje .hero-art img {
    width: min(100%, 20rem);
  }

  .figure-col {
    margin-inline-start: 0;
  }

  .figure-tisak {
    margin-inline-start: 0;
    width: auto;
    min-height: 20rem;
  }

  .figure-tisak img {
    min-height: 20rem;
  }

  .split-tisak .prose {
    margin-inline-end: 0;
  }

  .split-tisak .steps li {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: #0c0c0c;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 1.25rem 1.2rem;
    gap: 0.85rem;
  }

  body.nav-open .nav {
    display: flex;
  }

  .lang {
    margin: 0.4rem 0 0;
    padding: 0.6rem 0 0;
    border-left: 0;
    border-top: 1px solid rgba(247, 244, 238, 0.15);
    width: 100%;
  }

  h1 {
    max-width: none;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }
}
