/* ==========================================================================
   baseClass Automation – stíluslap
   Nincs build lépés, nincs keretrendszer. A színek és méretek a :root-ban állíthatók.
   ========================================================================== */

:root {
  --ink: #0b0d11;
  --ink-2: #13161c;
  --ink-line: rgba(255, 255, 255, .09);
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --line: #e3e6eb;
  --text: #14171c;
  --muted: #5b6471;
  --muted-light: rgba(255, 255, 255, .68);
  --red: #e2000f;
  --red-600: #c1000d;
  --red-soft: rgba(226, 0, 15, .08);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .08);
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --header-h: 72px;
  --container: 1200px;
}

/* ---------- Alap ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--bg-soft); padding: .1em .35em; border-radius: 4px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mono { font-family: var(--mono); font-size: .88em; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--red); color: #fff; padding: .6em 1em; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

section[id], .project, .job, .grant { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .9em 1.45em; border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-size: .97rem; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn .icon { width: 1.05em; height: 1.05em; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-600); }
.btn-ghost { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--text); }
.btn-outline:hover { border-color: var(--text); }
.btn-sm { padding: .7em 1.1em; font-size: .9rem; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Fejléc ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: #fff;
  background: rgba(11, 13, 17, .55);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled { background: rgba(11, 13, 17, .92); border-color: var(--ink-line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 28px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { list-style: none; display: flex; gap: 2px; }
.site-nav ul a {
  display: inline-flex; align-items: center; gap: .45em; padding: .55em .8em; border-radius: 999px;
  color: rgba(255, 255, 255, .74); font-size: .94rem; font-weight: 500; text-decoration: none;
  transition: color .2s, background-color .2s;
}
.site-nav ul a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-nav ul a.is-active { color: #fff; background: rgba(255, 255, 255, .09); }
.nav-badge {
  display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; padding: 0 .35em;
  border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1;
}
.nav-toggle { display: none; }

@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--ink-line); border-radius: 10px; background: transparent; color: #fff; cursor: pointer;
  }
  .nav-toggle .icon { width: 22px; height: 22px; grid-area: 1 / 1; }
  .nav-toggle[aria-expanded="false"] .i-close,
  .nav-toggle[aria-expanded="true"] .i-menu { display: none; }
  .no-js .nav-toggle { display: none; }

  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    max-height: calc(100vh - var(--header-h)); overflow: auto;
    padding: 12px clamp(16px, 4vw, 32px) 24px;
    background: rgba(11, 13, 17, .98); border-bottom: 1px solid var(--ink-line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { display: flex; padding: .85em .6em; border-radius: 8px; font-size: 1.05rem; }
  .no-js .site-nav { display: none; }
}

/* ---------- Nyitókép ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink); color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background: url("../img/hero-03.jpg") 70% center / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(11, 13, 17, .96) 0%, rgba(11, 13, 17, .78) 45%, rgba(11, 13, 17, .25) 100%),
    linear-gradient(0deg, rgba(11, 13, 17, 1) 0%, rgba(11, 13, 17, 0) 40%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 65%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 65%);
}
.hero-content { padding-top: calc(var(--header-h) + clamp(56px, 12vh, 140px)); padding-bottom: clamp(40px, 8vh, 88px); }
.hero h1 {
  max-width: 14ch; margin-bottom: 1.5rem;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero-lead { max-width: 600px; margin-bottom: 2.25rem; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats { border-top: 1px solid var(--ink-line); }
.hero-stats ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stats li { padding: 28px 24px 34px; }
.hero-stats li:first-child { padding-left: 0; }
.hero-stats li + li { border-left: 1px solid var(--ink-line); }
.stat-value { display: block; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.stat-label { display: block; margin-top: .25rem; font-size: .9rem; line-height: 1.4; color: var(--muted-light); }

@media (max-width: 760px) {
  .hero-stats ul { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
  .hero-stats li, .hero-stats li:first-child { padding: 20px 0; border-left: 0; }
  .hero-stats li:nth-child(n + 3) { border-top: 1px solid var(--ink-line); }
}

/* ---------- Szekciók ---------- */
.section { padding-block: clamp(80px, 11vw, 136px); }
.section-tight { padding-block: clamp(48px, 7vw, 88px); }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75em; margin: 0 0 1.1rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.hero .eyebrow, .section-dark .eyebrow, .mission .eyebrow, .page-hero .eyebrow { color: rgba(255, 255, 255, .82); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2, .career-intro h2 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); letter-spacing: -.035em; }
.lead { font-size: 1.125rem; color: var(--muted); }
.lead a { color: var(--text); font-weight: 600; }
.section-dark .lead { color: var(--muted-light); }

