:root{
  --bg:#f7f8f6;
  --surface:#ffffff;
  --surface-2:#f1f4f0;
  --text:#172018;
  --muted:#667067;
  --line:#dfe5de;
  --accent:#2f6a46;
  --accent-dark:#214b33;
  --max:1180px;
  --radius:18px;
  --shadow:0 16px 50px rgba(23,32,24,.07);
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.7;
}

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

a{
  color:inherit;
}

.container{
  width:min(calc(100% - 40px), var(--max));
  margin-inline:auto;
}

.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(223,229,222,.9);
}

.nav-wrap{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  min-width:max-content;
}

.brand img{
  width:90px;
  max-height:44px;
  object-fit:contain;
}

.brand span{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
}

.main-nav{
  display:flex;
  align-items:center;
  gap:4px;
}

.menu{
  list-style:none;
  display:flex;
  align-items:center;
  gap:2px;
}

.menu > li{
  position:relative;
}

.menu a,
.menu button{
  border:0;
  background:none;
  text-decoration:none;
  color:var(--text);
  font:inherit;
  font-size:14px;
  font-weight:600;
  padding:12px 13px;
  border-radius:10px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:6px;
}

.menu a:hover,
.menu button:hover{
  background:var(--surface-2);
}

.submenu{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  width:240px;
  list-style:none;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:8px;
  opacity:0;
  visibility:hidden;
  transform:translateY(-4px);
  transition:.18s ease;
}

.menu li:hover > .submenu,
.menu li:focus-within > .submenu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.submenu a{
  padding:10px 12px;
  font-weight:500;
  color:var(--muted);
}

.nav-cta{
  color:white!important;
  background:var(--accent)!important;
}

.nav-cta:hover{
  background:var(--accent-dark)!important;
}

.lang-link{
  border:1px solid var(--line);
  padding:9px 11px!important;
}

.mobile-toggle{
  display:none;
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:10px;
  padding:10px 12px;
  font-weight:700;
  cursor:pointer;
}

.hero{
  min-height:78vh;
  display:grid;
  align-items:center;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(circle at 75% 20%, rgba(47,106,70,.08), transparent 24%),
    radial-gradient(circle at 20% 30%, rgba(47,106,70,.05), transparent 18%),
    var(--surface);
}

.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  align-items:center;
  gap:64px;
  padding:90px 0;
}

.eyebrow{
  display:inline-block;
  font-size:12px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:18px;
}

.hero h1{
  font-size:clamp(48px,7vw,88px);
  line-height:.98;
  letter-spacing:-.055em;
  max-width:820px;
}

.hero p{
  margin-top:24px;
  font-size:clamp(18px,2vw,22px);
  color:var(--muted);
  max-width:720px;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:32px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding:13px 18px;
  border-radius:12px;
  font-weight:700;
  border:1px solid var(--line);
  background:var(--surface);
}

.btn.primary{
  color:white;
  background:var(--accent);
  border-color:var(--accent);
}

.hero-card{
  min-height:430px;
  border:1px solid var(--line);
  border-radius:26px;
  background:
    linear-gradient(145deg, rgba(47,106,70,.14), rgba(255,255,255,.4)),
    var(--surface-2);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px;
  box-shadow:var(--shadow);
}

.hero-card img{
  width:min(80%,360px);
  object-fit:contain;
}


.news-strip{
  background:var(--surface);
  border-bottom:1px solid var(--line);
  padding:34px 0 40px;
}

.news-header{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}

.news-kicker{
  display:block;
  font-size:11px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:5px;
}

.news-header h2{
  font-size:clamp(26px,3vw,36px);
  line-height:1.05;
  letter-spacing:-.035em;
}

.news-header > a{
  font-size:14px;
  font-weight:700;
  color:var(--accent);
  text-decoration:none;
  white-space:nowrap;
}

.news-layout{
  display:grid;
  grid-template-columns:1.35fr .65fr;
  gap:16px;
}

.news-featured,
.news-small{
  position:relative;
  overflow:hidden;
  text-decoration:none;
  border:1px solid var(--line);
  background:var(--bg);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.news-featured:hover,
.news-small:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 34px rgba(23,32,24,.075);
  border-color:#c7d1c6;
}

