/* SVG-Hungary – dark industrial (direction B). Colours come from the logo.
   The page is a sequence of full-screen scenes (.jelenet). On desktop the browser snaps to the start of a scene
   (scroll-snap, no script) and the scene texts fly through with the scroll (scroll-driven animation).
   Every scene fits the screen from 961 × 640 px up: scripts/jelenet-meres.mjs checks this. */
/* BETUK-START */
/* Self-hosted fonts (scripts/betuk/helyi.py writes this block): Archivo (SIL OFL 1.1) and the Phosphor icons used on
   the pages (MIT). Nothing is loaded from Google Fonts or a CDN. */
@font-face { font-family: 'Archivo'; src: url('../fonts/archivo.woff2') format('woff2'); font-weight: 400 800; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: 'Phosphor'; src: url('../fonts/phosphor.woff2') format('woff2'); font-weight: normal; font-style: normal; font-display: block; }
.ph { font-family: 'Phosphor' !important; speak: never; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; letter-spacing: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.ph-arrow-left::before { content: "\e058"; }
.ph-arrow-right::before { content: "\e06c"; }
.ph-arrow-up-right::before { content: "\e092"; }
.ph-arrows-horizontal::before { content: "\eb06"; }
.ph-chat-circle-dots::before { content: "\e16c"; }
.ph-check-circle::before { content: "\e184"; }
.ph-download-simple::before { content: "\e20c"; }
.ph-paper-plane-tilt::before { content: "\e398"; }
.ph-ruler::before { content: "\e6b8"; }
.ph-x::before { content: "\e4f6"; }
/* BETUK-VEGE */

:root {
    --bg: #0A0E13;
    --bg-alt: #0F141B;
    --surface: #151C25;
    --surface-2: #1B2430;
    --line: rgba(255, 255, 255, 0.09);
    --line-2: rgba(255, 255, 255, 0.18);
    --text: #E8ECF1;
    --mute: #A3ACB8;
    --dim: #7F8995;
    --white: #FFFFFF;
    --blue: #006CF9;          /* logo blue: buttons */
    --blue-hover: #1F80FF;
    --blue-text: #5DA4FF;     /* links and accents on dark */
    --navy: #04274D;          /* logo navy */
    --navy-2: #013871;        /* logo: the navy part of the mark (measured from the logo) */
    --steel: #6D7076;         /* logo grey: the grey part of the mark and the G (measured from the logo) */
    --ok: #3DD68C;
    --err: #FF6B5E;
    --radius: 4px;
    --wrap: 1280px;
    --gutter: 32px;
    --hd-h: 84px;             /* header at the top of the page */
    --eu-h: 0px;              /* funding strip above the header; 116px on the opening page until the first touch */
    --hd-s: 68px;            /* header once scrolled (every scene start) */
    --sec-pad: 120px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* overflow-x: the fly-through enlarges the scene that has just left (up to 2.1×); without the clip the page could be dragged sideways */
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font); font-stretch: 100%; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--white); font-weight: 700; line-height: 1.05; letter-spacing: -0.005em; }
h1, h2 { font-stretch: 75%; text-transform: uppercase; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
/* Grid and flex children may shrink below their longest unbreakable line (file names, e-mail addresses) */
.quote > *, .grid2 > *, .feature > *, .about > *, .team > *, .faq > *, .ba > *, .fld { min-width: 0; }
.kicker { display: inline-block; margin-bottom: 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-text); }

/* Scroll snapping: the start of every scene catches. Mandatory on desktop where every scene fits the screen,
   gentle (proximity) elsewhere, none with reduced motion. Inside a taller block (the quote form) the browser scrolls freely. */
