/* ==========================================================================
   ORWAK – Home
   Figma: Orwak / Home A1 (node 321:2)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --orange:        #df5129;
  --orange-light:  #f76c4e;
  --orange-ink:    #c2421c;   /* narancs KITÖLTÉS fehér szöveg alá. A --orange
                                 (#df5129) fehér 14-16px-szel csak 3.93:1, bukja
                                 az AA-t; ez 5.13:1. Csak ott használjuk, ahol
                                 nincs tervbeli szín — a márkaszínt nem írja felül. */
  --rule:          #ff5e15;   /* a szövegblokkok előtti hajszálvonal — a terven
                                 végig ez, és NEM azonos a --orange-dzsal */
  --dark:          #2c2c2c;
  --text:          #4a4a4a;
  --muted:         #9b9b9b;
  --muted-2:       #ababab;
  --line:          #d7d7d7;
  --line-2:        #d8d8d8;
  --bg:            #f3f2f2;
  --bg-alt:        #efeeee;
  --stat-grey:     #d7d7d7;

  --page:          1274px;   /* content width @1440 design */
  --page-narrow:   1058px;   /* inner blocks (collage, services, stats) */

  /* Az oldalmargó EGY helyen. 1440-en 83px — pontosan annyi, amennyit a 1274px-es
     tartalomszélesség hagy. Minden töréspont ezt írja felül, így a .container és a
     hozzá igazodó teljes szélességű kompozíciók (hero panel, narancs sávok) soha
     nem csúsznak el egymástól. Nyers artboard-pixelt oldalszéltől MÉRNI TILOS:
     az csak 1440-en jönne ki. */
  --gut:           max(24px, calc((100% - var(--page)) / 2));
  --gut-narrow:    max(24px, calc((100% - var(--page-narrow)) / 2));

  /* Mozgás. Négy tempó, két görbe — semmi más. */
  --ease:          cubic-bezier(.22,.61,.36,1);
  --ease-out:      cubic-bezier(.16,1,.3,1);
  --d-fast:        .18s;
  --d-mid:         .32s;
  --d-slow:        .6s;

  --shadow-pill:   0 2px 6px rgba(0,0,0,.15);
  --shadow-btn:    0 2px 3px rgba(0,0,0,.15);

  --ff: "effra", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* A UA `[hidden]{display:none}` szabályát BÁRMELY olyan szerzői szabály legyőzi,
   ami display-t deklarál — egy `.valami{display:grid}` így képes a hidden
   elemet a képernyőn hagyni. Ez a padló azért van, mert itt minden
   megjelenítés-kapcsolás `el.hidden`-nel megy. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

/* MEGJEGYZÉS a vízszintes görgetéshez: a prototípuson a Reviewer widget
   képernyőn kívülre parkolt, `position: fixed` panelje 222px vízszintes
   görgetősávot okoz. Mérve: a widget elemét eltávolítva a lap túlcsordulása
   pontosan 0. Fixed elemet sem a `body { overflow-x: hidden }`, sem a
   `html { overflow-x: clip }` nem fog meg — a viewporthoz igazodik. Ez a
   widget hibája, és élesben úgyis lekerül a lapról, ezért NEM kalapálunk rá
   gyökérszintű overflow-hackot: az a `position: sticky`-t törné el. */

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff);
  font-size: 18px;
  font-weight: 300;
  line-height: 25px;
  letter-spacing: .2px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* A <sub>/<sup> alapból megnöveli a sorládát, tehát egyetlen CO2 elrontaná a
   bekezdés sorritmusát. A line-height: 0 ezt megakadályozza.
   Miért <sub> és nem U+2082: az alsó indexes ₂ EGYETLEN Adobe nyelvi
   részhalmazban sincs benne, tehát rendszerbetűből jönne — a <sub> a rendes
   2-es glifet használja, és szemantikailag is ez a helyes. */
sub, sup { font-size: .72em; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -.25em; }
sup { top: -.45em; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  padding-inline: var(--gut);
}
.container--narrow {
  padding-inline: var(--gut-narrow);
}
.center { display: flex; justify-content: center; }

.section { padding-block: 45px; }
.section--intro       { padding-top: 74px;  padding-bottom: 0; }
.section--products    { padding-top: 90px;  padding-bottom: 0; }
.section--services    { padding-top: 90px;  padding-bottom: 0; }
.section--stats       { padding-top: 90px;  padding-bottom: 0; }
.section--sustain     { padding-top: 90px;  padding-bottom: 79px; }
.section--projects    { padding-top: 43px;  padding-bottom: 0; background: var(--bg-alt); }
.section--bestsellers { padding-top: 100px; padding-bottom: 0; }
.section--contact     { padding-top: 75px;  padding-bottom: 90px; }

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.h2 {
  font-size: 50px;
  line-height: 1.05;
  font-weight: 500;
  color: var(--text);
  letter-spacing: .2px;
}
.lead-xl {
  font-size: 30px;
  line-height: 42px;
  font-weight: 300;
  color: var(--text);
}
.body-text {
  font-size: 18px;
  line-height: 25px;
  font-weight: 300;
  color: var(--text);
}
.ghost-title {
  font-size: 50px;
  line-height: 51px;
  font-weight: 500;
  text-transform: uppercase;
  color: #fff;
  opacity: .25;
  letter-spacing: .2px;
}

