/* ============================================================
   SwitchCraft Automation — design system
   ============================================================ */
:root{
  --accent: #2cb8db;          /* brand cyan */
  --accent-bright: #46cdee;
  --accent-deep: #1d93b4;
  --accent-glow: rgba(44,184,219,.35);

  --navy-0: #060f1a;          /* near black */
  --navy-1: #0a1726;          /* primary dark */
  --navy-2: #0d1f33;          /* section */
  --navy-3: #112a45;          /* card */
  --navy-line: rgba(120,170,205,.14);

  --ink: #eaf2f8;             /* light text on dark */
  --ink-soft: #b6c7d6;
  --ink-mute: #7f95a8;

  --paper: #f3f6f9;          /* light section bg */
  --paper-2: #e8eef3;
  --paper-line: #d7e0e8;
  --ink-dark: #0c1c2e;       /* dark text on light */
  --ink-dark-soft: #4a5e72;

  --font-head: 'Saira', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }
body{
  font-family: var(--font-body);
  background: var(--navy-1);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }

::selection{ background: var(--accent); color: var(--navy-0); }

/* ---- layout helpers ---- */
.wrap{ width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section{ position: relative; }
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before{
  content:"";
  width: 26px; height:1px;
  background: var(--accent);
  display:inline-block;
}
.eyebrow.dark{ color: var(--accent-deep); }
.eyebrow.dark::before{ background: var(--accent-deep); }

h1,h2,h3,h4{ font-family: var(--font-head); font-weight:600; line-height:1.02; letter-spacing:-.01em; }
.h2{
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 650;
  line-height: 1.0;
  letter-spacing: -.015em;
}
.lead{ font-size: clamp(16px,1.5vw,18.5px); line-height:1.65; color: var(--ink-soft); }

/* blueprint grid background utility */
.blueprint{
  background-image:
    linear-gradient(var(--navy-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 46px 46px;
}

/* corner ticks decoration */
.ticks{ position:relative; }
.ticks::before, .ticks::after{
  content:""; position:absolute; width:14px; height:14px; pointer-events:none;
  border-color: var(--accent); border-style: solid; opacity:.7;
}

/* ---- buttons ---- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing:.08em; text-transform:uppercase;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn .arrow{ transition: transform .25s var(--ease); }
.btn:hover .arrow{ transform: translateX(4px); }
.btn-primary{ background: var(--accent); color: #03161e; font-weight:600; }
.btn-primary:hover{ background: var(--accent-bright); box-shadow: 0 8px 30px -8px var(--accent-glow); }
/* yellow conversion accent — used ONLY on the contact form submit */
.btn-amber{ background: #ffcb1f; color: #2a1d00; font-weight:600; box-shadow: 0 0 0 0 rgba(255,203,31,.45); }
.btn-amber:hover{ background: #ffd84d; box-shadow: 0 8px 30px -6px rgba(255,203,31,.5); }
.btn-ghost{ border-color: rgba(180,210,228,.28); color: var(--ink); }
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent-bright); }
.btn-dark{ border-color: rgba(12,28,46,.25); color: var(--ink-dark); }
.btn-dark:hover{ border-color: var(--accent-deep); color: var(--accent-deep); }

/* ====================== HEADER ====================== */
.hdr{
  position: fixed; top:0; left:0; right:0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.hdr.scrolled{
  background: rgba(8,18,30,.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--navy-line);
}
.hdr-inner{ display:flex; align-items:center; justify-content:space-between; height: 114px; }
.hdr-logo{ display:flex; align-items:center; gap:12px; }
.hdr-logo img{ height: 72px; width:auto; }
.nav{ display:flex; align-items:center; gap: 4px; }
.nav a{
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing:.04em;
  padding: 10px 16px; color: var(--ink-soft);
  transition: color .2s; position:relative;
}
.nav a:hover{ color: var(--ink); }
.nav a::after{
  content:""; position:absolute; left:16px; right:16px; bottom:4px; height:1px;
  background: var(--accent); transform: scaleX(0); transform-origin:left;
  transition: transform .25s var(--ease);
}
.nav a:hover::after{ transform: scaleX(1); }
.hdr-cta{ display:flex; align-items:center; gap: 18px; }
.hamburger{ display:none; background:none; border:none; color: var(--ink); padding:8px; }

/* language switcher */
.langsw{ display:flex; align-items:center; gap:7px; }
.flagbtn{
  background:none; border:1px solid transparent; padding:3px; border-radius:3px; line-height:0;
  opacity:.5; transition: opacity .2s var(--ease), border-color .2s, transform .15s;
  position:relative;
}
.flagbtn:hover{ opacity:1; transform: translateY(-1px); }
.flagbtn.active{ opacity:1; border-color: var(--accent); }
.flagbtn svg{ width:26px; height:17px; display:block; border-radius:2px; box-shadow:0 1px 3px rgba(0,0,0,.4); }
.langsw-div{ width:1px; height:22px; background: var(--navy-line); margin: 0 4px; }

/* mobile drawer */
.drawer{
  position: fixed; inset:0; z-index:99; background: rgba(6,12,20,.97);
  backdrop-filter: blur(8px);
  display:flex; flex-direction:column; justify-content:center; gap:8px;
  padding: 0 var(--gutter);
  transform: translateY(-100%); transition: transform .4s var(--ease);
}
.drawer.open{ transform: translateY(0); }
.drawer a{
  font-family: var(--font-head); font-size: 34px; font-weight:600;
  padding: 12px 0; border-bottom:1px solid var(--navy-line); color: var(--ink);
}
.drawer a .idx{ font-family: var(--font-mono); font-size:13px; color: var(--accent); margin-right:16px; }
.drawer-close{ position:absolute; top:24px; right: var(--gutter); background:none;border:none;color:var(--ink); }

/* ====================== HERO ====================== */
.hero{ position: relative; min-height: 100svh; display:flex; align-items:flex-end; overflow:hidden; }
.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-bg img{ width:100%; height:100%; object-fit: cover; object-position: center; }
.hero-scrim{
  position:absolute; inset:0; z-index:1;
  background:
    linear-gradient(180deg, rgba(6,13,22,.55) 0%, rgba(6,13,22,.15) 38%, rgba(6,13,22,.78) 82%, var(--navy-1) 100%),
    linear-gradient(90deg, rgba(6,13,22,.82) 0%, rgba(6,13,22,.35) 46%, transparent 78%);
}
.hero-inner{ position:relative; z-index:2; width:100%; min-width:0; padding-bottom: clamp(48px, 8vh, 96px); padding-top: 120px; }
.hero h1{
  font-size: clamp(50px, 8.4vw, 112px);
  font-weight: 650;
  line-height: .98;
  letter-spacing: -.02em;
  max-width: 16ch;
  margin: 22px 0 0;
  text-wrap: balance;
}
.hero h1 .hl{ color: var(--accent); }
.hero-sub{ max-width: min(52ch, 100%); margin-top: 26px; font-size: clamp(16px,1.6vw,19px); line-height:1.6; color: var(--ink-soft); }
.hero-actions{ display:flex; flex-wrap:wrap; gap: 14px; margin-top: 34px; }
.hero-tags{ display:flex; flex-wrap:wrap; gap: 10px; margin-top: 40px; }
.tag{
  font-family: var(--font-mono); font-size:12px; letter-spacing:.06em;
  color: var(--ink-soft); padding: 7px 14px; border:1px solid var(--navy-line);
  border-radius: 100px; background: rgba(10,23,38,.45); backdrop-filter: blur(4px);
}
.tag b{ color: var(--accent); font-weight:600; }

/* trust strip */
.trust{ border-top:1px solid var(--navy-line); border-bottom:1px solid var(--navy-line); background: var(--navy-0); }
.trust-inner{ display:flex; flex-wrap:wrap; align-items:center; gap: 14px 40px; padding: 22px var(--gutter); justify-content:space-between; }
.trust-item{ font-family: var(--font-mono); font-size:13px; letter-spacing:.03em; color: var(--ink-soft); display:flex; align-items:center; gap:11px; }
.trust-item b{ color: var(--ink); font-weight:600; }
.trust-item .dot{ width:6px; height:6px; background: var(--accent); border-radius:50%; flex:none; box-shadow:0 0 10px var(--accent-glow); }

/* ====================== SERVICES ====================== */
.svc{ padding: clamp(56px,6.5vw,96px) 0; background: var(--navy-1); position:relative; }
.sec-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:40px; flex-wrap:wrap; margin-bottom: 44px; }
.sec-head .h2{ max-width: 18ch; margin-top:18px; }
.sec-head p{ max-width: 44ch; }
.refs-lead{ max-width: 32ch; font-size: 14.5px; line-height:1.55; align-self:flex-end; text-align:right; flex:0 1 auto; margin-left:auto; text-wrap:balance; }
@media (max-width: 720px){ .refs-lead{ text-align:left; max-width: 44ch; margin-left:0; } }
.svc-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--navy-line); border:1px solid var(--navy-line); }
.svc-card{
  background: var(--navy-1); padding: 36px 32px 40px; position:relative;
  transition: background .3s var(--ease);
  min-height: 280px; display:flex; flex-direction:column;
}
.svc-card:hover{ background: var(--navy-2); }
.svc-num{ font-family: var(--font-mono); font-size:12px; color: var(--ink-mute); letter-spacing:.1em; }
.svc-ico{ width:46px; height:46px; margin: 22px 0 22px; color: var(--accent); }
.svc-ico svg{ width:100%; height:100%; stroke: currentColor; stroke-width:1.4; fill:none; }
.svc-card h3{ font-size: 23px; font-weight:600; letter-spacing:-.01em; }
.svc-card p{ margin-top:12px; font-size:14.5px; line-height:1.6; color: var(--ink-mute); }
.svc-card .barb{ position:absolute; left:0; top:0; width:2px; height:0; background: var(--accent); transition: height .35s var(--ease); }
.svc-card:hover .barb{ height:100%; }

/* credentials band inside Services */
.svc-creds{ margin-top: 1px; border:1px solid var(--navy-line); border-top:none; background: var(--navy-2); padding: clamp(28px,3.5vw,44px) clamp(24px,3vw,40px); }
.svc-creds-head{ display:flex; align-items:baseline; justify-content:space-between; gap:24px; flex-wrap:wrap; margin-bottom:26px; }
.svc-creds-head p{ color: var(--ink-mute); font-size:14px; max-width:46ch; }
.svc-creds-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: clamp(24px,3vw,44px); }
.svc-cred .cert-h{ font-family: var(--font-head); font-size:15px; font-weight:550; color: var(--ink); margin-bottom:13px; line-height:1.25; }
.svc-cred .cert-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.svc-cred .cert-flags{ display:flex; flex-wrap:wrap; gap:10px; }
@media (max-width: 820px){ .svc-creds-grid{ grid-template-columns: 1fr; gap: 22px; } }

