/* ============================================
   BARTI TIHAMÉR — bartitihamer.ro
   Apple-inspired minimal design system
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #FFFFFF;
  --black: #1D1D1F;
  --gray-dark: #424245;
  --gray: #86868B;
  --gray-light: #D2D2D7;
  --gray-bg: #F5F5F7;
  --accent: #0071E3;
  --accent-hover: #0077ED;
  --card-bg: #FBFBFD;
  --nav-height: 72px;
  --section-padding: 120px;
  --max-width: 1200px;
  --text-primary: #1D1D1F;
  --text-secondary: #86868B;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Elevation — réteges, lágy árnyékok (Stripe/Linear érzet) */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 6px rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.06), 0 18px 48px rgba(0,0,0,0.10);
  --shadow-xl: 0 8px 24px rgba(0,0,0,0.08), 0 32px 80px rgba(0,0,0,0.14);
  --shadow-accent: 0 8px 30px rgba(0,113,227,0.28);

  /* Radius-skála */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  /* Üveg (glass) */
  --glass-bg: rgba(255,255,255,0.72);
  --glass-border: rgba(0,0,0,0.07);

  /* Márka mesh színpontok */
  --mesh-blue-1: #0071E3;
  --mesh-blue-2: #00C2FF;
  --mesh-ink: #1D1D1F;
  --mesh-slate: #2C3E50;
  --mesh-ice: #5AC8FA;

  /* Finom szemcse (grain) — SVG feTurbulence data-URI */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
}

.hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section-eyebrow {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  color: var(--gray-dark);
  line-height: 1.5;
  max-width: 700px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

.text-white { color: var(--white); }
.text-white .section-eyebrow { color: rgba(255,255,255,0.6); }
.text-white .section-subtitle { color: rgba(255,255,255,0.75); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: scale(1.02);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-white {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.btn-white:hover {
  background: var(--white);
  color: var(--black);
}

.btn-arrow::after {
  content: '→';
  transition: transform var(--transition);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all var(--transition);
}

.nav--transparent {
  background: transparent;
}
/* Erős, magas sötét scrim — a logó és a menüpontok már betöltéskor olvashatók a fotón */
.nav--transparent::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(8,16,34,0.85) 0%, rgba(8,16,34,0.5) 42%, rgba(8,16,34,0) 100%);
  pointer-events: none;
  z-index: -1;
}

.nav--solid {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.nav--transparent .nav__logo {
  color: var(--white);
}
.nav__logo-img { height: 32px; display: block; }
/* Sötét navon (fehér háttér) a sötét körös logó; átlátszó navon (fotó) a fehér körös, hogy a BT mindig látszódjon */
.nav__logo-img--light { display: none; }
.nav--transparent .nav__logo-img--dark { display: none; }
.nav--transparent .nav__logo-img--light { display: block; }
.nav--transparent.is-scrolled .nav__logo-img--dark { display: block; }
.nav--transparent.is-scrolled .nav__logo-img--light { display: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-dark);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav--transparent .nav__links a {
  color: rgba(255,255,255,0.85);
}

.nav__links a:hover {
  color: var(--black);
}

.nav--transparent .nav__links a:hover {
  color: var(--white);
}

.nav__links a.active {
  color: var(--black);
}

/* Átlátszó navon (fotó fölött) az aktív menüpont is fehér legyen — különben a „Főoldal" eltűnik */
.nav--transparent .nav__links a.active {
  color: var(--white);
}

.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Mobile menu */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

.nav--transparent .nav__toggle span {
  background: var(--white);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--black);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  transition: transform 0.8s ease;
}

.hero__bg--gradient {
  background: linear-gradient(135deg, #1D1D1F 0%, #2C3E50 50%, #1D1D1F 100%);
  opacity: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 900px;
}

.hero__content .hero-title {
  color: var(--white);
  margin-bottom: 24px;
}

.hero__content .section-subtitle {
  color: rgba(255,255,255,0.7);
  margin: 0 auto 40px;
  font-size: clamp(18px, 2.5vw, 22px);
}

.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Page Hero (subpages) --- */
.page-hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  background: var(--gray-bg);
  text-align: center;
}

.page-hero--dark {
  background: var(--black);
  color: var(--white);
}

.page-hero--dark .section-subtitle {
  color: rgba(255,255,255,0.7);
}

/* --- Stats Section --- */
.stats {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat__number {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--black);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 15px;
  color: var(--gray);
  font-weight: 500;
}

/* --- Cards --- */
.cards-section {
  padding: var(--section-padding) 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--gray-bg);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  color: inherit;
}

