/* =========================================================
   Blue System HR – marketing oldal
   ========================================================= */

/* ---------- Változók ---------- */
:root {
  /* Paletta – csak ezek a színek használhatók */
  --navy: #000021;       /* szöveg, sötét felületek */
  --blue: #0f66b2;       /* fő szín, elsődleges gombok */
  --sky: #15a6e0;        /* kiemelés */
  --coral: #ff6b4a;      /* CSAK törlés, tiltás, hiba */
  --orange: #f2994a;     /* folyamatban */
  --green-tint: #e6f8db; /* a #5ad30e zöld csak ilyen áttetsző változatban: jóváhagyva, pipa */
  --bg: #fafafa;         /* háttér */
  --line: #eaeaea;       /* vonalak, keretek */
  --muted: #999999;      /* CSAK inaktív állapot */
  --white: #ffffff;
  /* Csak a hero lebegő kártyáihoz (animáció) */
  --hero-green: #e6f8db;
  --hero-blue: #dbe8f3;
  --hero-coral: #ffe9e4;

  --text: var(--navy);
  --surface: var(--white);

  /* Tipográfia – a Figma szövegstílusai: Inter Medium / ExtraBold, 12 / 16 / 22 */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fw-regular: 500;
  --fw-bold: 800;
  --fs-sm: 12px;
  --fs-base: 16px;
  --fs-lg: 22px;
  --fs-h3: 22px;
  --fs-h2: clamp(28px, 3.4vw, 40px);
  --fs-h1: clamp(36px, 5vw, 56px);

  --radius-pill: 999px;
  --radius-card: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 33, .04), 0 8px 24px rgba(0, 0, 33, .05);
  --shadow-lg: 0 2px 4px rgba(0, 0, 33, .05), 0 24px 60px rgba(0, 0, 33, .1);

  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
}

/* ---------- Alapok ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
strong, b { font-weight: var(--fw-bold); }
h1, h2, h3 { font-weight: var(--fw-bold); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
h1 em, h2 em { font-style: normal; color: var(--blue); }

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 18px; border-radius: var(--radius-pill);
}
.skip-link:focus { top: 12px; }

/* ---------- Logó ---------- */
.logo { display: inline-flex; flex: none; }
.logo img { width: auto; height: 48px; }
.logo-footer img { height: 32px; }

/* ---------- Nyelvválasztó (kis lenyíló menü) ---------- */
.lang-switch { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--white);
  font: var(--fw-bold) var(--fs-sm)/1 var(--font); color: var(--navy); cursor: pointer;
}
.lang-toggle:hover { border-color: var(--navy); }
.lang-toggle svg { transition: transform .2s ease; }
.lang-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; min-width: 132px;
  list-style: none; margin: 0; padding: 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}
.lang-menu[hidden] { display: none; }
.lang-menu a {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 6px;
  font-size: var(--fs-sm); color: var(--navy); text-decoration: none;
}
.lang-menu a:hover { background: var(--bg); }
.lang-menu a[aria-current] { font-weight: var(--fw-bold); }
.lang-menu a[aria-current]::after { content: "✓"; color: var(--blue); }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  font: var(--fw-bold) var(--fs-base)/1.2 var(--font); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; border-radius: var(--radius-pill); cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-arrow::after, .link-arrow::after { content: "→"; display: inline-block; transition: transform .2s ease; }
.btn-arrow:hover::after, .link-arrow:hover::after { transform: translateX(4px); }
.btn-lg { min-height: 52px; padding: 14px 28px; }
.btn-block { width: 100%; }
/* Elsődleges gomb: kék alapon fehér szöveg (a korall csak törlésre/tiltásra való) */
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(15, 102, 178, .3); }
/* Narancs gomb (hero „Kérjen bemutatót”) */
.btn-accent { background: var(--blue); color: var(--white); }
.btn-accent:hover { box-shadow: 0 6px 18px rgba(15, 102, 178, .3); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--line); }
.btn-outline { background: var(--surface); color: var(--navy); border-color: var(--navy); }
.btn-outline:hover, .btn-outline:active { background: var(--navy); color: var(--white); }

