:root {
  --bg: #050505;
  --bg-2: #0b0b0d;
  --card: rgba(255,255,255,.045);
  --card-strong: rgba(255,255,255,.065);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.15);
  --red: #ff1f2d;
  --red-2: #ff4350;
  --blue: #1e6bff;
  --blue-2: #59a3ff;
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow-red: 0 0 46px rgba(255, 31, 45, 0.2);
  --shadow-blue: 0 0 70px rgba(30, 107, 255, 0.24);
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 31, 45, 0.16), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(255, 31, 45, 0.08), transparent 28%),
    radial-gradient(circle at 68% 82%, rgba(30, 107, 255, 0.06), transparent 30%),
    linear-gradient(180deg, #050505 0%, #08080a 45%, #050505 100%);
}
.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 78%);
  opacity: .42;
}

.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.narrow { max-width: 900px; }
.section { padding: 112px 0; }
.section-xl { padding: 150px 0 92px; }
.slim-section { padding: 72px 0; }
.compact-top { padding-top: 92px; }

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 790px;
  font-size: clamp(3.2rem, 8vw, 7.9rem);
  line-height: .92;
  letter-spacing: -0.075em;
  margin-bottom: 34px;
}
h2 {
  font-size: clamp(2.05rem, 4.1vw, 4.15rem);
  line-height: 1;
  letter-spacing: -0.055em;
  margin-bottom: 26px;
}
h3 {
  font-size: clamp(1.18rem, 1.55vw, 1.48rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}
p { color: var(--muted); font-size: 1.02rem; }

.section-label, .eyebrow, .small-label, .card-label, .micro-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red-2);
  font-size: .76rem;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 850;
  margin-bottom: 18px;
}
.section-label::before, .eyebrow::before, .card-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}
.blue-label { color: var(--blue-2); }
.section-intro { font-size: clamp(1.04rem, 1.55vw, 1.2rem); max-width: 860px; }

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  padding: 11px 14px 11px 22px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  background: rgba(5,5,5,.68);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  gap: 28px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  background: rgba(5,5,5,.88);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 18px 80px rgba(0,0,0,.34);
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { width: 118px; height: auto; object-fit: contain; }
.footer-brand .brand-logo { width: 150px; }

.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.main-nav a { color: rgba(244,244,245,.76); font-size: .92rem; transition: color .18s ease; }
.main-nav a:hover { color: #fff; }
.mobile-menu-cta { display: none !important; }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 28px rgba(255,31,45,.24);
  color: #fff;
  font-size: .92rem;
  font-weight: 780;
}
.menu-toggle { display: none; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .86fr);
  gap: 78px;
  align-items: center;
  min-height: calc(100vh - 260px);
}
.hero-lead { max-width: 760px; font-size: clamp(1.06rem, 1.65vw, 1.3rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 0 34px rgba(255,31,45,.27); }
.btn-primary:hover { background: var(--red-2); box-shadow: 0 0 44px rgba(255,31,45,.36); }
.btn-secondary { border: 1px solid rgba(255,255,255,.16); color: #fff; background: rgba(255,255,255,.035); }
.btn-secondary:hover { border-color: rgba(255,255,255,.34); }
.btn-blue { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: var(--shadow-blue); }

.hero-visual { position: relative; border-radius: var(--radius-xl); isolation: isolate; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -8% -8% 12%;
  background: radial-gradient(circle, rgba(255,31,45,.24), transparent 62%);
  filter: blur(16px);
  z-index: -1;
}
.hero-visual img {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: 0 44px 110px rgba(0,0,0,.5), var(--shadow-red);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .55fr);
  gap: 88px;
  align-items: end;
  margin-bottom: 54px;
}
.section-head p { font-size: 1.04rem; }

.pillar-grid, .services-grid, .portfolio-grid { display: grid; gap: 26px; }
.pillar-grid { grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
.glass-card, .service-card, .project-card, .contact-form {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.024));
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 80px rgba(0,0,0,.25);
}
.pillar-card { min-height: 245px; padding: 34px; position: relative; overflow: hidden; }
.pillar-card::after, .service-card::after {
  content: "";
  position: absolute;
  inset: auto 28px 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,31,45,.72), transparent);
  opacity: .58;
}
.card-label { margin-bottom: 30px; }

.services-grid { grid-template-columns: repeat(2, 1fr); }
.service-card {
  position: relative;
  min-height: 270px;
  padding: 34px;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,31,45,.42);
  background: linear-gradient(180deg, rgba(255,255,255,.078), rgba(255,255,255,.03));
  box-shadow: 0 32px 95px rgba(0,0,0,.34), 0 0 36px rgba(255,31,45,.10);
}
.service-topline { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.service-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,31,45,.4);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,31,45,.06);
  box-shadow: 0 0 22px rgba(255,31,45,.12);
}
.service-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--red-2); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.micro-label { margin: 0; }
.service-card p { max-width: 620px; margin-bottom: 28px; }
.card-cta {
  margin-top: auto;
  color: #fff;
  font-weight: 850;
  font-size: .94rem;
  display: inline-flex;
  width: fit-content;
  transition: color .18s ease, transform .18s ease;
}
.service-card:hover .card-cta { color: var(--red-2); transform: translateX(4px); }

.situations {
  padding: 54px 60px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.03);
}
.situations h2 { max-width: 820px; }
.situations p { max-width: 820px; }
.tag-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tag-grid span, .education-tags span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 0 17px;
  color: rgba(244,244,245,.86);
  background: rgba(255,255,255,.035);
  font-size: .94rem;
}

.process-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  padding: 56px 0 34px;
}
.process-flow::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 112px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,31,45,.85), rgba(255,31,45,.18), rgba(255,31,45,.85), transparent);
  transform: rotate(-2deg);
  box-shadow: 0 0 24px rgba(255,31,45,.22);
  pointer-events: none;
}
.process-flow article {
  position: relative;
  padding: 0 8px;
  min-height: 245px;
  z-index: 1;
}
.process-flow article:nth-child(even) { margin-top: 82px; }
.process-dot {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  border: 1px solid rgba(255,31,45,.55);
  background: #070709;
  color: var(--red-2);
  font-weight: 900;
  letter-spacing: .08em;
  font-size: .76rem;
  box-shadow: 0 0 22px rgba(255,31,45,.20);
}
.process-flow h3 { font-size: clamp(1.05rem, 1.4vw, 1.28rem); }
.process-flow p { font-size: .95rem; }

.portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.project-card { overflow: hidden; min-height: 405px; display: flex; flex-direction: column; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.project-card:hover { transform: translateY(-5px); border-color: rgba(255,31,45,.36); box-shadow: 0 34px 95px rgba(0,0,0,.34), 0 0 34px rgba(255,31,45,.10); }
.project-card img { width: 100%; height: 230px; object-fit: cover; border-bottom: 1px solid var(--line); }
.project-content { padding: 28px; }
.project-content span { color: var(--red-2); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 850; }
.project-content h3 { margin-top: 16px; font-size: 1.8rem; }
.project-content strong { display: inline-flex; margin-top: 14px; color: #fff; font-weight: 850; font-size: .94rem; }
.project-card:hover .project-content strong { color: var(--red-2); }

.logo-section {
  padding: 88px 0 82px;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.018);
}
.logo-section h2 { max-width: 860px; font-size: clamp(1.9rem, 3.4vw, 3.45rem); }
.logo-marquee { margin-top: 44px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.logo-track { display: flex; gap: 18px; width: max-content; animation: marquee 36s linear infinite; }
.logo-track span {
  min-width: 190px;
  min-height: 74px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(244,244,245,.55);
  background: rgba(255,255,255,.03);
  font-weight: 820;
  letter-spacing: -.02em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.education-section { padding-top: 118px; }
.education-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .78fr);
  gap: 60px;
  align-items: center;
  padding: 64px;
  border-radius: 42px;
  border: 1px solid rgba(30,107,255,.24);
  background: radial-gradient(circle at 82% 20%, rgba(30,107,255,.25), transparent 36%), linear-gradient(135deg, rgba(3,12,32,.88), rgba(5,5,8,.9) 58%, rgba(10,20,42,.86));
  box-shadow: var(--shadow-blue), 0 34px 100px rgba(0,0,0,.36);
}
.education-copy p { max-width: 780px; }
.education-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 34px; }
.education-tags span { border-color: rgba(30,107,255,.22); background: rgba(30,107,255,.08); }
.education-panel img { border-radius: 30px; border: 1px solid rgba(255,255,255,.1); }