@media (prefers-reduced-motion: no-preference) {
    /* only the scene page snaps; on a document sub-page the footer would otherwise pull the page to the bottom */
    html:has(.jelenet) { scroll-snap-type: y proximity; }
    @media (min-width: 961px) and (min-height: 640px) { html:has(.jelenet) { scroll-snap-type: y mandatory; } }
    .jelenet, .quote-blk { scroll-snap-align: start; }
    html:has(.jelenet) .ft { scroll-snap-align: end; }
}
/* focus and anchor jumps never hide an element under the fixed header; scenes start at the very top */
:is(a, button, input, textarea, select, summary, [tabindex], [id]) { scroll-margin-top: calc(var(--hd-s) + 16px); }
.jelenet, .quote-blk { scroll-margin-top: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--radius); font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn i { font-size: 18px; transition: transform .25s var(--ease); }
.btn:hover i.ph-arrow-right { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-line { background: transparent; color: var(--white); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--white); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
/* Magnetic buttons (js/magnes.js): the content sits in an inner box that takes over the button's own layout,
   so it can drift towards the cursor and cancel the button's scale. Where the content is placed against the
   button's edges (card texts, burger lines), the inner box covers the whole button. */
[data-mag-inner] { display: inherit; flex-direction: inherit; flex-wrap: inherit; align-items: inherit; justify-content: inherit; justify-items: inherit; gap: inherit; flex: 1; align-self: stretch; width: 100%; min-width: 0; }
.card > [data-mag-inner], .hd-burger > [data-mag-inner] { position: absolute; inset: 0; }

/* Header */
/* Funding strip (Széchenyi Terv Plusz) above the header of the opening page: visible on load without scrolling,
   folds up at the first touch, click, key press or scroll (main.js sets .eu-off). Without the script it is not shown. */
.eu-sav { display: none; }
/* shown only where the standalone translate property exists: without it the scene could not be pushed down and the header would cover its text */
@supports (translate: 0 0) { .js .eu .eu-sav { position: fixed; inset: 0 0 auto 0; z-index: 51; display: flex; align-items: center; height: 116px; background: #fff; transition: transform .5s var(--ease); } }
.eu-sav .wrap { width: 100%; }
.eu-sav a { display: block; width: fit-content; margin-inline: auto; }
.eu-sav img { width: 334px; height: 100px; }
@supports (translate: 0 0) { .js .eu:not(.eu-off) { --eu-h: 116px; } }
.js .eu.eu-off .eu-sav { transform: translateY(-100%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; }   /* hidden only once it has folded; visible at once when it comes back */
/* the strip pushes the opening scene down without changing the page geometry (the scene keeps its height and its
   snap position); when it folds, the scene slides back. The scene's last 116px are below the fold until then. */
.eu .hero-in { transition: top .5s var(--ease); }
.js .eu:not(.eu-off) .hero-in { top: var(--eu-h); }   /* the text moves, not the scene (a moved scene would move its snap position too); top and not translate: iOS Safari at times left the translated hero unpainted until the first touch */

.hd { position: fixed; inset: 0 0 auto 0; top: var(--eu-h); z-index: 50; height: var(--hd-h); transition: height .3s var(--ease), top .5s var(--ease), background-color .3s, border-color .3s; border-bottom: 1px solid transparent; background: linear-gradient(180deg, rgba(10, 14, 19, .72), rgba(10, 14, 19, 0)); }
.hd.is-scrolled { height: var(--hd-s); background: rgba(10, 14, 19, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-color: var(--line); }
.hd-in { display: flex; align-items: center; gap: 28px; height: 100%; }
.hd-logo { flex-shrink: 0; }   /* the logo keeps its proportions: the menu gives way, never the logo */
.hd-logo img { height: 44px; width: auto; transition: height .3s var(--ease); }
.hd.is-scrolled .hd-logo img { height: 38px; }
.hd-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.hd-nav > a { text-decoration: none; color: rgba(255, 255, 255, .82); padding: 6px 0; position: relative; white-space: nowrap; }
/* the underline belongs to the text: it sits on the magnetic inner box, so it keeps the text's width while the link grows;
   bottom: -6px puts it on the link's bottom edge (the link's vertical padding) */
.hd-nav > a > [data-mag-inner] { position: relative; }
.hd-nav > a > [data-mag-inner]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.hd-nav > a:hover, .hd-nav > a[aria-current="true"] { color: var(--white); }
.hd-nav > a:hover > [data-mag-inner]::after, .hd-nav > a[aria-current="true"] > [data-mag-inner]::after { transform: scaleX(1); }
.hd-cta { min-height: 42px; }
.hd-burger { display: none; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: transparent; cursor: pointer; position: relative; }
.hd-burger span:not([data-mag-inner]) { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--white); transition: transform .3s var(--ease); }
.hd-burger span:not([data-mag-inner]):first-child { top: 17px; }
.hd-burger span:not([data-mag-inner]):last-child { top: 25px; }
.hd-lang { display: flex; align-items: center; gap: 2px; padding-left: 20px; border-left: 1px solid var(--line-2); font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.hd-lang a { padding: 8px 6px; color: var(--mute); text-decoration: none; }
.hd-lang a:hover, .hd-lang a[aria-current="true"] { color: var(--white); }
.hd-lang a[aria-current="true"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.menu-open .hd-burger span:not([data-mag-inner]):first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .hd-burger span:not([data-mag-inner]):last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero (first scene) */
.hero { position: relative; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--bg); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.06); animation: settle 2.2s var(--ease) forwards; filter: saturate(.85) contrast(1.05); }
@keyframes settle { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 14, 19, .94) 0%, rgba(10, 14, 19, .72) 42%, rgba(10, 14, 19, .2) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(10, 14, 19, 0) 45%); }
.hero-in { position: relative; z-index: 1; width: 100%; padding-top: 112px; padding-bottom: 26px; }
.hero h1 { max-width: 1100px; margin-bottom: 22px; font-size: clamp(40px, min(5.6vw, 8.4vh), 84px); line-height: .95; }
.hero-lead { max-width: 640px; margin-bottom: 30px; font-size: 18px; color: #C9D1DB; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(28px, 5vh, 56px) 0 0; border-top: 1px solid var(--line-2); }
.facts div { display: flex; flex-direction: column; padding: 16px 20px 0 0; }
.facts dt { order: 2; font-size: 13px; color: var(--mute); letter-spacing: .02em; }
.facts dd { margin: 0 0 4px; font-size: 34px; font-weight: 700; font-stretch: 75%; color: var(--white); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-certs { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 22px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--mute); }
.hero-certs li { padding: 0 16px; border-left: 1px solid var(--line-2); }
.hero-certs li:first-child { padding-left: 0; border-left: 0; }

/* Sections and scenes */
.sec { position: relative; padding: var(--sec-pad) 0; }
.sec-alt { background: var(--bg-alt); }
.sec-hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 56px; margin-bottom: 40px; }
.sec-hd h2 { font-size: clamp(36px, 4.2vw, 62px); }
.sec-hd > p { max-width: 460px; margin: 0; color: var(--mute); }

/* Services: five cards */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card-slot { grid-column: span 2; }
.card-slot:nth-child(n+4) { grid-column: span 3; }
.card { position: relative; aspect-ratio: 1 / .94; overflow: hidden; border-radius: var(--radius); background: var(--surface); isolation: isolate; }
.card-slot:nth-child(n+4) .card { aspect-ratio: 16 / 8.6; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.04); transition: transform 1s var(--ease); z-index: -2; }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 14, 19, .96) 0%, rgba(10, 14, 19, .45) 52%, rgba(10, 14, 19, .05) 100%); }
.card:hover img { transform: scale(1.045); }
.card-txt { position: absolute; left: 24px; right: 24px; bottom: 70px; }
.card-no { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--blue-text); }
.card h3 { margin-bottom: 8px; font-size: 24px; font-stretch: 75%; text-transform: uppercase; line-height: 1.02; }
.card p { margin: 0; font-size: 14px; line-height: 1.5; color: #C3CBD5; }
.card-hit { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 0 24px 22px; border: 0; background: transparent; color: var(--white); font: 600 14px var(--font); cursor: pointer; text-align: left; }
.card-hit span { border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .25s; }
.card-hit i { font-size: 18px; transition: transform .3s var(--ease); }
.card:hover .card-hit span { border-color: var(--white); }
.card:hover .card-hit i { transform: translateX(4px); }
@media (min-width: 1180px) {
    .cards { grid-template-columns: repeat(5, 1fr); }
    .card-slot, .card-slot:nth-child(n+4) { grid-column: auto; }
    .card, .card-slot:nth-child(n+4) .card { aspect-ratio: 3 / 4; }
    .card-txt { left: 20px; right: 20px; bottom: 64px; }
    .card h3 { font-size: clamp(16px, 1.28vw, 22px); hyphens: manual; }
    .card-hit { padding: 0 20px 20px; }
}

/* HDMC-130 feature */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.feature-img { margin: 0; }
.feature-img a { display: block; overflow: hidden; border-radius: var(--radius); }
.feature-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.85) contrast(1.04); transition: transform 1s var(--ease); }
.feature-img a:hover img { transform: scale(1.03); }
.feature-txt h2 { margin-bottom: 22px; font-size: clamp(34px, 3.8vw, 56px); }
.feature-txt > p { color: var(--mute); }
.spec { display: grid; grid-template-columns: repeat(4, 1fr); margin: 30px 0 22px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.spec div { display: flex; flex-direction: column; padding: 18px 16px 18px 0; }
.spec div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.spec dt { order: 2; font-size: 13px; color: var(--mute); }
.spec dd { margin: 0 0 2px; font-size: 40px; font-weight: 700; font-stretch: 75%; color: var(--white); line-height: 1.05; font-variant-numeric: tabular-nums; }
.note { font-size: 14px; color: var(--dim); }
.feature .btn-row { margin-top: 30px; }

/* Machine park: photos */
.gp-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gp-photos a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); text-decoration: none; }
.gp-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.85) contrast(1.04); transition: transform .8s var(--ease); }
.gp-photos a:hover img { transform: scale(1.04); }
/* soft vignette over the machine photos (the client's choice, 2026-11-03): darkens only the outer part towards the
   corners, on a layer above the photo, so the image files, the lightbox and the hero (the same SK 40 photo) stay as they are */