.news-featured{
  min-height:330px;
  border-radius:20px;
  padding:30px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(23,32,24,.72) 100%),
    var(--news-img, none) center/cover no-repeat,
    var(--accent-dark);
  color:white;
}

.news-featured .menu a.active{
  background:var(--surface-2);
  color:var(--accent);
}

.news-date{
  color:#dbe8df;
}

.news-featured h3{
  max-width:720px;
  font-size:clamp(28px,4vw,44px);
  line-height:1.02;
  letter-spacing:-.04em;
  margin-bottom:12px;
}

.news-featured p{
  max-width:720px;
  color:rgba(255,255,255,.86);
  font-size:16px;
}

.news-side{
  display:grid;
  grid-template-rows:1fr 1fr;
  gap:16px;
}

.news-small{
  border-radius:18px;
  padding:22px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:157px;
}

.news-small h3{
  font-size:20px;
  line-height:1.2;
  letter-spacing:-.025em;
  margin:6px 0 8px;
}

.news-small p{
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}

.news-date{
  display:block;
  font-size:11px;
  font-weight:800;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:var(--accent);
}

.news-arrow{
  margin-top:14px;
  font-size:18px;
  line-height:1;
  color:var(--accent);
}

.partner-row{
  padding:24px 0;
  background:var(--surface);
  border-bottom:1px solid var(--line);
}

.partner-inner{
  display:flex;
  gap:30px;
  align-items:center;
  flex-wrap:wrap;
}

.partner-inner img{
  max-height:54px;
  width:auto;
  opacity:.88;
}

.section{
  padding:96px 0;
  scroll-margin-top:92px;
}

.section.alt{
  background:var(--surface);
  border-block:1px solid var(--line);
}

.section-head{
  display:grid;
  grid-template-columns:.55fr 1.45fr;
  gap:50px;
  align-items:start;
  margin-bottom:48px;
}

.section-title{
  font-size:clamp(38px,5vw,62px);
  line-height:1;
  letter-spacing:-.045em;
}

.lead{
  font-size:20px;
  color:var(--muted);
  max-width:760px;
}

.prose{
  max-width:860px;
  color:#39423a;
}

.prose p + p{
  margin-top:18px;
}

.grid{
  display:grid;
  gap:20px;
}

.grid.cols-2{
  grid-template-columns:repeat(2, minmax(0,1fr));
}

.grid.cols-3{
  grid-template-columns:repeat(3, minmax(0,1fr));
}

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px;
  box-shadow:0 8px 26px rgba(23,32,24,.035);
}

.card h3{
  font-size:21px;
  letter-spacing:-.02em;
  margin-bottom:10px;
}

.card p{
  color:var(--muted);
}

.card .small{
  font-size:14px;
}

.feature-number{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:var(--surface-2);
  color:var(--accent);
  font-weight:800;
  margin-bottom:22px;
}

.clean-list{
  list-style:none;
  display:grid;
  gap:10px;
  margin-top:20px;
}

.clean-list li{
  position:relative;
  padding-left:22px;
  color:var(--muted);
}

.clean-list li::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--accent);
  position:absolute;
  left:0;
  top:.7em;
}

.project{
  padding:30px 0;
  border-top:1px solid var(--line);
}

.project:first-of-type{
  border-top:0;
  padding-top:0;
}

.project h3{
  font-size:28px;
  letter-spacing:-.03em;
  margin-bottom:12px;
}

.project p{
  color:var(--muted);
  max-width:930px;
}

.meta-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px;
  margin-top:22px;
}

.meta{
  background:var(--surface-2);
  border-radius:12px;
  padding:15px 16px;
  font-size:14px;
  color:var(--muted);
}

.meta strong{
  display:block;
  color:var(--text);
  margin-bottom:4px;
}

.grant-image{
  margin-top:22px;
  padding:18px;
  background:white;
  border:1px solid var(--line);
  border-radius:14px;
}

.gallery{
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:10px;
  margin-top:28px;
}

.gallery a{
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:12px;
  border:1px solid var(--line);
  background:#e9ece8;
}

.gallery img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s ease;
}

.gallery a:hover img{
  transform:scale(1.035);
}

