/* =========================================================================
   HAD Group – designrendszer
   Kézzel írt CSS, keretrendszer és build lépés nélkül.
   A szakaszok sorrendje: betűtípus → tokenek → alap → elrendezés →
   tipográfia → komponensek → szekciók → segédosztályok → reszponzív.
   ========================================================================= */

/* ----------------------------------------------------------------- FONTOK */
/* Self-hosted Montserrat variable font. Nincs külső kérés, így az oldal
   egyetlen harmadik féltől sem tölt le erőforrást (GDPR). */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------- TOKENEK */
:root {
  /* Márkaszínek – a hadgroup__web__fooldal__03c tervből mintavételezve */
  --navy: #0a142f;
  --navy-soft: #0b1530;
  --navy-line: #1d2a48;
  --blue: #064b74;
  --blue-dark: #043a5a;
  --blue-soft: #18587c;
  --mist: #f0f4f7;
  --mist-deep: #e4eaf0;
  --white: #fff;

  /* Szöveg */
  --ink: #0a142f;
  --ink-soft: #46546b;
  --ink-muted: #6b7789;
  --border: #dfe6ed;
  --border-dark: rgba(255, 255, 255, 0.14);

  /* Cégakcent – alapértelmezésben a HAD Group kék.
     A cégoldalakon a [data-company] blokk írja felül. */
  --accent: var(--blue);
  --accent-ink: var(--blue);
  --accent-contrast: #fff;

  /* Elrendezés */
  --container: 1180px;
  --gutter: 24px;
  --header-h: 92px;

  /* Forma – a terv jellegzetes eleme az egy sarkán erősen lekerekített doboz */
  --radius: 4px;
  --radius-md: 16px;
  --squircle: 88px;

  --shadow-sm: 0 2px 10px rgba(10, 20, 47, 0.06);
  --shadow-md: 0 14px 40px rgba(10, 20, 47, 0.12);
  --shadow-lg: 0 26px 70px rgba(10, 20, 47, 0.22);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------------------------------------------ ALAP */
*,
*::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;
  background: var(--white);
  color: var(--ink);
  font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video { display: block; max-width: 100%; }

/* A [hidden] attribútumnak felül kell írnia a fenti display: block szabályt. */
[hidden] { display: none !important; }

img { height: auto; }

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
}
.skip-link:focus { left: 16px; top: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------- ELRENDEZÉS */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #fff; }
.section--blue { background: var(--blue); color: #fff; }

.section--navy a:not(.btn),
.section--blue a:not(.btn) { color: #fff; }

/* --------------------------------------------------------------- TIPOGRÁFIA */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.display {
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  text-transform: uppercase;
  letter-spacing: -0.015em;
}

.h-section {
  font-size: clamp(1.75rem, 3.6vw, 2.875rem);
  text-transform: uppercase;
}

.h-card {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  text-transform: uppercase;
  line-height: 1.25;
}

/* Az „A HAD GROUP SZÁMOKBAN" mintájára: a kiemelt szó kap márkaszínt. */
.h-section em,
.display em {
  font-style: normal;
  color: var(--accent-ink);
}
.section--navy .h-section em,
.section--blue .h-section em,
.hero .display em { color: #fff; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.section--navy .eyebrow,
.section--blue .eyebrow { color: #7fc4e8; }

.subhead {
  margin: 14px 0 0;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.section--navy .subhead,
.section--blue .subhead { color: rgba(255, 255, 255, 0.82); }

.lead {
  margin: 18px 0 0;
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 62ch;
}
.section--navy .lead,
.section--blue .lead,
.hero .lead { color: rgba(255, 255, 255, 0.86); }

.prose p { margin: 0 0 1.1em; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.section--navy .prose strong,
.hero .prose strong { color: #fff; }

.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* ------------------------------------------------------------------ GOMBOK */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border: 2px solid transparent;
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--navy); }

.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent-ink); }

/* Négyzetes nyílgomb – a terv kártyáinak visszatérő eleme. */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: background-color 0.22s var(--ease);
}
.btn-arrow:hover { background: var(--blue-dark); }
.btn-arrow svg { width: 20px; height: 20px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.link-more svg { width: 16px; height: 16px; transition: transform 0.22s var(--ease); }
.link-more:hover svg { transform: translateX(4px); }
.section--navy .link-more,
.section--blue .link-more { color: #fff; }

/* ------------------------------------------------------------------ FEJLÉC */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  background: transparent;
  transition: background-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 20, 47, 0.72), rgba(10, 20, 47, 0));
  pointer-events: none;
}
.header.is-solid,
.header.is-open { background: var(--navy); box-shadow: 0 6px 24px rgba(10, 20, 47, 0.28); }
.header.is-solid::before,
.header.is-open::before { opacity: 0; }

/* Aloldalakon a fejléc mindig tömör. */
body:not(.has-hero) .header { background: var(--navy); }
body:not(.has-hero) .header::before { opacity: 0; }
body:not(.has-hero) { padding-top: var(--header-h); }

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(36px, 4vw, 56px);
  min-height: var(--header-h);
}

.header__logo {
  flex: 0 0 auto;
}
.header__logo img {
  width: clamp(230px, 19vw, 255px);
}

.nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(24px, 2.4vw, 36px);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: #fff;
  transition: right 0.26s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current]::after,
.nav__item:focus-within > .nav__link::after { right: 0; }

/* Legördülő almenü – hoverre és billentyűzet-fókuszra is nyílik. */
.nav__item { position: relative; }

.nav__panel {
  position: absolute;
  left: 50%;
  top: 100%;
  min-width: 248px;
  margin-top: 14px;
  padding: 10px;
  list-style: none;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav__item:hover > .nav__panel,
.nav__item:focus-within > .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav__panel a {
  display: block;
  padding: 10px 14px;
  border-radius: 3px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}
.nav__panel a:hover { background: var(--mist); color: var(--blue); }

/* Nyelvváltó a navigáció végén. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease);
}
.lang-switch:hover { background: #fff; border-color: #fff; color: var(--navy); }

.nav__toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
}
.nav__toggle svg { width: 24px; height: 24px; }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--navy-line);
  background: var(--navy);
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.nav-mobile.is-open { display: block; }
.nav-mobile ul { margin: 0; padding: 0 0 20px; list-style: none; }
.nav-mobile a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--navy-line);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.nav-mobile .nav-mobile__sub a {
  padding-left: 18px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.76);
}
.nav-mobile a[aria-current] {
  padding-left: 14px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 3px 0 #7fc4e8;
  color: #fff;
  font-weight: 800;
}
.nav-mobile .nav-mobile__sub a[aria-current='page'] {
  padding-left: 28px;
  background: rgba(127, 196, 232, 0.12);
  box-shadow: inset 3px 0 #7fc4e8;
  color: #fff;
  font-weight: 700;
}
.nav-mobile__language {
  padding-block: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.nav-mobile .nav-mobile__language-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  text-transform: none;
}
.nav-mobile__language-link img { width: 24px; height: 16px; }

/* -------------------------------------------------------------------- HERO */
.hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}

/* A diák egyetlen rácscellában fekszenek egymáson, így a szekció magassága
   a legmagasabb dia szerint alakul – nincs szükség abszolút pozicionálásra. */
.hero__slides {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero__slide {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: min(92vh, 820px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }

.hero__bg { position: absolute; inset: 0; display: block; overflow: hidden; }
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero__bg--top img { object-position: right top; }

/* A szöveg olvashatóságát balról induló sötét átmenet biztosítja. */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, var(--navy) 14%, rgba(10, 20, 47, 0.84) 38%, rgba(10, 20, 47, 0.2) 70%, rgba(10, 20, 47, 0.4) 100%),
    linear-gradient(to bottom, rgba(10, 20, 47, 0.5), rgba(10, 20, 47, 0) 30%);
}

/* Fotó nélküli dia: márkázott háttér, halvány ágazati ikonnal. */
.hero__slide--plain .hero__bg {
  background:
    radial-gradient(120% 120% at 78% 50%, var(--blue) 0%, rgba(6, 75, 116, 0) 62%),
    linear-gradient(115deg, var(--navy) 36%, #0d2a49 100%);
}
.hero__slide--plain .hero__bg::after {
  background: linear-gradient(100deg, var(--navy) 12%, rgba(10, 20, 47, 0.72) 42%, rgba(10, 20, 47, 0.1) 76%);
}
.hero__watermark {
  position: absolute;
  right: 8%;
  top: 50%;
  width: min(34vw, 380px);
  height: auto;
  transform: translateY(-50%);
  opacity: 0.16;
  filter: brightness(0) invert(1);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: calc(var(--header-h) + 48px) 150px;
}

.hero__content {
  min-width: 0;
  max-width: 620px;
}

.hero__slogan {
  max-width: 44ch;
  margin: 24px 0 0;
  padding: 14px 18px;
  border-left: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 0 12px 12px 0;
  background: rgba(10, 20, 47, 0.68);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  text-wrap: balance;
}

@media (min-width: 1200px) {
  .hero--slogans .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
  }
  .hero__slogan {
    max-width: 30ch;
    margin: 0;
    padding: 22px 26px;
    font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  }
}

.hero__brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 30px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.hero__brands img { height: 32px; width: auto; }

.hero .display { color: #fff; }
.hero .lead { max-width: 52ch; }
.hero .lead p {
  color: #fff;
  font-weight: 400;
}
.hero .btn {
  margin-top: 32px;
  padding: 17px 38px;
  font-size: 0.875rem;
  letter-spacing: 0.16em;
}

/* Slider vezérlők – a terven a hero alján, középen. */
.hero__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.hero__nav {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 18px 34px;
}

.hero__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.hero__arrow:hover { opacity: 1; transform: scale(1.08); }
.hero__arrow svg { width: 30px; height: 30px; }

.hero__dots { display: flex; align-items: center; gap: 12px; }
.hero__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.26s var(--ease), background-color 0.26s var(--ease);
}
.hero__dot.is-active { width: 30px; border-radius: 5px; background: #fff; }

/* Lebegő kapcsolatfelvételi fül a hero jobb alsó sarkában. */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 34px;
  background: var(--blue);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 0.22s var(--ease);
}
.hero__cta:hover { background: var(--blue-dark); }
.hero__cta svg { width: 26px; height: 26px; flex: 0 0 auto; }

/* ------------------------------------------------------------------ SZÁMOK */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 44px) clamp(20px, 2.4vw, 34px);
}

.stat { display: flex; align-items: flex-start; gap: 16px; }

.stat__icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
}
.stat__icon img { width: 100%; height: 100%; object-fit: contain; }

.stat__body {
  display: block;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.stat__value {
  display: block;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.stat__value sup { font-size: 0.5em; vertical-align: super; }

.stat__label {
  display: block;
  margin-top: 4px;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------- IDŐVONAL */
.timeline {
  --timeline-gutter: clamp(16px, 1.8vw, 32px);
  margin-top: clamp(28px, 3.4vw, 48px);
}

/* Keskeny nézetben görgethető, asztali nézetben a teljes sáv elfér. */
.timeline__track {
  display: flex;
  margin: 0;
  padding: 0 0 14px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-inline: var(--timeline-gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--blue-soft) transparent;
}
.timeline__track::-webkit-scrollbar { height: 6px; }
.timeline__track::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.08); }
.timeline__track::-webkit-scrollbar-thumb { background: var(--blue-soft); border-radius: 3px; }

.milestone {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  flex: 0 0 200px;
  min-width: 0;
  scroll-snap-align: center;
}

.milestone__pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-left: -17px;
  padding-right: 17px;
}
.milestone:first-child .milestone__pane { margin-left: 0; }
.milestone--last .milestone__pane { padding-right: 0; }
/* A felső sáv tartalma alulra, az alsóé felülre tapad – így mindkettő
   pontosan az idővonalhoz érkezik. */