.gp-photos a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(ellipse farthest-corner at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .06) 64%, rgba(0, 0, 0, .21) 73%, rgba(0, 0, 0, .39) 82%, rgba(0, 0, 0, .54) 91%, rgba(0, 0, 0, .6) 100%); }
/* name and main ranges under each photo: numbers stay readable, the photo stays clear */
.gp-photos figure { margin: 0; min-width: 0; }
.gp-photos figcaption { margin-top: 10px; font-size: 13px; line-height: 1.4; }
.gp-photos figcaption strong { display: block; font-size: 14px; font-weight: 600; color: var(--white); }
.gp-photos figcaption span { display: block; margin-top: 2px; color: var(--mute); }
.gp-foot { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.gp-foot p { margin: 0; max-width: 560px; color: var(--mute); }

/* Machine park: full list as a three-column data sheet */
.gl-hd { margin-bottom: 28px; }
.gl-hd h2 { font-size: clamp(30px, 3.4vw, 48px); }
.gl-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.gl-cols-2 { grid-template-columns: 1fr 1fr; }
.gl-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.gl-split > * { min-width: 0; }
.gl-img { margin: 0; }
.gl-img a { display: block; overflow: hidden; border-radius: var(--radius); }
.gl-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.85) contrast(1.04); transition: transform 1s var(--ease); }
.gl-img a:hover img { transform: scale(1.03); }
.gl-img figcaption { margin-top: 10px; font-size: 13px; color: var(--dim); }
.gl-col h3 { margin: 22px 0 6px; padding-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-text); border-bottom: 1px solid var(--line-2); }
.gl-col h3:first-child { margin-top: 0; }
.gl { margin: 0; }
.gl div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.gl dt { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--white); }
.gl dd { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: #C2CAD4; font-variant-numeric: tabular-nums; }
/* forms: the honeypot field is out of sight and out of reach; the note under the drawing upload */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fld-note { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--mute); }
.fld-note a { color: var(--blue-text); }
.send-error a { color: inherit; text-decoration: underline; }
.vizsg-note { margin-top: clamp(14px, 3svh, 28px); }
.gl .hl { position: relative; padding-left: 12px; background: linear-gradient(90deg, rgba(0, 108, 249, .14), rgba(0, 108, 249, 0) 80%); box-shadow: inset 2px 0 0 var(--blue); }

/* References */
.ref-grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 1fr; gap: 16px; }
.ref { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius); text-decoration: none; background: var(--surface); }
.ref-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
/* the featured shield photo is portrait: keep the bulkhead in the frame */
.ref-big img { object-position: 50% 45%; }
.ref img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.04); transition: transform 1s var(--ease); }
.ref::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 14, 19, .85), rgba(10, 14, 19, 0) 45%); }
.ref span { position: absolute; left: 14px; bottom: 10px; z-index: 1; font-size: 14px; font-weight: 600; color: var(--white); }
.ref-big span { left: 22px; bottom: 18px; font-size: 22px; font-stretch: 75%; text-transform: uppercase; letter-spacing: .01em; }
/* the product group above the name (the client's double titles, e.g. tunnel boring machine part / shield) */
.ref span small { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 500; font-stretch: 100%; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.ref-big span small { font-size: 12px; letter-spacing: .08em; }
.ref:hover img { transform: scale(1.045); }
.ref[hidden] { display: none; }

/* Before / after */
.ba { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: center; }
.ba-txt h2 { margin-bottom: 18px; font-size: clamp(30px, 3.4vw, 52px); }
.ba-txt p { color: var(--mute); margin-bottom: 28px; }
.ba-frame { cursor: ew-resize; position: relative; overflow: hidden; width: min(100%, 665px); aspect-ratio: 1299 / 1211; border-radius: var(--radius); user-select: none; touch-action: pan-y; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) brightness(.84); }
.ba-frame img { -webkit-user-drag: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); pointer-events: none; }
.ba-handle i { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--white); color: var(--bg); font-size: 20px; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.ba-tag { position: absolute; top: 16px; z-index: 1; padding: 6px 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: rgba(10, 14, 19, .78); border-radius: 2px; pointer-events: none; }
.ba-tag-l { left: 16px; } .ba-tag-r { right: 16px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.ba-frame:focus-within .ba-handle i { outline: 2px solid var(--blue-text); outline-offset: 3px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 48px; padding: 0; list-style: none; }
.steps li { position: relative; padding: 28px 28px 0 0; border-top: 1px solid var(--line-2); }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--blue); }
.steps li + li::before { left: 28px; }
.step-no { display: block; margin-bottom: 24px; font-size: 56px; font-weight: 700; font-stretch: 75%; line-height: 1; color: rgba(255, 255, 255, .22); }
.steps h3 { margin-bottom: 12px; font-size: 22px; font-stretch: 75%; text-transform: uppercase; }
.steps p { margin: 0; font-size: 15px; color: var(--mute); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-txt h2 { margin-bottom: 26px; font-size: clamp(34px, 3.8vw, 56px); }
.about-txt > p { color: var(--mute); }
.figures { display: grid; grid-template-columns: repeat(4, auto); margin: 32px 0 0; border-top: 1px solid var(--line-2); }
.figures div { display: flex; flex-direction: column; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.figures div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.figures dt { order: 2; font-size: 13px; color: var(--mute); }
.figures dd { margin: 0 0 2px; font-size: 32px; font-weight: 700; font-stretch: 75%; color: var(--white); line-height: 1.1; font-variant-numeric: tabular-nums; }
.about-img { margin: 0; }
.about-img img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); filter: saturate(.85) contrast(1.04); }
.about-img figcaption { margin-top: 12px; font-size: 13px; color: var(--dim); }
/* Location map: our own image drawn from OpenStreetMap data (no third-party request until the click), the whole map opens Google Maps */
.map-link { position: relative; display: block; overflow: hidden; border-radius: var(--radius); color: var(--white); text-decoration: none; }
.about-img .map-link img { filter: none; transition: filter .3s; }
.map-link:hover img { filter: brightness(1.15); }
.map-pin { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; gap: 6px; transform: translate(-50%, calc(-100% + 10px)); pointer-events: none; }
.map-pin b { padding: 6px 10px; border-radius: var(--radius); background: var(--blue); font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.map-pin i { width: 20px; height: 20px; border: 3px solid var(--white); border-radius: 50%; background: var(--blue); }
.map-open { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(10, 14, 19, .82); font-size: 13px; font-weight: 600; transition: border-color .2s; }
.map-link:hover .map-open { border-color: var(--white); }
.about-map figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.about-map figcaption a { color: inherit; }

/* Team */
/* CEO: photo with name, title and e-mail in one column; the quote leads the contact list on the right */
.team { display: grid; grid-template-columns: 204px 1fr; gap: 64px; align-items: start; }
.ceo { margin: 0; }
.ceo img { width: 204px; height: 260px; object-fit: cover; border-radius: var(--radius); filter: saturate(.9); }
.ceo figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.ceo figcaption strong { font-size: 17px; color: var(--white); }
.ceo figcaption span { font-size: 14px; color: var(--mute); }
.ceo figcaption a { margin-top: 6px; font-size: 14px; color: var(--blue-text); text-decoration: none; }
.team-main blockquote { margin: 0 0 28px; padding-left: 20px; border-left: 2px solid var(--blue); font-size: 22px; line-height: 1.45; color: var(--white); }
.people { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.people li { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.people li > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.people strong { font-size: 17px; color: var(--white); }
.people em { font-style: normal; font-size: 14px; color: var(--mute); }
.people a { flex: none; font-size: 14px; color: var(--blue-text); text-decoration: none; }
.people a:hover, .ceo figcaption a:hover { text-decoration: underline; text-underline-offset: 3px; }
.people .lead strong::after { content: "Ajánlatkérés"; margin-left: 10px; padding: 2px 7px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--white); background: var(--blue); border-radius: 2px; vertical-align: 2px; }

/* Career: a scene with a photo behind it */
.jelenet-media { overflow: hidden; background: var(--bg); }
.jm-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: saturate(.7) brightness(.6) contrast(1.05); }
.jelenet-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 14, 19, .94) 0%, rgba(10, 14, 19, .78) 45%, rgba(10, 14, 19, .25) 100%), linear-gradient(0deg, rgba(10, 14, 19, .7), rgba(10, 14, 19, 0) 40%); }
.jelenet-media > .wrap { position: relative; z-index: 1; width: 100%; }
.career h2 { max-width: 760px; margin-bottom: 22px; font-size: clamp(36px, 4.6vw, 72px); }
.career > p { max-width: 620px; color: #C9D1DB; font-size: 17px; }
.jobs { display: flex; flex-wrap: wrap; gap: 8px; max-width: 720px; margin: 26px 0 30px; padding: 0; list-style: none; }
.jobs li { padding: 8px 13px; font-size: 14px; font-weight: 500; border: 1px solid var(--line-2); border-radius: 2px; background: rgba(10, 14, 19, .45); }
.career .btn { white-space: normal; text-align: center; }
.jobs li:has(> a) { padding: 0; border-color: var(--blue-text); }
.jobs li > a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; color: var(--white); text-decoration: none; }
.jobs li > a i { font-size: 14px; color: var(--blue-text); }
.jobs li > a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* inline link to a subpage at the end of a text (company history, quality policy) */
.txt-link { display: inline-flex; align-items: center; gap: 5px; color: var(--blue-text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.txt-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.4fr; gap: 72px; align-items: start; }
.faq-hd { position: sticky; top: 110px; }
.faq-hd h2 { margin-bottom: 28px; font-size: clamp(34px, 3.6vw, 52px); }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-size: 17px; font-weight: 600; color: var(--white); cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--mute); border-bottom: 1.5px solid var(--mute); transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq-list summary:hover { color: var(--blue-text); }
.faq-list details p { margin: 0; padding: 0 48px 22px 0; color: var(--mute); }
.faq-list details p a { color: var(--blue-text); }