.event-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:22px;
  padding:30px;
}

.date{
  color:var(--accent);
  font-weight:700;
  margin-bottom:14px;
}

.contact-grid{
  display:grid;
  grid-template-columns:.75fr 1.25fr;
  gap:26px;
  align-items:start;
}

.contact-box{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:18px;
  padding:26px;
}

.contact-box h3{
  margin-bottom:14px;
}

.map{
  width:100%;
  height:420px;
  border:0;
  border-radius:18px;
  border:1px solid var(--line);
  background:#e9ece8;
}

.site-footer{
  padding:46px 0;
  background:#152219;
  color:#dce5dd;
}

.footer-grid{
  display:flex;
  justify-content:space-between;
  gap:30px;
  align-items:flex-start;
  flex-wrap:wrap;
}

.footer-grid img{
  width:100px;
  filter:brightness(0) invert(1);
  opacity:.92;
}

.footer-copy{
  color:#b9c4bb;
  font-size:14px;
}

.footer-copy a{
  color:white;
}

@media (max-width: 1040px){
  .main-nav{
    display:none;
    position:absolute;
    left:20px;
    right:20px;
    top:calc(100% + 6px);
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:16px;
    box-shadow:var(--shadow);
    padding:10px;
  }

  .main-nav.open{
    display:block;
  }

  .menu{
    display:block;
  }

  .menu a,
  .menu button{
    width:100%;
    justify-content:space-between;
  }

  .submenu{
    position:static;
    width:auto;
    opacity:1;
    visibility:visible;
    transform:none;
    box-shadow:none;
    border:0;
    background:transparent;
    padding:0 0 6px 14px;
  }

  .mobile-toggle{
    display:block;
  }

  .hero-grid,
  .section-head,
  .contact-grid{
    grid-template-columns:1fr;
  }

  .hero{
    min-height:auto;
  }

  .hero-grid{
    padding:70px 0;
  }

  .hero-card{
    min-height:300px;
  }
}

@media (max-width: 760px){
  .container{
    width:min(calc(100% - 28px), var(--max));
  }

  .section{
    padding:72px 0;
  }

  .grid.cols-2,
  .grid.cols-3,
  .meta-grid,
  .news-layout{
    grid-template-columns:1fr;
  }

  .news-side{
    grid-template-rows:auto;
  }

  .news-featured{
    min-height:290px;
  }

  .gallery{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

  .hero h1{
    font-size:52px;
  }

  .brand span{
    display:none;
  }

  .partner-inner{
    gap:18px;
  }

  .partner-inner img{
    max-height:42px;
  }
}

/* ---------- Hírek oldal / cikk ---------- */
.page-head{
  padding:72px 0 40px;
  background:var(--surface);
  border-bottom:1px solid var(--line);
}

.page-head h1{
  font-size:clamp(40px,6vw,68px);
  line-height:1;
  letter-spacing:-.05em;
}

.page-head .lead{
  margin-top:16px;
}

.news-list{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:20px;
}

.news-card{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.news-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 34px rgba(23,32,24,.075);
  border-color:#c7d1c6;
}

.news-card-img{
  aspect-ratio:16/10;
  background:var(--surface-2);
}

.news-card-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.news-card-body{
  padding:22px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.news-card h2{
  font-size:21px;
  line-height:1.2;
  letter-spacing:-.025em;
  margin:8px 0 10px;
}

.news-card p{
  color:var(--muted);
  font-size:15px;
  line-height:1.55;
}

.news-card .news-arrow{
  margin-top:auto;
  padding-top:14px;
}

.article{
  max-width:820px;
}

.article-cover{
  margin:0 0 36px;
  border-radius:20px;
  overflow:hidden;
  border:1px solid var(--line);
}

.article-body{
  color:#39423a;
  font-size:18px;
}

.article-body p + p{
  margin-top:18px;
}

.article-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:36px;
}

@media (max-width: 1040px){
  .news-list{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 760px){
  .news-list{
    grid-template-columns:1fr;
  }
  .page-head{
    padding:52px 0 30px;
  }
}

/* ---------- Tovább gomb ---------- */
.more-row{
  margin-top:36px;
  display:flex;
  justify-content:flex-end;
}

.more-btn{
  gap:8px;
  color:var(--accent);
  border-color:var(--accent);
  background:transparent;
  transition:background .18s ease, color .18s ease;
}

.more-btn:hover{
  background:var(--accent);
  color:#fff;
}

.news-strip .more-row{
  margin-top:24px;
}

/* ---------- Listaoldalak ---------- */
.item-block{
  padding:44px 0;
  border-top:1px solid var(--line);
  scroll-margin-top:92px;
}

.item-block:first-child{
  border-top:0;
  padding-top:0;
}

.item-block h2{
  font-size:clamp(26px,3vw,34px);
  line-height:1.1;
  letter-spacing:-.03em;
  margin-bottom:14px;
}

.item-block .prose p{
  color:var(--muted);
}

.item-block .hero-actions{
  margin-top:22px;
}

/* ---------- Projektoldal-kártyák ---------- */
.list-head{
  margin-bottom:24px;
  scroll-margin-top:92px;
}

.list-head h2{
  font-size:clamp(28px,3.4vw,40px);
  line-height:1.05;
  letter-spacing:-.035em;
}

.site-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:20px;
}

.site-card{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  scroll-margin-top:92px;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.site-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 34px rgba(23,32,24,.075);
  border-color:#c7d1c6;
}

.site-card-img{
  position:relative;
  aspect-ratio:16/10;
  background:var(--surface-2);
  overflow:hidden;
}

.site-card-img img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .3s ease;
}