.milestone--up > .milestone__pane:first-child { justify-content: flex-end; }
.milestone--down > .milestone__pane:last-child { justify-content: flex-start; }

.milestone__box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 82px;
  padding: 12px 14px;
  border: 2px solid rgba(255, 255, 255, 0.38);
}
.milestone--up .milestone__box { border-bottom: 0; }
.milestone--down .milestone__box { border-top: 0; }
.milestone__box::before,
.milestone__box::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 20px;
  background: rgba(255, 255, 255, 0.38);
}
.milestone__box::before { left: -2px; }
.milestone__box::after { right: -2px; }
.milestone--up .milestone__box::before,
.milestone--up .milestone__box::after { top: 100%; }
.milestone--down .milestone__box::before,
.milestone--down .milestone__box::after { bottom: 100%; }
.milestone__box img { max-height: 26px; width: auto; }
.milestone:first-child .milestone__box img,
.milestone--last .milestone__box img { max-width: 88%; }

/* A sáv két végén megjelenik a jellegzetes nagy lekerekítés. */
.milestone:first-child .milestone__box { border-top-left-radius: 40px; }
.milestone--last .milestone__box { border-bottom-right-radius: 40px; }

.milestone__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.76);
}
.milestone__text strong { color: #fff; font-weight: 700; }

.milestone__axis {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  gap: 12px;
}
.milestone:first-child .milestone__axis::before,
.milestone--last .milestone__axis::after {
  content: '';
  position: absolute;
  top: 50%;
  width: var(--timeline-gutter);
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%);
}
.milestone:first-child .milestone__axis::before { right: 100%; }
.milestone--last .milestone__axis::after { left: 100%; }

.axis__line {
  flex: 1 1 auto;
  min-width: 12px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
}

.milestone__year {
  flex: 0 0 auto;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.axis__arrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
}
.axis__arrow svg { width: 22px; height: 22px; }

/* ------------------------------------------------------ TEVÉKENYSÉGI KÖRÖK */
.sectors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
  align-items: start;
}

.sector { display: block; }

/* A 3. és 4. csempe lejjebb csúszik – a terv lépcsőzetes ritmusa. */
.sector--flip { margin-top: clamp(32px, 4.4vw, 76px); }

.sector__media {
  position: relative;
  display: block;
  aspect-ratio: 268 / 535;
  overflow: hidden;
}
.sector__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.sector__media img[src$="/ipari-ingatlanok.webp"] { object-position: left 40%; }
.sector__media img[src$="/gyartastechnologia.webp"] { object-position: right 40%; }
.sector:hover .sector__media img { transform: scale(1.06); }

.sector__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 20, 47, 0.5), rgba(10, 20, 47, 0) 45%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.sector:hover .sector__media::after { opacity: 1; }

/* Az első csempe bal felső, az utolsó jobb alsó sarka kapja a lekerekítést. */
.sector:first-child .sector__media { border-top-left-radius: var(--squircle); }
.sector:last-child .sector__media { border-bottom-right-radius: var(--squircle); }

/* Az ikonbélyeg a fotó szélére lóg rá, a terv szerint. */
.sector__caption {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 4px;
  text-align: center;
}
/* Fordított csempe: előbb a cím, alatta a fotóra lógó ikonbélyeg. */
.sector--flip .sector__caption { flex-direction: column-reverse; }

.sector:not(.sector--flip) .sector__caption { margin-top: -43px; }
.sector--flip .sector__caption { margin-bottom: -43px; }

.sector__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  background: #fff;
  border-bottom: 3px solid var(--blue);
}
.sector--flip .sector__icon { border-bottom: 0; border-top: 3px solid var(--blue); }
.sector__icon img { width: 52px; height: 52px; }

.sector__title {
  display: block;
  margin: 14px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.22s var(--ease);
}
.sector:hover .sector__title { color: var(--blue); }

/* ------------------------------------------------------------- CÉGCSOPORT */
.group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}

.group-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* A terv szerinti kártyaarány nagyjából 1,8 : 1 – ennyi hely kell ahhoz,
     hogy a hover-réteg logója, leírása és linkje elférjen. */
  min-height: clamp(154px, 17.5vw, 210px);
  padding: 26px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.group-grid > :first-child { border-top-left-radius: var(--squircle); }
.group-grid > :last-child { border-bottom-right-radius: var(--squircle); }

/* A rács közepén a HAD Group logó áll, kártya nélkül. */
.group-cell--brand { background: transparent; box-shadow: none; }
.group-cell--brand img { width: min(100%, 300px); }

.group-cell__logo {
  max-width: min(78%, 230px);
  filter: grayscale(1);
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
}
.group-cell__logo--cropped { filter: none; }
.group-cell--had-it .group-cell__logo { filter: brightness(0); }

.group-cell__reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 18px;
  background: var(--blue);
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.group-cell__reveal img { max-width: min(62%, 160px); max-height: 28px; object-fit: contain; }
.group-cell__reveal p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  /* Hosszabb leírás is biztonsággal elfér: három sor után levágjuk. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.group-cell__reveal .link-more { font-size: 0.6875rem; color: #fff; }

.group-cell:hover .group-cell__logo,
.group-cell:focus-within .group-cell__logo { opacity: 0; transform: scale(0.96); }
.group-cell:hover .group-cell__reveal,
.group-cell:focus-within .group-cell__reveal { opacity: 1; transform: translateY(0); }
.group-cell:not(.group-cell--brand):hover { box-shadow: var(--shadow-md); }

.group-cell__action { display: none; }

/* ------------------------------------------------------------- KAPCSOLAT */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.contact-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list svg { width: 22px; height: 22px; flex: 0 0 auto; }
.contact-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid var(--border-dark);
  border-radius: 50%;
}
.contact-list a:hover { text-decoration: underline; }

/* A kapcsolatblokk világos változatai. A kártya desktopon a lábléc fölé nyúlik. */
.contact-section {
  position: relative;
  z-index: 1;
  padding-block: clamp(56px, 5vw, 72px) 0;
  color: var(--ink);
}
.contact-section--white { background: #fff; }
.contact-section--gray { background: var(--mist); }

.contact-section .contact-grid {
  grid-template-columns: minmax(0, 0.96fr) minmax(480px, 1.04fr);
  gap: clamp(54px, 7vw, 96px);
}
.contact-section__intro {
  max-width: 540px;
  padding-top: 4px;
}
.contact-section__title {
  margin: 0;
  color: #000;
  font-size: clamp(2rem, 3vw, 2.625rem);
  line-height: 1.12;
  text-transform: uppercase;
}
.contact-section__title span,
.contact-section__title strong { display: block; }
.contact-section__title strong {
  color: var(--blue);
  font-weight: 800;
}
.contact-section__eyebrow {
  margin: 20px 0 0;
  color: var(--blue);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.contact-section__copy {
  max-width: 500px;
  margin: 22px 0 0;
  color: #111;
  font-size: 1rem;
  line-height: 1.45;
}
.contact-section .contact-list {
  gap: 14px;
  margin-top: 36px;
}
.contact-section .contact-list li {
  gap: 0;
  color: #111;
}
.contact-section .contact-list__icon {
  width: 46px;
  height: 40px;
  border: 0;
  border-radius: 0;
  color: var(--blue);
}
.contact-section .contact-list__icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.8;
}
.contact-section .contact-list__value {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding-left: 18px;
  border-left: 2px solid var(--blue);
  color: #111;
}
.contact-section .contact-list a.contact-list__value {
  color: #111;
  font-weight: 400;
}
.contact-section .contact-list a.contact-list__value:hover {
  color: var(--blue);
}
.contact-section .form-card {
  position: relative;
  z-index: 2;
  margin-bottom: -60px;
  padding: clamp(36px, 3.6vw, 52px) clamp(34px, 4.2vw, 62px) clamp(46px, 4vw, 60px);
  border-radius: 0;
  box-shadow: 0 18px 44px rgba(10, 20, 47, 0.12);
}
.contact-section .form-card .h-card {
  color: var(--blue);
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  line-height: 1.15;
}
.contact-section .form-grid {
  gap: 10px 36px;
  margin-top: 22px;
}
.contact-section .field > label {
  margin-bottom: 0;
  color: #111;
  font-size: 0.8125rem;
  line-height: 1.2;
}
.contact-section .field input,
.contact-section .field select {
  min-height: 28px;
  padding: 2px 0 6px;
  color: #111;
  font-size: 0.875rem;
}
.contact-section .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23000' d='m0 0 6 8 6-8z'/%3E%3C/svg%3E");
  background-position: right 2px center;
  background-size: 12px 8px;
}
.contact-section .field select:required:invalid { color: transparent; }
.contact-section .field select option { color: var(--ink); }
.contact-section .field textarea {
  min-height: 150px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border);
}
.contact-section .field__error:empty { display: none; }
.contact-section .req { display: none; }
.contact-section .form-footer {
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 24px;
  margin-top: 25px;
}
.contact-section .consent {
  max-width: 250px;
  color: #111;
  font-size: 0.8125rem;
  line-height: 1.35;
}
.contact-section .consent input {
  width: 20px;
  height: 20px;
  margin-top: 0;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
}
.contact-section .consent input:checked {
  background:
    var(--blue)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2' d='m3 8 3 3 7-7'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.contact-section .form-footer .btn {
  min-width: 150px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 0;
  letter-spacing: 0.18em;
  white-space: nowrap;
}
.footer--contact-overlap .footer__brand {
  padding-top: clamp(100px, 8vw, 116px);
}

/* ----------------------------------------------------------------- ŰRLAP */
.form-card {
  padding: clamp(28px, 3.4vw, 46px);
  background: #fff;
  color: var(--ink);
  border-bottom-right-radius: var(--squircle);
  box-shadow: var(--shadow-lg);
}
.form-card h2,
.form-card h3 { color: var(--ink); }
/* A sötét szekció fehér linkszabályát a fehér űrlapkártyán felül kell írni. */
.form-card a:not(.btn) { color: var(--accent-ink); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
  margin-top: 26px;
}
.field--full { grid-column: 1 / -1; }

.field { position: relative; display: flex; flex-direction: column; }

.field > label {
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.field > label .req { color: #c0392b; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  font-size: 0.9375rem;
  transition: border-color 0.22s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }

.field select {
  appearance: none;
  /* Safari a hosszú opciószöveget a mező szélességén túl is görgethetőnek tekinti. */
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7789' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 18px;
  cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--accent); }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-bottom-color: #c0392b; }

.field__error {
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #c0392b;
  min-height: 1em;
}