.card__image {
  width: 100%;
  height: 240px;
  background: var(--gray-light);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--gray);
}

.card__body {
  padding: 28px;
}

.card__eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.card__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card__desc {
  font-size: 15px;
  color: var(--gray-dark);
  line-height: 1.6;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

.card__link::after {
  content: '→';
  transition: transform var(--transition);
}

.card:hover .card__link::after {
  transform: translateX(4px);
}

/* --- Feature Section (alternating) --- */
.feature {
  padding: var(--section-padding) 0;
}

.feature--gray {
  background: var(--gray-bg);
}

.feature--dark {
  background: var(--black);
  color: var(--white);
}

.feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature__grid--reverse {
  direction: rtl;
}

.feature__grid--reverse > * {
  direction: ltr;
}

.feature__image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 20px;
  background: var(--gray-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--gray);
}

.feature__content {
  max-width: 520px;
}

.feature__content .section-title {
  font-size: clamp(28px, 4vw, 44px);
}

.feature__content p {
  color: var(--gray-dark);
  margin-bottom: 24px;
  font-size: 17px;
  line-height: 1.65;
}

.feature--dark .feature__content p {
  color: rgba(255,255,255,0.7);
}

/* --- Timeline --- */
.timeline {
  padding: var(--section-padding) 0;
}

.timeline__items {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0;
  padding-left: 40px;
}

.timeline__items::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-light);
}

.timeline__item {
  position: relative;
  padding-bottom: 48px;
  padding-left: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.timeline__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline__date {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.timeline__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline__desc {
  font-size: 16px;
  color: var(--gray-dark);
  line-height: 1.6;
}

/* --- Quote / CTA Block --- */
.quote-block {
  padding: var(--section-padding) 0;
  background: var(--black);
  text-align: center;
}

.quote-block__text {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto 40px;
}

.quote-block__text em {
  font-style: normal;
  color: var(--accent);
}

/* --- News / Blog Grid --- */
.news-section {
  padding: var(--section-padding) 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.news-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: all var(--transition);
}

.news-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.news-card__image {
  height: 200px;
  background: var(--gray-bg);
  background-size: cover;
  background-position: center;
}

.news-card__body {
  padding: 24px;
}

.news-card__date {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
}

.news-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-top: 8px;
  line-height: 1.35;
}

.news-card__excerpt {
  font-size: 15px;
  color: var(--gray-dark);
  margin-top: 10px;
  line-height: 1.55;
}

/* --- Document / Download List --- */
.doc-list {
  max-width: 800px;
  margin: 48px auto 0;
}

.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-light);
  transition: all var(--transition);
}

.doc-item:hover {
  padding-left: 8px;
}

.doc-item__info {
  flex: 1;
}

.doc-item__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
}

.doc-item__meta {
  font-size: 14px;
  color: var(--gray);
  margin-top: 4px;
}

.doc-item__download {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* --- FAQ Section --- */
.faq-section {
  padding: var(--section-padding) 0;
}

.faq-list {
  max-width: 800px;
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--gray-light);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.faq-item__question::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--gray);
  transition: transform var(--transition);
}

.faq-item.is-open .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.is-open .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer p {
  padding-bottom: 24px;
  color: var(--gray-dark);
  font-size: 16px;
  line-height: 1.65;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 48px auto 0;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--gray-light);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Footer --- */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 15px;
  line-height: 1.55;
  max-width: 300px;
}

.footer__heading {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  transition: color var(--transition);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  transition: all var(--transition);
  text-decoration: none;
}

.footer__social a:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* --- Utility --- */
.section-header {
  margin-bottom: 48px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }

/* --- Persons Grid --- */
.persons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.person-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--gray-bg);
  border-radius: 20px;
  transition: all var(--transition);
}

.person-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.person-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gray-light);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--gray);
}

.person-card__name {
  font-size: 18px;
  font-weight: 700;
}

.person-card__role {
  font-size: 14px;
  color: var(--gray);
  margin-top: 4px;
}