/* Quote */
.quote { display: grid; grid-template-columns: .9fr 1.2fr; gap: 72px; align-items: start; }
.quote-info h2 { margin-bottom: 22px; font-size: clamp(34px, 3.8vw, 56px); }
.quote-info > p { color: var(--mute); }
.contact-list { margin: 32px 0; border-top: 1px solid var(--line-2); }
.contact-list div { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 13px; color: var(--mute); }
.contact-list dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; }
.contact-list a { text-decoration: none; color: var(--white); }
.contact-list a:hover { color: var(--blue-text); }
.checklist { margin-bottom: 30px; }
.checklist span { display: block; margin-bottom: 10px; font-size: 13px; color: var(--mute); }
.checklist ul { margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 4px 0 4px 24px; font-size: 15px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 10px; height: 5px; border-left: 1.5px solid var(--blue-text); border-bottom: 1.5px solid var(--blue-text); transform: rotate(-45deg); }
.quote-form { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); }

/* Form fields */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; border: 0; }
.chips legend { width: 100%; margin-bottom: 10px; padding: 0; font-size: 13px; font-weight: 600; color: var(--mute); }
.chip { min-height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 2px; background: transparent; color: var(--text); font: 500 14px var(--font); cursor: pointer; transition: background-color .2s, border-color .2s; }
.chip:hover { border-color: var(--white); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.fld { margin-bottom: 16px; }
.fld label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--mute); }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg); color: var(--white); font: 400 16px var(--font); transition: border-color .2s, box-shadow .2s; }
.fld textarea { min-height: 110px; resize: vertical; }
.fld input::placeholder, .fld textarea::placeholder { color: #66717E; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--blue-text); box-shadow: 0 0 0 3px rgba(93, 164, 255, .18); }
.fld input.is-err, .fld textarea.is-err, .fld select.is-err { border-color: var(--err); }
.fld select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.fld input[type="file"] { padding: 0; min-height: 0; border: 0; opacity: 0; position: absolute; width: 1px; height: 1px; }
.fld label.file { display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 0; padding: 6px 6px 6px 14px; border: 1px dashed var(--line-2); border-radius: var(--radius); font-size: 14px; font-weight: 400; color: var(--text); cursor: pointer; transition: border-color .2s; }
.fld label.file:hover, .fld label.file:focus-within { border-color: var(--blue-text); }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--mute); }
.file-btn { flex: none; white-space: nowrap; padding: 8px 12px; font-size: 13px; font-weight: 600; border-radius: 2px; background: var(--surface-2); color: var(--white); }
.form-error { margin: 0 0 14px; padding: 10px 14px; font-size: 14px; color: var(--white); background: rgba(255, 107, 94, .14); border-left: 2px solid var(--err); }
.privacy-note { margin: 12px 0 0; font-size: 13px; color: var(--dim); }
.privacy-note a { color: var(--mute); text-underline-offset: 2px; }
.privacy-note a:hover { color: var(--white); }