/* Honeypot – valódi látogató nem tölti ki, a robotok igen. */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-muted);
}
.consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--accent);
}
.consent a { color: var(--accent-ink); text-decoration: underline; }
.consent.has-error { color: #8e2a1f; }
.consent.has-error input { outline: 2px solid #c0392b; outline-offset: 2px; }
.consent .field__error { display: block; }

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
}

.form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--mist);
  font-size: 0.875rem;
  font-weight: 600;
}
.form-status[hidden] { display: none; }
.form-status--error { border-left-color: #c0392b; color: #8e2a1f; }

/* -------------------------------------------------------------- PROJEKTEK */
/* Cégszűrő sáv – a Projektjeink és a Referenciák oldal közös eleme. */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: clamp(28px, 3.4vw, 46px);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.filter-chip img { height: 20px; width: auto; }
.filter-chip:hover { background: rgba(255, 255, 255, 0.14); }
.filter-chip[aria-pressed='true'] { background: #fff; border-color: #fff; }
.filter-chip[aria-pressed='true'] img { filter: none; }

/* A sávon a logók fehérek, a kiválasztotton az eredeti színükben állnak. */
.filter-chip img { filter: brightness(0) invert(1); }
.filter-chip[aria-pressed='true'] img { filter: none; }

.filter-chip--text {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.filter-chip--text[aria-pressed='true'] { color: var(--navy); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Vízszintes projektkártya: kép balra, szöveg jobbra, nyílgomb sarokban. */
.project-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  background: #fff;
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.project-card__media { position: relative; z-index: 2; overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; min-height: 190px; }

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 0;
  min-width: 0;
}
.project-card__title { color: var(--blue); }
.project-card__excerpt {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* A meta sáv negatív margóval a kártya teljes szélességére nyúlik,
   így a nyílgomb a jobb szélhez simul – ahogy a terven. */
.project-card__meta {
  display: flex;
  align-items: stretch;
  margin: auto -24px 0;
  border-top: 1px solid var(--border);
}
.project-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 14px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-card__meta span + span { border-left: 1px solid var(--border); }
.project-card__meta svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--ink-muted); }
.project-card__meta .btn-arrow {
  flex: 0 0 auto;
  margin-left: auto;
  width: 54px;
  height: auto;
  padding: 0;
}

.project-card__link,
.card-link { position: absolute; inset: 0; z-index: 1; }
.project-card__link span,
.card-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.project-card .btn-arrow { position: relative; z-index: 2; pointer-events: none; }

/* ----------------------------------------------------- HÍRKÁRTYÁK */
.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.news-card__media { overflow: hidden; }
.news-card__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px;
}
.news-card__title { color: var(--blue); }

.news-card__date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 700;
}
.news-card__date svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--accent-ink); }

.news-card__excerpt {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Kiemelt hír: kép balra, tartalom jobbra, jobb felső sarok lekerekítve. */
.news-card--wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: clamp(16px, 2vw, 26px);
  border-top-right-radius: var(--squircle);
}
.news-card--wide .news-card__media img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.news-card--wide .news-card__body { justify-content: center; padding: clamp(24px, 3vw, 44px); }
.news-card--wide .news-card__title { font-size: clamp(1.25rem, 2.2vw, 1.875rem); }
.news-card--wide .news-card__excerpt { -webkit-line-clamp: 6; }
.news-card--wide .card-foot { margin: 14px -1px -1px; }

/* Kártya lábsáv: céglogó | Bővebben | nyílgomb. */
.card-foot {
  display: flex;
  align-items: stretch;
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.card-foot__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 16px;
}
.card-foot__logo img { max-height: 22px; max-width: 100%; width: auto; object-fit: contain; }
.card-foot__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 12px 20px;
  border-left: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-ink);
}
.card-foot .btn-arrow { flex: 0 0 auto; width: 54px; height: auto; }

/* -------------------------------------------------- ÁLLÁSKÁRTYÁK */
.job-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease);
}
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.job-card__media img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.job-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.6vw, 34px);
}
.job-card__logo {
  align-self: flex-start;
  max-height: 24px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  margin-bottom: 4px;
}
.job-card__title { color: var(--blue); }
.job-card__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
.job-card__meta span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 700; }
.job-card__meta svg { width: 16px; height: 16px; color: var(--ink-muted); }
.job-card__excerpt { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-soft); }
.job-card .link-more { margin-top: 6px; }

.card-grid--1 { grid-template-columns: minmax(0, 1fr); }

.cards-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.cards-head h3 {
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  text-transform: uppercase;
  color: #fff;
}
.section--mist .cards-head h3,
.section--default .cards-head h3 { color: var(--blue); }

.empty-state {
  padding: 48px 0;
  text-align: center;
  color: var(--ink-muted);
}
.section--navy .empty-state { color: rgba(255, 255, 255, 0.7); }

.project-group + .project-group { margin-top: clamp(36px, 4vw, 64px); }

.section-foot { margin: clamp(32px, 4vw, 52px) 0 0; text-align: center; }

/* ------------------------------------------------------------------ LÁBLÉC */
.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.76);
}
.footer::after {
  content: '';
  position: absolute;
  z-index: 0;
  bottom: -41px;
  left: calc(50% + min(566px, calc(50vw - var(--gutter))));
  width: 494px;
  height: 539px;
  background: url('../img/brand/footer-mark-right.png') left bottom / 494px 539px no-repeat;
  pointer-events: none;
}
.footer > .container {
  position: relative;
  z-index: 1;
}

.footer__brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(40px, 5vw, 64px);
  margin-bottom: -18px;
}
.footer__brand img {
  width: 230px;
  padding-inline: 28px;
  background: var(--navy);
  box-sizing: content-box;
}

.footer__companies {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: clamp(34px, 4vw, 52px) clamp(20px, 3vw, 42px);
  margin-top: 0;
  padding: clamp(52px, 4vw, 64px) clamp(28px, 3vw, 48px) clamp(34px, 3vw, 46px);
  border: 1px solid var(--border-dark);
}
.footer__companies a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.footer__companies a:nth-child(6) {
  grid-row: 2;
  grid-column: 2;
}
.footer__companies a:nth-child(7) {
  grid-row: 2;
  grid-column: 4;
}
.footer__companies a:nth-child(8) {
  grid-row: 2;
  grid-column: 3;
}
.footer__companies img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 30px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
/* Kétsoros (torony) elrendezésű logók – pl. WLP – külön magasságot kapnak,
   különben az egysoros logók mellett aránytalanul kicsinek hatnak. */
.footer__companies .logo--stacked {
  height: auto;
  max-height: 52px;
}
.hero__brands .logo--stacked { height: 56px; }
.milestone__box .logo--stacked { max-height: 44px; }
.footer__companies a:hover img { opacity: 1; transform: translateY(-2px); }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 44px);
  padding-block: clamp(36px, 4vw, 56px);
}
.footer__cols > div + div {
  padding-left: clamp(20px, 2.4vw, 36px);
  border-left: 1px solid var(--border-dark);
}

.footer__title {
  margin: 0 0 18px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.footer__list li { min-height: 30px; }
.footer__list a { font-size: 0.9375rem; line-height: 30px; }
.footer__list a:hover { color: #fff; text-decoration: underline; }
.footer__list p { margin: 0; font-size: 0.9375rem; line-height: 30px; }

.footer__bottom {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 20px;
  padding-block: 24px;
  border-top: 1px solid var(--border-dark);
  font-size: 0.8125rem;
}
.footer__bottom p {
  grid-row: 1;
  grid-column: 2;
  margin: 0;
  text-align: center;
  color: #fff;
}
.footer__bottom p strong {
  font-weight: 800;
}

.social {
  grid-row: 1;
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.social:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.social svg { width: 20px; height: 20px; }

.footer__top {
  grid-row: 1;
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.footer__top:hover {
  background: var(--blue);
  border-color: var(--blue);
}
.footer__top svg {
  width: 22px;
  height: 22px;
}

/* ----------------------------------------------------- ALOLDALFEJ */
/* Navy sáv az aloldalak tetején; opcionális háttérfotóval. */
.page-hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, var(--navy) 18%, rgba(10, 20, 47, 0.78) 55%, rgba(10, 20, 47, 0.52) 100%);
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(48px, 6vw, 86px);
}
.page-hero .display { font-size: clamp(1.875rem, 4.2vw, 3.25rem); }
.page-hero .lead { color: rgba(255, 255, 255, 0.86); }
.page-hero__logo { height: clamp(34px, 4vw, 52px); width: auto; margin-bottom: 22px; }
.page-hero__logo.logo--stacked { height: clamp(52px, 6vw, 78px); }

/* ------------------------------------------------ TARTALMI BLOKKOK */
/* Szöveg + kép kétoszlopos blokk; a --reverse megcseréli az oldalakat. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--contain img { aspect-ratio: auto; object-fit: contain; }
.split--tl .split__media img { border-top-left-radius: var(--squircle); }
.split--br .split__media img { border-bottom-right-radius: var(--squircle); }

.prose h3 {
  margin: 1.6em 0 0.6em;
  font-size: 1.125rem;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.prose h3:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.1em; color: var(--ink-soft); }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--accent); }
.section--navy .prose ul,
.section--navy .prose li { color: rgba(255, 255, 255, 0.84); }
.section--navy .prose h3 { color: #7fc4e8; }

/* Ikonos jellemzőlista – pl. termékkategóriák, szolgáltatások. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.4vw, 30px);
  background: #fff;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--accent);
}
.feature__title { font-size: 1rem; font-weight: 800; text-transform: uppercase; line-height: 1.3; }
.feature p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-soft); }
.section--mist .feature { background: #fff; }

/* Egyszerű, pipás felsorolás. */
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-soft); }
.check-list li::before {
  content: '';
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 9px;
  background: var(--accent);
}
.section--navy .check-list li { color: rgba(255, 255, 255, 0.84); }

/* Számadatok sötét háttéren, a cégoldalak kiemelt mutatóihoz. */
.figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
}
.figure__value {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.figure__label { display: block; margin-top: 6px; font-size: 0.875rem; line-height: 1.4; }
.section--navy .figure__value,
.section--blue .figure__value { color: #fff; }
.section--navy .figure__label,
.section--blue .figure__label { color: rgba(255, 255, 255, 0.76); }

/* Műszaki adatok táblázata a referencia-adatlapokon. */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.spec-table caption {
  margin-bottom: 12px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--accent-ink);
}
.spec-table th,
.spec-table td { padding: 12px 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.spec-table th { width: 42%; font-weight: 700; color: var(--ink); }
.spec-table td { color: var(--ink-soft); }

/* Galéria – a referencia- és hír-adatlapok képsora. */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery > :first-child { border-top-left-radius: var(--squircle); overflow: hidden; }
.gallery > :last-child { border-bottom-right-radius: var(--squircle); overflow: hidden; }

.reference-detail-page { --reference-gallery-overlap: clamp(48px, 5.5vw, 72px); }
.reference-detail-hero .page-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: 32px calc(var(--reference-gallery-overlap) + 28px);
}
.reference-detail-hero .display { overflow-wrap: anywhere; }
.reference-gallery-section {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--reference-gallery-overlap));
}
.project-gallery {
  background: #fff;
  box-shadow: var(--shadow-md);
}
.project-gallery__viewport {
  position: relative;
  display: flex;
  height: clamp(260px, 46svh, 440px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}
.project-gallery__slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.project-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-image-link {
  position: relative;
  display: block;
  height: 100%;
  cursor: zoom-in;
}
.project-image-link__label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  pointer-events: none;
}
.project-gallery__image--front { object-position: center bottom; }
.project-gallery__slide .project-gallery__image--native {
  object-fit: scale-down;
  background: var(--mist);
}
.project-gallery__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(16px, 2vw, 24px);
}
.project-gallery__position {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 700;
}
.project-gallery__buttons { display: flex; gap: 8px; }
.project-gallery__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}
.project-gallery__button:hover:not(:disabled) { background: var(--blue-dark); }
.project-gallery__button:disabled { opacity: 0.35; cursor: default; }
.project-gallery__button svg { width: 22px; height: 22px; }
.reference-detail-content { padding-top: clamp(32px, 4vw, 56px); }
.reference-detail-content .article-meta img { max-height: 18px; }