/* --- Projects Grid --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.project-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: all var(--transition);
}

.project-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.project-card__image {
  height: 200px;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--gray);
}

.project-card__body {
  padding: 24px;
}

.project-card__tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.project-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-card__stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-light);
}

.project-card__stat {
  text-align: center;
}

.project-card__stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
}

.project-card__stat-label {
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Newsletter form in footer --- */
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 980px;
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: 14px;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.4);
}

.newsletter-form button {
  padding: 12px 24px;
  border-radius: 980px;
  background: var(--accent);
  color: var(--white);
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.newsletter-form button:hover {
  background: var(--accent-hover);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature__grid--reverse {
    direction: ltr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --nav-height: 64px;
  }

  body {
    font-size: 16px;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    font-size: 20px;
    color: var(--black) !important;
  }

  .nav__toggle {
    display: block;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .cards-grid,
  .news-grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .timeline__items {
    padding-left: 24px;
  }

  .timeline__item {
    padding-left: 24px;
  }

  .timeline__item::before {
    left: -28px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .stat__number {
    font-size: 36px;
  }

  .hero-title {
    font-size: 36px;
  }
}

/* ============================================
   PREMIUM FEJLESZTÉSEK
   ============================================ */

/* --- Accessibility: Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* --- Focus Visible (accessibility) --- */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

/* --- Reduced Motion --- */
@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;
  }
  .fade-in { opacity: 1; transform: none; }
  .timeline__item { opacity: 1; transform: none; }
}

/* --- Additional Animation Variants --- */
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.scale-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Button Active States --- */
.btn:active {
  transform: scale(0.97);
}

.btn-primary:active {
  background: #005BB5;
}

/* --- Nav Links Animated Underline --- */
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: left var(--transition), right var(--transition);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  left: 0;
  right: 0;
}

/* Override old static active::after */
.nav__links a.active::after {
  left: 0;
  right: 0;
}

/* --- Mobile Menu Slide Animation --- */
@media (max-width: 768px) {
  .nav__links {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }

  .nav__links.is-open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav__links li {
    text-align: center;
  }

  .nav__links a::after {
    bottom: -6px;
    left: 50% !important;
    right: 50% !important;
  }

  .nav__links a.active::after,
  .nav__links a:hover::after {
    left: 20% !important;
    right: 20% !important;
  }

  /* Hamburger to X animation */
  .nav__toggle.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav__toggle.is-open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }
  .nav__toggle.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Bigger touch target for mobile */
  .nav__toggle {
    padding: 14px;
    margin: -14px;
  }
}

/* --- Card Hover Micro-Interactions --- */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  pointer-events: none;
}

.card {
  position: relative;
}

.card:hover::after {
  border-color: var(--accent);
}

/* --- News Card Link Indicator --- */
.news-card {
  cursor: pointer;
  position: relative;
}

.news-card::after {
  content: '→';
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-size: 18px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
}

.news-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 1001;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,113,227,0.3);
}

/* --- Cookie Consent Banner --- */
/* Süti-modál — teljes képernyős, elkerülhetetlen (a tartalmat lefedi) */
.cookie-banner {
  position: fixed; inset: 0; z-index: 10050;
  background: rgba(8,16,34,0.65);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner__card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 48px); max-width: 540px; width: 100%;
  text-align: center; box-shadow: var(--shadow-xl);
  animation: cookiePop 0.4s var(--ease-out);
}
@keyframes cookiePop { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
.cookie-banner__step[hidden] { display: none; }
.cookie-banner__logo { margin-bottom: 18px; }
.cookie-banner__logo img { height: 46px; display: inline-block; }
.cookie-banner__eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 8px; }
.cookie-banner__title { font-size: clamp(22px, 3.5vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.cookie-banner__text { font-size: 15px; color: var(--gray-dark); line-height: 1.6; margin: 0 auto 24px; max-width: 430px; }
.cookie-banner__text a { color: var(--accent); text-decoration: underline; }
.cookie-banner__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cookie-banner__btn {
  padding: 13px 26px; border-radius: 980px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: all var(--transition);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.cookie-banner__btn--accept { background: var(--accent); color: var(--white); box-shadow: var(--shadow-accent); }
.cookie-banner__btn--accept:hover { background: var(--accent-hover); color: var(--white); transform: translateY(-1px); }
.cookie-banner__btn--decline { background: var(--gray-bg); color: var(--black); }
.cookie-banner__btn--decline:hover { background: var(--gray-light); }
.cookie-banner__link { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--gray); text-decoration: underline; }
@media (max-width: 480px) { .cookie-banner__buttons { flex-direction: column; } .cookie-banner__btn { width: 100%; justify-content: center; } }

/* --- Footer Heading Contrast Fix --- */
.footer__heading {
  color: rgba(255,255,255,0.55);
}

/* --- Social Icons SVG --- */
.footer__social a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Timeline Line Draw Animation --- */
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-light);
  transform-origin: top;
  animation: lineGrow 1.5s ease forwards;
}