/* Footer */
.ft { padding: 88px 0 0; border-top: 1px solid var(--line); background: #070A0E; }
.ft-in { display: grid; grid-template-columns: 1.7fr .8fr 1fr 1fr; gap: 48px; padding-bottom: 64px; }
.ft-brand img { height: 52px; width: auto; margin-bottom: 22px; }
.ft-brand p { max-width: 420px; font-size: 14px; color: var(--mute); }
.ft-company { color: var(--dim) !important; }
.ft-col { display: flex; flex-direction: column; gap: 10px; }
.ft-col h4 { margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.ft-col a { font-size: 15px; text-decoration: none; color: var(--text); }
.ft-col a:hover { color: var(--blue-text); }
.ft-fund { min-width: 0; }
.ft-fund a:has(img) { display: block; width: max-content; max-width: 100%; }
.ft-fund img { width: 334px; max-width: 100%; height: auto; margin-bottom: 14px; }
.ft-fund p { font-size: 13px; color: var(--mute); }
.ft-fund a { color: var(--text); }
.ft-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.ft-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ft-legal a { color: var(--mute); text-decoration: none; }
.ft-legal a:hover { color: var(--white); }

/* Document sub-pages (legal pages, funded projects) */
.doc { padding: calc(var(--hd-s) + 56px) 0 104px; }
.doc-in { max-width: 920px; }
.doc-path { margin-bottom: 28px; font-size: 13px; color: var(--dim); }
.doc-note { margin: 0 0 28px; padding: 12px 16px; border-left: 2px solid var(--blue-text); background: var(--bg-alt); color: var(--mute); font-size: 14px; }
.doc-path a { color: var(--mute); text-decoration: none; }
.doc-path a:hover { color: var(--white); }
.doc-path span { margin: 0 6px; }
.doc h1 { margin-bottom: 32px; font-size: clamp(30px, 4vw, 52px); }
.doc-body { color: #C9D1DB; }
.doc-body h2, .doc-body h3, .doc-body h4 { margin: 36px 0 12px; font-size: 20px; line-height: 1.3; text-transform: none; font-stretch: 100%; color: var(--white); }
.doc-body h4 { font-size: 17px; }
.doc-body p { margin: 0 0 14px; }
.doc-body ul, .doc-body ol { margin: 0 0 18px; padding-left: 22px; }
.doc-body li { margin: 4px 0; }
.doc-body a { color: var(--blue-text); }
.doc-body strong, .doc-body b { color: var(--white); }
.doc-body table { width: 100%; margin: 8px 0 28px; border-collapse: collapse; font-size: 15px; }
.doc-body th { padding: 10px 14px 10px 0; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line-2); vertical-align: bottom; }
.doc-body td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table td:first-child { width: 42%; color: var(--mute); }
.doc-table td:last-child { color: var(--white); font-weight: 600; }
.doc-list { margin: 8px 0 0; padding: 0 !important; list-style: none; border-top: 1px solid var(--line-2); }
.doc-list li { margin: 0; border-bottom: 1px solid var(--line); }
.doc-list a { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 0; text-decoration: none; color: var(--white); }
.doc-list span { display: flex; flex-direction: column; gap: 2px; }
.doc-list strong { font-size: 17px; }
.doc-list em { font-style: normal; font-size: 14px; color: var(--mute); }
.doc-list i { flex: none; font-size: 20px; color: var(--blue-text); transition: transform .3s var(--ease); }
.doc-list a:hover strong { color: var(--blue-text); }
.doc-list a:hover i { transform: translateX(4px); }
.doc-fund { margin: 0 0 28px; }
.doc-fund img { width: 240px; padding: 12px; background: var(--white); border-radius: 2px; }
.doc-fund img[src*="terv-plusz-infoblokk"] { width: 334px; padding: 0; border-radius: 0; }
@media (max-width: 600px) {
    .doc { padding: calc(var(--hd-s) + 32px) 0 72px; }
    .doc-body { overflow-x: auto; }
    .doc-body table { min-width: 560px; }
    .doc-table { min-width: 0 !important; }
}

/* Drawer (service details) */
dialog { color: var(--text); }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(620px, 100%); max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--bg-alt); overflow-y: auto; overscroll-behavior: contain; }
.drawer::backdrop { background: rgba(3, 5, 8, .64); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer[open] { animation: drawer-in .42s var(--ease); }
.drawer[open]::backdrop { animation: fade-in .3s ease; }
.drawer.is-closing { animation: drawer-out .28s ease forwards; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drawer-out { to { transform: translateX(40px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.drawer-in { position: relative; padding: 56px 48px 48px; }
.drawer-x { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--radius); background: transparent; color: var(--white); font-size: 20px; cursor: pointer; }
.drawer-x:hover { border-color: var(--white); }
.drawer h3 { margin-bottom: 20px; padding-right: 48px; font-size: clamp(30px, 3vw, 40px); font-stretch: 75%; text-transform: uppercase; }
.drawer p { color: var(--mute); }
.drawer p strong { color: var(--white); font-weight: 600; }
.dpts { margin: 28px 0; border-top: 1px solid var(--line-2); }
.dpts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.dpts dt { font-weight: 700; color: var(--white); }
.dpts dd { margin: 4px 0 0; font-size: 15px; color: var(--mute); }
.drawer h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-text); }
.dlist { margin: 0 0 28px; padding: 0; list-style: none; }
.dlist li { position: relative; padding: 6px 0 6px 18px; font-size: 15px; }
.dlist li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 1px; background: var(--blue-text); }
.dpts .dlist { margin: 6px 0 0; }
.dpts .dlist li { padding: 2px 0 2px 18px; }
.dpts .dlist li::before { top: 12px; }
.dthumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 30px; }
.dthumbs a { display: block; overflow: hidden; border-radius: 2px; }
.dthumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease); }
.dthumbs a:hover img { transform: scale(1.06); }