/* --------------------------------------------------------------------------
   5. Buttons / pills
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  height: 46px;
  padding: 0 20px 0 26px;
  border-radius: 100px;
  font-size: 16px;
  line-height: 18px;
  font-weight: 300;
  white-space: nowrap;
  transition: background-color .2s ease, transform .2s ease;
}
.btn--primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-btn); }
.btn--primary:hover { background: #c9441f; }

.btn__arrow {
  width: 18px; height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex: none;
}
.btn__arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateX(-1px) rotate(45deg);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 38px;
  padding: 0 20px;
  border-radius: 100px;
  font-size: 16px;
  line-height: 18px;
  font-weight: 300;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pill--white   { background: #fff; color: var(--text); box-shadow: var(--shadow-pill); justify-content: space-between; }
.pill--outline { border: 1px solid var(--line-2); color: var(--text); min-width: 192px; height: 40px; }
.pill--outline:hover { border-color: var(--orange); color: var(--orange); }
.pill--dark    { background: #4a4a4a; color: #fff; min-width: 174px; box-shadow: var(--shadow-btn); }
.pill--ghost   { background: #fff; border: 1px solid var(--line-2); color: var(--text); min-width: 174px; }
.pill--ghost:hover { border-color: var(--orange); color: var(--orange); }
.pill--orange  { background: var(--orange); color: #fff; box-shadow: var(--shadow-btn); justify-content: space-between; padding-left: 22px; padding-right: 10px; min-width: 178px; }

.pill__chev {
  width: 7px; height: 7px; flex: none;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.pill__circle {
  width: 18px; height: 18px; flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.pill__circle::before {
  content: '';
  position: absolute; inset: 0; margin: auto;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateX(-1px) rotate(45deg);
}
.pill__icon { width: 20px; height: 20px; flex: none; }

/* small carousel arrows */
.nav-arrows { display: flex; gap: 15px; }
.nav-arrows--center { justify-content: center; }
.nav-arrows__btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  position: relative;
  transition: opacity .2s ease;
}
.nav-arrows__btn.is-muted { opacity: .5; }
.nav-arrows__btn:hover { opacity: 1; }
.nav-arrows__btn::before {
  content: '';
  position: absolute; inset: 0; margin: auto;
  width: 8px; height: 8px;
  border-bottom: 1px solid var(--text);
  border-right: 1px solid var(--text);
}
.nav-arrows__btn--next::before { transform: translateX(-2px) rotate(-45deg); }
.nav-arrows__btn--prev::before { transform: translateX(2px) rotate(135deg); }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.header {
  position: absolute;
  inset: 0 0 auto 0;
  height: 76px;
  z-index: 100;
  background: rgba(44,44,44,.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.header--stuck {
  position: fixed;
  animation: header-drop .3s ease both;
}
@keyframes header-drop { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: max(24px, calc((100% - var(--page)) / 2 + 1px));
}
.header__logo img { width: 34px; height: 28px; object-fit: contain; }

.header__nav {
  display: flex;
  gap: 42px;
  margin: 0 auto;
}
.header__nav a {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 38px;
  letter-spacing: .2px;
  opacity: .92;
  transition: opacity .2s ease, color .2s ease;
}
.header__nav a:hover, .header__nav a.is-active { opacity: 1; color: var(--orange-light); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 100%;
}
.header__icon-btn img { width: 20px; height: 20px; }
.header__icon-btn { display: flex; align-items: center; justify-content: center; }
/* Érintési célpont: az ikon 20px, a kattintható felület nem lehet ekkora. */
@media (hover: none) {
  .header__icon-btn, .header__phone { min-width: 44px; min-height: 44px; justify-content: center; }
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.header__phone img { width: 20px; height: 20px; }

.header__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 167px;
  height: 76px;
  background: var(--orange);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  transition: background-color .2s ease;
}
.header__cta:hover { background: #c9441f; }

.header__burger { display: none; width: 26px; height: 18px; flex-direction: column; justify-content: space-between; }
.header__burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  height: 850px;
  background: var(--dark);
}
.hero__stage { position: relative; flex: 1 1 auto; overflow: hidden; }

.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  /* a visszaállás KÉSLELTETVE fut, hogy a kifutó dia ne ránduljon vissza,
     amíg még látszik */
  transition: opacity .7s ease, transform .3s ease .7s;
}
.hero__slide.is-active {
  opacity: 1;
  transform: scale(1.06);
  transition: opacity .7s ease, transform 8s linear;
}
.hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.43); }

.hero__content {
  position: absolute;
  left: max(24px, calc((100% + 166px - var(--page)) / 2));
  bottom: 37px;
  max-width: 760px;
}
.hero__brand { width: 193px; height: 35px; object-fit: contain; margin-bottom: 8px; }
.hero__title {
  font-size: 80px;
  line-height: 1.05;
  font-weight: 500;
  color: #fff;
  opacity: .7;
}
.hero__lead {
  margin-top: 14px;
  font-size: 20px;
  line-height: 25px;
  font-weight: 500;
  color: #fff;
  opacity: .7;
}
.hero__content .btn { margin-top: 24px; }

.hero__dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 37px;
  display: flex;
  gap: 7px;
  z-index: 3;
}
.hero__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  transition: background-color .2s ease;
}
.hero__dot.is-active { background: #fff; }

.hero__peek {
  position: relative;
  flex: 0 0 166px;
  overflow: visible;
}
.hero__peek-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.hero__peek-img::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.75); }
.hero__peek-btn {
  position: absolute;
  left: 0;
  top: calc(50% + 38px);
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 3px rgba(0,0,0,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: transform .2s ease;
}
.hero__peek:hover .hero__peek-btn { transform: translate(-50%, -50%) scale(1.08); }
.hero__peek-btn img { width: 22px; height: auto; }

/* --------------------------------------------------------------------------
   8. Termékeink – kategória kollázs
   -------------------------------------------------------------------------- */
.section--products .h2 { margin-bottom: 47px; }

.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.cat-grid__col { display: grid; grid-template-rows: 1fr 1fr; gap: 25px; }

.cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: #6d6d6d;
}
.cat-card--tall { aspect-ratio: 517 / 613; }
.cat-grid__col .cat-card { aspect-ratio: 517 / 294; }
.cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.cat-card:hover img { transform: scale(1.04); }
.cat-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 145px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.7));
  pointer-events: none;
}
.cat-card__label {
  position: absolute;
  left: 25px;
  bottom: 30px;
  z-index: 2;
  font-size: 30px;
  line-height: 42px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .2px;
}
.section--products .center { margin-top: 73px; }

/* --------------------------------------------------------------------------
   9. Szolgáltatásaink
   -------------------------------------------------------------------------- */
.section--services .h2 { margin-bottom: 43px; }

.svc-row { display: flex; gap: 23px; }
.svc-row + .svc-row { margin-top: 24px; }

.svc-card {
  background: var(--bg-alt);
  min-height: 238px;
  padding: 18px 24px 28px 22px;
  display: flex;
  flex-direction: column;
}
.svc-card--w625 { flex: 625 1 0; }
.svc-card--w410 { flex: 410 1 0; }
.svc-card--w301 { flex: 301 1 0; }

/* A csempe EGÉSZE kattintható, de a link valódi <a> a címsorban: a
   kiterjesztett ::after adja a felületet, nem egy hamis kattintáskezelő. Így a
   billentyűzet és a képernyőolvasó is rendes linket lát, és a szöveg is
   kijelölhető marad. (Ügyfélkérés: „ezek a csempék kattinthatóak lehetnek?") */