@keyframes lineGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* --- Smooth Image Loading --- */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"][complete] {
  opacity: 1;
}

/* --- Print Styles --- */
@media print {
  .nav, .footer, .cookie-banner, .back-to-top, .scroll-progress,
  .hero__buttons, .newsletter-form, .skip-link { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .hero, .page-hero { min-height: auto; padding: 40px 0; }
  .section-title { font-size: 24pt; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}

/* ============================================
   PHASE 2 — PRÉMIUM VIZUÁLIS EMELÉS
   ============================================ */

/* --- Anyaghasználat: réteges árnyékok --- */
.card { border: 1px solid rgba(0,0,0,0.05); transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card { transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out); }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card { transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.person-card { transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out); }
.person-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.btn-primary { box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-accent); transform: translateY(-2px) scale(1.01); }
.nav--solid { background: var(--glass-bg); border-bottom: 1px solid var(--glass-border); }

/* --- .media: megtervezett kép-placeholder rendszer --- */
.media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gray-bg);
  isolation: isolate;
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--3x2  { aspect-ratio: 3 / 2; }
.media--3x2  { aspect-ratio: 3 / 2; }

/* Gradient-mesh variánsok (CSS-natív, felbontásfüggetlen) */
.media--mesh-blue {
  background-color: #0a2540;
  background-image:
    radial-gradient(60% 70% at 18% 22%, rgba(0,194,255,0.85) 0%, rgba(0,194,255,0) 60%),
    radial-gradient(55% 65% at 85% 18%, rgba(0,113,227,0.85) 0%, rgba(0,113,227,0) 62%),
    radial-gradient(70% 80% at 75% 90%, rgba(10,37,64,0.95) 0%, rgba(10,37,64,0) 65%),
    radial-gradient(60% 60% at 30% 95%, rgba(90,200,250,0.55) 0%, rgba(90,200,250,0) 60%);
}
.media--mesh-slate {
  background-color: #1d1d1f;
  background-image:
    radial-gradient(60% 70% at 22% 20%, rgba(70,90,120,0.9) 0%, rgba(70,90,120,0) 60%),
    radial-gradient(55% 65% at 82% 30%, rgba(44,62,80,0.95) 0%, rgba(44,62,80,0) 62%),
    radial-gradient(70% 80% at 78% 88%, rgba(0,113,227,0.45) 0%, rgba(0,113,227,0) 65%);
}
.media--mesh-ice {
  background-color: #eaf4ff;
  background-image:
    radial-gradient(60% 70% at 20% 25%, rgba(90,200,250,0.55) 0%, rgba(90,200,250,0) 60%),
    radial-gradient(55% 65% at 85% 20%, rgba(0,113,227,0.35) 0%, rgba(0,113,227,0) 62%),
    radial-gradient(70% 80% at 75% 92%, rgba(0,194,255,0.30) 0%, rgba(0,194,255,0) 65%);
}

/* Grain overlay */
.media::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 180px 180px;
  opacity: 0.10;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}
.media--mesh-ice::after { mix-blend-mode: multiply; opacity: 0.06; }

/* Monogram vízjel */
.media__mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: clamp(48px, 9vw, 104px);
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.13);
  z-index: 1;
  user-select: none;
}
.media--mesh-ice .media__mark { color: rgba(0,71,128,0.12); }

/* Opcionális ikon a mesh fölött */
.media__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(40px, 6vw, 64px);
  z-index: 2;
  opacity: 0.92;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.25));
}