.contact-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(360px, .72fr); gap: 70px; align-items: start; }
.contact-copy p { font-size: 1.13rem; max-width: 620px; }
.contact-direct { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.contact-direct a { color: #fff; font-weight: 800; width: fit-content; }
.contact-direct a:hover { color: var(--red-2); }
.contact-form { padding: 34px; }
.contact-form label { display: block; margin-bottom: 18px; }
.contact-form span { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px;
  background: rgba(0,0,0,.24);
  color: #fff;
  outline: none;
  padding: 15px 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(255,31,45,.52); box-shadow: 0 0 0 4px rgba(255,31,45,.09); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { width: 100%; border: 0; cursor: pointer; }
.form-note { font-size: .84rem; color: var(--muted-2); margin: 16px 0 0; }
.hidden-field { display: none !important; }

.site-footer { padding: 42px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.footer-brand-block { display: flex; flex-direction: column; gap: 10px; }
.footer-motto {
  margin: 0;
  color: rgba(244,244,245,.82);
  font-size: .96rem;
  font-style: italic;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-right { text-align: right; max-width: 520px; }
.footer-right p { margin: 0; font-size: .94rem; color: var(--muted-2); }
.footer-right .effie-note { color: rgba(244,244,245,.86); margin-bottom: 8px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .78s ease, transform .78s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }

@media (max-width: 1140px) {
  .process-flow { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .process-flow::before { display: none; }
  .process-flow article:nth-child(even) { margin-top: 0; }
}

@media (max-width: 1060px) {
  .site-header { border-radius: 28px; min-height: 66px; }
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    cursor: pointer;
  }
  .menu-toggle span { width: 18px; height: 2px; background: #fff; border-radius: 999px; transition: transform .18s ease, opacity .18s ease; }
  body.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  body.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .main-nav {
    position: fixed;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px;
    background: rgba(5,5,5,.96);
    backdrop-filter: blur(18px);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 4px; font-size: 1rem; }
  .main-nav .mobile-menu-cta {
    display: inline-flex !important;
    justify-content: center;
    margin-top: 10px;
    padding: 14px 18px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-weight: 850;
  }
  .header-cta { display: none; }
  .hero-grid, .section-head, .education-panel, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 52px; }
  .hero-visual { max-width: 660px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .project-card img { height: 300px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 32px, var(--max)); }
  .section { padding: 84px 0; }
  .section-xl { padding: 126px 0 78px; }
  .slim-section { padding: 58px 0; }
  .compact-top { padding-top: 70px; }
  h1 { font-size: clamp(3rem, 14vw, 5rem); }
  h2 { font-size: clamp(2rem, 9.2vw, 3.15rem); }
  .hero-grid { min-height: auto; }
  .hero-lead, .section-intro, .section-head p { font-size: 1rem; }
  .button-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card, .pillar-card, .situations, .education-panel, .contact-form { padding: 26px; }
  .service-card { min-height: auto; }
  .service-topline { margin-bottom: 24px; }
  .situations { border-radius: 26px; }
  .tag-grid span, .education-tags span { width: 100%; justify-content: center; text-align: center; }
  .process-flow { grid-template-columns: 1fr; padding-top: 18px; }
  .process-flow article { min-height: auto; padding-left: 68px; }
  .process-dot { position: absolute; left: 0; top: 0; }
  .process-flow article::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 56px;
    bottom: -28px;
    width: 1px;
    background: rgba(255,31,45,.26);
  }
  .process-flow article:last-child::before { display: none; }
  .project-card img { height: 230px; }
  .project-content h3 { font-size: 1.65rem; }
  .logo-section { padding: 70px 0 66px; }
  .logo-track span { min-width: 155px; min-height: 64px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { text-align: left; }
  .brand-logo { width: 110px; }
}

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

/* --- VisioniX v3 finomhangolások --- */
body.theme-light {
  --bg: #f6f4ef;
  --bg-2: #ffffff;
  --card: rgba(24,24,28,.065);
  --card-strong: rgba(24,24,28,.10);
  --text: #151518;
  --muted: #555863;
  --muted-2: #717581;
  --line: rgba(24,24,28,.10);
  --line-strong: rgba(24,24,28,.16);
  --shadow-red: 0 0 46px rgba(255, 31, 45, 0.12);
  --shadow-blue: 0 0 56px rgba(30, 107, 255, 0.14);
}
body.theme-light .site-bg {
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 31, 45, 0.10), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(255, 31, 45, 0.06), transparent 30%),
    radial-gradient(circle at 68% 82%, rgba(30, 107, 255, 0.05), transparent 28%),
    linear-gradient(180deg, #fbfaf7 0%, #f4f1eb 44%, #fbfaf7 100%);
}
body.theme-light .site-bg::after {
  background-image: linear-gradient(rgba(17,17,20,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,20,0.04) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 84%);
  opacity: .35;
}
body.theme-light .site-header {
  background: rgba(255,255,255,.78);
  border-color: rgba(17,17,20,.08);
}
body.theme-light .site-header.is-scrolled {
  background: rgba(255,255,255,.94);
  border-color: rgba(17,17,20,.12);
}
body.theme-light .main-nav a,
body.theme-light p,
body.theme-light .contact-form span,
body.theme-light .footer-right p { color: var(--muted); }
body.theme-light .main-nav a:hover,
body.theme-light .contact-direct a,
body.theme-light .btn-secondary,
body.theme-light .project-content strong,
body.theme-light .card-cta,
body.theme-light .footer-motto,
body.theme-light .process-flow h3,
body.theme-light .service-card h3,
body.theme-light .project-content h3,
body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light .contact-copy a,
body.theme-light .effie-badge strong,
body.theme-light .logo-track span,
body.theme-light .tag-grid span,
body.theme-light .education-tags span { color: var(--text); }
body.theme-light .glass-card,
body.theme-light .service-card,
body.theme-light .project-card,
body.theme-light .contact-form,
body.theme-light .situations,
body.theme-light .logo-track span,
body.theme-light .tag-grid span,
body.theme-light .education-tags span,
body.theme-light .menu-toggle,
body.theme-light .theme-toggle,
body.theme-light .btn-secondary,
body.theme-light .contact-form input,
body.theme-light .contact-form textarea {
  background: rgba(24,24,28,.055);
  border-color: rgba(24,24,28,.10);
}
body.theme-light .contact-form input,
body.theme-light .contact-form textarea { background: rgba(255,255,255,.62); color: var(--text); }
body.theme-light .section-label::before,
body.theme-light .eyebrow::before,
body.theme-light .card-label::before { box-shadow: none; }
body.theme-light .hero-visual img,
body.theme-light .education-panel img { border-color: rgba(24,24,28,.10); }
body.theme-light .logo-section,
body.theme-light .site-footer { border-color: rgba(24,24,28,.08); background: rgba(24,24,28,.025); }
body.theme-light .process-dot { background: #fff; }
body.theme-light .header-cta,
body.theme-light .btn-primary { color: #fff; }

.section-xl { padding: 138px 0 44px; }
.compact-top { padding-top: 76px; }
.hero-grid { min-height: calc(100vh - 390px); gap: 64px; }
h1 { font-size: clamp(3.1rem, 7vw, 6.95rem); max-width: 760px; margin-bottom: 26px; }
h2 { font-size: clamp(1.9rem, 3.7vw, 3.55rem); }
.section-head { margin-bottom: 44px; }
.pillar-grid { margin-top: 34px; }
.logo-section { padding: 64px 0 68px; }
.logo-marquee { margin-top: 28px; }

.services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.service-card { min-height: 245px; padding: 30px; }
.service-card h3 { font-size: clamp(1.08rem, 1.28vw, 1.28rem); }
.service-card p { font-size: .95rem; }

.process-flow article.is-complete .process-dot {
  border-color: rgba(144,255,88,.72);
  color: #a3ff71;
  box-shadow: 0 0 30px rgba(134,255,80,.32);
}
.process-flow article.is-complete h3 { color: #cbffb2; }
body.theme-light .process-flow article.is-complete h3 { color: #2d7e00; }
body.theme-light .process-flow article.is-complete .process-dot {
  background: rgba(161,255,114,.14);
  border-color: rgba(88,183,30,.52);
  color: #2d7e00;
  box-shadow: 0 0 22px rgba(134,255,80,.18);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.theme-toggle-track {
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  position: relative;
}
.theme-toggle-track::before,
.theme-toggle-track::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  line-height: 1;
}
.theme-toggle-track::before { content: '☾'; left: 4px; color: rgba(255,255,255,.7); }
.theme-toggle-track::after { content: '☀'; right: 4px; color: rgba(255,255,255,.4); }
.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(255,31,45,.35);
  transition: transform .2s ease, background .2s ease;
}
body.theme-light .theme-toggle,
body.theme-light .theme-toggle-track { background: rgba(24,24,28,.08); }
body.theme-light .theme-toggle-track::before { color: rgba(24,24,28,.45); }
body.theme-light .theme-toggle-track::after { color: rgba(24,24,28,.72); }
body.theme-light .theme-toggle-thumb { transform: translateX(18px); background: #ffb100; box-shadow: 0 0 12px rgba(255,177,0,.32); }

.effie-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.effie-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,31,45,.08);
  border: 1px solid rgba(255,31,45,.2);
  box-shadow: 0 0 18px rgba(255,31,45,.1);
}
.effie-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--red-2);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.effie-badge strong,
.effie-badge span { display: block; }
.effie-badge strong { font-size: .92rem; color: #fff; }
.effie-badge span { font-size: .82rem; color: var(--muted); }

.footer-right .effie-note { display: none; }

@media (max-width: 1280px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1060px) {
  .theme-toggle { order: 2; margin-left: auto; }
  .menu-toggle { order: 3; margin-left: 0; }
  .hero-grid { min-height: auto; gap: 48px; }
}

@media (max-width: 760px) {
  .section-xl { padding: 120px 0 40px; }
  .compact-top { padding-top: 62px; }
  h1 { font-size: clamp(2.7rem, 12.2vw, 4.6rem); }
  .theme-toggle { width: 50px; height: 38px; }
  .theme-toggle-track { width: 34px; }
  .theme-toggle-thumb { width: 14px; height: 14px; }
  body.theme-light .theme-toggle-thumb { transform: translateX(16px); }
  .services-grid { grid-template-columns: 1fr; }
  .effie-badge { width: 100%; }
}


/* --- VisioniX v4 finomhangolások --- */

/* Hero és szemlélet átvezetés feszesebbre */
.section-xl {
  padding-bottom: 18px;
}

.hero-grid {
  min-height: calc(100vh - 460px);
}

/* Szemlélet blokk balra rendezése */
#szemlelet .narrow {
  width: min(var(--max), calc(100% - 48px));
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

#szemlelet .narrow h2 {
  max-width: 900px;
}

#szemlelet .narrow .section-intro {
  max-width: 920px;
}

/* Szolgáltatáskártyák: csak diszkrét saroknyíl */
.service-card {
  padding-bottom: 54px;
}

.card-cta {
  position: absolute;
  right: 30px;
  bottom: 26px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,31,45,.22);
  background: rgba(255,31,45,.055);
  color: var(--red-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
  line-height: 1;
  font-weight: 900;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.service-card:hover .card-cta {
  color: #fff;
  transform: translate(4px, -2px);
  border-color: rgba(255,31,45,.56);
  background: rgba(255,31,45,.14);
  box-shadow: 0 0 22px rgba(255,31,45,.18);
}

/* Screen-reader only helper */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Folyamat 06: zöld jelölés marad, szöveg fehér */
.process-flow article.is-complete h3 {
  color: var(--text);
}

.process-flow article.is-complete p {
  color: var(--muted);
}

body.theme-light .process-flow article.is-complete h3 {
  color: var(--text);
}

/* Effie: szabadabb, lejjebb helyezett presztízselem, nem kártya */
.effie-badge {
  margin-top: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  gap: 18px;
  align-items: center;
}

.effie-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255,31,45,.07);
  border: 1px solid rgba(255,31,45,.28);
  box-shadow: 0 0 30px rgba(255,31,45,.13);
  flex: 0 0 auto;
}

.effie-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.65;
}

.effie-badge strong {
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.effie-badge span {
  margin-top: 2px;
  font-size: .92rem;
}

/* Light mode: header és footer marad sötét a logó miatt */
body.theme-light .site-header,
body.theme-light .site-header.is-scrolled {
  background: rgba(5,5,5,.88);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 18px 80px rgba(0,0,0,.14);
}

body.theme-light .site-header .main-nav a {
  color: rgba(244,244,245,.76);
}

body.theme-light .site-header .main-nav a:hover {
  color: #fff;
}

body.theme-light .site-header .theme-toggle,
body.theme-light .site-header .menu-toggle {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}

body.theme-light .site-header .menu-toggle span {
  background: #fff;
}

body.theme-light .site-header .theme-toggle-track {
  background: rgba(255,255,255,.12);
}

body.theme-light .site-header .theme-toggle-track::before {
  color: rgba(255,255,255,.68);
}

body.theme-light .site-header .theme-toggle-track::after {
  color: rgba(255,255,255,.42);
}

/* Light mode oktatás: a navy panel belső tipográfiája marad világos */
body.theme-light .education-panel h2,
body.theme-light .education-panel h3,
body.theme-light .education-panel strong {
  color: #fff;
}

body.theme-light .education-panel p,
body.theme-light .education-panel .education-tags span {
  color: rgba(244,244,245,.78);
}

body.theme-light .education-panel .section-label {
  color: var(--blue-2);
}

body.theme-light .education-panel .education-tags span {
  background: rgba(30,107,255,.10);
  border-color: rgba(89,163,255,.22);
}

/* Light mode footer: marad sötét */
body.theme-light .site-footer {
  background:
    radial-gradient(circle at 70% 0%, rgba(30,107,255,.07), transparent 32%),
    linear-gradient(180deg, #08080a, #050505);
  border-top-color: rgba(255,255,255,.08);
}

body.theme-light .site-footer .footer-right p,
body.theme-light .site-footer .footer-motto {
  color: rgba(244,244,245,.78);
}

/* Mobil finomítások */
@media (max-width: 760px) {
  .section-xl {
    padding-bottom: 24px;
  }

  #szemlelet .narrow {
    width: min(100% - 32px, var(--max));
  }

  .card-cta {
    right: 24px;
    bottom: 22px;
  }

  .effie-badge {
    margin-top: 42px;
    align-items: flex-start;
  }

  .effie-icon {
    width: 52px;
    height: 52px;
  }
}


/* --- VisioniX v5 finomhangolások --- */

/* Hero és Szemlélet közti whitespace erősebb csökkentése */
.section-xl {
  padding-bottom: 0;
}

.hero-grid {
  min-height: calc(100vh - 545px);
}

/* A Szemlélet blokk még feljebb és feszesebbre */
#szemlelet.compact-top {
  padding-top: 34px;
}

/* Light mód kapcsoló: sárga helyett brand piros, nap ikon marad */
body.theme-light .theme-toggle-thumb {
  background: var(--red);
  box-shadow: 0 0 12px rgba(255,31,45,.35);
}

/* Effie blokk új formában */
.effie-badge,
.effie-icon {
  display: none !important;
}

.effie-block {
  margin-top: 62px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 390px;
}

.effie-image-slot {
  width: 168px;
  height: 76px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 22% 26%, rgba(255,31,45,.12), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(244,244,245,.76);
  font-size: .82rem;
  line-height: 1.05;
  letter-spacing: .18em;
  text-align: center;
  font-weight: 900;
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
}

.effie-block p {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 850;
  letter-spacing: -.025em;
}

.effie-block p span {
  color: var(--muted);
  font-size: .96rem;
  font-weight: 650;
}

/* Social gombok a kapcsolat részben */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.035);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  border-color: rgba(255,31,45,.48);
  background: rgba(255,31,45,.08);
  box-shadow: 0 0 24px rgba(255,31,45,.14);
}