.svc-card { position: relative; transition: background-color var(--d-mid) ease, transform var(--d-mid) var(--ease); }
.svc-card:has(.svc-card__link):hover { background: #e7e5e5; transform: translateY(-3px); }
.svc-card__link { color: inherit; }
.svc-card__link::after { content: ''; position: absolute; inset: 0; }
.svc-card:has(.svc-card__link):hover .svc-card__title { color: var(--orange-ink); }

.svc-card__head { display: flex; align-items: flex-start; gap: 23px; }
.svc-card__icon { width: 62px; height: auto; flex: none; }
.svc-card__title {
  margin-top: 14px;
  font-size: 24px;
  line-height: 24px;
  font-weight: 400;
  color: var(--text);
}
.svc-card__text {
  margin-top: 26px;
  margin-left: 8px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 300;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   10. CTA sáv
   -------------------------------------------------------------------------- */
/* A SZÁZALÉK MINDIG A SZÜLŐRE OLDÓDIK FEL — ez a --gut legfontosabb korlátja.
   A sáv korábban maga volt 1034px széles, és a benne lévő doboz --gut paddingja
   így (1034 - 1274) / 2 = negatív → max(24px, …) = 24px lett: a szöveg 83 helyett
   24px-re csúszott. A --gut CSAK teljes szélességű elemen adja az oldalmargót.

   Ezért a sáv maga teljes szélességű, a narancs kitöltés pedig egy külön réteg
   benne. A jobb oldali 83px a sáv saját belső margója (ezt a terv adja), a bal
   oldali viszont a --gut, hogy a szöveg a lap többi tartalmával egy vonalban
   maradjon 1440 fölött is. */
.cta-band {
  --band-w: min(100%, calc(1034px + (100% - 1440px) / 2));
  position: relative;
  margin-top: 95px;
  width: 100%;
}
.cta-band::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--band-w);
  background: var(--orange);
}
.cta-band__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 89px;
  padding-block: 20px;
  padding-left: var(--gut);
  padding-right: calc(100% - var(--band-w) + 83px);
}
.cta-band__text {
  font-size: 24px;
  line-height: 30px;
  font-weight: 400;
  color: #fff;
}
.cta-band .pill--white { min-width: 192px; }

/* --------------------------------------------------------------------------
   11. Az ORWAK számokban
   -------------------------------------------------------------------------- */
.section--stats .h2 { margin-bottom: 57px; }
.stats__lead { margin-bottom: 57px; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 67px 132px;
}
.stat { position: relative; padding-left: 20px; }
.stat::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 2px; height: 115px;
  background: var(--orange);
}
.stat__icon { height: 55px; width: auto; }
.stat__icon--wide { height: 43px; margin-block: 6px; }
.stat__value {
  margin-top: -10px;
  font-size: 80px;
  line-height: 100px;
  font-weight: 500;
  color: var(--stat-grey);
  letter-spacing: .2px;
  white-space: nowrap;
}
.stat__value em { font-style: normal; font-size: 50px; }
.stat__plus { color: var(--orange); font-size: 50px; margin-left: 8px; }
.stat__label {
  margin-top: -6px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--text);
  max-width: 265px;
}

/* --------------------------------------------------------------------------
   12. Videó / narancs sáv
   -------------------------------------------------------------------------- */
.video-band { position: relative; margin-top: 90px; padding-bottom: 0; }
.video-band__bg {
  position: absolute;
  left: 0; top: 0;
  height: 346px;
  width: calc(100% - max(24px, (100% - var(--page)) / 2));
  background: var(--orange);
}
.video-band .container { position: relative; padding-top: 45px; }

.video-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 733px) minmax(0, 354px);
  column-gap: 40px;
  justify-content: start;
  align-items: start;
}
.video-band__main .ghost-title { margin-bottom: 14px; }

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 733 / 412;
  overflow: hidden;
  background: #4a4a4a;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb__play {
  position: absolute; inset: 0; margin: auto;
  width: 78px; height: 78px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  transition: transform .2s ease;
}
.video-thumb__play::before {
  content: '';
  position: absolute; inset: 0; margin: auto;
  width: 0; height: 0;
  border-left: 22px solid var(--orange);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  transform: translateX(4px);
}
.video-thumb:hover .video-thumb__play { transform: scale(1.08); }

.video-band__text {
  position: relative;
  padding-left: 15px;
  border-left: 2px solid rgba(255,255,255,.9);
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
  max-width: 370px;
}

/* --------------------------------------------------------------------------
   13. A fenntarthatóság belülről kezdődik
   -------------------------------------------------------------------------- */
.sustain {
  display: grid;
  grid-template-columns: 325fr 434fr 518fr;
}
.sustain__col { position: relative; padding-left: 20px; }
.sustain__col::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 50px;
  background: var(--orange-light);
}
.sustain__col--title::before { background: var(--orange); }
.sustain__title {
  font-size: 30px;
  line-height: 33px;
  font-weight: 500;
  color: var(--text);
}
.sustain__list { list-style: disc; padding-left: 27px; }
.sustain__list li { font-size: 18px; line-height: 25px; font-weight: 300; }
.sustain__col p { font-size: 18px; line-height: 25px; font-weight: 300; }

/* --------------------------------------------------------------------------
   14. Új ORWAK projektek
   -------------------------------------------------------------------------- */
.projects__lead { max-width: 842px; margin-top: 22px; }

.projects { margin-top: 85px; padding-bottom: 60px; }
/* FIX magasság. Az aktív kártya 446, a többi 347, és a kettő között a
   `transition: height` fut — közben a sáv magassága lecsökken, és az alatta lévő
   felirat felugrik. Ügyfélkérés: „Amikor áthúzunk egy másik képet középre, akkor
   az alatta lévő sáv is felugrik. Azt meg tudnánk csinálni fixre?" */