/* ====================== APPROACH (komplex látásmód) ====================== */
.approach{ background: var(--navy-2); padding: clamp(56px,6.5vw,96px) 0; position:relative; overflow:hidden; }
.approach-grid{ display:grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px,4vw,64px); align-items:start; }
.approach-grid--why{ align-items:start; }
/* full-width switchgear lineup banner */
.why-banner{ position:relative; margin-bottom: clamp(32px,4vw,56px); }
.why-banner img{ width:100%; height:auto; display:block; border:1px solid var(--navy-line);
  -webkit-mask: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask: linear-gradient(to bottom, #000 78%, transparent 100%); }
.approach-media{ position:relative; }
.why-cabinet{ width:100%; height:auto; display:block;
  -webkit-mask:
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 68%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask:
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 68%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 980px){
  .why-cabinet{ max-height: 64vh; object-fit: cover; object-position: center; }
}
@media (min-width: 981px){
  .approach-grid{ align-items:end; }
  .approach-media{ margin-top: 0; }
  .why-cabinet{ max-height: 1080px; object-fit: cover; object-position: center bottom; transform: translateY(-280px); }
}
.why-list{ margin-top: 26px; display:grid; gap:0; }
.why-item{ display:grid; grid-template-columns: 34px 1fr; column-gap:16px; row-gap:7px; align-items:baseline; padding:18px 0; border-bottom:1px solid var(--navy-line); }
.why-item .k{ font-family:var(--font-mono); font-size:12px; color: var(--accent); }
.why-item .t{ font-family: var(--font-head); font-size:19px; font-weight:550; line-height:1.2; }
.why-item .d{ grid-column:2; color: var(--ink-mute); font-size:14.5px; line-height:1.6; max-width: 72ch; text-wrap:pretty; }
.why-item .d .dl{ display:block; }
.why-item .d .dl + .dl{ margin-top:5px; }
/* punchy closing items */
.why-item--punch{ border-left:2px solid var(--accent); padding-left:18px; margin-left:-20px;
  background: linear-gradient(90deg, rgba(44,184,219,.07), transparent 70%); }
.why-item--punch .k{ font-size:15px; }
.why-item--punch .t{ color: var(--accent-bright); font-size:21px; font-weight:600; }
.why-item--punch .d{ color: var(--ink-soft); }
/* 93% returning-customer callout */
.why-stat{ margin: 4px 0 22px; padding: 18px 22px; border:1px solid var(--navy-line);
  background: linear-gradient(90deg, rgba(44,184,219,.10), rgba(44,184,219,.02)); border-radius: var(--radius); }
.why-stat .l1{ font-family: var(--font-head); font-size: clamp(19px,2vw,23px); font-weight:600; color: var(--ink); }
.why-stat .l1 b{ color: var(--accent-bright); font-weight:700; }
.why-stat .l2{ margin-top:5px; font-size:14px; color: var(--ink-soft); }

/* approach intro / story */
.approach-intro{ margin-bottom: clamp(40px,5vw,64px); }
.intro-photo{
  position: relative;
  width: 100%;
  min-height: 560px;
  display: flex;
  background: var(--navy-2);
}
.intro-photo-bg{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit: cover; object-position: center;
  -webkit-mask:
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask:
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 90%, transparent 100%);
  mask-composite: intersect;
}
.intro-photo::before{
  content:""; position:absolute; inset:0; z-index:1;
  background: linear-gradient(90deg, rgba(13,31,51,.92) 0%, rgba(13,31,51,.66) 26%, rgba(13,31,51,.22) 46%, rgba(13,31,51,0) 62%);
}
.intro-photo-text{
  position:relative; z-index:2;
  width: 52%; max-width: 560px;
  display:flex; flex-direction:column; justify-content:center;
  padding: clamp(28px, 4vw, 64px);
  gap: 4px;
}
.intro-photo-text .h2{ margin: 14px 0 18px; }
.intro-photo-text .story{ display:grid; gap: clamp(9px,1.1vw,14px); }
.intro-photo-text .story p{ font-size: clamp(12.5px, 1.15vw, 15.5px); line-height:1.58; color: var(--ink-soft); text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.intro-photo-text .story p:first-child{ color: var(--ink); }
.intro-photo-logo{
  position:absolute; z-index:2; top: clamp(34px,5vw,72px); right: 5.5%;
  width: min(25%, 290px); height:auto;
  filter: drop-shadow(0 3px 22px rgba(4,10,18,.7));
}

/* legacy intro-grid (unused fallback) */
.intro-grid{ display:grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px,5vw,64px); margin-top: 22px; align-items:start; }
.intro-grid .h2{ margin:0; }
.story{ display:grid; gap:16px; }
.story p{ font-size: clamp(15px,1.45vw,17px); line-height:1.7; color: var(--ink-soft); }
.story p:first-child{ color: var(--ink); font-size: clamp(16px,1.6vw,19px); }
.why-title{ font-size: clamp(22px,2.4vw,28px); font-weight:600; margin-bottom: 8px; color: var(--ink); }

/* additional references list */
.more-refs{ margin-top: 40px; padding-top: 34px; border-top:1px solid var(--paper-line); }
.more-refs .mr-head{ font-family:var(--font-mono); font-size:12.5px; letter-spacing:.14em; text-transform:uppercase; color: var(--ink-dark-soft); margin-bottom:18px; }
.mr-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--paper-line); border:1px solid var(--paper-line); }
.mr-item{ background: var(--paper); padding: 16px 18px; transition: background .2s var(--ease); }
.mr-item:hover{ background:#fff; }
.mr-item .mn{ font-family: var(--font-head); font-size:17px; font-weight:600; color: var(--ink-dark); }
.mr-item .ms{ font-family: var(--font-mono); font-size:11.5px; color: var(--ink-dark-soft); margin-top:4px; letter-spacing:.02em; }

/* contact logo + qr + map */
.contact-logo{ height: clamp(64px, 8vw, 84px); width:auto; margin: 0; }
.person-head{ display:flex; align-items:stretch; justify-content:space-between; gap:20px; margin: 4px 0 14px; }
.person-id{ display:flex; flex-direction:column; justify-content:center; gap:12px; min-width:0; }
.person-qr{ height: clamp(112px, 15vw, 142px); width:auto; aspect-ratio:1; align-self:center; background:#fff; padding:7px; border-radius:7px; flex:none; }
.contact-qr{ display:flex; align-items:center; gap:16px; margin-top:22px; padding-top:20px; border-top:1px solid var(--navy-line); }
.contact-qr img{ width:74px; height:74px; background:#fff; padding:6px; border-radius:6px; }
.contact-qr .qt{ font-size:13.5px; color: var(--ink-soft); line-height:1.5; }
.contact-map{ margin-top:24px; border:1px solid var(--navy-line); border-radius:4px; overflow:hidden; position:relative; }
.contact-map iframe{ width:100%; height:230px; border:0; display:block; filter: grayscale(.3) invert(.92) hue-rotate(180deg) contrast(.9); }
.contact-map .mlabel{ position:absolute; left:14px; bottom:14px; z-index:2; font-family:var(--font-mono); font-size:11.5px; letter-spacing:.06em; color: var(--ink); background: rgba(6,13,22,.78); padding:7px 11px; border:1px solid var(--navy-line); border-radius:3px; }

/* ====================== PROCESS ====================== */
.process{ background: var(--navy-1); padding: clamp(56px,6.5vw,96px) 0; }
.steps{ display:grid; grid-template-columns: repeat(5,1fr); gap: 18px; margin-top: 52px; }
.step{ position:relative; }
.step-img{ position:relative; overflow:hidden; aspect-ratio: 4/3.4; border:1px solid var(--navy-line); }
.step-img img{ width:100%; height:100%; object-fit:cover; transition: transform .6s var(--ease); filter: saturate(.92) brightness(.92); }
.step:hover .step-img img{ transform: scale(1.05); }
.step-img .ov{ position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(6,13,22,.85)); }
.step-num{ position:absolute; top:14px; left:14px; font-family:var(--font-mono); font-size:12px; color: var(--accent); background: rgba(6,13,22,.7); padding:5px 9px; border:1px solid var(--navy-line); letter-spacing:.1em; }
.step h3{ position:absolute; left:16px; right:16px; bottom:14px; font-size:21px; font-weight:600; }
.step p{ margin-top:14px; font-size:14px; color: var(--ink-mute); line-height:1.55; white-space: pre-line; }

/* ticker / fényújság — "Amivel dolgozunk" */
.ticker{ display:flex; align-items:center; gap: clamp(16px,2.5vw,34px); margin-top: clamp(40px,5vw,64px);
  padding-top: clamp(28px,3.5vw,40px); border-top:1px solid var(--navy-line); }
.ticker-label{ flex:none; font-family:var(--font-mono); font-size:12.5px; letter-spacing:.16em; text-transform:uppercase; color: var(--ink-soft); }
.ticker-label .tk-colon{ color: var(--accent); }
.ticker-viewport{ position:relative; flex:1 1 auto; overflow:hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track{ display:flex; width:max-content; animation: tk-scroll 34s linear infinite; }
.ticker:hover .ticker-track{ animation-play-state: paused; }
.ticker-set{ display:flex; align-items:center; gap: clamp(18px,2.4vw,32px); padding-right: clamp(18px,2.4vw,32px); flex:none; }
.tk-item{ flex:none; display:flex; align-items:center; }
.tk-item img{ height: clamp(48px,5.2vw,62px); width:auto; display:block; filter: drop-shadow(0 6px 16px rgba(4,10,18,.4)); }
@keyframes tk-scroll{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .ticker-track{ animation: none; } }

/* ====================== REFERENCES ====================== */
.refs{ background: var(--paper); color: var(--ink-dark); padding: clamp(56px,6.5vw,96px) 0; }
.refs .eyebrow{ color: var(--accent-deep); }
.refs .eyebrow::before{ background: var(--accent-deep); }
.refs .h2{ color: var(--ink-dark); }
.refs .lead{ color: var(--ink-dark-soft); }
.filters{ display:flex; flex-wrap:wrap; gap:10px; margin: 36px 0 30px; }
.chip{
  font-family: var(--font-mono); font-size:12.5px; letter-spacing:.04em;
  padding: 10px 18px; border:1px solid var(--paper-line); border-radius:100px;
  color: var(--ink-dark-soft); background:#fff; transition: all .2s var(--ease);
}
.chip:hover{ border-color: var(--accent-deep); color: var(--ink-dark); }
.chip.active{ background: var(--ink-dark); color:#fff; border-color: var(--ink-dark); }
.ref-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.ref-card{
  position:relative; overflow:hidden; border-radius: var(--radius);
  aspect-ratio: 4/3.2; background: var(--paper-2);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.ref-card img{ width:100%; height:100%; object-fit:cover; transition: transform .7s var(--ease); }
.ref-card:hover img{ transform: scale(1.06); }
.ref-card .meta{ position:absolute; inset:0; padding: 22px; display:flex; flex-direction:column; justify-content:flex-end;
  background: linear-gradient(180deg, transparent 35%, rgba(8,18,30,.2) 55%, rgba(8,18,30,.9)); color:#fff; }
.ref-card .cat{ font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color: var(--accent-bright); }
.ref-card .name{ font-family: var(--font-head); font-size:21px; font-weight:600; margin-top:6px; line-height:1.1; }
.ref-card .sub{ font-size:13px; color: rgba(255,255,255,.72); margin-top:6px; white-space: pre-line; }
.ref-card.hide{ display:none; }

/* featured (flagship) reference cards — constant bordó emphasis */
.ref-card.featured{ box-shadow: 0 0 0 5px #8c2030, 0 0 0 6px rgba(140,32,48,.25), 0 18px 46px -16px rgba(140,32,48,.55); }
.ref-card.featured::after{ content:""; position:absolute; inset:0; z-index:2; pointer-events:none;
  border:2px solid rgba(176,52,68,.6); border-radius: var(--radius); }
.ref-flag{ position:absolute; top:16px; right:14px; z-index:3;
  font-family: var(--font-mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase; color: #fff;
  padding:6px 11px; background: #8c2030; border-radius:100px; font-weight:600;
  box-shadow: 0 2px 10px rgba(140,32,48,.5); }

/* clickable case-study card + hover preview hint (desktop) */
.ref-card.has-study{ cursor:pointer; }
.ref-card.has-study:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
.study-hint{ position:absolute; left:0; right:0; bottom:0; z-index:3;
  display:flex; align-items:center; justify-content:center; gap:9px;
  font-family: var(--font-mono); font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:#fff; font-weight:600;
  padding:14px; background: linear-gradient(0deg, rgba(140,32,48,.96), rgba(140,32,48,.0));
  transform: translateY(100%); opacity:0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.ref-card.has-study:hover .study-hint, .ref-card.has-study:focus-visible .study-hint{ transform: translateY(0); opacity:1; }
.ref-card.has-study:hover img{ transform: scale(1.08); }
/* touch / mobile: no hover — show a persistent compact "Bővebben" pill so cards read as tappable */
@media (hover: none), (max-width: 900px){
  .ref-card.has-study .study-hint{
    transform:none; opacity:1;
    left:14px; right:auto; top:14px; bottom:auto; width:auto;
    padding:7px 13px; border-radius:100px; background:#8c2030;
    font-size:11px; letter-spacing:.1em; box-shadow:0 2px 10px rgba(4,10,18,.5);
  }
}

/* case-study modal */
.study-overlay{ position:fixed; inset:0; z-index:200; background: rgba(4,9,16,.82); backdrop-filter: blur(6px);
  display:flex; align-items:center; justify-content:center; padding: clamp(16px,4vw,48px);
  animation: study-fade .25s var(--ease); }
@keyframes study-fade{ from{ opacity:0; } to{ opacity:1; } }
.study-modal{ position:relative; width:min(640px,100%); max-height:92vh; overflow:auto;
  background: var(--navy-2); border:1px solid var(--navy-line); border-radius:6px;
  display:flex; flex-direction:column; animation: study-rise .3s var(--ease); }
@keyframes study-rise{ from{ transform: translateY(18px); opacity:0; } to{ transform:none; opacity:1; } }
.study-close{ position:absolute; top:14px; right:14px; z-index:4; width:38px; height:38px; border-radius:50%;
  background: rgba(6,13,22,.6); border:1px solid var(--navy-line); color:#fff; display:flex; align-items:center; justify-content:center;
  transition: background .2s, border-color .2s; }
.study-close:hover{ background: var(--navy-1); border-color: var(--accent); color: var(--accent-bright); }
.study-media{ position:relative; }
.study-media img{ width:100%; height:auto; max-height:320px; object-fit:cover; object-position:center 88%; display:block; }
.study-badge{ position:absolute; top:16px; left:16px; font-family:var(--font-mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase;
  color:#fff; padding:6px 11px; background:#8c2030; border-radius:100px; font-weight:600; }
.study-body{ padding: clamp(24px,3vw,40px); }
.study-cat{ font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color: var(--accent-bright); }
.study-title{ font-family:var(--font-head); font-size: clamp(22px,2.6vw,30px); font-weight:600; line-height:1.08; margin:10px 0 14px; color:#fff; }
.study-intro{ font-size:14.5px; line-height:1.6; color: var(--ink-soft); white-space:pre-line; }
.study-blocks{ margin:22px 0; display:grid; gap:0; }
.study-block{ display:grid; grid-template-columns:96px 1fr; gap:14px; padding:14px 0; border-top:1px solid var(--navy-line); }
.study-block:last-child{ border-bottom:1px solid var(--navy-line); }
.study-k{ font-family:var(--font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color: var(--accent); padding-top:2px; }
.study-block p{ font-size:14px; line-height:1.58; color: var(--ink-soft); white-space:pre-line; }
.study-extra{ display:block; margin-top:8px; font-size:14px; line-height:1.58; color: var(--ink-soft); }
.study-extra strong{ color:#fff; font-weight:600; }
.study-note{ display:block; margin-top:9px; padding-left:12px; border-left:2px solid var(--navy-line);
  font-size:12.5px; font-style:italic; line-height:1.5; color: var(--ink-mute); white-space:pre-line; }
.study-stats{ display:grid; grid-template-columns: repeat(2,1fr); gap:1px; background: var(--navy-line); border:1px solid var(--navy-line); margin-bottom:24px; }
.study-stat{ background: var(--navy-2); padding:14px 16px; }
.study-stat .sn{ display:block; font-family:var(--font-head); font-size:22px; font-weight:650; color:#fff; letter-spacing:-.01em; }
.study-stat .sl{ font-size:12px; color: var(--ink-mute); margin-top:2px; }
.study-cta{ width:100%; justify-content:center; }
@media (max-width: 760px){
  .study-media img{ max-height:200px; }
}

/* "Következő referencia" CTA card — always last, dark blueprint look */
.ref-next{ display:block; background: var(--navy-1); box-shadow: 0 0 0 1px var(--navy-line); }
.ref-next img{ filter: saturate(1.05); }
.ref-next .meta{ background: linear-gradient(180deg, rgba(6,13,22,.1) 0%, rgba(6,13,22,.45) 50%, rgba(6,13,22,.94) 100%); }
.ref-next .cat{ color: var(--accent-bright); }
.ref-next .name{ color:#fff; }
.ref-next .sub{ color: rgba(255,255,255,.8); }
.ref-next-cta{ position:absolute; top:16px; right:16px; z-index:3; display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color: var(--navy-0);
  padding:8px 13px; background: var(--accent); border-radius:100px; font-weight:600;
  transition: gap .25s var(--ease), background .25s var(--ease); }
.ref-next:hover .ref-next-cta{ gap:12px; background: var(--accent-bright); }
.ref-next:hover{ box-shadow: 0 0 0 1px var(--accent), 0 18px 46px -20px var(--accent-glow); }

.spec-row{ display:flex; flex-wrap:wrap; gap: 18px 12px; margin-top: 44px; padding-top: 34px; border-top:1px solid var(--paper-line); }
.spec{ flex:1 1 200px; }
.spec .n{ font-family: var(--font-head); font-size: clamp(30px,3.4vw,42px); font-weight:650; color: var(--ink-dark); letter-spacing:-.02em; }
.spec .n .u{ color: var(--accent-deep); }
.spec .l{ font-size:13.5px; color: var(--ink-dark-soft); margin-top:4px; line-height:1.4; }

/* ====================== STATS / quals band ====================== */
.quals{ background: var(--navy-0); padding: clamp(56px,7vw,92px) 0; border-top:1px solid var(--navy-line); }
.quals-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,6vw,80px); align-items:start; }
.qcol h3{ font-size: 24px; font-weight:600; margin-bottom: 22px; }
.qlist{ display:grid; gap:0; }
.qrow{ display:flex; gap:14px; padding: 13px 0; border-bottom:1px solid var(--navy-line); font-size:14.5px; color: var(--ink-soft); align-items:baseline; }
.cert-row .qlist .qrow{ padding:8px 0; border-bottom:none; }
.cert-row .qlist .qrow:first-child{ padding-top:2px; }
.qrow .mk{ color: var(--accent); font-family:var(--font-mono); font-size:12px; flex:none; }
.badges{ display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.badge{ font-family:var(--font-mono); font-size:11.5px; letter-spacing:.06em; padding:7px 12px; border:1px solid var(--navy-line); border-radius:3px; color: var(--ink-soft); transition: border-color .25s var(--ease), color .25s var(--ease); }
.badge:hover{ border-color: rgba(44,184,219,.55); color: var(--ink); }
.badge b{ color: var(--accent); }
/* certifications — 3 labelled rows */
.cert-row{ padding: 16px 0; border-bottom:1px solid var(--navy-line); }
.cert-row:first-of-type{ border-top:1px solid var(--navy-line); margin-top:22px; }
.cert-h{ font-family: var(--font-head); font-size:15.5px; font-weight:550; color: var(--ink); margin-bottom:12px; }
.cert-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.cert-flags{ display:flex; flex-wrap:wrap; gap:10px; }
.cert-plate{ font-family:var(--font-mono); font-size:14px; font-weight:600; letter-spacing:.08em;
  color: var(--ink); padding:7px 14px; border:1px solid var(--navy-line); border-radius:4px;
  background: var(--navy-1); min-width:42px; text-align:center; transition: border-color .25s var(--ease); }
.cert-plate:hover{ border-color: rgba(44,184,219,.55); }

/* ====================== CTA ====================== */
.cta{ position:relative; padding: clamp(80px,11vw,150px) 0; overflow:hidden; text-align:center; }
.cta-bg{ position:absolute; inset:0; z-index:0; }
.cta-bg img{ width:100%; height:100%; object-fit:cover; object-position: 50% 42%; }
.cta-bg::after{ content:""; position:absolute; inset:0; background:
  linear-gradient(180deg, rgba(7,15,25,.3) 0%, rgba(7,15,25,.42) 52%, rgba(7,15,25,.64) 100%),
  radial-gradient(105% 80% at 50% 46%, rgba(7,15,25,.16), rgba(7,15,25,.46)); }
.cta-inner{ position:relative; z-index:2; }
.cta .eyebrow{ color: var(--accent-bright); }
.cta .eyebrow::before{ background: var(--accent-bright); }
.cta h2{ font-size: clamp(34px,5.4vw,68px); font-weight:650; line-height:1.0; letter-spacing:-.02em; max-width: 18ch; margin: 18px auto 0; text-wrap:balance; color:#fff; text-shadow: 0 2px 22px rgba(4,10,18,.6), 0 1px 3px rgba(4,10,18,.5); }
.cta p{ max-width: 46ch; margin: 22px auto 0; color: rgba(234,242,248,.92); font-size:17px; text-shadow: 0 1px 14px rgba(4,10,18,.6); }
.cta .btn-ghost{ border-color: rgba(220,235,245,.4); color:#fff; }
.cta .btn-ghost:hover{ border-color: var(--accent-bright); color: var(--accent-bright); }
.cta-actions{ display:flex; gap:14px; justify-content:center; margin-top:36px; flex-wrap:wrap; }

/* ====================== CONTACT ====================== */
.contact{ background: var(--navy-2); padding: clamp(56px,6.5vw,96px) 0; }
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,80px); align-items:start; }
.contact-info .person{ margin-top: 30px; padding: 26px; border:1px solid var(--navy-line); background: var(--navy-1); }
.contact-info .person .nm{ font-family:var(--font-head); font-size:24px; font-weight:600; }
.contact-info .person .role{ font-family:var(--font-mono); font-size:12.5px; color: var(--accent); letter-spacing:.04em; margin:0; }
.contact-line{ display:flex; align-items:center; gap:14px; padding:14px 0; border-bottom:1px solid var(--navy-line); font-size:15.5px; }
.contact-line:last-child{ border-bottom:none; }
.contact-line .ic{ width:18px; height:18px; color: var(--accent); flex:none; }
.contact-line a:hover{ color: var(--accent-bright); }
.cl-sub{ color: var(--ink-mute); font-style:normal; font-size:13.5px; }
.cl-link{ text-decoration:none; transition: color .2s; }
.cl-link:hover{ color: var(--accent-bright); }
.cl-link .cl-ext{ margin-left:auto; color: var(--ink-mute); display:flex; }
.cl-link:hover .cl-ext{ color: var(--accent-bright); }
.langs{ display:flex; gap:8px; margin-top:24px; }
.lang{ font-family:var(--font-mono); font-size:12px; padding:6px 12px; border:1px solid var(--navy-line); border-radius:3px; color: var(--ink-soft); }

/* legal / bank card */
.legal-card{ margin-top: 22px; border:1px solid var(--navy-line); background: var(--navy-1); padding: 24px 26px; display:grid; gap: 22px; }
.legal-block{ display:grid; gap:2px; }
.lc-head{ font-family:var(--font-mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase; color: var(--accent); margin-bottom:10px; }
.lc-row{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; padding:9px 0; border-bottom:1px solid var(--navy-line); }
.lc-row:last-child{ border-bottom:none; }
.lc-row .lk{ font-size:13px; color: var(--ink-mute); flex:none; }
.lc-row .lk em{ font-style:normal; color: var(--ink-mute); opacity:.7; }
.lc-row .lv{ font-size:14.5px; color: var(--ink); text-align:right; }
.lc-row .lv.mono{ font-family:var(--font-mono); letter-spacing:.01em; }
.lc-row.bank{ align-items:center; }
.bank-meta{ display:grid; gap:3px; min-width:0; }
.bank-meta .lk{ font-family:var(--font-mono); font-size:11px; letter-spacing:.04em; text-transform:uppercase; }
.bank-meta .lv{ font-family:var(--font-mono); font-size:13.5px; color: var(--ink); text-align:left; word-break:break-all; }
.copy-btn{ display:inline-flex; align-items:center; gap:7px; flex:none; background: var(--navy-3); border:1px solid var(--navy-line); color: var(--ink-soft);
  font-family:var(--font-mono); font-size:11.5px; letter-spacing:.04em; padding:8px 12px; border-radius:3px; transition: all .2s var(--ease); }
.copy-btn:hover{ border-color: var(--accent); color: var(--accent-bright); }
.copy-btn svg{ width:15px; height:15px; }
.legal-qr{ display:flex; align-items:center; gap:16px; padding-top:20px; border-top:1px solid var(--navy-line); }
.legal-qr img{ width:72px; height:72px; background:#fff; padding:6px; border-radius:6px; flex:none; }
.legal-qr .qt{ font-size:13px; color: var(--ink-soft); line-height:1.5; }

/* form */
.form{ background: var(--navy-1); border:1px solid var(--navy-line); padding: clamp(26px,3vw,40px); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field{ margin-bottom:18px; }
.field label{ font-family:var(--font-mono); font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color: var(--ink-mute); display:block; margin-bottom:8px; }
.field input, .field textarea, .field select{
  width:100%; background: var(--navy-2); border:1px solid var(--navy-line); color: var(--ink);
  font-family: var(--font-body); font-size:15px; padding: 13px 15px; border-radius:3px;
  transition: border-color .2s; outline:none;
}
.field input:focus, .field textarea:focus, .field select:focus{ border-color: var(--accent); }
.field textarea{ resize:vertical; min-height: 120px; }
.field.err input, .field.err textarea{ border-color: #e0604d; }
.field .msg{ color:#e98575; font-size:12px; margin-top:6px; font-family:var(--font-mono); }
.form-foot{ display:flex; flex-direction:column; align-items:flex-start; gap:14px; margin-top:6px; }
.form-note{ font-size:11px; color: var(--ink-mute); max-width: none; line-height:1.55; }
.form-note-strong{ display:inline-block; margin-top:3px; color: var(--ink-soft); font-weight:600; }
.form-success{ text-align:center; padding: 40px 20px; }
.form-success .ok{ width:64px; height:64px; margin:0 auto 20px; border-radius:50%; border:2px solid var(--accent); display:flex; align-items:center; justify-content:center; color: var(--accent); }
.form-success h3{ font-size:26px; font-weight:600; }
.form-success p{ color: var(--ink-soft); margin-top:10px; }

/* ====================== FOOTER ====================== */
.footer{ background: var(--navy-0); padding: clamp(56px,7vw,84px) 0 34px; border-top:1px solid var(--navy-line); }
.footer-top{ display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom:1px solid var(--navy-line); }
.footer img.logo{ height:78px; width:auto; }
.footer .blurb{ color: var(--ink-mute); font-size:14px; line-height:1.6; max-width: 36ch; margin-top:18px; }
.footer h4{ font-family:var(--font-mono); font-size:12px; letter-spacing:.14em; text-transform:uppercase; color: var(--ink-mute); margin-bottom:16px; font-weight:500; }
.footer ul{ list-style:none; display:grid; gap:11px; }
.footer ul a{ color: var(--ink-soft); font-size:14.5px; }
.footer ul a:hover{ color: var(--accent-bright); }
.footer-bot{ display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; padding-top:26px; }
.footer-bot p{ font-family:var(--font-mono); font-size:12px; color: var(--ink-mute); letter-spacing:.02em; }

/* ====================== reveal animation ====================== */
.reveal{ opacity:0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform: none; }
/* safety: once JS marks reveal as done, force static visibility (no transition) so
   content can never stay hidden if IntersectionObserver/transitions don't run */
.reveal-static .reveal{ opacity:1 !important; transform:none !important; transition:none !important; animation:none !important; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1 !important; transform:none !important; } html{scroll-behavior:auto;} }

/* ====================== responsive ====================== */
@media (max-width: 1080px){
  .svc-grid{ grid-template-columns: repeat(2,1fr); }
  .steps{ grid-template-columns: repeat(2,1fr); }
  .approach-grid{ grid-template-columns: 1fr; }
  .intro-grid{ grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 980px){
  .nav, .hdr-cta .btn{ display:none; }
  .hamburger{ display:inline-flex; }
  .contact-grid{ grid-template-columns: 1fr; }
  .quals-grid{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .ref-grid{ grid-template-columns: repeat(2,1fr); }
  .mr-grid{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px){
  .svc-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .ref-grid{ grid-template-columns: 1fr; }
  .mr-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr; }
  .trust-inner{ gap: 12px 24px; }
  .hero h1{ font-size: clamp(36px,11vw,56px); }
  /* compact header on phones */
  .hdr-inner{ height: 72px; }
  .hdr-logo img{ height: 44px; }
  .langsw{ gap: 4px; }
  .flagbtn svg{ width: 22px; height: 14px; }
  .langsw-div{ display:none; }
  .hdr-cta{ gap: 10px; }
  .hamburger{ padding: 6px; }
  /* contact card: stack logo + QR, keep QR scannable */
  .person-head{ flex-direction: column; align-items: flex-start; gap: 18px; }
  .person-qr{ align-self: flex-start; height: 120px; }
  .lc-row{ flex-wrap: wrap; gap: 4px 12px; }
  .lc-row .lv{ text-align: left; }
  .lc-row.bank{ flex-wrap: nowrap; }
}

/* Történetünk photo → stacked banner + text below (phones only) */
@media (max-width: 720px){
  .intro-photo{ aspect-ratio:auto; min-height:0; display:flex; flex-direction:column; }
  .intro-photo-bg{ position:relative; width:100%; height: 62vw; max-height:360px; object-position: 74% center; }
  .intro-photo::before{ display:none; }
  .intro-photo-text{ position:static; width:auto; max-width:none; padding: clamp(22px,6vw,30px); background: var(--navy-2); }
  .intro-photo-text .story p{ font-size: 14.5px; }
  .intro-photo-logo{ top: 12px; right: 12px; width: 140px; }
}

/* hero: két kép lágy váltakozása */
.hero-bg img{ position:absolute; inset:0; }
.hero-bg img.hero-alt{ opacity:0; animation: heroFade 16s ease-in-out infinite; }
@keyframes heroFade{ 0%,40%{opacity:0} 50%,90%{opacity:1} 100%{opacity:0} }
@media (prefers-reduced-motion: reduce){ .hero-bg img.hero-alt{ animation:none; opacity:0; } }
