/* ==========================================================================
   BME Management Szakkollégium: új honlap
   Design: glassmorphism + folyékony animációk
   Brand: #003366 (sötétkék) + #19B4D2 (cián)
   ========================================================================== */

:root {
  --navy: #003366;
  --heading: #003366;
  --surface: #ffffff;
  --surface-2: #f2f9fc;
  color-scheme: only light;
  --navy-900: #001d3a;
  --navy-950: #000f1f;
  --cyan: #19b4d2;
  --cyan-300: #7adbeb;
  --cyan-100: #d6f3f9;
  --ice: #eef8fb;
  --paper: #ffffff;
  --ink: #0a1b2d;
  --muted: #53677c;
  --line: rgba(0, 51, 102, 0.12);
  --grad: linear-gradient(90deg, #003366 0%, #19b4d2 100%);
  --grad-diag: linear-gradient(135deg, #003366 0%, #19b4d2 100%);
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 24px 60px -24px rgba(0, 51, 102, 0.35);
  --shadow-sm: 0 10px 30px -14px rgba(0, 51, 102, 0.3);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --maxw: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.dialog-open { overflow: hidden; }

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.6em; font-weight: 800; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }

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

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--navy); color: #fff; padding: 0.7rem 1.1rem; border-radius: 10px; text-decoration: none;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }

/* ---------- Szekciók ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section--ice { background: var(--ice); }
.section--dark { background: var(--navy-950); color: #fff; overflow: hidden; }
.section--dark .lead { color: rgba(255, 255, 255, 0.78); }
.section--grad { background: var(--grad-diag); color: #fff; overflow: hidden; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--grad); }
.section--dark .eyebrow, .section--grad .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--cyan-300); }
.section--grad .eyebrow::before { background: #fff; }

.h1 { font-size: clamp(2.4rem, 6.4vw, 4.9rem); font-weight: 900; letter-spacing: -0.035em; }
.h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
.h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 62ch; }
.grad-text { background: linear-gradient(90deg, #19b4d2, #7adbeb 60%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text--dark { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Gombok ---------- */
.btn {
  --btn-bg: var(--grad); --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem; border-radius: 999px; border: 0; text-decoration: none; font-weight: 700; font-size: 1rem;
  color: var(--btn-fg); background: var(--btn-bg); overflow: hidden; isolation: isolate;
  box-shadow: 0 12px 30px -10px rgba(25, 180, 210, 0.7);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -12px rgba(25, 180, 210, 0.85); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 1.1em; height: 1.1em; transition: transform 0.35s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn--glass { --btn-bg: rgba(255, 255, 255, 0.12); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--heading); box-shadow: inset 0 0 0 2px var(--navy); }
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: #fff; box-shadow: inset 0 0 0 2px var(--navy); }
.btn--white { --btn-bg: #fff; --btn-fg: #003366; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.4); }
.btn--sm { padding: 0.65rem 1.2rem; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--heading); text-decoration: none; }
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.section--dark .link-arrow, .section--grad .link-arrow { color: #fff; }

/* ---------- Fejléc ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: transform 0.45s var(--ease), background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.site-header.is-scrolled {
  background: rgba(0, 20, 40, 0.72); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 40px -20px rgba(0, 0, 0, 0.6);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; color: #fff; font-weight: 800; line-height: 1.1; }
.brand img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.6); transition: transform 0.5s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.brand small { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }
.brand span { font-size: 1.05rem; letter-spacing: -0.01em; }

.nav-list { display: none; align-items: center; gap: 0.25rem; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.6rem 0.95rem; border-radius: 999px;
  color: rgba(255, 255, 255, 0.86); text-decoration: none; font-weight: 600; font-size: 0.97rem; background: none; border: 0;
  transition: color 0.25s, background 0.25s;
}
.nav-link:hover, .nav-item:focus-within > .nav-link { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav-link[aria-current="page"], .nav-link.is-active { color: #fff; background: rgba(25, 180, 210, 0.28); }
.nav-link .chev { width: 0.8em; height: 0.8em; transition: transform 0.3s var(--ease); }
.has-children:hover .chev, .has-children.open .chev { transform: rotate(180deg); }
.nav-sub {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 210px; padding: 0.5rem; border-radius: 18px;
  background: rgba(0, 20, 40, 0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
}
.has-children:hover .nav-sub, .has-children.open .nav-sub, .has-children:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub a { display: block; padding: 0.65rem 0.9rem; border-radius: 12px; color: rgba(255, 255, 255, 0.88); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: background 0.2s; }
.nav-sub a:hover, .nav-sub a[aria-current="page"] { background: rgba(25, 180, 210, 0.25); color: #fff; }
.header-cta { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 48px; height: 48px; padding: 0 12px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); z-index: 120;
}
.nav-toggle span { display: block; height: 2.5px; border-radius: 3px; background: #fff; transition: transform 0.4s var(--ease), opacity 0.25s, width 0.3s var(--ease); }
.nav-toggle span:nth-child(2) { width: 70%; margin-left: auto; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 110; padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem; overflow-y: auto;
  background: radial-gradient(120% 80% at 80% 0%, #0a4f8f 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  clip-path: circle(0px at calc(100% - 44px) 38px); visibility: hidden;
  transition: clip-path 0.75s var(--ease), visibility 0s 0.75s;
}
.nav-open .mobile-nav { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; transition: clip-path 0.85s var(--ease), visibility 0s; }
.mobile-nav ul { display: grid; gap: 0.2rem; }
.mobile-nav li { opacity: 0; transform: translateY(24px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.nav-open .mobile-nav li { opacity: 1; transform: none; transition-delay: calc(0.18s + var(--i, 0) * 0.055s); }
.mobile-nav a, .mobile-nav .m-label {
  display: block; padding: 0.75rem 0.2rem; font-size: clamp(1.5rem, 6.5vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; color: #fff; text-decoration: none;
}
.mobile-nav a[aria-current="page"] { color: var(--cyan-300); }
.mobile-nav .m-label { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan-300); padding-top: 1.4rem; padding-bottom: 0; }
.mobile-nav .sub a { font-size: clamp(1.15rem, 4.5vw, 1.5rem); font-weight: 700; padding-block: 0.45rem; color: rgba(255, 255, 255, 0.85); }
.mobile-nav .btn { margin-top: 1.6rem; }

@media (min-width: 1020px) {
  .nav-list { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle, .mobile-nav { display: none; }
}

/* ---------- Haladásjelző, vissza a tetejére ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 150; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 29, 58, 0.75); backdrop-filter: blur(12px); color: #fff; display: grid; place-items: center;
  opacity: 0; transform: translateY(20px) scale(0.8); pointer-events: none; transition: opacity 0.3s, transform 0.4s var(--ease), background 0.25s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--cyan); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(100svh, 640px); display: flex; align-items: center; color: #fff; overflow: hidden;
  background: var(--navy-950); padding: calc(var(--header-h) + 3rem) 0 5.5rem; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; transform: scale(1.08); animation: kenburns 28s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 15, 31, 0.55) 0%, rgba(0, 29, 58, 0.78) 55%, var(--navy-950) 100%), linear-gradient(90deg, rgba(0, 51, 102, 0.55), transparent 70%); }
@keyframes kenburns { from { transform: scale(1.08) translate3d(0, 0, 0); } to { transform: scale(1.2) translate3d(-2%, -2%, 0); } }

.aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); mix-blend-mode: screen; opacity: 0.55; will-change: transform; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: radial-gradient(circle, #19b4d2 0%, transparent 68%); animation: drift1 19s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; right: -10vw; top: 10%; background: radial-gradient(circle, #0a5fb0 0%, transparent 68%); animation: drift2 23s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; left: 30%; bottom: -16vw; background: radial-gradient(circle, #19b4d2 0%, transparent 70%); opacity: 0.35; animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(12vw, 10vw, 0) scale(1.2); } }
@keyframes drift2 { to { transform: translate3d(-12vw, 8vw, 0) scale(0.85); } }
@keyframes drift3 { to { transform: translate3d(-10vw, -10vw, 0) scale(1.25); } }

.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: 0.35; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); }
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--gx, 70%) var(--gy, 30%), rgba(25, 180, 210, 0.22), transparent 70%); transition: background 0.2s; }

.hero-inner { display: grid; gap: 3rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.45rem 1rem 0.45rem 0.5rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(12px); margin-bottom: 1.5rem;
}
.hero-badge b { background: var(--grad); border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.78rem; letter-spacing: 0.05em; }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 .line { display: block; }
.rotator { display: inline-block; position: relative; transition: opacity 0.35s, transform 0.5s var(--ease), filter 0.35s; }
.rotator.out { opacity: 0; transform: translateY(0.35em); filter: blur(6px); }
.hero .lead { color: rgba(255, 255, 255, 0.82); margin-bottom: 2rem; }

.hero-visual { position: relative; display: none; height: 520px; }
.float-card {
  position: absolute; overflow: hidden; border-radius: 26px; border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(14px); box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.7); padding: 8px;
  transform: translate3d(calc(var(--mx, 0) * var(--k, 20px)), calc(var(--my, 0) * var(--k, 20px)), 0) rotate(var(--r, 0deg));
  transition: transform 0.25s ease-out;
}
.float-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.float-card.fc1 { --k: 26px; --r: -3deg; width: 66%; height: 58%; top: 0; right: 4%; animation: bob 7s ease-in-out infinite; }
.float-card.fc2 { --k: -18px; --r: 4deg; width: 48%; height: 44%; bottom: 4%; left: 0; animation: bob 8s ease-in-out -2s infinite; }
.float-card.fc3 { --k: 34px; --r: 2deg; width: 40%; height: 36%; bottom: 0; right: 0; animation: bob 9s ease-in-out -4s infinite; }
@keyframes bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -14px; } }
.chip-float {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1.1rem; border-radius: 999px; font-weight: 800; font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.92); color: var(--heading); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.6);
  animation: bob 6s ease-in-out infinite;
}
.chip-float i { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(25, 180, 210, 0.25); }
.chip-float.c1 { left: 6%; top: 18%; }
.chip-float.c2 { right: 2%; top: 52%; animation-delay: -3s; }

@media (min-width: 980px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
  .hero-visual { display: block; }
}

.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); width: 28px; height: 46px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, 0.45); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Page hero (belső oldalak) ---------- */
.page-hero { position: relative; color: #fff; background: var(--navy-950); padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(3.5rem, 7vw, 5.5rem); overflow: hidden; isolation: isolate; }
.page-hero .hero-bg img { opacity: 0.28; }
.page-hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); font-weight: 900; letter-spacing: -0.035em; margin-bottom: 1rem; }
.page-hero .lead { color: rgba(255, 255, 255, 0.82); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: var(--paper); clip-path: ellipse(60% 100% at 50% 100%); z-index: 1; }
.page-hero--ice::after { background: var(--ice); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.86rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); margin-bottom: 1.2rem; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: 0.5; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--navy); color: #fff; padding-block: 1.1rem; position: relative; }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 3rem; font-size: clamp(1.1rem, 2.4vw, 1.6rem); font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.marquee span::after { content: ""; width: 14px; height: 14px; background: var(--cyan); transform: rotate(45deg); border-radius: 3px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Kártyák, glass ---------- */
.glass { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-radius: var(--radius); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(1.4rem, 3vw, 2rem); }
.tilt { transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.25s ease-out, box-shadow 0.4s; will-change: transform; }
.tilt.is-resting { transition: transform 0.7s var(--ease), box-shadow 0.4s; }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }

.photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--ice); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.06); }
.photo--tall { aspect-ratio: 4 / 5; } .photo--wide { aspect-ratio: 16 / 10; } .photo--sq { aspect-ratio: 1; }

.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, minmax(0, 1fr)); gap: 12px; aspect-ratio: 1 / 1.02; }
.mosaic .photo { border-radius: 22px; }
.mosaic .m1 { grid-column: 1 / 5; grid-row: 1 / 4; }
.mosaic .m2 { grid-column: 5 / 7; grid-row: 1 / 3; }
.mosaic .m3 { grid-column: 5 / 7; grid-row: 3 / 7; }
.mosaic .m4 { grid-column: 1 / 3; grid-row: 4 / 7; }
.mosaic .m5 { grid-column: 3 / 5; grid-row: 4 / 7; }

/* ---------- Statisztikák ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { position: relative; padding: 1.6rem 1.3rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.stat b { display: block; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 0.5rem; font-weight: 700; color: var(--ink); font-size: 0.98rem; line-height: 1.3; }
.stat small { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.section--dark .stat { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); box-shadow: none; }
.section--dark .stat span { color: #fff; } .section--dark .stat small { color: rgba(255, 255, 255, 0.7); }

/* ---------- Pillérek ---------- */
.pillars { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { position: relative; min-height: 440px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; display: flex; align-items: flex-end; box-shadow: var(--shadow); isolation: isolate; }
.pillar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.pillar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 29, 58, 0.05) 20%, rgba(0, 29, 58, 0.92) 100%); transition: background 0.5s; }
.pillar:hover > img { transform: scale(1.1); }
.pillar:hover::before { background: linear-gradient(180deg, rgba(0, 51, 102, 0.55) 0%, rgba(0, 29, 58, 0.96) 100%); }
.pillar-body { padding: 1.6rem; width: 100%; }
.pillar-num { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.18em; color: var(--cyan-300); }
.pillar h3 { font-size: 1.8rem; margin: 0.3rem 0 0.5rem; }
.pillar p { margin: 0; color: rgba(255, 255, 255, 0.86); font-size: 0.98rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.7s var(--ease), opacity 0.5s, margin 0.5s; }
.pillar:hover p, .pillar:focus-within p, .pillar.open p { max-height: 320px; opacity: 1; margin-top: 0.4rem; }
.pillar .more { margin-top: 0.8rem; font-weight: 700; font-size: 0.9rem; color: var(--cyan-300); display: inline-flex; gap: 0.4rem; align-items: center; background: none; border: 0; padding: 0; }
@media (hover: none) { .pillar p { max-height: 320px; opacity: 1; margin-top: 0.4rem; } .pillar .more { display: none; } }