@media (max-width: 760px) {
  .reference-detail-hero .page-hero__inner { padding-top: 28px; }
  .project-gallery__viewport { height: auto; aspect-ratio: 4 / 3; }
  .project-gallery__slide img { object-fit: contain; background: var(--mist); }
}

/* Cikktörzs mérete: hosszú olvasószöveghez szűkebb hasáb. */
.article-body { max-width: 74ch; }
.privacy-page .page-hero .display {
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  overflow-wrap: anywhere;
}
.privacy-notice { overflow-wrap: anywhere; }
.privacy-notice h2 {
  margin: 1.75em 0 0.65em;
  color: var(--accent-ink);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.3;
  text-transform: uppercase;
}
.privacy-notice h2:first-child { margin-top: 0; }
.news-article-image {
  width: 100%;
  max-width: 560px;
  margin: 0 0 1.6em;
  border-radius: 0;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin: 0 0 clamp(24px, 3vw, 36px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 700;
}
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta svg { width: 16px; height: 16px; color: var(--accent-ink); }
.article-meta img { max-height: 22px; width: auto; }

/* ------------------------------------------------------- HARMONIKA */
.accordion { display: grid; gap: 12px; }

.accordion__item { background: #fff; box-shadow: var(--shadow-sm); }
.accordion > :first-child { border-top-left-radius: var(--squircle); overflow: hidden; }
.accordion > :last-child { border-bottom-right-radius: var(--squircle); overflow: hidden; }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.6vw, 32px);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.accordion__trigger img { max-height: 30px; max-width: 220px; width: auto; object-fit: contain; }
.accordion__name {
  flex: 1 1 auto;
  font-size: clamp(0.9375rem, 1.4vw, 1.125rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
}
.accordion__label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.accordion__label::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.26s var(--ease);
}
.accordion__trigger[aria-expanded='true'] .accordion__label::after { transform: rotate(225deg) translate(-2px, -2px); }

.accordion__panel { padding: 0 clamp(20px, 2.6vw, 32px) clamp(24px, 3vw, 34px); }
.accordion__panel.is-animating { overflow: hidden; }

/* --------------------------------------------------- SZEMÉLYKÁRTYA */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.person__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--mist);
}
.person__name { margin: 14px 0 2px; font-size: 1rem; font-weight: 800; line-height: 1.25; }
.person__role { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-muted); }

/* ------------------------------------------------- FÁJLFELTÖLTÉS */
.field--file input[type='file'] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.file-picker {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.file-picker__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 18px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease);
}
.file-picker__button:hover { border-color: var(--accent); color: var(--accent-ink); }
.field--file input[type='file']:focus-visible + .file-picker .file-picker__button {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.file-picker__name {
  min-width: 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------------------------- CTA SÁV */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 3.4vw, 46px);
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: var(--squircle);
}
.cta-band h2 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); text-transform: uppercase; }
.cta-band p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.86); }

/* ------------------------------------------------------- LOGÓSOR */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 72px);
}
.logo-link img {
  height: 42px;
  width: auto;
  transition: transform 0.22s var(--ease);
}
.logo-link .logo--stacked { height: 68px; }
.logo-link:hover img { transform: translateY(-3px); }

.logo-row--property {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.logo-row--property .logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
}

/* Világos háttéren a szűrősáv sötét kerettel dolgozik. */
.filter-bar--light .filter-chip {
  background: #fff;
  border-color: var(--border);
  color: var(--ink);
}
.filter-bar--light .filter-chip img { filter: none; }
.filter-bar--light .filter-chip:hover { border-color: var(--accent); }
.filter-bar--light .filter-chip[aria-pressed='true'] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.filter-bar--light .filter-chip[aria-pressed='true'] img { filter: brightness(0) invert(1); }

.field-hint { font-weight: 400; color: var(--ink-muted); }

