/* =========================================================
   Világos Beszéd – stíluslap

   Akadálymentesség: a sárga (--hl) fehéren csak 1,7:1, ezért soha nem
   egyedüli jelzés – mindig mellette van tinta színű jel is (félkövér aktív
   menüpont, tinta aláhúzás a linkeken, tinta keret a fókuszban lévő mezőn).

   Az alapötlet: íróasztal, rajta nyomtatott A4-es lapok – a kettő ellentéte
   adja az arculatot.

   1. Asztal  – vonalas füzetlap-háttér, kézzel rajzolt ceruzafirkák a margón
                (áll, nem görög). Kézi rajz CSAK itt van.
   2. Papír   – fehér lapok, minden „nyomtatott” és éles: tinta színű betű és ikon,
                egyenes, teli vonalak, szögletes végek, egyszínű (lapos) kiemelés.
                Sarkok: --radius.
   Sárga (--hl) = hangsúly: vonal a címek alatt, aktív menüpont, gomb, felsorolásjel,
   táblázat fejléce. Világos sárga (--hl-wash) = háttérfelület ikon, monogram mögött.
   Ceruzaszín (--pencil) a papíron = szerkezet: elválasztó, idézőjel.
   ========================================================= */

:root {
  /* Színek */
  --ink: #232323;
  --ink-soft: #4a4a4a;
  --paper: #ffffff;
  --paper-tint: #faf6f0;             /* papír alatt-fölött: hover, fotóhely */
  --desk: #fdf6ed;
  --rule: rgba(230, 223, 218, 0.67); /* a háttér füzetvonalai */
  --pencil: #c8b9a6;                 /* a firkák ceruzája – csak díszítés */
  --pencil-strong: #857565;          /* erős ceruza: űrlapmezők, másodlagos gombok kerete (4,4:1) */
  --border: #ebe4dc;                 /* nyomtatott hajszálvonal */
  --hl: #febf00;                     /* szövegkiemelő, teli */
  --hl-hover: #e8ad00;
  --hl-wash: #ffe8a3;                /* szövegkiemelő papíron, szöveg mögött */
  --accent: var(--hl);
  --accent-hover: var(--hl-hover);
  --error: #b42318;
  --success: #1f6f43;

  /* Idézőjel (maszk, a színt a stíluslap adja) */
  --mark-quote: url("/assets/img/idezojel.svg");

  /* Árnyék: lap az asztalon, ill. az asztal fölött lebegő elem */
  --shadow-sheet: 0 1px 2px rgba(35, 35, 35, 0.03), 0 8px 24px rgba(35, 35, 35, 0.035);
  --shadow-float: 0 12px 32px rgba(35, 35, 35, 0.1);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --sheet-width: 48rem;
  --sheet-pad-x: clamp(1.25rem, 6.5vw, 3.25rem);
  --sheet-pad-y: clamp(1.5rem, 6.5vw, 3.25rem);
  /* A4: 210 × 297 mm */
  --sheet-ratio: 210 / 297;
  /* Szövegszélesség minden oldalon (~65–70 karakter/sor) */
  --measure: 36rem;
  --radius: 3px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--desk);
  /* vonalas "füzetlap" háttér */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 30px,
    var(--rule) 30px,
    var(--rule) 31px
  );
  background-attachment: fixed;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Kézzel rajzolt firkák a lapok melletti margón (csak ahol van elég hely), csak
   azokon az oldalakon, amelyek fejrészében `bodyClass: has-doodles` áll (most: egyik sem).
   A háttér (vonalak + firkák) áll, csak a lapok görögnek fölötte. */
@media (min-width: 64em) {
  body.has-doodles::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url("/assets/img/doodles.svg") center center / 2600px auto no-repeat;
  }
  .page, .site-footer { position: relative; z-index: 1; }
}

img, svg { display: block; max-width: 100%; height: auto; }

