/* Hevesvezekény Községi Önkormányzat – stíluslap
   Arculat: „égbolt, templom, mező” – a címer színeiből: égkék, fehér hullámsáv, mezőzöld, búzaarany, pajzspiros.
   Betűk: a gép saját betűi (címekhez a Windows Bahnschrift, máshol rendszerbetű) – webfont nincs. */
:root {
  --eg: #1b4b91;
  --eg-mely: #0f2f5e;
  --eg-halvany: #e9f0fa;
  --mezo: #2d7a36;
  --mezo-mely: #1f5b27;
  --mezo-halvany: #e5f2e3;
  --arany: #e8b62c;
  --arany-halvany: #fbf4dc;
  --piros: #c4312b;
  --tinta: #16233a;
  --halvany: #566377;
  --vonal: #d8e0ea;
  --hatter: #f3f6f9;
  --feher: #ffffff;
  --kerek: 18px;
  --wrap: 1280px;
  --betu: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --cimbetu: Bahnschrift, "DIN Alternate", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* a szerkesztőfelület stílusai ezeket a neveket használják */
  --navy: var(--eg-mely);
  --blue: var(--eg);
  --blue-soft: var(--eg-halvany);
  --green: var(--mezo);
  --green-soft: var(--mezo-halvany);
  --gold: var(--arany);
  --ink: var(--tinta);
  --muted: var(--halvany);
  --line: var(--vonal);
  --bg: var(--hatter);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 47, 94, .06), 0 6px 18px rgba(15, 47, 94, .07);
  --font: var(--betu);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--betu);
  font-size: 17px;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--hatter);
}
img { max-width: 100%; display: block; }
a { color: var(--eg); }
a:hover { color: var(--eg-mely); }
:focus-visible { outline: 3px solid var(--arany); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--cimbetu); line-height: 1.2; color: var(--eg-mely); margin: 0 0 .5em; font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.ikon { display: inline-block; width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--arany); color: var(--eg-mely); padding: 8px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- Gombok, apró elemek ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font: 600 16px/1.3 var(--cimbetu); text-decoration: none; letter-spacing: .01em; transition: background .15s, color .15s, transform .15s; }
.btn .ikon { width: 18px; height: 18px; }
.btn-arany { background: var(--arany); color: var(--eg-mely); }
.btn-arany:hover { background: #f3c64a; color: var(--eg-mely); }
.btn-arany:focus-visible { outline-color: #fff; }
.btn-vonal { color: #fff; border: 2px solid rgba(255, 255, 255, .75); padding: 10px 22px; }
.btn-vonal:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-eg, .btn-primary { background: var(--eg); color: #fff; }
.btn-eg:hover, .btn-primary:hover { background: var(--eg-mely); color: #fff; }
.btn-outline { border: 2px solid var(--eg); color: var(--eg); background: #fff; padding: 10px 22px; }
.btn-outline:hover { background: var(--eg); color: #fff; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font: 600 16px var(--cimbetu); color: var(--eg); text-decoration: none; }
.link-more .ikon { width: 18px; height: 18px; transition: transform .15s; }
.link-more:hover .ikon { transform: translateX(3px); }
.kicker { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: var(--mezo); margin-bottom: 6px; }
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--arany); }
.meta { color: var(--halvany); font-size: 14px; }
.ures { background: #fff; border: 1px dashed var(--vonal); border-radius: 14px; padding: 18px; color: var(--halvany); }
.attach { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--halvany); }
.attach .ikon { width: 16px; height: 16px; }

/* ---------- Felső sáv ---------- */
.felso { background: var(--eg-mely); color: #d5e1f3; font-size: 14.5px; }
.felso .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; }
.felso-adatok { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.felso-adatok li { display: inline-flex; align-items: center; gap: 8px; }
.felso-adatok .ikon { color: var(--arany); width: 16px; height: 16px; }
.felso a { color: #fff; text-decoration: none; }
.felso a:hover { text-decoration: underline; color: #fff; }
.felso-jobb { display: flex; align-items: center; gap: 4px; }
.kontraszt-gomb { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; margin-right: 8px; padding: 5px 13px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.kontraszt-gomb:hover { background: rgba(255, 255, 255, .12); }
.kontraszt-gomb[aria-pressed="true"] { background: var(--arany); color: var(--eg-mely); border-color: var(--arany); }
.kontraszt-gomb .ikon { width: 17px; height: 17px; }
.ikonlink { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; }
.ikonlink .ikon { width: 21px; height: 21px; }
.ikonlink:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- Fejléc + főmenü ---------- */
.fejlec { background: #fff; border-bottom: 1px solid var(--vonal); position: sticky; top: 0; z-index: 50; }
.fejlec .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.marka { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--eg-mely); }
.marka img { height: 60px; width: auto; }
/* csak a közvetlen gyerek: a „· Heves megye” belső span-je soron belül maradjon */
.marka > span { display: flex; flex-direction: column; line-height: 1.1; }
.marka strong { font: 700 27px/1 var(--cimbetu); letter-spacing: -.01em; }
.marka small { font-size: 13.5px; color: var(--halvany); margin-top: 5px; white-space: nowrap; }
.nav-toggle { display: none; align-items: center; gap: 8px; border: 2px solid var(--eg); color: var(--eg); background: #fff; border-radius: 999px; padding: 8px 16px; font: 600 16px var(--cimbetu); cursor: pointer; }
.nav-toggle .ikon { width: 20px; height: 20px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.nav > ul > li { position: relative; }
.nav > ul > li > a { display: flex; align-items: center; gap: 4px; height: 84px; padding: 0 13px; font: 600 16.5px var(--cimbetu); color: var(--tinta); text-decoration: none; position: relative; white-space: nowrap; }
.nav > ul > li > a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: transparent; transition: background .15s; }
.nav > ul > li > a:hover, .nav > ul > li > a[aria-current] { color: var(--eg); }
.nav > ul > li > a:hover::after { background: var(--eg-halvany); }
.nav > ul > li > a[aria-current]::after { background: var(--arany); }
.nav .nyil { width: 15px; height: 15px; color: var(--halvany); transition: transform .15s; }
.nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 270px; list-style: none; margin: 0; padding: 10px; background: #fff; border: 1px solid var(--vonal); border-top: 4px solid var(--arany); border-radius: 0 0 16px 16px; box-shadow: 0 16px 34px rgba(15, 47, 94, .14); }
.nav .sub.cols { display: none; grid-template-columns: repeat(2, minmax(220px, 1fr)); min-width: 520px; column-gap: 6px; }
.nav li.jobbra > .sub { left: auto; right: 0; }
.nav li.has-sub:hover > .sub, .nav li.has-sub:focus-within > .sub { display: block; }
.nav li.has-sub:hover > .sub.cols, .nav li.has-sub:focus-within > .sub.cols { display: grid; }
.nav li.has-sub:hover .nyil, .nav li.has-sub:focus-within .nyil { transform: rotate(180deg); }
.nav .sub a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--tinta); text-decoration: none; font-size: 15.5px; line-height: 1.35; }
.nav .sub a:hover { background: var(--eg-halvany); color: var(--eg); }
.nav .sub .label { padding: 8px 12px 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mezo); }

/* ---------- Nyitórész: égbolt + templomablak ---------- */
.nyito { position: relative; color: #fff; background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .16), transparent 42%), linear-gradient(165deg, var(--eg-mely) 0%, var(--eg) 55%, #3a73c2 100%); padding: 56px 0 120px; overflow: hidden; }
.nyito-racs { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.szalag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 26px; background: var(--arany); color: var(--eg-mely); font: 600 15px var(--cimbetu); clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%); }
.szalag strong { font-size: 18px; letter-spacing: .06em; }
.szalag .ikon { width: 19px; height: 19px; }
.nyito h1 { color: #fff; font-size: clamp(44px, 7.4vw, 92px); line-height: .98; letter-spacing: -.02em; margin: 0 0 18px; overflow-wrap: anywhere; }
.nyito-alcim { font-size: 19px; max-width: 34em; color: #e3ecf8; margin: 0 0 28px; }
.gombok { display: flex; flex-wrap: wrap; gap: 12px; }
.ablak { position: relative; isolation: isolate; margin: 0 auto; width: 100%; max-width: 430px; }
.ablak::before { content: ""; position: absolute; z-index: -1; width: 44%; aspect-ratio: 1; right: -10%; top: -6%; border-radius: 50%; background: var(--arany); opacity: .95; }
.ablak img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 58% 50%; border-radius: 999px 999px 22px 22px; border: 7px solid #fff; box-shadow: 0 24px 50px rgba(5, 20, 45, .35); }
.hullam { display: block; width: 100%; }
.hullam-nyito { position: absolute; left: 0; right: 0; bottom: -2px; height: 90px; }
.hullam-nyito .h-feher { fill: #fff; }
.hullam-nyito .h-zold { fill: var(--mezo); }

/* ---------- Mező: gyorslinkek a zöld sávban ---------- */
.mezo { background: var(--mezo); padding: 6px 0 40px; }
.gyors { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.gyors a { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 6px; border-radius: 16px; color: #fff; text-decoration: none; text-align: center; font: 600 16px/1.25 var(--cimbetu); }
.gyors .kor { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); color: var(--arany); transition: background .15s, color .15s, transform .15s; }
.gyors .kor .ikon { width: 30px; height: 30px; }
.gyors a:hover { color: #fff; }
.gyors a:hover .kor { background: var(--arany); color: var(--eg-mely); border-color: var(--arany); transform: translateY(-3px); }
.gyors a:focus-visible { outline-color: var(--arany); }

/* ---------- Főoldali szakaszok ---------- */
.szakasz { background: #fff; padding: 64px 0; }
.szakasz-halvany { background: var(--eg-halvany); }
.szakasz-fej { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.szakasz-fej h2, .szakasz h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0; }

/* Hírek: 4 egy sorban */
.hir-sor { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.news-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--vonal); border-radius: var(--kerek); overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.news-card:hover { border-color: var(--eg); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15, 47, 94, .1); }
.news-card:focus-within { border-color: var(--eg); }
.thumb { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.thumb > .ikon { width: 54px; height: 54px; opacity: .9; }
.thumb.t-eg { background: linear-gradient(150deg, #dbe7f7, #b8cfee); color: var(--eg); }
.thumb.t-mezo { background: linear-gradient(150deg, #dfefdc, #bcdcb7); color: var(--mezo); }
.thumb.t-arany { background: linear-gradient(150deg, #fbf0cc, #f2d98a); color: #8a6407; }
.thumb.t-piros { background: linear-gradient(150deg, #f8e0de, #eebdb9); color: var(--piros); }
.tag { position: absolute; left: 12px; top: 12px; z-index: 1; background: #fff; color: var(--eg-mely); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.news-card .test { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-card time, .news-row time { font-size: 13.5px; font-weight: 700; color: var(--mezo); letter-spacing: .02em; }
.news-card h3 { font-size: 18.5px; margin: 0; overflow-wrap: anywhere; }
.news-card h3 a { color: var(--eg-mely); text-decoration: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; }   /* az egész kártya kattintható */
.news-card h3 a:focus-visible { outline: none; }
.news-card h3 a:focus-visible::after { outline: 3px solid var(--arany); outline-offset: -3px; border-radius: var(--kerek); }
.news-card p { margin: 0; font-size: 15px; color: var(--halvany); }
.tovabb-sor { text-align: center; margin-top: 34px; }

/* Polgármesteri köszöntő */
.koszonto { background: var(--arany-halvany); padding: 64px 0; }
.koszonto-racs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: center; max-width: 1000px; }
.koszonto-kep { width: 200px; aspect-ratio: 1; border-radius: 50%; background: var(--eg); display: grid; place-items: center; border: 8px solid #fff; box-shadow: 0 0 0 3px var(--arany); }
.koszonto-kep span { font: 700 64px var(--cimbetu); color: var(--arany); letter-spacing: .04em; }
/* a nem négyzetes fotó is kör alakú legyen */
.koszonto-kep { overflow: hidden; }
.koszonto-kep img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; border-radius: 50%; }
.idezojel { display: block; width: 46px; height: 46px; color: var(--arany); margin: 4px 0 8px; }
.koszonto h2 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 14px; }
.koszonto p { margin: 0 0 14px; font-size: 18px; }
.koszonto .alairas { font-size: 16px; color: var(--halvany); }
.koszonto .alairas strong { color: var(--eg-mely); }

/* Számokban */
.szamok { background: linear-gradient(165deg, var(--eg-mely), var(--eg)); color: #fff; padding: 60px 0; }
.szamok h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); margin-bottom: 28px; }
.szam-racs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 0; }
.szam-racs > div { display: flex; flex-direction: column; border-left: 3px solid var(--arany); padding: 2px 0 2px 16px; }
.szam-racs dt { order: 2; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: #c9d8ef; font-weight: 600; }
.szam-racs dd { order: 1; margin: 0; }
.szam-racs dd b { display: block; font: 700 clamp(34px, 3.6vw, 48px)/1.05 var(--cimbetu); color: var(--arany); }
.szam-racs dd small { display: block; font-size: 14px; color: #dfe8f6; }

/* Intézmények */
.intezmenyek { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.intezmenyek a { display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; align-items: center; height: 100%; padding: 18px 20px; border: 1px solid var(--vonal); border-radius: var(--kerek); background: #fff; text-decoration: none; color: var(--tinta); transition: background .15s, border-color .15s; }
.intezmenyek .ik { grid-row: 1 / 3; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--mezo-halvany); color: var(--mezo); }
.intezmenyek .ik .ikon { width: 28px; height: 28px; }
.intezmenyek strong { font: 700 18px var(--cimbetu); color: var(--eg-mely); align-self: end; }
.intezmenyek small { color: var(--halvany); font-size: 14.5px; align-self: start; }
.intezmenyek a:hover { background: var(--mezo-halvany); border-color: var(--mezo); }
.intezmenyek a:hover .ik { background: var(--mezo); color: #fff; }

/* Pályázatok */
.palyazat-racs { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.palyazat-racs p { margin: 12px 0 22px; color: var(--halvany); }
.projekt-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.projekt-lista a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px; background: #fff; border-radius: 14px; border-left: 5px solid var(--arany); text-decoration: none; color: var(--eg-mely); font: 600 16.5px/1.3 var(--cimbetu); transition: transform .15s; }
.projekt-lista a .ikon { width: 26px; height: 26px; color: var(--eg); }
.projekt-lista small { font-weight: 400; color: var(--halvany); }
.projekt-lista a:hover { transform: translateX(4px); color: var(--eg); }

/* Hivatal elérhetősége */
.hivatal { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.hivatal-fej p { color: var(--halvany); margin: 12px 0 16px; }
.hivatal-adatok { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; }
.hivatal-adatok > div { border-top: 3px solid var(--mezo); padding-top: 12px; }
.hivatal-adatok dt { display: flex; align-items: center; gap: 8px; font: 700 14px var(--cimbetu); text-transform: uppercase; letter-spacing: .1em; color: var(--mezo); }
.hivatal-adatok dt .ikon { width: 18px; height: 18px; }
.hivatal-adatok dd { margin: 6px 0 0; font-size: 17px; overflow-wrap: anywhere; }

/* ---------- Lábléc ---------- */
.lablec { background: #fff; margin-top: 0; }
.lap-szakasz + .lablec, main + .lablec { background: transparent; }
.hullam-lablec { height: 50px; margin-bottom: -1px; }
.hullam-lablec path { fill: var(--eg-mely); }
.lablec-test { background: var(--eg-mely); color: #cfdcef; padding: 26px 0 0; }
.lablec-oszlopok { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 36px; }
.lablec .marka { color: #fff; margin-bottom: 16px; }
.lablec .marka strong { font-size: 24px; }
.lablec .marka small { color: #aebfd9; }
.lablec .marka img { height: 54px; }
.lablec p { margin: 0 0 12px; font-size: 15.5px; }
.lablec a { color: #fff; }
.lablec h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--arany); margin: 8px 0 12px; }
.lablec ul { list-style: none; margin: 0; padding: 0; }
.lablec li { margin-bottom: 7px; font-size: 15.5px; }
.lablec ul a { text-decoration: none; }
.lablec ul a:hover { text-decoration: underline; color: #fff; }
.lablec .ikonlink { margin-left: -6px; }
.lablec-also { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .16); padding: 16px 0 20px; font-size: 14px; color: #aebfd9; }

/* ---------- Belső oldalak ---------- */
.lapfej { position: relative; color: #fff; background: radial-gradient(circle at 85% 0%, rgba(255, 255, 255, .14), transparent 40%), linear-gradient(165deg, var(--eg-mely), var(--eg)); padding: 30px 0 64px; }
.lapfej h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin: 6px 0 0; overflow-wrap: anywhere; }
.crumbs { font-size: 14.5px; color: #c7d6ee; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: #fff; }
.crumbs span[aria-hidden] { color: var(--arany); margin: 0 3px; }
.hullam-lapfej { position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; }
.hullam-lapfej path { fill: var(--hatter); }
.almenu { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 6px; }
.almenu-cim { font: 700 14px var(--cimbetu); text-transform: uppercase; letter-spacing: .1em; color: var(--mezo); }
.almenu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.almenu li { display: contents; }
.almenu a { display: inline-block; padding: 7px 15px; border: 1.5px solid var(--vonal); border-radius: 999px; background: #fff; color: var(--eg-mely); text-decoration: none; font-size: 15px; line-height: 1.3; }
.almenu a:hover { border-color: var(--eg); color: var(--eg); }
.almenu a[aria-current] { background: var(--eg); border-color: var(--eg); color: #fff; font-weight: 600; }
.lap-szakasz { padding: 26px 0 70px; }
.lap-keskeny { max-width: 1000px; }
.lap { background: #fff; border: 1px solid var(--vonal); border-radius: 22px; padding: 36px 42px; min-width: 0; }
.oldalsavos { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }
.oldalsav { display: grid; gap: 18px; position: sticky; top: 104px; }
.doboz { background: #fff; border: 1px solid var(--vonal); border-radius: var(--kerek); padding: 22px; }
.doboz h2 { font-size: 19px; margin-bottom: 10px; }
.doboz p { margin: 0 0 10px; font-size: 15.5px; }
.doboz .sor { display: flex; align-items: center; gap: 8px; min-width: 0; }
.doboz .sor a { overflow-wrap: anywhere; min-width: 0; }
.doboz .sor .ikon { color: var(--arany); }
.doboz ul { list-style: none; margin: 0; padding: 0; }
.doboz li { border-top: 1px solid var(--vonal); }
.doboz li:first-child { border-top: 0; }
.doboz li a { display: block; padding: 9px 0; text-decoration: none; font-weight: 600; color: var(--eg-mely); }
.doboz li a:hover { color: var(--eg); }
.doboz-eg { background: var(--eg); border-color: var(--eg); color: #fff; }
.doboz-eg h2 { color: #fff; }
.doboz-eg a, .doboz-eg .link-more { color: #fff; }
.csempek { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.csempek a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; padding: 20px 22px; background: #fff; border: 1px solid var(--vonal); border-radius: var(--kerek); color: var(--eg-mely); text-decoration: none; font: 600 18px/1.3 var(--cimbetu); transition: background .15s, color .15s; }
.csempek .ikon { width: 22px; height: 22px; color: var(--arany); }
.csempek a:hover { background: var(--eg); border-color: var(--eg); color: #fff; }

/* Hírlista */
.news-list { display: grid; gap: 18px; min-width: 0; }
.news-row { position: relative; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; background: #fff; border: 1px solid var(--vonal); border-radius: var(--kerek); overflow: hidden; transition: border-color .15s; }
.news-row:hover { border-color: var(--eg); }
.news-row .thumb { aspect-ratio: auto; min-height: 172px; }
.news-row .test { padding: 18px 22px 18px 0; display: flex; flex-direction: column; gap: 6px; }
.news-row h2 { font-size: 21px; margin: 0; overflow-wrap: anywhere; }
.news-row h2 a { color: var(--eg-mely); text-decoration: none; }
.news-row h2 a::after { content: ""; position: absolute; inset: 0; }
.news-row h2 a:hover { color: var(--eg); }
.news-row h2 a:focus-visible { outline: none; }
.news-row h2 a:focus-visible::after { outline: 3px solid var(--arany); outline-offset: -3px; border-radius: var(--kerek); }
.news-row p { margin: 0; color: var(--halvany); font-size: 15.5px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.pager a { min-width: 42px; text-align: center; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--vonal); text-decoration: none; font-weight: 700; }
.pager a[aria-current] { background: var(--eg); border-color: var(--eg); color: #fff; }

/* Hír oldala */
.cikk-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; font-weight: 700; color: var(--mezo); }
.cikk-meta time { display: inline-flex; align-items: center; gap: 7px; }
.cimke { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; background: var(--eg-halvany); color: var(--eg); padding: 3px 10px; border-radius: 999px; }
.lead-img { margin: 0 0 24px; }
.lead-img img { width: 100%; height: auto; border-radius: 14px; }
.vissza { margin: 30px 0 0; }

/* Tartalom (átvett HTML és szerkesztői szöveg) */
.prose { overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 25px; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 20px; margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose img { height: auto; border-radius: 12px; margin: .5em 0; }
.prose figure { margin: 1.2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--vonal); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--eg-halvany); color: var(--eg-mely); }
.prose blockquote { margin: 0 0 1em; padding: 4px 18px; border-left: 4px solid var(--arany); color: #3c4856; }
/* a polgármesteri köszöntő portréja: a szöveg mellett, mobilon fölötte */
.prose .portre-kep { float: right; width: 240px; margin: 0 0 18px 28px; }
.prose .portre-kep img { width: 100%; margin: 0; border-radius: 18px; border: 6px solid var(--arany-halvany); }
@media (max-width: 640px) { .prose .portre-kep { float: none; width: 200px; margin: 0 0 18px; } }
.helyorzo { background: var(--arany-halvany); border-left: 5px solid var(--arany); border-radius: 12px; padding: 18px 22px; }
.callout { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--eg-halvany); border-left: 5px solid var(--eg); border-radius: 12px; padding: 18px 22px; margin: 0 0 26px; }
.callout h2 { font-size: 19px; margin: 0 0 4px; }
.callout p { margin: 0; color: #3c4856; max-width: 60ch; }

.attachments { margin-top: 28px; border-top: 1px solid var(--vonal); padding-top: 22px; }
.attachments h2 { font-size: 20px; }
/* csak csatolmányokból álló oldal (pl. Rendeletek): nincs üres szövegrész és elválasztó vonal */
.prose:empty { display: none; }
.prose:empty + .attachments { margin-top: 0; border-top: 0; padding-top: 0; }
.attachments ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.attachments a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--vonal); border-radius: 14px; text-decoration: none; color: var(--eg-mely); transition: border-color .15s, background .15s; }
.attachments a:hover { border-color: var(--eg); background: var(--eg-halvany); }
.attachments .ikon { width: 28px; height: 28px; color: var(--piros); }
.attachments span { display: flex; flex-direction: column; min-width: 0; }
.attachments strong { overflow-wrap: anywhere; font-weight: 600; }
.attachments small { color: var(--halvany); }

/* ---------- Szerkesztőfelület által is használt címsor ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h1, .section-head h2 { margin: 0; }

/* ---------- Pályázati infóblokk: görgetéskor is mindig látható, jobb alsó sarok ---------- */
.infoblokk {
  position: fixed; right: 0; bottom: 0; z-index: 60; display: block; width: 300px;
  background: #fff; border-top-left-radius: 10px; overflow: hidden;
  box-shadow: 0 -2px 14px rgba(15, 47, 94, .18);
}
.infoblokk img { width: 100%; height: auto; }
.infoblokk:focus-visible { outline-offset: -3px; }
/* a lap alja (lábléc utolsó sora) ne kerüljön a logó alá */
body.van-infoblokk { padding-bottom: 90px; }

/* ---------- Reszponzív ---------- */
@media (max-width: 1320px) {
  .nav > ul > li > a { padding: 0 10px; font-size: 16px; }
  .nav > ul > li > a::after { left: 10px; right: 10px; }
}
/* ennél keskenyebben a főmenü „Menü” gomb mögé kerül */
@media (max-width: 1180px) {
  .fejlec { position: static; }
  .fejlec .wrap { flex-wrap: wrap; min-height: 76px; padding-top: 8px; padding-bottom: 8px; }
  .nav-toggle { display: inline-flex; }
  /* a felső sáv ne törjön két sorba: keskenyebb asztali nézetben a cím elmarad (a láblécben ott van) */
  .felso-adatok .felso-cim { display: none; }
  .nav { display: none; width: 100%; }
  .nav.open { display: block; padding-bottom: 10px; }
  .nav > ul { flex-direction: column; }
  .nav > ul > li { border-top: 1px solid var(--vonal); }
  .nav > ul > li > a { height: auto; padding: 13px 4px; }
  .nav > ul > li > a::after { display: none; }
  .nav > ul > li > a[aria-current] { color: var(--eg); box-shadow: inset 4px 0 0 var(--arany); padding-left: 14px; }
  .nav .nyil { display: none; }
  .nav .sub, .nav .sub.cols, .nav li.has-sub:hover > .sub, .nav li.has-sub:hover > .sub.cols { display: block; position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 10px 14px; border-radius: 0; }
  .nav .sub a { padding: 7px 10px; }
  .oldalsav { position: static; }
}
@media (max-width: 1000px) {
  .hir-sor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gyors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
  .intezmenyek { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .szam-racs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
  .palyazat-racs, .hivatal { grid-template-columns: 1fr; gap: 28px; }
  .oldalsavos { grid-template-columns: 1fr; }
  .lablec-oszlopok { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .nyito { padding: 36px 0 104px; }
  .nyito-racs { grid-template-columns: 1fr; gap: 34px; }
  .ablak { max-width: 300px; }
  .koszonto-racs { grid-template-columns: 1fr; gap: 24px; justify-items: start; }
  .koszonto-kep { width: 150px; }
  .koszonto-kep span { font-size: 48px; }
  .news-row { grid-template-columns: 1fr; gap: 0; }
  .news-row .thumb { aspect-ratio: 16 / 9; min-height: 0; }
  .news-row .test { padding: 16px 18px 18px; }
  .lap { padding: 24px 20px; border-radius: 18px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  /* a „.felso-adatok li” szabálynál erősebb választó kell */
  .felso-adatok .felso-mail, .felso-adatok .felso-cim { display: none; }
  .marka .megye-resz { display: none; }
  .nav-toggle { padding: 7px 13px; }
  .kontraszt-gomb span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .kontraszt-gomb { padding: 6px 9px; margin-right: 2px; }
  .marka img { height: 50px; }
  .marka { gap: 10px; }
  .marka strong { font-size: 22px; }
  .marka small { font-size: 12.5px; }
  .hir-sor { grid-template-columns: 1fr; }
  .news-card .thumb { aspect-ratio: 16 / 9; }
  .gyors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gyors .kor { width: 58px; height: 58px; }
  .intezmenyek, .projekt-lista, .hivatal-adatok { grid-template-columns: 1fr; }
  .szam-racs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .szakasz, .koszonto { padding: 46px 0; }
  .lablec-oszlopok { grid-template-columns: 1fr; gap: 20px; }
  .infoblokk { width: 200px; }
  body.van-infoblokk { padding-bottom: 60px; }
  .nav.open { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Akadálymentes nézet (nagy kontraszt, nagyobb betű) ---------- */
html.kontraszt body { font-size: 19.5px; }
html.kontraszt body *, html.kontraszt body *::before, html.kontraszt body *::after {
  background-color: #000 !important; background-image: none !important; color: #ff0 !important;
  border-color: #ff0 !important; box-shadow: none !important; text-shadow: none !important;
}
html.kontraszt body { background: #000 !important; }
html.kontraszt a, html.kontraszt a * { color: #0ff !important; text-decoration: underline !important; }
html.kontraszt .btn, html.kontraszt .kontraszt-gomb, html.kontraszt .nav-toggle { border: 2px solid #ff0 !important; }
html.kontraszt .hullam, html.kontraszt .ablak::before, html.kontraszt .kicker::before { display: none !important; }
html.kontraszt .lapfej, html.kontraszt .nyito { padding-bottom: 32px; border-bottom: 2px solid #ff0 !important; }
html.kontraszt .news-card, html.kontraszt .news-row, html.kontraszt .lap, html.kontraszt .doboz { border: 2px solid #ff0 !important; }
html.kontraszt :focus-visible { outline: 3px solid #fff !important; }
html.kontraszt img { filter: none; }
/* bekapcsolt állapotban a gomb kiemelt (sárga alapon fekete) – különben a fenti általános szabály feketére írná felül */
html.kontraszt .kontraszt-gomb[aria-pressed="true"], html.kontraszt .kontraszt-gomb[aria-pressed="true"] * { background-color: #ff0 !important; color: #000 !important; }
html.kontraszt .szalag { clip-path: none; border: 2px solid #ff0 !important; }

/* ---------- Szerkesztőfelület ---------- */
.admin-bar { background: var(--navy); color: #fff; }
.admin-bar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; flex-wrap: wrap; }
.admin-bar .brand { color: #fff; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.admin-bar .brand span { display: flex; flex-direction: column; line-height: 1.2; }
.admin-bar .brand strong { font-family: var(--cimbetu); }
.admin-bar .brand img { width: 36px; }
.admin-bar .brand strong { font-size: 17px; }
.admin-bar .brand small { color: #9fb7cc; }
.admin-bar .user { font-size: 14px; color: #cfe0ef; }
.admin-bar .user button { color: #fff; margin-left: 12px; background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding: 32px 20px 60px; }
.admin-nav { list-style: none; margin: 0; padding: 0; }
.admin-nav a { display: block; padding: 10px 14px; border-radius: 8px; text-decoration: none; color: var(--navy); font-weight: 600; }
.admin-nav a:hover { background: #fff; }
.admin-nav a[aria-current] { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; min-width: 0; }
.panel h1 { font-size: 26px; }
.field { margin-bottom: 20px; }
.field > label, .field > .label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field .hint { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.field input[type=text], .field input[type=password], .field input[type=date], .field input[type=file], .field select, .field textarea {
  width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
.toolbar { display: flex; gap: 4px; border: 1.5px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; padding: 6px; background: var(--bg); flex-wrap: wrap; }
.toolbar button { font: 600 14px var(--font); border: 0; background: none; padding: 6px 10px; border-radius: 6px; color: var(--navy); cursor: pointer; }
.toolbar button:hover { background: #fff; }
.field .toolbar + textarea { border-radius: 0 0 10px 10px; min-height: 260px; resize: vertical; }
.files { list-style: none; margin: 10px 0 0; padding: 0; }
.files li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; font-size: 15px; flex-wrap: wrap; }
.files label { font-weight: 500; color: #b42318; display: inline-flex; gap: 6px; align-items: center; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.actions { display: flex; gap: 12px; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; flex-wrap: wrap; }
button.btn { border: 0; cursor: pointer; font-family: var(--font); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
button.btn-danger, .btn-danger { background: #fff; color: #b42318; border: 1.5px solid #e7b4ae; }
.btn-danger:hover { background: #fdecea; color: #b42318; }
.btn-sm { padding: 7px 12px; font-size: 14px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.kep-elonezet { max-height: 120px; border-radius: 8px; }
.files .nev-mezo { flex: 1 1 260px; font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; min-width: 0; }
.files .nev-mezo:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
.fajlvalaszto { margin-top: 10px; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.alert-ok { background: var(--green-soft); color: #1d5a36; }
.alert-err { background: #fdecea; color: #8a1c12; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.admin-table th, .admin-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.admin-table td.act { white-space: nowrap; text-align: right; }
.admin-table form { display: inline; }
.status { font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.status.on { background: var(--green-soft); color: var(--green); }
.status.off { background: #eef0f3; color: var(--muted); }
.login { max-width: 420px; margin: 60px auto; }
.help { font-size: 14px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-top: 8px; }
.help code { background: #fff; padding: 1px 5px; border-radius: 4px; }
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .admin-nav { display: flex; gap: 6px; flex-wrap: wrap; }
  .row2 { grid-template-columns: 1fr; }
  .admin-table .hide-sm { display: none; }
}
