/* Civil Innovációs Hub – partnertoborzó landing
   Színek: alföldi tájból (napraforgó, Körös-part, zsálya) */
:root {
  color-scheme: light;
  --paper: #f5f7f1;
  --sage: #e6ece0;
  --card: #ffffff;
  --ink: #10302c;
  --ink-2: #4a625c;
  --ink-soft: #b9c9c2;
  --line: #cbd6c8;
  --line-dark: #2b4c46;
  --river: #1f6f63;
  --river-soft: #d5e7e1;
  --sun: #f2c230;
  --sun-soft: #fbeab0;
  --danger: #b3261e;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.8vw, 2.4rem);
  --step-4: clamp(2.3rem, 1.4rem + 3.8vw, 4rem);

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --sec: clamp(44px, 6vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
a { color: var(--river); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--river); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--f-display);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 650; line-height: 1.25; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--river);
}
.muted { color: var(--ink-2); }
.hl { background: linear-gradient(transparent 60%, var(--sun-soft) 60%); padding-inline: .1em; }

section { padding-block: var(--sec); }
.band { background: var(--sage); }
.dark { background: var(--ink); color: #eef3ee; }
.dark .eyebrow { color: var(--sun); }
.dark .muted { color: var(--ink-soft); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 32px; margin-bottom: clamp(22px, 3vw, 36px); }
.head > div { display: grid; gap: 8px; max-width: 620px; }
.head > div:only-child { max-width: 820px; }
.head > p { max-width: 52ch; }

/* ---------- Gombok ---------- */
.btn {
  --bg: var(--ink);
  --fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.35em;
  border-radius: 999px;
  border: 2px solid var(--bg);
  background: var(--bg);
  color: var(--fg);
  font: 700 var(--step-0)/1 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn:hover { color: var(--fg); }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(242, 194, 48, .5) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s ease;
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Fejléc ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.topbar nav { display: flex; gap: 22px; font-size: .92rem; font-weight: 700; }
.topbar nav a { color: var(--ink-2); text-decoration: none; }
.topbar nav a:hover { color: var(--ink); }
.scrollbar { height: 3px; background: var(--sun); transform-origin: left; transform: scaleX(0); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.brand__sub { display: block; font-family: var(--f-body); font-weight: 400; font-size: .76rem; color: var(--ink-2); }
.topbar .btn { padding: .6em 1.1em; font-size: .95rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(20px, 4vw, 48px) clamp(28px, 4vw, 48px); }
.hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: var(--step-4); font-weight: 800; margin-block: 12px 18px; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .wi { display: inline-block; }
.mark {
  background-image: linear-gradient(var(--sun), var(--sun));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 34%;
  padding-inline: .06em;
  transition: background-size .8s cubic-bezier(.2, .8, .2, 1) .5s;
}
.pre .mark { background-size: 0% 34%; }
.hero .lede { font-size: var(--step-1); color: var(--ink-2); max-width: 54ch; margin-bottom: 18px; }
.only-orgs {
  display: inline-flex; gap: 12px; align-items: center;
  padding: 10px 18px 10px 10px; margin-bottom: 22px;
  border-radius: 999px; background: var(--ink); color: #fff;
  font-size: var(--step--1); line-height: 1.35;
}
.only-orgs b { color: var(--sun); }
.only-orgs .ico { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__meta { margin-top: 16px; font-size: var(--step--1); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero__meta span::before { content: "•"; color: var(--sun); margin-right: 8px; font-weight: 700; }
.hero__meta span:first-child::before { content: none; }

.map { position: relative; margin: 0; }
.map svg { display: block; width: 100%; height: auto; max-height: 500px; }
.map .town { fill: #8ea396; transition: fill .4s; }
.map .town.lit { fill: var(--ink); }
.map .link { stroke: var(--ink); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.map .halo { fill: var(--sun); opacity: .6; }
.map .hub-ring { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 4; transform-box: fill-box; transform-origin: center; animation: spin 24s linear infinite; }
.map .hub-pulse { fill: none; stroke: var(--sun); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.8s ease-out infinite; }
.map .petal { fill: var(--sun); stroke: var(--ink); stroke-width: 1.4; }
.map .hub-dot { fill: var(--ink); }
.map__label { font: 700 13px var(--f-body); fill: var(--ink); }
.map__label--small { font: 400 12px var(--f-body); fill: var(--ink-2); }
.map__caption { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 6px; font-size: var(--step--1); color: var(--ink-2); }
.map__caption i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Kulcsszámok + röviden ---------- */
.facts { padding-block: clamp(32px, 4.5vw, 56px); }
.facts__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.facts__text { display: grid; gap: 14px; }
.facts__text p { color: #d8e3de; }
.goal { display: grid; gap: 4px; padding: 14px 18px; border-left: 4px solid var(--sun); background: rgba(255, 255, 255, .06); border-radius: 0 12px 12px 0; }
.goal strong { font-family: var(--f-display); font-size: var(--step-1); color: #fff; }
.goal span { font-size: var(--step--1); color: var(--ink-soft); }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.num {
  display: grid; align-content: start; gap: 6px;
  padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .03);
}
.num b { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.num span { font-size: .88rem; line-height: 1.35; color: var(--ink-soft); }
.num--sun { background: var(--sun); border-color: var(--sun); }
.num--sun b, .num--sun span { color: var(--ink); }

/* ---------- Infografika 1: csere ---------- */
.swap { display: grid; grid-template-columns: 1fr 190px 1.35fr; align-items: center; }
.side { border-radius: 18px; padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 14px; align-self: stretch; align-content: start; }
.side--give { background: var(--card); border: 1px solid var(--line); }
.side--get { background: var(--ink); color: #eef3ee; }
.side__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.side__head h3 { font-size: var(--step-2); }
.side__head small { font-size: .82rem; color: var(--ink-2); }
.side--get .side__head small { color: var(--ink-soft); }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.items--2 { grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.item { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; font-size: .9rem; line-height: 1.4; }
.item b { display: block; font-size: .98rem; margin-bottom: 1px; }
.item p { color: var(--ink-2); }
.side--get .item p { color: var(--ink-soft); }
.item .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--river-soft); color: var(--ink); }
.side--get .item .ic { background: rgba(242, 194, 48, .16); color: var(--sun); }
.side--get .item.item--star { grid-column: 1 / -1; padding: 12px; border-radius: 12px; background: var(--sun); color: var(--ink); }
.side--get .item.item--star p { color: var(--ink); }
.side--get .item.item--star .ic { background: var(--ink); color: var(--sun); }

.core { position: relative; display: grid; place-items: center; align-self: stretch; min-height: 240px; }
.core svg.flow { position: absolute; left: -12px; right: -12px; top: 0; width: calc(100% + 24px); height: 100%; overflow: visible; }
.flow path { fill: none; stroke-width: 2.4; stroke-dasharray: 2 9; stroke-linecap: round; animation: flow 1.1s linear infinite; }
.flow .f-in { stroke: var(--river); }
.flow .f-out { stroke: var(--sun); animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -22; } }
.coin {
  position: relative; z-index: 1;
  width: 158px; height: 158px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; align-content: center; gap: 2px;
  background: var(--sun); color: var(--ink);
  box-shadow: 0 0 0 8px var(--paper), 0 0 0 9px var(--line);
}
.coin b { font-family: var(--f-display); font-weight: 800; font-size: 2.8rem; line-height: 1; letter-spacing: -.03em; }
.coin span { font-size: .8rem; font-weight: 700; line-height: 1.25; max-width: 12ch; }
.coin::before {
  content: ""; position: absolute; inset: -20px; border-radius: 50%;
  border: 1.5px dashed var(--ink); opacity: .35; animation: spin 30s linear infinite;
}
.swap__note { margin-top: 16px; text-align: center; font-size: var(--step--1); color: var(--ink-2); }

/* ---------- Infografika 2: egy nap íve ---------- */
.day__grid { display: grid; grid-template-columns: 1fr 1.9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.day__lead { display: grid; gap: 12px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics span { padding: 5px 11px; border-radius: 999px; border: 1px solid #3f5e57; font-size: .85rem; color: #dfe8e3; }
.arc svg { display: block; width: 100%; height: auto; overflow: visible; }
.arc .sky { fill: none; stroke: #3f5e57; stroke-width: 2; stroke-dasharray: 4 6; }
.arc .sky-done { fill: none; stroke: var(--sun); stroke-width: 3; stroke-linecap: round; }
.arc .ground { stroke: #3f5e57; stroke-width: 1.5; }
.arc .sun-core { fill: var(--sun); }
.arc .sun-glow { fill: var(--sun); opacity: .18; }
.arc .sun-rays { stroke: var(--sun); stroke-width: 2.5; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
.arc .tick { fill: var(--ink); stroke: #5b7a72; stroke-width: 2; transition: fill .3s, stroke .3s; }
.arc .tick.on { fill: var(--sun); stroke: var(--sun); }
.phases { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.phase { display: grid; gap: 4px; align-content: start; padding: 12px; border-radius: 12px; border: 1px solid var(--line-dark); transition: background-color .35s, border-color .35s; }
.phase time { font-family: var(--f-display); font-weight: 700; color: var(--sun); font-size: .95rem; }
.phase b { font-family: var(--f-display); font-size: 1.08rem; font-weight: 650; color: #fff; line-height: 1.2; }
.phase p { color: var(--ink-soft); font-size: .86rem; line-height: 1.4; }
.phase.on { background: rgba(242, 194, 48, .1); border-color: rgba(242, 194, 48, .55); }

/* ---------- Infografika 3: az út ---------- */
.route { position: relative; height: 300px; }
.route__line, .route__fill { position: absolute; left: 0; right: 0; top: 150px; height: 4px; margin-top: -2px; border-radius: 4px; }
.route__line { background: var(--line); }
.route__fill { background: var(--river); transform-origin: left; }
.route__year { position: absolute; top: 164px; font-size: .78rem; font-weight: 700; color: var(--ink-2); padding-left: 6px; border-left: 1px solid var(--ink-2); line-height: 1; }
.route__wave { position: absolute; top: 150px; height: 14px; margin-top: -7px; border-radius: 7px; background: var(--sun); }
.stop { position: absolute; top: 150px; width: 0; }
.stop__dot { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 3px solid var(--river); z-index: 1; }
.stop--sun .stop__dot { border-color: var(--ink); background: var(--sun); }
.stop__card { position: absolute; left: -14px; width: 172px; display: grid; gap: 2px; font-size: .86rem; line-height: 1.35; }
.stop__card::before { content: ""; position: absolute; left: 13px; width: 1px; background: var(--ink-2); opacity: .5; }
.stop--up .stop__card { bottom: 24px; }
.stop--up .stop__card::before { top: 100%; height: 14px; }
.stop--down .stop__card { top: 34px; }
.stop--down .stop__card::before { bottom: 100%; height: 22px; }
.stop--right .stop__card { left: auto; right: -14px; text-align: right; }
.stop--right .stop__card::before { left: auto; right: 13px; }
.stop__card time { font-weight: 700; font-size: .76rem; color: var(--river); letter-spacing: .05em; text-transform: uppercase; }
.stop__card b { font-family: var(--f-display); font-size: 1.05rem; font-weight: 650; line-height: 1.2; }
.stop__card span { color: var(--ink-2); }
.route__foot { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 8px; font-size: var(--step--1); color: var(--ink-2); }
.route__foot i { display: inline-block; width: 22px; height: 8px; border-radius: 4px; background: var(--sun); margin-right: 8px; vertical-align: 1px; }

/* ---------- Infografika 4: település ---------- */
.town__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.pop { padding: clamp(20px, 3vw, 28px); border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 14px; align-content: center; }
.pop__big { font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 2rem + 4vw, 4.4rem); line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.people { display: flex; gap: 8px; align-items: end; }
.people svg { width: 15%; max-width: 50px; height: auto; overflow: visible; }
.people .p { fill: var(--river); }
.people .gone path, .people .gone circle { fill: none; stroke: var(--river); stroke-width: 2; stroke-dasharray: 4 4; }
.pop p { color: var(--ink-2); font-size: .95rem; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.benefit { padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.benefit .n { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--river); }
.benefit b { font-family: var(--f-display); font-size: 1.05rem; line-height: 1.25; font-weight: 650; }
.benefit p { font-size: .9rem; color: var(--ink-2); line-height: 1.45; }

/* ---------- Kiket + hogyan tovább ---------- */
.who__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.who__col { padding: clamp(16px, 2.2vw, 22px); border-radius: var(--radius); }
.who__col h3 { font-size: 1.1rem; }
.who__col--yes { background: var(--card); border: 1px solid var(--line); }
.who__col--no { border: 1px dashed #9fb1a6; }
.who ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 9px; font-size: .93rem; line-height: 1.45; }
.who li { padding-left: 26px; position: relative; }
.who__col--yes li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 17px; height: 17px; border-radius: 50%;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.5L12 5.4' fill='none' stroke='%2310302c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.who__col--no li::before { content: ""; position: absolute; left: 0; top: .2em; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid #9fb1a6; }
.who__col--no li::after { content: ""; position: absolute; left: 4.5px; top: calc(.2em + 7.5px); width: 8px; height: 2px; background: #6d8279; }
.who__note { grid-column: 1 / -1; font-size: .88rem; color: var(--ink-2); }

.process { list-style: none; padding: 0; margin: 0; display: grid; counter-reset: p; position: relative; }
.process::before { content: ""; position: absolute; left: 17px; top: 22px; bottom: 22px; width: 2px; background: var(--line); }
.process li { counter-increment: p; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding-block: 7px; position: relative; }
.process li::before {
  content: counter(p); width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--sun);
  font-family: var(--f-display); font-weight: 800; position: relative;
}
.process b { font-family: var(--f-display); font-size: 1.08rem; font-weight: 650; }
.process p { color: var(--ink-2); font-size: .9rem; line-height: 1.4; }
.process__note { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); }

/* ---------- Űrlap ---------- */
.apply { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.apply__side { display: grid; gap: 16px; position: sticky; top: 90px; }
.apply__side .lede { color: var(--ink-2); }
.contact-card { padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); font-size: var(--step--1); display: grid; gap: 3px; }
.contact-card b { font-size: var(--step-0); }

.form-card { background: var(--card); border-radius: 20px; border: 1px solid var(--line); padding: clamp(20px, 3.2vw, 36px); box-shadow: 0 30px 60px -40px rgba(16, 48, 44, .45); }
.progress { display: grid; gap: 10px; margin-bottom: 22px; }
.progress__labels { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--ink-2); }
.progress__labels span.on { color: var(--ink); font-weight: 700; }
.progress__bar { height: 6px; border-radius: 999px; background: var(--sage); overflow: hidden; }
.progress__fill { height: 100%; width: 33.33%; background: var(--river); border-radius: 999px; transition: width .45s cubic-bezier(.2, .8, .2, 1); }

.step { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; min-width: 0; }
.step legend { padding: 0; margin-bottom: 4px; font-family: var(--f-display); font-size: var(--step-2); font-weight: 700; line-height: 1.15; }
.step legend small { display: block; margin-top: 4px; font-family: var(--f-body); font-size: var(--step--1); font-weight: 400; color: var(--ink-2); }
.js .step.enter { animation: stepIn .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

.field { display: grid; gap: 7px; }
.field > label, .field > .label { font-weight: 700; font-size: .98rem; }
.field .hint { font-size: .85rem; color: var(--ink-2); font-weight: 400; margin-top: -3px; }
.opt { font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea, select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
textarea { min-height: 84px; resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: #9fb1a6; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--river); background: #fff; box-shadow: 0 0 0 4px rgba(31, 111, 99, .15); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.error { color: var(--danger); font-size: .85rem; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); font-size: .93rem; cursor: pointer; user-select: none;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.chip span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background-color .15s; }
.chip:hover span { border-color: #9fb1a6; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:checked + span::before { background: var(--sun); }
.chip input:focus-visible + span { outline: 3px solid var(--river); outline-offset: 2px; }
.chip input:active + span { transform: scale(.96); }
.chips--stack { display: grid; }
.chips--stack .chip span { border-radius: 12px; width: 100%; padding: 11px 14px; }

.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .92rem; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--river); }

.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.form-nav .spacer { flex: 1; }
.time-left { font-size: .85rem; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.success { display: grid; gap: 14px; }
.success__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; }
.success h3 { font-size: var(--step-2); }
.form-error { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #fbe9e7; color: var(--danger); font-size: .92rem; }

/* GYIK */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.faq summary {
  list-style: none; cursor: pointer; padding-block: 14px; font-weight: 700; font-size: 1rem;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-display); font-size: 1.5rem; line-height: 1; color: var(--river); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 16px; color: var(--ink-2); font-size: .95rem; }

/* Lábléc */
footer { background: var(--ink); color: #cfdcd6; padding-block: 44px 32px; font-size: var(--step--1); }
footer a { color: #fff; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.foot h3 { color: #fff; font-size: var(--step-0); margin-bottom: 8px; }
.foot p + p { margin-top: 4px; }
.funder { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.funder__logos { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.funder__logos img { height: 48px; width: auto; background: #fff; border-radius: 6px; padding: 6px 10px; }
.funder p { max-width: 60ch; }

/* ---------- Tördelés kisebb kijelzőn ---------- */
@media (max-width: 1040px) {
  .topbar nav { display: none; }
  .swap { grid-template-columns: 1fr; }
  .core { min-height: 0; padding-block: 34px; }
  .core svg.flow { display: none; }
  .coin { width: 140px; height: 140px; }
  .coin b { font-size: 2.4rem; }
}
@media (max-width: 900px) {
  .hero__grid, .facts__grid, .day__grid, .town__grid, .who__grid, .apply { grid-template-columns: 1fr; }
  .map { max-width: 400px; margin-inline: auto; width: 100%; }
  .apply__side { position: static; }
  .foot { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; }
  /* az út függőlegesen */
  .route { height: auto; display: grid; gap: 18px; }
  .route__line, .route__fill { left: 8px; right: auto; top: 6px; bottom: 6px; width: 4px; height: auto; margin: 0; }
  .route__fill { transform-origin: top; }
  .route__year, .route__wave { display: none; }
  .stop, .stop--right { position: relative; top: auto; left: 0 !important; width: auto; padding-left: 38px; }
  .stop__dot { left: 0; top: 2px; }
  .stop__card, .stop--up .stop__card, .stop--down .stop__card, .stop--right .stop__card { position: static; width: auto; text-align: left; }
  .stop__card::before { display: none; }
}
@media (max-width: 640px) {
  .items--2, .who, .row2, .foot, .benefits { grid-template-columns: 1fr; }
  .nums, .phases { grid-template-columns: 1fr 1fr; }
  .topbar .brand__sub { display: none; }
  .map { max-width: 320px; }
  .only-orgs { border-radius: 16px; }
  .head { align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Motion előtti állapot (csak ha a JS betölt, max. 1,8 mp) */
.pre [data-hero] { opacity: 0; }
