@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  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: "DM Mono";
  src: url("assets/fonts/dm-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #152f29;
  --text: #40544e;
  --paper: #f8f5ee;
  --line: #e5e2d6;
  --mint: #e8efe7;
  --green: #0a5a4c;
  --red: #b60020;
  --gutter: clamp(1.25rem, 6.95vw, 6.25rem);
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #087b68; outline-offset: 4px; }

.wrap { width: min(77.5rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.unstyled { list-style: none; padding: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 3;
  inset: .5rem auto auto .5rem;
  transform: translateY(-150%);
  padding: .5rem 1rem;
  background: white;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 2;
  color: #080808;
  background: #fff;
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: clamp(1rem, 2vw, 2rem);
  min-height: 6.5rem;
  width: min(81.5rem, 100% - clamp(2.5rem, 10vw, 9rem));
  margin-inline: auto;
}
.brand img { width: clamp(10.5rem, 15.55vw, 14rem); }
.main-nav ul {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3.85vw, 3.55rem);
}
.main-nav a {
  font: 400 clamp(1rem, 1.42vw, 1.25rem) "DM Mono", monospace;
  text-decoration: none;
  text-transform: uppercase;
}
.header-actions, .language-links { display: flex; align-items: center; }
.header-actions { gap: 1rem; }
.language-links { gap: .95rem; }
.language-links a {
  display: grid;
  align-items: center;
  min-height: 2.75rem;
  font-size: 1.2rem;
  text-decoration: none;
}
.language-links [aria-current] { color: #444; font-weight: 700; }
.main-nav a:hover, .language-links a:hover, .site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: .22em;
}
.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #777;
}
.menu-toggle svg { display: block; margin: auto; }
.search-toggle {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.85rem;
  border-radius: .35rem;
  background: #050505;
  color: #fff;
}
.search-toggle::-webkit-details-marker { display: none; }
.search-form {
  position: absolute;
  inset: 100% max(1rem, calc((100% - 81.5rem) / 2)) auto auto;
  display: flex;
  gap: .5rem;
  width: min(28rem, 100% - 2rem);
  padding: .75rem;
  background: #fff;
  box-shadow: 0 .4rem 1.2rem #0002;
}
.search-form input[type="search"] {
  min-width: 0;
  flex: 1;
  padding: .5rem;
  border: 1px solid #929292;
}
.search-form button {
  padding: .5rem .75rem;
  border: 0;
  background: var(--green);
  color: #fff;
}

.hero {
  color: #fff;
  background: linear-gradient(#df0021, #7c031e);
  background-image: url("assets/Hero.jpg");
  background-image: image-set(url("assets/Hero.jpg") 1x, url("assets/Hero2x.jpg") 2x);
  background-size: cover;
  background-position: center;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.13fr .87fr;
  align-items: center;
  min-height: 35.6875rem;
  padding-block: 2.5rem 3rem;
}
.hero h1 {
  font-size: clamp(3.25rem, 6.94vw, 6.25rem);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 900;
}
html:lang(en) .hero h1 { text-wrap: balance; }
.hero p {
  max-width: 34.25rem;
  margin-top: 1.25rem;
  font-size: 1.25rem;
  letter-spacing: -.015em;
  line-height: 1.45;
}
.hero .button { min-width: 16.0625rem; margin-top: 1.6rem; color: var(--red); }
.hero-tree {
  justify-self: end;
  width: min(100%, 29.25rem);
  margin-inline-end: clamp(0rem, 2.65vw, 2.4rem);
  margin-block-end: .5rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  min-height: 3.125rem;
  max-width: 100%;
  padding: .6rem 1.25rem;
  color: var(--green);
  background: #fff;
  font-size: .9375rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}
.button:hover { background: #fffbef; }
.button:focus-visible { outline-color: #fff; }
.arrow {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arrow-down { rotate: 90deg; }

h2 {
  font-size: clamp(2.25rem, 4.17vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -.05em;
  font-weight: 900;
}
.overview { background: var(--paper); padding-block: 3rem 5.375rem; }
.intro, .ideas h2, .steps, .closing { text-align: center; }
.intro p {
  max-width: 37.5rem;
  margin: 1.75rem auto 0;
  color: var(--text);
  font-size: 1.125rem;
  letter-spacing: -.022em;
  line-height: 1.45;
}
.ideas { margin-top: 5.25rem; scroll-margin-top: 1.25rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3.875rem;
}
.card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: 20.3125rem;
  padding: 1.6875rem 1.75rem 1.5625rem;
  border: 1px solid var(--line);
  background: #fff;
}
.card-wide { grid-column: span 3; min-height: 17.1875rem; }
.card-heading { display: flex; align-items: flex-start; gap: .875rem; margin-inline-end: -.75rem; }
.card-wide .card-heading { gap: 1.1875rem; }
.card-heading img { width: 3.25rem; flex: none; }
.card h3 {
  font-size: clamp(1.4rem, 2.22vw, 2rem);
  line-height: 1.06;
  letter-spacing: -.05em;
  font-weight: 725;
  overflow-wrap: anywhere;
}
html:lang(hu) .card:not(.card-wide) h3 { font-size: clamp(1.4rem, 1.98vw, 1.78125rem); }
.card p { margin-top: 1.125rem; color: var(--text); }
.card-wide p { margin-top: 1.5rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .875rem;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--green);
  font-weight: 750;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; text-underline-offset: .2em; }

.steps { background: var(--mint); padding-block: 3.5rem 4.375rem; }
.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.75rem;
}
.step-list li {
  display: grid;
  justify-items: center;
  align-content: start;
}
.step-number {
  display: grid;
  place-items: center;
  width: 2.6875rem;
  height: 2.6875rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 750;
}
.step-list h3 {
  max-width: 18rem;
  margin-top: .75rem;
  font-size: 1.3125rem;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.step-list p { max-width: 18.5rem; margin-top: .4rem; color: var(--text); }
.step-list li:last-child p { max-width: 22rem; }
.closing { padding-block: 4.375rem 4.3125rem; background: var(--green); color: #fff; }
.closing h2 { font-size: clamp(2.25rem, 4.03vw, 3.625rem); }
.closing p { margin-top: .875rem; }
.closing .button { min-width: 13.25rem; margin-top: 1.625rem; }

.site-footer {
  padding-block: 4.625rem 5.75rem;
  color: #080808;
  background: #dddedf url("assets/footer-pattern.svg") left top / auto 60rem;
}
.footer-inner { width: min(80rem, 100% - clamp(1.875rem, 10vw, 10rem)); margin-inline: auto; }
.footer-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 16rem)) auto;
  column-gap: 2rem;
  align-items: start;
}
.footer-brand { width: min(100%, 14.625rem); }
.footer-links { display: grid; gap: .875rem; max-width: 14.5rem; padding-block: .75rem; }
.footer-links a { text-transform: uppercase; font-weight: 500; text-decoration: none; }
.footer-socials { display: flex; gap: 2.25rem; padding-top: .45rem; }
.footer-socials a { display: block; width: 2.1875rem; }
.footer-partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 1.5rem;
  width: min(100%, 70rem);
  margin-top: 4.75rem;
}
.footer-partners img { width: auto; height: 4rem; margin-inline: auto; object-fit: contain; }
.funding { max-width: 70rem; margin-top: 3.875rem; text-align: center; font-weight: 700; color: #262c30; }

@media (max-width: 68rem) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand menu actions" "nav nav nav";
    min-height: 4.5625rem;
    width: auto;
    margin-inline: clamp(.75rem, 3vw, 2rem);
  }
  .brand { grid-area: brand; }
  .brand img { width: clamp(7rem, 38vw, 12.5rem); }
  .menu-toggle { grid-area: menu; display: block; justify-self: start; }
  .header-actions { grid-area: actions; }
  .main-nav { grid-area: nav; }
  .main-nav ul { flex-wrap: wrap; padding-bottom: 1rem; }
  .js-menu .main-nav { display: none; }
  .js-menu.menu-open .main-nav { display: block; }
  .js-menu .main-nav ul { flex-direction: column; gap: 0; }
  .js-menu .main-nav a { display: block; padding: .65rem 0; }
  .footer-top { column-gap: 1.25rem; }
  .footer-socials { gap: 1.25rem; }
}

