:root {
  /* Brand: sampled from the logo */
  --navy-900: #0A1A2F;
  --navy-800: #11253F;
  --navy-700: #1B3352;
  --gold-400: #D9BC7E;
  --gold-500: #C9A35A;
  --gold-700: #8A6A2B;   /* gold for text on light backgrounds (AA) */
  --paper: #F5F7FA;
  --white: #FFFFFF;
  --ink: #0F1B2A;
  --ink-muted: #46546A;
  --line: #DCE2EA;
  --line-dark: rgba(217, 188, 126, 0.22);

  --font-display: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --radius: 6px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.005em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.5rem; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: 1.1875rem; color: var(--ink-muted); max-width: 62ch; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold-500); color: var(--navy-900); padding: 10px 16px; font-weight: 700; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  font: 700 1rem/1 var(--font-body);
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); }
.btn-ghost { border-color: rgba(217, 188, 126, .55); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold-400); background: rgba(217, 188, 126, .08); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-900); border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: #E6EAF0; text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: 12px 14px; border-radius: var(--radius);
}
.nav a:not(.btn):hover { color: var(--gold-400); }
.nav .btn { margin-left: 12px; min-height: 44px; padding: 0 18px; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line-dark); color: var(--white);
  width: 48px; height: 48px; border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }

/* Hero */
.hero { background: var(--navy-900); color: var(--white); position: relative; overflow: hidden; }
.hero::before {
  /* faint gold arc echoing the logo's metallic sheen */
  content: ""; position: absolute; right: -18vw; top: -30%; width: 70vw; height: 160%;
  border-radius: 50%; border: 1px solid rgba(217, 188, 126, .14);
  box-shadow: 0 0 0 60px rgba(217, 188, 126, .025), 0 0 0 140px rgba(217, 188, 126, .02);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(56px, 9vw, 112px); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04; max-width: 14ch; }
.hero .rule { width: 0; height: 2px; background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); margin: 28px 0 24px; animation: draw 1.1s .2s var(--ease) forwards; }
@keyframes draw { to { width: 120px; } }
.hero p { font-size: 1.2rem; color: #C9D2DE; max-width: 52ch; }
.hero p strong { color: var(--white); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.facts { border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255,255,255,.025); }
.facts dl { margin: 0; }
.fact { display: grid; grid-template-columns: 116px 1fr; gap: 18px; align-items: baseline; padding: 22px 26px; }
.fact + .fact { border-top: 1px solid var(--line-dark); }
.fact dt { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--gold-400); font-weight: 600; }
.fact dt small { font-size: 1.25rem; }
.fact dd { margin: 0; color: #DCE3EC; font-size: 1rem; line-height: 1.45; }
.fact dd b { display: block; color: var(--white); font-weight: 700; }

/* Audience strip */
.audience { background: var(--navy-800); color: #DCE3EC; }
.audience .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; padding-top: 22px; padding-bottom: 22px; }
.audience span.label { color: var(--gold-400); font-weight: 700; }
.audience ul { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 0; }
.audience li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.audience li svg { width: 18px; height: 18px; color: var(--gold-500); flex: none; }

section.block { padding: clamp(64px, 9vw, 112px) 0; }
.block-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }

/* About */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-text .block-head { margin-bottom: 24px; }
.about-text p + p { margin-top: 18px; }
.about-text p { color: var(--ink-muted); }
.about-text p:first-of-type { color: var(--ink); font-size: 1.2rem; }
.disciplines { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.disciplines li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: .95rem; background: var(--paper); }
.two-sides { background: var(--paper); border-left: 3px solid var(--gold-500); padding: 32px clamp(24px, 3vw, 40px); border-radius: 0 var(--radius) var(--radius) 0; }
.two-sides h3 { margin-bottom: 14px; }
.two-sides p { color: var(--ink-muted); }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.side { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side b { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 4px; }
.side span { color: var(--ink-muted); font-size: .95rem; line-height: 1.45; display: block; }

/* Promise (the memorable moment) */
.promise { background: var(--navy-900); color: var(--white); }
.promise .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.promise .big { font-family: var(--font-display); font-weight: 600; color: var(--gold-400); font-size: clamp(5rem, 13vw, 10rem); line-height: .85; }
.promise .big small { display: block; font-size: .2em; color: #C9D2DE; letter-spacing: .02em; margin-top: 12px; font-family: var(--font-body); font-weight: 600; }
.promise h2 { margin-bottom: 16px; }
.promise p { color: #C9D2DE; font-size: 1.15rem; max-width: 56ch; }

/* Why us */
.why { background: var(--paper); }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.why-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.why-list li:first-child { grid-column: 1 / -1; }
.why-list li:first-child h3 { font-size: 1.85rem; }
.why-list svg { width: 28px; height: 28px; color: var(--gold-700); margin-top: 4px; }
.why-list h3 { margin-bottom: 6px; }
.why-list p { color: var(--ink-muted); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--white); padding: 28px 26px; display: grid; gap: 10px; align-content: start; }
.service svg { width: 30px; height: 30px; color: var(--gold-700); }
.service h3 { font-size: 1.35rem; }
.service p { color: var(--ink-muted); font-size: 1rem; }
.service.highlight { background: var(--navy-900); color: var(--white); }
.service.highlight svg { color: var(--gold-400); }
.service.highlight p { color: #C9D2DE; }
.service.highlight a { color: var(--gold-400); font-weight: 700; text-underline-offset: 3px; }

/* Process / lifecycle */
.process { background: var(--paper); }
.phases { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: phase; }
.phase { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 32px; position: relative; counter-increment: phase; }
.phase::before {
  content: counter(phase) ". szakasz";
  display: inline-block; font-weight: 700; color: var(--gold-700); font-size: .95rem; margin-bottom: 10px;
}
.phase::after {
  /* connector between phases */
  content: ""; position: absolute; top: 44px; right: -25px; width: 26px; height: 2px; background: var(--gold-500);
}
.phase:last-child::after { display: none; }
.phase h3 { margin-bottom: 18px; }
.phase ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.phase li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; line-height: 1.45; }
.phase li svg { width: 18px; height: 18px; color: var(--gold-700); margin-top: 3px; }

/* Stuck application callout */
.rescue .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); background: linear-gradient(180deg, var(--white), var(--paper)); max-width: calc(var(--wrap) - 2 * var(--gutter)); }
.rescue h2 { margin-bottom: 14px; }
.rescue p { color: var(--ink-muted); }
.rescue ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rescue li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-weight: 600; }
.rescue li svg { width: 20px; height: 20px; color: var(--gold-700); margin-top: 3px; }
.rescue .btn { margin-top: 26px; }