/* Link: vékony tinta aláhúzás (jól látható); föléhúzva vastag szövegkiemelő-csík */
a {
  color: inherit;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.15s ease;
}
a:hover {
  text-decoration-color: var(--hl);
  text-decoration-thickness: 0.3em;
  text-underline-offset: 0.08em;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
p + p { margin-top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Lapok ---------- */

.page {
  width: 100%;
  max-width: calc(var(--sheet-width) + 2 * clamp(0.5rem, 3vw, 2rem));
  margin: 0 auto;
  padding: clamp(0.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 4vw, 2.5rem);
}

/* Minden lap nagyjából A4-es arányú (210 × 297). Ha a tartalom hosszabb,
   a lap megnyúlik; a címlap valamivel rövidebb. */
.sheet {
  position: relative;
  width: 100%;
  aspect-ratio: var(--sheet-ratio);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sheet);
  padding: var(--sheet-pad-y) var(--sheet-pad-x) calc(var(--sheet-pad-y) * 0.6);
  display: flex;
  flex-direction: column;
}

.sheet__body { flex: 1 1 auto; }

/* Címlap: valamivel rövidebb az A4-nél. A szlogen a menü és a lábjegyzet
   között középen áll: fölötte és alatta ugyanakkora a hely. */
.sheet--hero { aspect-ratio: 210 / 240; }
.sheet--hero .site-header { margin-bottom: 0; }
.sheet--hero > .sheet__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2.25rem, 7vw, 3.5rem);
}
.sheet--hero .footnote { margin-top: 0; }

/* A lapokon kívüli gombsor (kezdőlap alja) */
.actions.page-actions {
  justify-content: center;
  margin-top: clamp(0.25rem, 1.5vw, 0.75rem);
  padding: 0 clamp(0rem, 1vw, 0.25rem);
}

.sheet__number {
  flex: 0 0 auto;
  margin-top: clamp(1.75rem, 5vw, 3rem);
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.center { text-align: center; }

.divider {
  width: 10rem;
  height: 1px;
  margin: 2rem auto;
  border: 0;
  background: var(--pencil);
}

/* Címek alatt egy éles, teli sárga vonal – minden oldalon ugyanaz */
.hero__title::after,
.section-title::after,
.prose h1::after {
  content: "";
  display: block;
  width: 5.5rem;
  height: 4px;
  margin: 1rem auto 0;
  background: var(--hl);
}
.hero__title::after { width: 7.5rem; margin-top: 1.5rem; }
.prose h1::after { margin-left: 0; }
.divider--left { margin-left: 0; }

/* ---------- Fejléc / navigáció ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 8vw, 5rem);
  position: relative;
}

.logo { flex: 0 0 auto; display: block; }
.logo img { width: 4.375rem; height: auto; }

.nav__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  font-size: 1.125rem;
}

.nav__list a {
  display: block;
  text-decoration: none;
  padding: 0.25rem 0;
}
/* Menüpont: lapos, egyenes szélű kiemelés a szöveg alsó fele mögött */
.nav__list a > span { position: relative; z-index: 0; }
.nav__list a > span::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.15em;
  right: -0.15em;
  bottom: 0.15em;
  height: 0.5em;
  background: var(--hl);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.nav__list a:hover > span::after { opacity: 0.45; }
/* Aktív oldal: félkövér + teli kiemelő (a szín nem egyedüli jelzés) */
.nav__list a[aria-current="page"] { font-weight: 600; }
.nav__list a[aria-current="page"] > span::after { opacity: 1; }

.nav__toggle {
  display: none;
  appearance: none;
  border: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav__toggle:hover { background: var(--accent-hover); }
.nav__toggle svg { width: 1.5rem; height: 1.5rem; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobil menü: 760px alatt */
@media (max-width: 52em) {
  .nav__toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0s linear 0.15s;
  }

  /* Csak halványodás, mozgás nélkül */
  .js .nav.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.15s ease, visibility 0s;
  }

  /* Egyszerű blokkos lista: a sorok eleve teljes szélességűek, nem ugranak */
  .nav__list {
    display: block;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-float);
    font-size: 1.125rem;
    text-align: center;
  }
  .nav__list li + li { border-top: 1px solid var(--border); }
  .nav__list a { display: block; padding: 0.85rem 1rem; border-bottom: 0; }

  /* JS nélkül a menü egyszerűen látszik a logó alatt */
  html:not(.js) .nav { position: static; opacity: 1; visibility: visible; }
  html:not(.js) .site-header { flex-wrap: wrap; }
  html:not(.js) .nav__toggle { display: none; }
}