.social-links svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: rgba(244,244,245,.88);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links a:hover svg {
  stroke: var(--red-2);
}

/* Facebook ikon fill jellegű SVG miatt */
.social-links a[aria-label="Facebook"] svg {
  fill: rgba(244,244,245,.88);
  stroke: none;
}
.social-links a[aria-label="Facebook"]:hover svg {
  fill: var(--red-2);
}

/* Scroll progress jobb alul */
.scroll-progress {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  background: rgba(5,5,5,.72);
  backdrop-filter: blur(14px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
  transition: transform .18s ease, opacity .18s ease, border-color .18s ease;
}

.scroll-progress:hover {
  transform: translateY(-3px);
  border-color: rgba(255,31,45,.44);
}

.scroll-progress svg {
  position: absolute;
  inset: 5px;
  transform: rotate(-90deg);
}

.scroll-progress circle {
  fill: none;
  stroke-width: 3;
}

.scroll-progress-bg {
  stroke: rgba(255,255,255,.10);
}

.scroll-progress-ring {
  stroke: var(--red);
  stroke-linecap: round;
  stroke-dasharray: 113.097;
  stroke-dashoffset: 113.097;
  filter: drop-shadow(0 0 7px rgba(255,31,45,.55));
  transition: stroke-dashoffset .08s linear;
}

.scroll-progress span {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 900;
  color: rgba(244,244,245,.88);
}

/* Light mode finomítások */
body.theme-light .effie-image-slot {
  border-color: rgba(24,24,28,.12);
  background:
    radial-gradient(circle at 22% 26%, rgba(255,31,45,.10), transparent 34%),
    linear-gradient(145deg, rgba(24,24,28,.065), rgba(24,24,28,.028));
  color: rgba(24,24,28,.68);
}

body.theme-light .effie-block p {
  color: var(--text);
}

body.theme-light .effie-block p span {
  color: var(--muted);
}

body.theme-light .social-links a {
  border-color: rgba(24,24,28,.12);
  background: rgba(24,24,28,.045);
}

body.theme-light .social-links svg {
  stroke: rgba(21,21,24,.82);
}

body.theme-light .social-links a[aria-label="Facebook"] svg {
  fill: rgba(21,21,24,.82);
}

body.theme-light .scroll-progress {
  background: rgba(5,5,5,.78);
  border-color: rgba(255,255,255,.12);
}

/* Mobil */
@media (max-width: 760px) {
  .hero-grid {
    min-height: auto;
  }

  #szemlelet.compact-top {
    padding-top: 26px;
  }

  .effie-block {
    margin-top: 42px;
  }

  .social-links {
    margin-top: 24px;
  }

  .scroll-progress {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}


/* --- VisioniX v5.1 scroll progress kör javítás --- */
.scroll-progress {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.scroll-progress svg {
  inset: 0;
}

.scroll-progress-bg {
  stroke: rgba(255,255,255,.13);
}

body.theme-light .scroll-progress {
  background: transparent;
  border: 0;
}

body.theme-light .scroll-progress-bg {
  stroke: rgba(5,5,5,.16);
}


/* --- VisioniX v6 valódi képes hero + oktatás kép --- */

/* Hero B-verzió: saját anyagokból épített cinematic kollázs */
.hero-collage {
  min-height: 580px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 82% 14%, rgba(255,31,45,.18), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018));
  overflow: hidden;
  position: relative;
  box-shadow: 0 44px 110px rgba(0,0,0,.48), var(--shadow-red);
}