/* Contact */
.contact { background: var(--navy-900); color: var(--white); }
.contact .lead { color: #C9D2DE; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.people { display: grid; gap: 16px; }
.person { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 24px; background: rgba(255,255,255,.03); }
.person h3 { font-size: 1.45rem; margin-bottom: 4px; }
.person .role { color: #AEB9C8; font-size: .95rem; margin-bottom: 16px; }
.person a.tel { display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; color: var(--gold-400); text-decoration: none; min-height: 44px; }
.person a.tel:hover { text-decoration: underline; text-underline-offset: 4px; }
.person a.tel svg { width: 20px; height: 20px; }
.mail-line { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border: 1px solid var(--line-dark); border-radius: var(--radius); }
.mail-line svg { width: 22px; height: 22px; color: var(--gold-400); flex: none; }
.mail-line a { font-size: 1.2rem; font-weight: 700; color: var(--white); text-underline-offset: 4px; overflow-wrap: anywhere; }

.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 18px; }
.form h3 { font-size: 1.6rem; }
.form .hint { color: var(--ink-muted); font-size: .95rem; margin-top: -8px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; }
.field label .req { color: #B42318; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid #B9C3D0; border-radius: var(--radius); padding: 12px 14px; min-height: 48px; background: var(--white); width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold-500); outline-offset: 0; border-color: var(--navy-700); }
.field .error { color: #B42318; font-size: .92rem; font-weight: 600; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #B42318; }
.field.invalid .error { display: block; }
.form-note { font-size: .92rem; color: var(--ink-muted); }
.form-status { font-weight: 600; color: #1E6B3A; min-height: 1.4em; }

/* Footer */
.site-footer { background: var(--navy-900); border-top: 1px solid var(--line-dark); color: #AEB9C8; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.site-footer img { width: 120px; height: auto; }
.site-footer .footer-legal { justify-content: flex-start; gap: 6px 24px; padding-top: 18px; border-top: 1px solid var(--line-dark); font-size: .88rem; }
.site-footer .footer-legal strong { flex-basis: 100%; color: #DCE3EC; font-weight: 600; }
.site-footer a { color: #DCE3EC; }

/* Mobile call bar */
.call-bar { display: none; }

.service a { color: var(--gold-700); font-weight: 700; text-underline-offset: 3px; }
.nav a[aria-current="page"] { color: var(--gold-400); }

/* ---------- Aktuális pályázatok ---------- */
.page-hero { background: var(--navy-900); color: var(--white); }
.page-hero .wrap { padding-top: clamp(44px, 7vw, 80px); padding-bottom: clamp(40px, 6vw, 64px); display: grid; gap: 16px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-hero p { color: #C9D2DE; font-size: 1.15rem; max-width: 60ch; }
.page-hero .updated { color: var(--gold-400); font-weight: 600; font-size: 1rem; }

/* Official announcements feed */
.news { background: var(--paper); }
.news .wrap { padding-top: 40px; }
.news-panel { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold-500); border-radius: var(--radius); }
.news-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 26px 18px; border-bottom: 1px solid var(--line); }
.news-head h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 4px; }
.news-head p { color: var(--ink-muted); font-size: .98rem; }
.news-head a { color: var(--navy-700); font-weight: 600; }
.news-list { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow-y: auto; }
.news-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center; padding: 16px 26px; }
.news-item + .news-item { border-top: 1px solid var(--line); }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .88rem; color: var(--ink-muted); font-weight: 600; grid-column: 1; }
.news-kind { padding: 3px 10px; border-radius: 999px; }
.news-kind.new { background: #E6F4EA; color: #1E6B3A; }
.news-kind.closed { background: #FDECEA; color: #A12A1B; }
.news-kind.change { background: var(--paper); color: var(--ink-muted); border: 1px solid var(--line); }
.news-title { grid-column: 1; font-weight: 600; line-height: 1.4; }
.news-title a { color: var(--ink); text-decoration-color: rgba(15, 27, 42, .3); text-underline-offset: 3px; }
.news-title a:hover { text-decoration-color: currentColor; }
.news-action {
  grid-column: 2; grid-row: 1 / span 2; justify-self: end;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  font: 700 .95rem/1 var(--font-body); color: var(--navy-900); background: var(--white);
  border: 1px solid #B9C3D0; border-radius: var(--radius); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.news-action:hover { border-color: var(--navy-700); }
.news-empty { padding: 22px 26px; color: var(--ink-muted); }
.news-empty a { color: var(--navy-700); font-weight: 600; }

/* Pre-qualification quiz */
.quiz { background: var(--paper); }
.quiz .wrap { padding-top: 28px; }
.quiz-panel { background: var(--navy-900); color: var(--white); border-radius: var(--radius); display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; }
.quiz-intro { grid-column: 1 / -1; padding: 30px 32px 0; }
.quiz-intro h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 8px; }
.quiz-intro p { color: #C9D2DE; max-width: 70ch; }
.quiz-form { padding: 24px 32px 32px; display: grid; gap: 20px; }
.quiz-form fieldset { border: 0; margin: 0; padding: 0; }
.quiz-form legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid rgba(217, 188, 126, .4); border-radius: 999px; color: #E6EAF0; font-weight: 600;
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.opt:hover span { border-color: var(--gold-400); }
.opt input:checked + span { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.opt input:focus-visible + span { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.quiz-form .field label { color: var(--white); }
.quiz-form .optional { color: #AEB9C8; font-weight: 400; }
.quiz-form textarea { min-height: 84px; }
.quiz-result { background: var(--white); color: var(--ink); margin: 24px 32px 32px 0; border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; align-content: start; }
.quiz-result h3 { font-size: 1.5rem; }
.quiz-hint { color: var(--ink-muted); }
.quiz-matches { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 300px; overflow-y: auto; }
.quiz-matches button {
  width: 100%; text-align: left; display: grid; gap: 4px; justify-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; font: inherit; color: var(--ink); cursor: pointer;
}
.quiz-matches button:hover { border-color: var(--navy-700); }
.quiz-match-title { font-weight: 700; line-height: 1.35; }
.quiz-match-meta { color: var(--ink-muted); font-size: .92rem; }
.quiz-none { color: var(--ink-muted); }
.quiz-cta { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 12px; }
.quiz-cta p { color: var(--ink-muted); font-size: .98rem; }
.quiz-cta .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-note { font-size: .9rem; }

/* Copy-paste fallback when no mail app opens */
.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; }
.mail-fallback { background: #FBF1DD; border: 1px solid #E8D3A6; border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; color: var(--ink); }
.mail-fallback p { color: var(--ink); font-size: .98rem; }
.mail-fallback a { color: var(--navy-700); font-weight: 700; }
.mail-fallback textarea { font: inherit; font-size: .95rem; width: 100%; border: 1px solid #B9C3D0; border-radius: var(--radius); padding: 10px 12px; background: var(--white); color: var(--ink); resize: vertical; }
.mail-fallback .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-ghost-dark { background: var(--white); border-color: #B9C3D0; color: var(--navy-900); }
.btn-ghost-dark:hover { border-color: var(--navy-700); }
.copy-status { font-weight: 600; color: #1E6B3A; min-height: 1.2em; }

.hero-note { margin-top: 20px; font-size: 1rem; }
.hero-note a { color: var(--gold-400); font-weight: 600; text-underline-offset: 4px; }

.filters { display: grid; gap: 14px; margin-bottom: 28px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-group > span { font-weight: 700; margin-right: 6px; min-width: 96px; }
.chip {
  font: 600 .98rem/1 var(--font-body); color: var(--ink);
  background: var(--white); border: 1px solid #B9C3D0; border-radius: 999px;
  min-height: 44px; padding: 0 18px; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.chip:hover { border-color: var(--navy-700); }
.chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.result-count { color: var(--ink-muted); font-size: .98rem; margin-bottom: 16px; }

.grant-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.grant {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
}
.grant-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 22px 24px 0; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; padding: 6px 12px; border-radius: 999px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.open { background: #E6F4EA; color: #1E6B3A; }
.status.soon { background: #FBF1DD; color: #7A5A12; }
.status.closing { background: #FDECEA; color: #A12A1B; }
.code { font-size: .92rem; color: var(--ink-muted); font-weight: 600; }
.grant-body { padding: 14px 24px 20px; display: grid; gap: 10px; align-content: start; }
.grant-body h2 { font-size: 1.45rem; line-height: 1.2; }
.grant-body p { color: var(--ink-muted); font-size: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .9rem; font-weight: 600; }
.grant-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.grant-meta div { background: var(--paper); padding: 14px 24px; }
.grant-meta dt { font-size: .85rem; color: var(--ink-muted); font-weight: 600; }
.grant-meta dd { margin: 2px 0 0; font-weight: 700; font-size: 1rem; }
.grant-foot { padding: 16px 24px 22px; }
.grant-foot .btn { width: 100%; }
.empty { border: 1px dashed #B9C3D0; border-radius: var(--radius); padding: 32px; text-align: center; color: var(--ink-muted); }

.watch {
  margin-top: 40px; background: var(--navy-900); color: var(--white); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.watch h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 8px; }
.watch p { color: #C9D2DE; }
.disclaimer { margin-top: 24px; color: var(--ink-muted); font-size: .95rem; max-width: 80ch; }

/* Detail dialog */
.grant-dialog {
  width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: var(--radius); color: var(--ink);
  box-shadow: 0 24px 60px rgba(10, 26, 47, .35);
}
.grant-dialog::backdrop { background: rgba(10, 26, 47, .62); }
.grant-dialog[open] { animation: rise .22s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.dlg-head { background: var(--navy-900); color: var(--white); padding: 26px 28px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; position: sticky; top: 0; z-index: 1; }
.dlg-head .code { color: #AEB9C8; }
.dlg-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 6px; }
.dlg-close { background: none; border: 1px solid var(--line-dark); color: var(--white); width: 44px; height: 44px; border-radius: var(--radius); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.dlg-close svg { width: 22px; height: 22px; }
.dlg-body { padding: 24px 28px 8px; display: grid; gap: 24px; }
.dlg-body > p { color: var(--ink-muted); font-size: 1.05rem; }
.dlg-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.dlg-facts div { background: var(--paper); padding: 14px 16px; }
.dlg-facts dt { font-size: .85rem; color: var(--ink-muted); font-weight: 600; }
.dlg-facts dd { margin: 2px 0 0; font-weight: 700; }
.dlg-section h3 { font-size: 1.3rem; margin-bottom: 10px; }
.dlg-section ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dlg-section li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; line-height: 1.45; }
.dlg-section li svg { width: 18px; height: 18px; color: var(--gold-700); margin-top: 3px; }
.dlg-source { font-size: .95rem; color: var(--ink-muted); }
.dlg-source a { color: var(--navy-700); font-weight: 600; overflow-wrap: anywhere; }
.dlg-cta { margin: 16px 28px 28px; background: var(--navy-900); color: var(--white); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 14px; }
.dlg-cta h3 { font-size: 1.4rem; }
.dlg-cta p { color: #C9D2DE; font-size: 1rem; }
.dlg-cta .actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 960px) {
  .hero .wrap, .about .wrap, .contact-grid, .rescue .wrap { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .phases { grid-template-columns: 1fr; }
  .phase::after { top: auto; bottom: -25px; right: auto; left: 40px; width: 2px; height: 26px; }
  .why-list { grid-template-columns: 1fr; }
  .grant-list { grid-template-columns: 1fr; }
  .quiz-panel { grid-template-columns: 1fr; }
  .quiz-result { margin: 0 20px 24px; }
  .quiz-intro, .quiz-form { padding-left: 20px; padding-right: 20px; }
  .watch { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; background: var(--navy-900);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--line-dark); display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav .btn { margin: 16px 0 0; }
}
@media (max-width: 640px) {
  .dlg-facts { grid-template-columns: 1fr; }
  .news-head, .news-item, .news-empty { padding-left: 18px; padding-right: 18px; }
  .news-item { grid-template-columns: 1fr; }
  .news-action { grid-column: 1; grid-row: auto; justify-self: start; }
  .news-list { max-height: none; }
  .dlg-head, .dlg-body { padding-left: 20px; padding-right: 20px; }
  .dlg-cta { margin-left: 16px; margin-right: 16px; }
  .dlg-cta .btn { flex: 1 1 100%; }
  .filter-group > span { min-width: 100%; }
  .grant-top, .grant-body, .grant-foot { padding-left: 18px; padding-right: 18px; }
  .grant-meta div { padding: 12px 18px; }
  body { padding-bottom: 72px; }
  .services-grid { grid-template-columns: 1fr; }
  .row, .sides { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 92px 1fr; padding: 18px 20px; }
  .fact dt { font-size: 2.1rem; }
  .promise .wrap { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .call-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--navy-900); border-top: 1px solid var(--line-dark);
  }
  .call-bar .btn { min-height: 50px; padding: 0 12px; font-size: .98rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .rule { animation: none; width: 120px; }
  .btn, .chip { transition: none; }
  .grant-dialog[open] { animation: none; }
}