/* ---------- Jelvények ---------- */
.badge {
  display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: var(--fw-bold); line-height: 1.5; color: var(--navy);
}
.badge-new { background: var(--sky); }
.hero .eyebrow .badge-new { background: var(--blue); color: var(--white); }
.badge-approved { background: var(--green-tint); }
.badge-pending { background: var(--orange); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--blue); margin-bottom: 16px;
}

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 250, .85);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.main-nav { display: flex; align-items: center; gap: 16px; flex: 1; justify-content: flex-end; }
.main-nav .pill-nav { gap: 4px; }
/* A menü mindkét nyelven közvetlenül a logó után kezdődik (nem középre igazítva) */
@media (min-width: 1281px) { .main-nav .pill-nav { margin: 0 auto 0 0; } }
/* Főnav – a Figma „Főnav” komponense: 47px magas fehér sáv, 33px-es gombok, csúszó navy jelölő */
.pill-nav, .tab-bar {
  position: relative; display: flex; align-items: center; gap: 10px;
  list-style: none; margin: 0 auto; padding: 7px; max-width: 100%;
  background: var(--white); border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 33, .06);
}
.pill-nav a, .tab-bar button {
  position: relative; z-index: 1; display: flex; align-items: center; flex: none;
  height: 33px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: transparent;
  font: var(--fw-regular) var(--fs-base)/1 var(--font); color: var(--navy); text-decoration: none; cursor: pointer;
  transition: color .2s ease;
}
.pill-nav a.is-active, .tab-bar button[aria-selected="true"], .tab-bar button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
/* A jelölőt a JS teszi be; amíg csúszik, a feliratok elhalványulnak */
.nav-indicator {
  position: absolute; z-index: 0; top: 7px; left: 0; height: 33px; width: var(--w, 0);
  border-radius: var(--radius-pill); background: var(--navy);
  transform: translateX(var(--x, 0)); opacity: 0; pointer-events: none;
  transition: transform .5s cubic-bezier(.3, 1.25, .5, 1), width .5s cubic-bezier(.3, 1.25, .5, 1), opacity .2s ease;
}
.nav-indicator.is-visible { opacity: 1; }
.has-indicator a.is-active, .has-indicator button[aria-selected="true"], .has-indicator button[aria-pressed="true"] { background: transparent; }
.has-indicator.is-moving a, .has-indicator.is-moving button { color: var(--muted); }
.has-indicator:not(.is-moving) a.is-active,
.has-indicator:not(.is-moving) button[aria-selected="true"],
.has-indicator:not(.is-moving) button[aria-pressed="true"] { color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.lead { font-size: var(--fs-lg); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 16px; }
.hero-note { font-size: var(--fs-sm); }
.hero-visual { position: relative; }

.browser {
  margin: 0; background: var(--surface); border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar span { margin-left: 12px; font-size: var(--fs-sm); background: var(--surface); padding: 0 12px; border-radius: var(--radius-pill); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--surface); padding: 12px 16px; border-radius: var(--radius-card); box-shadow: var(--shadow-lg);
  font-size: var(--fs-base); animation: float 6s ease-in-out infinite;
}
.float-img { height: 66px; width: auto; padding: 8px 14px; object-fit: contain; }
.float-card div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.float-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: var(--fw-bold); color: var(--navy); }
.icon-green, .float-card .badge-approved { background: var(--hero-green); }
.icon-blue, .float-card .badge-new { background: var(--hero-blue); }
.icon-orange, .float-card .badge-pending { background: var(--hero-coral); }
.float-1 { left: -28px; bottom: 18%; }
.float-2 { right: -16px; top: 14%; animation-delay: -2s; }
.float-3 { right: 8%; bottom: -18px; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Képernyőképek + hiányzó kép helyőrző ---------- */
.shot { position: relative; margin: 0; aspect-ratio: 1440 / 883; background: var(--line); overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot.is-missing img { display: none; }
.shot.is-missing::after {
  content: "Képernyőkép: " attr(data-label) " – [placeholder: 2x export]";
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center;
  font-size: var(--fs-base); color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--bg) 0 12px, var(--line) 12px 24px);
}
:lang(en) .shot.is-missing::after { content: "Screenshot: " attr(data-label) " – [placeholder: 2x export]"; }
.zoomable { cursor: zoom-in; }

