/* =========================================================
   Simon László Erik — digitális kivitelező portfólió
   Dizájn a mockup szerint: fehér nav · fekete hero narancs
   hullámokkal · világos törzs · sötét stat-sáv és CTA
   ========================================================= */

:root {
  /* Világos felületek */
  --bg:       #F6F5F3;
  --bg-soft:  #EFECE8;
  --surface:  #FFFFFF;
  --line:     rgba(25, 21, 17, .1);
  --line-2:   rgba(25, 21, 17, .2);

  /* Szöveg világos alapon */
  --text:  #191513;
  --muted: #6E6660;
  --dim:   #A39B93;

  /* Kiemelés */
  --accent:     #EE7B1E;
  --accent-2:   #FFA24B;
  --accent-dk:  #D96A12;
  --accent-ink: #B5560A;  /* olvasható narancs kis szöveghez világos alapon */
  --accent-fade: rgba(238, 123, 30, .12);

  /* Egységes kiemelő átmenet: világos narancs → sötét narancs.
     Minden narancs gomb, háttér, ikon és címsor ezt használja. */
  --grad: linear-gradient(100deg, var(--accent-2) 0%, var(--accent) 45%, var(--accent-dk) 100%);

  /* Sötét blokkok (hero, stat sáv, CTA, footer) */
  --dark:      #0C0B0A;
  --dark-2:    #14110F;
  --dark-line: rgba(255, 255, 255, .12);
  --dark-text: #F5F2EE;
  --dark-muted:#B7AFA6;

  /* Tipográfia */
  --font-head: "Poppins", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", Consolas, monospace;

  /* Ritmus */
  --wrap: 1180px;
  --gap: 24px;
  --radius: 16px;
  --radius-sm: 12px;

  --sec-y: clamp(72px, 9vw, 120px);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --shadow: 0 8px 24px -10px rgba(25, 21, 17, .12);
  --shadow-lg: 0 28px 60px -25px rgba(25, 21, 17, .22);
}

/* ---------- Alap ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 700;
  font-family: var(--font-head);
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--grad);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { left: 20px; }

/* ---------- Közös elemek ---------- */
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: flex-start; /* tördelésnél a pont az első sorhoz igazodjon */
  gap: 9px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow--dark {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px var(--accent-fade);
  flex: none;
  margin-top: .5em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(238, 123, 30, .55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(217, 106, 18, .6); }
.btn--outline {
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  background: rgba(255, 255, 255, .04);
}
.btn--outline:hover { border-color: var(--accent); background: rgba(238, 123, 30, .12); transform: translateY(-2px); }
/* átmenetes keret: belső réteg a felület, külső réteg a gradient */
.btn--ghost {
  border-color: transparent;
  color: var(--accent-ink);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
}
.btn--ghost:hover {
  background: linear-gradient(#FDF1E6, #FDF1E6) padding-box, var(--grad) border-box;
  transform: translateY(-2px);
}
.btn--sm { padding: 10px 18px; font-size: 14.5px; }
.btn--full { width: 100%; margin-top: 22px; }

/* ---------- Reveal animáció ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   NAV — fehér sáv avatarral
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 20px -14px rgba(25, 21, 17, .25); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand__avatar {
  position: relative;
  width: 48px; height: 48px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--accent);
  padding: 2px;
  overflow: hidden;
}
.brand__avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top; /* a portrén a fej felül van */
}
.brand__mono {
  display: none;
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  place-items: center;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
}
.brand__avatar.is-fallback img { display: none; }
.brand__avatar.is-fallback .brand__mono { display: grid; }

.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text strong { font-size: 15.5px; letter-spacing: -.01em; font-family: var(--font-head); }
.brand__text span {
  font-size: 12.5px;
  font-weight: 500;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links > a:not(.btn) {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.nav__links > a:not(.btn):hover { color: var(--text); background: rgba(25, 21, 17, .05); }
/* csak a sima linkeket színezzük — a .btn-en a narancs szöveg eltűnne a narancs háttéren */
.nav__links > a:not(.btn).is-active {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav__links .btn { margin-left: 12px; }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
}
.nav__toggle span {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO — fekete, narancs hullámokkal, fotóval
   ========================================================= */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--dark-text);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  right: -12%;
  top: -20%;
  width: 900px;
  height: 900px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(238, 123, 30, .22), transparent 65%);
  pointer-events: none;
}
.hero__waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  min-height: 560px;
}

.hero__copy { padding: clamp(56px, 7vw, 88px) 0; }

.hero h1 {
  font-size: clamp(2.1rem, 4.3vw, 3.4rem);
  letter-spacing: -.03em;
  margin-bottom: 24px;
  text-wrap: balance;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .5);
}
.hero .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  position: relative;
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  color: var(--dark-muted);
  max-width: 46ch;
  margin-bottom: 34px;
  padding-left: 42px;
}
.lead__dash {
  position: absolute;
  left: 0;
  top: .72em;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.lead__dash::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -2.5px;
  border: 3.5px solid transparent;
  border-left-color: var(--accent);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* A fotó hasábja a hero teljes magasságát fogja; a kép abszolút,
   alulra horgonyozva — így minden szélességen kitölti a borítót */
.hero__photo {
  position: relative;
  align-self: stretch;
}
.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55));
}
/* ha nincs portré, a szöveg kapja a teljes szélességet, a hullámok maradnak */
.hero--nophoto .hero__photo { display: none; }
.hero--nophoto .hero__inner { grid-template-columns: 1fr; min-height: 0; }
.hero--nophoto .hero__copy { max-width: 640px; }