/* Lightbox */
.lb { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(5, 7, 10, .96); }
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; place-items: center; animation: fade-in .25s ease; }
.lb-fig { margin: 0; padding: 72px 96px 64px; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-fig img { max-width: min(1400px, 100%); max-height: calc(100vh - 160px); object-fit: contain; border-radius: 2px; }
.lb-fig img.is-swap { animation: fade-in .3s ease; }
.lb-fig figcaption { margin-top: 14px; font-size: 14px; color: var(--mute); text-align: center; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(10, 14, 19, .6); color: var(--white); font-size: 20px; cursor: pointer; }
.lb-btn:hover { border-color: var(--white); }
.lb-prev { left: 24px; top: 50%; margin-top: -24px; }
.lb-next { right: 24px; top: 50%; margin-top: -24px; }
.lb-x { top: 20px; right: 24px; }
.lb-count { position: absolute; top: 32px; left: 28px; font-size: 13px; letter-spacing: .1em; color: var(--mute); }
.lb.single .lb-prev, .lb.single .lb-next, .lb.single .lb-count { display: none; }

/* Certificates scene (#tanusitvanyok), built by scripts/tanusitvanyok/blokk.py from the language data file.
   A: cards with the first page (in use), B: compact list (kept so the generator's other layout works) */
.certs { margin: 0; padding: 0; list-style: none; }
.cert-no { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--blue-text); }
.cert-desc { font-size: 13px; line-height: 1.4; color: var(--mute); }
.cert-pdf { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--blue-text); }
/* A: cards with the first page */
.certs-a { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.certs-a a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.certs-a img { width: 100%; height: auto; aspect-ratio: 300 / 425; object-fit: cover; object-position: top; border-radius: var(--radius); filter: brightness(.9); transition: filter .3s; }
.certs-a a:hover img { filter: none; }
.certs-a .cert-no { margin-top: 14px; }
.certs-a strong { margin-top: 4px; font-size: 16px; line-height: 1.25; color: var(--white); }
.certs-a .cert-desc { margin-top: 4px; }
.certs-a .cert-meta { margin-top: 8px; font-size: 12px; color: var(--dim); }
.certs-a .cert-pdf { margin-top: auto; padding-top: 10px; }
/* B: compact list */
.certs-b { border-top: 1px solid var(--line-2); }
.certs-b li > a, .certs-fej { display: grid; grid-template-columns: 44px minmax(0, 1.7fr) minmax(0, 1fr) 150px 60px; align-items: center; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.certs-fej { padding: 10px 0; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.certs-b strong { display: block; font-size: 17px; color: var(--white); transition: color .2s; }
.certs-b .cert-desc { display: block; margin-top: 2px; }
.certs-b .cert-szam { font-size: 14px; color: var(--mute); }
.certs-b .cert-ervenyes { font-size: 14px; color: var(--text); }
.certs-b .cert-pdf { justify-self: end; }
.certs-b a:hover strong { color: var(--blue-text); }
@media (min-width: 961px) and (min-height: 640px) {
    .certs-a img { aspect-ratio: auto; height: clamp(150px, 31svh, 320px); }
    .certs-b li > a { padding: clamp(10px, 2.2svh, 18px) 0; }
}
@media (max-width: 960px) {
    .certs-a { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .certs-fej { display: none; }
    .certs-b li > a { grid-template-columns: 36px 1fr auto; row-gap: 4px; }
    .certs-b .cert-szam, .certs-b .cert-ervenyes { grid-column: 2; }
    .certs-b .cert-pdf { grid-column: 3; grid-row: 1; }
}

/* Dock, popups, toast */
.dock { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; gap: 8px; }
.dock-btn { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(21, 28, 37, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--white); font-size: 22px; text-decoration: none; cursor: pointer; transition: border-color .2s, background-color .2s; }
.dock-btn:hover { border-color: var(--white); }
.dock-main { background: var(--blue); border-color: var(--blue); }
.dock-main:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.dock-btn[aria-expanded="true"] { border-color: var(--white); }
.mbar { display: none; }
.pop { position: fixed; right: 84px; bottom: 20px; z-index: 55; width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-alt); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .3s var(--ease); }
.pop.is-open { opacity: 1; transform: none; }
.pop-hd { position: relative; padding: 22px 64px 16px 24px; border-bottom: 1px solid var(--line); }
.pop-hd h4 { margin-bottom: 4px; font-size: 22px; font-stretch: 75%; text-transform: uppercase; }
.pop-hd p { margin: 0; font-size: 14px; color: var(--mute); }
.pop-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: var(--radius); background: transparent; color: var(--white); font-size: 18px; cursor: pointer; }
.pop-body { padding: 20px 24px 24px; }
.calc-progress { display: flex; gap: 6px; margin-top: 14px; }
.calc-progress span { flex: 1; height: 2px; background: var(--line-2); }
.calc-progress span.is-on { background: var(--blue); }
.calc-step-t { margin: 0 0 16px; font-weight: 600; color: var(--white); }
.calc-step-t span { margin-right: 6px; font-size: 13px; color: var(--blue-text); }
.calc-fld { margin-bottom: 20px; }
.calc-fld-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.calc-fld-hd label { font-size: 14px; color: var(--mute); }
.calc-fld-hd output { font-size: 24px; font-weight: 700; font-stretch: 75%; color: var(--white); font-variant-numeric: tabular-nums; }
.range { width: 100%; height: 22px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --fill: 50%; }
.range::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--blue) var(--fill), var(--line-2) var(--fill)); }
.range::-moz-range-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--blue) var(--fill), var(--line-2) var(--fill)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8.5px; border-radius: 50%; background: var(--white); border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 0; }
.calc-scale { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--dim); }
.calc-result { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 14px; padding: 16px 18px; border-left: 2px solid var(--ok); background: rgba(61, 214, 140, .08); }
.calc-result.is-check { border-left-color: #F2B544; background: rgba(242, 181, 68, .08); }
.calc-result span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.calc-result strong { font-size: 20px; color: var(--white); }
.calc-result em { font-style: normal; font-size: 14px; color: #C9D1DB; }
.calc-note { font-size: 13px; color: var(--dim); }
.calc-summary { margin: 0 0 16px; padding: 10px 14px; font-size: 14px; border: 1px solid var(--line); border-radius: 2px; color: var(--text); }
.calc-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 16px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 14px 20px; border: 1px solid rgba(61, 214, 140, .4); border-radius: var(--radius); background: #0E1A15; color: var(--white); font-size: 15px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .35s var(--ease); }
.toast i { color: var(--ok); font-size: 20px; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Gentle reveal (fallback where the fly-through does not run): only when JS runs, once */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* Scene mode: from 961 × 640 px every scene is exactly one screen, sizes follow the screen height */
@media (min-width: 961px) and (min-height: 640px) {
    .jelenet:not(.hero) { display: grid; align-content: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--hd-s) + clamp(12px, 3.5svh, 40px)) 0 clamp(20px, 4.5svh, 56px); }
    /* a grid item with auto margins would shrink to its content: keep the page width */
    .jelenet:not(.hero) > .wrap { width: 100%; }
    .sec-hd { margin-bottom: clamp(18px, 3.6svh, 40px); }
    .sec-hd h2 { font-size: clamp(30px, min(4.2vw, 7svh), 62px); }
    .card, .card-slot:nth-child(n+4) .card { aspect-ratio: auto; height: clamp(150px, 25svh, 290px); }
    .feature-img img { aspect-ratio: auto; height: clamp(260px, 56svh, 540px); }
    .feature-txt h2 { margin-bottom: clamp(12px, 2.4svh, 22px); font-size: clamp(30px, min(3.6vw, 6.4svh), 54px); }
    .spec { margin: clamp(12px, 2.8svh, 30px) 0 clamp(8px, 2svh, 22px); }
    .spec div { padding-top: clamp(10px, 2svh, 18px); padding-bottom: clamp(10px, 2svh, 18px); }
    .spec dd { font-size: clamp(26px, 5svh, 40px); }
    .feature .btn-row { margin-top: clamp(14px, 3svh, 30px); }
    .gp-photos img { aspect-ratio: auto; height: clamp(140px, 30svh, 320px); }
    .gp-foot { margin-top: clamp(14px, 3svh, 32px); padding-top: clamp(12px, 2.4svh, 24px); }
    .gl-hd { margin-bottom: clamp(10px, 2.4svh, 28px); }
    .gl-hd h2 { font-size: clamp(26px, min(3.4vw, 5.4svh), 48px); }
    .gl-col h3 { margin-top: clamp(10px, 2.2svh, 22px); }
    .gl div { padding: clamp(3px, .8svh, 9px) 0; }
    .gl-img img { aspect-ratio: auto; height: clamp(220px, 50svh, 480px); }
    .ref-grid { grid-auto-rows: clamp(96px, 23svh, 240px); }
    .ref { aspect-ratio: auto; }
    .ba-txt h2 { font-size: clamp(30px, min(3.4vw, 6.4svh), 52px); }
    .ba-frame { width: min(100%, calc(clamp(280px, 64svh, 620px) * 1299 / 1211)); justify-self: end; }
    .steps { margin-bottom: clamp(20px, 4.4svh, 48px); }
    .steps li { padding-top: clamp(16px, 3svh, 28px); }
    .step-no { margin-bottom: clamp(10px, 2.6svh, 24px); font-size: clamp(34px, 6.4svh, 56px); }
    .about-txt h2 { margin-bottom: clamp(12px, 2.8svh, 26px); font-size: clamp(30px, min(3.8vw, 6.4svh), 56px); }
    .about-txt > p { font-size: 15.5px; margin-bottom: clamp(8px, 1.6svh, 16px); }
    .figures { margin-top: clamp(14px, 3svh, 32px); }
    .figures div { padding-top: clamp(8px, 1.8svh, 16px); padding-bottom: clamp(8px, 1.8svh, 16px); }
    .figures dd { font-size: clamp(24px, 4.4svh, 32px); }
    .about-img img { aspect-ratio: auto; height: clamp(260px, 62svh, 580px); }
    .ceo img { height: clamp(190px, 32svh, 260px); }
    .team-main blockquote { margin-bottom: clamp(16px, 3svh, 28px); font-size: clamp(18px, 2.6svh, 22px); }
    .people li { padding: clamp(5px, 1.1svh, 10px) 0; }
    .faq-hd { top: calc(var(--hd-s) + 32px); }
    .faq-list summary { padding: clamp(10px, 2.1svh, 20px) 0; }
    .career h2 { margin-bottom: clamp(12px, 2.6svh, 22px); font-size: clamp(36px, min(4.6vw, 8svh), 72px); }
    .jobs { margin: clamp(14px, 3svh, 26px) 0 clamp(16px, 3.4svh, 30px); }
}
/* low or narrow desktop screens: tighter hero, feature and about so they stay one screen */
@media (min-width: 961px) and (max-height: 760px) {
    .hero-in { padding-top: calc(var(--hd-h) + 12px); padding-bottom: 18px; }
    .hero h1 { margin-bottom: 16px; }
    .hero-lead { margin-bottom: 22px; font-size: 16.5px; }
    .facts { margin-top: 22px; }
    .facts div { padding-top: 12px; }
    .facts dd { font-size: 28px; }
    .hero-certs { margin-top: 14px; padding-top: 10px; }
    .feature .note { display: none; }
    .gl dt { font-size: 14px; }
    .gl dd { font-size: 13px; }
    .gl-col h3 { padding-bottom: 6px; }
    .sec-hd > p { font-size: 15px; line-height: 1.55; }
}
/* desktop: machine name and data side by side, one row per machine */
@media (min-width: 961px) {
    .gl div { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 18px; align-items: baseline; }
    .gl dd { margin: 0; }
    .gl-split .gl div { display: block; }
    .gl-split .gl dd { margin-top: 2px; }
}
/* narrow desktop: the list takes the whole width, the photo stays out */
@media (min-width: 961px) and (max-width: 1179px) {
    .gl-split { grid-template-columns: 1fr; }
    .gl-split .gl div { display: grid; }
    .gl-split .gl dd { margin-top: 0; }
    .gl-img { display: none; }
}
@media (min-width: 961px) and (max-width: 1179px) and (min-height: 640px) {
    /* 3 + 2 low cards: number and title only, the description is in the details drawer */
    .card, .card-slot:nth-child(n+4) .card { height: clamp(170px, 27svh, 300px); }
    .card p { display: none; }
    .card h3 { margin-bottom: 0; font-size: 20px; }
    .card-txt { bottom: 60px; }
}
@media (min-width: 961px) and (max-width: 1179px) {
    .feature { grid-template-columns: .9fr 1.1fr; gap: 40px; }
    .about { grid-template-columns: 1.15fr .85fr; gap: 44px; }
    .about-txt > p { font-size: 15px; line-height: 1.6; }
    .team { gap: 36px; }
}
@media (min-width: 1180px) and (min-height: 640px) {
    .card, .card-slot:nth-child(n+4) .card { height: clamp(240px, 46svh, 470px); }
}
/* English and German texts run longer: on the lowest narrow desktop screens the about text gets more width
   (fewer lines) so the scene stays one screen; the Hungarian layout is unchanged */
@media (min-width: 961px) and (max-width: 1179px) and (max-height: 700px) {
    html:not([lang="hu"]) .about { grid-template-columns: 1.4fr .6fr; gap: 36px; }
}
@media (min-width: 1180px) and (max-height: 720px) {
    html:not([lang="hu"]) .about { grid-template-columns: 1.3fr .7fr; gap: 48px; }
}
/* the longer German hero title on the smallest scene screens */
@media (min-width: 961px) and (max-width: 1100px) and (max-height: 700px) {
    html[lang="de"] .hero h1 { font-size: clamp(38px, min(4.8vw, 7.2vh), 84px); }
}
/* the longer German menu fits on one line on the narrowest desktop widths */
@media (min-width: 1081px) and (max-width: 1240px) {
    html[lang="de"] .hd-in { gap: 20px; }
    html[lang="de"] .hd-nav { gap: 18px; }
    html[lang="de"] .hd-lang { padding-left: 14px; }
}
/* seven menu items on the narrowest desktop widths: tighter spacing and slightly smaller type, in every language */
@media (min-width: 1081px) and (max-width: 1180px) {
    .hd-in, html[lang="de"] .hd-in { gap: 16px; }
    .hd-nav, html[lang="de"] .hd-nav { gap: 14px; font-size: 14px; }
    .hd-lang, html[lang="de"] .hd-lang { padding-left: 12px; }
}

/* Fly-through: in scene mode the texts of a scene come from the depth, rest sharp while the scene is on screen,
   and fly past when it leaves. Bound to the whole scene (--jel), so at every snap position everything is sharp
   (32-68 % of the scene's passage is the resting state). Photos only move, without blur, to stay light.
   Firefox (no scroll timeline), phones, tablets and reduced motion keep the gentle reveal above. */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) and (min-width: 961px) and (min-height: 640px) {
        .jelenet:not(.hero) { view-timeline-name: --jel; }
        .js .jelenet:not(.hero) .rv {
            opacity: 1;
            transform: none;
            transition: none;
            animation-name: atrepul;
            animation-timing-function: linear;
            animation-fill-mode: both;
            animation-timeline: --jel;
            animation-range: cover 0% cover 100%;
        }
        .js .jelenet:not(.hero) .rv-m { animation-name: atrepul-kep; }
        /* the focused element is always sharp */
        .js .jelenet:not(.hero) .rv:focus-within { animation-name: none; }
        @keyframes atrepul {
            0% { opacity: 0; transform: perspective(800px) translateZ(-900px); filter: blur(10px); }
            32%, 68% { opacity: 1; transform: none; filter: none; }
            100% { opacity: 0; transform: perspective(800px) translateZ(420px); filter: blur(8px); }
        }
        @keyframes atrepul-kep {
            0% { opacity: 0; transform: perspective(800px) translateZ(-520px); }
            32%, 68% { opacity: 1; transform: none; }
            100% { opacity: 0; transform: perspective(800px) translateZ(260px); }
        }
    }
}