/* ---------- Bizalmi sáv ---------- */
.trust { padding: 8px 0 40px; }
.trust-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin: 0; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.trust-list li { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; border-left: 1px solid var(--line); }
.trust-list li:first-child { border-left: 0; }
.trust-list strong { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; color: var(--blue); font-variant-numeric: tabular-nums; }
.trust-list li > span { font-size: var(--fs-base); }

/* ---------- Ügyfél-logók (végtelen sáv) ---------- */
.logos { padding: 64px 0 56px; }
.logos-title { margin: 0 0 20px; font-size: var(--fs-base); font-weight: var(--fw-regular); text-align: center; letter-spacing: 0; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 20px; width: max-content; list-style: none; margin: 0; padding: 0; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-slot {
  display: grid; place-items: center; width: 180px; height: 64px; flex: none;
  border: 1px dashed var(--muted); border-radius: var(--radius-sm); color: var(--muted); font-size: var(--fs-sm);
}
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }

/* ---------- Szekciók ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { font-size: var(--fs-lg); }
.section-head p.section-hint { font-size: var(--fs-base); }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--green-tint); color: var(--navy);
  font-size: var(--fs-sm); font-weight: var(--fw-bold);
}

/* ---------- Fülek (nézőpontok) ---------- */
.tabs .tab-bar { width: fit-content; margin-bottom: 40px; }
.tab-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.tab-panel[hidden] { display: none; }
.panel-shot { border-radius: var(--radius-card); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }

/* ---------- Kártyák (közös alap) ---------- */
.bento-card, .service-card, .steps li, .security-item, .case-card, .faq details, .demo-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
}

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-card { display: flex; flex-direction: column; padding: 24px 24px 0; overflow: hidden; }
.bento-card .shot {
  margin: auto -24px 0 0; border-top-left-radius: var(--radius-sm);
  border: 1px solid var(--line); border-right: 0; border-bottom: 0;
  transition: transform .25s ease;
}
.bento-card:hover .shot { transform: translateY(-4px); }
/* Ráközelítés a képernyőkép lényeges részére (a nagyító a teljes képet mutatja) */
/* A képernyőkép kitölti a kártya teljes magasságát, a lényeges (bal felső) részre vágva */
.bento-card .shot-zoom { flex: 1 1 auto; aspect-ratio: auto; min-height: 240px; margin-top: 8px; }
/* Mindig a bal felső sarokból vágunk, így a logó és a menüsor látszik; csak jobbról és alulról marad le */
.shot-zoom img { object-fit: cover; object-position: left top; transform: scale(var(--zoom, 1)); transform-origin: left top; }
.span-2 { grid-column: span 2; }

/* ---------- Kiemelt funkció ---------- */
.spotlight-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }

/* ---------- HR szoftver (helyőrző szekció) ---------- */
.hr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.hr-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px 16px 20px; }
.hr-card .shot { border-radius: var(--radius-sm); margin-bottom: 16px; }
.hr-card h3 { margin: 0 0 4px; }
.hr-card p { margin: 0; }
.hr-grid .shot.is-missing::after,
.hr-card .shot.is-missing::after { content: attr(data-label) " – [placeholder]"; }