/* =========================================================
   PARTNEREK / MARQUEE
   ========================================================= */
.clients { padding: 44px 0 40px; background: var(--surface); border-bottom: 1px solid var(--line); }
.clients__title {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
}
.marquee {
  position: relative;
  overflow: hidden;
  padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 54px;
  width: max-content;
  align-items: center;
  animation: slide 48s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  flex: none;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--dim);
  white-space: nowrap;
  transition: color .2s;
}
.marquee__track span:hover { color: var(--muted); }
@keyframes slide { to { transform: translateX(calc(-50% - 27px)); } }

/* =========================================================
   SZOLGÁLTATÁS KÁRTYÁK
   ========================================================= */
.services { padding: clamp(48px, 6vw, 72px) 0 8px; }
.scards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap);
}
.scard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.scard:hover { transform: translateY(-4px); border-color: rgba(238, 123, 30, .45); box-shadow: var(--shadow-lg); }
.scard__ico {
  width: 46px; height: 46px;
  margin-bottom: 18px;
  color: var(--accent); /* fallback, ha a gradient-def nem érhető el */
}
.scard__ico svg {
  width: 100%; height: 100%;
  fill: none; stroke: currentColor;
  stroke: url(#ikon-grad);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.scard h3 { font-size: 1.12rem; margin-bottom: 9px; }
.scard p { color: var(--muted); font-size: 14.6px; line-height: 1.6; margin-bottom: 18px; }
.scard__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 14.5px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.scard__more span { transition: transform .25s var(--ease); }
.scard__more:hover span { transform: translateX(5px); }

/* =========================================================
   STAT SÁV — sötét, lekerekített
   ========================================================= */
.stats { padding: clamp(28px, 4vw, 44px) 0 0; }
.statsbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--dark-2);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 30px 60px -28px rgba(12, 11, 10, .55);
}
.sb {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 8px 14px;
}
.sb + .sb { border-left: 1px solid var(--dark-line); }
.sb__ico {
  width: 48px; height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(255, 162, 75, .18), rgba(217, 106, 18, .1));
  border: 1px solid rgba(238, 123, 30, .3);
  color: var(--accent); /* fallback */
}
.sb__ico svg {
  width: 25px; height: 25px;
  fill: none; stroke: currentColor;
  stroke: url(#ikon-grad);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.sb__num {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sb__num small { font-size: .62em; font-weight: 600; color: var(--dark-text); }
.sb__label { font-size: 12.5px; color: var(--dark-muted); line-height: 1.4; margin-top: 3px; }

/* =========================================================
   SZEKCIÓK
   ========================================================= */
.section { padding: var(--sec-y) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }

.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 60px); }
.sec-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.55rem); letter-spacing: -.03em; font-weight: 800; }
.sec-head__sub { margin-top: 18px; color: var(--muted); font-size: 1.04rem; max-width: 62ch; }

/* ---------- Projekt kártyák ---------- */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--gap);
}
.case {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.case:hover {
  transform: translateY(-4px);
  border-color: rgba(238, 123, 30, .5);
  box-shadow: 0 24px 50px -26px rgba(217, 106, 18, .38);
}
.case--wide { grid-column: 1 / -1; background: linear-gradient(150deg, #FFF4E8, var(--surface) 55%); }

.case__top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.case__flag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
}
.case__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.case__tags li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  padding: 4px 10px;
}
.case__title { font-size: 1.22rem; margin-bottom: 12px; letter-spacing: -.02em; }
.case--wide .case__title { font-size: clamp(1.35rem, 2.3vw, 1.7rem); max-width: 24ch; }
.case__excerpt { color: var(--muted); font-size: 15px; margin-bottom: 22px; max-width: 62ch; }

.case__kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  padding: 18px 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.case__kpis strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.case__more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  padding: 6px 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.case__more span { transition: transform .25s var(--ease); }
.case__more:hover span { transform: translateX(5px); }

/* ---------- Folyamat ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.step { background: var(--surface); padding: 30px 26px; transition: background .3s; }
.step:hover { background: #FFF7EE; }
.step__n {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.04rem; margin-bottom: 9px; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- Eszközök ---------- */
.stack { display: grid; gap: 22px; }
.stack__group {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.stack__group:last-child { border-bottom: 1px solid var(--line); }
.stack__group h3 { font-size: 1rem; color: var(--text); padding-top: 5px; }
.stack__group ul { display: flex; flex-wrap: wrap; gap: 8px; }
.stack__group li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13.5px;
  color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.stack__group li:hover { color: var(--accent-ink); border-color: rgba(238, 123, 30, .5); background: var(--accent-fade); }

/* ---------- Rólam ---------- */
.about { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.about h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 22px; font-weight: 800; }
.about__lead { font-size: 1.1rem; color: var(--text); margin-bottom: 18px; }
.about__main > p { color: var(--muted); margin-bottom: 18px; max-width: 64ch; }

.note {
  position: relative;
  margin-top: 32px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: #FFF4E8;
  border: 1px solid rgba(238, 123, 30, .3);
  overflow: hidden;
}
.note::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-dk));
}
.note h3 {
  font-size: 1.02rem;
  margin-bottom: 10px;
  display: inline-block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.note p { color: var(--muted); font-size: 15px; }
.note strong { color: var(--text); }

.side-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 102px;
}
.side-card h3 { font-size: 1rem; margin-bottom: 18px; }
.facts { margin: 0; display: grid; gap: 14px; }
.facts > div { display: grid; gap: 3px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--dim);
}
.facts dd { margin: 0; font-size: 14.5px; color: var(--text); line-height: 1.5; }