/* Felirat-sáv */
.media__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 28px 20px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
}
.media--mesh-ice .media__caption { color: #0a2540; background: linear-gradient(to top, rgba(255,255,255,0.7), rgba(255,255,255,0)); }

/* Valódi fotó behelyezése (blur-up): a csapat csak data-src-t tölt ki */
.media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transform: scale(1.04);
  filter: blur(12px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
}
.media__img.loaded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
.media.has-photo .media__mark,
.media.has-photo .media__icon { opacity: 0; transition: opacity 0.6s ease; }

/* --- Hero upgrade: mesh + grain + parallax + scroll-jelző --- */
.hero__bg--mesh {
  opacity: 1;
  background-color: #0a1a2f;
  background-image:
    radial-gradient(50% 60% at 15% 20%, rgba(0,194,255,0.45) 0%, rgba(0,194,255,0) 60%),
    radial-gradient(50% 55% at 88% 12%, rgba(0,113,227,0.50) 0%, rgba(0,113,227,0) 62%),
    radial-gradient(65% 75% at 80% 95%, rgba(10,26,47,0.95) 0%, rgba(10,26,47,0) 60%),
    radial-gradient(55% 60% at 25% 100%, rgba(44,62,80,0.85) 0%, rgba(44,62,80,0) 60%);
  will-change: transform;
}
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,16,34,0.55) 0%, rgba(8,16,34,0.45) 35%, rgba(8,16,34,0.78) 100%),
    radial-gradient(120% 80% at 50% 0%, rgba(0,113,227,0.18), rgba(0,0,0,0) 60%);
}
.hero__grain {
  position: absolute;
  inset: -10%;
  z-index: 2;
  background-image: var(--grain);
  background-size: 200px 200px;
  opacity: 0.09;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero__video.loaded { opacity: 0.55; }
.hero__content { z-index: 3; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 4;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.scroll-cue::before {
  content: '';
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255,255,255,0.8);
  animation: scrollCue 1.8s var(--ease-out) infinite;
}
@keyframes scrollCue {
  0% { opacity: 0; transform: translateY(-4px); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}

/* --- Tipográfia csiszolás --- */
.section-subtitle { max-width: 62ch; }
.feature__content p { max-width: 58ch; }
.quote-block__text {
  font-size: clamp(26px, 4.2vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-wrap: balance;
}
.hero-title, .section-title { text-wrap: balance; }
.stat__number { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* --- Stat forrás-felirat (hitelesség) --- */
.stat__source {
  font-size: 12px;
  color: var(--gray-light);
  margin-top: 6px;
  letter-spacing: 0.01em;
}
.text-white .stat__source,
.page-hero--dark .stat__source { color: rgba(255,255,255,0.45); }

/* --- ⭐ Scroll-vezérelt idővonal --- */
.story {
  position: relative;
  background: var(--black);
  color: var(--white);
}
.story__sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.story__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.story__visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.story__visual .media {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
}
.story__visual .media.is-active { opacity: 1; transform: scale(1); }

.story__steps { position: relative; }
.story__progress {
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px;
  background: rgba(255,255,255,0.14);
}
.story__progress-fill {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 0%;
  background: var(--accent);
  transition: height 0.2s linear;
}
.story__step {
  position: relative;
  padding: 18px 0 18px 32px;
  opacity: 0.32;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.story__step::before {
  content: '';
  position: absolute;
  left: -5px; top: 26px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 3px solid var(--black);
  transition: background 0.4s, box-shadow 0.4s, transform 0.4s;
}
.story__step.is-active {
  opacity: 1;
  transform: translateX(2px);
}
.story__step.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,113,227,0.25);
  transform: scale(1.15);
}
.story__step-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.story__step-title { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; margin: 6px 0 8px; }
.story__step-desc { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.6; max-width: 46ch; }
.story__eyebrow { color: rgba(255,255,255,0.55); margin-bottom: 12px; }
.story__heading { font-size: clamp(28px, 4vw, 44px); margin-bottom: 36px; }

@media (max-width: 900px) {
  .story__inner { grid-template-columns: 1fr; gap: 32px; }
  .story__visual { display: none; }
  .story__sticky { position: relative; min-height: auto; padding: 80px 0; }
}

/* --- Branded loader --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__mark {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  color: var(--black);
  letter-spacing: -0.03em;
  animation: loaderPulse 1.4s var(--ease-out) infinite;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.25); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(255,255,255,0); }
}

/* --- Page transition (lágy fade) --- */
.page-fade {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
}
.page-fade.is-active { opacity: 1; visibility: visible; }

/* --- Reduced motion: minden pin/parallax kikapcsol --- */
/* Szószóló-avatarok: prémium gradient-chip */
.person-card__avatar {
  background: linear-gradient(135deg, #2C3E50, #1D1D1F);
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm);
}

@media (prefers-reduced-motion: reduce) {
  .story__sticky { position: relative; min-height: auto; padding: 80px 0; }
  .story__step { opacity: 1; }
  .story__visual .media { opacity: 1; transform: none; }
  .scroll-cue, .loader__mark { animation: none; }
  .hero__bg--mesh { transform: none !important; }
}

/* ============================================
   FOTÓGALÉRIA + LIGHTBOX + PAGE-HERO FOTÓ
   ============================================ */
.gallery { padding: var(--section-padding) 0; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 12px;
  margin-top: 44px;
}
.gallery__item {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-bg);
  box-shadow: var(--shadow-sm);
  border: none;
  padding: 0;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), rgba(0,0,0,0) 45%);
  opacity: 0; transition: opacity 0.3s;
}
.gallery__item:hover::after { opacity: 1; }
/* Néhány elem nagyobb — vizuális ritmus */
.gallery__item--wide { grid-column: span 2; aspect-ratio: 3 / 2; }
@media (max-width: 900px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery__item--wide { grid-column: span 2; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(0,0,0,0.93);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox img {
  max-width: 92vw; max-height: 86vh;
  border-radius: 8px; box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}
.lightbox__btn {
  position: absolute; background: rgba(255,255,255,0.12);
  color: #fff; border: none; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 22px; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; backdrop-filter: blur(6px);
}
.lightbox__btn:hover { background: rgba(255,255,255,0.28); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500;
}
@media (max-width: 600px) {
  .lightbox__prev { left: 8px; } .lightbox__next { right: 8px; }
  .lightbox__btn { width: 42px; height: 42px; }
}

/* Page-hero háttérfotó */
.page-hero--photo { position: relative; overflow: hidden; }
.page-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.page-hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,16,34,0.62) 0%, rgba(8,16,34,0.72) 60%, rgba(10,20,40,0.85) 100%);
}
.page-hero--photo .container { position: relative; z-index: 1; }