/* ---------- Mobilalkalmazás: telefon keretek ---------- */
.phone-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1000px; margin-inline: auto; }
.phone-item { text-align: center; }
.phone-item h3 { margin: 24px 0 4px; }
.phone-item p { margin: 0; }
.app-features { list-style: none; margin: 64px auto 0; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.app-features li { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.phone {
  margin: 0 auto; max-width: 280px; padding: 10px; background: var(--navy);
  border-radius: 44px; box-shadow: var(--shadow-lg);
}
.phone .shot { border-radius: 34px; }
.shot-phone { aspect-ratio: 390 / 844; }
.shot-phone img { object-position: top center; }

/* ---------- Sötét szekció: ragadós fejléc + számozott lista ---------- */
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .eyebrow,
.section-dark h2 em { color: var(--sky); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.why-head { position: sticky; top: calc(var(--header-h) + 48px); }
.why-head p:not(.eyebrow) { color: var(--white); font-size: var(--fs-lg); }
.why-head .btn { margin-top: 16px; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 32px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.why-list li:first-child { border-top: 0; padding-top: 0; }
.why-num { font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--sky); font-variant-numeric: tabular-nums; }
.why-list p { color: var(--white); margin: 0; }

/* ---------- Szolgáltatások ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { padding: 28px; }
.service-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 24px;
  border-radius: 14px; background: var(--blue); color: var(--white);
}
.text-link { font-weight: var(--fw-bold); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Bevezetés lépései ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 28px; }
.steps p { margin: 0; }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%; background: var(--blue); color: var(--white); font-weight: var(--fw-bold);
}

/* ---------- Biztonság ---------- */
.security-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 960px; margin: 0 auto; }
.security-item { padding: 28px; }
.security-item p { margin: 0; }

/* ---------- Referenciák (esettanulmányok) ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { display: flex; flex-direction: column; padding: 28px; transition: transform .2s ease, box-shadow .2s ease; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.case-meta { font-size: var(--fs-sm); }
.case-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 24px; padding: 20px 0; border-block: 1px solid var(--line); }
.case-stats dt { font-size: var(--fs-h2); font-weight: var(--fw-bold); line-height: 1.1; letter-spacing: -0.02em; color: var(--blue); }
.case-stats dd { margin: 4px 0 0; font-size: var(--fs-sm); }
.case-card blockquote { margin: 0 0 20px; flex: 1; }
.case-author { display: flex; flex-direction: column; margin: 0; font-size: var(--fs-base); }

/* ---------- GYIK ---------- */
.faq details { border-radius: var(--radius-sm); margin-bottom: 12px; }
.faq summary {
  position: relative; padding: 20px 56px 20px 24px; font-weight: var(--fw-bold); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 28px; height: 28px; border-radius: 50%; transform: translateY(-50%);
  /* két 2px-es vonal pontosan középen (a „+” betűjel nem ül középen) */
  background:
    linear-gradient(var(--navy), var(--navy)) center / 12px 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 2px 12px no-repeat,
    var(--line);
}
.faq details[open] summary::after {
  background: linear-gradient(var(--navy), var(--navy)) center / 12px 2px no-repeat, var(--line);
}
.faq details p { padding: 0 24px 20px; margin: 0; }

/* ---------- Kapcsolat ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; flex-direction: column; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list span { font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.demo-form { padding: 32px; box-shadow: var(--shadow-lg); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: var(--fs-base); }
.optional { font-size: var(--fs-sm); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: var(--fw-regular) var(--fs-base) var(--font); color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 166, 224, .3); }
.field [aria-invalid="true"] { border-color: var(--coral); }
.field-error { font-size: var(--fs-base); color: var(--coral); }
.field-check { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin: 4px 0 20px; font-size: var(--fs-base); }
.field-check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--blue); }
.field-check label { flex: 1; min-width: 0; }
.field-check .field-error { flex-basis: 100%; padding-left: 30px; }
.form-status { margin: 12px 0 0; font-size: var(--fs-base); text-align: center; }

.mode-switch { width: 100%; margin: 0 0 24px; }
.mode-switch button { flex: 1; justify-content: center; }
.demo-form [hidden] { display: none; }

/* ---------- Lebegő ajánlat ---------- */
.float-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 340px;
  display: flex; flex-direction: column; gap: 16px; padding: 20px 20px 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.float-cta.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.float-cta p { display: flex; flex-direction: column; gap: 4px; margin: 0; padding-right: 32px; }
.float-cta .btn { align-self: flex-start; }
.float-cta-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: var(--line); color: var(--navy); font-size: var(--fs-lg); line-height: 1; cursor: pointer;
}

/* ---------- Megjelenés görgetéskor ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Hírek: lista ---------- */
.page-head { padding: 64px 0 32px; text-align: center; }
.page-head h1 { font-size: var(--fs-h2); }
.page-head p:last-child { font-size: var(--fs-lg); max-width: 640px; margin: 0 auto; }
.news-filter { width: fit-content; margin: 0 auto 40px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-grid [hidden] { display: none; }
.news-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card .shot { border-bottom: 1px solid var(--line); }
.news-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.news-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: var(--fs-sm); }
.news-card h2, .news-card h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.news-card h2 a, .news-card h3 a { color: inherit; text-decoration: none; }
/* Az egész kártya kattintható: a cím linkje lefedi a kártyát */
.news-card h2 a::after, .news-card h3 a::after { content: ""; position: absolute; inset: 0; }
.news-card p { flex: 1; }
.news-card .link-arrow { font-weight: var(--fw-bold); color: var(--blue); }
.news-card-featured { grid-column: 1 / -1; flex-direction: row; }
.news-card-featured .shot { flex: 1.3; aspect-ratio: auto; min-height: 320px; border-bottom: 0; border-right: 1px solid var(--line); }
.news-card-featured .news-body { flex: 1; padding: 40px; justify-content: center; }
.news-card-featured h2 { font-size: var(--fs-h2); }
.news-empty { text-align: center; padding: 40px 0; }
.news-more { margin-top: 40px; text-align: center; }
.badge-product { background: var(--hero-blue); }
.badge-guide { background: var(--green-tint); }
.badge-company { background: var(--hero-coral); }

/* ---------- Hírek: kis sáv a főoldal végén ---------- */
.news-strip { padding: 56px 0; }
.news-strip-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.news-strip-head h2 { margin: 0; font-size: var(--fs-h3); }
.news-strip-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.news-mini {
  position: relative; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.news-mini:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.news-mini .news-meta { margin-bottom: 8px; }
.news-mini h3 { margin: 0; font-size: var(--fs-base); line-height: 1.4; }
.news-mini h3 a { color: inherit; text-decoration: none; }
.news-mini h3 a::after { content: ""; position: absolute; inset: 0; }

/* ---------- Hírek: cikk ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; font-size: var(--fs-sm); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article-head { padding: 48px 0 32px; }
.article-head h1 { font-size: var(--fs-h2); }
.article-head .lead { max-width: none; }
.article-cover { margin: 0 0 48px; border-radius: var(--radius-card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.prose { font-size: var(--fs-base); line-height: 1.7; }
.prose h2 { font-size: var(--fs-h3); margin: 40px 0 12px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose figure { margin: 32px 0; }
.prose figure .shot { border-radius: var(--radius-sm); border: 1px solid var(--line); }
.prose figcaption { margin-top: 8px; font-size: var(--fs-sm); }
.prose blockquote { margin: 32px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--blue); font-size: var(--fs-lg); }
.article-end { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Záró ajánlat sáv (cikkek alján) */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 28px; border-radius: var(--radius-card); background: var(--navy); color: var(--white); }
.cta-band h2 { margin: 0 0 2px; font-size: var(--fs-h3); }
.cta-band p { margin: 0; }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--navy); color: var(--white); padding: 64px 0 24px; font-size: var(--fs-base); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-title { font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--white); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--fs-sm); }
.footer-bottom p { margin: 0; }

