/* =========================================================
   Flex-Automatika Kft. – közös stíluslap
   ========================================================= */

:root {
  --ink: #0b1724;
  --navy: #0f2335;
  --navy-2: #14304a;
  --steel: #546677;
  --muted: #7b8b9a;
  --line: #dde3e8;
  --bg: #ffffff;
  --bg-alt: #f3f5f7;
  --accent: #f2a900;
  --accent-hover: #ffbb22;
  --accent-ink: #1b1400;
  --on-dark: #b7c5d2;
  --on-dark-line: rgba(255, 255, 255, 0.1);

  --radius: 3px;
  --maxw: 1200px;

  --f-sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

/* ---------- Alapok ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-cond);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.005em;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Gombok, címkék ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px;
  font-family: var(--f-sans); font-size: 14.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.32); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--sm { padding: 11px 18px; font-size: 13px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel);
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--accent); }
.on-dark .eyebrow { color: var(--on-dark); }

/* ---------- Felső sáv ---------- */

.topbar {
  background: var(--ink); color: #8fa1b2;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.03em;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 38px; }
.topbar__contacts { display: flex; gap: 28px; }
.topbar a { color: #d3dce4; text-decoration: none; transition: color .2s; }
.topbar a:hover { color: var(--accent); }

/* ---------- Fejléc, navigáció ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 78px; }

.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; text-decoration: none; color: var(--ink); }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--f-cond); font-size: 24px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.brand__tag { margin-top: 3px; font-size: 12.5px; letter-spacing: 0.03em; color: var(--steel); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 10px 14px;
  font-size: 16px; font-weight: 500; text-decoration: none; color: var(--ink);
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 18px; }

/* Nyelvváltó */
.lang {
  display: flex; align-items: center; gap: 2px; flex: none; padding: 3px;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.lang__btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 9px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--steel); text-decoration: none; border-radius: 2px;
  transition: background-color .2s, color .2s;
}
.lang__btn svg {
  width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(11, 23, 36, 0.14);
  filter: grayscale(0.7); opacity: 0.7; transition: filter .2s, opacity .2s;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn:hover svg, .lang__btn.is-active svg { filter: none; opacity: 1; }
.lang__btn.is-active { background: var(--bg-alt); color: var(--ink); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Mérnöki rácsos háttér ---------- */

.grid-bg { position: relative; isolation: isolate; overflow: hidden; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 35%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 70% 35%, #000 0%, transparent 72%);
}
.grid-bg::after {
  content: ""; position: absolute; z-index: -1;
  width: 1000px; height: 1000px; right: -340px; top: -480px;
  background: radial-gradient(circle, rgba(52, 126, 196, 0.32), transparent 62%);
}

/* ---------- Hero (főoldal) ---------- */

.hero { background: var(--navy); color: #fff; }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
  padding-top: 104px; padding-bottom: 96px;
}
.hero h1 { margin: 24px 0 26px; font-size: clamp(44px, 5.4vw, 72px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { max-width: 33em; font-size: 19px; color: var(--on-dark); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }

.hero__strip { border-top: 1px solid var(--on-dark-line); }
.hero__strip-inner { display: flex; align-items: center; gap: 40px; min-height: 76px; padding-top: 16px; padding-bottom: 16px; }
.hero__strip-label { flex: none; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.hero__strip ul { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 0; padding: 0; list-style: none; }
.hero__strip li {
  padding: 0 28px; border-left: 1px solid var(--on-dark-line);
  font-family: var(--f-cond); font-size: 21px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: #e3e9ef;
}

/* PLC-panel illusztráció */
.panel {
  background: rgba(8, 20, 32, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #7f94a8;
}
.panel__head, .panel__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 18px; }
.panel__head { border-bottom: 1px solid var(--on-dark-line); }
.panel__foot { border-top: 1px solid var(--on-dark-line); justify-content: flex-start; gap: 26px; }
.panel__title { display: flex; align-items: center; gap: 12px; }
.panel__dots { display: flex; gap: 5px; }
.panel__dots i { width: 7px; height: 7px; border-radius: 50%; background: #2c4358; }
.status { display: inline-flex; align-items: center; gap: 8px; color: #bfe6cd; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #39c97a; box-shadow: 0 0 0 3px rgba(57, 201, 122, 0.18); }
.panel__body { padding: 22px 18px 14px; }

.ladder { width: 100%; height: auto; }
.ladder .rail { stroke: #3a5670; stroke-width: 2.5; }
.ladder .w { fill: none; stroke: #4a667f; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ladder .on { stroke: var(--accent); }
.ladder .box { fill: rgba(255, 255, 255, 0.02); }
.ladder .coil-fill { fill: rgba(242, 169, 0, 0.16); }
.ladder .dot { fill: #4a667f; }
.ladder .dot.on { fill: var(--accent); }
.ladder text { font-family: var(--f-mono); font-size: 11px; fill: #7f94a8; letter-spacing: 0.04em; }
.ladder text.on { fill: var(--accent); }
.ladder text.blk { font-size: 13px; fill: #c9d6e2; font-weight: 500; }
.ladder .flow {
  fill: none; stroke: #ffd36b; stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 3 13; animation: flow 1.1s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -16; } }

/* ---------- Szekciók ---------- */

.section { padding: 112px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #fff; }

.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 60px; }
.section-head h2 { margin-top: 20px; font-size: clamp(34px, 4vw, 52px); }
.section-head p { max-width: 32em; font-size: 18px; color: var(--steel); }
.section--dark .section-head p { color: var(--on-dark); }

/* Szolgáltatások */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.service {
  position: relative; padding: 42px 36px 46px;
  background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.service::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.service:hover::before { transform: scaleX(1); }
.service__num { position: absolute; top: 26px; right: 28px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--muted); }
.service__icon {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 30px;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--navy);
  transition: background-color .25s, color .25s, border-color .25s;
}
.service:hover .service__icon { background: var(--navy); border-color: var(--navy); color: var(--accent); }
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin-bottom: 12px; font-size: 28px; }
.service p { font-size: 16.5px; color: var(--steel); }

.service--cta { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; background: var(--navy); color: #fff; text-decoration: none; }
.service--cta p { color: var(--on-dark); }
.service--cta .service__icon { border-color: rgba(255, 255, 255, 0.18); color: var(--accent); }
.service--cta:hover .service__icon { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.link-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.service--cta:hover .link-arrow svg { transform: translateX(4px); }

/* Folyamat */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.step__marker { display: flex; align-items: center; margin-bottom: 30px; }
.step__marker::after {
  content: ""; flex: 1; height: 1px;
  background: repeating-linear-gradient(90deg, #9aa8b5 0 6px, transparent 6px 12px);
}
.step:last-child .step__marker::after { display: none; }
.step__num {
  display: grid; place-items: center; flex: none; width: 50px; height: 50px;
  border: 1px solid var(--navy); background: var(--bg-alt);
  font-family: var(--f-mono); font-size: 14px; font-weight: 500; color: var(--navy);
}
.step:first-child .step__num { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.step h3 { margin-bottom: 10px; padding-right: 32px; font-size: 25px; }
.step p { padding-right: 32px; font-size: 16px; color: var(--steel); }

/* Iparágak */
.industries {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--on-dark-line); border: 1px solid var(--on-dark-line);
}
.industry { display: flex; flex-direction: column; min-height: 290px; padding: 34px 30px 40px; background: var(--navy); transition: background-color .25s; }
.industry:hover { background: var(--navy-2); }
.industry__top { display: flex; align-items: center; justify-content: space-between; }
.industry__num { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
.industry__icon { width: 30px; height: 30px; fill: none; stroke: #6d859b; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.industry:hover .industry__icon { stroke: var(--accent); }
.industry h3 { margin: auto 0 12px; padding-top: 56px; font-size: 31px; }
.industry p { font-size: 16px; color: var(--on-dark); }

/* Kapcsolat sáv */
.cta { padding: 112px 0; border-top: 1px solid var(--line); }
.cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.cta h2 { margin: 20px 0 22px; font-size: clamp(36px, 4.2vw, 56px); }
.cta__inner > div > p { max-width: 30em; font-size: 18px; color: var(--steel); }
.contact-lines { border-top: 1px solid var(--line); }
.contact-line {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px;
  padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none;
}
.contact-line__label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
.contact-line__value { grid-column: 1; font-family: var(--f-cond); font-size: 30px; font-weight: 600; color: var(--navy); transition: color .2s; }
.contact-line svg {
  grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px;
  fill: none; stroke: var(--steel); stroke-width: 1.8; transition: transform .2s, stroke .2s;
}
.contact-line:hover svg { transform: translate(3px, -3px); stroke: var(--accent); }

/* ---------- Aloldali fejléc ---------- */

.page-hero { background: var(--navy); color: #fff; }
.page-hero__inner { padding-top: 92px; padding-bottom: 84px; }
.page-hero h1 { margin-top: 22px; font-size: clamp(46px, 6vw, 78px); }
.page-hero p { max-width: 36em; margin-top: 22px; font-size: 19px; color: var(--on-dark); }

.empty { padding: 96px 0 140px; }
.empty__note {
  display: flex; align-items: center; gap: 14px;
  padding: 30px 32px; border: 1px dashed #c9d2da; border-radius: var(--radius);
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.empty__note::before { content: ""; width: 8px; height: 8px; background: var(--accent); }

/* ---------- Kapcsolat oldal ---------- */

.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.people { border-top: 1px solid var(--line); }
.person { display: grid; grid-template-columns: 68px 1fr; gap: 26px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.person__avatar {
  position: relative; display: grid; place-items: center; width: 68px; height: 68px;
  background: var(--navy); color: #fff; border-radius: var(--radius);
  font-family: var(--f-cond); font-size: 23px; font-weight: 600; letter-spacing: 0.04em;
}
.person__avatar::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 12px; height: 12px; background: var(--accent); }
.person__name { font-size: 31px; }
.person__role { margin-top: 6px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.person__area { margin-top: 12px; }
.person__phone {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding-bottom: 3px;
  border-bottom: 2px solid var(--accent);
  font-family: var(--f-cond); font-size: 25px; font-weight: 600; color: var(--navy); text-decoration: none;
}
.person__phone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.person__phone:hover { color: var(--ink); border-color: var(--ink); }

.contact__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 34px; }
.meta-item__label { display: block; margin-bottom: 6px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.meta-item a, .meta-item span:not(.meta-item__label) { font-size: 18px; font-weight: 600; color: var(--navy); }
.meta-item a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.meta-item a:hover { border-color: var(--accent); }

.map { position: sticky; top: 104px; overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); }
.map__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px;
  background: #fff; border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel);
}
.map__head a { color: var(--navy); font-weight: 500; text-decoration: none; }
.map__head a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.map iframe { display: block; width: 100%; height: 540px; border: 0; filter: grayscale(1) contrast(1.05); transition: filter .4s; }
.map:hover iframe { filter: none; }

/* ---------- Lábléc ---------- */

.site-footer { background: var(--ink); color: #91a3b4; font-size: 15.5px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr; gap: 48px; padding-top: 76px; padding-bottom: 60px; }
.site-footer .brand { color: #fff; }
.site-footer .brand__tag { color: #8195a8; }
.footer__about { max-width: 26em; margin-top: 22px; }
.site-footer h4 { margin-bottom: 20px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; }
.site-footer ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #cfd9e2; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer__bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 22px; font-size: 13.5px; color: #6f8396; }

/* ---------- Rólunk, számok, szöveg ---------- */

.link-arrow--dark { color: var(--navy); }
.link-arrow--dark:hover { color: var(--ink); }
.link-arrow--dark:hover svg { transform: translateX(4px); }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.about__badge {
  position: absolute; left: 0; bottom: 0; padding: 14px 20px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.about h2 { margin: 20px 0 22px; font-size: clamp(34px, 4vw, 52px); }
.about .link-arrow { margin-top: 36px; }

.prose p { font-size: 17.5px; color: #3a4d60; }
.prose p + p { margin-top: 18px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; border-top: 1px solid var(--line); }
.stat { padding: 26px 20px 0 0; }
.stat__num { display: block; font-family: var(--f-cond); font-size: 50px; font-weight: 600; line-height: 1; color: var(--navy); }
.stat__label { display: block; margin-top: 10px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }

.split { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 72px; align-items: start; }
.split h2 { margin: 20px 0 26px; font-size: clamp(34px, 4vw, 50px); }
.split__media img { width: 100%; height: auto; border-radius: var(--radius); }

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; margin: 26px 0 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 14px 0 0 24px; border-top: 1px solid var(--line); font-weight: 500; line-height: 1.45; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 21px; width: 9px; height: 9px; background: var(--accent); }
.sub-title { margin-top: 44px; font-size: 26px; }

/* Rendszerismeret */
.brands { border-bottom: 1px solid var(--on-dark-line); }
.brands__row { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center; padding: 28px 0; border-top: 1px solid var(--on-dark-line); }
.brands__cat { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark); }
.brands__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.brands__list li {
  padding: 8px 18px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 2px;
  font-family: var(--f-cond); font-size: 23px; font-weight: 500; letter-spacing: 0.03em; color: #fff;
}
.brands__list li.more { border-style: dashed; color: var(--on-dark); }

/* ---------- Referenciák ---------- */

.refs { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ref {
  position: relative; display: flex; flex-direction: column; padding: 34px 34px 40px;
  background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ref::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.ref:hover::before { transform: scaleX(1); }
.ref__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ref__num { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--muted); }
.ref__meta { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); text-align: right; }
.ref__name { margin: 64px 0 28px; font-size: 36px; }
.ref__work { padding-top: 20px; border-top: 1px solid var(--line); }
.ref__label { display: block; margin-bottom: 12px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ref__work ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ref__work li { position: relative; padding-left: 20px; font-weight: 500; line-height: 1.45; }
.ref__work li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; background: var(--accent); }

.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.partner {
  display: flex; align-items: center; min-height: 112px; padding: 24px 30px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--f-cond); font-size: 28px; font-weight: 600; letter-spacing: 0.01em; color: var(--navy);
}

/* ---------- Galéria ---------- */

.gallery { display: grid; gap: 14px; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery--4 { grid-template-columns: repeat(4, 1fr); }
.shot { position: relative; margin: 0; overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg-alt); border-radius: var(--radius); }
.shot--tall { grid-row: span 2; aspect-ratio: auto; }
.shot--wide { grid-column: span 2; aspect-ratio: 3 / 1; }
.shot--big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.shot--plain { aspect-ratio: auto; }
/* a több sort/oszlopot átfogó képek ne befolyásolják a sormagasságot */
.shot--tall img, .shot--big img { position: absolute; inset: 0; }
.section-head--goal { margin-bottom: 0; }
.shot a { display: block; height: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.shot:hover img { transform: scale(1.035); }
.shot a::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 2px;
  background: rgba(8, 20, 32, 0.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 17px no-repeat;
  opacity: 0; transition: opacity .25s;
}
.shot:hover a::after, .shot a:focus-visible::after { opacity: 1; }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px;
  background: linear-gradient(transparent, rgba(8, 20, 32, 0.86));
  color: #fff; font-size: 15px; font-weight: 500; line-height: 1.35; pointer-events: none;
}
.shot__tag { display: block; margin-bottom: 4px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.gallery-foot { display: flex; justify-content: flex-end; margin-top: 32px; }

/* Nagyító (lightbox) */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(6, 14, 22, 0.95); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(6, 14, 22, 0.6); }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: calc(100vw - 180px); margin: 0; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 2px; }
.lightbox__figure figcaption { text-align: center; font-size: 16px; color: #dfe6ed; }
.lightbox__count { position: absolute; top: 26px; left: 28px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--on-dark); }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 50px; height: 50px; padding: 0;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius);
  color: #fff; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.lightbox__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

/* ---------- Reszponzív ---------- */

@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; padding-top: 80px; padding-bottom: 72px; }
  .panel { max-width: 640px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .industry { min-height: 240px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 52px; }
  .step:nth-child(2) .step__marker::after { display: none; }
}

@media (max-width: 1180px) {
  .header__inner { gap: 10px; }
  .nav-toggle { display: inline-flex; order: 3; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 24px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(11, 23, 36, 0.25);
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 15px 2px; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { padding-left: 14px; box-shadow: inset 3px 0 0 var(--accent); }
  .nav .btn { justify-content: center; margin: 20px 0 0; }
}

@media (max-width: 1020px) {
  .about, .split { grid-template-columns: 1fr; gap: 48px; }
  .split__media { max-width: 520px; }
}

@media (max-width: 900px) {
  .section, .cta { padding: 84px 0; }
  .gallery--3, .gallery--4 { grid-template-columns: repeat(2, 1fr); }
  .shot--tall, .shot--wide, .shot--big { grid-row: auto; grid-column: auto; aspect-ratio: 3 / 2; }
  .brands__row { grid-template-columns: 1fr; gap: 14px; }
  .refs { grid-template-columns: 1fr; }
  .ref__name { margin-top: 36px; }
  .partners { grid-template-columns: 1fr; }
  .partner { min-height: 0; }
  .checklist { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 44px; }
  .cta__inner { grid-template-columns: 1fr; gap: 44px; }
  .contact { grid-template-columns: 1fr; gap: 48px; }
  .map { position: static; }
  .map iframe { height: 400px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .topbar { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { padding: 8px 16px 24px; }
  .header__inner { height: 68px; }
  .brand { gap: 10px; }
  .brand__mark { width: 34px; height: 34px; }
  .lang { padding: 2px; }
  .lang__btn { padding: 7px; }
  .lang__btn span, .lang__btn.is-active { display: none; }
  .nav-toggle { width: 42px; height: 42px; }
  .brand__name { font-size: 21px; }
  .brand__tag { font-size: 11.5px; }
  .hero__inner { padding-top: 60px; padding-bottom: 56px; }
  .hero__lead { font-size: 17.5px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero__strip-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 22px; padding-bottom: 22px; }
  .hero__strip li { padding: 0 16px; font-size: 18px; }
  .hero__strip li:first-child { padding-left: 0; border-left: 0; }
  .panel__foot span:nth-child(3) { display: none; }
  .services, .industries, .steps { grid-template-columns: 1fr; }
  .service { padding: 34px 24px 38px; }
  .step .step__marker::after { display: none; }
  .industry { min-height: 0; }
  .industry h3 { padding-top: 40px; }
  .contact-line__value { font-size: 26px; }
  .page-hero__inner { padding-top: 64px; padding-bottom: 60px; }
  .person { grid-template-columns: 1fr; gap: 20px; }
  .contact__meta { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery--3, .gallery--4 { grid-template-columns: 1fr; }
  .lightbox__figure { max-width: calc(100vw - 32px); }
  .lightbox__figure img { max-height: calc(100vh - 200px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