/* ============================================
   CÉLKERESZTBEN — leírás, PDF-nézegető, dok-sorok
   ============================================ */
/* Szerkeszthető prózablokk */
.prose { max-width: 780px; margin: 0 auto; }
.prose .section-title { margin-bottom: 20px; }
.prose__h { font-size: 22px; font-weight: 700; margin: 38px 0 10px; letter-spacing: -0.01em; }
.prose p { color: var(--gray-dark); margin-bottom: 14px; line-height: 1.75; }
.prose__note {
  background: rgba(0,113,227,0.06);
  border-left: 3px solid var(--accent);
  padding: 16px 20px; border-radius: 0 12px 12px 0;
  margin-top: 24px; font-weight: 500; color: var(--text-primary);
}

/* Beágyazott PDF-nézegető */
.docview { padding: var(--section-padding) 0; background: var(--gray-bg); }
.docview__frame {
  position: relative;
  width: 100%; max-width: 1000px;
  height: 82vh; min-height: 540px;
  margin: 44px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #525659;
}
.docview__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.docview__bar { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.docview__hint { text-align: center; margin-top: 14px; font-size: 13px; color: var(--gray); }
@media (max-width: 600px) {
  .docview__frame { height: 68vh; min-height: 440px; }
}

/* Dokumentum-sorok */
.doc-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; margin-bottom: 12px;
  border: 1px solid var(--gray-light); border-radius: var(--radius-md);
  text-decoration: none; color: var(--text-primary);
  background: var(--white);
  transition: all var(--transition);
}
.doc-row:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--text-primary); }
.doc-row__icon { font-size: 24px; }
.doc-row__info { flex: 1; display: flex; flex-direction: column; }
.doc-row__title { font-weight: 600; }
.doc-row__meta { font-size: 14px; color: var(--text-secondary); margin-top: 2px; }
.doc-row__action { font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.doc-row--soon { opacity: 0.6; cursor: default; }
.doc-row--soon:hover { border-color: var(--gray-light); box-shadow: none; transform: none; }

/* Állapotfrissítés-sorok */
.status-item { padding: 16px; background: var(--white); border-radius: 12px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.status-item__date { font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; }
.status-item__text { font-weight: 500; }

/* ============================================
   CSATLAKOZZ (mozgósító űrlap)
   ============================================ */
.join { padding: var(--section-padding) 0; }
.join__card {
  background: linear-gradient(135deg, #0a1a2f, #1d1d1f);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 60px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  box-shadow: var(--shadow-xl); position: relative; overflow: hidden;
}
.join__card::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); background-size: 200px; opacity: 0.06; mix-blend-mode: overlay; pointer-events: none; }
.join__intro { position: relative; z-index: 1; }
.join__intro .section-eyebrow { color: var(--mesh-blue-2); }
.join__intro .section-title { color: #fff; }
.join__intro p { color: rgba(255,255,255,0.72); }
.join-form { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.join-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.join-form input[type=text], .join-form input[type=email] {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06);
  color: #fff; font-size: 15px; font-family: inherit; outline: none; transition: all var(--transition);
}
.join-form input::placeholder { color: rgba(255,255,255,0.5); }
.join-form input:focus { border-color: var(--accent); background: rgba(255,255,255,0.1); }
.join-form__check { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.82); font-size: 14px; cursor: pointer; }
.join-form__check input { width: 18px; height: 18px; accent-color: var(--accent); }
.join-form button { align-self: flex-start; margin-top: 6px; }
.join-form__note { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 2px; }
@media (max-width: 820px) {
  .join__card { grid-template-columns: 1fr; gap: 28px; }
  .join-form__row { grid-template-columns: 1fr; }
}

/* ============================================
   FACEBOOK FEED (kattintásra betöltődő, GDPR-barát)
   ============================================ */
.fbfeed { padding: var(--section-padding) 0; }
.fbfeed__embed { max-width: 520px; margin: 44px auto 0; display: flex; justify-content: center; }
.fbfeed__load {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 100%; max-width: 520px; padding: 48px 24px;
  border: 1.5px dashed var(--gray-light); border-radius: var(--radius-lg);
  background: var(--gray-bg); cursor: pointer; font-family: inherit;
  font-size: 16px; font-weight: 600; color: var(--text-primary); transition: all var(--transition);
}
.fbfeed__load:hover { border-color: var(--accent); background: #fff; box-shadow: var(--shadow-md); }
.fbfeed__note { font-size: 12px; font-weight: 400; color: var(--text-secondary); }
.fbfeed .fb-page, .fbfeed iframe { border-radius: var(--radius-lg); overflow: hidden; }

/* ============================================
   NYELVVÁLTÓ (HU / RO / EN)
   ============================================ */
.lang-switch {
  display: inline-flex; gap: 2px; margin-left: 18px;
  background: rgba(0,0,0,0.05); border-radius: 100px; padding: 3px;
}
.nav--transparent .lang-switch { background: rgba(255,255,255,0.15); }
.lang-switch button {
  border: none; background: none; cursor: pointer; font-family: inherit;
  font-size: 12px; font-weight: 600; color: var(--gray-dark);
  padding: 5px 9px; border-radius: 100px; transition: all var(--transition); line-height: 1;
}
.nav--transparent .lang-switch button { color: rgba(255,255,255,0.82); }
.lang-switch button:hover { color: var(--black); }
.nav--transparent .lang-switch button:hover { color: #fff; }
.lang-switch button.is-active { background: var(--white); color: var(--black); box-shadow: var(--shadow-sm); }
.nav--transparent .lang-switch button.is-active { background: var(--white); color: var(--black); }
@media (max-width: 768px) { .lang-switch { margin-left: auto; margin-right: 8px; } }

/* ============================================
   VAGYON- ÉS ÉRDEKNYILATKOZATOK (ANI)
   ============================================ */
.declar {
  margin-top: 24px; padding: 20px 22px;
  background: var(--gray-bg); border-radius: var(--radius-md);
  border: 1px solid var(--gray-light);
}
.declar__title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.declar__desc { font-size: 14px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 14px; }
.declar__links { display: flex; flex-wrap: wrap; gap: 8px; }
.declar__links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: rgba(0,113,227,0.07); padding: 8px 13px; border-radius: 100px;
  transition: all var(--transition);
}
.declar__links a:hover { background: var(--accent); color: #fff; }

/* Hero háttér lágy átúsztatás (dinamikus váltakozó fotók) */
.hero__photo { transition: opacity 1.4s ease; }

/* ============================================
   KATEGÓRIA-KÁRTYÁK (háttérfotós, kattintható kategóriák)
   ============================================ */
.cat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.cat-card {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  display: flex; align-items: flex-end; background-size: cover; background-position: center;
  background-color: var(--mesh-slate); box-shadow: var(--shadow-md); cursor: pointer;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.cat-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,16,34,0.82) 0%, rgba(8,16,34,0.15) 55%, rgba(8,16,34,0.05) 100%);
  transition: background 0.35s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card:hover::after { background: linear-gradient(to top, rgba(0,113,227,0.8) 0%, rgba(8,16,34,0.25) 70%); }
.cat-card__label { position: relative; z-index: 1; color: #fff; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.02em; padding: 26px; }
@media (max-width: 768px) { .cat-cards { grid-template-columns: 1fr; } .cat-card { aspect-ratio: 16 / 9; } }

/* ============================================
   KOMPAKT OLDALAK (Célkeresztben, Kapcsolat) — kevésbé szellős térközök
   ============================================ */
main.tight { --section-padding: 60px; }
main.tight .page-hero { padding: calc(var(--nav-height) + 36px) 0 36px; }
main.tight .section-header { margin-bottom: 0; }
main.tight .mt-48 { margin-top: 32px; }
@media (max-width: 768px) {
  main.tight { --section-padding: 40px; }
  main.tight .page-hero { padding: calc(var(--nav-height) + 24px) 0 24px; }
}

/* Portré-képarányok + fej-levágás elkerülése (object-position) */
.media--2x3 { aspect-ratio: 2 / 3; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--top .media__img { object-position: center top; }

/* ============================================
   CÉLKERESZTBEN — VÉDELEM (gazdag formázás)
   ============================================ */
.prose__lead {
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.62;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 26px;
}
.prose__highlight {
  background: rgba(0,113,227,0.06);
  border: 1px solid rgba(0,113,227,0.16);
  border-left: 4px solid var(--accent);
  border-radius: 0 16px 16px 0;
  padding: 22px 26px;
  margin: 28px 0;
}
.prose__highlight p { margin-bottom: 12px; color: var(--text-primary); }
.prose__highlight p:last-child { margin-bottom: 0; }
.prose__highlight strong { color: var(--accent); }

.defense-pillar {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 30px 32px 26px;
  margin: 26px 0;
}
.defense-pillar__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.defense-pillar__num {
  flex: none;
  font-size: 30px; font-weight: 800; color: var(--accent);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.defense-pillar__title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.defense-pillar__sub { display: block; font-size: 14px; font-weight: 500; color: var(--text-secondary); margin-top: 3px; }
.defense-pillar > p { color: var(--gray-dark); line-height: 1.7; }

.defense-point { border-top: 1px solid var(--gray-light); padding-top: 18px; margin-top: 18px; }
.defense-point__lead { display: block; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.defense-point p { margin-bottom: 0; color: var(--gray-dark); line-height: 1.7; }

.prose__summary {
  background: var(--text-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  margin-top: 34px;
}
.prose__summary h3 { color: #fff; font-size: 20px; margin-bottom: 12px; letter-spacing: -0.01em; }
.prose__summary p { color: rgba(255,255,255,0.84); margin-bottom: 0; line-height: 1.7; }

@media (max-width: 600px) {
  .defense-pillar { padding: 24px 22px 22px; }
  .prose__summary { padding: 26px 24px; }
}

/* ===== Célkeresztben — személyes üzenet kiemelt sorai ===== */
.feature__content .bevezeto-stat {
  font-size: clamp(19px, 2.3vw, 23px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 6px 0 16px;
  line-height: 1.35;
}
.bevezeto-stat__num { color: var(--accent); font-weight: 800; }
.feature__content .bevezeto-closer {
  font-weight: 700;
  color: var(--accent);
  margin: 18px 0 0;
  font-size: 17px;
}