/* ---------- Nagyító ---------- */
.lightbox {
  width: min(1280px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius-card);
  background: var(--surface); box-shadow: var(--shadow-lg); overflow: auto;
}
.lightbox::backdrop { background: rgba(0, 0, 33, .7); }
.lightbox img { width: 100%; }
.lightbox-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 1;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--navy); color: var(--white); font-size: var(--fs-h3); cursor: pointer;
}

/* =========================================================
   Reszponzív nézetek
   ========================================================= */
/* Fejléc: hat menüpont + nyelv + gombok 1280px alatt már nem fér ki, ott hamburger menü */
@media (max-width: 1280px) {
  .menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: var(--navy); cursor: pointer;
  }
  .menu-bar, .menu-bar::before, .menu-bar::after {
    display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px; position: relative; transition: transform .2s ease;
  }
  .menu-bar::before, .menu-bar::after { content: ""; position: absolute; left: 0; }
  .menu-bar::before { top: -6px; }
  .menu-bar::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-bar { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-bar::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px; padding: 16px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .pill-nav { flex-direction: column; align-items: stretch; margin: 0; border-radius: var(--radius-card); }
  .pill-nav a { height: 44px; }
  .header-actions { flex-direction: column; align-items: stretch; }
  .lang-switch { align-self: center; }
  .lang-menu { right: 50%; transform: translateX(50%); }
}