.hero-collage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,5,.06), rgba(5,5,5,.54)),
    radial-gradient(circle at 20% 18%, rgba(255,31,45,.16), transparent 28%);
  z-index: 2;
  pointer-events: none;
}

.hero-collage::after {
  content: "";
  position: absolute;
  inset: 10% 8%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 86px 86px;
  opacity: .38;
  z-index: 3;
  pointer-events: none;
}

.hero-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-collage-main {
  position: absolute;
  inset: 0;
}

.hero-collage-main img {
  filter: saturate(.88) contrast(1.08) brightness(.58);
  object-position: center;
}

.hero-collage-card {
  position: absolute;
  z-index: 4;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(5,5,5,.72);
  box-shadow: 0 24px 70px rgba(0,0,0,.42), 0 0 34px rgba(255,31,45,.12);
}

.hero-collage-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,.02), rgba(5,5,5,.38));
}

.hero-collage-card-a {
  width: 46%;
  height: 34%;
  right: 8%;
  top: 12%;
}

.hero-collage-card-b {
  width: 34%;
  height: 28%;
  left: 10%;
  bottom: 10%;
}

.hero-collage-card-a img {
  filter: saturate(.9) contrast(1.06) brightness(.82);
  object-position: center;
}

.hero-collage-card-b img {
  filter: saturate(1.08) contrast(1.05) brightness(.9);
  object-position: center;
}

.hero-collage-line {
  position: absolute;
  left: 12%;
  right: 10%;
  bottom: 7%;
  height: 2px;
  z-index: 5;
  background: linear-gradient(90deg, transparent, rgba(255,31,45,.82), transparent);
  box-shadow: 0 0 24px rgba(255,31,45,.28);
}

/* Oktatás blokk valós fotóval */
.education-panel .education-photo {
  width: 100%;
  min-height: 360px;
  max-height: 520px;
  object-fit: cover;
  object-position: 38% center;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.12);
  filter: saturate(.94) contrast(1.05) brightness(.88);
  box-shadow: 0 28px 90px rgba(0,0,0,.28);
}

/* Effie valós képes hely */
.effie-image-slot.effie-image-real {
  width: 190px;
  height: 92px;
  padding: 0;
  overflow: hidden;
  justify-content: stretch;
  align-items: stretch;
  border-color: rgba(255,255,255,.15);
}

.effie-image-real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(1.05) contrast(1.04) brightness(.92);
}

body.theme-light .hero-collage {
  border-color: rgba(24,24,28,.10);
  background:
    radial-gradient(circle at 82% 14%, rgba(255,31,45,.10), transparent 34%),
    linear-gradient(145deg, rgba(24,24,28,.06), rgba(24,24,28,.02));
  box-shadow: 0 32px 100px rgba(24,24,28,.12), 0 0 42px rgba(255,31,45,.08);
}

body.theme-light .hero-collage::before {
  background:
    linear-gradient(90deg, rgba(5,5,5,.08), rgba(5,5,5,.44)),
    radial-gradient(circle at 20% 18%, rgba(255,31,45,.10), transparent 28%);
}

body.theme-light .hero-collage::after {
  border-color: rgba(255,255,255,.12);
  opacity: .32;
}

body.theme-light .education-panel .education-photo {
  border-color: rgba(255,255,255,.12);
}

@media (max-width: 1060px) {
  .hero-collage {
    min-height: 520px;
    max-width: 660px;
  }
}

@media (max-width: 760px) {
  .hero-collage {
    min-height: 430px;
    border-radius: 28px;
  }

  .hero-collage-card-a {
    width: 62%;
    height: 28%;
    right: 6%;
    top: 10%;
  }

  .hero-collage-card-b {
    width: 52%;
    height: 24%;
    left: 7%;
    bottom: 9%;
  }

  .education-panel .education-photo {
    min-height: 280px;
    max-height: 360px;
    object-position: 40% center;
  }

  .effie-image-slot.effie-image-real {
    width: 168px;
    height: 82px;
  }
}


/* --- VisioniX v7 hero + fehér partnerlogók --- */
.hero-single {
  position: relative;
  min-height: 580px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(145deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  box-shadow: 0 44px 110px rgba(0,0,0,.48), var(--shadow-red);
}
.hero-single::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,5,5,.06), rgba(5,5,5,.42)), radial-gradient(circle at 18% 22%, rgba(255,31,45,.14), transparent 32%);
  z-index: 1;
  pointer-events: none;
}
.hero-single::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  pointer-events: none;
}
.hero-single img {
  width: 100%;
  height: 100%;
  min-height: 580px;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(.92) contrast(1.04) brightness(.76);
}