/* ---------- Területek (explorer) ---------- */
.areas { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .areas { grid-template-columns: 320px 1fr; align-items: start; } }
.area-tabs { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.4rem; margin: -0.4rem; scroll-snap-type: x proximity; scrollbar-width: none; }
.area-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .area-tabs { flex-direction: column; overflow: visible; } }
.area-tab {
  flex: 0 0 auto; display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 1.1rem 0.8rem 0.8rem; border-radius: 18px; text-align: left;
  background: #fff; border: 1px solid var(--line); scroll-snap-align: start; transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.35s, color 0.35s, border-color 0.35s;
}
.area-tab .code { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; letter-spacing: 0.04em; background: var(--ice); color: var(--heading); transition: background 0.35s, color 0.35s; flex: none; }
.area-tab .name { font-weight: 800; line-height: 1.15; }
.area-tab:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.area-tab[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow); }
.area-tab[aria-selected="true"] .code { background: var(--grad); color: #fff; }
@media (min-width: 900px) { .area-tab[aria-selected="true"] { transform: translateX(10px); } }
.area-panel { display: none; overflow: hidden; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.area-panel.active { display: grid; animation: panelIn 0.7s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (min-width: 700px) { .area-panel.active { grid-template-columns: 0.9fr 1.1fr; } }
.area-panel .photo { border-radius: 0; box-shadow: none; min-height: 260px; height: 100%; }
.area-body { padding: clamp(1.4rem, 3vw, 2.4rem); }
.area-body .code-big { display: inline-block; font-size: 0.82rem; font-weight: 900; letter-spacing: 0.16em; color: #fff; background: var(--grad); padding: 0.3rem 0.8rem; border-radius: 999px; margin-bottom: 0.9rem; }
.area-learn { margin-top: 1.1rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--ice); border-left: 4px solid var(--cyan); font-size: 0.97rem; }
.area-learn b { display: block; color: var(--heading); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.2rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.tag { padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--cyan-100); color: var(--heading); font-weight: 700; font-size: 0.82rem; }

.area-mini { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.area-mini a { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem; border-radius: 18px; text-decoration: none; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); transition: transform 0.4s var(--ease), background 0.3s; }
.area-mini a:hover { transform: translateY(-6px); background: rgba(25, 180, 210, 0.22); }
.area-mini b { font-size: 1.9rem; font-weight: 900; color: var(--cyan-300); letter-spacing: -0.03em; line-height: 1; }
.area-mini span { font-weight: 700; font-size: 0.98rem; }

/* ---------- Idővonal ---------- */
.timeline { position: relative; display: grid; gap: 1.2rem; counter-reset: step; }
.timeline::before { content: ""; position: absolute; left: 26px; top: 10px; bottom: 10px; width: 3px; background: var(--line); border-radius: 3px; }
.timeline::after { content: ""; position: absolute; left: 26px; top: 10px; width: 3px; height: calc((100% - 20px) * var(--p, 0)); background: var(--grad); border-radius: 3px; transition: height 0.2s linear; }
.tl-item { position: relative; padding-left: 4.6rem; }
.tl-dot { position: absolute; left: 0; top: 0; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--line); font-weight: 900; color: var(--heading); font-size: 1.05rem; transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.5s var(--ease); z-index: 1; }
.tl-item.in .tl-dot { background: var(--grad-diag); color: #fff; border-color: #fff; box-shadow: 0 0 0 4px rgba(25, 180, 210, 0.28), var(--shadow-sm); transform: scale(1.04); }
.tl-card { padding: 1.3rem 1.5rem; }
.tl-card h3 { margin-bottom: 0.3rem; font-size: 1.3rem; }
.tl-card p { margin: 0; color: var(--muted); }
.tl-card .when { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.3rem; }
@media (min-width: 900px) {
  .timeline--h { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .timeline--h::before, .timeline--h::after { left: 27px; right: 0; top: 26px; bottom: auto; width: auto; height: 3px; }
  .timeline--h::after { width: calc(100% * var(--p, 0)); height: 3px; }
  .timeline--h .tl-item { padding: 4.2rem 0 0; }
}

/* ---------- Naptár ---------- */
.cal-tools { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 1.8rem; }
.chip { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.6rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: 0.92rem; background: #fff; border: 1px solid var(--line); transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s; }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--cyan)); }
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip[aria-pressed="true"] i { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); }
.cal-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.cal-toggle input { accent-color: var(--cyan); width: 18px; height: 18px; }

.cal-layout { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .cal-layout { grid-template-columns: 1fr 340px; align-items: start; } .cal-side { position: sticky; top: calc(var(--header-h) + 20px); } }
.month { margin-bottom: 2.4rem; }
.month h3 { display: flex; align-items: center; gap: 0.8rem; font-size: 1.5rem; margin-bottom: 1rem; text-transform: capitalize; }
.month h3::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.ev-list { display: grid; gap: 0.8rem; }
.ev {
  --c: var(--cyan); display: grid; grid-template-columns: 74px 1fr auto; gap: 1rem; align-items: center; width: 100%; text-align: left; padding: 0.9rem 1.2rem 0.9rem 0.9rem;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
}
.ev::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.ev:hover { transform: translateY(-4px) translateX(2px); box-shadow: var(--shadow); border-color: transparent; }
.ev-date { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 18px; background: var(--ice); line-height: 1; text-align: center; transition: background 0.3s, color 0.3s; }
.ev:hover .ev-date { background: var(--navy); color: #fff; }
.ev-date b { font-size: 1.9rem; font-weight: 900; letter-spacing: -0.04em; display: block; }
.ev-date small { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; margin-top: 2px; }
.ev h4 { margin: 0 0 0.35rem; font-size: 1.12rem; }
.ev-cats { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.02em; background: color-mix(in srgb, var(--c, var(--cyan)) 16%, #fff); color: color-mix(in srgb, var(--c, var(--cyan)) 55%, #001d3a); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--cyan)); }
.ev-go { color: var(--muted); transition: transform 0.3s var(--ease), color 0.3s; }
.ev:hover .ev-go { transform: translateX(4px); color: var(--heading); }
.ev-go svg { width: 22px; height: 22px; }
.ev.is-past { opacity: 0.55; filter: grayscale(0.6); }
.ev.is-past:hover { opacity: 0.9; filter: none; }
.ev.is-hl { background: linear-gradient(135deg, #fff, #fff4dd); }
.ev.is-flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: var(--shadow-sm); } 30% { box-shadow: 0 0 0 6px rgba(25, 180, 210, 0.45), var(--shadow); } }
.ev-empty { padding: 2rem; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: 20px; }
.hidden { display: none !important; }

.spot { position: relative; overflow: hidden; border-radius: var(--radius-lg); color: #fff; padding: clamp(1.6rem, 3.5vw, 2.6rem); background: var(--grad-diag); box-shadow: var(--shadow); isolation: isolate; }
.spot::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 65%); z-index: -1; animation: drift2 14s ease-in-out infinite alternate; }
.spot .label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }
.spot h3 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0.4rem 0 0.2rem; }
.spot .when { opacity: 0.9; font-weight: 600; margin-bottom: 1.4rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; max-width: 420px; }
.countdown div { padding: 0.8rem 0.3rem; border-radius: 16px; text-align: center; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(10px); }
.countdown b { display: block; font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.spot .btn-row { margin-top: 1.4rem; }

.mini-cal { padding: 1.3rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 1rem; }
.mini-cal h4 { text-transform: capitalize; font-size: 1.05rem; margin-bottom: 0.8rem; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: 0.82rem; }
.mini-grid .dow { font-weight: 800; color: var(--muted); font-size: 0.7rem; padding-bottom: 4px; }
.mini-grid .d { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; position: relative; font-weight: 600; background: none; border: 0; padding: 0; color: var(--ink); }
.mini-grid .d.off { opacity: 0.25; }
.mini-grid button.d { background: var(--cyan-100); color: var(--heading); font-weight: 900; transition: transform 0.25s var(--ease), background 0.25s, color 0.25s; }
.mini-grid button.d:hover { background: var(--navy); color: #fff; transform: scale(1.12); }
.mini-grid .d.today { box-shadow: inset 0 0 0 2px var(--cyan); }

/* dialog */
dialog { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; color: var(--ink); }
dialog::backdrop { background: rgba(0, 15, 31, 0.72); backdrop-filter: blur(8px); }
.dlg { width: min(560px, calc(100vw - 2rem)); margin: auto; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7); animation: dlgIn 0.5s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(30px) scale(0.96); } to { opacity: 1; transform: none; } }
.dlg-head { padding: 1.6rem 1.8rem 1.2rem; color: #fff; background: var(--grad-diag); position: relative; }
.dlg-head h3 { margin: 0.5rem 0 0.2rem; font-size: 1.7rem; }
.dlg-head .when { opacity: 0.9; font-weight: 600; }
.dlg-body { padding: 1.5rem 1.8rem 1.8rem; }
.dlg-body p { color: var(--muted); }
.dlg-close { position: absolute; right: 1rem; top: 1rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.2); color: #fff; display: grid; place-items: center; }
.dlg-close:hover { background: rgba(255, 255, 255, 0.35); }
.dlg-close svg { width: 20px; height: 20px; }
.dlg-meta { display: grid; gap: 0.4rem; margin: 0 0 1.2rem; font-weight: 600; font-size: 0.96rem; }

/* Lightbox */
.lb { position: fixed; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; }
.lb-img { max-width: min(94vw, 1400px); max-height: 84vh; border-radius: 16px; box-shadow: 0 40px 100px -30px #000; animation: dlgIn 0.5s var(--ease); background: #fff; }
.lb-cap { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; text-shadow: 0 2px 10px #000; padding-inline: 4rem; }
.lb-btn { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.14); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); transition: background 0.2s, transform 0.3s var(--ease); }
.lb-btn:hover { background: rgba(25, 180, 210, 0.6); transform: scale(1.08); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }
.lb-x { top: 1.2rem; right: 1.2rem; margin: 0; }

/* Galéria */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; } .gallery .g-big { grid-column: span 2; grid-row: span 2; } .gallery .g-wide { grid-column: span 2; } }
.gallery a { position: relative; display: block; border-radius: 20px; overflow: hidden; background: var(--ice); aspect-ratio: 4 / 3; cursor: zoom-in; }
@media (min-width: 760px) { .gallery a { aspect-ratio: auto; } }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter 0.4s; }
.gallery a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 29, 58, 0.55)); opacity: 0; transition: opacity 0.4s; }
.gallery a:hover img { transform: scale(1.1); } .gallery a:hover::after { opacity: 1; }

/* ---------- ESET ---------- */
.eset-card { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.eset-card .num { position: absolute; right: 1.2rem; top: -0.6rem; font-size: 7rem; font-weight: 900; letter-spacing: -0.06em; color: var(--cyan-100); line-height: 1; z-index: 0; pointer-events: none; }
.eset-card > * { position: relative; z-index: 1; }
.eset-card .aud { align-self: flex-start; }
.eset-card h3 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
.status-list { display: grid; gap: 0.6rem; padding-top: 0.6rem; border-top: 1px dashed var(--line); }
.status-list div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem; }
.status-list b { color: var(--heading); } .status-list span { color: var(--muted); text-align: right; }
.doc-link { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1rem; border-radius: 16px; text-decoration: none; background: var(--ice); font-weight: 700; transition: transform 0.35s var(--ease), background 0.3s, color 0.3s; }
.doc-link:hover { transform: translateX(6px); background: var(--navy); color: #fff; }
.doc-link .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--heading); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.04em; border: 1px solid var(--line); }
.doc-link .dl { margin-left: auto; opacity: 0.6; flex: none; } .doc-link .dl svg { width: 20px; height: 20px; }
.doc-link small { display: block; font-weight: 500; opacity: 0.7; font-size: 0.82rem; }
.doc-list { display: grid; gap: 0.7rem; }

.pills { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pill-big { padding: 0.7rem 1.4rem; border-radius: 999px; font-weight: 900; letter-spacing: 0.1em; font-size: 0.9rem; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.28); }