/* ---------- Gombok ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.5rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn--ghost {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--pencil-strong);
}
.btn--ghost:hover { background: var(--paper-tint); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}
.actions--center { justify-content: center; }
.actions--split { justify-content: space-between; }

@media (max-width: 30em) {
  .actions .btn { width: 100%; }
}

/* ---------- Kezdőlap ---------- */

.hero__title {
  font-size: clamp(2.25rem, 7.5vw, 3.25rem);
  text-align: center;
  margin-bottom: clamp(1.75rem, 5vw, 2.5rem);
}

.hero__lead {
  text-align: center;
  font-size: clamp(1.0625rem, 2.6vw, 1.125rem);
  max-width: var(--measure);
  margin: 0 auto;
}
.hero__lead p + p { margin-top: 0.75rem; }

.section-title {
  font-size: clamp(1.75rem, 5.5vw, 2.25rem);
  text-align: center;
  margin-bottom: clamp(2rem, 6vw, 3.5rem);
}

.logos {
  --logo-scale: 1.1;
  list-style: none;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 2.25rem) clamp(0.75rem, 2.2vw, 1.5rem);
}
/* Egyforma cellák, a logó középen. A logók a tényleges tartalmukra vannak vágva,
   és optikailag egyforma méretűek: a magasságot (--h, rem) az oldalarányból
   számoljuk (K / √arány), így a széles logó alacsonyabb, a tömör magasabb. */
.logos li { display: grid; place-items: center; min-height: 2.75rem; }
.logos img {
  width: auto;
  height: calc(var(--h, 1.4) * 1rem * var(--logo-scale));
  max-width: 100%;
  object-fit: contain;
}
/* Mobilon 2 logó soronként, nagyobb méretben */
@media (max-width: 40em) {
  .logos { --logo-scale: 1.15; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
}

/* Számok: nyomtatott sáv hajszálvonalakkal, mint egy táblázat sora */
.stats {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: var(--measure);
  border-block: 1px solid var(--border);
  text-align: center;
}
.stats li { padding: 1.5rem 0.75rem 1.4rem; }
.stats li + li { border-left: 1px solid var(--border); }
.stats__num {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 2.75rem);
  line-height: 1;
  margin-bottom: 0.6rem;
  font-variant-numeric: lining-nums;
}
.stats__label { display: block; max-width: 11rem; margin-inline: auto; font-size: 0.9375rem; line-height: 1.35; color: var(--ink-soft); }
/* Mobilon egymás alatti sorok: balra a szám, jobbra a magyarázat */
@media (max-width: 34em) {
  .stats { grid-template-columns: 1fr; text-align: left; }
  .stats li {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0.25rem;
  }
  .stats li + li { border-left: 0; border-top: 1px solid var(--border); }
  .stats__num { margin-bottom: 0; font-size: 2rem; }
  .stats__label { max-width: none; margin-inline: 0; }
}

/* Összegzés: asztali nézetben letisztult, középre zárt cím és szöveg */
.result { text-align: center; max-width: var(--measure); margin: 0 auto; }
.result h3 { font-size: 1.375rem; margin-bottom: 0.6rem; }
/* Mobilon papírszínű doboz, balra zárva – a számsor alatt jobban összefogja */
@media (max-width: 34em) {
  .result {
    text-align: left;
    padding: 1.4rem 1.6rem 1.5rem;
    background: var(--paper-tint);
    border-radius: var(--radius);
  }
  .result h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
}