.projects__viewport { overflow: hidden; height: 446px; display: flex; align-items: center; }
.projects__track {
  display: flex;
  align-items: center;
  gap: 28px;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.proj {
  margin: 0;
  flex: 0 0 374px;
  height: 347px;
  overflow: hidden;
  transition: height .35s ease;
  background: #ddd;
}
.proj img { width: 100%; height: 100%; object-fit: cover; }
.proj.is-active { flex-basis: 520px; height: 446px; }

.projects__caption {
  margin-top: 21px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.projects__title { font-size: 24px; line-height: 24px; font-weight: 400; color: var(--dark); }
.projects .pill--dark { min-width: 190px; background: #414141; }

/* --------------------------------------------------------------------------
   15. Legnépszerűbb termékek
   -------------------------------------------------------------------------- */
.bestsellers__lead { margin-top: 36px; max-width: 948px; }
.filters { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 36px; }
.filters .pill--dark.is-active { background: #4a4a4a; }

.products { margin-top: 37px; padding-bottom: 30px; }
.products__viewport {
  overflow: hidden;
  padding-inline: var(--gut);
}
.products__track {
  display: flex;
  gap: 75px;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.prod { flex: 0 0 225px; position: relative; padding-left: 30px; }
.prod::before {
  content: '';
  position: absolute;
  left: 0; top: 41px;
  width: 2px; height: 184px;
  background: var(--orange);
}
.prod__name { font-size: 18px; line-height: 24px; font-weight: 700; color: var(--text); }
.prod__media {
  position: relative;
  margin-top: 17px;
  width: 195px; height: 214px;
  border-radius: 5px;
  overflow: hidden;
  background: #8a8a8a;
}
.prod__media img {
  position: absolute;
  left: -44.9%; top: -18.1%;
  width: 189.08%; height: 141.12%;
  max-width: none;
  object-fit: cover;
  transition: transform .4s ease;
}
.prod:hover .prod__media img { transform: scale(1.05); }

/* Az ügyfél saját termékfotói KIVÁGOTT, átlátszó hátterű felvételek, nem
   helyszíni fotók. A fenti `cover` + nagyítás a kolléga jelenetfotójára készült;
   egy kivágott gépet levágna a doboz szélén. A `contain` egészben mutatja, ami
   egy termékkártyán az egyetlen becsületes megoldás: a kártya arról a gépről
   állít valamit, amit ábrázol.
   A szabály a .prod__media img UTÁN áll — azonos a fajsúlyuk, a sorrend dönt. */
.prod__media--photo { background: #f0eeec; }
.prod__media--photo img {
  position: absolute;
  inset: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
}
.prod__type { margin-top: 18px; font-size: 18px; line-height: 24px; font-weight: 400; color: var(--muted); }
.prod__link {
  margin-top: 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 21px;
  color: var(--orange);
  border-bottom: 1px solid var(--orange);
}
.prod__chev {
  width: 6px; height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.products .nav-arrows { justify-content: center; margin-top: 57px; }

/* --------------------------------------------------------------------------
   16. Iparágak (narancs sáv)
   -------------------------------------------------------------------------- */
.industries {
  position: relative;
  margin-top: 75px;
  height: 346px;
  overflow: hidden;
}
.industries__bg {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: calc(100% - max(24px, (100% - var(--page)) / 2));
  background: var(--orange);
}
.industries .container { position: relative; height: 100%; padding-top: 74px; }

.industries__grid {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 625px);
  gap: 20px;
}
.industries__intro {
  position: relative;
  padding-left: 20px;
  max-width: 406px;
}
.industries__intro::before {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 1px; height: 50px;
  background: #fff;
}
.industries__intro p { font-size: 30px; line-height: 33px; font-weight: 400; color: #fff; }

.industries__list { display: flex; flex-direction: column; gap: 28px; }
.industries__row { display: flex; gap: 24px; }
.ind {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 20px;
  border-radius: 100px;
  background: #fff;
  box-shadow: var(--shadow-pill);
  color: var(--text);
  font-size: 16px;
  line-height: 18px;
  font-weight: 300;
  transition: transform .2s ease;
}
.ind:hover { transform: translateY(-1px); }
.ind img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.ind span { flex: 1 1 auto; text-align: center; }
.ind__chev {
  width: 7px; height: 7px; flex: none;
  border-top: 1px solid var(--text);
  border-right: 1px solid var(--text);
  transform: rotate(45deg);
}
.ind--wide { flex: 0 0 100%; }

.ghost-title--bottom {
  position: absolute;
  left: max(24px, calc((100% - var(--page)) / 2));
  bottom: -10px;
  margin: 0;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   17. Blog
   -------------------------------------------------------------------------- */
.blog { position: relative; margin-top: 74px; padding-top: 53px; }
.blog__bg {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 577px;
  background: url('../assets/img/blog-bg.jpg') center/cover no-repeat;
}
.blog .container { position: relative; }
.blog__heading { color: #fff; text-shadow: 0 4px 4px rgba(0,0,0,.25); }

.blog__panel {
  position: relative;
  margin-top: 58px;
  margin-left: max(24px, calc((100% - var(--page)) / 2 + 108px));
  background: #fff;
  padding: 79px 0 61px 0;
  overflow: hidden;
}
.blog__grid {
  display: flex;
  gap: 28px;
  padding-left: 109px;
}
.blog__panel { padding-left: 0; }
.post { flex: 0 0 409px; }
.post__media { display: block; aspect-ratio: 409 / 286; overflow: hidden; background: #ddd; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post__media:hover img { transform: scale(1.04); }
.post__date { margin-top: 15px; font-size: 14px; line-height: 24px; font-weight: 300; color: var(--text); }
.post__title { margin-top: 11px; font-size: 24px; line-height: 26px; font-weight: 500; color: var(--text); }
.post__title a:hover { color: var(--orange); }
.post__excerpt {
  margin-top: 15px;
  font-size: 18px; line-height: 25px; font-weight: 300;
  color: var(--text);
  height: 125px;
  overflow: hidden;
}
.post__more {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px; line-height: 21px; font-weight: 300;
  color: var(--muted-2);
  text-decoration: underline;
}
.post__more:hover { color: var(--orange); }
.post__chev {
  width: 6px; height: 6px;
  border-top: 1px solid #cbcbcb;
  border-right: 1px solid #cbcbcb;
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   18. Referenciák
   -------------------------------------------------------------------------- */
.refs { margin-top: 68px; background: var(--dark); padding: 43px 0 75px; }
.refs__title { color: #fff; }
.refs__sub { margin-top: 8px; font-size: 18px; line-height: 24px; font-weight: 400; color: var(--orange-light); }

.refs__viewport { margin-top: 44px; overflow: hidden; }
.refs__track {
  display: flex;
  gap: 24px;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.ref-tile {
  flex: 0 0 193px;
  height: 95px;
  border-radius: 5px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 15px;
}
.ref-tile img { max-height: 100%; width: auto; object-fit: contain; }
.refs .nav-arrows { margin-top: 54px; }

/* --------------------------------------------------------------------------
   19. Kapcsolat
   -------------------------------------------------------------------------- */
.contact__title {
  font-size: 50px;
  line-height: 50px;
  font-weight: 400;
  color: var(--text);
}
.contact__grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: minmax(0, 726px) minmax(0, 1fr);
  column-gap: 62px;
  padding-left: 112px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
  row-gap: 24px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field--full > .btn { align-self: flex-start; }
.field label { font-size: 18px; line-height: 18px; font-weight: 400; color: var(--text); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
}
.field input:focus { outline: none; border-color: var(--orange); }

.check { flex-direction: row; align-items: center; gap: 9px; }
.check input { width: 14px; height: 14px; margin: 0; accent-color: var(--orange); flex: none; }
.check label { font-size: 16px; line-height: 16px; font-weight: 400; }
.check a { text-decoration: underline; }

.contact-info { font-style: normal; display: flex; flex-direction: column; gap: 27px; padding-top: 4px; }
.contact-info__item { display: flex; gap: 12px; align-items: flex-start; }
.contact-info__item img { width: 18px; height: 20px; object-fit: contain; margin-top: 3px; flex: none; }
.contact-info__item strong { display: block; font-size: 18px; line-height: 24px; font-weight: 500; color: var(--dark); }
.contact-info__item strong a { font-weight: 300; }
.contact-info__item span { display: block; font-size: 18px; line-height: 24px; font-weight: 300; color: var(--dark); }
.contact-info__item a:hover { color: var(--orange); }

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--dark); color: #fff; padding: 46px 0 16px; }
.footer__logo img { width: 218px; height: 39px; object-fit: contain; }

.footer__grid {
  margin-top: 39px;
  display: grid;
  grid-template-columns: minmax(0, 753px) minmax(0, 222px) minmax(0, 1fr);
  gap: 0;
}
.footer__about { position: relative; padding-left: 14px; max-width: 625px; }
.footer__about::before {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 2px; height: 134px;
  background: var(--orange);
}
.footer__about strong { display: block; font-size: 18px; line-height: 24px; font-weight: 700; }
.footer__about p { margin-top: 8px; font-size: 18px; line-height: 24px; font-weight: 300; }

.footer__col { display: flex; flex-direction: column; gap: 9px; }
.footer__col-title { font-size: 18px; line-height: 24px; font-weight: 700; color: var(--orange); margin-bottom: 7px; }
.footer__col a { font-size: 18px; line-height: 24px; font-weight: 300; }
.footer__col a:hover { color: var(--orange-light); }

.footer__bottom {
  /* A tervben a rács alja 288-nál van, az alsó sor 379-nél kezdődik: 92px, nem 74.
     A 18px hiány minden oldalon ott volt, és pont ennyivel maradt minden lap a
     Figma frame magassága alatt. Nem a betűcsere okozta — Effrával is megvolt. */
  margin-top: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
/* A „Rólunk" a tervben SEHOL nem szerepel a navigációban — a Figma fejléce öt
   menüpontot ad (Főoldal, Termékeink, Szolgáltatások, Kapcsolat, Blog), a footer
   két oszlopa pedig termékeket és szolgáltatásokat sorol. A kész rolunk.html így
   egyetlen linkről sem volt elérhető. A footer alsó sora a szokásos helye az
   ilyen „a cégről" linkeknek, és nem nyúl hozzá a terv oszlopaihoz. */
.footer__legal { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.footer__meta {
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
  transition: color var(--d-mid) ease;
}
.footer__meta:hover { color: var(--orange-light); }

.footer__copy { font-size: 16px; line-height: 24px; font-weight: 700; }
.footer__social { display: flex; gap: 4px; }
.footer__social a {
  width: 27px; height: 27px;
  display: flex; align-items: center; justify-content: center;
  opacity: .8;
  transition: opacity .2s ease;
}
.footer__social a:hover { opacity: 1; }
.footer__social img { width: 21px; height: 21px; object-fit: contain; }

/* --------------------------------------------------------------------------
   21. Mozgás és interakció

   Három szabály tartja kordában:
   · A belépő animáció CSAK akkor rejt el bármit, ha fut a JS (`html.js`) — enélkül
     a tartalom az első pillanattól ott van, nem tűnik el egy meghiúsult
     IntersectionObserver miatt.
   · Elmozdulás legfeljebb 20px, átlátszóság 0-ból. Semmi elfordulás, semmi
     „berepülés" oldalról: a szem a szöveget olvassa, nem a mozgást nézi.
   · Minden időzítés a --d-* tokenekből jön, és a fájl végi
     prefers-reduced-motion padló mindet lekapcsolja.
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}
.js [data-reveal].is-in {
  /* NEM `opacity: 1`. A .phero__lead a tervben 70%-os — egy sima 1-es érték
     minden ilyen szándékos halványítást elnyomott volna, amint az elem bejön.
     Ahol a halványítás szándékos, ott vagy a szín alfája viszi (ez a jobb),
     vagy a --reveal-o adja meg a végállapotot. */
  opacity: var(--reveal-o, 1);
  transform: none;
  transition:
    opacity var(--d-slow) var(--ease-out) calc(var(--i, 0) * 70ms),
    transform var(--d-slow) var(--ease-out) calc(var(--i, 0) * 70ms);
}
/* a rétegződés kikapcsolása, ha egy blokk egyben jelenik meg */
.js [data-reveal-group] > * { --i: 0; }

/* Kép-belépő: a fotó egy hajszállal nagyobbról ül a helyére. Ez a „slide zoom"
   nyugodt változata — egyszer fut le, nem ismétlődik.

   MAGÁRA A KÉPRE kell tenni, nem a keretére. Ha a keret skálázódik, nincs mi
   levágja a kilógó szélét: betöltéskor 50px vízszintes görgetősáv villan fel az
   egész lapon. A keret feladata az `overflow: hidden`, a képé a mozgás. */
@keyframes media-in { from { transform: scale(1.07); } to { transform: none; } }
.js img.media-in { animation: media-in 1.1s var(--ease-out) both; }

/* Hover: emelkedés + a kép ráközelít. Egy helyen, hogy minden kártya
   ugyanúgy viselkedjen. */
.lift { transition: transform var(--d-mid) var(--ease), box-shadow var(--d-mid) var(--ease); }
.lift:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.13); }

.zoom-media { overflow: hidden; }
.zoom-media img { transition: transform var(--d-slow) var(--ease); }
.lift:hover .zoom-media img,
.zoom-media:hover img { transform: scale(1.06); }

/* A gombok nyila elindul a hover irányába. A chevron el van forgatva 45 fokkal,
   ezért annak az elmozdulást a saját forgatásával EGYÜTT kell megadni, különben
   a transform felülírja a rotate-ot és a nyíl kockává egyenesedik. */
.btn:hover .btn__arrow,
.pill:hover .pill__circle { transform: translateX(3px); }
.pill:hover .pill__chev { transform: translateX(3px) rotate(45deg); }
.btn__arrow, .pill__circle, .pill__chev { transition: transform var(--d-mid) var(--ease); }

/* ---- Húzható carouselek ---------------------------------------------------
   A `touch-action: pan-y` a lényeg: a vízszintes mozdulatot mi kezeljük, a
   függőlegeset meghagyjuk a lapnak — enélkül a carousel fölött nem lehetne
   végiggörgetni az oldalt telefonon. */
.projects__viewport,
.products__viewport,
.refs__viewport,
.blog__panel { touch-action: pan-y; }
.is-draggable { cursor: grab; }
.is-dragging { cursor: grabbing; }
.is-dragging * { cursor: grabbing; }
/* húzás közben a kép ne induljon el natív képhúzásra */
.is-dragging img { pointer-events: none; }

/* ---- Hover-visszajelzés MINDEN kattintható felületre ----------------------
   Ezek hiányoztak: a fehér, sötét és narancs pill, a fejléc telefonszáma és
   logója, valamint a projekt-kártyák némán viselkedtek — rájuk vitted az
   egeret, és nem történt semmi.

   A referencia-csempékre (.ref-tile) SZÁNDÉKOSAN nincs hover: azok sima
   <div>-ek, nem linkek. Egy hover azt hazudná, hogy kattinthatók. */
.pill--white:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
  color: var(--orange-ink);          /* fehér alapon 5.13:1 */
}
.pill--dark:hover           { background: #3a3a3a; }
.projects .pill--dark:hover { background: #333; }
.pill--orange:hover         { background: #c9441f; }   /* mint a .btn--primary */
.btn--primary:hover         { transform: translateY(-1px); }

.header__phone { transition: color var(--d-mid) var(--ease); }
.header__phone:hover { color: var(--orange-light); }
.header__logo img { transition: opacity var(--d-mid) var(--ease); }
.header__logo:hover img { opacity: .72; }

/* A carousel-nyilak eddig csak az átlátszóságukat állították vissza 1-re —
   ami a nem tompított nyílon semmit sem jelentett. */
.nav-arrows__btn { transition: opacity var(--d-mid) ease, background-color var(--d-mid) ease, transform var(--d-mid) var(--ease); }
.nav-arrows__btn:not(.is-muted):hover { transform: scale(1.08); background: var(--orange); }
.nav-arrows__btn:not(.is-muted):hover::before { border-color: #fff; }
.nav-arrows__btn.is-muted { cursor: default; }

/* A projekt-kártya kattintásra középre áll — legyen is látszatja. */
.proj { cursor: pointer; }
.proj:not(.is-active) img { transition: transform var(--d-slow) var(--ease), opacity var(--d-mid) ease; opacity: .78; }
.proj:not(.is-active):hover img { opacity: 1; transform: scale(1.04); }

/* Aláhúzás-seprés a szöveges linkeken. */
.link-sweep {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size var(--d-mid) var(--ease), color var(--d-mid) var(--ease);
}
.link-sweep:hover { background-size: 100% 1px; }

/* Széles, középre zárt elsődleges gomb: az űrlapok küldőgombja és a terv fix
   193px-es pilljei. Három oldal írta ki külön-külön. */
.btn--wide {
  min-width: 193px;
  justify-content: center;
  padding: 0 31px;
}

/* Sötét carousel-nyilak. A terv a termékeknél és a blog lapozójánál ezt
   mutatja, a .nav-arrows__btn alapváltozata viszont fehér. */
.nav-arrows--dark .nav-arrows__btn { background: #4a4a4a; box-shadow: none; }
.nav-arrows--dark .nav-arrows__btn::before { border-color: #fff; }

/* Csak képernyőolvasónak. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Billentyűzetes fókusz — a hover-effektek nem helyettesítik. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   22. Megamenü

   NINCS a Figma tervben — ott sima szöveges navigáció van. A korábbi
   prototípusból lett áthozva, ehhez a grafikához igazítva:

   · a panel a fejléc alá ereszkedik (`top: 100%`), és annak a sötét, elmosott
     üvegét folytatja — csak tömörebben (.96 vs .8), hogy a mögötte lévő
     oldalszöveg ne üssön át a menün;
   · a belső margója **--gut**, nem fix érték: így a panel tartalma pontosan a
     lap tartalomoszlopával egy vonalban áll 1440 fölött is;
   · a színek a projekt tokenjeiből jönnek (--orange-light a kiemelésekre,
     ami a sötét alapon 4.79:1).

   A TARTALMA VALÓDI ADAT. A régi prototípus alcímei („Vertikális bálázók
   kartonhoz és fóliához" és társai) egyetlen forrásfájlban sem szerepelnek —
   kitalált marketingszöveg volt. Helyettük:
   · a termékeknél a kategória darabszáma az ügyfél katalógusából (46 termék,
     hét kategóriában — a két „félautomata" slug egy kategória);
   · a szolgáltatásoknál a saját főoldalunk kártyáinak szövege, ami a Figma
     `Szolgáltatásaink` COMPONENT_SET-jéből jön.
   -------------------------------------------------------------------------- */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(28, 28, 28, .96);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: #fff;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  /* A `visibility` nem dísz: opacity:0 + pointer-events:none elrejti az EGÉR
     elől, de a billentyűzet elől NEM — a panel linkjei bent maradnának a
     tabsorrendben, láthatatlanul. A visibility kiveszi őket, és mivel
     animálható, az áttűnés megmarad. */
  visibility: hidden;
  transition:
    opacity var(--d-mid) var(--ease),
    transform var(--d-mid) var(--ease),
    visibility 0s linear var(--d-mid);
}
.mega.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.mega__panel { display: none; }
.mega__panel.is-active { display: block; }

.mega__inner {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
  padding: 42px var(--gut) 46px;
  animation: mega-in var(--d-slow) var(--ease-out) both;
}
@keyframes mega-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.mega__eyebrow {
  display: block;
  margin-bottom: 12px;
  font: 500 12px/1 var(--ff);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange-light);
}
.mega__title { margin: 0 0 12px; font: 500 28px/1.15 var(--ff); color: #fff; }
.mega__lede { margin: 0 0 22px; font: 300 15px/1.6 var(--ff); color: rgba(255, 255, 255, .7); }
.mega__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  font: 400 15px/1 var(--ff);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  transition: color var(--d-mid) ease, border-color var(--d-mid) ease, gap var(--d-mid) ease;
}
.mega__cta:hover { color: var(--orange-light); border-color: var(--orange-light); gap: 13px; }
.mega__arrow { width: 16px; height: 16px; flex: none; transition: transform var(--d-mid) var(--ease); }

/* ---- termékkategóriák ---- */
.mega__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mega-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 16px;
  padding: 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  color: #fff;
  transition: background-color var(--d-mid) ease, border-color var(--d-mid) ease;
}
.mega-card:hover { background: rgba(255, 255, 255, .08); border-color: var(--orange-light); }
.mega-card:hover .mega__arrow { transform: translateX(4px); color: var(--orange-light); }

.mega-card__img {
  width: 76px;
  height: 60px;
  border-radius: 4px;
  background: #1e1e1e center / cover no-repeat;
}
/* A kivágott termékfotók nem jelenetfotók: `contain`, világosabb alapon. */
.mega-card__img--cut { background-size: contain; background-color: rgba(255, 255, 255, .06); }
/* Két kategóriához nincs fotó. Tónusos blokk — MÁSIK kategória gépét
   odatenni hazugság lenne arról, mit árul az ügyfél. */
.mega-card__img--none {
  background: linear-gradient(150deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .08);
}
.mega-card__t { display: block; font: 500 15px/1.25 var(--ff); }
.mega-card__d {
  display: block;
  margin-top: 3px;
  font: 300 13px/1.4 var(--ff);
  color: rgba(255, 255, 255, .62);
}
.mega__arrow { color: rgba(255, 255, 255, .45); transition: transform var(--d-mid) var(--ease), color var(--d-mid) ease; }

/* ---- szolgáltatások ---- */
.mega__list { display: flex; flex-direction: column; }
.mega-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 16px;
  padding: 15px 6px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  transition: background-color var(--d-mid) ease;
}
.mega-row:first-child { border-top: 0; }
.mega-row:hover { background: rgba(255, 255, 255, .04); }
.mega-row:hover .mega__arrow { transform: translateX(4px); color: var(--orange-light); }
.mega-row__num { font: 300 13px/1 var(--ff); letter-spacing: .08em; color: var(--orange-light); }
.mega-row__t { display: block; font: 500 17px/1.3 var(--ff); }
.mega-row__d { display: block; margin-top: 3px; font: 300 13px/1.5 var(--ff); color: rgba(255, 255, 255, .62); }

/* A megnyitott menüpont a fejlécben is jelzi magát. */
.header__nav a.is-mega-open { color: var(--orange-light); opacity: 1; }

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

/* ---- ≤ 1400px : lekicsinyített tipográfia --------------------------------- */
@media (max-width: 1400px) {
  :root { --page: 100%; --page-narrow: 100%; --gut: 48px; --gut-narrow: 48px; }
  .header__inner { padding-left: 48px; }
  .hero__content { left: 48px; }
  .ghost-title--bottom { left: 48px; }
  .blog__panel { margin-left: 108px; }
  .video-band__bg,
  .industries__bg { width: calc(100% - 48px); }
  .cta-band { --band-w: 76%; }
  .cta-band__inner { padding-right: calc(100% - var(--band-w) + 48px); }
}

/* ---- ≤ 1200px ------------------------------------------------------------ */
@media (max-width: 1200px) {
  /* A megamenü lebegtetésre nyílik — érintőképernyőn nincs lebegtetés, és
     szűkebb fejlécben nincs is helye. Alatta a menüpontok sima linkként
     viselkednek, ami eddig is a fallback volt. */
  .mega { display: none; }

  .h2, .contact__title { font-size: 40px; line-height: 1.1; }
  .ghost-title { font-size: 38px; line-height: 40px; }
  .hero { height: 720px; }
  .hero__title { font-size: 62px; }

  .header__nav { gap: 26px; }
  .header__actions { gap: 18px; }
  .header__phone span { display: none; }

  .stats { gap: 50px 60px; }
  .stat__value { font-size: 64px; line-height: 78px; }
  .stat__value em, .stat__plus { font-size: 40px; }

  .video-band__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
  .video-band__bg { height: 300px; }

  .contact__grid { padding-left: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }

  .footer__grid { grid-template-columns: minmax(0, 1fr) 200px 220px; gap: 0 32px; }
  .footer__bottom { margin-top: 60px; }

  .blog__panel { margin-left: 64px; }
  .blog__grid { padding-left: 56px; }
}

/* ---- ≤ 992px ------------------------------------------------------------- */
@media (max-width: 992px) {
  body { font-size: 17px; }
  :root { --gut: 32px; --gut-narrow: 32px; }
  .header__inner { padding-left: 32px; }
  .hero__content, .ghost-title--bottom { left: 32px; }
  .video-band__bg, .industries__bg { width: calc(100% - 32px); }

  .cta-band__inner { padding-right: calc(100% - var(--band-w) + 32px); }
  .section { padding-block: 32px; }
  .section--intro { padding-top: 48px; }
  .section--products, .section--services, .section--stats, .section--bestsellers { padding-top: 64px; }
  .section--sustain { padding-top: 64px; padding-bottom: 56px; }

  .lead-xl { font-size: 24px; line-height: 34px; }

  /* szolgáltatás-kártyák: 2 oszlop */
  .svc-row { flex-wrap: wrap; }
  .svc-card { flex: 1 1 300px; min-height: 210px; }

  /* videó sáv */
  .video-band__grid { grid-template-columns: 1fr; row-gap: 28px; }
  .video-band__text { max-width: none; border-left-width: 2px; }
  /* mobilon a szöveg a kép alá kerül – a narancs háttér a teljes blokkot fedi,
     hogy a fehér szöveg olvasható maradjon */
  .video-band { padding-bottom: 40px; }
  .video-band__bg { height: 100%; }

  /* fenntarthatóság */
  .sustain { grid-template-columns: 1fr 1fr; gap: 32px; }
  .sustain__col--title { grid-column: 1 / -1; }

  /* iparágak */
  .industries { height: auto; padding-bottom: 90px; }
  .industries .container { padding-top: 56px; }
  .industries__grid { grid-template-columns: 1fr; gap: 32px; }
  .industries__bg { bottom: 0; }
  .ghost-title--bottom { bottom: 18px; }

  /* blog */
  .blog__panel { margin-left: 32px; padding-top: 48px; padding-bottom: 48px; }
  .blog__grid { padding-left: 40px; gap: 24px; }
  .post { flex: 0 0 340px; }

  /* kapcsolat */
  .contact__grid { grid-template-columns: 1fr; row-gap: 48px; }

  /* footer */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__about { grid-column: 1 / -1; }
}

/* ---- ≤ 768px : mobil ----------------------------------------------------- */
@media (max-width: 768px) {
  :root { --gut: 20px; --gut-narrow: 20px; }
  .header__inner { padding-left: 20px; }
  .hero__content, .ghost-title--bottom { left: 20px; }
  .video-band__bg, .industries__bg { width: 100%; }
  .cta-band { --band-w: 100%; }

  /* header + mobil menü */
  .header__nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: rgba(28,28,28,.97);
    backdrop-filter: blur(8px);
    padding: 8px 20px 20px;
    transform: translateY(-120%);
    transition: transform .3s ease;
    z-index: 90;
  }
  .header__nav.is-open { transform: translateY(0); }
  .header__nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); line-height: 1.2; }
  .header__burger { display: flex; }
  .header__cta { width: auto; padding: 0 16px; height: 40px; border-radius: 100px; font-size: 14px; }
  /* A kereső gomb mobilon is marad: korábban azért volt elrejtve, mert nem
     csinált semmit. Most teljes képernyős keresőt nyit. */
  .header__actions { gap: 14px; }

  /* hero */
  .hero { height: auto; min-height: 560px; }
  .hero__peek { display: none; }
  .hero__stage { min-height: 560px; }
  .hero__content { right: 20px; bottom: 64px; max-width: none; }
  .hero__brand { width: 150px; height: 27px; }
  .hero__title { font-size: 40px; line-height: 1.1; }
  .hero__lead { font-size: 16px; line-height: 22px; margin-top: 12px; }
  .hero__lead br { display: none; }
  .hero__dots { bottom: 24px; }

  .h2, .contact__title { font-size: 30px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .contact__title br { display: none; }
  .lead-xl { font-size: 20px; line-height: 30px; }
  .ghost-title { font-size: 26px; line-height: 30px; }

  /* kategóriák */
  .cat-grid { grid-template-columns: 1fr; gap: 16px; }
  .cat-card--tall { aspect-ratio: 16 / 11; }
  .cat-grid__col { gap: 16px; }
  .cat-card__label { font-size: 22px; line-height: 28px; bottom: 20px; left: 20px; }
  .section--products .center { margin-top: 40px; }

  /* szolgáltatások */
  .svc-card { flex: 1 1 100%; min-height: 0; padding: 20px; }
  .svc-card__text br { display: none; }
  .svc-card__title br { display: none; }
  .svc-row + .svc-row { margin-top: 16px; }
  .svc-row { gap: 16px; }

  /* CTA */
  .cta-band__inner { flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 24px; padding-left: var(--gut); padding-right: var(--gut); }
  .cta-band__text { font-size: 19px; line-height: 26px; }
  .cta-band__text br { display: none; }

  /* számok */
  .stats { grid-template-columns: 1fr; gap: 36px; }
  .stat__value { font-size: 52px; line-height: 64px; }
  .stat__value em, .stat__plus { font-size: 32px; }
  .stat::before { height: 90px; }
  .stat__icon { height: 44px; }

  /* fenntarthatóság */
  .sustain { grid-template-columns: 1fr; gap: 28px; }
  .sustain__title { font-size: 24px; line-height: 28px; }

  /* projektek */
  .projects { margin-top: 48px; }
  .proj { flex: 0 0 260px; height: 240px; }
  .proj.is-active { flex-basis: 300px; height: 280px; }
  .projects__viewport { height: 280px; }
  .projects__track { gap: 16px; }

  /* termékek */
  .filters { gap: 12px; }
  .pill--dark, .pill--ghost { min-width: 0; padding: 0 18px; }
  .products__track { gap: 32px; }
  .prod { flex: 0 0 200px; }
  .prod__media { width: 170px; height: 186px; }

  /* iparágak — a pillek magassága
     A .ind alap `flex: 1 1 0`-ja SORRA készült. Oszlop-irányba fordítva a
     flex-basis: 0 a MAGASSÁGRA vonatkozik, ezért a pillek a 38px helyett a
     tartalmuk 18px-ére zsugorodtak: öt hajszálvékony csík egymás alatt.
     Itt vissza kell venni a flexet, és mindjárt rendes érintési célpontot is
     adni nekik (48px). */
  .industries__row { flex-direction: column; gap: 12px; }
  .ind, .ind--wide { flex: none; height: 48px; padding-inline: 18px; }
  .industries__intro p { font-size: 22px; line-height: 28px; }
  .industries__intro p br { display: none; }
  .ind span { text-align: left; }
  .ghost-title--bottom { white-space: normal; position: static; margin-top: 40px; }
  .industries { padding-bottom: 40px; }

  /* blog */
  .blog { padding-top: 36px; }
  .blog__panel { margin-left: 20px; padding: 32px 0; }
  .blog__grid { padding-left: 24px; }
  .post { flex: 0 0 260px; }
  .post__title { font-size: 20px; line-height: 24px; }
  .post__excerpt { font-size: 16px; height: 100px; }

  /* referenciák */
  .refs { padding: 32px 0 48px; }
  .ref-tile { flex: 0 0 150px; height: 80px; }

  /* kapcsolat */
  .contact-form { grid-template-columns: 1fr; }
  .section--contact { padding-top: 48px; padding-bottom: 56px; }

  /* footer */
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { margin-top: 40px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__logo img { width: 170px; height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