/* Responsive */
@media (max-width: 1180px) {
    .hd-nav { gap: 20px; }
}
@media (max-width: 1080px) {
    .hd-burger { display: block; margin-left: 0; }
    .hd-cta { margin-left: auto; }
    .hd-nav { position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; margin: 0; padding: 96px var(--gutter) 40px; background: var(--bg); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .35s var(--ease), visibility .3s; }
    .hd-nav > a { font-size: 34px; font-weight: 700; font-stretch: 75%; text-transform: uppercase; color: var(--white); }
    .hd-nav > a > [data-mag-inner]::after { display: none; }
    .menu-open .hd-nav { opacity: 1; visibility: visible; transform: none; }
    .menu-open .hd { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .menu-open { overflow: hidden; }
    /* centred while the items fit (auto margins, so a list taller than the screen starts at its top, not cut) */
    .hd-nav { justify-content: flex-start; }
    .hd-nav > a:first-child { margin-top: auto; }
    .hd-nav > a:last-child { margin-bottom: auto; }
}
/* a short screen (a phone held sideways; the full-size list ends at 609 px): smaller items, and the list scrolls
   instead of being cut; the band under
   the header is a border, not padding, so the scrolling list never slides under the logo */
@media (max-width: 1080px) and (max-height: 620px) {
    .hd-nav { overflow-y: auto; overscroll-behavior: contain; padding-top: 0; padding-bottom: 24px; border-top: 76px solid var(--bg); gap: 0; }
    .hd-nav > a { font-size: 28px; }
}
@media (max-width: 960px) {
    :root { --gutter: 24px; --sec-pad: 88px; }
    .sec-hd { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 36px; }
    .facts { grid-template-columns: 1fr 1fr; margin-top: 40px; }
    .cards { grid-template-columns: 1fr 1fr; }
    .card-slot, .card-slot:nth-child(n+4) { grid-column: auto; }
    .card, .card-slot:nth-child(n+4) .card { aspect-ratio: 4 / 4.4; }
    .card-slot:nth-child(5) { grid-column: 1 / -1; }
    .card-slot:nth-child(5) .card { aspect-ratio: 16 / 9; }
    .feature, .about, .team, .faq, .quote, .ba { grid-template-columns: 1fr; gap: 40px; }
    .gp-photos { grid-template-columns: 1fr 1fr; }
    .gp-foot { flex-direction: column; align-items: flex-start; gap: 18px; }
    .gl-cols { grid-template-columns: 1fr 1fr; }
    .gl-split { grid-template-columns: 1fr; gap: 32px; }
    .ref-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
    .ref-big { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
    .steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
    .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
    .steps li:nth-child(3)::before { left: 0; }
    .faq-hd { position: static; }
    .ft-in { grid-template-columns: 1fr 1fr; }
    .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    :root { --gutter: 16px; --hd-h: 68px; --sec-pad: 72px; }
    body { padding-bottom: 64px; }
    html { scroll-padding-bottom: 64px; } /* the snap to the footer's end stops above the bottom bar, not under it */
    .hd-logo img { height: 36px; }
    .hd-cta { display: none; }
    .hd-burger { margin-left: auto; }
    .hero { min-height: auto; }
    .hero-in { padding-top: 112px; padding-bottom: 32px; }
    .hero h1 { font-size: clamp(38px, 11vw, 52px); }
    .hero-lead { font-size: 16px; }
    .hero-cta .btn { width: 100%; }
    .facts dd { font-size: 28px; }
    .cards { grid-template-columns: 1fr; }
    .card-slot, .card-slot:nth-child(n+4), .card-slot:nth-child(5) { grid-column: auto; }
    .card, .card-slot:nth-child(n+4) .card, .card-slot:nth-child(5) .card { aspect-ratio: 4 / 3.6; }
    .spec { grid-template-columns: 1fr 1fr; }
    .spec div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
    .spec div:nth-child(4) { border-top: 1px solid var(--line); }
    .gl-cols, .gl-cols-2 { grid-template-columns: 1fr; }
    .gl-col h3:first-child { margin-top: 22px; }
    .gl-cols .gl-col:first-child h3:first-child { margin-top: 0; }
    .ref-grid { gap: 10px; }
    .ref-big { aspect-ratio: 4 / 3; }
    .ref span { left: 10px; bottom: 8px; font-size: 13px; }
    .steps { grid-template-columns: 1fr; }
    .steps li, .steps li + li { padding: 24px 0 0; border-left: 0; }
    .steps li + li::before, .steps li::before { left: 0; }
    .step-no { font-size: 44px; margin-bottom: 14px; }
    .figures { grid-template-columns: 1fr 1fr; }
    .figures div:nth-child(3) { padding-left: 0; border-left: 0; }
    .figures dd { font-size: 30px; }
    .team-main blockquote { font-size: 19px; }
    .people li { flex-direction: column; align-items: flex-start; gap: 4px; }
    .grid2 { grid-template-columns: 1fr; }
    .quote-form { padding: 22px; }
    .drawer-in { padding: 64px 20px 32px; }
    .dthumbs { grid-template-columns: repeat(2, 1fr); }
    .lb-fig { padding: 64px 12px 88px; }
    .lb-prev, .lb-next { top: auto; bottom: 20px; margin-top: 0; }
    .ft-in { grid-template-columns: 1fr; gap: 36px; }
    .ft-bottom { flex-direction: column; }
    .dock { display: none; }
    .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr; height: 64px; border-top: 1px solid var(--line-2); background: rgba(10, 14, 19, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
    .mbar a, .mbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: transparent; color: var(--white); font: 600 12px var(--font); text-decoration: none; cursor: pointer; }
    .mbar i { font-size: 20px; }
    .mbar button + a { border-left: 1px solid var(--line); }
    .mbar .mbar-main { flex-direction: row; background: var(--blue); font-size: 15px; }
    .pop { left: 0; right: 0; bottom: 0; width: 100%; max-height: 88vh; border-radius: 8px 8px 0 0; border-width: 1px 0 0; }
    .toast { bottom: 80px; }
    .menu-open .mbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .rv { opacity: 1; transform: none; }
    .hero-img { transform: none; }
}

/* Language switch on tablets and phones: stays in the header bar next to the menu button, larger tap targets */
@media (max-width: 1080px) {
    .hd-lang { margin-left: auto; padding-left: 0; border-left: 0; }
    .hd-lang + .hd-cta { margin-left: 0; }
    .hd-lang a { padding: 12px 7px; }
}

/* Narrow phones (320 px, iPhone with display zoom): a button label longer than the screen wraps instead of
   sticking out; at wider sizes everything fits on one line, so nothing changes there */
@media (max-width: 400px) {
    .btn { white-space: normal; text-align: center; }
}

/* The soft hyphens in these headings, certificate texts and captions are for narrow phones only: on wider
   screens they keep breaking between words, as before */
@media (min-width: 481px) {
    .doc h1, .sec-hd h2, .gl-hd h2, .certs strong, .certs .cert-desc, figcaption strong { -webkit-hyphens: none; hyphens: none; }
}
@media (min-width: 360px) {
    html[lang="hu"] .hero h1 { -webkit-hyphens: none; hyphens: none; }
}