.services {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: var(--measure);
}
/* A sorok között egyenes hajszálvonal */
.services > li + li { border-top: 1px solid var(--border); }

/* Az egész sor egy link */
.service {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 4vw, 2rem);
  padding: clamp(1.5rem, 5.5vw, 2.75rem) clamp(0.25rem, 2.5vw, 1.25rem);
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 0.2s ease;
}
.service:hover { background: var(--paper-tint); }
.service:focus-visible { outline-offset: 2px; }

.service__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(3.25rem, 11vw, 4.5rem);
  height: clamp(3.25rem, 11vw, 4.5rem);
  flex: none;
}
/* Nyomtatott ikon, mögötte lapos, világos sárga négyzet */
.service__icon::before,
.quote__avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hl-wash);
  border-radius: var(--radius);
}
.service__icon img { width: 50%; height: 50%; }

.service__title {
  font-size: clamp(1.25rem, 4.8vw, 1.625rem);
  margin: 0 0 0.35rem;
}
.service__desc {
  display: block;
  font-size: clamp(1rem, 2.6vw, 1.125rem);
  line-height: 1.45;
  color: var(--ink-soft);
}

.service__arrow {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--ink-soft);
  transition: color 0.2s ease, transform 0.2s ease;
}
.service__arrow svg { width: 75%; height: 75%; }
.service:hover .service__arrow { color: var(--ink); transform: translateX(4px); }

/* Mobilon több hely a szövegnek: kisebb ikon, keret nélküli nyíl */
@media (max-width: 30em) {
  .service { gap: 0.9rem; padding: 1.5rem 0.25rem; align-items: start; }
  .service__icon { width: 2.75rem; height: 2.75rem; margin-top: 0.15rem; }
  .service__arrow { align-self: center; }
  .service__desc { font-size: 1rem; }
}

/* Vélemények: nagy, sárga idézőjel, balra zárt szöveg, monogramos aláírás */
.quote {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: var(--measure);
}
/* Teli idézőjel, külön sorban a szöveg fölött */
.quote::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 1.15rem;
  margin: 0 0 0.75rem;
  background: var(--pencil);
  -webkit-mask: var(--mark-quote) left center / contain no-repeat;
  mask: var(--mark-quote) left center / contain no-repeat;
}
.quote blockquote { margin: 0; }
.quote p { font-size: 1.0625rem; line-height: 1.7; }
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
}
.quote__avatar {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}
.quote__who { line-height: 1.35; }
.quote cite { display: block; font-style: normal; font-weight: 600; }
.quote .role { display: block; font-size: 0.875rem; color: var(--ink-soft); }

/* ---------- Aloldalak ---------- */

.prose { max-width: var(--measure); margin-inline: auto; }
.prose h1 { font-size: clamp(2rem, 6vw, 2.5rem); margin-bottom: 1.5rem; }
.prose h2 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; line-height: 1.5; margin: 2rem 0 0.5rem; }
.prose p { line-height: 1.75; }
.prose p + p { margin-top: 1.25rem; }
.prose .lead-in { margin-top: 2rem; }

.prose ul {
  list-style: none;
  margin: 0.5rem 0 1.75rem;
  padding: 0;
}
.prose li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.6;
}
.prose li + li { margin-top: 0.75rem; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--hl);
}

/* Csapat: fotós rács. Amíg nincs fotó, a monogram látszik. */
.team-grid {
  list-style: none;
  margin: 0.75rem 0 0 !important;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}
.prose .team-grid li { padding: 0; margin: 0; }
.prose .team-grid li::before { content: none; }
.member { display: flex; flex-direction: column; }
.member__photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  margin-bottom: 0.65rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-tint);
  box-shadow: inset 0 0 0 1px var(--border);
}
.member__photo::before {
  content: attr(data-initials);
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--pencil);
}
.member__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member__name { font-weight: 600; line-height: 1.3; }
.member__role { font-size: 0.875rem; line-height: 1.35; color: var(--ink-soft); }
@media (max-width: 30em) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
}