.logo-track {
  gap: 18px;
}
.logo-pill {
  min-width: 190px;
  min-height: 78px;
  padding: 16px 22px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.03);
  box-sizing: border-box;
}
.logo-pill img {
  display: block;
  max-width: 160px;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: .96;
}

.effie-image-slot.effie-image-real {
  width: 212px;
  height: 94px;
  padding: 10px 12px;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,.04);
}
.effie-image-real img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
}

body.theme-light .hero-single {
  border-color: rgba(24,24,28,.10);
  box-shadow: 0 32px 100px rgba(24,24,28,.12), 0 0 42px rgba(255,31,45,.08);
}
body.theme-light .hero-single::before {
  background: linear-gradient(90deg, rgba(5,5,5,.06), rgba(5,5,5,.36)), radial-gradient(circle at 18% 22%, rgba(255,31,45,.10), transparent 32%);
}
body.theme-light .logo-pill {
  background: rgba(12,16,28,.86);
  border-color: rgba(24,24,28,.12);
}
body.theme-light .logo-pill img {
  opacity: 1;
}

@media (max-width: 1060px) {
  .hero-single { max-width: 660px; min-height: 520px; }
  .hero-single img { min-height: 520px; }
}
@media (max-width: 760px) {
  .hero-single { min-height: 430px; border-radius: 28px; }
  .hero-single img { min-height: 430px; object-position: center 22%; }
  .logo-pill { min-width: 164px; min-height: 68px; padding: 12px 18px; }
  .logo-pill img { max-width: 130px; max-height: 28px; }
  .effie-image-slot.effie-image-real { width: 190px; height: 88px; }
}


/* --- VisioniX v7.2 javított hero és referencia linkek --- */
.hero-single img {
  object-position: center 42%;
}

.project-card {
  text-decoration: none;
}

@media (max-width: 760px) {
  .hero-single img {
    object-position: center 42%;
  }
}


/* --- VisioniX v7.3 referencia borítóképek + űrlap email --- */
.project-card {
  position: relative;
}

.project-card > img {
  height: 245px;
  filter: saturate(.92) contrast(1.04) brightness(.82);
  transition: filter .22s ease, transform .22s ease;
}

.project-card:hover > img {
  filter: saturate(.98) contrast(1.07) brightness(.9);
  transform: scale(1.018);
}

.project-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 245px;
  background:
    linear-gradient(180deg, rgba(5,5,5,.05), rgba(5,5,5,.42)),
    radial-gradient(circle at 82% 14%, rgba(255,31,45,.13), transparent 34%);
  z-index: 1;
  pointer-events: none;
}

.project-content {
  position: relative;
  z-index: 2;
}

@media (max-width: 760px) {
  .project-card > img,
  .project-card::before {
    height: 210px;
  }
}


/* --- VisioniX v7.5 bemutatkozás + referencia/űrlap finomítás --- */
.about-section {
  padding-top: 88px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1fr);
  gap: 68px;
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.03);
  box-shadow: 0 34px 100px rgba(0,0,0,.32), 0 0 46px rgba(255,31,45,.08);
}

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center 36%;
  filter: saturate(.88) contrast(1.05) brightness(.86);
}

.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(5,5,5,.82));
  pointer-events: none;
}

.about-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(5,5,5,.62);
  backdrop-filter: blur(14px);
}

.about-caption strong {
  font-size: 1.18rem;
  color: #fff;
}

.about-caption span {
  color: var(--muted);
  font-weight: 700;
  font-size: .92rem;
}

.about-copy p {
  max-width: 760px;
}

.about-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.about-points span {
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.04);
  color: rgba(244,244,245,.78);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: .86rem;
  font-weight: 800;
}

.project-card > img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

body.theme-light .about-media,
body.theme-light .about-points span {
  border-color: rgba(24,24,28,.10);
  background: rgba(24,24,28,.055);
}

body.theme-light .about-points span {
  color: var(--text);
}

@media (max-width: 1060px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .about-section {
    padding-top: 70px;
  }

  .about-media,
  .about-media img {
    min-height: 430px;
  }

  .about-caption {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
}


/* --- VisioniX v7.7 rólunk szekció + logó ritkítás --- */
.about-grid-reversed {
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
}

.about-counters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.counter-card {
  min-height: 112px;
  border: 1px solid rgba(255,255,255,.11);
  background:
    radial-gradient(circle at 80% 10%, rgba(255,31,45,.13), transparent 36%),
    rgba(255,255,255,.035);
  border-radius: 24px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.16);
}

.counter-card strong {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: .92;
  letter-spacing: -.08em;
}

.counter-card span:last-child {
  color: var(--muted);
  font-weight: 800;
  font-size: .88rem;
  margin-top: 10px;
}

body.theme-light .counter-card {
  border-color: rgba(24,24,28,.10);
  background:
    radial-gradient(circle at 80% 10%, rgba(255,31,45,.08), transparent 36%),
    rgba(24,24,28,.055);
}

body.theme-light .counter-card strong {
  color: var(--text);
}

@media (max-width: 1060px) {
  .about-grid-reversed {
    grid-template-columns: 1fr;
  }

  .about-grid-reversed .about-media {
    order: -1;
  }
}

@media (max-width: 760px) {
  .about-counters {
    grid-template-columns: 1fr;
  }

  .counter-card {
    min-height: 94px;
  }
}


/* --- VisioniX v7.8 favicon + nagyobb, biztosabb számlálók + logó takarítás --- */
.about-counters {
  gap: 18px;
}

.counter-card {
  min-height: 148px;
  padding: 28px 24px;
  border-radius: 28px;
}

.counter-card strong {
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  line-height: .82;
  letter-spacing: -.09em;
}

.counter-card span:last-child {
  font-size: .98rem;
  margin-top: 16px;
  letter-spacing: -.01em;
}

@media (max-width: 760px) {
  .counter-card {
    min-height: 122px;
  }

  .counter-card strong {
    font-size: clamp(3.3rem, 18vw, 5rem);
  }
}


/* --- VisioniX v7.9 counter typo fix --- */
/* A szám spanje korábban felvette a címke kis betűméretét; ezt felülírjuk. */
.counter-card strong [data-counter] {
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  color: inherit !important;
  font-weight: inherit !important;
}

.counter-card strong {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: clamp(3.7rem, 7.6vw, 6.4rem);
}

.counter-card strong::after {
  content: "";
}

.counter-card > span,
.counter-card > span:last-child {
  color: var(--muted);
  font-weight: 850;
  font-size: 1rem;
  margin-top: 16px;
  letter-spacing: -.01em;
}

@media (max-width: 760px) {
  .counter-card strong {
    font-size: clamp(3.8rem, 18vw, 5.4rem);
  }
}


/* --- VisioniX v8.0 counter méret finomítás --- */
.counter-card {
  min-height: 128px;
  padding: 24px 22px;
}