.year-tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.3rem; margin: -0.3rem 0 1.6rem; scrollbar-width: none; }
.year-tabs::-webkit-scrollbar { display: none; }
.year-tab { flex: none; padding: 0.7rem 1.4rem; border-radius: 999px; font-weight: 800; background: #fff; border: 1px solid var(--line); transition: background 0.3s, color 0.3s, transform 0.3s var(--ease); }
.year-tab[aria-selected="true"] { background: var(--grad); color: #fff; border-color: transparent; transform: scale(1.06); box-shadow: 0 10px 24px -10px rgba(25, 180, 210, 0.8); }
.year-panel { display: none; padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.year-panel.active { display: block; animation: panelIn 0.6s var(--ease); }
.year-panel h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.year-panel p { color: var(--muted); }

/* ---------- GYIK ---------- */
.faq-group { margin-bottom: 2.4rem; }
.faq-group > h3 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--heading); }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 0.7rem; transition: box-shadow 0.35s, border-color 0.35s; overflow: hidden; }
details.faq[open] { box-shadow: var(--shadow-sm); border-color: rgba(25, 180, 210, 0.5); }
details.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 800; cursor: pointer; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .pm { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ice); color: var(--heading); transition: transform 0.4s var(--ease), background 0.3s, color 0.3s; }
details.faq summary .pm svg { width: 16px; height: 16px; }
details.faq[open] summary .pm { transform: rotate(135deg); background: var(--navy); color: #fff; }
.faq-a { padding: 0 1.3rem 1.3rem; color: var(--muted); animation: faqIn 0.45s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Vezetőség ---------- */
.person { text-align: left; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.person-ph { aspect-ratio: 4 / 4.2; background: var(--grad-diag); position: relative; display: grid; place-items: center; color: rgba(255, 255, 255, 0.92); overflow: hidden; }
.person-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.person:hover .person-ph img { transform: scale(1.06); }
.person-ph .ini { font-size: 3.4rem; font-weight: 900; letter-spacing: -0.03em; }
.person-ph::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; bottom: -80px; background: rgba(255, 255, 255, 0.14); }
.person-body { padding: 1.3rem 1.4rem 1.5rem; }
.person-role { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.person-name { font-size: 1.35rem; font-weight: 800; margin: 0.2rem 0 0.6rem; letter-spacing: -0.02em; }
.person-name.is-empty { color: var(--muted); font-weight: 700; font-size: 1.05rem; }
.person p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.org-figure { border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; cursor: zoom-in; position: relative; }
.org-figure img { width: 100%; }
.org-figure .zoom { position: absolute; right: 1rem; bottom: 1rem; padding: 0.5rem 1rem; border-radius: 999px; background: rgba(0, 29, 58, 0.85); color: #fff; font-weight: 700; font-size: 0.85rem; backdrop-filter: blur(8px); }

.project { position: relative; padding: 1.8rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; gap: 0.5rem; transition: transform 0.5s var(--ease), box-shadow 0.5s; }
.project:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.project::after { content: ""; position: absolute; right: -50px; top: -50px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, var(--cyan-100), transparent 70%); transition: transform 0.7s var(--ease); }
.project:hover::after { transform: scale(1.8); }
.project > * { position: relative; z-index: 1; }
.project .kicker { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.project h3 { font-size: 1.45rem; margin: 0; }
.project p { color: var(--muted); margin: 0 0 0.6rem; }
.project .link-arrow { margin-top: auto; }

/* ---------- Szponzorok ---------- */
.logo-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
.logo-card { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 1.4rem; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.3s; position: relative; overflow: hidden; }
.logo-card img { position: absolute; inset: 1.1rem; width: calc(100% - 2.2rem); height: calc(100% - 2.2rem); object-fit: contain; transition: transform 0.6s var(--ease); }
.logo-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(25, 180, 210, 0.45); }
.logo-card:hover img { transform: scale(1.07); }
.logo-card .nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.5rem; text-align: center; font-size: 0.76rem; font-weight: 700; background: rgba(0, 29, 58, 0.88); color: #fff; transform: translateY(100%); transition: transform 0.4s var(--ease); }
.logo-card:hover .nm, .logo-card:focus-visible .nm { transform: none; }
.tier + .tier { margin-top: 3rem; }
.tier > h3 { font-size: 1.25rem; margin-bottom: 1.1rem; display: flex; align-items: center; gap: 0.8rem; }
.tier > h3::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-marquee .track { display: flex; gap: 1.2rem; width: max-content; animation: marquee 55s linear infinite; }
.logo-marquee:hover .track { animation-play-state: paused; }
.logo-marquee .logo-card { width: 190px; aspect-ratio: 3 / 2; flex: none; padding: 1rem; }

/* ---------- 1% ---------- */
.tax-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--grad-diag); color: #fff; padding: clamp(1.8rem, 4vw, 3rem); box-shadow: var(--shadow); isolation: isolate; }
.tax-card::before, .tax-card::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 65%); }
.tax-card::before { width: 380px; height: 380px; right: -100px; top: -140px; animation: drift2 15s ease-in-out infinite alternate; }
.tax-card::after { width: 260px; height: 260px; left: -80px; bottom: -120px; animation: drift1 17s ease-in-out infinite alternate; }
.tax-number { display: inline-flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.2rem 0.9rem 1.5rem; border-radius: 20px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(12px); font-size: clamp(1.5rem, 4.6vw, 2.5rem); font-weight: 900; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: #fff; transition: transform 0.3s var(--ease), background 0.3s; }
.tax-number:hover { transform: scale(1.03); background: rgba(255, 255, 255, 0.24); }
.tax-number .cp { flex: none; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--heading); display: grid; place-items: center; }
.tax-number .cp svg { width: 22px; height: 22px; }
.steps { display: grid; gap: 1rem; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 1.6rem 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 900; font-size: 1.2rem; margin-bottom: 1rem; }
.step h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.split-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.split-bar i { flex: 1; } .split-bar i:nth-child(1) { background: #fff; } .split-bar i:nth-child(2) { background: var(--cyan-300); } .split-bar i:nth-child(3) { background: #0a5fb0; }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.7rem; font-weight: 700; font-size: 0.9rem; }

/* ---------- Dokumentumtár / jogi szöveg ---------- */
.legal h2 { font-size: 1.5rem; margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border: 0; margin-top: 0; padding-top: 0; }
.legal h3 { font-size: 1.12rem; margin-top: 1.6rem; color: var(--heading); }
.legal p, .legal li { color: #2a3f55; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1em; }
.legal li { margin-bottom: 0.4rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: 0.95rem; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 0.75rem 0.9rem; border: 1px solid var(--line); vertical-align: top; min-width: 130px; }
.legal th { background: var(--ice); color: var(--heading); }
.legal .todo, mark.todo { background: #fff2b8; color: #5a4300; padding: 0.05em 0.35em; border-radius: 5px; font-weight: 700; }
.toc { padding: 1.4rem 1.6rem; border-radius: var(--radius); background: var(--ice); border: 1px solid var(--line); margin-bottom: 2.4rem; }
.toc b { display: block; margin-bottom: 0.6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; } .toc a { text-decoration: none; font-weight: 600; color: var(--heading); } .toc a:hover { color: var(--cyan); }
.notice { padding: 1.1rem 1.3rem; border-radius: 16px; background: var(--cyan-100); border-left: 5px solid var(--cyan); margin-bottom: 1.6rem; color: #0a3a52; }

/* ---------- Űrlap ---------- */
.form { display: grid; gap: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.4rem; font-size: 0.95rem; }
.field input, .field textarea, .field select { width: 100%; padding: 0.95rem 1.1rem; border-radius: 14px; border: 1.5px solid var(--line); font: inherit; background: #fff; color: var(--ink); transition: border-color 0.25s, box-shadow 0.25s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(25, 180, 210, 0.2); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.86rem; color: var(--muted); }
.form-grid { display: grid; gap: 1rem; } @media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA sáv ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 4rem); color: #fff; background: var(--navy-900); isolation: isolate; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 15% 0%, rgba(25, 180, 210, 0.55), transparent 60%), radial-gradient(50% 100% at 100% 100%, rgba(10, 95, 176, 0.7), transparent 60%); }
.cta-band .lead { margin-inline: auto; color: rgba(255, 255, 255, 0.82); }
.cta-band .btn-row { justify-content: center; margin-top: 1.6rem; }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.78); padding: clamp(3rem, 7vw, 5rem) 0 1.5rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; width: 600px; height: 600px; left: -200px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(25, 180, 210, 0.22), transparent 65%); pointer-events: none; }
.foot-grid { display: grid; gap: 2.2rem; position: relative; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: 0.55rem; }
.site-footer a { text-decoration: none; transition: color 0.2s; } .site-footer a:hover { color: var(--cyan-300); }
.foot-brand .brand { margin-bottom: 1rem; }
.foot-brand p { max-width: 36ch; font-size: 0.97rem; }
.socials { display: flex; gap: 0.6rem; margin-top: 1rem; }
.socials a { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); transition: transform 0.35s var(--ease), background 0.3s; }
.socials a:hover { background: var(--cyan); transform: translateY(-4px); color: #fff; }
.socials svg { width: 20px; height: 20px; }
.foot-bottom { margin-top: 2.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; justify-content: space-between; font-size: 0.88rem; position: relative; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 1.6rem; z-index: 300; transform: translate(-50%, 30px); opacity: 0; padding: 0.85rem 1.4rem; border-radius: 999px; background: var(--navy-900); color: #fff; font-weight: 700; box-shadow: var(--shadow); pointer-events: none; transition: opacity 0.35s, transform 0.5s var(--ease); max-width: calc(100vw - 2rem); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-left { transform: translateX(-40px); } .js .reveal-right { transform: translateX(40px); } .js .reveal-zoom { transform: scale(0.94); }

.load-msg { padding: 1.4rem; border: 2px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }
noscript .load-msg { display: block; margin: 1rem auto; max-width: 600px; }

/* ---------- Mozgáscsökkentés ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track, .logo-marquee .track { animation: none; }
}

@media print {
  .site-header, .mobile-nav, .progress, .to-top, .hero-visual, .aurora, .scroll-cue, .marquee, .toast { display: none !important; }
  .hero, .page-hero { min-height: 0; padding: 1rem 0; color: #000; background: #fff; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Kiegészítések ---------- */
.hero-rot { font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 800; margin: 0 0 1.1rem; min-height: 2.5em; letter-spacing: -0.01em; }
@media (min-width: 560px) { .hero-rot { min-height: 1.4em; } }
@media (min-width: 900px) { .sticky-col { position: sticky; top: calc(var(--header-h) + 24px); } }
.grad-text-dark { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section--dark .stat b { background: linear-gradient(135deg, #ffffff 0%, #7fe3f5 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tl-dot { font-size: 0.98rem; letter-spacing: -0.03em; }
@media (min-width: 1000px) {
  .legal table.wide { display: table; width: min(1020px, calc(100vw - 4rem)); position: relative; left: 50%; transform: translateX(-50%); }
}

/* ==========================================================================
   2. kör: háttérváltozatosság, mikro-animációk, interaktív szervezeti ábra,
   új naptár/partner/átláthatóság/ESET-archívum komponensek
   ========================================================================== */
:root { --paper: #f9fcfd; }
body { background: #f6fafc; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section--dark, .section--grad { isolation: isolate; }

/* Alap szekciók: nincs sima fehér */
.section { overflow: clip; }
.section:not([class*="section--"]) {
  background: radial-gradient(900px 520px at 100% 0, rgba(25, 180, 210, 0.12), transparent 62%), radial-gradient(760px 460px at 0 100%, rgba(0, 51, 102, 0.07), transparent 62%), #f9fcfd;
}
.section:not([class*="section--"]):nth-of-type(even) {
  background: radial-gradient(900px 520px at 0 0, rgba(25, 180, 210, 0.12), transparent 62%), radial-gradient(760px 460px at 100% 100%, rgba(0, 51, 102, 0.07), transparent 62%), #f9fcfd;
}
.section--ice {
  background-color: #e8f5f9;
  background-image: radial-gradient(rgba(0, 51, 102, 0.09) 1.3px, transparent 1.6px), radial-gradient(800px 420px at 88% 0, rgba(25, 180, 210, 0.18), transparent 65%);
  background-size: 24px 24px, auto;
}
.section--mesh {
  background: radial-gradient(1000px 600px at 92% -8%, rgba(25, 180, 210, 0.3), transparent 60%), radial-gradient(900px 600px at -8% 32%, rgba(59, 111, 224, 0.2), transparent 60%), radial-gradient(800px 520px at 62% 112%, rgba(245, 165, 36, 0.16), transparent 60%), #eaf5fa;
}
.section--wash { background: linear-gradient(135deg, #dcecf5 0%, #eef8fb 55%, #d6f3f9 100%); }
.section > .container { position: relative; z-index: 1; }
.deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.deco i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.deco--0 i:first-child { width: 360px; height: 360px; right: -130px; top: 6%; background: radial-gradient(circle at 35% 35%, rgba(25, 180, 210, 0.3), rgba(25, 180, 210, 0) 70%); }
.deco--0 i:last-child { width: 130px; height: 130px; left: 3%; bottom: 10%; border: 3px solid rgba(0, 51, 102, 0.12); }
.deco--1 i:first-child { width: 280px; height: 280px; left: -100px; top: 10%; background: radial-gradient(circle, rgba(0, 51, 102, 0.16), transparent 70%); }
.deco--1 i:last-child { width: 96px; height: 96px; right: 5%; bottom: 9%; border: 3px solid rgba(25, 180, 210, 0.34); }
.deco--2 i:first-child { width: 220px; height: 220px; right: 4%; bottom: -60px; background: radial-gradient(circle, rgba(245, 165, 36, 0.2), transparent 70%); }
.deco--2 i:last-child { width: 150px; height: 150px; left: 6%; top: 8%; border: 3px dashed rgba(25, 180, 210, 0.3); }

/* Fejlécek, mikro-animációk */
.h2.reveal::after { content: ""; display: block; width: 0; height: 4px; border-radius: 4px; background: var(--grad); margin-top: 0.7rem; transition: width 0.9s var(--ease) 0.35s; }
.h2.reveal.in::after { width: 64px; }
.section-head--center .h2.reveal::after { margin-inline: auto; }
.section--dark .h2.reveal::after { background: linear-gradient(90deg, #fff, var(--cyan-300)); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
.card, .step, .stat, .project, .year-tile, .org-info, .logo-card { --gx: 50%; --gy: 50%; }
.card:hover, .step:hover, .stat:hover, .project:hover, .year-tile:hover, .org-info:hover, .logo-card:hover {
  background-image: radial-gradient(380px circle at var(--gx) var(--gy), rgba(25, 180, 210, 0.16), transparent 60%);
}
.card, .step { transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.3s; }
.step:hover, .card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.page-hero .hero-bg img { animation: kenburns 28s ease-in-out infinite alternate; }

/* Fotós, mozgó hátterű szekció (parallax + lassú nagyítás) */
.section--photo { background: var(--navy-950); color: #fff; overflow: hidden; isolation: isolate; }
.section--photo .lead { color: rgba(255, 255, 255, 0.82); }
.plx { position: absolute; inset: 0; z-index: -2; overflow: hidden; animation: plxZoom 30s ease-in-out infinite alternate; }
.plx img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.plx::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 15, 31, 0.86), rgba(0, 29, 58, 0.74) 50%, rgba(0, 15, 31, 0.9)); }
@keyframes plxZoom { from { transform: scale(1); } to { transform: scale(1.1); } }
.section--photo .aurora { z-index: -1; opacity: 0.7; }
.section--photo .stat { backdrop-filter: blur(14px); background: rgba(255, 255, 255, 0.09); }

/* Történetünk kollázs */
.collage { position: relative; padding-bottom: 3.2rem; max-width: 560px; margin-inline: auto; width: 100%; }
.collage .c1 { width: 84%; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.collage .c2 { position: absolute; right: 0; bottom: 0; width: 58%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow); }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.collage .c1:hover img, .collage .c2:hover img { transform: scale(1.07); }
.collage .stamp { position: absolute; left: -0.6rem; top: 1.6rem; z-index: 2; padding: 0.7rem 1.1rem; border-radius: 18px; background: var(--grad-diag); color: #fff; box-shadow: var(--shadow); text-align: center; line-height: 1.1; animation: bob 6s ease-in-out infinite; }
.collage .stamp b { display: block; font-size: 2rem; font-weight: 900; letter-spacing: -0.04em; }
.collage .stamp small { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; }

/* Nyitható pillérek */
.xp-row { display: grid; gap: 1rem; }
.xp { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 1.7rem 1.6rem; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer; transition: flex-grow 0.7s var(--ease), box-shadow 0.4s, transform 0.4s var(--ease); }
.xp::before { content: ""; position: absolute; left: 0; top: 0; height: 5px; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0.18); transition: transform 0.8s var(--ease); }
.xp.is-open::before { transform: none; }
.xp .xp-num { position: absolute; right: 1rem; top: -0.4rem; font-size: 6rem; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(25, 180, 210, 0.28); pointer-events: none; }
.xp h3 { position: relative; font-size: 1.5rem; margin-bottom: 0.5rem; }
.xp p { position: relative; color: var(--muted); margin: 0; }
.xp .more { display: inline-flex; margin-top: 0.8rem; font-weight: 700; color: var(--cyan); font-size: 0.9rem; }
@media (min-width: 900px) {
  .xp-row { display: flex; gap: 1rem; min-height: 360px; }
  .xp { flex: 1 1 0; display: flex; flex-direction: column; }
  .xp.is-open { flex: 2.4 1 0; box-shadow: var(--shadow); }
  .xp p { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.7s var(--ease), opacity 0.5s; }
  .xp.is-open p { max-height: 460px; opacity: 1; }
  .xp .more { margin-top: auto; padding-top: 0.8rem; }
  .xp.is-open .more { display: none; }
}

/* Területek: új csempék, nyomkövetők */
.area-tab .ico svg { width: 24px; height: 24px; }
.area-tab[aria-selected="true"] .ico { transform: rotate(-8deg) scale(1.08); }
.area-tab .code { transition: background 0.35s, color 0.35s, transform 0.5s var(--ease); }
.area-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.area-nav .link-arrow { background: none; border: 0; padding: 0; }
.area-nav .link-arrow:first-child:hover svg { transform: translateX(-5px); }
.area-panel.active .photo img { animation: kbIn 1.8s var(--ease) both; }
@keyframes kbIn { from { transform: scale(1.2); } to { transform: scale(1.02); } }
.area-panel.active .area-body > * { animation: rise 0.65s var(--ease) both; }
.area-panel.active .area-body > :nth-child(2) { animation-delay: 0.08s; } .area-panel.active .area-body > :nth-child(3) { animation-delay: 0.16s; }
.area-panel.active .area-body > :nth-child(4) { animation-delay: 0.24s; } .area-panel.active .area-body > :nth-child(5) { animation-delay: 0.32s; }
.area-panel.active .area-body > :nth-child(6) { animation-delay: 0.4s; }
.area-body h3 { margin-bottom: 0.9rem; }
.area-mini b.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(25, 180, 210, 0.22); color: var(--cyan-300); font-size: 1rem; transition: transform 0.4s var(--ease), background 0.3s; }
.area-mini b.ico svg { width: 24px; height: 24px; }
.area-mini a:hover b.ico { transform: rotate(-10deg) scale(1.1); background: rgba(25, 180, 210, 0.4); }

/* Interaktív szervezeti ábra */
.org { display: grid; gap: 1.2rem; }
.org-tools { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.org-tools [hidden] { display: none; }
.tour-ico { width: 0.7em; height: 0.8em; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); transition: clip-path 0.3s; }
.is-touring .tour-ico { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.org-wrap { display: grid; gap: 1.4rem; align-items: start; }
@media (min-width: 1020px) { .org-wrap { grid-template-columns: 1fr 340px; } .org-info { position: sticky; top: calc(var(--header-h) + 20px); } }
.org-diagram { --lab: 6.6rem; display: grid; gap: 1rem; padding: clamp(0.8rem, 2vw, 1.4rem); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-sm); }
.org-box { position: relative; border: 2px solid rgba(0, 51, 102, 0.22); border-radius: var(--radius); padding: 1rem; }
.org-tag { display: inline-flex; align-items: center; padding: 0.35rem 0.85rem; border-radius: 10px; font-weight: 800; font-size: 0.82rem; border: 2px solid var(--navy); background: #fff; color: var(--heading); transition: background 0.3s, color 0.3s, opacity 0.3s, box-shadow 0.3s, transform 0.3s var(--ease); }
.org-tag:hover, .org-node:hover, .org-chair:hover, .org-area:hover, .org-proj:hover { transform: translateY(-2px); }
.org-bodies { display: flex; justify-content: space-between; gap: 0.8rem; margin-top: 0.9rem; }
.org-node { flex: 1 1 0; max-width: 48%; padding: 0.75rem 0.7rem; border: 2px solid var(--navy); background: #fff; border-radius: 10px; font-weight: 800; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.04em; line-height: 1.2; color: var(--heading); transition: background 0.3s, color 0.3s, opacity 0.3s, box-shadow 0.3s, transform 0.3s var(--ease); }
@media (min-width: 640px) { .org-node { font-size: 0.85rem; padding: 0.9rem 1rem; } }
.org-node.is-dashed { border-style: dashed; }
.org-grid { position: relative; display: grid; grid-template-columns: var(--lab) repeat(var(--n, 6), minmax(0, 1fr)); margin-top: 0.8rem; align-items: stretch; }
.org-boardbox { grid-column: 1 / -1; grid-row: 1 / 3; border: 2px solid var(--navy); border-radius: 16px; background: linear-gradient(180deg, rgba(25, 180, 210, 0.1), rgba(255, 255, 255, 0.3)); pointer-events: none; }
.org-tag--board { grid-column: 1; grid-row: 1; align-self: start; justify-self: start; margin: 0.55rem; position: relative; z-index: 1; }
.org-chair { grid-column: 2 / -1; grid-row: 1; justify-self: center; align-self: center; position: relative; z-index: 1; display: flex; align-items: center; gap: 0.45rem; margin: 0.6rem 0; padding: 0.5rem 1.3rem; border-radius: 12px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; background: var(--cyan); color: #fff; box-shadow: 0 10px 22px -10px var(--cyan); transition: opacity 0.3s, box-shadow 0.3s, transform 0.3s var(--ease); }
.org-chair svg { width: 20px; height: 20px; }
.org-area { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.4rem 0.15rem 0.7rem; border-radius: 12px; background: none; border: 0; font-weight: 800; font-size: 0.68rem; line-height: 1.1; text-align: center; color: var(--heading); transition: opacity 0.3s, background 0.3s, transform 0.3s var(--ease); }
.org-area .ico, .org-proj .ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--heading); box-shadow: 0 6px 16px -8px rgba(0, 51, 102, 0.6), inset 0 0 0 2px rgba(0, 51, 102, 0.12); transition: background 0.3s, color 0.3s; }
.org-area svg, .org-proj svg { width: 20px; height: 20px; }
@media (min-width: 640px) { .org-area { font-size: 0.8rem; } .org-area .ico { width: 44px; height: 44px; } .org-area svg { width: 22px; height: 22px; } }
@media (max-width: 639px) { .org-diagram { --lab: 4.4rem; } .org-area .nm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .org-proj span:last-child { font-size: 0.68rem; } }
.org-proj { display: flex; align-items: center; gap: 0.4rem; align-self: center; padding: 0.35rem 0.4rem; border-radius: 10px; background: #e7f7fb; border: 2px solid var(--cyan); font-weight: 800; font-size: 0.76rem; line-height: 1.1; text-align: left; color: var(--heading); transition: opacity 0.3s, box-shadow 0.3s, transform 0.3s var(--ease); }
.org-proj .ico { width: 28px; height: 28px; flex: none; color: #e08a00; }
.org-proj svg { width: 16px; height: 16px; }
@media (max-width: 639px) { .org-proj .ico { display: none; } }
.org-cell { position: relative; display: grid; place-items: center; min-height: 62px; background: none; border: 0; padding: 0; }
.org-cell::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dotted rgba(0, 51, 102, 0.3); }
.org-cell::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px dotted rgba(0, 51, 102, 0.3); }
.org-cell .av { position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: var(--grad-diag); box-shadow: 0 8px 18px -8px rgba(0, 51, 102, 0.7); border: 3px solid #fff; transition: transform 0.35s var(--ease), box-shadow 0.3s; }
.org-cell .av svg { width: 22px; height: 22px; }
.org-cell.is-on:hover .av { transform: scale(1.14); }
@media (max-width: 639px) { .org-cell .av { width: 32px; height: 32px; border-width: 2px; } .org-cell .av svg { width: 17px; height: 17px; } .org-cell { min-height: 54px; } }
.org [data-id].is-dim { opacity: 0.3; }
.org [data-id].is-on:not(.is-sel) { box-shadow: 0 0 0 3px rgba(25, 180, 210, 0.5); }
.org-cell.is-on .av { }
.org-cell.is-on.is-on:not(.is-sel) { box-shadow: none; }
.org-cell.is-on.is-sel .av, .org-cell.is-on[data-id].is-on .av { }
.org-cell.is-sel .av { box-shadow: 0 0 0 5px rgba(25, 180, 210, 0.55), 0 8px 18px -8px rgba(0, 51, 102, 0.7); transform: scale(1.14); }
.org-cell.is-on:not(.is-sel) { box-shadow: none; }
.org-cell.is-on.is-on .av { }
.org-tag.is-sel, .org-node.is-sel { background: var(--navy); color: #fff; }
.org-chair.is-sel { box-shadow: 0 0 0 5px rgba(0, 51, 102, 0.4), 0 10px 22px -10px var(--cyan); }
.org-area.is-sel { background: var(--navy); color: #fff; }
.org-area.is-sel .ico { background: var(--grad-diag); color: #fff; }
.org-area.is-on:not(.is-sel) { background: rgba(25, 180, 210, 0.18); box-shadow: none; }
.org-proj.is-sel { background: var(--navy); color: #fff; border-color: var(--navy); }
.org-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.82rem; color: var(--muted); font-weight: 600; margin: 0; }
.org-legend li { display: inline-flex; align-items: center; gap: 0.45rem; }
.lg { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.lg-proj { background: #e08a00; } .lg-on { background: var(--grad-diag); } .lg-area { background: #fff; box-shadow: inset 0 0 0 3px var(--navy); }
.org-cap { margin: 0; font-size: 0.82rem; color: var(--muted); }
.org-info { padding: 1.5rem; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 190px; }
.org-info h3 { font-size: 1.35rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.org-info p { color: var(--muted); }
.org-info-in { animation: rise 0.5s var(--ease); }
.org-info .btn-row { gap: 0.4rem 1.2rem; }

/* Naptár: modern */
.cal-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cal-tools { justify-content: space-between; margin-bottom: 0.8rem; }
.chip { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(8px); }
.chip em { font-style: normal; font-size: 0.72rem; font-weight: 800; padding: 0.05rem 0.5rem; border-radius: 999px; background: rgba(0, 51, 102, 0.09); }
.chip[aria-pressed="true"] em { background: rgba(255, 255, 255, 0.22); }
.chip[aria-pressed="true"][style] { background: color-mix(in srgb, var(--c) 60%, #001d3a); border-color: transparent; }
.cal-toggle { position: relative; margin-left: 0; gap: 0.7rem; user-select: none; }
.cal-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cal-toggle .sw { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #c3d3e0; transition: background 0.3s; flex: none; }
.cal-toggle .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); transition: transform 0.35s var(--ease); }
.cal-toggle input:checked + .sw { background: var(--cyan); }
.cal-toggle input:checked + .sw::after { transform: translateX(18px); }
.cal-toggle input:focus-visible + .sw { outline: 3px solid var(--cyan); outline-offset: 3px; }
.cal-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-items: baseline; margin: 0 0 1.6rem; font-size: 0.9rem; color: var(--muted); }
.cal-count { font-weight: 800; color: var(--heading); }
.month { margin-bottom: 2.2rem; }
.month h3 { align-items: baseline; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -0.04em; margin-bottom: 1.1rem; }
.month h3 .m-name { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.month h3 small { font-size: 0.95rem; font-weight: 800; color: var(--muted); }
.month h3::after { order: 1; background: linear-gradient(90deg, rgba(0, 51, 102, 0.18), transparent); }
.month h3 .m-count { order: 2; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ev { background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(10px); border-color: rgba(255, 255, 255, 0.95); box-shadow: 0 14px 34px -20px color-mix(in srgb, var(--c) 70%, #001d3a); animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.ev::before { width: 6px; }
.ev::after { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 26%, transparent), transparent 70%); transition: transform 0.6s var(--ease); pointer-events: none; }
.ev:hover::after { transform: scale(1.8); }
.ev-date { background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 55%, #001d3a); }
.ev:hover .ev-date { background: var(--c); color: #fff; }
.ev > * { position: relative; z-index: 1; }
.mini-cal { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); }
.mini-grid button.d { background: color-mix(in srgb, var(--c, #19b4d2) 22%, #fff); color: color-mix(in srgb, var(--c, #19b4d2) 50%, #001d3a); }
.mini-grid button.d:hover { background: var(--c, var(--navy)); color: #fff; }
.mini-grid .d.is-dim { opacity: 0.3; }
.dlg-head { background: linear-gradient(135deg, color-mix(in srgb, var(--c, #19b4d2) 55%, #003366), #001d3a); }
.dlg-head .when svg, .dlg-meta svg { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.18em; margin-right: 0.45rem; }
.dlg-body .btn-row { margin-top: 1.2rem; }

/* Partnerek */
.tier { position: relative; padding: clamp(1.3rem, 3vw, 2.2rem); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.74); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-sm); overflow: hidden; --t: #19b4d2; --tg: var(--grad); }
.tier + .tier { margin-top: 1.6rem; }
.tier::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--tg); background-size: 200% 100%; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.tier--gyemant { --t: #0a8fb0; --tg: linear-gradient(90deg, #00b4db, #0083b0, #7adbeb, #00b4db); }
.tier--arany { --t: #d88a1d; --tg: linear-gradient(90deg, #f2994a, #f2c94c, #f2994a); }
.tier--platina { --t: #7a8a99; --tg: linear-gradient(90deg, #8e9eab, #cbd5e1, #8e9eab); }
.tier--partner { --t: #003366; }
.tier-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem; }
.tier-head h3 { margin: 0; font-size: clamp(1.2rem, 3vw, 1.5rem); }
.tier-head h3::after { display: none; }
.tier-head p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.tier-gem { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--tg); box-shadow: 0 10px 24px -10px var(--t); }
.tier-gem svg { width: 26px; height: 26px; }
.tier-count { margin-left: auto; font-weight: 900; font-size: 1.8rem; color: var(--t); line-height: 1; }
.tier + .tier { margin-top: 1.6rem; }
.logo-card { animation: none; }
.logo-card .nm { color: var(--ink); }
a.logo-card::after { content: "↗"; position: absolute; top: 0.55rem; right: 0.75rem; font-size: 0.95rem; font-weight: 900; color: var(--cyan); opacity: 0; transform: translate(-4px, 4px); transition: opacity 0.3s, transform 0.3s var(--ease); }
a.logo-card:hover::after, a.logo-card:focus-visible::after { opacity: 1; transform: none; }
.logo-grid--gyemant { grid-template-columns: repeat(2, 1fr); }
.logo-grid--gyemant .logo-card { aspect-ratio: 1 / 1; border-top: 5px solid #0a8fb0; }
@media (min-width: 760px) { .logo-grid--gyemant { grid-template-columns: repeat(4, 1fr); } }
.logo-grid--arany .logo-card { aspect-ratio: 5 / 4; border-top: 5px solid #e6a23c; }
.logo-grid--platina .logo-card { aspect-ratio: 3 / 2; border-top: 5px solid #9aa9b6; }
@media (min-width: 1000px) { .logo-grid--platina { grid-template-columns: repeat(5, 1fr); } }
.logo-grid--partner .logo-card { aspect-ratio: 3 / 2; border-top: 5px solid var(--navy); }
.stats--mini { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.perks { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .perks { grid-template-columns: repeat(4, 1fr); } }
.perk { padding: 1.5rem 1.3rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.86); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.45s var(--ease), box-shadow 0.4s; }
.perk:hover { transform: translateY(-8px) rotate(-0.6deg); box-shadow: var(--shadow); }
.perk h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.perk p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.icon-badge { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--grad-diag); margin-bottom: 1rem; box-shadow: 0 12px 26px -12px var(--cyan); transition: transform 0.5s var(--ease); }
.icon-badge svg { width: 26px; height: 26px; }
.perk:hover .icon-badge, .card:hover .icon-badge { transform: rotate(-10deg) scale(1.08); }
.case-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; max-width: 900px; margin-inline: auto; }
.case-cloud .tag { font-size: 0.95rem; padding: 0.5rem 1.1rem; transition: transform 0.35s var(--ease), background 0.3s, color 0.3s; }
.case-cloud .tag:hover { transform: translateY(-4px) scale(1.06); background: var(--navy); color: #fff; }

/* Dokumentumtár, átláthatóság */
.doc-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.doc-search { display: flex; align-items: center; gap: 0.6rem; padding: 0.15rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); min-width: min(100%, 300px); color: var(--muted); }
.doc-search svg { width: 20px; height: 20px; flex: none; }
.doc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0.7rem 0; font: inherit; color: var(--ink); }
.doc-search:focus-within { box-shadow: 0 0 0 3px rgba(25, 180, 210, 0.45); }
.doc-group { padding: clamp(1.3rem, 3vw, 2rem); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-sm); }
.doc-group + .doc-group { margin-top: 1.4rem; }
.doc-group > h3 { display: flex; align-items: center; gap: 0.7rem; }
.gcount { font-size: 0.78rem; font-weight: 800; padding: 0.15rem 0.7rem; border-radius: 999px; background: var(--cyan-100); color: var(--heading); }
.doc-list .doc-link { animation: rise 0.55s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.year-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.year-tile { position: relative; display: flex; flex-direction: column; gap: 0.25rem; padding: 1.3rem 1.2rem; border-radius: 20px; text-decoration: none; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); transition: transform 0.45s var(--ease), box-shadow 0.4s; }
.year-tile::before { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.year-tile:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.year-tile:hover::before { transform: none; }
.year-tile b { font-size: 2.8rem; font-weight: 900; letter-spacing: -0.05em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.year-tile span { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.year-tile em { align-self: flex-start; font-style: normal; font-size: 0.74rem; font-weight: 800; color: #8a5300; background: #ffecc2; border-radius: 999px; padding: 0.1rem 0.65rem; margin-top: 0.3rem; }
.year-tile .dl { position: absolute; right: 1rem; top: 1rem; opacity: 0.5; transition: transform 0.4s var(--ease), opacity 0.3s; }
.year-tile .dl svg { width: 22px; height: 22px; }
.year-tile:hover .dl { opacity: 1; transform: translateY(3px); }
.reg-grid { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .reg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .reg-grid { grid-template-columns: repeat(4, 1fr); } }
.reg { position: relative; padding: 1.4rem 1.3rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.86); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.45s var(--ease), box-shadow 0.4s; }
.reg:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.reg::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--grad); }
.reg small { display: block; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.reg b { display: block; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--heading); line-height: 1.2; word-break: break-word; }
.reg p { margin: 0.4rem 0 0; font-size: 0.86rem; color: var(--muted); }
.reg .copy { margin-top: 0.8rem; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.85rem; color: var(--cyan); background: none; border: 0; padding: 0; }
.reg .copy svg { width: 16px; height: 16px; }
.link-tiles { display: grid; gap: 1rem; }
@media (min-width: 800px) { .link-tiles { grid-template-columns: repeat(3, 1fr); } }
.link-tile { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; border-radius: var(--radius); text-decoration: none; background: rgba(255, 255, 255, 0.86); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.45s var(--ease), box-shadow 0.4s, background 0.3s, color 0.3s; }
.link-tile:hover { transform: translateY(-8px); background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.link-tile h3 { font-size: 1.2rem; margin: 0; } .link-tile p { margin: 0; color: var(--muted); font-size: 0.93rem; } .link-tile:hover p { color: rgba(255, 255, 255, 0.8); }
.link-tile .icon-badge { margin-bottom: 0.4rem; }
.law-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }

/* ESET archívum */
.arch { position: relative; }
.arch-rail { position: relative; display: flex; justify-content: space-between; gap: 0.3rem; padding: 0.3rem 0.4rem 0.6rem; overflow-x: auto; scrollbar-width: none; }
.arch-rail::-webkit-scrollbar { display: none; }
.arch-line { position: absolute; left: 1.2rem; right: 1.2rem; top: 1.2rem; height: 4px; border-radius: 4px; background: var(--line); }
.arch-fill { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--grad); transition: width 0.8s var(--ease); }
.arch-tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; background: none; border: 0; padding: 0 0.5rem; font-weight: 800; color: var(--muted); }
.arch-tab .dot { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid #c9d8e3; transition: transform 0.5s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.4s; }
.arch-tab b { font-size: 1.05rem; transition: color 0.3s, transform 0.4s var(--ease); }
.arch-tab:hover .dot { transform: scale(1.2); }
.arch-tab.is-past .dot { background: var(--navy); border-color: #fff; box-shadow: 0 0 0 2px var(--navy); }
.arch-tab[aria-selected="true"] .dot { background: var(--cyan); border-color: #fff; box-shadow: 0 0 0 5px rgba(25, 180, 210, 0.4); transform: scale(1.3); }
.arch-tab[aria-selected="true"] b { color: var(--heading); transform: scale(1.15); }
.arch-stage { margin-top: 1.4rem; }
.arch-panel { position: relative; overflow: hidden; padding: clamp(1.6rem, 4vw, 3rem); border-radius: var(--radius-lg); background: linear-gradient(135deg, #fff, #eff9fc); border: 1px solid var(--line); box-shadow: var(--shadow); animation: archIn 0.7s var(--ease) both; }
.arch-stage[data-dir="prev"] .arch-panel { animation-name: archInL; }
@keyframes archIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes archInL { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
.arch-year { position: absolute; right: -0.02em; top: -0.12em; font-size: clamp(6.5rem, 22vw, 15rem); font-weight: 900; letter-spacing: -0.06em; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(25, 180, 210, 0.38); pointer-events: none; user-select: none; }
.arch-body { position: relative; max-width: 76ch; }
.arch-body h3 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.arch-facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.4rem; }
.arch-facts .tag { animation: pop 0.55s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 200ms); }
.arch-text p { border-left: 3px solid var(--cyan); padding-left: 1rem; color: var(--muted); animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms + 250ms); }
.arch-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; }
.arch-nav .btn:disabled { opacity: 0.35; pointer-events: none; }
.hscroll { overflow: hidden; padding: 1.2rem 0 2.2rem; }
.hs-track { display: flex; gap: 1rem; width: max-content; padding-inline: var(--gutter); will-change: transform; }
.hs-track a { display: block; flex: none; width: clamp(220px, 28vw, 340px); aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); }
.hs-track a:nth-child(even) { margin-top: 1.6rem; }
.hs-track img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.hs-track a:hover img { transform: scale(1.1); }

@media (prefers-reduced-motion: reduce) {
  .plx, .tier::before, .page-hero .hero-bg img { animation: none; }
  .ev, .doc-list .doc-link, .year-tile, .area-panel.active .area-body > *, .arch-panel, .arch-facts .tag, .arch-text p { animation: none; }
}

/* 2. kör: finomítások */
.section--photo .stat b { background: linear-gradient(180deg, #fff, var(--cyan-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section--photo .stat span { color: #fff; }
.section--photo .stat small { color: rgba(255, 255, 255, 0.82); }
.xp .xp-num { top: auto; bottom: -0.9rem; right: 0.8rem; font-size: 5.5rem; }
@media (min-width: 900px) { .xp-row { min-height: 300px; } }
.org-area .nm { overflow-wrap: anywhere; }
@media (min-width: 640px) { .org-area { font-size: 0.72rem; } }
@media (min-width: 1020px) { .org-area { font-size: 0.74rem; } }
.section--dark .perk { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); box-shadow: none; backdrop-filter: blur(10px); }
.section--dark .perk h3 { color: #fff; }
.section--dark .perk p { color: rgba(255, 255, 255, 0.78); }
.law-chips { margin-top: 1.8rem; }
@media (max-width: 899px) { .xp .more { display: none; } }

/* ==========================================================================
   „Hat terület, hat szerep”: interaktív területválasztó (a2)
   ========================================================================== */
.a2 { display: grid; gap: 1.6rem; }
.a2 > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.a2.is-in > * { opacity: 1; transform: none; }
.a2.is-in > :nth-child(2) { transition-delay: 0.12s; } .a2.is-in > :nth-child(3) { transition-delay: 0.24s; }
html:not(.js) .a2 > * { opacity: 1; transform: none; }

.a2-match { padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-sm); }
.a2-mhead { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.a2-mhead b { display: block; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--heading); }
.a2-mhead span { color: var(--muted); font-size: 0.95rem; }
.a2-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.a2-chip { padding: 0.55rem 1rem; border-radius: 999px; border: 1.5px solid rgba(0, 51, 102, 0.18); background: #fff; font-weight: 700; font-size: 0.9rem; color: var(--heading); transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.3s; }
.a2.is-in .a2-chip { animation: pop 0.5s var(--ease) both; animation-delay: calc(var(--i) * 40ms + 250ms); }
.a2-chip:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 8px 18px -10px var(--cyan); }
.a2-chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); transform: scale(1.04); }
.a2-chip[aria-pressed="true"]::before { content: "✓ "; color: var(--cyan-300); }
.a2-result { margin: 1rem 0 0; min-height: 1.4em; color: var(--ink); animation: rise 0.5s var(--ease); }
.a2-result:empty { display: none; }
.a2-result b { color: var(--heading); background: linear-gradient(transparent 62%, rgba(25, 180, 210, 0.35) 0); }

.a2-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
@media (min-width: 700px) { .a2-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
.a2-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; text-align: left; padding: 1.1rem 1rem 1.2rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.86); border: 2px solid transparent; box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow 0.4s, border-color 0.3s, background 0.3s, opacity 0.4s, filter 0.4s, translate 0.4s var(--ease); }
.a2-card::after { content: ""; position: absolute; right: -34px; top: -34px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(25, 180, 210, 0.3), transparent 70%); transition: transform 0.7s var(--ease); }
.a2-card:hover { translate: 0 -6px; box-shadow: var(--shadow); }
.a2-card:hover::after { transform: scale(1.9); }
.a2.is-in .a2-card { animation: rise 0.65s var(--ease) both; animation-delay: calc(var(--i) * 80ms + 300ms); }
.a2-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--cyan-100); color: var(--heading); transition: transform 0.5s var(--ease), background 0.3s, color 0.3s; position: relative; z-index: 1; }
.a2-ico svg { width: 24px; height: 24px; }
.a2-card:hover .a2-ico { transform: rotate(-10deg) scale(1.1); }
.a2-name { position: relative; z-index: 1; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; color: var(--heading); line-height: 1.15; margin-top: 0.3rem; }
.a2-sum { display: none; position: relative; z-index: 1; font-size: 0.85rem; line-height: 1.4; color: var(--muted); }
@media (min-width: 700px) { .a2-sum { display: block; } .a2-card { padding: 1.3rem 1.2rem 1.4rem; } .a2-name { font-size: 1.15rem; } }
.a2-meter { display: block; width: 100%; height: 6px; border-radius: 6px; background: rgba(0, 51, 102, 0.1); overflow: hidden; margin-top: auto; opacity: 0; transition: opacity 0.4s; position: relative; z-index: 1; }
.a2-meter i { display: block; height: 100%; width: var(--m, 0%); border-radius: 6px; background: var(--grad); transition: width 0.9s var(--ease); }
.a2-pct { position: absolute; right: 0.9rem; bottom: 1.5rem; font-size: 0.78rem; font-weight: 900; color: var(--heading); opacity: 0; transition: opacity 0.3s; z-index: 1; }
.a2-card.has-m .a2-meter, .a2-card.has-m .a2-pct { opacity: 1; }
.a2-card.has-m .a2-meter { margin-top: 0.6rem; }
@media (min-width: 700px) { .a2-card .a2-sum { margin-bottom: 0.6rem; } .a2-pct { bottom: 1.8rem; } }
.a2-badge { position: absolute; right: 0.7rem; top: 0.7rem; z-index: 2; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--grad-diag); color: #fff; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; transform: scale(0); transition: transform 0.5s var(--ease); }
.a2-card.is-top .a2-badge { transform: scale(1); }
.a2-card.is-top { border-color: var(--cyan); box-shadow: 0 18px 40px -22px var(--cyan); }
.a2-card.is-low { opacity: 0.5; filter: saturate(0.6); }
.a2-card[aria-selected="true"] { background: var(--navy); border-color: var(--navy); }
.a2-card[aria-selected="true"] .a2-name { color: #fff; } .a2-card[aria-selected="true"] .a2-sum { color: rgba(255, 255, 255, 0.78); }
.a2-card[aria-selected="true"] .a2-ico { background: var(--grad-diag); color: #fff; transform: rotate(-8deg); }
.a2-card[aria-selected="true"] .a2-pct { color: #fff; }
.a2-card[aria-selected="true"] .a2-meter { background: rgba(255, 255, 255, 0.2); }
.a2-card[aria-selected="true"]::before { content: ""; position: absolute; left: 50%; bottom: -9px; width: 18px; height: 18px; background: var(--navy); transform: translateX(-50%) rotate(45deg); }

.a2-panels { scroll-margin-top: calc(var(--header-h) + 12px); }
.a2-panel { position: relative; display: grid; gap: 1.6rem; padding: clamp(1.1rem, 3vw, 2rem); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.84); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 12px); }
@media (min-width: 960px) { .a2-panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.2rem; } .a2-side { position: sticky; top: calc(var(--header-h) + 18px); align-self: start; } }
.a2-panel.active { animation: rise 0.6s var(--ease) both; }
.a2-side { display: grid; gap: 1rem; }
.a2-photo { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.a2-photo img { width: 100%; height: 100%; object-fit: cover; }
.a2-panel.active .a2-photo img { animation: kbIn 1.8s var(--ease) both; }
.a2-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 20, 45, 0.82)); }
.a2-photo b { position: absolute; left: 1.1rem; bottom: 0.9rem; z-index: 1; color: #fff; font-size: 1.5rem; font-weight: 900; letter-spacing: -0.03em; }
.a2-bigico { position: absolute; right: 1rem; top: 1rem; z-index: 1; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.35); animation: bob 6s ease-in-out infinite; }
.a2-bigico svg { width: 28px; height: 28px; }
.a2-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.a2-facts li { display: flex; gap: 0.8rem; align-items: center; padding: 0.75rem 0.9rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--heading); }
.a2-facts small { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.a2-facts .fi { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--cyan-100); color: var(--heading); }
.a2-facts .fi svg { width: 20px; height: 20px; }
.a2-panel.active .a2-facts li, .a2-panel.active .a2-check li, .a2-panel.active .a2-tasks li { animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 200ms); }
.a2-check { padding: 1.1rem; border-radius: var(--radius); background: linear-gradient(160deg, #eaf7fb, #fff); border: 1px solid rgba(25, 180, 210, 0.3); }
.a2-chkhead { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.8rem; }
.a2-chkhead h4 { margin: 0 0 0.2rem; font-size: 1.05rem; color: var(--heading); }
.a2-chkmsg { margin: 0; font-size: 0.88rem; color: var(--muted); }
.a2-ring { --p: 0; flex: none; position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--cyan) calc(var(--p) * 1%), rgba(0, 51, 102, 0.12) 0); transition: background 0.5s; }
.a2-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.a2-ring b { position: relative; font-size: 0.95rem; color: var(--heading); }
.a2-ring.is-full { animation: pop 0.5s var(--ease); box-shadow: 0 0 0 5px rgba(25, 180, 210, 0.3); }
.a2-check ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.a2-chk { display: flex; gap: 0.7rem; align-items: flex-start; width: 100%; text-align: left; padding: 0.6rem 0.75rem; border-radius: 12px; background: rgba(255, 255, 255, 0.8); border: 1.5px solid var(--line); font-size: 0.92rem; color: var(--ink); transition: background 0.25s, border-color 0.25s, transform 0.3s var(--ease); }
.a2-chk:hover { border-color: var(--cyan); transform: translateX(4px); }
.a2-chk .box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 2px solid #b9c9d8; color: transparent; background: #fff; transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.4s var(--ease); }
.a2-chk .box svg { width: 14px; height: 14px; stroke-width: 3.2; }
.a2-chk[aria-checked="true"] { background: #e3f6fa; border-color: var(--cyan); }
.a2-chk[aria-checked="true"] .box { background: var(--cyan); border-color: var(--cyan); color: #fff; transform: scale(1.12) rotate(-6deg); }

.a2-main h3 { margin-bottom: 0.5rem; }
.a2-lead { font-size: 1.1rem; font-weight: 600; color: var(--heading); margin-bottom: 1rem; }
.a2-h { display: flex; align-items: center; gap: 0.7rem; margin: 1.8rem 0 0.9rem; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--heading); }
.a2-h::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(25, 180, 210, 0.45), transparent); }
.a2-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; counter-reset: t; }
@media (min-width: 700px) { .a2-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.a2-tasks li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.8rem 0.9rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px -14px rgba(0, 51, 102, 0.6); transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s; font-size: 0.95rem; }
.a2-tasks li:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 14px 26px -16px var(--cyan); }
.a2-tasks .n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--grad-diag); color: #fff; font-weight: 900; font-size: 0.82rem; }
.a2-proj { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.a2-proj span { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border-radius: 999px; background: #fff4de; border: 1.5px solid #f5c978; color: #7a4a00; font-weight: 800; font-size: 0.9rem; }
.a2-proj svg { width: 18px; height: 18px; }
.a2-panel.active .a2-proj span, .a2-panel.active .a2-main .tag { animation: pop 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 350ms); }
.a2-foot { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.a2-main .area-nav { margin-top: 1.4rem; }
@media (prefers-reduced-motion: reduce) { .a2 > *, .a2.is-in .a2-card, .a2.is-in .a2-chip, .a2-panel.active, .a2-panel.active * { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; } }

/* Golden Circle (Miért / Hogyan / Mit) */
.gc { display: grid; gap: 1.4rem; justify-items: center; }
.gc-rings { position: relative; width: min(100%, 380px); aspect-ratio: 1; }
.gc-ring { position: absolute; left: 50%; top: 50%; display: block; border-radius: 50%; border: 6px solid var(--navy); background: rgba(255, 255, 255, 0.55); transform: translate(-50%, -50%) scale(0.3); opacity: 0; transition: transform 0.9s var(--ease), opacity 0.6s, background 0.35s, border-color 0.35s, box-shadow 0.35s; }
.gc.in .gc-ring { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gc-3 { width: 100%; height: 100%; transition-delay: 0s; } .gc-2 { width: 66%; height: 66%; transition-delay: 0.15s; } .gc-1 { width: 32%; height: 32%; transition-delay: 0.3s; }
.gc-ring em { position: absolute; left: 50%; font-style: normal; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--heading); transition: color 0.3s; }
.gc-3 em { bottom: 6%; transform: translateX(-50%); font-size: 0.95rem; }
.gc-2 em { bottom: 7%; transform: translateX(-50%); font-size: 0.85rem; }
.gc-1 em { top: 50%; transform: translate(-50%, -50%); font-size: 0.8rem; }
.gc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; width: 100%; max-width: 440px; }
.gc-row { padding: 0.8rem 1.1rem; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s; outline: none; cursor: default; }
.gc-row small { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.gc-row b { font-size: 1.1rem; color: var(--heading); letter-spacing: -0.02em; }
.gc-row:hover, .gc-row:focus-visible { transform: translateX(8px); background: var(--navy); border-color: var(--navy); }
.gc-row:hover b, .gc-row:focus-visible b { color: #fff; }
.gc-cap { margin: 0; font-size: 0.82rem; color: var(--muted); }
.gc:has(.gc-r1:hover) .gc-1, .gc:has(.gc-r1:focus-visible) .gc-1, .gc:has(.gc-r2:hover) .gc-2, .gc:has(.gc-r2:focus-visible) .gc-2, .gc:has(.gc-r3:hover) .gc-3, .gc:has(.gc-r3:focus-visible) .gc-3,
.gc-ring:hover { background: rgba(25, 180, 210, 0.35); border-color: var(--cyan); box-shadow: 0 0 0 8px rgba(25, 180, 210, 0.18); }
.steps--col { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.a2-panel[hidden] { display: none !important; }
@media (max-width: 959px) {
  .a2-side { display: contents; }
  .a2-photo { order: 0; } .a2-main { order: 1; } .a2-facts { order: 2; } .a2-check { order: 3; }
}
.a2-name { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 699px) { .a2-name { font-size: 0.98rem; } .area-nav .link-arrow { font-size: 0.88rem; } }

/* ===== v4: telefonos finomhangolás ===== */
@media (max-width: 699px) {
  /* Szervezeti ábra: egyszerű, címkézett lista a zsúfolt mátrix helyett */
  .org-diagram { --lab: auto; padding: 0.8rem; }
  .org-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.7rem; padding: 0.7rem; border: 2px solid var(--navy); border-radius: 16px; background: linear-gradient(180deg, rgba(25,180,210,.1), rgba(255,255,255,.3)); }
  .org-grid > * { grid-column: auto !important; grid-row: auto !important; }
  .org-boardbox { display: none; }
  .org-tag--board { grid-column: 1 / -1 !important; margin: 0; justify-self: start; }
  .org-chair { grid-column: 1 / -1 !important; justify-self: stretch; justify-content: center; margin: 0 0 0.2rem; }
  .org-area { flex-direction: row; justify-content: flex-start; gap: 0.55rem; padding: 0.5rem 0.55rem; min-height: 52px; background: rgba(255,255,255,.75); border: 1px solid var(--line); text-align: left; font-size: 0.84rem; }
  .org-area .nm { position: static !important; width: auto !important; height: auto !important; clip: auto !important; overflow: visible; font-size: 0.84rem; line-height: 1.15; }
  .org-area .ico { width: 34px; height: 34px; flex: none; }
  .org-cell { display: none; }
  .org-proj { grid-column: auto !important; min-height: 44px; font-size: 0.84rem; background: #fff; }
  .org-proj span:last-child { font-size: 0.84rem; }
  .org-proj::before { content: "Projekt:"; font-size: 0; }
  .org-node { font-size: 0.78rem; min-height: 56px; }
  .org-legend { display: none; }
  .org-cap { font-size: 0.86rem; }
  /* olvashatóság */
  .badge { font-size: 0.8rem; }
  .countdown small, .ev-date small, .a2-facts small, .gc-row small, .reg small, .collage .stamp small { font-size: 0.75rem; }
  .brand small { font-size: 0.72rem; }
  .org-tag { font-size: 0.88rem; }
  /* érintési felületek */
  .link-arrow, .crumbs a, .foot-bottom nav a, .reg .copy { min-height: 44px; display: inline-flex; align-items: center; }
  .crumbs { gap: 0 0.5rem; margin-bottom: 0.6rem; }
  .site-footer a, footer a { padding-block: 0.35rem; }
  .scroll-cue { display: none; }
}
@media (max-width: 699px) { .m-count, .dow, .ico, em { font-size: max(0.75rem, 1em); } .brand small { font-size: 0.74rem; } }
@media (max-width: 699px) {
  .org-diagram { padding: 0.55rem; }
  .org-box { padding: 0.7rem; }
  .org-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0.55rem; gap: 0.4rem; }
  .org-area { gap: 0.4rem; padding: 0.4rem 0.4rem; }
  .org-area .ico { width: 26px; height: 26px; } .org-area .ico svg { width: 15px; height: 15px; }
  .org-area .nm { flex: 1 1 auto; min-width: 0; overflow-wrap: normal; word-break: normal; hyphens: manual; font-size: 0.8rem; }
}
@media (max-width: 699px) { .a2-name { font-size: 0.92rem; hyphens: manual; overflow-wrap: normal; } }
@media (max-width: 699px) {
  .legal table, .legal table.wide { display: block; overflow: visible; width: 100%; left: auto; transform: none; position: static; }
  .legal table thead { display: none; }
  .legal table tbody, .legal table tr, .legal table td, .legal table th { display: block; width: auto; }
  .legal table tr { margin: 0 0 0.8rem; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.7); }
  .legal table td, .legal table th { border: 0; padding: 0.25rem 0; }
  .legal table td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  .legal table tr:has(th[scope=row]) th, .legal table th[scope=row] { font-weight: 800; color: var(--heading); }
}

/* v4.1: a pillérek rövid szövege egérrel is látszik, a teljes szöveg kinyílik */
.pillar .pillar-lead { max-height: none; opacity: 1; overflow: visible; margin: 0 0 0.2rem; font-weight: 600; color: #fff; font-size: 1rem; }
.pillar:hover .pillar-lead, .pillar:focus-within .pillar-lead, .pillar.open .pillar-lead { display: none; }
@media (hover: none) { .pillar .pillar-lead { display: none; } }
.xp .xp-lead { max-height: none !important; opacity: 1 !important; overflow: visible !important; color: var(--heading); font-weight: 600; margin-bottom: 0.4rem; }
@media (min-width: 900px) { .xp.is-open .xp-lead { display: none; } }
@media (max-width: 899px) { .xp .xp-lead { display: none; } }

/* ===== v5: keresés, gyorsmenü, tagi vélemények, fejléc-gombok ===== */
.hdr-tools { display: flex; gap: 0.35rem; margin-left: auto; }
.hdr-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, 0.1); color: #fff; transition: background 0.25s, transform 0.3s var(--ease); }
.hdr-btn:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }
.hdr-btn svg { width: 20px; height: 20px; }
@media (max-width: 1019px) { .hdr-theme { display: none; } .nav-toggle { margin-left: 0.2rem; } }
@media (min-width: 1020px) { .hdr-tools { margin-left: 0; } }
.m-tools { display: grid; gap: 0.7rem; margin-top: 1rem; }
.m-tools .btn { --btn-fg: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); justify-content: center; }
.m-tools .btn svg { width: 1.15em; height: 1.15em; }
kbd { font: inherit; font-size: 0.82em; font-weight: 700; padding: 0.1em 0.5em; border-radius: 7px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--surface); color: var(--heading); }

.sx { position: fixed; inset: 0; z-index: 400; display: flex; justify-content: center; align-items: flex-start; padding: min(11vh, 100px) 1rem 1rem; }
.sx[hidden] { display: none; }
.sx-back { position: absolute; inset: 0; background: rgba(0, 15, 31, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.25s; }
.sx.is-open .sx-back { opacity: 1; }
.sx-panel { position: relative; width: min(700px, 100%); max-height: min(78vh, 740px); display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border-radius: 24px; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.75); border: 1px solid var(--line); opacity: 0; transform: translateY(-14px) scale(0.98); transition: opacity 0.25s, transform 0.35s var(--ease); }
.sx.is-open .sx-panel { opacity: 1; transform: none; }
.sx-form, .sxm-form { display: flex; align-items: center; gap: 0.7rem; }
.sx-form { padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
.sx-form > svg, .sxm-form > svg { flex: none; width: 22px; height: 22px; color: var(--cyan); }
.sx-input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.1rem; color: var(--ink); outline: none; padding: 0.5rem 0; -webkit-appearance: none; appearance: none; }
.sx-input::placeholder, .sxm-input::placeholder { color: var(--muted); opacity: 0.85; }
.sx-input::-webkit-search-cancel-button, .sxm-input::-webkit-search-cancel-button { display: none; }
.sx-x { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--ice); color: var(--heading); padding: 0; }
.sx-x svg { width: 18px; height: 18px; }
.sx-body { overflow: auto; padding: 0.6rem; flex: 1; overscroll-behavior: contain; }
.sx-item { display: flex; gap: 0.9rem; align-items: center; padding: 0.7rem 0.85rem; border-radius: 14px; text-decoration: none; color: inherit; transition: background 0.2s, transform 0.25s var(--ease); }
.sx-item:hover, .sx-item.is-sel { background: var(--cyan-100); }
.sx-item:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.sx-type { flex: none; min-width: 5.4rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-ink, #0a7f99); }
.sx-main { flex: 1; min-width: 0; display: block; }
.sx-main b { display: block; line-height: 1.25; color: var(--heading); }
.sx-main > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 0.88rem; line-height: 1.4; margin-top: 0.15rem; }
.sx-go { flex: none; color: var(--muted); } .sx-go svg { width: 18px; height: 18px; }
.sx-item:hover .sx-go, .sx-item.is-sel .sx-go { color: var(--cyan); transform: translateX(3px); }
mark { background: rgba(25, 180, 210, 0.3); color: inherit; border-radius: 3px; padding: 0 0.08em; }
.sx-more { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem; margin-top: 0.3rem; border-radius: 14px; font-weight: 800; text-decoration: none; color: var(--heading); background: var(--ice); }
.sx-more svg { width: 1em; height: 1em; }
.sx-empty { margin: 0; padding: 1rem 0.9rem 0.4rem; color: var(--muted); }
.sx-h { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0.5rem 0.4rem 0.6rem; }
.sx-qgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 0.8rem; }
@media (min-width: 640px) { .sx-qgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sx-qgrid a { display: block; padding: 0.8rem 0.9rem; border-radius: 14px; text-decoration: none; background: var(--ice); border: 1px solid var(--line); transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s; }
.sx-qgrid a:hover { transform: translateY(-2px); background: var(--cyan-100); border-color: var(--cyan); }
.sx-qgrid b { display: block; color: var(--heading); line-height: 1.2; }
.sx-qgrid span { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; line-height: 1.3; }
.sx-sug { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0.2rem 0.4rem; }
.sx-sug button, .sxm-chips button { padding: 0.5rem 0.95rem; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--heading); font-weight: 700; font-size: 0.9rem; transition: background 0.2s, transform 0.25s var(--ease); }
.sx-sug button:hover, .sxm-chips button:hover { background: var(--cyan-100); transform: translateY(-2px); }
.sx-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 1rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.sx-all { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 800; text-decoration: none; color: var(--heading); min-height: 36px; }
.sx-all svg { width: 1em; height: 1em; }
@media (hover: none), (max-width: 640px) { .sx-keys { display: none; } .sx-foot { justify-content: flex-end; } }
@media (max-width: 640px) {
  .sx { padding: 0.6rem; }
  .sx-panel { max-height: calc(100dvh - 1.2rem); border-radius: 20px; }
  .sx-input { font-size: 1rem; }
  .sx-item { align-items: flex-start; flex-wrap: wrap; gap: 0.2rem 0.8rem; }
  .sx-type { min-width: 0; width: 100%; }
  .sx-go { display: none; }
}

.sxm-sec { padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.sxm-box { max-width: 760px; margin: 0 auto; }
.sxm-form { padding: 0.55rem 0.6rem 0.55rem 1.1rem; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color 0.25s, box-shadow 0.25s; }
.sxm-form:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(25, 180, 210, 0.25), var(--shadow-sm); }
.sxm-input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.05rem; color: var(--ink); outline: none; padding: 0.6rem 0; -webkit-appearance: none; appearance: none; }
.sxm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1rem; justify-content: center; }
.sxm-chips .link-arrow { margin-left: 0.4rem; min-height: 40px; }
.sxm-res { margin-top: 0.8rem; background: var(--surface); border-radius: 22px; border: 1px solid var(--line); padding: 0.4rem; box-shadow: var(--shadow-sm); }
.sxm-res:empty { display: none; }
.sxm-hint { text-align: center; color: var(--muted); font-size: 0.9rem; margin: 1rem 0 0; }
@media (max-width: 640px) { .sxm-hint { display: none; } .sxm-form .btn { padding-inline: 1rem; } }
.sxp .sxm-form { margin-bottom: 1.2rem; }
.sxp-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; }
.sxp-chips .chip em { font-style: normal; opacity: 0.7; font-weight: 800; }
.sxp-count { color: var(--muted); margin: 0 0 0.8rem; }
.sxp-list { display: grid; gap: 0.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 0.5rem; box-shadow: var(--shadow-sm); }
.sxp-list:empty { display: none; }
.sx-quick--page { padding: 0.5rem; }

.tv-grid { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .tv-grid { grid-template-columns: repeat(3, 1fr); } }
.tv { position: relative; margin: 0; padding: 2rem 1.6rem 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1.1rem; }
.tv-q { position: absolute; right: 1.2rem; top: 1rem; width: 44px; height: 44px; color: var(--cyan); opacity: 0.22; }
.tv blockquote { margin: 0; font-size: 1.08rem; line-height: 1.6; color: var(--ink); font-weight: 500; position: relative; }
.tv figcaption { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.tv-ph { flex: none; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.tv-ini { display: grid; place-items: center; background: var(--grad-diag); color: #fff; font-weight: 800; letter-spacing: 0.03em; }
.tv figcaption b { display: block; color: var(--heading); line-height: 1.2; }
.tv figcaption small { display: block; color: var(--muted); font-size: 0.84rem; margin-top: 0.1rem; }
.tv-demo { align-self: flex-start; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25rem 0.6rem; border-radius: 999px; background: #fff2b8; color: #5a4300; }
.tv-cta { text-align: center; margin: 1.6rem 0 0; color: var(--muted); }
.tv-cta a { color: var(--heading); font-weight: 800; }
section[hidden] { display: none !important; }

/* ===== v5: SÖTÉT MÓD =====
   A téma a <html data-theme="dark|light"> attribútumból jön (alap: a rendszer beállítása, a fejléc gombjával váltható).
   A color-scheme nyilatkozat megakadályozza, hogy a telefon böngészője saját kényszersötétítést alkalmazzon. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --navy: #1d6aa5;
  --heading: #e3f3fa;
  --paper: #06121e;
  --ink: #dbe8f2;
  --muted: #9fb4c6;
  --ice: #0b1e2f;
  --cyan-100: #0f3447;
  --line: rgba(255, 255, 255, 0.13);
  --surface: #0e2234;
  --surface-2: #12293f;
  --cyan-ink: #7adbeb;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  --shadow-sm: 0 10px 30px -14px rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] body { background: #06121e; color: var(--ink); }
[data-theme="dark"] .section:not([class*="section--"]) { background: radial-gradient(900px 520px at 100% 0, rgba(25, 180, 210, 0.1), transparent 62%), radial-gradient(760px 460px at 0 100%, rgba(29, 106, 165, 0.12), transparent 62%), #08182a; }
[data-theme="dark"] .section:not([class*="section--"]):nth-of-type(even) { background: radial-gradient(900px 520px at 0 0, rgba(25, 180, 210, 0.1), transparent 62%), radial-gradient(760px 460px at 100% 100%, rgba(29, 106, 165, 0.12), transparent 62%), #06121e; }
[data-theme="dark"] .section--ice { background-color: #0a1d2e; background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1.3px, transparent 1.6px), radial-gradient(800px 420px at 88% 0, rgba(25, 180, 210, 0.14), transparent 65%); }
[data-theme="dark"] .section--mesh { background: radial-gradient(1000px 600px at 92% -8%, rgba(25, 180, 210, 0.2), transparent 60%), radial-gradient(900px 600px at -8% 32%, rgba(59, 111, 224, 0.16), transparent 60%), radial-gradient(800px 520px at 62% 112%, rgba(245, 165, 36, 0.07), transparent 60%), #07192b; }
[data-theme="dark"] .section--wash { background: linear-gradient(135deg, #0a2236 0%, #0a1d2e 55%, #0b2c3d 100%); }
[data-theme="dark"] .page-hero::after { background: #08182a; }
[data-theme="dark"] .page-hero--ice::after { background: #0a1d2e; }
[data-theme="dark"] .deco--0 i:last-child { border-color: rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .deco--1 i:first-child { background: radial-gradient(circle, rgba(29, 106, 165, 0.3), transparent 70%); }
[data-theme="dark"] .marquee { background: #003366; }

/* Felületek: kártyák, panelek, csempék */
[data-theme="dark"] :is(.card, .stat, .area-tab, .area-panel, .tl-dot, .chip, .ev, .mini-cal, .dlg, .eset-card, .year-tab, .year-panel, details.faq, .project, .step, .doc-search, .year-tile, .a2-chip, .a2-facts li, .a2-chk .box, .a2-tasks li, .gc-row, .field input, .field textarea, .field select, .arch-tab .dot, .xp, .org-diagram, .org-info, .tier, .perk, .doc-group, .reg, .link-tile, .a2-match, .a2-card, .a2-panel, .a2-chk, .tv, .sxm-form) { background: var(--surface); border-color: var(--line); color: var(--ink); }
[data-theme="dark"] :is(.xp, .org-diagram, .org-info, .tier, .doc-group, .reg, .link-tile, .a2-match, .a2-card, .a2-panel, .a2-chk, .perk) { background: rgba(14, 34, 52, 0.82); }
[data-theme="dark"] .section--dark .perk, [data-theme="dark"] .section--dark .stat { background: rgba(255, 255, 255, 0.07); color: #fff; }
[data-theme="dark"] :is(.area-tab .code, .area-learn, .photo, .ev-date, .gallery a, .doc-link, details.faq summary .pm, .legal th, .toc, .org-proj, .a2-check, .arch-panel, .tag, .gcount, .a2-ico, .a2-facts .fi, .mini-grid button.d, .legal table tr, .org-grid, .sx-more, .sx-x) { background: var(--cyan-100); color: var(--heading); }
[data-theme="dark"] .a2-check { background: linear-gradient(160deg, #0f3447, #0e2234); }
[data-theme="dark"] .arch-panel { background: linear-gradient(135deg, #0e2234, #0f3447); }
[data-theme="dark"] .a2-chk[aria-checked="true"] { background: #0f3b4f; }
[data-theme="dark"] .ev.is-hl { background: linear-gradient(135deg, #0e2234, #3a2d12); }
[data-theme="dark"] .ev-date { background: color-mix(in srgb, var(--c, #19b4d2) 22%, #0e2234); color: var(--heading); }
[data-theme="dark"] .mini-grid button.d { background: color-mix(in srgb, var(--c, #19b4d2) 30%, #0e2234); }
[data-theme="dark"] .mini-grid button.d:hover { background: var(--c, var(--cyan)); color: #001d3a; }
[data-theme="dark"] .badge { background: color-mix(in srgb, var(--c, var(--cyan)) 24%, #0e2234); color: color-mix(in srgb, var(--c, var(--cyan)) 35%, #fff); }
[data-theme="dark"] .doc-link .ico, [data-theme="dark"] .org-area .ico, [data-theme="dark"] .org-proj .ico { background: var(--surface-2); color: var(--heading); }
[data-theme="dark"] .org-proj .ico { color: #f5a524; }
[data-theme="dark"] :is(.org-tag, .org-node) { background: var(--surface); color: var(--heading); border-color: rgba(255, 255, 255, 0.35); }
[data-theme="dark"] :is(.org-tag.is-sel, .org-node.is-sel, .org-area.is-sel) { background: #1d6aa5; color: #fff; }
[data-theme="dark"] .org-boardbox { border-color: rgba(255, 255, 255, 0.35); background: linear-gradient(180deg, rgba(25, 180, 210, 0.12), rgba(255, 255, 255, 0.03)); }
[data-theme="dark"] .org-box { border-color: rgba(255, 255, 255, 0.22); }
[data-theme="dark"] .org-grid { border-color: rgba(255, 255, 255, 0.3); background: linear-gradient(180deg, rgba(25, 180, 210, 0.12), rgba(255, 255, 255, 0.03)); }
[data-theme="dark"] .org-area { background: transparent; color: var(--heading); }
@media (max-width: 699px) { [data-theme="dark"] .org-area { background: rgba(255, 255, 255, 0.06); border-color: var(--line); } [data-theme="dark"] .org-proj { background: var(--surface); } }
[data-theme="dark"] .org-cell::before, [data-theme="dark"] .org-cell::after { border-color: rgba(255, 255, 255, 0.28); }
[data-theme="dark"] .lg-area { background: var(--surface); box-shadow: inset 0 0 0 3px #7adbeb; }
[data-theme="dark"] .org-area.is-on:not(.is-sel) { background: rgba(25, 180, 210, 0.22); }
[data-theme="dark"] .a2-ring::before { background: var(--surface); }
[data-theme="dark"] .gc-ring { background: rgba(255, 255, 255, 0.04); border-color: #7adbeb; }
[data-theme="dark"] .gc-ring em { color: var(--heading); }
[data-theme="dark"] .year-tile em { background: #3a2d12; color: #ffd48a; }
[data-theme="dark"] .a2-proj span { background: #2f2410; border-color: #6b5320; color: #ffd8a0; }
[data-theme="dark"] .legal p, [data-theme="dark"] .legal li { color: var(--ink); }
[data-theme="dark"] .legal .todo, [data-theme="dark"] mark.todo { background: #4a3a05; color: #ffe8a0; }
[data-theme="dark"] .notice { background: var(--cyan-100); color: #cfeaf5; }
[data-theme="dark"] .field input, [data-theme="dark"] .field textarea, [data-theme="dark"] .field select { border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .field input::placeholder, [data-theme="dark"] .field textarea::placeholder { color: var(--muted); }
[data-theme="dark"] .tl-dot { border-color: var(--cyan); }
[data-theme="dark"] .arch-tab .dot { background: var(--surface); }

/* Elemek, amik szándékosan világosak maradnak (logók, fehér gombok, kép alatti hátterek) */
[data-theme="dark"] :is(.logo-card, .org-figure, .lb-img) { background: #fff; color: #003366; }
[data-theme="dark"] .chip-float { color: #003366; }
[data-theme="dark"] .tax-number .cp { color: #003366; }
[data-theme="dark"] .btn--white { --btn-fg: #003366; }

/* Gombok, linkek, részletek */
[data-theme="dark"] .btn--outline { --btn-fg: var(--heading); box-shadow: inset 0 0 0 2px rgba(227, 243, 250, 0.7); }
[data-theme="dark"] .btn--outline:hover { --btn-bg: #1d6aa5; --btn-fg: #fff; box-shadow: inset 0 0 0 2px #1d6aa5; }
[data-theme="dark"] .section--dark .btn--outline, [data-theme="dark"] .cta-band .btn--outline { --btn-fg: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
[data-theme="dark"] .eyebrow { color: var(--cyan-300); }
[data-theme="dark"] .legal a, [data-theme="dark"] .tv-cta a, [data-theme="dark"] .contact-list a { color: var(--cyan-300); }
[data-theme="dark"] .gcount, [data-theme="dark"] .tag { color: var(--heading); }
[data-theme="dark"] .a2-result b { background: linear-gradient(transparent 62%, rgba(25, 180, 210, 0.45) 0); }
[data-theme="dark"] .toc a, [data-theme="dark"] .toc ol { color: var(--heading); }
[data-theme="dark"] mark { background: rgba(25, 180, 210, 0.4); }
[data-theme="dark"] img { filter: brightness(0.92) contrast(1.02); }
[data-theme="dark"] .logo-card img, [data-theme="dark"] .org-figure img, [data-theme="dark"] .brand img, [data-theme="dark"] .tv-ph { filter: none; }
[data-theme="dark"] .hero-bg img, [data-theme="dark"] .section--photo img, [data-theme="dark"] .pillar > img { filter: brightness(0.85); }
[data-theme="dark"] .site-footer { background: #030a12; }
[data-theme="dark"] .skip-link { background: #1d6aa5; }
[data-theme="dark"] ::selection { background: rgba(25, 180, 210, 0.45); color: #fff; }
[data-theme="dark"] .toast { background: #12293f; color: #fff; }
[data-theme="dark"] .progress, [data-theme="dark"] .to-top { box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.8); }
[data-theme="dark"] .hdr-btn { background: rgba(255, 255, 255, 0.12); }
.org-chair { color: #00243f; }
[data-theme="dark"] .stat b { background: linear-gradient(135deg, #7adbeb 0%, #19b4d2 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] { --grad: linear-gradient(90deg, #3a8fd4 0%, #19b4d2 100%); --grad-diag: linear-gradient(135deg, #2a7bbf 0%, #19b4d2 100%); }
[data-theme="dark"] .month h3::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent); }
[data-theme="dark"] .year-tile b { background: linear-gradient(90deg, #7adbeb, #19b4d2); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* v5: kezdőlapi területválasztó (rövid) */
.aq { max-width: 880px; margin: 0 auto; text-align: center; }
.aq-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; }
.aq-chip { padding: 0.6rem 1.05rem; min-height: 44px; border-radius: 999px; border: 1.5px solid rgba(0, 51, 102, 0.18); background: #fff; font-weight: 700; font-size: 0.92rem; color: var(--heading); cursor: pointer; transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s; }
.aq-chip:hover { transform: translateY(-3px); border-color: var(--cyan); }
.aq-chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.aq-chip[aria-pressed="true"]::before { content: "✓ "; color: var(--cyan-300); }
.aq-out { margin: 1.4rem 0 0; min-height: 3rem; }
.aq-hint, .aq-note { margin: 0; color: var(--muted); font-size: 0.95rem; }
.aq-note { margin-top: 0.9rem; }
.aq-res { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); text-align: left; }
.aq-card { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.1rem; border-radius: 18px; text-decoration: none; background: #fff; border: 1px solid var(--line, rgba(0, 51, 102, 0.12)); box-shadow: var(--shadow); color: var(--ink); transition: transform 0.35s var(--ease); animation: rise 0.5s var(--ease); }
.aq-card:hover { transform: translateY(-4px); }
.aq-card .ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(25, 180, 210, 0.18); color: var(--navy); }
.aq-card .ico svg { width: 24px; height: 24px; }
.aq-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.aq-t b { color: var(--heading); font-size: 1.05rem; }
.aq-t span { color: var(--muted); font-size: 0.9rem; }
.aq-go svg { width: 20px; height: 20px; color: var(--cyan); }
.aq-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 1.4rem; }
[data-theme="dark"] .aq-chip, [data-theme="dark"] .aq-card { background: var(--surface); border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .aq-chip[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: #00243f; }
[data-theme="dark"] .aq-chip[aria-pressed="true"]::before { color: #00243f; }
[data-theme="dark"] .aq-card .ico { color: var(--cyan-300); }
@media (max-width: 699px) { .aq-foot .btn { width: 100%; justify-content: center; } }