.policy h2 { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; margin: 0 0 0.5rem; }
.policy section + section { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }

/* ---------- Kapcsolat ---------- */

.contact-direct {
  display: grid;
  gap: 0.35rem;
  margin: 1.75rem 0 2.25rem;
}
.contact-direct h2 { margin-top: 0; }
.contact-direct a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
  justify-self: start;
}

.form {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.9375rem; font-weight: 600; }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem; /* iOS: ne zoomoljon */
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--pencil-strong);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), 0 0 0 4px var(--hl);
}
.field.has-error input,
.field.has-error textarea { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field__error { color: var(--error); font-size: 0.875rem; min-height: 0; }
.field__error:empty { display: none; }

.check {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.check .field__error { margin-top: 0; }
.check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.1rem 0 0;
  accent-color: var(--ink);
}

/* Közvetlenül a bevezető mondat alatt */
.prose .form__note { margin-top: 0.25rem; font-size: 0.9375rem; color: var(--ink-soft); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.form-status:empty { display: none; }
.form-status.is-success { background: #eaf6ee; color: var(--success); }
.form-status.is-error { background: #fdecea; color: var(--error); }

/* ---------- Lábléc ---------- */

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 3rem;
  font-size: 1rem;
  line-height: 1.4;
}
.site-footer p + p { margin-top: 1rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Finom megjelenés görgetéskor ---------- */

/* ---------- Nyomtatás / PDF: minden lap egy valódi A4-es oldal ---------- */

@page { size: A4; margin: 0; }

@media print {
  html, body { background: #fff !important; }
  body { font-size: 11pt; }
  .skip-link, .nav, .nav__toggle, .site-footer, .cookie-banner, .actions, .hp { display: none !important; }
  .page, .stack { display: block; max-width: none; padding: 0; margin: 0; }
  .sheet {
    aspect-ratio: auto;
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 20mm 20mm 14mm;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    break-after: page;
  }
  .sheet:last-child { break-after: auto; }
  .sheet__body { overflow: visible !important; }
  .sheet__number { display: none; }
  h1, h2, h3 { break-after: avoid; }
  li, figure, .service, tr { break-inside: avoid; }
  a { text-decoration: none; }
}

.stack { display: flex; flex-direction: column; gap: clamp(1rem, 4vw, 2.5rem); }
.prose a[href^="mailto:"] { overflow-wrap: anywhere; }

/* ---------- Sütisáv ---------- */

.linklike {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.linklike:hover { text-decoration: underline; }

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.cookie-banner {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: clamp(0.75rem, 3vw, 1.5rem);
  transform: translateX(-50%);
  width: min(40rem, calc(100% - 1.5rem));
  padding: 1.25rem clamp(1.25rem, 4vw, 1.75rem);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  font-size: 0.9375rem;
  line-height: 1.5;
  animation: cookie-in 0.35s ease both;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.35rem;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.cookie-banner__actions .btn { font-size: 1rem; min-height: 2.5rem; padding: 0.45rem 1.25rem; }
@media (max-width: 30em) {
  .cookie-banner__actions .btn { flex: 1 1 0; }
}
@keyframes cookie-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Kisebb képernyőn: valamivel kisebb betű, de elég levegő a blokkok között */
@media (max-width: 40em) {
  body { font-size: 1rem; }
  .site-header { margin-bottom: 2.25rem; }
  .nav__toggle svg { width: 1.375rem; height: 1.375rem; }
  .prose p { line-height: 1.65; }
  .prose p + p { margin-top: 1.1rem; }
  .prose h1 { margin-bottom: 1.25rem; }
  .prose h2 { margin-top: 1.75rem; }
  .prose ul { margin: 0.6rem 0 1.5rem; }
  .prose li + li { margin-top: 0.6rem; }
  .actions { margin-top: 2rem; }
  .hero__lead p + p { margin-top: 0.5rem; }
  .services { gap: 1.75rem; }
  .section-title { margin-bottom: 1.5rem; }
  .divider { margin: 1.5rem auto; }
  .form { gap: 0.9rem; }
  .field textarea { min-height: 7rem; }
}
.divider--wide { margin-top: clamp(1.75rem, 6vw, 3.5rem); margin-bottom: clamp(1.75rem, 6vw, 3.5rem); }

/* A címlap mobilon is férjen el egy lapon */
@media (max-width: 40em) {
  .hero__title { font-size: clamp(1.875rem, 9vw, 2.5rem); }
  .hero__lead { font-size: 1rem; line-height: 1.45; }
  .sheet--hero .actions { margin-top: 1.25rem; }
}

/* Kezdőlap szekciói: a cím minden lapon ugyanott, alatta a tartalom egyenletesen kitölti a lapot */
.sheet--section > .sheet__body {
  display: flex;
  flex-direction: column;
}
.sheet--section .section-title { margin-bottom: 0; }
.section-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: clamp(1.75rem, 5vw, 2.75rem);
  padding-top: clamp(1.75rem, 5vw, 3rem);
}
.section-content > .divider--wide { margin: 0 auto; }
/* Rövidebb lap, ahol kevés a tartalom – arányában még mindig papírlap */
.sheet--short { aspect-ratio: 210 / 250; }

/* ---------- Definíció külön lapon (kezdőlap) ---------- */

/* Egyetlen, összefogott, balra zárt blokk a lap közepén, a közös szövegszélességen */
.definition { max-width: var(--measure); width: 100%; margin: 0 auto; }
.definition__lead { font-size: 1.125rem; line-height: 1.6; }
.definition__list { list-style: none; margin: 1rem 0 0; padding: 0; }
.definition__list li { position: relative; padding-left: 1.75rem; font-size: 1.125rem; line-height: 1.6; }
.definition__list li + li { margin-top: 0.5rem; }
.definition__list li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--hl);
}
.definition__source { margin-top: 1.5rem; font-size: 0.875rem; color: var(--ink-soft); }
/* Példa: hivatalos és közérthető változat egymás mellett, két egyforma dobozban */
.definition__example { margin-top: 2.25rem; }
.definition__example-title { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; margin-bottom: 0.9rem; }
.definition__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.definition .definition__box {
  margin: 0;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--paper-tint);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.definition__tag {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 34em) {
  .definition__pair { grid-template-columns: 1fr; }
}

/* ---------- Lábjegyzet (címlap: a közérthető fogalmazás definíciója) ---------- */

.fn-ref {
  font-family: var(--sans);
  font-size: 0.32em;
  font-weight: 600;
  line-height: 0;
  vertical-align: super;
  margin-left: 0.08em;
}
.fn-ref a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  min-height: 1.5rem;  /* legalább 24×24 px-es célterület */
  line-height: 1;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 2px;
}
.fn-ref a:hover { color: var(--ink); background: var(--hl-wash); }

.footnote {
  position: relative;
  margin-top: clamp(1.75rem, 5vw, 2.5rem);
  padding-top: 0.9rem;
  max-width: var(--measure);
  margin-inline: auto;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-soft);
  scroll-margin-top: 2rem;
}
.footnote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4rem;
  height: 1px;
  background: var(--pencil);
}
.footnote p + p { margin-top: 0.35rem; }
.footnote strong { color: var(--ink); font-weight: 600; }
.footnote sup { font-size: 0.75em; line-height: 0; }
.footnote ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.footnote li + li { margin-top: 0.1rem; }
.footnote a { color: inherit; }
.footnote a:hover { color: var(--ink); }
.footnote:target { animation: fn-flash 1.6s ease; }
@keyframes fn-flash { 0%, 40% { background: var(--hl-wash); } 100% { background: transparent; } }


/* Címlap: több levegő a lábjegyzet alatt */
.sheet--hero { padding-bottom: clamp(2rem, 6vw, 3.5rem); }

.check__more { display: inline-block; margin-top: 0.3rem; font-size: 0.875rem; color: var(--ink-soft); }