.counter-card strong {
  font-size: clamp(2.45rem, 4.2vw, 3.35rem) !important;
  line-height: .9 !important;
  letter-spacing: -.075em !important;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.counter-card strong [data-counter] {
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  color: inherit !important;
  font-weight: inherit !important;
}

.counter-card > span,
.counter-card > span:last-child {
  font-size: .96rem;
  margin-top: 14px;
}

@media (max-width: 760px) {
  .counter-card {
    min-height: 110px;
  }

  .counter-card strong {
    font-size: clamp(2.7rem, 12vw, 3.8rem) !important;
  }
}


/* --- SZOLGALTATAS-RACS: 3 FENT, 2 LENT (2026-08-15) ---
   Geri kerese: a kampanycsomag-kartya lekerult az oldalrol, igy ot szolgaltatas maradt.
   "a felul harom alul ketto kartya jelenjen meg."
   A racs ezert hat (illetve tablet-szelessegen negy) alosszlopra megy, es minden kartya
   kettot fog at -- igy az utolso sor KOZEPRE tud allni ugyanakkora kartyakkal. Ha csak
   annyit tennenk, hogy harom oszlop es ot kartya, az also ket kartya balra tapadna, es a
   sor jobb szele uresen maradna. */
@media (min-width: 1281px) {
  .services-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .services-grid > .service-card { grid-column: span 2; }
  .services-grid > .service-card:nth-child(4) { grid-column: 2 / span 2; }
  .services-grid > .service-card:nth-child(5) { grid-column: 4 / span 2; }
}

/* Tablet: ket kartya soronkent, az otodik egyedul marad -- azt is kozepre. */
@media (min-width: 761px) and (max-width: 1280px) {
  .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .services-grid > .service-card { grid-column: span 2; }
  .services-grid > .service-card:nth-child(5) { grid-column: 2 / span 2; }
}


/* --- GYIK: LENYILO KARTYAK (2026-08-15) ---
   Geri kerese: "a kerdes melle mutasson egy lefele mutato nyil, es ha rakattint, nyiljon ki
   egy kartyan a valasz". Nativ <details>/<summary>, JS nelkul.
   A ::-webkit-details-marker elrejtese kell, kulonben a bongeszo sajat haromszoge is latszik
   a mi nyilunk mellett. */
.gyik { display: grid; gap: 14px; margin-top: 22px; }
.gyik-tetel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.024));
  overflow: hidden;
  transition: border-color .22s ease, background .22s ease;
}
.gyik-tetel[open] { border-color: rgba(255,255,255,.22); }
.gyik-tetel > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  font-weight: 600;
  font-size: 1.04rem;
  color: #fff;
}
.gyik-tetel > summary::-webkit-details-marker { display: none; }
.gyik-tetel > summary::after {
  content: "";
  margin-left: auto;
  flex: 0 0 auto;
  width: 11px; height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px);
  opacity: .62;
  transition: transform .22s ease, opacity .22s ease;
}
.gyik-tetel[open] > summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
  opacity: 1;
}
.gyik-tetel > summary:hover::after { opacity: 1; }
.gyik-valasz { padding: 0 26px 22px; }
.gyik-valasz p { margin: 0; color: var(--muted); }