/* =========================================================
   CTA / KAPCSOLAT — sötét blokk
   ========================================================= */
.cta {
  position: relative;
  padding: var(--sec-y) 0;
  overflow: hidden;
  background: var(--dark);
  color: var(--dark-text);
}
.cta__glow {
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 640px;
  background: radial-gradient(50% 50% at 50% 100%, rgba(238, 123, 30, .25), transparent 70%);
  pointer-events: none;
}
.cta__inner { position: relative; text-align: center; max-width: 780px; margin-inline: auto; }
.cta .eyebrow { color: var(--dark-muted); }
.cta h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); letter-spacing: -.03em; text-wrap: balance; font-weight: 800; color: #fff; }
.cta .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta__sub { margin: 20px auto 40px; color: var(--dark-muted); font-size: 1.05rem; max-width: 56ch; }

/* az e-mail kártya szélesebb, hogy a cím ne törjön szó közben */
.cta__links { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; }
.contact-card {
  display: grid;
  gap: 5px;
  padding: 22px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--dark-line);
  background: rgba(255, 255, 255, .05);
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--accent); background: rgba(255, 255, 255, .09); }
.contact-card__k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.contact-card__v { font-size: 14.5px; font-weight: 600; color: #fff; word-break: break-word; }
.contact-card:hover .contact-card__v { color: var(--accent-2); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--dark-line); padding: 32px 0; background: var(--dark); color: var(--dark-muted); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}
.footer__meta a { transition: color .2s; }
.footer__meta a:hover { color: var(--accent-2); }

/* =========================================================
   MODAL
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
/* a [hidden]-t felülírná a fenti display:grid — ezért kell explicit szabály */
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(12, 11, 10, .6); backdrop-filter: blur(6px); animation: fade .25s var(--ease); }
.modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 40px 100px -30px rgba(12, 11, 10, .6);
  animation: pop .35s var(--ease);
}
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.modal__close:hover { color: var(--text); border-color: var(--line-2); background: var(--bg); }
.modal__panel > h3 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); margin-bottom: 24px; padding-right: 44px; letter-spacing: -.02em; }

.modal__body h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: inline-block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 26px 0 12px;
}
.modal__body h4:first-child { margin-top: 0; }
.modal__body p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.modal__body ul { display: grid; gap: 9px; }
.modal__body li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.modal__body li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* =========================================================
   RESZPONZÍV
   ========================================================= */
@media (max-width: 1040px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding-bottom: 24px; }
  /* egyhasábos elrendezésben a kép visszaáll normál folyásba */
  .hero__photo { align-self: auto; display: flex; justify-content: center; }
  .hero__photo img { position: static; width: auto; max-width: 100%; height: auto; max-height: 440px; }
  .about { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .statsbar { grid-template-columns: repeat(2, 1fr); }
  .sb:nth-child(3) { border-left: 0; }
  .sb { padding: 14px; }
}

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 18px clamp(20px, 5vw, 40px) 26px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(25, 21, 17, .3);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links > a:not(.btn) { padding: 12px 14px; font-size: 16px; }
  .nav__links .btn { margin: 12px 0 0; }

  .stack__group { grid-template-columns: 1fr; gap: 14px; }
  .cta__links { grid-template-columns: 1fr; }
  .case--wide .case__title { max-width: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .statsbar { grid-template-columns: 1fr; }
  .sb + .sb { border-left: 0; border-top: 1px solid var(--dark-line); }
  .hero__cta .btn { width: 100%; }
  .hero__photo img { max-height: 340px; }
  .case, .scard { padding: 22px; }
  .case__kpis { gap: 14px 24px; }
}

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

/* ---------- Nyomtatás ---------- */
@media print {
  .nav, .hero__waves, .hero__glow, .hero__photo, .marquee, .cta__glow, .modal, .case__more { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { background: #fff; color: #000; }
  .hero h1 { color: #000; text-shadow: none; }
  .reveal { opacity: 1; transform: none; }
  .case__detail { display: block !important; }
}