@media (max-width: 1080px) {
  .hero-grid, .tab-panel, .spotlight-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { max-width: 760px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .hr-cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .phone-row { gap: 20px; }
  .app-features { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .case-grid, .news-grid, .news-strip-list { grid-template-columns: 1fr; }
  .news-card-featured { flex-direction: column; }
  .news-card-featured .shot { aspect-ratio: 1440 / 883; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .news-card-featured .news-body { padding: 24px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 20px; gap: 16px; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-head { position: static; }
  .trust-list { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .trust-list li:nth-child(3) { border-left: 0; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .hero { padding: 40px 0 32px; }
  .section { padding: 64px 0; }
  .hero-cta .btn { width: 100%; }
  .float-card { padding: 8px 12px; }
  .float-icon { width: 28px; height: 28px; }
  .float-img { height: 52px; padding: 6px 10px; }
  .float-1 { left: -8px; bottom: 10%; }
  .float-2 { right: -8px; top: 8%; }
  .float-3 { display: none; }
  .bento, .steps, .security-grid, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .phone-row { grid-template-columns: 1fr; gap: 48px; }
  .phone { max-width: 240px; }
  .app-features { grid-template-columns: 1fr; margin-top: 48px; }
  .trust-list { padding: 20px 12px; }
  .tab-bar { overflow-x: auto; }
  .tab-bar button { padding: 0 12px; }
  .demo-form { padding: 20px; }
  .news-filter { width: 100%; }
  .article-end { flex-direction: column; align-items: flex-start; }
  :root { --fs-lg: 16px; }
  .float-cta { left: 16px; right: 16px; bottom: 16px; width: auto; flex-direction: row; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; }
  .float-cta p { padding-right: 0; flex: 1; font-size: var(--fs-sm); }
  .float-cta span { display: none; }
  .float-cta .btn { align-self: center; }
  .float-cta-close { position: static; flex: none; }
  .why-list li { grid-template-columns: 48px 1fr; }
  .case-stats dt { font-size: var(--fs-lg); }
}

/* =========================================================
   Oldalváltás: „smart animate” átmenet (View Transitions API)
   Nyelvváltáskor és a Hírek / cikkek oldalai között: a közös
   fejlécelemek az új méretükre/szövegükre morfolnak, a navy
   jelölő az új menüpontra csúszik (JS), a tartalom elhalványul
   és finoman elcsúszik.
   ========================================================= */
@view-transition { navigation: auto; }
/* a fejléc saját rétegként marad a helyén (a háttér-elmosást az átmenet nem tudja rögzíteni) */
.site-header { view-transition-name: vt-header; }
.site-header .logo { view-transition-name: vt-logo; }
.main-nav .pill-nav { view-transition-name: vt-nav; }
.lang-toggle { view-transition-name: vt-lang; }
.header-actions .btn-ghost { view-transition-name: vt-login; }
.header-actions .btn-primary { view-transition-name: vt-cta; }
main { view-transition-name: vt-main; }

::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(.3, 1.25, .5, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
::view-transition-old(vt-header), ::view-transition-new(vt-header) { animation: none; }
html:active-view-transition .site-header { background: var(--bg); }
/* tartalom: a régi felfelé elúszik és elmosódik, az új alulról érkezik */
::view-transition-old(vt-main) { animation: vt-out .25s ease both; }
::view-transition-new(vt-main) { animation: vt-in .5s .12s cubic-bezier(.2, .8, .2, 1) both; }
/* nyelvjelölő: a régi felfelé „kipörög”, az új alulról érkezik */
::view-transition-old(vt-lang) { animation: vt-flip-out .25s ease both; }
::view-transition-new(vt-lang) { animation: vt-flip-in .35s .1s cubic-bezier(.3, 1.25, .5, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } }
@keyframes vt-flip-out { to { opacity: 0; transform: translateY(-60%) scale(.9); } }
@keyframes vt-flip-in { from { opacity: 0; transform: translateY(60%) scale(.9); } }

/* Amíg a JS be nem állítja a csúszó jelölőt, az aktív menüpont ne villanjon fel (a jelölő érkezik rá) */
@media (min-width: 1281px) {
  .js .main-nav .pill-nav:not(.has-indicator) a.is-active { background: transparent; color: var(--navy); }
}

/* Tartalék azoknak a böngészőknek, amelyek nem ismerik az oldalak közötti átmenetet */
.page-leaving main, .page-leaving .site-footer { opacity: 0; transform: translateY(-12px); filter: blur(4px); transition: opacity .2s ease, transform .2s ease, filter .2s ease; }

/* Mozgáscsökkentés tiszteletben tartása */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