.site-card:hover .site-card-img img{
  transform:scale(1.03);
}

.site-card-img.contain img{
  background:#fff;
}

.site-card-img.contain img{
  object-fit:contain;
  padding:28px 40px;
}

.site-card-ph{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  padding:24px;
  text-align:center;
  font-size:clamp(24px,2.6vw,32px);
  line-height:1.05;
  font-weight:800;
  letter-spacing:-.04em;
  color:#fff;
  background:
    radial-gradient(circle at 80% 15%, rgba(255,255,255,.18), transparent 40%),
    linear-gradient(145deg, var(--accent), var(--accent-dark));
}

.site-card-body{
  padding:22px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.site-card h3{
  font-size:21px;
  line-height:1.2;
  letter-spacing:-.025em;
  margin:8px 0 10px;
}

.site-card p{
  color:var(--muted);
  font-size:15px;
  line-height:1.55;
}

.site-card-url{
  margin-top:auto;
  padding-top:16px;
  font-size:13px;
  font-weight:700;
  color:var(--accent);
}

@media (max-width: 1040px){
  .site-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 760px){
  .site-grid{
    grid-template-columns:1fr;
  }
}

/* ---------- Hero: Rural Pact jelvény ---------- */
.hero-card--badge{
  background:#fff;
  padding:28px;
  text-decoration:none;
  transition:transform .2s ease, box-shadow .2s ease;
}

.hero-card--badge:hover{
  transform:translateY(-3px);
  box-shadow:0 22px 60px rgba(23,32,24,.12);
}

.hero-card--badge img{
  width:min(100%,420px);
  height:auto;
}

/* ---------- Felső sáv + közösségi ikonok ---------- */
.topbar{
  background:var(--accent-dark);
  color:#dce8df;
  font-size:13px;
}

.topbar-inner{
  min-height:36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.topbar-contact{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.topbar-contact a{
  color:#fff;
  text-decoration:none;
  font-weight:600;
}

.topbar-contact a:hover{
  text-decoration:underline;
}

.topbar-sep{
  opacity:.5;
}

.social{
  list-style:none;
  display:flex;
  align-items:center;
  gap:4px;
}

.social a{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:inherit;
  transition:background .18s ease, color .18s ease;
}

.social--top a{
  color:#dce8df;
}

.social--top a:hover{
  background:rgba(255,255,255,.12);
  color:#fff;
}

.social--footer{
  margin-top:14px;
  margin-left:-6px;
}

.social--footer a{
  color:#dce5dd;
}

.social--footer a:hover{
  background:rgba(255,255,255,.1);
  color:#fff;
}

@media (max-width: 760px){
  .topbar-sep,
  .topbar-addr{
    display:none;
  }
}