[data-reveal].reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Rólunk ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.about-text h2 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); letter-spacing: -.035em; }
.about-text p { color: var(--muted); font-size: 1.06rem; }
.about-text p.big { color: var(--text); font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; line-height: 1.45; letter-spacing: -.01em; }

.iso-card {
  display: flex; align-items: center; gap: 18px; margin-top: 28px; padding: 16px 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft);
}
.iso-card { align-items: flex-start; }
.iso-card img { flex: none; width: auto; height: 84px; }
@media (max-width: 480px) { .iso-card { flex-direction: column; } }
.iso-card strong, .iso-card span, .iso-card a { display: block; line-height: 1.45; }
.about-text .iso-card span { font-size: .9rem; color: var(--muted); }
.iso-card a { margin-top: 2px; font-size: .9rem; font-weight: 600; color: var(--red); text-decoration: none; }
.iso-card a:hover { text-decoration: underline; }
.iso-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--red-soft); color: var(--red); }
.iso-icon .icon { width: 28px; height: 28px; }

.mission {
  position: relative; overflow: hidden; padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius); background: var(--ink); color: #fff;
}
.mission::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.mission::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 0, 15, .22), transparent 70%); pointer-events: none;
}
.mission blockquote { margin: 0 0 1.75rem; font-size: clamp(1.2rem, 1.9vw, 1.45rem); font-weight: 500; line-height: 1.45; letter-spacing: -.01em; }
.values { list-style: none; display: grid; gap: 16px; }
.values li { display: flex; gap: 12px; font-size: .95rem; line-height: 1.5; color: var(--muted-light); }
.values strong { display: block; color: #fff; font-weight: 600; }
.values .icon { margin-top: .15em; color: var(--red); }

.process-wrap { margin-top: clamp(64px, 8vw, 104px); }
.process-title { margin-bottom: 1.5rem; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.process { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.process li { position: relative; padding: 30px 24px 0 0; }
.process li::before {
  counter-increment: step; content: "0" counter(step);
  display: block; margin-bottom: .7rem; font-family: var(--mono); font-size: .85rem; color: var(--red);
}
.process li::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.process h4 { margin-bottom: .35rem; font-size: 1.05rem; }
.process p { margin: 0; font-size: .93rem; color: var(--muted); }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
  .process li { padding-bottom: 28px; }
}
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- Szolgáltatások ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.service:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.service-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px;
  border-radius: 12px; background: var(--red-soft); color: var(--red);
}
.service-icon .icon { width: 26px; height: 26px; }
.service h3 { font-size: 1.2rem; }
.service p { font-size: .97rem; color: var(--muted); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: .28em .7em; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-soft); font-size: .78rem; line-height: 1.5; color: var(--muted);
}
.service .tags li { background: #fff; }

.logo-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.logo-strip-top { margin: 0 0 40px; padding: 0 0 32px; border-top: 0; border-bottom: 1px solid var(--line); }
.strip-label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.logo-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.logo-strip li { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: #979fab; }

@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* ---------- Projektek ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.no-js .chips { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: .5em; padding: .55em 1em;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text);
  font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip span { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip[aria-pressed="true"] span { color: rgba(255, 255, 255, .6); }

.project-index { margin-bottom: 48px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.project-index-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 12px; }
.project-index-head h3 { margin: 0; font-size: 1rem; }
.project-index-head p { margin: 0; font-size: .85rem; color: var(--muted); }
.project-index ol { list-style: none; columns: 3 280px; column-gap: 32px; }
.project-index li { break-inside: avoid; }
.project-index a {
  display: flex; gap: 12px; margin-inline: -.5em; padding: .42em .5em; border-radius: 6px;
  font-size: .92rem; line-height: 1.35; text-decoration: none; color: var(--text);
  transition: background-color .15s, color .15s;
}
.project-index a:hover { background: #fff; color: var(--red); }
.idx-year { flex: none; min-width: 4.8em; padding-top: .1em; font-family: var(--mono); font-size: .76rem; color: var(--muted); }
@media (max-width: 620px) { .project-index ol { max-height: 360px; overflow: auto; } }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.project { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .25s; }
.project:hover { box-shadow: var(--shadow); }
.is-flash { animation: flash 2.2s ease; }
@keyframes flash {
  0%, 45% { box-shadow: 0 0 0 3px var(--red); }
  100% { box-shadow: 0 0 0 3px rgba(226, 0, 15, 0); }
}

.project-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-2); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover .project-media img { transform: scale(1.03); }
.project-media:not(.is-placeholder)::after {
  content: ""; position: absolute; inset: auto 0 0; height: 55%;
  background: linear-gradient(transparent, rgba(0, 0, 0, .6));
}
.project-media.is-placeholder {
  display: grid; place-items: center; color: rgba(255, 255, 255, .88);
  background:
    radial-gradient(circle at 75% 25%, rgba(226, 0, 15, .3), transparent 55%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--ink-2);
}
.project-media.is-placeholder .icon { width: 56px; height: 56px; stroke-width: 1.2; }
.media-label {
  position: absolute; left: 18px; bottom: 14px; z-index: 1;
  font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8);
}
.project-body { padding: 22px 22px 18px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: .55rem; font-size: .8rem; color: var(--muted); }
.project-year { font-family: var(--mono); color: var(--red); }
.project h3 { font-size: 1.1rem; line-height: 1.3; }
.project-body > p:not(.project-meta) { font-size: .93rem; color: var(--muted); }
.project .tags { margin-bottom: 12px; }

@media (max-width: 1024px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .projects { grid-template-columns: 1fr; } }

.project h4 { font-size: 1.1rem; line-height: 1.3; }

/* Videó – csak kattintásra töltődik be */
.video { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.video.is-playing { display: block; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.video-note { font-size: .78rem; color: var(--muted); }

/* ---------- Időrendi projektlista ---------- */
.timeline-head { margin-top: clamp(56px, 7vw, 88px); }
.timeline-years { border-top: 1px solid var(--line); }
.year-block { border-bottom: 1px solid var(--line); }
.year-block > summary {
  display: flex; align-items: center; gap: 14px; padding: 16px 4px; list-style: none; cursor: pointer;
  transition: color .2s;
}
.year-block > summary::-webkit-details-marker { display: none; }
.year-block > summary::after {
  content: ""; width: .5em; height: .5em; margin-left: auto;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg); transition: transform .2s, border-color .2s;
}
.year-block[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.year-block > summary:hover { color: var(--red); }
.year-block > summary:hover::after { border-color: var(--red); }
.year-label { margin: 0; font-family: var(--mono); font-size: 1.2rem; font-weight: 700; color: var(--red); letter-spacing: -.01em; }
.year-count { font-size: .85rem; color: var(--muted); }
.year-list { list-style: none; display: grid; gap: 10px; padding: 2px 0 22px; }
.year-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.year-item { font-size: .98rem; }
.year-tag {
  flex: none; padding: .2em .75em; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-soft); font-size: .76rem; color: var(--muted); white-space: nowrap;
}
@media (max-width: 720px) {
  .year-block { grid-template-columns: 1fr; gap: 12px; }
  .year-list li { justify-content: flex-start; }
}

/* ---------- Lenyitható részletek ---------- */
.more summary {
  display: inline-flex; align-items: center; gap: .5em; padding: .4em 0;
  font-size: .9rem; font-weight: 600; list-style: none; cursor: pointer;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: ""; width: .45em; height: .45em; margin-left: .15em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s;
}
.more[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.more summary:hover { color: var(--red); }
.more-body { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .92rem; }

.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.facts-lined { gap: 0 18px; }
.facts-lined dt, .facts-lined dd { padding: 9px 0; border-bottom: 1px solid var(--line); }

.bullets { list-style: none; display: grid; gap: 7px; }
.bullets li { position: relative; padding-left: 18px; color: var(--muted); line-height: 1.55; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--red); }

/* ---------- Pályázatok ---------- */
.grants { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.card { padding: clamp(24px, 3.5vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.badge {
  display: inline-flex; margin-bottom: 1rem; padding: .35em .85em; border-radius: 999px;
  background: var(--red-soft); color: var(--red); font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.grant h3 { font-size: clamp(1.3rem, 2.1vw, 1.65rem); line-height: 1.25; }
.grant-code { margin-bottom: 0; font-family: var(--mono); font-size: .85rem; color: var(--muted); }
.grant-head.has-image { display: grid; grid-template-columns: 1fr 150px; gap: 28px; align-items: start; }
.grant-head img { border: 1px solid var(--line); border-radius: 8px; }
.grant .more { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 6px; }
.grant .more + .more { margin-top: 0; }
.grant p.muted { font-size: .97rem; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0; border-block: 1px solid var(--line); }
.kpis div { padding: 16px 16px 16px 0; }
.kpis div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.kpis dt { font-size: .8rem; color: var(--muted); }
.kpis dd { margin: 0; font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; }
.mini-title { margin: 1.5rem 0 .8rem; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.timeline { list-style: none; position: relative; display: grid; gap: 16px; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -23px; top: .45em; width: 11px; height: 11px;
  border: 2px solid var(--red); border-radius: 50%; background: #fff;
}
.timeline time { display: block; font-family: var(--mono); font-size: .8rem; color: var(--red); }
.timeline p { margin: 0; color: var(--muted); }

.sub-head { margin: 0 0 20px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: clamp(56px, 7vw, 88px); }
.award { position: relative; display: flex; flex-direction: column; padding: 28px 24px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.award.is-top { border-color: var(--ink); background: var(--ink); color: #fff; }
.award-rank { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--red); font-size: 1rem; font-weight: 700; }
.award-rank .icon { width: 30px; height: 30px; }
.award.is-top .award-rank { color: #ff4d57; }
.award-event { margin: 0 0 .4rem; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.award h4 { font-size: 1.15rem; line-height: 1.3; }
.award-cat { margin-bottom: .5rem; font-size: .9rem; color: var(--muted); }
.award-people { margin-bottom: 1rem; font-size: .85rem; color: var(--muted); }
.award.is-top .award-event, .award.is-top .award-cat, .award.is-top .award-people { color: var(--muted-light); }
.award-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 6px; font-size: .88rem; font-weight: 600; }
.award-links a { color: var(--red); text-decoration: none; }
.award.is-top .award-links a { color: #fff; }
.award-links a:hover { text-decoration: underline; }

.project-body > p.project-award {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: .7rem; padding: .3em .8em .3em .55em;
  border-radius: 999px; background: var(--red-soft); color: var(--red); font-size: .78rem; font-weight: 600; line-height: 1.3;
}
.project-award .icon { width: 1.15em; height: 1.15em; }

@media (max-width: 960px) { .grants { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .grant-head.has-image { grid-template-columns: 1fr; }
  .grant-head img { max-width: 160px; }
  .kpis { grid-template-columns: 1fr; }
  .kpis div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Karrier ---------- */
.career-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.career-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.perks { list-style: none; display: grid; gap: 12px; margin: 28px 0 34px; }
.perks li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .86); }
.perks .icon { color: var(--red); }

.jobs { display: grid; gap: 16px; }
.job { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--ink-line); border-radius: var(--radius); background: var(--ink-2); transition: border-color .25s; }
.job:hover { border-color: rgba(255, 255, 255, .2); }
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.job h3 { margin-bottom: .45rem; font-size: 1.35rem; }
.job-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: .9rem; font-size: .88rem; color: var(--muted-light); }
.job-meta li { display: inline-flex; align-items: center; gap: 6px; }
.job-meta .icon { width: 1em; height: 1em; }
.job-summary { margin: 0; color: var(--muted-light); }
.job .more { margin-top: 14px; }
.job .more summary { color: #fff; }
.job .more summary:hover { color: #ff5a64; }
.job .more-body { border-color: var(--ink-line); }
.job-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 32px; }
.job-groups h4 { margin-bottom: .7rem; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.section-dark .bullets li { color: rgba(255, 255, 255, .84); }
.job-empty { border-style: dashed; background: transparent; }

@media (max-width: 960px) {
  .career-grid { grid-template-columns: 1fr; }
  .career-intro { position: static; }
}
@media (max-width: 600px) {
  .job-head { flex-direction: column; }
  .job-groups { grid-template-columns: 1fr; }
}

/* ---------- Kapcsolat ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.info-list { display: grid; gap: 12px; }
.info { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.info-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--red-soft); color: var(--red); }
.info h3 { margin: 0 0 .3rem; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.info p { margin: 0; overflow-wrap: anywhere; }
.info p.small { color: var(--muted); line-height: 1.7; }
.info a { font-weight: 600; text-decoration: none; }
.info a:hover { color: var(--red); }

.form-card { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.form-title { margin-bottom: 1.25rem; font-size: 1.35rem; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: .8em .95em; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; color: var(--text);
  font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px rgba(20, 23, 28, .08); }
.field input[type="file"] { padding: .55em; background: var(--bg-soft); font-size: .92rem; }
.field .hint { font-size: .8rem; color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: .12em 0 0; accent-color: var(--red); }
.check a { color: var(--text); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.form-status { font-size: .95rem; border-radius: 10px; }
.form-status:empty { display: none; }
.form-status.is-ok { padding: 14px 16px; border: 1px solid #abefc6; background: #ecfdf3; color: #05603a; }
.form-status.is-error { padding: 14px 16px; border: 1px solid #fecdca; background: #fef3f2; color: #b42318; }

.map { position: relative; overflow: hidden; margin-top: clamp(48px, 6vw, 72px); min-height: 340px; aspect-ratio: 21 / 8; border-radius: var(--radius); background: var(--ink-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: #fff;
  background:
    radial-gradient(circle at 50% 45%, rgba(226, 0, 15, .22), transparent 45%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 36px 36px,
    var(--ink-2);
}
.map-icon { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--red); }
.map-address { margin-bottom: 1rem; font-size: 1.2rem; font-weight: 600; }
.map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.map-note { max-width: 460px; margin: 16px auto 0; font-size: .82rem; color: var(--muted-light); }

@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .map { aspect-ratio: auto; min-height: 400px; }
}

/* ---------- Felugró ablak ---------- */
.dialog {
  width: min(640px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0;
  border: 0; border-radius: var(--radius); color: var(--text); box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
}
.dialog::backdrop { background: rgba(11, 13, 17, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog .form { padding: clamp(22px, 4vw, 36px); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dialog-head .eyebrow { margin-bottom: .5rem; }
.dialog-head h3 { margin: 0; font-size: 1.45rem; }
.dialog-close { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); cursor: pointer; }
.dialog-close:hover { border-color: var(--text); }
body.has-dialog { overflow: hidden; }

/* ---------- Lábléc ---------- */
.site-footer { padding-top: 72px; border-top: 1px solid var(--ink-line); background: var(--ink); color: rgba(255, 255, 255, .66); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.site-footer h2 { margin-bottom: 1rem; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 28px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ink-line); border-radius: 10px; color: #fff; }
.socials a:hover { border-color: rgba(255, 255, 255, .35); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid var(--ink-line); font-size: .85rem; }

@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Aloldalak (adatvédelem, 404) ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(40px, 6vw, 64px); background: var(--ink); color: #fff; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.035em; }
.page-hero .lead { color: var(--muted-light); }
.page-hero-full { min-height: 70vh; display: flex; align-items: center; }
.prose { max-width: 780px; }
.prose h2 { margin: 2.4em 0 .6em; font-size: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.6em 0 .5em; font-size: 1.1rem; }
.prose p, .prose li { color: #3a414c; }
.prose ul { display: grid; gap: 6px; margin: 0 0 1em; padding-left: 1.2em; }
.prose a { color: var(--red); }

/* ---------- EU kedvezményezetti infoblokk (magassága kötelezően 64 px) ---------- */
.eu-infoblokk {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: block; line-height: 0;
  background: #fff; border-radius: 6px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.eu-infoblokk img { display: block; width: auto; max-width: none; height: 64px; }
.eu-infoblokk:focus-visible { outline-offset: 4px; }
.has-infoblokk .footer-bottom { padding-bottom: 104px; }
@media (max-width: 600px) {
  .eu-infoblokk { right: 50%; transform: translateX(50%); bottom: 10px; }
}
.eu-infoblokk-inline { display: block; width: auto; max-width: none; height: 64px; margin-top: 24px; }

.eu-banner {
  display: grid; gap: 6px; margin-bottom: 24px; padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line); border-left: 4px solid #003399; border-radius: var(--radius);
  background: #fff; color: var(--text); text-decoration: none; transition: box-shadow .25s;
}
.eu-banner:hover { box-shadow: var(--shadow); }
.eu-banner .badge { justify-self: start; margin-bottom: .4rem; background: #eef2fb; color: #003399; }
.eu-banner strong { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.3; letter-spacing: -.01em; }
.eu-banner-meta { font-family: var(--mono); font-size: .85rem; color: var(--muted); }
.eu-banner-link { display: inline-flex; align-items: center; gap: .4em; margin-top: .4rem; font-weight: 600; color: #003399; }
.footer-links a + a { margin-left: 0; }

.eu-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.eu-facts h2 { margin-bottom: 1rem; font-size: 1.1rem; }
.eu-highlight { display: grid; gap: 4px; margin-bottom: 2rem; padding: 20px 24px; border-left: 4px solid #003399; border-radius: 8px; background: #eef2fb; }
.eu-highlight strong { font-size: 1.6rem; letter-spacing: -.02em; color: #003399; }
.eu-highlight span { font-size: .9rem; color: #3a414c; }
@media (max-width: 900px) { .eu-grid { grid-template-columns: 1fr; } }

/* ---------- Admin ---------- */
body.admin { min-height: 100vh; background: var(--ink); }
.admin-wrap { max-width: 760px; margin: 0 auto; padding: 48px 16px; }
.admin-logo { display: inline-block; margin-bottom: 24px; }
.admin-logo img { height: 28px; width: auto; }
.admin-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.admin-card h1 { font-size: 1.6rem; }
.admin-card .form-status { margin: 16px 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.toggle-list { list-style: none; margin: 20px 0 28px; border-top: 1px solid var(--line); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.toggle-row strong, .toggle-row span { display: block; }
.switch { position: relative; flex: none; width: 50px; height: 28px; }
.switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #d0d5dd; transition: background-color .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + span { background: #12b76a; }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- Mozgáscsökkentés ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Nyomtatás ---------- */
@media print {
  .site-header, .hero-grid, .chips, .map, .dialog, .site-footer .socials { display: none !important; }
  .hero { min-height: auto; color: #000; background: none; }
  .hero::before, .hero::after { display: none; }
  details > * { display: block !important; }
}

.ref-download { margin-top: 1.25rem; }


.archive-link { margin-top: 1.5rem; }
.info .bank + .bank { margin-top: .5rem; }
.page-hero .lead a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