body.theme-light .gyik-tetel > summary { color: #111; }

@media (max-width: 760px) {
  .gyik-tetel > summary { padding: 17px 20px; font-size: .99rem; gap: 14px; }
  .gyik-valasz { padding: 0 20px 18px; }
}


/* --- SZOLGALTATAS-OLDAL MEDIA: kiemelt video, referencia-kartyak, fotosav (2026-08-15) ---
   Geri kerese: "ahol van video es videó ertelmes, ott videos referenciat, ahol fenykepes
   referencia a fontos, ott fenykepeset". Ezert harom kulon elem, es nem egy altalanos galeria:
   a kiemelt video a szolgaltatas fo igerete, a referencia-kartyak a KONKRET munkak, a fotosav
   pedig a mennyisegre es a stilusra ad bizonyitekot. */
.media-kiemelt {
  position: relative;
  margin: 30px 0 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.media-kiemelt img, .media-kiemelt iframe, .media-kiemelt video {
  width: 100%; height: 100%; object-fit: cover; display: block; border: 0;
}
.media-felirat { margin-top: 10px; font-size: .88rem; color: var(--muted); }

.ref-racs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 24px; }
.ref-kartya {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.024));
}
.ref-kartya .ref-media { aspect-ratio: 16 / 10; overflow: hidden; }
.ref-kartya .ref-media img, .ref-kartya .ref-media iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.ref-kartya .ref-szoveg { padding: 18px 22px 22px; }
.ref-kartya h3 { margin: 0 0 5px; font-size: 1.04rem; }
.ref-kartya p { margin: 0; font-size: .92rem; color: var(--muted); }
.ref-tipus {
  display: inline-block; margin-bottom: 9px; font-size: .69rem; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 700; color: var(--accent, #ff3b3b);
}

.foto-sav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.foto-sav > * { aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.foto-sav figure { margin: 0; }
.foto-sav img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .ref-racs { grid-template-columns: 1fr; }
  .foto-sav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Media nelkuli referencia-kartya (meg nincs hozza kep vagy video): csak szoveg, hogy ne
   lassek toroett kepnek. Elesben ez latszott 2026-08-15-en a Marveen kartyanal.
   Az `align-self: start` azert kell, mert a racs kulonben a SZOMSZED kartya magassagara
   nyujtja, es a szoveg alatt marad egy nagy ures folt -- ami megint toroettnek nez ki.
   Ez a masodik menet ugyanarra a hibara: eloszor a kepdobozt vettem ki, de a magassag maradt. */
.ref-kartya-szoveg { align-self: start; }
.ref-kartya-szoveg .ref-szoveg { padding-top: 24px; }


/* --- AR-BLOKK (2026-08-15) ---
   Az ar LEKERULT a lap tetejerol. Geri: "igy most az olyan semmitmondo, nem biztos, hogy
   ezzel nyitnek, inkabb latni a referenciakat elobb." A blokk most a bizonyitekok UTAN, a
   gyakori kerdesek ELOTT all -- akkorra a latogatonak mar van mihez viszonyitania. */
.ar-blokk {
  margin: 40px 0 8px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.022));
}
.ar-cimke {
  display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--accent, #ff3b3b); margin-bottom: 10px;
}
.ar-blokk strong { display: block; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.1; color: #fff; }
body.theme-light .ar-blokk strong { color: #111; }
.ar-blokk .ar-mit { display: block; margin-top: 8px; font-size: 1rem; color: var(--muted); }
.ar-blokk p { margin: 16px 0 0; font-size: .88rem; color: var(--muted); }


/* --- HARMADIK KARTYA KOZEPRE (2026-08-15) ---
   Harom kartya ketoszlopos racsban: a harmadik egyedul marad, mellette ures folt.
   Geri: "hozzuk be kozepre a kartyat, mert tenyleg rosszul nez ki ugy magaban."
   Hat aloszlop + ket-ket oszlopnyi kartya... itt egyszerubb: az UTOLSO kartya, ha paratlan
   sorszamu osszesbol az utolso, ket oszlop kozott kozepre huzva. */
/* MEDIA QUERY-BE ZARVA. Elso valtozatban a fajl VEGERE irtam, media query nelkul -- igy
   felulirta a korabbi `@media (max-width: 900px) { .ref-racs { grid-template-columns: 1fr } }`
   szabalyt (azonos sulyu, de kesobbi), es telefonon a kozepre huzott kartya keskeny csikka
   valt. A kesobb irt CSS csendben elviszi a korabbi tores-pontokat, ha nem hataroljuk. */
@media (min-width: 901px) {
  .ref-racs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ref-racs > .ref-kartya { grid-column: span 2; }
  .ref-racs > .ref-kartya:last-child:nth-child(odd) { grid-column: 2 / span 2; }
}

/* --- KEPSAV TELEFONON: LAPOZHATO, NEM OSSZEPRESELT RACS (2026-08-15) ---
   Geri: "webes nezetben jol mutat a harom-harom, viszont telefonos nezetben ket savra
   rendezi, es ott nem nez ki jol." Telefonon ezert vizszintesen huzhatova tesszuk: a kepek
   megtartjak a meretuket, es a mozdulat termeszetes egy telefonon. A rács csak asztali
   nezetben marad racs. */
@media (max-width: 760px) {
  .foto-sav {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 8px;
  }
  .foto-sav > * {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }
}


/* --- PIROS NEON FENY A KARTYAK MOGE (2026-08-15) ---
   Geri kerese, es masodszorra kerte: "a piros glow-t, a piros neon fenyt a kockak moge
   szeretnem". Az elso alkalommal a hangüzenet ezen a ponton torzult ("nem latom a rosszes
   glut"), es ahelyett, hogy visszakerdeztem volna, kitalaltam egy masik jelentest.
   A fenyt a lap sajat piros akcentusabol epitem (--red: #ff1f2d), ugyanabbol, amibol a
   fooldali kartyak also fenycsikja es a gombok fenye is jon -- igy nem uj szin kerul a
   lapra, hanem a meglevo hangsuly erosodik fel a kartyak mogott.
   A `::before` a kartya MOGOTT ul (z-index: -1), es tulnyulik rajta: ettol lesz "halo"
   hatasa, nem keret. Az elmosast a nagy sugaru radialis atmenet adja, nem `filter: blur`,
   mert az a teljes reteget rasztereskent rendereli, es gyengebb gepen akadhat. */
.ref-kartya { position: relative; isolation: isolate; }
.ref-kartya::before {
  content: "";
  position: absolute;
  inset: -22px -22px -26px;
  z-index: -1;
  border-radius: calc(var(--radius-lg) + 18px);
  background:
    radial-gradient(58% 62% at 50% 108%, rgba(255,31,45,.42), rgba(255,31,45,0) 70%),
    radial-gradient(80% 90% at 50% 50%, rgba(255,31,45,.16), rgba(255,31,45,0) 72%);
  opacity: .85;
  transition: opacity .25s ease, inset .25s ease;
  pointer-events: none;
}
.ref-kartya:hover::before { opacity: 1; inset: -28px -28px -32px; }
.ref-kartya { box-shadow: 0 22px 70px rgba(0,0,0,.32), 0 0 26px rgba(255,31,45,.10); }

/* Vilagos temaban ugyanez tuzesebbnek latszana a feher hatteren -- ott visszafogjuk. */
body.theme-light .ref-kartya::before { opacity: .5; }


/* --- ALLO (9:16) MEDIA (2026-08-15) ---
   Az ELTE Magic es a Pfiffer kampanyfilmek 1080x1920-ban keszultek. Egy allo videot
   16:9-es dobozban mutatni ket rossz vegkimenetel kozotti valasztas: vagy fekete csik lesz
   a kep ketharmada, vagy `cover`-rel levagjuk a kompozicio felet. Ezert a kiemelt video,
   a kartya-media es a kepsav is felveheti a forras sajat aranyat. */
.media-kiemelt.media-allo {
  aspect-ratio: 9 / 16;
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.media-kiemelt.media-allo video { object-fit: contain; background: #000; }

/* A KARTYA-MEDIA A FORRAS SAJAT ARANYAT VESZI FEL, 9:16. Elozoleg 3:4 volt `cover`-rel,
   ami levagta az allo video tetejet-aljat -- Geri: "a videok nem latszodnak egeszben, csak
   vagva". Egy 9:16-os dobozban a 9:16-os forras hezag es vagas nelkul fer el. */
.ref-media.ref-media-allo { aspect-ratio: 9 / 16; }
.ref-media.ref-media-allo video,
.ref-media.ref-media-allo img { object-fit: contain; background: #000; }

.foto-sav.foto-sav-allo > * { aspect-ratio: 9 / 16; }
.foto-sav.foto-sav-allo img { object-fit: contain; background: #000; }


/* --- VIDEO SOHA NE LEGYEN VAGVA (2026-08-15, harmadik nekifutas) ---
   Geri: "nagyon durvan bele van croppolva, az eredeti meretet rakjuk bele, hogy teljes
   egeszeben latszodjon a videó."
   MERES a bajrol: a referencia-kartya doboza 16/10 volt, a benne futo videok viszont 16/9-esek
   -- a `cover` levagta a szeleket, a `contain` fekete csikot hagyott. A kiemelt videonal
   ugyanez: `cover` volt rajta, tehat barmilyen nem-16:9-es forrast levagott volna.
   MEGOLDAS: minden video `contain`, tehat a teljes kocka latszik, ES a kartya-doboz 16/9-re
   valt, hogy a jellemzo forrasnal ne is legyen csik. Egy fenykepnel a `cover` marad -- ott a
   kis levagas termeszetes, egy fekete csik viszont hibanak nezne ki. */
.media-kiemelt video { object-fit: contain; background: #000; }
.ref-media { aspect-ratio: 16 / 9; }
.ref-media video { object-fit: contain; background: #000; }
.ref-media img { object-fit: cover; }

/* A doboz-arany felulirasa AZONOS SULLYAL. A `.ref-media { aspect-ratio: 16/9 }` nem nyert,
   mert a korabbi szabaly `.ref-kartya .ref-media` alakban all, ami eggyel specifikusabb.
   Meressel jott ki: a kartyak tovabbra is 1.6-os aranyban alltak. */
.ref-kartya .ref-media { aspect-ratio: 16 / 9; }
.ref-kartya .ref-media.ref-media-allo { aspect-ratio: 9 / 16; }


/* --- NYITOKEP VALODI KEPKENT, NEM `poster` ATTRIBUTUMKENT (2026-08-15) ---
   Geri iPhone-jan a kartya nyitokepe belenagyitva latszott, mikozben Chrome-ban pontos volt:
   a Safari a <video poster="..."> kepere NEM alkalmazza az object-fit-et. Ezert a nyitokep
   mostantol rendes <img>, a video pedig alatta van, es csak inditaskor jon elo. Igy minden
   bongeszoben ugyanaz latszik. Szkript nelkul is mukodik: a video vezerloi ott vannak. */
.media-kiemelt, .ref-media { position: relative; }
.media-poszter {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #000; cursor: pointer; z-index: 2;
}
.ref-media .media-poszter { object-fit: contain; }
.media-kiemelt video, .ref-media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.media-play {
  position: absolute; inset: 0; z-index: 3; margin: auto;
  width: 74px; height: 74px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(12,12,14,.46);
  backdrop-filter: blur(6px);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.media-play span {
  display: block; width: 0; height: 0; margin-left: 5px;
  border-left: 19px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}
.media-play:hover { transform: scale(1.06); background: rgba(255,31,45,.68); border-color: rgba(255,255,255,.85); }
.jatszik .media-poszter, .jatszik .media-play { display: none; }

/* A nyitokep szabalya legyen erosebb a doboz altalanos kep-szabalyanal (`.media-kiemelt img`),
   kulonben az nyer, es visszakapjuk a `cover`-t. Meressel jott ki: a kiemelt videon a
   nyitokep `cover`-en allt, csak azert nem latszott, mert a kep es a doboz aranya egyezett. */
.media-kiemelt .media-poszter, .ref-media .media-poszter { object-fit: contain; }

/* --- A NYITOKEP NE LEGYEN VAGVA A 16:9 DOBOZBAN (2026-08-16) ---
   Geri dontese: minden referencia-doboz egysegesen 16:9 legyen, hogy a racs ne essen szet
   allo es fekvo munkak keveredesenel. Csakhogy a 2026. sorban allo
   `.ref-kartya .ref-media img` szabaly `cover`-t ad, es az EGGYEL SPECIFIKUSABB, mint a
   `.ref-media .media-poszter`. Igy az allo nyitokep a fekvo dobozban 68 szazalekaval
   levagodott -- merve a feltoltes utan, epp azt csinalta, amit Geri korabban kifogasolt.
   Ezert kell azonos sulyu (0,3,1) szelektor, ami KESOBB all a fajlban:
   `.ref-kartya .ref-media img.media-poszter`. A hatter fekete, tehat az allo kep oldalt
   csikot kap, de teljes egeszeben latszik -- nem vagunk. */
.ref-kartya .ref-media img.media-poszter { object-fit: contain; background: #000; }

/* --- "A" DONTES: MINDEN REFERENCIA-DOBOZ 16:9 (2026-08-16, Geri: "Legyen A") ---
   A BAJ: a "Nehany munka ebbol a korbol" racsban allo (9:16) es fekvo (16:9) kartyak alltak
   EGY SORBAN. A racs sor-magassaga a legmagasabb kartyahoz igazodik, tehat a fekvo kartya
   cime lecsuszott az allo kartya cimehez kepest -- ez az "ugralo felirat", amit Geri fotozott.
   HAROM UT VOLT: (A) minden doboz 16:9, (B) csak a feliratokat sorba hozni, (C) atrendezni,
   hogy allo es fekvo ne kerulhessen egy sorba. Geri az A-t valasztotta.
   AMIT AZ "A" JELENT: a doboz mindig 16:9, a benne levo media pedig `contain` -- tehat egy
   allo video vagy kep OLDALT kap fekete csikot, de SEMMI nincs levagva. A `cover` szandekosan
   nem jatszik: az levagna a kompozicio felet, es pont azt a hibat hoznank vissza, amit
   08-15-en ketszer javitottunk.
   MELLEKHATASKENT MEGOLDODIK A PFIFFER-KARTYA: a pfiffer.mp4 ALLO (720x1080), ezert kapott
   `allo` jelolest, a nyitokepe (pfiffer-kartya.jpg) viszont FEKVO, 1280x720. Egy 16:9-es kep
   9:16-os dobozban -- innen jott a "nagy fekete sav", amit Geri kifogasolt. 16:9-es dobozban
   a nyitokep hezag nelkul kitolti a helyet; a csik csak lejatszas kozben, a videora jon.
   A KIEMELT FOVIDEO (.media-kiemelt.media-allo) NEM valtozik: az nincs racsban, nincs mihez
   igazodnia, es ott az allo formatum teljes magassagban jol mutat. */
.ref-kartya .ref-media.ref-media-allo { aspect-ratio: 16 / 9; }
/* A `.ref-kartya .ref-media img` (0,2,1) `cover`-t ad; ez a szelektor (0,3,1) erosebb nala. */
.ref-kartya .ref-media.ref-media-allo img,
.ref-kartya .ref-media.ref-media-allo video { object-fit: contain; background: #000; }

/* --- A NYITOKEP NEM TUNT EL LEJATSZASKOR (2026-08-16, Nyikonyuk Gergo talalata) ---
   TUNET, az o szavaival: "a video elindul, de a boritokepet lehet latni, se megallitani,
   se semmit nem lehet vele". Merve headless bongeszoben a podcast oldalon: a `jatszik`
   osztaly FELKERULT, a video TENYLEG jatszott (paused=false), es a nyitokep megis
   `display: block` maradt.
   AZ OK egy specificitas-utkozes, ugyanaz a szabaly, ami korabban az `object-fit`-et is
   elvitte: a `.ref-kartya .ref-media img` (0,2,1) `display: block`-ot ad, a rejto szabaly
   viszont `.jatszik .media-poszter` (0,2,0) -- eggyel gyengebb, tehat vesztett.
   Ezert kell a doboz-osztallyal EGYUTT irni a szelektort. A `.media-kiemelt` agat is
   felvesszuk: ott a `.media-kiemelt img` (0,1,1) ugyanezt csinalta volna. */
.ref-kartya .ref-media.jatszik img.media-poszter,
.ref-kartya .ref-media.jatszik .media-play,
.media-kiemelt.jatszik img.media-poszter,
.media-kiemelt.jatszik .media-play { display: none; }

/* --- ALLO NYITOKEP: A KET BONGESZOMOTOR MASKEPP MERTE A DOBOZT (2026-08-15) ---
   TUNET: a brandfotozas es a reklamfilm oldalon a Safari (WebKit) a `media-allo` nyitokepet
   TELJES SZELESSEGU dobozba tette, es a fuggoleges kep ket oldalara szeles fekete sav kerult.
   Chrome-ban ugyanez tokeletesen nezett ki -- ranezesre tehat semmi baj nem volt vele.
   OK: a `width: auto` + `aspect-ratio` + `max-height` harmas. A Chromium ebbol kiszamolja a
   doboz szelesseget; a WebKit nem, ott a blokk-elem megtartja a teljes szelesseget, es az
   `aspect-ratio` mar csak a magassagat szabja meg.
   JAVITAS: ne bizzuk a szelesseget a motorra. A `max-height`-bol KISZAMOLT explicit szelesseg
   mind a kettoben ugyanazt adja. A `width: auto`-t szandekosan irjuk felul. */
.media-kiemelt.media-allo {
  width: min(100%, calc(78vh * 9 / 16));
  margin-left: auto;
  margin-right: auto;
}

/* --- ALOLDALAK: LEVEGO, LABLEC, GYIK-ELVALASZTAS (2026-08-15, Nyikonyuk Gergo javaslatai) ---
   Gergo hangüzenete a rendezveny oldalrol: "nekem nem kulonulnek el megfeleloen a focimek...
   a focim es maga a szoveges tartalom kozott en kicsit nagyobb legzesi teret hagynek", es
   osszefoglalva: "nagyon kicsik a tavok a szovegek kozott, es igy nagyon egybeolvad minden,
   nem tudom elkuloniteni".
   A valtozas MIND AZ OT aloldalra megy, nem csak a rendezvenyre: kozos sablonbol keszulnek,
   es egyetlen oldalt kulon-utra allitani ott is szetesne, ahol ugyanaz a hiba. */

/* 1. LEVEGO A CIMEK KORUL. A h2 fole tobb hely kerul, mint ala -- igy a cim lathatoan
      AHHOZ tartozik, ami utana jon, nem ahhoz, ami elotte volt. Ez a kulonbseg teszi
      olvashatova a tagolast; a szimmetrikus margo pont az egybeolvadast okozza. */
/* 1/b. JAVITAS 2026-08-16, Gergo visszajelzesere: "gepen elkepzelhetetlenul nagyok a kozok".
      AZ OK: a margo `em`-ben volt, a h2 betumerete viszont `clamp(1.9rem, 3.7vw, 3.55rem)`,
      tehat a kepernyovel egyutt no. Igy a tavolsag KETSZER skalazodott -- nagy kepernyon a
      betu is nagyobb lett, es a margo annak az aranyaban megegyszer. Merve elesben:
      asztalin 165 px, telefonon 76 px ugyanabbol a 3.1em-bol.
      A MEGOLDAS: `rem`, ami a gyoker betumeretehez kotodik, nem a cimehez -- igy a tavolsag
      nem fut el a cim meretevel. Az ASZIMMETRIA marad (fole tobb, ala keves, kb. 4:1), mert
      attol tartozik a cim ahhoz, ami utana jon. Csak a merete csokken. */
.container.narrow h2 {
  margin-top: 5rem;
  margin-bottom: 1.25rem;
  scroll-margin-top: 90px;
}
.container.narrow h2:first-of-type { margin-top: 3.25rem; }
.container.narrow h1 + .hero-lead { margin-bottom: 2.2em; }
.container.narrow ul { margin-bottom: 0; }

/* 2. AJANLATKERES AZ ARNAL. Nem uj gombstilus, csak elhelyezes: az ar-blokk aljan alljon
      kulon sorban, hogy ne folyjon egybe a magyarazo szoveggel. */
.ar-blokk .ar-cta { display: inline-flex; margin-top: 20px; }

/* 3. A GYIK ELKULONITESE. Gergo: "a gyakori kerdeseket egy vonallal picit elkulonitenem a
      teljes tartalomtol". A vonal a GYIK CIME fole kerul, tehat a szakasz egeszet valasztja
      el -- nem a kerdeseket egymastol, azok mar kulon dobozok. */
.container.narrow h2.gyik-cim {
  /* A vonal ugyanabban a ritmusban ul, mint a tobbi cim (80 px), a padding pedig ra tesz
     meg 32-t: a szoveg 112 px-re kerul az elozo tartalomtol. Ez pont a fooldal
     szekcio-ritmusa (.section { padding: 112px 0 }), amihez Gergo igazitani kerte. */
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* 4. LABLEC AZ ALOLDALAKON. A sablonban nem volt, ezert a gombsor a bongeszo legaljan ult.
      A fooldal sajat lablece kerul ide valtozatlanul; ez csak a fole valo helyet adja meg,
      hogy ne tapadjon a tartalomhoz. */
main + .site-footer { margin-top: 72px; }
@media (max-width: 760px) {
  /* Telefonon Gergo szerint "egy fokkal jobb volt, de ott is lehetne icipicit kisebb".
     Merve elesben: 76 px volt. Itt nem kell akkora vagas, mint asztalin. */
  .container.narrow h2 { margin-top: 3.875rem; }
  .container.narrow h2:first-of-type { margin-top: 2.75rem; }
  .container.narrow h2.gyik-cim { margin-top: 3.875rem; padding-top: 1.75rem; }
  main + .site-footer { margin-top: 52px; }
}