@media (max-width: 50rem) {
  :root { --gutter: clamp(1.25rem, 5vw, 2.5rem); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { grid-column: auto; min-height: 0; padding: 1.375rem; }
  .card:last-child { grid-column: span 2; }
  .card-wide .card-heading { gap: .875rem; }
  .card-wide p { margin-top: 1.125rem; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
}

@media (max-width: 40rem) {
  .header-inner { column-gap: .65rem; margin-inline: .75rem .2rem; }
  .header-actions, .language-links { gap: clamp(.45rem, 3.65vw, .95rem); }
  .language-links a { font-size: clamp(1rem, 4.8vw, 1.2rem); }
  .hero {
    background-image: url("assets/Hero-mobil.jpg");
    background-image: image-set(url("assets/Hero-mobil.jpg") 1x, url("assets/Hero-mobil2x.jpg") 2x);
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-block: 2.6875rem 2.8125rem;
  }
  .hero h1 {
    min-height: 8.875rem;
    font-size: clamp(2rem, 11.28vw, 3.5rem);
    line-height: 1.17;
    letter-spacing: -.055em;
  }
  html:lang(hu) .hero h1 { font-size: clamp(2rem, 10.55vw, 3.25rem); }
  .desktop-break { display: none; }
  .hero p { margin-top: .3rem; font-size: 1rem; line-height: 1.5; }
  .hero .button { margin-top: 1.75rem; }
  .hero-tree { align-self: center; width: 17.125rem; margin: 2.125rem 0 0; }
  h2, .closing h2 { font-size: clamp(1.85rem, 9.23vw, 2.25rem); }
  .overview { padding-block: 3.125rem 3.875rem; }
  .intro { min-height: 13rem; }
  .intro p { margin-top: .875rem; font-size: 1.1rem; }
  .ideas { margin-top: 1.75rem; }
  .ideas h2 { min-height: 4.75rem; max-width: 20rem; margin-inline: auto; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: .9375rem; margin-top: 1.1875rem; }
  .card:last-child { grid-column: auto; }
  .card-heading { margin-inline-end: -.625rem; }
  .card h3, html:lang(hu) .card:not(.card-wide) h3 { font-size: 1.5rem; line-height: 1.02; }
  .card p { margin-top: 1rem; letter-spacing: -.009em; }
  .card-wide p { margin-top: .875rem; font-size: .9375rem; line-height: 1.5; }
  html:lang(hu) .card:first-child p { margin-top: .5rem; }
  html:lang(hu) .card:nth-child(2) p { font-size: .9375rem; line-height: 1.5; }
  html:lang(hu) .card:last-child p { letter-spacing: -.025em; }
  .card-link { padding-top: .75rem; }
  .card-wide .card-link, html:lang(hu) .card:nth-child(2) .card-link { padding-top: .375rem; }
  .steps { padding-block: 3.25rem 2.5rem; }
  .steps h2 { max-width: 19rem; margin-inline: auto; }
  .step-list { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
  .step-number { font-size: 1.25rem; }
  .step-list h3, .step-list p { max-width: 100%; }
  .step-list li:first-child p { max-width: 20rem; }
  .step-list li:last-child p { max-width: 100%; }
  .closing { padding-block: 3.5rem; }
  .closing p { margin-top: 1rem; }
  .site-footer { padding-block: 3.75rem 3rem; background-size: auto 66rem; }
  .footer-top { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .footer-brand { width: min(100%, 20.25rem); }
  .footer-links { max-width: none; padding-block: 0; }
  .footer-top nav { margin-top: 2.25rem; }
  .footer-socials { padding: 0; margin-top: 1.5rem; gap: 2rem; }
  .footer-partners { margin-top: 2.75rem; }
  .footer-partners img { height: 3.25rem; }
  .funding { margin-top: 2rem; font-size: .875rem; }
}

@media (min-width: 22.5rem) and (max-width: 40rem) {
  .card { min-height: 18.6875rem; }
  .card:first-child { min-height: 19.5625rem; }
  .card-wide { min-height: 17rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-tree { animation: tree-entrance .55s ease-out both; }
  .button, .arrow, .footer-socials a { transition: background-color .18s, transform .18s; }
  .button:hover .arrow, .card-link:hover .arrow { transform: translateX(.2em); }
  .footer-socials a:hover { transform: translateY(-.18rem); }
}

@keyframes tree-entrance {
  from { opacity: 0; transform: translateY(.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