/* ----------------------------------------------------------- CÉGAKCENTEK */
/* A cégoldalak a saját márkaszínüket kapják, a fejléc/lábléc navy marad. */
[data-company='daniella']        { --accent: #ed1c24; --accent-ink: #cf1118; }
[data-company='dominant']        { --accent: #7f141f; --accent-ink: #7f141f; }
[data-company='simotrade']       { --accent: #fde160; --accent-ink: #8a6d00; --accent-contrast: #0a142f; }
[data-company='raktarad']        { --accent: #f48123; --accent-ink: #c55c06; }
[data-company='had-it']          { --accent: #11b2b9; --accent-ink: #0b8086; }
[data-company='had-consulting']  { --accent: #11b2b9; --accent-ink: #0b8086; }
[data-company='wlp']             { --accent: #1e0f00; --accent-ink: #1e0f00; }
[data-company='hadnagy-holding'] { --accent: #152633; --accent-ink: #152633; }

/* A teljes cégoldal témája nem érinti az azonos céghez tartozó híreket/állásokat. */
.company-page {
  --company-surface: var(--accent);
  --company-on-surface: var(--accent-contrast);
}
.company-page[data-company='daniella'] {
  --company-surface: var(--accent-ink);
}
.company-page[data-company='raktarad'] {
  --accent-ink: #a64c05;
  --accent-contrast: var(--ink);
}
.company-page[data-company='had-it'],
.company-page[data-company='had-consulting'] {
  --accent-contrast: var(--ink);
}

.company-page .page-hero { border-bottom: 6px solid var(--accent); }
.company-page .section--mist {
  background: color-mix(in srgb, var(--accent) 7%, #fff);
}
.company-page .section-head .h-section { color: var(--accent-ink); }

.company-page .feature {
  --feature-padding: clamp(22px, 2.4vw, 30px);
  gap: 0;
  padding: 0;
}
.company-page .feature__title {
  padding: clamp(18px, 2vw, 24px) var(--feature-padding);
  background: var(--company-surface);
  color: var(--company-on-surface);
}
.company-page .feature p { padding: var(--feature-padding); }

.company-page .section--navy,
.company-page .cta-band {
  background: var(--company-surface);
  color: var(--company-on-surface);
}
.company-page .section--navy .h-section,
.company-page .section--navy .figure__value,
.company-page .section--navy .figure__label,
.company-page .cta-band p {
  color: var(--company-on-surface);
}

.company-figures {
  --company-surface: color-mix(in srgb, var(--accent) 35%, #111);
  --company-on-surface: #fff;
  --figures-heading: color-mix(in srgb, var(--accent) 40%, #fff);
  position: relative;
  isolation: isolate;
}
.company-figures::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--figures-image) center 40% / cover no-repeat;
  opacity: 0.18;
}
.company-page .company-figures .h-section { color: var(--figures-heading); }

[data-company='daniella'] .company-figures {
  --figures-image: url('../img/projects/daniella-logisztika.jpg');
}
[data-company='dominant'] .company-figures {
  --figures-image: url('../img/news/dominant-roman-piac-card.jpg');
}
[data-company='simotrade'] .company-figures {
  --company-surface: #2c282a;
  --figures-heading: var(--accent);
  --figures-image: url('../img/news/simotrade-innovacio-card.jpg');
}
[data-company='raktarad'] .company-figures {
  --figures-image: url('../img/projects/r3-nagytarcsa.jpg');
}
[data-company='had-it'] .company-figures {
  --figures-image: url('../img/sectors/uzleti-szolgaltatasok.jpg');
}
[data-company='had-consulting'] .company-figures {
  --figures-image: url('../img/projects/wlp-hur.jpg');
}
[data-company='wlp'] .company-figures {
  --figures-image: url('../img/projects/wlp-hur.jpg');
}

.company-page .cta-band .btn--ghost {
  border-color: var(--company-on-surface);
  color: var(--company-on-surface);
}
.company-page .cta-band .btn--ghost:hover {
  background: var(--company-on-surface);
  color: var(--company-surface);
}
.company-page .btn--primary {
  background: var(--company-surface);
  border-color: var(--company-surface);
  color: var(--company-on-surface);
}
.company-page .btn--primary:hover {
  background: var(--company-on-surface);
  color: var(--company-surface);
}

.company-page .contact-section__title strong,
.company-page .contact-section__eyebrow,
.company-page .contact-section .contact-list__icon,
.company-page .contact-section .form-card .h-card,
.company-page .contact-section .contact-list a.contact-list__value:hover {
  color: var(--accent-ink);
}
.company-page .contact-section .contact-list__value {
  border-left-color: var(--accent);
}
.company-page .field input:focus,
.company-page .field select:focus,
.company-page .field textarea:focus {
  border-bottom-color: var(--accent-ink);
}
.company-page main :focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
}
.company-page .cta-band :focus-visible {
  outline-color: var(--company-on-surface);
}

.company-map {
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--accent);
  border-bottom-right-radius: var(--squircle);
  box-shadow: var(--shadow-sm);
}
.company-map a {
  display: grid;
  gap: 20px;
  padding: clamp(16px, 2.4vw, 28px);
  cursor: zoom-in;
}
.company-map img {
  width: 100%;
  height: auto;
  margin-inline: auto;
}
.company-map a:hover .link-more { text-decoration: underline; text-underline-offset: 4px; }

body.has-image-modal { overflow: hidden; }
.image-modal {
  position: fixed;
  inset: 0;
  width: min(1440px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.image-modal[open] {
  display: flex;
  flex-direction: column;
}
.image-modal::backdrop { background: rgba(10, 20, 47, 0.8); }
.image-modal__toolbar {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.image-modal__title { font-size: 1.125rem; line-height: 1.3; }
.image-modal__actions { display: flex; gap: 8px; }
.image-modal__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.image-modal__button:hover,
.image-modal__button[aria-pressed='true'] {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}
.image-modal__button svg { width: 18px; height: 18px; }
.image-modal__viewport {
  min-height: 0;
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
}
.image-modal__image {
  width: 100%;
  max-height: calc(100dvh - 180px);
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
}
.image-modal.is-zoomed .image-modal__image {
  width: 200%;
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}
.image-modal--project { height: calc(100dvh - 32px); }
.image-modal--project .image-modal__viewport { flex: 1; }
.image-modal--project .image-modal__image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.image-modal--project.is-zoomed .image-modal__image { width: 200%; height: auto; }

.company-logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.company-logo-grid--partners { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.company-logo-grid > li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 112px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.company-logo-grid img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.company-page[data-company='daniella'] .company-partners {
  background: var(--mist);
}
.company-page[data-company='daniella'] .company-partners .company-logo-grid > li {
  border: 0;
  box-shadow: none;
}
.company-page[data-company='simotrade'] .company-partners {
  background: #fff;
}
.company-page[data-company='simotrade'] .company-partners .company-logo-grid > li {
  border: 0;
}

.company-plant-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
  margin-top: clamp(28px, 3vw, 44px);
}
.company-plant {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.company-plant img {
  width: 100%;
  aspect-ratio: 208 / 302;
  object-fit: contain;
}
.company-plant figcaption {
  flex: 1;
  padding: 18px 16px;
  background: var(--company-surface);
  color: var(--company-on-surface);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.5;
  hyphens: auto;
  overflow-wrap: anywhere;
}

/* A Daniella Figma-tervének közös, fotó elé helyezett tartalmi panelje. */
.daniella-page { --container: 1188px; }
.company-profile {
  --profile-image-height: clamp(600px, 37.11vw, 950px);
  position: relative;
  isolation: isolate;
  padding-top: 145px;
  background: linear-gradient(to bottom,
    var(--navy) 0 var(--profile-image-height),
    var(--mist) var(--profile-image-height) calc(100% - 80px),
    #fff calc(100% - 80px));
}
.company-profile__background {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: var(--profile-image-height);
  overflow: hidden;
}
.company-profile__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: scale(1.145);
  transform-origin: center bottom;
}
.company-profile__background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--navy) 0%, rgba(8, 20, 62, 0.9) 22%, rgba(8, 20, 62, 0) 72%);
}
.company-profile__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 60px;
  margin-bottom: 80px;
  color: #fff;
}
.company-profile__heading h1 {
  min-width: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.625rem);
  line-height: 1.2;
  text-transform: uppercase;
}
.company-profile__heading > img {
  flex: 0 0 auto;
  width: 265px;
  height: auto;
}
.company-profile__panel {
  padding: 48px 58px 56px;
  border-radius: 0 80px 0 80px;
  background: #fff;
  color: #000;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.08);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.375;
}
.company-profile__title {
  margin-bottom: 28px;
  color: var(--accent);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.23;
  text-transform: uppercase;
}
.company-profile__panel p { margin: 0 0 14px; }
.company-profile__panel p:last-child { margin-bottom: 0; }
.company-profile__overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.company-profile__panel .company-profile__branch-count {
  margin-bottom: 3px;
  font-size: 1.125rem;
  line-height: 32px;
}
.company-profile .company-map {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.company-profile .company-map a { gap: 8px; padding: 0; }
.company-profile .company-map .link-more {
  justify-content: flex-end;
  color: #000;
  font-size: 0.75rem;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}
.company-profile__range { margin-top: 24px; }
.company-profile__categories { margin-top: 32px; }
.company-product-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.company-product-list > li {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-width: 0;
  min-height: 80px;
}
.company-product-list > li:nth-child(8) { grid-column: 1; }
.company-product-list img {
  width: auto;
  height: auto;
  max-width: 59px;
  max-height: 52px;
}
.company-product-list span { hyphens: auto; overflow-wrap: break-word; }
.company-profile__partners { margin-top: 40px; }
.daniella-page .company-logo-grid { gap: 16px 24px; }
.daniella-page .company-logo-grid > li {
  min-height: 56px;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.daniella-page .company-logo-grid img { max-height: 100px; }
.company-page.daniella-page .contact-section {
  --accent: var(--blue);
  --accent-ink: var(--blue);
  --company-surface: var(--blue);
  --company-on-surface: #fff;
}
.company-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.company-socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
}
.company-socials a:hover { background: var(--mist); }
.company-socials img { width: auto; height: auto; max-width: 30px; max-height: 30px; }

@media (max-width: 1100px) {
  .company-profile__heading { gap: 24px; }
  .company-profile__heading > img { width: 220px; }
  .company-profile__panel { padding: 40px; }
  .company-product-list > li { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
  .company-product-list img { max-width: 52px; }
}
@media (max-width: 960px) {
  .company-profile__heading { margin-bottom: 60px; }
  .company-profile__overview { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .company-product-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .company-product-list > li:nth-child(8) { grid-column: auto; }
}
@media (max-width: 760px) {
  .company-profile { padding-top: 116px; }
  .company-profile__heading { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
  .company-profile__panel { padding: 32px 24px; border-radius: 0 48px 0 48px; }
  .company-profile__title { margin-bottom: 20px; }
  .company-product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-top: 24px; }
  .company-profile__partners { margin-top: 32px; }
}
@media (max-width: 520px) {
  .company-profile__panel { padding: 28px 20px; }
  .company-product-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .company-product-list > li { min-height: 64px; }
  .company-profile .company-map .link-more { justify-content: flex-start; }
  .daniella-page .company-logo-grid { gap: 24px 20px; }
}
@media print {
  .company-profile { padding-top: 0; background: #fff; }
  .company-profile__background,
  .company-profile__heading > img { display: none; }
  .company-profile__heading { min-height: 0; margin-bottom: 24px; color: #000; }
  .company-profile__panel { padding: 0; border-radius: 0; box-shadow: none; }
}

/* --------------------------------------------------------- SEGÉDOSZTÁLYOK */
.squircle-tl { border-top-left-radius: var(--squircle); }
.squircle-br { border-bottom-right-radius: var(--squircle); }

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------- RESZPONZÍV */
@media (min-width: 1025px) {
  .timeline__track {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    scroll-snap-type: none;
  }
  .milestone__box {
    height: clamp(68px, 6.5vw, 82px);
    padding-inline: clamp(8px, 1vw, 14px);
  }
  .milestone__axis { gap: clamp(4px, 0.6vw, 10px); }
  .axis__arrow {
    width: 28px;
    height: 28px;
  }
  .axis__arrow svg { width: 18px; height: 18px; }
}

@media (max-width: 1100px) {
  :root { --squircle: 64px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__cols > div + div {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .nav { display: none; }
  .nav__toggle { display: inline-flex; }
  .header__inner {
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
  }
  .header__logo img { width: 200px; }
  .footer__companies { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__companies a:nth-child(n) {
    grid-row: auto;
    grid-column: auto;
  }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-section .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .contact-section .form-card { margin-bottom: -40px; }
  .footer--contact-overlap .footer__brand { padding-top: 84px; }
  .card-grid,
  .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid--1 { grid-template-columns: minmax(0, 1fr); }
  .news-card--wide { grid-template-columns: minmax(0, 1fr); }
  .news-card--wide .news-card__media img { min-height: 220px; aspect-ratio: 16 / 9; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > :first-child { order: 0; }
  .company-logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .company-logo-grid--partners,
  .company-plant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector--flip { margin-top: 0; }
  .sector:nth-child(2) .sector__media { border-top-right-radius: var(--squircle); }
  .sector:nth-child(3) .sector__media { border-bottom-left-radius: var(--squircle); }
  .sector__media { aspect-ratio: 4 / 5; }
  .hero__bg img { object-position: center; }
}

@media (max-width: 760px) {
  :root { --squircle: 48px; --gutter: 20px; }
  body { font-size: 1rem; }
  .split--mobile-media-first > .split__media { order: -1; }
  .sectors { row-gap: 24px; }
  .sector { display: flex; flex-direction: column; }
  .sector .sector__caption {
    order: 1;
    flex-direction: column;
    margin-top: -43px;
    margin-bottom: 0;
  }
  .sector .sector__icon {
    border-top: 0;
    border-bottom: 3px solid var(--blue);
  }
  .footer__brand { margin-bottom: -15px; }
  .footer__brand img {
    width: min(210px, 62vw);
    padding-inline: 18px;
  }
  .footer__companies {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    padding: 48px 20px 34px;
  }
  .contact-section { padding-bottom: 48px; }
  .contact-section .contact-grid { gap: 38px; }
  .contact-section .form-card {
    margin-bottom: 0;
    padding: 34px 24px 38px;
  }
  .contact-section .form-footer {
    flex-wrap: wrap;
    align-items: center;
  }
  .contact-section .form-footer .btn { width: 100%; }
  .footer--contact-overlap .footer__brand { padding-top: 40px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-cell--brand { grid-column: 1 / -1; min-height: 110px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .card-grid,
  .card-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .project-card { grid-template-columns: minmax(0, 1fr); }
  .project-card__media img { min-height: 200px; }
  .job-card { grid-template-columns: minmax(0, 1fr); }
  .job-card__media img { aspect-ratio: 16 / 10; }
  .accordion__trigger { flex-wrap: wrap; gap: 12px; }
  .accordion__name { flex-basis: 100%; order: 3; }
  .people-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .logo-row--property { grid-template-columns: minmax(0, 1fr); }
  .card-foot__more { padding-inline: 14px; }
  .hero {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 100vh;
    min-height: 100svh;
  }
  .hero__slide { min-height: 0; }
  .hero__inner { padding-block: calc(var(--header-h) + 20px) 24px; }
  .hero__content { overflow-wrap: anywhere; }
  .hero__slogan {
    max-width: none;
    margin-top: 12px;
    padding: 10px 12px;
    font-size: 0.8125rem;
    line-height: 1.4;
  }
  .hero .display {
    font-size: clamp(1.3125rem, 6vw, 1.875rem);
    line-height: 1.12;
    hyphens: auto;
  }
  .hero .lead {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.45;
  }
  .hero .btn {
    min-height: 44px;
    margin-top: 20px;
    padding: 10px 24px;
    font-size: 0.75rem;
    line-height: 1.4;
    letter-spacing: 0.1em;
  }
  .hero__brands {
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
  }
  .hero__brands img {
    min-width: 0;
    max-width: calc(50% - 8px);
    height: clamp(20px, 5vw, 26px);
    object-fit: contain;
    object-position: left center;
  }
  .hero__brands img:only-child { max-width: 100%; }
  .hero__brands img.logo--stacked { height: 36px; }
  .hero__controls {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .hero__cta {
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.6875rem;
    line-height: 1.4;
    letter-spacing: 0.06em;
  }
  .hero__cta svg { width: 22px; height: 22px; }
  .hero__nav { justify-content: center; padding: 6px 16px; gap: 10px; }
  .hero__arrow { width: 44px; height: 44px; }
  .hero__arrow svg { width: 26px; height: 26px; }
  .hero__dots { gap: 4px; }
  .hero__dot,
  .hero__dot.is-active {
    display: grid;
    place-items: center;
    width: 36px;
    height: 44px;
    border-radius: 0;
    background: transparent;
  }
  .hero__dot::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.26s var(--ease), background-color 0.26s var(--ease);
  }
  .hero__dot.is-active::before { width: 24px; background: #fff; }
  .hero :focus-visible { outline-color: #fff; }
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) and (max-height: 620px) {
  .hero__inner { padding-block: calc(var(--header-h) + 12px) 16px; }
  .hero__brands {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }
  .hero .btn { margin-top: 16px; }
}

@media (max-width: 760px) and (max-height: 700px) {
  .hero__slogan { display: none; }
}

@media (max-width: 520px) {
  .header__logo img { width: 180px; }
  .company-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-logo-grid > li { min-height: 96px; padding: 16px; }
  .footer__bottom {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 12px;
    font-size: 0.6875rem;
  }
  .social,
  .footer__top {
    width: 44px;
    height: 44px;
  }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .footer__list p {
    color: #aab7cb;
    font-size: 0.875rem;
  }
  .footer__bottom p { color: #aab7cb; }
  .sectors {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 16px);
    max-width: 320px;
    margin-inline: auto;
  }
  .sector__media { aspect-ratio: 3 / 4; }
  .sector__media img { object-position: center 40%; }
  .sector:nth-child(2) .sector__media,
  .sector:nth-child(3) .sector__media { border-radius: 0; }
  .home-page .group-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home-page .group-cell {
    flex-direction: column;
    gap: 16px;
    min-height: 148px;
    padding: 24px 20px 16px;
    border-radius: var(--radius);
  }
  .home-page .group-cell:not(.group-cell--brand) { border: 1px solid var(--border); }
  .home-page .group-cell .group-cell__logo {
    width: min(100%, 280px);
    max-width: 100%;
    filter: none;
    opacity: 1;
    transform: none;
  }
  .home-page .group-cell__logo img {
    width: 100%;
    max-height: 64px;
    object-fit: contain;
  }
  .home-page .group-cell__reveal { display: none; }
  .home-page .group-cell__action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
  }
  .home-page .group-cell__action::after { content: '\2192'; font-size: 1rem; }
}

/* Mozgáscsökkentés: minden animáció és automata léptetés kikapcsol. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Nyomtatás: a dekoratív rétegek nélkül, olvasható szövegre optimalizálva. */
@media print {
  .header, .hero__controls, .nav__toggle, .footer__companies { display: none !important; }
  .image-modal { display: none !important; }
  body.has-image-modal { overflow: visible; }
  body { padding-top: 0; }
  .section--navy, .section--blue { background: #fff !important; color: #000 !important; }
  .company-page[data-company] {
    --accent-ink: #000;
    --company-surface: #fff;
    --company-on-surface: #000;
  }
  .company-page .company-figures {
    --company-surface: #fff;
    --company-on-surface: #000;
    --figures-heading: #000;
  }
  .company-figures::before { display: none; }
  .reference-detail-hero { background: #fff; color: #000; }
  .reference-detail-hero .page-hero__bg { display: none; }
  .reference-detail-hero .page-hero__inner { padding-block: 0 24px; }
  .reference-gallery-section { margin-top: 0; }
  .project-gallery { box-shadow: none; }
  .project-gallery__viewport { display: block; height: auto; aspect-ratio: auto; overflow: visible; }
  .project-gallery__slide { height: auto; break-inside: avoid; }
  .project-gallery__slide img { height: auto; }
  .project-gallery__controls,
  .project-image-link__label { display: none !important; }
}

/* -------------------------------------------------------- VEZETŐSÉG */
.leadership-page { overflow-x: clip; }

.leadership-page .header__inner {
  justify-content: flex-start;
  gap: clamp(36px, 4vw, 56px);
}
.leadership-page .header__logo {
  flex: 0 0 auto;
}
.leadership-page .header__logo img {
  width: clamp(230px, 19vw, 255px);
}
.leadership-page .nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: clamp(24px, 2.4vw, 36px);
}
.leadership-page .nav__link {
  text-transform: uppercase;
}

.leadership-hero {
  padding-block: clamp(46px, 4.2vw, 58px) clamp(8px, 1vw, 14px);
  background: #fff;
}
.leadership-hero .display {
  margin: 0;
  color: var(--blue);
  font-size: clamp(2.25rem, 4.3vw, 3.5rem);
}

.leadership-section { padding-block: 0; }
html[lang='en'] .leadership-page .contact-section {
  border-top: 1px solid #e8edf1;
}

.leadership-feature {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 3vw, 42px) 0 clamp(50px, 4vw, 64px);
  margin-bottom: 0;
  background: #fff;
  box-shadow: 0 0 0 100vmax #fff;
  clip-path: inset(0 -100vmax);
}
.leadership-feature::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: calc((100vw - min(100vw, var(--container))) / -2 - var(--gutter));
  bottom: 0;
  width: clamp(400px, 25.2vw, 503px);
  aspect-ratio: 503 / 404;
  background: url('../img/brand/had-group-mark-muted.png') center / 100% 100% no-repeat;
}
.leadership-feature__logo {
  width: min(240px, 52vw);
  max-height: 60px;
  margin-bottom: clamp(28px, 3vw, 42px);
  object-fit: contain;
  object-position: left center;
  filter: grayscale(1) brightness(0);
}
.leadership-feature__content {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: clamp(38px, 5.5vw, 72px);
  align-items: center;
}
.leadership-feature__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 23 / 31;
  overflow: hidden;
  background-color: var(--mist);
  background-image: url('../img/people/hadnagy-erno.webp');
  background-position: center 24%;
  background-size: cover;
  background-repeat: no-repeat;
  border: 4px solid #fff;
  border-bottom-right-radius: 44px;
  box-shadow: 16px 20px 34px rgba(10, 20, 47, 0.16);
}
.leadership-feature__photo::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 20, 47, 0.62) 0,
    rgba(10, 20, 47, 0.24) 20%,
    transparent 43%
  );
  pointer-events: none;
}
.leadership-feature__details {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.leadership-feature__details h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.leadership-feature__role {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 clamp(18px, 2vw, 26px);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
}
.leadership-feature__role svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--blue);
}
.leadership-feature__role span {
  padding-left: 9px;
  border-left: 1px solid var(--blue);
}
.leadership-feature blockquote {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.58;
}

.leadership-group {
  padding: clamp(48px, 6vw, 78px) 18px clamp(30px, 4vw, 46px);
  background: var(--mist);
}
.leadership-accordion {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 0;
}
.leadership-company {
  min-width: 0;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.leadership-company:first-child { border-top-left-radius: var(--squircle); }
.leadership-company:last-child { border-bottom-right-radius: var(--squircle); }
.leadership-company h2 { margin: 0; }
.leadership-company .accordion__trigger {
  min-height: 86px;
  padding: 20px clamp(20px, 3vw, 34px);
}
.leadership-company .accordion__trigger img {
  max-width: min(250px, 48vw);
  max-height: 38px;
}
.leadership-company .accordion__trigger img.logo--stacked { max-height: 52px; }
.leadership-company .accordion__label { margin-left: auto; }
.leadership-company .accordion__panel {
  padding: 6px clamp(20px, 3vw, 34px) clamp(30px, 4vw, 46px);
}
.leadership-company--featured {
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  overflow: visible !important;
  background: transparent;
  box-shadow: none;
}
.leadership-company--featured .accordion__trigger {
  min-height: 0;
  padding: 0 18px clamp(22px, 3vw, 34px) 0;
}
.leadership-company--featured .accordion__trigger img {
  max-width: min(270px, 52vw);
  max-height: 52px;
  filter: grayscale(1) brightness(0.28);
}
.leadership-company--featured .accordion__label {
  gap: 12px;
  font-size: 0.75rem;
  text-transform: none;
}
.leadership-company--featured .accordion__label::after {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background-color: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' fill-rule='evenodd' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0m0 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1m.5 11V5.707l2.146 2.147a.5.5 0 0 0 .708-.708l-3-3a.5.5 0 0 0-.708 0l-3 3a.5.5 0 1 0 .708.708L7.5 5.707V12a.5.5 0 0 0 1 0'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' fill-rule='evenodd' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0m0 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1m.5 11V5.707l2.146 2.147a.5.5 0 0 0 .708-.708l-3-3a.5.5 0 0 0-.708 0l-3 3a.5.5 0 1 0 .708.708L7.5 5.707V12a.5.5 0 0 0 1 0'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: none;
}
.leadership-company--featured .accordion__trigger[aria-expanded='true'] .accordion__label::after {
  transform: none;
}
.leadership-company--featured .accordion__trigger[aria-expanded='false'] .accordion__label::after {
  transform: rotate(180deg);
}
.leadership-company--featured .accordion__panel {
  padding: 0 0 clamp(46px, 5vw, 66px);
  background: transparent;
}
.leadership-company:not(.leadership-company--featured) {
  position: relative;
  overflow: visible !important;
  border: 0;
  border-radius: 0 !important;
  background: #fff;
  box-shadow: 0 0 0 100vmax #fff;
  clip-path: inset(0 -100vmax);
}
.leadership-company:not(.leadership-company--featured)::after {
  content: '';
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 100vw;
  border-bottom: 1px solid #e8edf1;
  transform: translateX(50%);
  pointer-events: none;
}
.leadership-company:not(.leadership-company--featured) .accordion__trigger {
  min-height: 102px;
  padding: 22px 18px;
}
.leadership-company:not(.leadership-company--featured) .accordion__trigger img {
  filter: grayscale(1) brightness(0.12);
}
.leadership-company:not(.leadership-company--featured) .accordion__trigger img[src*='dominant'] {
  max-width: 220px;
  max-height: 40px;
}
.leadership-company:not(.leadership-company--featured) .accordion__trigger img[src*='raktarad'] {
  max-width: 220px;
  max-height: 40px;
}
.leadership-company:not(.leadership-company--featured) .accordion__trigger img[src*='had-it'] {
  max-width: 165px;
  max-height: 43px;
}
.leadership-company:not(.leadership-company--featured) .accordion__trigger img[src*='had-consulting'] {
  max-width: 330px;
  max-height: 38px;
}
.leadership-company:not(.leadership-company--featured) .accordion__trigger img[src*='hadnagy-holding'] {
  max-width: 220px;
  max-height: 42px;
}
.leadership-company:not(.leadership-company--featured) .accordion__trigger img[src*='simotrade'] {
  max-width: 235px;
  max-height: 38px;
}
.leadership-company:not(.leadership-company--featured) .accordion__trigger img[src*='wlp'] {
  max-width: 155px;
  max-height: 58px;
}
.leadership-company:not(.leadership-company--featured) .accordion__label {
  gap: 20px;
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
}
.leadership-company:not(.leadership-company--featured) .accordion__label::after {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background:
    var(--blue)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6.5 13.5 12 19l5.5-5.5'/%3E%3C/svg%3E")
    center / 20px no-repeat;
  transform: none;
}
.leadership-company:not(.leadership-company--featured) .accordion__trigger[aria-expanded='true'] .accordion__label::after {
  transform: rotate(180deg);
}
.leadership-company:not(.leadership-company--featured) .accordion__panel {
  padding-inline: 18px;
  background: #fff;
}
.leadership-company__pending {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.leadership-page .people-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 40px) clamp(14px, 1.5vw, 20px);
  align-items: start;
}
.leadership-person {
  min-width: 0;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.leadership-page .person {
  min-width: 0;
  position: relative;
  container-type: inline-size;
}
.leadership-page .person::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 4px;
  right: 4px;
  left: 4px;
  height: calc(133.333cqw - 8px);
  border-bottom-right-radius: 28px;
  background: linear-gradient(
    to top,
    rgba(10, 20, 47, 0.62) 0,
    rgba(10, 20, 47, 0.24) 20%,
    transparent 43%
  );
  pointer-events: none;
}
.leadership-page .person__photo {
  aspect-ratio: 3 / 4;
  object-position: center top;
  border: 4px solid #fff;
  border-bottom-right-radius: 32px;
  box-shadow: 12px 16px 28px rgba(10, 20, 47, 0.13);
}
.leadership-person .person__name {
  margin: 14px 0 5px;
  color: var(--blue);
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.leadership-person .person__role {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 2.8em;
  margin: 0;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
}
.leadership-person .person__role::before {
  content: '';
  flex: 0 0 28px;
  width: 28px;
  height: 18px;
  background-color: var(--blue);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'%3E%3Cg fill='none' stroke='black' stroke-width='1.5'%3E%3Ccircle cx='6' cy='4.5' r='3'/%3E%3Cpath d='M1 16v-2a5 5 0 0 1 10 0v2M19 1v16'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 960px) {
  .leadership-page .header__inner {
    justify-content: space-between;
    gap: 24px;
  }
  .leadership-page .header__logo img { width: 200px; }
  .leadership-feature__content {
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    gap: 32px;
  }
  .leadership-feature::after {
    right: -24px;
    width: 330px;
  }
  .leadership-page .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .leadership-feature__content { grid-template-columns: minmax(0, 1fr); }
  .leadership-feature__photo { width: min(100%, 320px); }
  .leadership-feature::after { width: 280px; }
  .leadership-page .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leadership-company .accordion__trigger { min-height: 74px; }
  .leadership-company:not(.leadership-company--featured)::after {
    width: calc(100% + 2 * var(--gutter));
    right: calc(-1 * var(--gutter));
    transform: none;
  }
}

@media (max-width: 560px) {
  .leadership-page .header__logo img { width: 180px; }
  .leadership-feature { padding: 28px 0 48px; }
  .leadership-feature::after { display: none; }
  .leadership-page .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leadership-person .person__role { min-height: 0; }
  .leadership-company .accordion__trigger {
    gap: 14px;
    padding-inline: 18px;
  }
  .leadership-company .accordion__trigger img { max-width: 54%; }
  .leadership-page .leadership-company:not(.leadership-company--featured) .accordion__trigger img {
    max-width: 54%;
  }
  .leadership-person .person__name,
  .leadership-person .person__role { overflow-wrap: anywhere; }
  .leadership-company .accordion__label {
    gap: 7px;
    font-size: 0.625rem;
    letter-spacing: 0.06em;
  }
  .leadership-page .leadership-company:not(.leadership-company--featured) .accordion__label {
    gap: 7px;
    font-size: 0.625rem;
  }
}

/* -------------------------------------------------------- REFERENCIÁK */
.references-page { overflow-x: clip; }

.references-page .header__inner {
  justify-content: flex-start;
  gap: clamp(36px, 4vw, 56px);
}
.references-page .header__logo {
  flex: 0 0 auto;
}
.references-page .header__logo img {
  width: clamp(230px, 19vw, 255px);
}
.references-page .nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: clamp(24px, 2.4vw, 36px);
}
.references-page .nav__link {
  text-transform: uppercase;
}
.references-hero {
  min-height: 345px;
}
.references-hero .page-hero__bg img {
  opacity: 0.28;
}
.references-hero .page-hero__bg::after {
  background: linear-gradient(90deg, rgba(10, 20, 47, 0.88), rgba(10, 20, 47, 0.72));
}
.references-hero .page-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 345px;
  padding-top: calc(var(--header-h) + clamp(42px, 4vw, 58px));
  padding-bottom: 0;
}
.references-hero .display {
  margin: 0;
  font-size: clamp(2.5rem, 4.4vw, 3.75rem);
}
.references-filter-bar {
  display: grid;
  grid-template-columns: minmax(86px, 0.72fr) repeat(8, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  margin: auto 0 0;
}
.references-filter-bar .filter-chip {
  min-width: 0;
  min-height: 58px;
  padding: 8px 12px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 0;
  padding-bottom: 8px;
}
.references-filter-bar .filter-chip img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 28px;
  object-fit: contain;
}
.references-filter-bar .filter-chip--text {
  font-size: 0.6875rem;
}
.references-filter-bar .filter-chip[aria-pressed='true'] {
  background: #fff;
  border-color: #fff;
}

.references-listing {
  padding-block: clamp(38px, 4vw, 58px) clamp(56px, 7vw, 96px);
  background: #fff;
}
.home-page .footer__brand { padding-top: clamp(40px, 5vw, 64px); }
.home-projects { background: #fff; color: var(--ink); }
.home-projects__header {
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: 0;
  background-image:
    linear-gradient(90deg, var(--navy) 20%, rgba(10, 20, 47, 0.9) 50%, rgba(10, 20, 47, 0.7) 100%),
    url('../img/projects/projektjeink-blokk-bg.webp');
  background-position: center, right center;
  background-size: cover, auto 100%;
  background-repeat: no-repeat;
}
@media (min-width: 961px) {
  .home-page .contact-section .form-card {
    margin-bottom: clamp(-144px, -11vw, -112px);
  }
  .home-projects__header .section-head {
    max-width: calc(50% - 48px);
  }
}
.home-projects__filters { margin: 0; }
.home-projects__filter-nav { min-width: 0; }
.filter-nav__arrow {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.filter-nav__arrow svg { width: 22px; height: 22px; }
.filter-nav__arrow:disabled { opacity: 0.3; cursor: default; }
.filter-nav__arrow:focus-visible { outline-color: #fff; }
.home-projects__phone-filters { display: none; }
.home-projects__filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}
.home-projects__filter-button[aria-pressed='true'],
.home-projects__filter-button.is-filtered { background: #fff; color: var(--navy); }
.home-projects__filter-button--icon { padding: 8px; }
.home-projects__filter-button svg { width: 22px; height: 22px; }
.home-projects__filter-button:focus-visible { outline-color: #fff; }
.home-projects__filter-button:disabled { opacity: 0.5; cursor: default; }
body.has-project-filter { overflow: hidden; }
.project-filter-modal {
  width: min(420px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.project-filter-modal[open] { display: flex; flex-direction: column; }
.project-filter-modal::backdrop { background: rgba(10, 20, 47, 0.65); }
.project-filter-modal__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.project-filter-modal__header h3 { margin: 0; font-size: 1.125rem; line-height: 1.3; }
.project-filter-modal__close {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}
.project-filter-modal__close svg { width: 22px; height: 22px; }
.project-filter-modal__close:hover { background: var(--mist); color: var(--ink); }
.project-filter-modal__options {
  display: grid;
  gap: 8px;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.project-filter-modal__option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 76px;
  padding: 12px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}
.project-filter-modal__option img {
  width: min(100%, 260px);
  max-height: 48px;
  object-fit: contain;
}
.project-filter-modal__option:hover,
.project-filter-modal__option[aria-pressed='true'] { border-color: var(--blue); background: var(--mist); }
.project-filter-modal__option[aria-pressed='true']::after {
  content: '\2713';
  position: absolute;
  right: 12px;
  color: var(--blue);
  font-size: 1rem;
}
.home-projects__content {
  padding-block: clamp(28px, 3.4vw, 40px) clamp(56px, 7vw, 104px);
}
.home-projects__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.home-projects__selection {
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  line-height: 1.15;
  text-transform: uppercase;
}
.home-projects__more {
  flex-shrink: 0;
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
}
.home-projects .section-foot { display: none; text-align: left; }
.references-page .project-group + .project-group {
  margin-top: clamp(34px, 4vw, 54px);
}
.references-page .cards-head {
  margin-bottom: 22px;
}
.references-page .cards-head h3 {
  color: var(--blue);
  font-size: clamp(1.5rem, 2vw, 1.875rem);
}
:is(.references-page, .home-projects) .card-grid {
  gap: clamp(18px, 2vw, 28px);
}
:is(.references-page, .home-projects) .project-card {
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 170px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(10, 20, 47, 0.12);
  transition:
    transform 500ms var(--ease),
    box-shadow 500ms var(--ease);
}
:is(.references-page, .home-projects) .project-card__media {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 170px;
  transform: scale(1);
  transform-origin: center;
  transition:
    transform 500ms var(--ease),
    background-position 500ms var(--ease);
  will-change: transform;
}
:is(.references-page, .home-projects) .project-card__body {
  gap: 7px;
  padding: 19px 24px 0;
}
:is(.references-page, .home-projects) .project-card__title {
  font-size: 1rem;
}
:is(.references-page, .home-projects) .project-card__excerpt {
  font-size: 0.8125rem;
  line-height: 1.4;
}
:is(.references-page, .home-projects) .project-card__meta {
  min-height: 50px;
}
:is(.references-page, .home-projects) .project-card__meta > span:not(.btn-arrow) {
  position: relative;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
  padding: 17px 10px 15px;
  font-size: 0.8125rem;
  line-height: 1.1;
  text-align: center;
  overflow: visible;
}
:is(.references-page, .home-projects) .project-card__meta > span:not(.btn-arrow) svg {
  position: absolute;
  z-index: 1;
  top: -1px;
  left: 50%;
  width: 17px;
  height: 17px;
  background: #fff;
  box-shadow: 0 0 0 5px #fff;
  color: #111;
  transform: translate(-50%, -50%);
}
:is(.references-page, .home-projects) .project-card__meta .btn-arrow {
  flex: 0 0 50px;
  width: 50px;
  transition: background-color 500ms var(--ease);
}
:is(.references-page, .home-projects) .project-card__meta .btn-arrow svg {
  width: 20px;
  height: 20px;
  color: #fff;
}
:is(.references-page, .home-projects) .project-card:hover,
:is(.references-page, .home-projects) .project-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(10, 20, 47, 0.14);
}
:is(.references-page, .home-projects) .project-card:hover .project-card__media,
:is(.references-page, .home-projects) .project-card:focus-within .project-card__media {
  background-position: 53% center;
  transform: scale(1.045);
}
:is(.references-page, .home-projects) .project-card:hover .btn-arrow,
:is(.references-page, .home-projects) .project-card:focus-within .btn-arrow {
  background-color: var(--blue-dark);
}

.reference-clients {
  padding-block: 24px 48px;
  background: #fff;
}
.reference-clients__title {
  margin: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #dce2e6;
  color: var(--blue);
  font-size: clamp(1.5rem, 2.1vw, 1.875rem);
  line-height: 1.15;
  text-transform: uppercase;
}
.reference-clients__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 40px) clamp(28px, 4vw, 56px);
  align-items: center;
  margin-top: 32px;
}
.reference-clients__grid > div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 64px;
}
.reference-clients__grid img {
  width: auto;
  max-width: min(100%, 180px);
  height: auto;
  max-height: 56px;
  object-fit: contain;
}
.references-page .contact-section--gray {
  background: #f0f4f7;
}

@media (max-width: 960px) {
  .references-page .header__inner {
    justify-content: space-between;
    gap: 24px;
  }
  .references-page .header__logo img { width: 200px; }
  .references-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px;
    padding-bottom: 8px;
  }
  .references-filter-bar .filter-chip {
    flex: 0 0 132px;
    scroll-snap-align: start;
  }
}

@media (max-width: 760px) {
  .home-projects__filter-nav {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: start;
    gap: 8px;
  }
  .filter-nav__arrow { display: inline-flex; margin-top: 5px; }
  .home-projects__filters { min-width: 0; }
  .home-projects__more { display: none; }
  .home-projects .section-foot { display: block; }
  .references-hero {
    min-height: 310px;
  }
  .references-hero .page-hero__inner {
    min-height: 310px;
    padding-top: calc(var(--header-h) + 34px);
  }
  .references-hero .display {
    font-size: clamp(2.25rem, 12vw, 3rem);
  }
  .references-filter-bar .filter-chip {
    flex-basis: 118px;
    min-height: 54px;
  }
  :is(.references-page, .home-projects) .project-card {
    grid-template-columns: minmax(0, 1fr);
  }
  :is(.references-page, .home-projects) .project-card__media {
    min-height: 200px;
  }
}

@media (max-width: 560px) {
  .references-page .header__logo img { width: 180px; }
  .reference-clients__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }
}

@media (max-width: 520px) {
  .home-projects__filter-nav { display: none; }
  .home-projects__phone-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 12px;
  }
  .home-projects__header { padding-bottom: 16px; }
  .home-projects__content { padding-top: 16px; }
  .home-projects__heading { margin-bottom: 12px; }
  .home-projects:not(.is-filtered) .home-projects__heading { display: none; }
}

@media print {
  .project-filter-modal { display: none !important; }
  body.has-project-filter { overflow: visible; }
}

/* -------------------------------------------------------- HÍREK LISTAOLDAL */
.news-page { --news-overlap: 154px; }

.news-hero .page-hero__inner {
  display: flex;
  align-items: center;
  min-height: 348px;
  /* A logó alsó pereme a fejléc aljánál körülbelül 28 px-rel feljebb van. */
  padding-block: 0 calc(var(--news-overlap) + 28px);
}
.news-hero .display,
.careers-hero .display,
.news-detail-hero .display {
  font-size: clamp(2.5rem, 4.4vw, 3.75rem);
}
.news-hero .page-hero__bg img,
.careers-hero .page-hero__bg img {
  opacity: 0.55;
  object-position: center 42%;
}
.news-hero .page-hero__bg::after,
.careers-hero .page-hero__bg::after {
  background: linear-gradient(95deg, rgba(10, 20, 47, 0.76), rgba(10, 20, 47, 0.58));
}

.news-listing {
  display: flow-root;
  padding-block: 0 clamp(56px, 5vw, 76px);
}
.news-listing > .container {
  position: relative;
  margin-top: calc(-1 * var(--news-overlap));
}
.news-listing .card-grid--3 {
  gap: 30px 26px;
}
.news-listing .news-card {
  --news-card-background: #fff;
  --news-card-color: #111;
  --news-card-heading: var(--blue);
  transition:
    opacity 0.7s var(--ease),
    transform 0.26s var(--ease),
    box-shadow 0.26s var(--ease);
}
.news-listing .news-card__media img {
  aspect-ratio: 31 / 20;
}
.news-listing .news-card__body {
  flex: 1 1 auto;
  min-width: 0;
  gap: 18px;
  padding: 24px 34px 22px;
  background: var(--news-card-background);
  transition: background-color 0.26s var(--ease);
}
.news-listing .news-card__title {
  color: var(--news-card-heading);
  font-size: 1.25rem;
  line-height: 1.3;
}
.news-listing .news-card__date {
  gap: 8px;
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--news-card-color);
  line-height: 1.3;
}
.news-listing .news-card__date::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: currentColor;
  opacity: 0.12;
}
.news-listing .news-card__date svg {
  width: 14px;
  height: 14px;
  color: var(--news-card-heading);
}
.news-listing .news-card__date circle {
  fill: currentColor;
  stroke: none;
}
.news-listing .news-card__date path {
  stroke: var(--news-card-background);
}
.news-listing .news-card__excerpt {
  color: var(--news-card-color);
  font-size: 1rem;
  line-height: 1.4;
}
.news-listing .card-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 50px;
  min-height: 50px;
  background: #fff;
}
.news-listing .card-foot__logo {
  padding: 10px 20px;
}
.news-listing .card-foot__logo img {
  filter: brightness(0);
  opacity: 0.88;
}
.news-listing .card-foot__more {
  padding: 10px 12px;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.news-listing .card-foot .btn-arrow {
  width: 50px;
}
.news-listing .news-card--wide {
  margin-bottom: 30px;
}
.news-listing .news-card--wide .news-card__media {
  position: relative;
  min-height: 360px;
}
.news-listing .news-card--wide .news-card__media img {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}
.news-listing .news-card--wide .news-card__body {
  justify-content: flex-start;
  padding: 32px 38px 0;
}
.news-listing .news-card--wide .news-card__title {
  font-size: 1.75rem;
  line-height: 1.15;
}
.news-listing .news-card--wide .news-card__excerpt {
  -webkit-line-clamp: 5;
}
.news-listing .news-card--wide .card-foot {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 50px;
  margin: auto -38px 0;
}
.news-listing .news-card--wide:hover {
  transform: none;
  box-shadow: none;
}
.news-listing .news-card:not(.news-card--wide):is(:hover, :focus-within) {
  --news-card-background: var(--blue);
  --news-card-color: #fff;
  --news-card-heading: #fff;
  z-index: 2;
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}
.news-listing .news-card:not(.news-card--wide):is(:hover, :focus-within) .btn-arrow {
  background: #fff;
  color: var(--blue);
}
.news-listing .card-link:focus-visible {
  outline-offset: -3px;
  border-radius: inherit;
}

@media (max-width: 960px) {
  .news-page { --news-overlap: 96px; }
  .news-hero .page-hero__inner {
    min-height: 288px;
    padding-bottom: calc(var(--news-overlap) + 24px);
  }
  .news-listing .news-card--wide .news-card__media {
    min-height: 0;
  }
  .news-listing .news-card--wide .news-card__media img {
    position: static;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 760px) {
  .news-page { --news-overlap: 64px; }
  .news-hero .page-hero__inner {
    min-height: 248px;
  }
  .news-listing .news-card__body {
    padding-inline: 24px;
  }
  .news-listing .news-card--wide .news-card__body {
    padding: 26px 24px 0;
  }
  .news-listing .news-card--wide .news-card__title {
    font-size: 1.375rem;
  }
  .news-listing .news-card--wide .card-foot {
    margin-inline: -24px;
    margin-top: 6px;
  }
  .news-listing .card-foot__more {
    padding-inline: 8px;
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-listing .news-card:not(.news-card--wide):is(:hover, :focus-within) {
    transform: none;
  }
}

/* -------------------------------------------------------- HÍREK RÉSZLETOLDAL */
.news-detail-hero .page-hero__inner {
  display: flex;
  align-items: center;
  min-height: 194px;
  padding-block: 48px 76px;
}
.news-detail-hero .display {
  min-width: 0;
  overflow-wrap: anywhere;
}

.news-reader-section {
  padding-block: clamp(40px, 5vw, 72px) clamp(56px, 6vw, 88px);
  background: linear-gradient(180deg, var(--mist), #fff);
}
.news-reader,
.news-reader__actions {
  --accent: var(--blue);
  --accent-ink: var(--blue);
  --accent-contrast: #fff;
}
.news-reader {
  padding: clamp(24px, 3.2vw, 44px);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  background: #fff;
  box-shadow: 0 18px 56px rgba(10, 20, 47, 0.07);
}
.news-reader__meta {
  justify-content: space-between;
  gap: 16px 24px;
  margin: clamp(28px, 3vw, 40px) 0 0;
  padding: clamp(22px, 2.4vw, 30px) 0 0;
  border-top: 1px solid var(--border);
  border-bottom: 0;
}
.news-reader__meta > span {
  padding: 9px 13px;
  background: var(--mist);
  color: var(--blue);
}
.news-reader__meta img {
  width: auto;
  max-width: 190px;
  max-height: 32px;
}
.news-reader__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 4vw, 60px);
}
.news-reader__media {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  min-width: 0;
  width: 100%;
  max-width: 560px;
}
.news-reader__image {
  position: relative;
  isolation: isolate;
  margin: 0 0 20px;
}
.news-reader__image::before {
  content: '';
  position: absolute;
  inset: 20px -20px -20px 20px;
  z-index: -1;
  background: var(--mist);
}
.news-reader__image img {
  width: 100%;
  height: auto;
}
.news-reader__content { min-width: 0; }
.news-reader__copy {
  font-size: 1rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.news-reader__copy > p:first-child {
  color: var(--ink);
  font-size: clamp(1.0625rem, 1.45vw, 1.1875rem);
  font-weight: 500;
  line-height: 1.75;
}
.news-reader__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(28px, 3vw, 40px);
  text-align: center;
}
.news-reader__actions svg { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .news-detail-hero .page-hero__inner {
    min-height: 192px;
    padding-block: 40px 64px;
  }
  .news-reader__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .news-reader__media {
    position: relative;
    top: auto;
    margin-inline: auto;
  }
  .news-reader__content {
    width: 100%;
    max-width: 64ch;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .news-detail-hero .page-hero__inner {
    min-height: 184px;
    padding-block: 32px 56px;
  }
  .news-reader-section { padding-block: 24px 40px; }
  .news-reader-section > .container { padding-inline: 0; }
  .news-reader {
    padding: 24px 20px;
    border-inline: 0;
    box-shadow: none;
  }
  .news-reader__meta img { max-width: 158px; max-height: 28px; }
  .news-reader__layout { gap: 24px; }
  .news-reader__image { margin-bottom: 12px; }
  .news-reader__image::before { inset: 12px -12px -12px 12px; }
  .news-reader__actions { padding-inline: var(--gutter); }
  .news-reader__actions .btn { width: 100%; padding-inline: 20px; }
}

/* -------------------------------------------------------- KARRIER */
.careers-hero .page-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-block: 0;
}
.careers-hero__heading {
  display: flex;
  align-items: center;
  min-height: 194px;
  padding-bottom: 28px;
}
.careers-filter-bar {
  grid-template-columns: minmax(86px, 0.72fr);
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  min-height: 58px;
}
.careers-listing {
  padding-top: clamp(38px, 4vw, 58px);
}

.career-company {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  min-height: 320px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.career-company:hover,
.career-company:focus-visible { border-color: var(--blue); box-shadow: var(--shadow-md); }
.career-company__logo {
  display: flex;
  align-items: center;
  height: 72px;
}
.career-company__logo img {
  width: min(100%, 280px);
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}
.career-company__name {
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.3;
  overflow-wrap: break-word;
}
.career-company__copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.career-company__status {
  align-self: flex-start;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--mist);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}
.career-company__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.45;
}
.career-company__action svg { flex: 0 0 22px; width: 22px; height: 22px; }

.job-detail-hero .page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(160px, 22vw, 240px);
  align-items: center;
  gap: 24px clamp(32px, 5vw, 72px);
}
.job-detail-hero__heading {
  min-width: 0;
}
.job-detail-hero__type {
  margin: 14px 0 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.86);
}
.job-detail-hero .job-detail-hero__logo {
  justify-self: end;
  width: 100%;
  height: auto;
  max-height: 72px;
  margin: 0;
  object-fit: contain;
  object-position: right center;
}
.job-detail-hero .lead {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 960px) {
  .careers-hero__heading {
    min-height: 192px;
    padding-bottom: 24px;
  }
}

@media (max-width: 760px) {
  .career-company { min-height: 0; padding: 24px; }
  .careers-hero__heading {
    min-height: 184px;
  }
  .careers-filter-bar {
    min-height: 54px;
  }
  .job-detail-hero .page-hero__inner {
    grid-template-columns: minmax(0, 1fr) clamp(72px, 22vw, 112px);
    gap: 20px 18px;
    padding-block: 40px;
  }
  .job-detail-hero .display {
    font-size: clamp(1.375rem, 4.4vw, 2rem);
    overflow-wrap: anywhere;
  }
  .job-detail-hero__type {
    margin-top: 12px;
    font-size: 0.875rem;
  }
}
