:root {
    --bg: #05080c;
    --surface: #0c1219;
    --surface-2: #111a24;
    --text: #f5f8fb;
    --muted: #92a0ae;
    --line: rgba(255,255,255,.1);
    --cyan: #00b9ee;
    --orange: #ff7900;
    --font: Inter, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
    --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    font: 16px/1.5 var(--font);
}
a { color: inherit; }
svg { display: block; }

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: #001018;
    background: var(--cyan);
    border-radius: 8px;
    font-weight: 800;
    transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.grid-backdrop {
    position: fixed;
    z-index: -3;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.021) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.021) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 64% 48%, black, transparent 78%);
}
.ambient {
    position: fixed;
    z-index: -2;
    width: min(42vw, 680px);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    opacity: .12;
}
.ambient-cyan { top: -22vw; left: -15vw; background: var(--cyan); }
.ambient-orange { right: -18vw; bottom: -26vw; background: var(--orange); }

.gateway-shell {
    width: min(1440px, calc(100% - 64px));
    min-height: 100dvh;
    margin: auto;
    padding: 30px 0 24px;
    display: grid;
    grid-template-rows: auto 1fr auto;
}
.topbar {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}
.brand-symbol {
    position: relative;
    width: 50px;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 1px;
    font-size: 30px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.12em;
}
.brand-symbol b:first-child { color: var(--cyan); }
.brand-symbol b:last-child { color: var(--orange); }
.brand-symbol i {
    position: absolute;
    left: 24px;
    top: 1px;
    width: 2px;
    height: 42px;
    background: linear-gradient(var(--cyan) 0 48%, var(--orange) 52%);
    transform: rotate(38deg);
    box-shadow: 0 0 10px rgba(0,185,238,.2);
}
.brand-name { display: grid; line-height: .92; letter-spacing: .13em; font-size: .72rem; }
.brand-name strong:first-child { color: #dfe7ed; }
.brand-name strong:last-child { color: #748391; }
.brand-compact .brand-symbol { transform: scale(.85); transform-origin: left center; }
.brand-compact .brand-name { display: none; }

.network-label,
.gateway-footer {
    color: #71808d;
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 13px rgba(0,185,238,.8);
}

.gateway-layout {
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(350px, .8fr) minmax(680px, 1.2fr);
    align-items: center;
    gap: clamp(34px, 5vw, 90px);
}
.intro-copy { max-width: 560px; padding-bottom: 20px; }
.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #b5c0ca;
    font-size: .69rem;
    font-weight: 850;
    letter-spacing: .17em;
    text-transform: uppercase;
}
.eyebrow span { width: 35px; height: 2px; background: linear-gradient(90deg,var(--cyan),var(--orange)); }
.intro-copy h1,
.branch-hero h1 {
    margin: 18px 0 0;
    font-size: clamp(3.4rem, 5.7vw, 6.4rem);
    line-height: .87;
    letter-spacing: -.07em;
}
.intro-copy h1 em {
    color: transparent;
    background: linear-gradient(95deg,var(--cyan) 5%,#75d9f5 43%,var(--orange) 88%);
    background-clip: text;
    font-style: normal;
}
.intro-copy > p:last-of-type {
    max-width: 470px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}
.scroll-cue {
    width: fit-content;
    min-height: 48px;
    margin-top: 34px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #d9e3ea;
    text-decoration: none;
    font-size: .79rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.scroll-cue svg { width: 20px; fill: none; stroke: var(--cyan); stroke-width: 1.8; transition: transform 180ms ease; }
.scroll-cue:hover svg { transform: translateX(5px); }

.hive {
    --cell-w: clamp(265px, 19vw, 322px);
    --cell-h: calc(var(--cell-w) * .82);
    position: relative;
    width: calc(var(--cell-w) * 2.32);
    height: calc(var(--cell-h) * 1.82);
    margin-inline: auto;
}
.hive-lines {
    position: absolute;
    inset: 8% 7%;
    opacity: .2;
    background:
        linear-gradient(30deg,transparent 49.8%,var(--cyan) 50%,transparent 50.2%),
        linear-gradient(-30deg,transparent 49.8%,var(--orange) 50%,transparent 50.2%);
}
.hive-cell {
    --accent: var(--cyan);
    --accent-rgb: 0,185,238;
    position: absolute;
    width: var(--cell-w);
    height: var(--cell-h);
    padding: 1px;
    color: var(--text);
    text-decoration: none;
    background: linear-gradient(145deg,rgba(var(--accent-rgb),.92),rgba(255,255,255,.13) 38%,rgba(var(--accent-rgb),.36));
    clip-path: polygon(14% 0,86% 0,100% 50%,86% 100%,14% 100%,0 50%);
    filter: drop-shadow(0 22px 36px rgba(0,0,0,.42));
    transition: transform 240ms var(--ease),filter 240ms var(--ease);
    touch-action: manipulation;
}
.hive-cell.accent-orange { --accent: var(--orange); --accent-rgb: 255,121,0; }
.hive-cell-1 { top: 0; left: 0; }
.hive-cell-2 { top: 0; right: 0; }
.hive-cell-3 { bottom: 0; left: calc(var(--cell-w) * .16); }
.hive-cell-4 { right: calc(var(--cell-w) * .16); bottom: 0; }
.cell-surface {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 34px 42px 31px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background:
        radial-gradient(circle at var(--spot-x,15%) var(--spot-y,5%),rgba(var(--accent-rgb),.23),transparent 45%),
        linear-gradient(145deg,rgba(19,29,40,.99),rgba(6,10,15,.99));
    clip-path: inherit;
}
.cell-surface::before {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(120deg,transparent 37%,rgba(255,255,255,.07) 49%,transparent 61%);
    transform:translateX(-110%);
    transition:transform 480ms var(--ease);
}
.hive-cell:hover,
.hive-cell:focus-visible { z-index:5; transform:translateY(-9px); filter:drop-shadow(0 30px 45px rgba(var(--accent-rgb),.16)); outline:none; }
.hive-cell:focus-visible { filter:drop-shadow(0 0 8px var(--accent)); }
.hive-cell:hover .cell-surface::before,
.hive-cell:focus-visible .cell-surface::before { transform:translateX(110%); }
.cell-topline,.cell-content { position:relative; z-index:1; }
.cell-topline { display:flex; align-items:center; justify-content:space-between; }
.cell-index { color:rgba(255,255,255,.39); font:800 .67rem/1 var(--font); letter-spacing:.15em; }
.cell-icon {
    width:52px;
    height:52px;
    display:grid;
    place-items:center;
    color:var(--accent);
    background:rgba(var(--accent-rgb),.08);
    border:1px solid rgba(var(--accent-rgb),.34);
    clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);
}
.cell-icon svg,.cell-action svg,.back-link svg,.branch-emblem svg { fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.cell-icon svg { width:28px; }
.cell-content { display:grid; gap:4px; }
.cell-content small { color:var(--accent); font-size:.61rem; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.cell-content strong { max-width:220px; font-size:clamp(1.25rem,1.7vw,1.62rem); line-height:1.05; letter-spacing:-.035em; }
.cell-action { margin-top:13px; display:flex; align-items:center; gap:8px; color:#8d9ba7; font-size:.66rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.cell-action svg { width:17px; color:var(--accent); transition:transform 180ms ease; }
.hive-cell:hover .cell-action svg { transform:translateX(4px); }

.gateway-footer { display:flex; justify-content:space-between; gap:20px; border-top:1px solid var(--line); padding-top:20px; }
.gateway-footer p { margin:0; }
.gateway-footer span { color:var(--cyan); margin:0 7px; }

/* Szakági átvezető oldal */
.branch-shell { width:min(1180px,calc(100% - 40px)); min-height:100dvh; margin:auto; display:grid; grid-template-rows:auto 1fr; }
.branch-nav { min-height:100px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.back-link { min-height:48px; padding:0 18px; display:inline-flex; align-items:center; gap:9px; color:#dce7ef; border:1px solid var(--line); border-radius:999px; text-decoration:none; font-size:.86rem; font-weight:750; }
.back-link svg { width:19px; }
.back-link:hover,.back-link:focus-visible { background:rgba(255,255,255,.06); outline:2px solid var(--cyan); outline-offset:3px; }
.branch-hero { max-width:820px; margin:auto 0; padding:40px 0 120px; }
.branch-hero h1 { font-size:clamp(3rem,7vw,6rem); }
.branch-emblem { width:104px; height:104px; margin-bottom:30px; display:grid; place-items:center; color:var(--cyan); background:rgba(0,185,238,.1); border:1px solid rgba(0,185,238,.3); clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); }
.accent-page-orange .branch-emblem { color:var(--orange); background:rgba(255,121,0,.1); border-color:rgba(255,121,0,.3); }
.branch-emblem svg { width:46px; }
.branch-lead { max-width:650px; margin:24px 0 0; color:#a9b7c3; font-size:clamp(1.08rem,2.2vw,1.35rem); }
.coming-soon { width:fit-content; margin-top:42px; padding:14px 18px; color:#cdd8e0; background:rgba(255,255,255,.045); border:1px solid var(--line); border-radius:12px; font-size:.82rem; font-weight:760; }

@media (max-width:1100px) {
    .gateway-shell { width:min(100% - 40px,900px); }
    .gateway-layout { grid-template-columns:1fr; padding:70px 0; }
    .intro-copy { max-width:720px; }
    .intro-copy h1 { font-size:clamp(4rem,10vw,6.4rem); }
    .hive { margin-top:20px; }
}
@media (max-width:720px) {
    .gateway-shell,.branch-shell { width:min(100% - 28px,560px); }
    .gateway-shell { padding-top:14px; }
    .topbar { min-height:62px; }
    .network-label { display:none; }
    .gateway-layout { min-height:auto; padding:54px 0 30px; gap:42px; }
    .intro-copy h1 { font-size:clamp(3.2rem,15vw,5rem); }
    .intro-copy > p:last-of-type { font-size:1rem; }
    .hive { --cell-w:min(91vw,380px); --cell-h:calc(var(--cell-w) * .75); width:var(--cell-w); height:auto; display:grid; gap:8px; }
    .hive-lines { display:none; }
    .hive-cell { position:relative; inset:auto; }
    .hive-cell:nth-of-type(even) { margin-left:14px; }
    .hive-cell:nth-of-type(odd) { margin-left:-14px; }
    .cell-surface { padding:34px 48px 30px; }
    .gateway-footer { justify-content:center; }
    .gateway-footer p:last-child { display:none; }
    .branch-nav { min-height:82px; }
}
@media (prefers-reduced-motion:reduce) {
    *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; animation-iteration-count:1!important; }
}

/* Hybrid gateway: az első HIVE ritmusa, a második változat márkajelével */
.gateway-page .gateway-shell {
    width: min(1180px, calc(100% - 40px));
    padding: 28px 0 22px;
    grid-template-rows: auto 1fr auto;
}
.brand-lockup {
    display: flex;
    align-items: center;
    gap: 28px;
}
.brand-lockup > .brand {
    width: 150px;
    height: 112px;
    flex: 0 0 auto;
    justify-content: center;
    background: transparent;
    border: 0;
    clip-path: none;
}
.brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.brand-compact { width: 76px; height: 58px; }
.brand-lockup .intro-copy { max-width: none; padding: 0; }
.brand-lockup .intro-copy h1 {
    margin: 5px 0 0;
    color: var(--text);
    background: none;
    font-size: clamp(2.5rem, 5vw, 4.65rem);
    line-height: .98;
    letter-spacing: -.055em;
}
.brand-lockup .intro-copy > p:last-child {
    max-width: 590px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 1.04rem;
}
.gateway-page .hive {
    --cell-w: clamp(230px, 23vw, 306px);
    --cell-h: calc(var(--cell-w) * .87);
    position: relative;
    width: calc(var(--cell-w) * 2.5);
    height: auto;
    min-height: clamp(580px, 65vh, 690px);
    margin: 22px auto 12px;
    display: block;
}
.gateway-page .hive-cell {
    position: absolute;
    width: var(--cell-w);
    height: var(--cell-h);
    clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);
}
.gateway-page .hive-cell-1 { top: 0; left: 50%; right: auto; bottom: auto; transform: translateX(-50%); }
.gateway-page .hive-cell-2 { top: calc(var(--cell-h) * .52); right: 0; left: auto; bottom: auto; }
.gateway-page .hive-cell-3 { top: auto; right: auto; bottom: 0; left: 50%; transform: translateX(-50%); }
.gateway-page .hive-cell-4 { top: calc(var(--cell-h) * .52); right: auto; bottom: auto; left: 0; }
.gateway-page .hive-cell-1:hover,
.gateway-page .hive-cell-1:focus-visible,
.gateway-page .hive-cell-3:hover,
.gateway-page .hive-cell-3:focus-visible { transform: translateX(-50%) translateY(-8px); }
.gateway-page .cell-surface { padding: 43px 50px 38px; }
.gateway-page .cell-content { margin-top: auto; margin-bottom: 18px; }
.gateway-page .cell-action {
    position: absolute;
    right: 64px;
    bottom: 38px;
    margin: 0;
    color: var(--accent);
}
.gateway-page .cell-action { font-size: 0; }
.gateway-page .cell-action svg { width: 24px; }
.gateway-page .hive-cell:hover .cell-action svg { transform: translateX(2px); }
.hive-core {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: calc(var(--cell-w) * .34);
    height: calc(var(--cell-h) * .34);
    display: grid;
    place-items: center;
    background: rgba(8,13,19,.94);
    border: 1px solid rgba(255,255,255,.13);
    clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);
    transform: translate(-50%,-50%);
    filter: drop-shadow(0 18px 28px rgba(0,0,0,.55));
}
.hive-core::before,
.hive-core::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.hive-core::before { left: 30%; background: var(--cyan); box-shadow: 0 0 16px rgba(0,185,238,.75); }
.hive-core::after { right: 30%; background: var(--orange); box-shadow: 0 0 16px rgba(255,121,0,.65); }
.hive-core span {
    width: 42%;
    height: 2px;
    background: linear-gradient(90deg,var(--cyan),var(--orange));
    transform: rotate(-38deg);
}
.hive-core i { position: absolute; inset: 13%; border: 1px solid rgba(255,255,255,.08); clip-path: inherit; }

@media (max-width: 860px) and (min-width: 621px) {
    .gateway-page .gateway-shell { padding-top: 22px; }
    .brand-lockup { gap: 20px; }
    .brand-lockup > .brand { width: 124px; height: 92px; }
    .brand-lockup .intro-copy h1 { font-size: clamp(2.9rem,7.4vw,4.25rem); }
    .gateway-page .hive { --cell-w: min(38vw,258px); margin-top: 10px; margin-bottom: 8px; }
}
@media (max-width: 620px) {
    .brand-lockup { align-items: flex-start; gap: 16px; }
    .brand-lockup > .brand { width: 92px; height: 72px; }
    .brand-lockup .intro-copy h1 { font-size: clamp(2rem,10vw,3rem); }
    .brand-lockup .intro-copy > p:last-child { display: none; }
    .gateway-page .hive {
        --cell-w: min(76vw,330px);
        --cell-h: calc(var(--cell-w) * .76);
        width: var(--cell-w);
        min-height: auto;
        margin: 36px auto;
        display: grid;
        justify-content: center;
        gap: 8px;
    }
    .gateway-page .hive-cell { position: relative; inset: auto; transform: none; }
    .gateway-page .hive-cell:nth-of-type(even) { margin-left: 24px; }
    .gateway-page .hive-cell:nth-of-type(odd) { margin-right: 24px; }
    .gateway-page .hive-cell:hover,
    .gateway-page .hive-cell:focus-visible,
    .gateway-page .hive-cell-1:hover,
    .gateway-page .hive-cell-1:focus-visible,
    .gateway-page .hive-cell-3:hover,
    .gateway-page .hive-cell-3:focus-visible { transform: translateY(-4px); }
    .hive-core { display: none; }
    .gateway-page .cell-surface { padding: 38px 48px 34px; }
}

/* Kiegyensúlyozott 1–2–1 elrendezés, szabályos hatszög ikonok */
.cell-icon {
    width: 58px;
    height: 50px;
    flex: 0 0 auto;
}
.branch-emblem {
    width: 120px;
    height: 104px;
}

@media (min-width: 621px) {
    .gateway-page .hive {
        height: calc(var(--cell-h) * 2);
        min-height: 0;
        margin-top: 22px;
        margin-bottom: 18px;
    }
    .gateway-page .hive-cell-1 {
        top: 0;
    }
    .gateway-page .hive-cell-2,
    .gateway-page .hive-cell-4 {
        top: calc(var(--cell-h) * .5);
    }
    .gateway-page .hive-cell-3 {
        top: var(--cell-h);
        bottom: auto;
    }
}

@media (min-width: 621px) and (max-width: 1100px) {
    .gateway-page .hive {
        --cell-w: clamp(220px, 36vw, 270px);
    }
}

/* Épületgépészet szakági weboldal */
.engineering-page { --engineering: #00b9ee; background: #05090d; }
.engineering-page section { scroll-margin-top: 92px; }
.engineering-grid {
    position: fixed;
    z-index: -3;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.02) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.02) 1px,transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom,#000,transparent 92%);
}
.engineering-container { width: min(1180px,calc(100% - 40px)); margin-inline: auto; }
.engineering-header {
    position: sticky;
    z-index: 50;
    top: 0;
    background: rgba(5,9,13,.84);
    border-bottom: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
}
.engineering-nav-wrap { width:min(1280px,calc(100% - 40px)); min-height:84px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:30px; }
.engineering-header .brand { width:92px; height:64px; }
.engineering-menu { display:flex; align-items:center; gap:clamp(18px,2.5vw,36px); }
.engineering-nav-links { display:flex; align-items:center; gap:clamp(14px,1.75vw,28px); }
.engineering-menu a { position:relative; min-height:48px; display:flex; align-items:center; color:#aeb9c2; text-decoration:none; font-size:.78rem; font-weight:760; letter-spacing:.04em; }
.engineering-menu a::after { content:""; position:absolute; right:0; bottom:7px; left:0; height:2px; background:var(--engineering); transform:scaleX(0); transform-origin:left; transition:transform 180ms ease; }
.engineering-menu a:hover,.engineering-menu a:focus-visible { color:#fff; outline:none; }
.engineering-menu a:hover::after,.engineering-menu a:focus-visible::after { transform:scaleX(1); }
.engineering-menu a[aria-current="page"] { color:#fff; }
.engineering-menu a[aria-current="page"]::after { transform:scaleX(1); }
.engineering-menu .login-button { min-width:112px; padding:0 20px; justify-content:center; color:#00131b; background:var(--engineering); border:1px solid var(--engineering); border-radius:4px; box-shadow:0 0 28px rgba(0,185,238,.16); text-transform:uppercase; letter-spacing:.09em; transition:background 180ms ease,color 180ms ease,box-shadow 180ms ease; }
.engineering-menu .login-button::after { display:none; }
.engineering-menu .login-button:hover,.engineering-menu .login-button:focus-visible,.engineering-menu .login-button[aria-current="page"] { color:#fff; background:#087da5; box-shadow:0 0 34px rgba(0,185,238,.3); outline:3px solid rgba(0,185,238,.23); outline-offset:2px; }
.header-socials { display:flex; align-items:center; gap:8px; max-width:104px; }
.gateway-socials { position:fixed; z-index:20; top:22px; right:22px; }
.social-link { width:44px; min-width:44px; max-width:44px; height:44px; min-height:44px; max-height:44px; flex:0 0 44px; display:grid; place-items:center; overflow:hidden; color:#dceaf1; background:rgba(7,16,23,.82); border:1px solid rgba(255,255,255,.13); border-radius:50%; backdrop-filter:blur(12px); transition:color 180ms ease,background 180ms ease,border-color 180ms ease; }
.social-link svg { width:20px!important; min-width:20px; max-width:20px; height:20px!important; min-height:20px; max-height:20px; flex:0 0 20px; overflow:hidden; fill:currentColor; stroke:none; }
.social-link svg rect,.social-link svg circle { fill:none; stroke:currentColor; stroke-width:1.8; }
.social-link svg .social-icon-dot { fill:currentColor; stroke:none; }
a.social-link:hover,a.social-link:focus-visible { color:#00131b; background:var(--engineering,var(--cyan)); border-color:var(--engineering,var(--cyan)); outline:3px solid rgba(0,185,238,.2); outline-offset:2px; }
.social-link.is-disabled { color:#657580; cursor:help; opacity:.68; }
.menu-toggle { display:none; width:48px; height:48px; padding:12px; border:1px solid var(--line); background:transparent; border-radius:10px; cursor:pointer; }
.menu-toggle span { width:100%; height:2px; margin:5px 0; display:block; background:#eaf2f7; transition:transform 180ms ease,opacity 180ms ease; }

.engineering-hero { min-height:calc(100dvh - 84px); display:grid; align-items:center; overflow:hidden; }
.hero-layout { padding:76px 0 92px; display:grid; grid-template-columns:minmax(0,1.05fr) minmax(390px,.95fr); align-items:center; gap:clamp(50px,8vw,120px); }
.section-kicker { display:flex; align-items:center; gap:10px; margin:0; color:#aab7c1; font-size:.68rem; font-weight:850; letter-spacing:.16em; text-transform:uppercase; }
.section-kicker span { width:36px; height:2px; background:var(--engineering); box-shadow:0 0 14px rgba(0,185,238,.5); }
.hero-copy h1 { max-width:750px; margin:25px 0 0; font-size:clamp(3.5rem,6.3vw,7rem); line-height:.88; letter-spacing:-.07em; }
.hero-copy h1 em { color:var(--engineering); font-style:normal; }
.hero-lead { max-width:640px; margin:30px 0 0; color:#9caab5; font-size:clamp(1.05rem,1.6vw,1.25rem); }
.hero-actions { margin-top:40px; display:flex; align-items:center; flex-wrap:wrap; gap:24px; }
.primary-action { min-height:54px; padding:0 22px; display:inline-flex; align-items:center; gap:18px; color:#00131b; background:var(--engineering); text-decoration:none; font-size:.76rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; border-radius:4px; }
.primary-action svg { width:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.text-action { min-height:48px; display:inline-flex; align-items:center; color:#dce5eb; text-underline-offset:5px; font-size:.8rem; font-weight:750; }
.system-visual { position:relative; min-height:500px; display:grid; place-items:center; }
.system-ring { position:absolute; border:1px solid rgba(0,185,238,.22); border-radius:50%; }
.ring-one { width:400px; height:400px; }
.ring-two { width:276px; height:276px; border-style:dashed; animation:engineering-spin 30s linear infinite; }
.system-ring::before,.system-ring::after { content:""; position:absolute; width:10px; height:10px; background:var(--engineering); border-radius:50%; box-shadow:0 0 18px rgba(0,185,238,.8); }
.system-ring::before { top:12%; left:12%; }.system-ring::after { right:8%; bottom:18%; }
.system-core { position:relative; width:150px; height:130px; display:grid; place-items:center; color:var(--engineering); background:linear-gradient(145deg,rgba(0,185,238,.15),rgba(8,16,23,.94)); border:1px solid rgba(0,185,238,.4); clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); }
.system-core svg { width:64px; fill:none; stroke:currentColor; stroke-width:1.3; stroke-linecap:round; stroke-linejoin:round; }
.system-label { position:absolute; padding:7px 10px; color:#79909f; background:#071017; border:1px solid rgba(255,255,255,.08); font-size:.58rem; font-weight:850; letter-spacing:.14em; }
.label-one { top:20%; left:4%; }.label-two { top:48%; right:-2%; }.label-three { bottom:15%; left:14%; }
@keyframes engineering-spin { to { transform:rotate(360deg); } }

.engineering-section { padding:120px 0; border-top:1px solid rgba(255,255,255,.07); }
.section-heading { margin-bottom:56px; display:grid; grid-template-columns:1.2fr .8fr; align-items:end; gap:50px; }
.section-heading h2,.contact-copy h2 { margin:18px 0 0; font-size:clamp(2.5rem,5vw,5.2rem); line-height:.94; letter-spacing:-.055em; }
.section-heading > p { max-width:480px; margin:0; color:#8998a4; }
.project-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.project-card { min-height:390px; padding:30px; display:flex; flex-direction:column; justify-content:space-between; background:linear-gradient(145deg,rgba(16,28,38,.96),rgba(7,12,17,.98)); border:1px solid rgba(255,255,255,.09); transition:transform 220ms var(--ease),border-color 220ms ease; }
.project-card:hover { transform:translateY(-6px); border-color:rgba(0,185,238,.36); }
.project-number { color:var(--engineering); font-size:.65rem; font-weight:900; letter-spacing:.15em; }
.project-card small { color:var(--engineering); font-size:.61rem; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.project-card h3 { margin:8px 0 0; font-size:1.65rem; letter-spacing:-.035em; }
.project-card p { margin:14px 0 0; color:#8d9aa5; }
.work-section { background:rgba(10,17,23,.58); }
.work-flow { display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid rgba(255,255,255,.12); border-bottom:1px solid rgba(255,255,255,.12); }
.work-flow article { position:relative; min-height:300px; padding:32px 28px; border-right:1px solid rgba(255,255,255,.1); }
.work-flow article:last-child { border-right:0; }
.work-flow span { color:var(--engineering); font-size:.64rem; font-weight:900; letter-spacing:.15em; }
.work-flow h3 { margin:80px 0 0; font-size:1.4rem; }
.work-flow p { color:#8897a2; font-size:.9rem; }

.contact-section { padding:130px 0; background:radial-gradient(circle at 85% 50%,rgba(0,185,238,.12),transparent 38%),#071017; }
.contact-layout { display:grid; grid-template-columns:.9fr 1.1fr; gap:clamp(60px,10vw,140px); }
.contact-copy p:last-child { max-width:500px; margin-top:25px; color:#8f9da8; }
.contact-address { width:fit-content; max-width:500px; margin-top:28px; padding-left:18px; display:grid; gap:6px; color:#dcecf5; border-left:2px solid var(--engineering); text-decoration:none; }
.contact-address span { color:var(--engineering); font-size:.62rem; font-weight:900; letter-spacing:.15em; text-transform:uppercase; }
.contact-address strong { font-size:.9rem; line-height:1.6; }
.contact-address:hover,.contact-address:focus-visible { color:var(--engineering); outline:0; }
.contact-form { display:grid; grid-template-columns:1fr 1fr; gap:22px 18px; }
.contact-form label { display:grid; gap:9px; color:#9cacb8; font-size:.72rem; font-weight:750; letter-spacing:.04em; }
.contact-form label:last-of-type { grid-column:1/-1; }
.contact-form input,.contact-form textarea { width:100%; padding:14px 0; color:#fff; background:transparent; border:0; border-bottom:1px solid rgba(255,255,255,.2); border-radius:0; font:inherit; outline:none; resize:vertical; }
.contact-form input:focus,.contact-form textarea:focus { border-color:var(--engineering); }
.contact-form button,.auth-form button { min-height:54px; color:#00131b; background:var(--engineering); border:1px solid var(--engineering); border-radius:4px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; cursor:pointer; transition:background 180ms ease,color 180ms ease,box-shadow 180ms ease; }
.contact-form button { grid-column:1/-1; margin-top:8px; }
.contact-form button:hover,.contact-form button:focus-visible,.auth-form button:hover,.auth-form button:focus-visible { color:#fff; background:#087da5; box-shadow:0 0 28px rgba(0,185,238,.24); outline:3px solid rgba(0,185,238,.2); outline-offset:2px; }
.contact-form .honeypot { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-notice { grid-column:1/-1; padding:14px 16px; color:#e8f5fb; background:rgba(0,185,238,.09); border:1px solid rgba(0,185,238,.34); font-size:.86rem; line-height:1.55; }
.form-notice-error { color:#ffd9d9; background:rgba(220,38,38,.11); border-color:rgba(248,113,113,.42); }
.form-notice-success { color:#c9ffe8; background:rgba(5,150,105,.12); border-color:rgba(52,211,153,.38); }
.details-section { padding:110px 0; }
.details-grid { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid rgba(255,255,255,.1); }
.details-grid div { padding:30px 24px; display:grid; gap:8px; border-right:1px solid rgba(255,255,255,.1); }
.details-grid div:last-child { border-right:0; }
.details-grid small { color:var(--engineering); font-size:.64rem; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.details-grid strong { color:#8b99a4; font-size:.95rem; }
.details-grid a { color:#dcecf5; text-underline-offset:5px; }
.details-grid a:hover,.details-grid a:focus-visible { color:var(--engineering); }
.contact-map { margin-top:46px; display:grid; grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr); min-height:430px; background:linear-gradient(145deg,rgba(15,29,40,.98),rgba(6,12,17,.98)); border:1px solid rgba(255,255,255,.1); overflow:hidden; }
.contact-map-copy { padding:clamp(30px,4vw,56px); display:flex; flex-direction:column; align-items:flex-start; justify-content:center; }
.contact-map-copy h2 { margin:18px 0 0; font-size:clamp(2rem,3.8vw,4rem); line-height:.95; letter-spacing:-.05em; }
.contact-map-copy > p:last-of-type { margin:22px 0 30px; color:#8f9da8; line-height:1.7; }
.contact-map-frame { min-height:430px; position:relative; background:#071017; }
.contact-map-frame::after { content:""; position:absolute; inset:0; pointer-events:none; box-shadow:inset 26px 0 50px rgba(5,9,13,.34); }
.contact-map-frame iframe { width:100%; height:100%; min-height:430px; display:block; border:0; filter:grayscale(.72) invert(.9) hue-rotate(175deg) saturate(.9) contrast(.92); }
.auth-section { padding:100px 0; background:radial-gradient(circle at 78% 48%,rgba(0,185,238,.12),transparent 34%); }
.auth-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(360px,480px); align-items:center; gap:clamp(60px,10vw,150px); }
.auth-copy h1,.account-panel h1 { margin:18px 0 0; font-size:clamp(3.2rem,6vw,6.4rem); line-height:.9; letter-spacing:-.06em; }
.auth-copy > p:last-child,.account-panel > p { max-width:560px; margin:24px 0 0; color:#93a3af; }
.auth-form { padding:clamp(28px,4vw,48px); display:grid; gap:22px; background:linear-gradient(145deg,rgba(15,29,40,.98),rgba(6,12,17,.98)); border:1px solid rgba(255,255,255,.11); box-shadow:0 30px 80px rgba(0,0,0,.32); }
.auth-form-heading small { color:var(--engineering); font-size:.62rem; font-weight:900; letter-spacing:.16em; }
.auth-form-heading h2 { margin:6px 0 0; font-size:2rem; }
.auth-form label { display:grid; gap:9px; color:#a9b7c1; font-size:.73rem; font-weight:750; letter-spacing:.04em; }
.auth-form input { width:100%; min-height:50px; padding:0 14px; color:#fff; background:#071017; border:1px solid rgba(255,255,255,.16); border-radius:4px; font:inherit; outline:none; }
.auth-form input:focus { border-color:var(--engineering); box-shadow:0 0 0 3px rgba(0,185,238,.16); }
.auth-help { margin:0; color:#7f8f9b; font-size:.78rem; text-align:center; }
.auth-help a { color:#c9e9f5; }
.account-panel { max-width:900px; }
.account-actions { margin-top:36px; display:flex; align-items:center; flex-wrap:wrap; gap:16px; }
.account-actions form { margin:0; }
.secondary-action { min-height:54px; padding:0 22px; color:#dbe8ef; background:transparent; border:1px solid rgba(255,255,255,.18); border-radius:4px; font-weight:800; cursor:pointer; }
.secondary-action:hover,.secondary-action:focus-visible { border-color:var(--engineering); outline:3px solid rgba(0,185,238,.15); outline-offset:2px; }

/* Projektek és munkáink galéria */
.gallery-page-section { min-height:calc(100dvh - 84px); padding:110px 0 130px; align-items:start; }
.gallery-page-intro { margin-bottom:46px; }
.gallery-intro-actions { display:grid; justify-items:start; gap:22px; }
.gallery-intro-actions p { max-width:470px; margin:0; color:#8998a4; }
.creator-toggle { min-height:50px; padding:0 20px; color:#00131b; background:var(--engineering); border:1px solid var(--engineering); border-radius:4px; font-size:.72rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; cursor:pointer; transition:background 180ms ease,color 180ms ease,box-shadow 180ms ease; }
.creator-toggle:hover,.creator-toggle:focus-visible { color:#fff; background:#087da5; box-shadow:0 0 28px rgba(0,185,238,.24); outline:3px solid rgba(0,185,238,.18); outline-offset:2px; }
.gallery-notice { margin-bottom:26px; }
.creator-form { margin:0 0 48px; padding:clamp(24px,4vw,44px); display:grid; grid-template-columns:1fr 1fr; gap:22px; background:linear-gradient(145deg,rgba(15,29,40,.98),rgba(6,12,17,.98)); border:1px solid rgba(0,185,238,.28); box-shadow:0 28px 70px rgba(0,0,0,.28); }
.creator-form[hidden] { display:none; }
.creator-form-heading,.creator-form label:nth-of-type(2),.creator-form .file-field,.creator-form > button { grid-column:1/-1; }
.creator-form-heading small { color:var(--engineering); font-size:.62rem; font-weight:900; letter-spacing:.16em; }
.creator-form-heading h2 { margin:6px 0 0; font-size:clamp(1.8rem,3vw,2.5rem); }
.creator-form-heading p { margin:8px 0 0; color:#778994; font-size:.8rem; }
.creator-form label { display:grid; gap:9px; color:#a9b7c1; font-size:.73rem; font-weight:750; letter-spacing:.04em; }
.creator-form input[type="text"],.creator-form select,.creator-form textarea { width:100%; padding:14px; color:#fff; background:#071017; border:1px solid rgba(255,255,255,.16); border-radius:4px; font:inherit; outline:none; resize:vertical; }
.creator-form input[type="text"] { min-height:50px; }
.creator-form select { min-height:50px; color-scheme:dark; }
.creator-form input[type="text"]:focus,.creator-form select:focus,.creator-form textarea:focus,.creator-form input[type="file"]:focus-visible { border-color:var(--engineering); box-shadow:0 0 0 3px rgba(0,185,238,.16); }
.file-field { padding:18px; background:rgba(0,185,238,.045); border:1px dashed rgba(0,185,238,.32); }
.creator-form input[type="file"] { width:100%; min-height:48px; padding:10px; color:#b8c7d0; background:#071017; border:1px solid rgba(255,255,255,.14); border-radius:4px; cursor:pointer; }
.creator-form input[type="file"]::file-selector-button { min-height:34px; margin-right:12px; padding:0 14px; color:#00131b; background:var(--engineering); border:0; border-radius:3px; font-weight:800; cursor:pointer; }
.file-field-note { color:#71838f; font-size:.75rem; font-weight:500; }
.creator-form > button { min-height:54px; color:#00131b; background:var(--engineering); border:1px solid var(--engineering); border-radius:4px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; cursor:pointer; }
.creator-form > button:hover,.creator-form > button:focus-visible { color:#fff; background:#087da5; outline:3px solid rgba(0,185,238,.18); outline-offset:2px; }
.creator-form-compact { grid-template-columns:.8fr 1.2fr; }
.creator-form-compact .creator-form-heading { grid-column:1/-1; }
.creator-form-compact label:nth-of-type(2) { grid-column:2; }
.creator-form-compact > button { grid-column:1/-1; }
.work-upload-form .file-field,.work-title-list,.work-upload-form noscript { grid-column:1/-1; }
.work-title-list { display:grid; gap:12px; }
.work-title-list[hidden] { display:none; }
.work-title-row { padding:12px; display:grid; grid-template-columns:84px minmax(0,1fr); align-items:center; gap:16px; background:#071017; border:1px solid rgba(255,255,255,.11); }
.work-title-row img { width:84px; height:68px; display:block; object-fit:cover; background:#030609; }
.work-title-row label { min-width:0; }
.work-title-row label:first-line { color:#7f919d; }
@media (max-width:620px) {
    .work-title-row { grid-template-columns:64px minmax(0,1fr); gap:12px; }
    .work-title-row img { width:64px; height:56px; }
}
.gallery-empty { min-height:250px; padding:44px; display:grid; align-content:center; justify-items:start; background:rgba(10,18,24,.62); border:1px solid rgba(255,255,255,.09); }
.gallery-empty span { color:var(--engineering); font-size:.65rem; font-weight:900; letter-spacing:.16em; }
.gallery-empty h2 { margin:16px 0 0; font-size:clamp(1.6rem,3vw,2.4rem); }
.gallery-empty p { margin:10px 0 0; color:#82929e; }
.project-filters { margin:0 0 26px; display:flex; flex-wrap:wrap; gap:10px; }
.project-filters button { min-height:42px; padding:0 16px; color:#9babb6; background:#081118; border:1px solid rgba(255,255,255,.13); border-radius:999px; font-size:.7rem; font-weight:850; letter-spacing:.06em; text-transform:uppercase; cursor:pointer; transition:color 180ms ease,background 180ms ease,border-color 180ms ease; }
.project-filters button:hover,.project-filters button:focus-visible { color:#fff; border-color:rgba(0,185,238,.55); outline:none; }
.project-filters button.is-active { color:#00131b; background:var(--engineering); border-color:var(--engineering); }
.portfolio-grid { display:grid; gap:26px; }
.portfolio-card[hidden] { display:none; }
.portfolio-card { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr); background:linear-gradient(145deg,rgba(15,27,36,.98),rgba(6,11,16,.98)); border:1px solid rgba(255,255,255,.1); overflow:hidden; }
.portfolio-images { padding:12px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-content:start; gap:8px; background:#030609; }
.gallery-thumb { min-width:0; padding:0; display:block; aspect-ratio:1.35; overflow:hidden; background:#071017; border:1px solid rgba(255,255,255,.08); cursor:zoom-in; }
.portfolio-images .gallery-thumb-main { grid-column:1/-1; aspect-ratio:16/9; }
.gallery-thumb img { width:100%; height:100%; display:block; object-fit:cover; transition:transform 240ms ease,filter 240ms ease; }
.gallery-thumb:hover img,.gallery-thumb:focus-visible img { transform:scale(1.035); filter:brightness(1.12); }
.gallery-thumb:focus-visible { outline:3px solid var(--engineering); outline-offset:2px; }
.portfolio-copy { padding:clamp(28px,4vw,52px); display:flex; flex-direction:column; justify-content:center; }
.portfolio-copy small { color:var(--engineering); font-size:.62rem; font-weight:900; letter-spacing:.15em; }
.portfolio-copy h2 { margin:12px 0 0; font-size:clamp(2rem,3.6vw,3.8rem); line-height:.96; letter-spacing:-.05em; }
.portfolio-copy p { margin:24px 0 0; color:#91a0aa; line-height:1.75; }
.project-admin-actions { margin-top:30px; padding-top:22px; display:flex; flex-wrap:wrap; gap:10px; border-top:1px solid rgba(255,255,255,.1); }
.project-admin-actions form { margin:0; }
.project-admin-actions button { min-height:44px; padding:0 16px; color:#dcecf5; background:#0b161d; border:1px solid rgba(0,185,238,.35); border-radius:4px; font-size:.69rem; font-weight:850; letter-spacing:.06em; text-transform:uppercase; cursor:pointer; transition:background 180ms ease,border-color 180ms ease,color 180ms ease; }
.project-admin-actions button:hover,.project-admin-actions button:focus-visible { color:#00131b; background:var(--engineering); border-color:var(--engineering); outline:3px solid rgba(0,185,238,.2); outline-offset:2px; }
.project-admin-actions .project-delete-button { color:#ffc7c7; border-color:rgba(248,113,113,.46); }
.project-admin-actions .project-delete-button:hover,.project-admin-actions .project-delete-button:focus-visible { color:#fff; background:#b91c1c; border-color:#ef4444; outline-color:rgba(239,68,68,.24); }
.project-edit-form { grid-column:1/-1; padding:clamp(24px,4vw,42px); display:grid; grid-template-columns:1fr 1fr; gap:20px; background:#081118; border-top:1px solid rgba(0,185,238,.28); }
.project-edit-form[hidden] { display:none; }
.project-edit-form .creator-form-heading,.project-edit-description,.project-edit-submit { grid-column:1/-1; }
.project-edit-form h3 { margin:6px 0 0; font-size:clamp(1.5rem,3vw,2.2rem); }
.project-edit-form label { display:grid; gap:9px; color:#a9b7c1; font-size:.73rem; font-weight:750; letter-spacing:.04em; }
.project-edit-form input,.project-edit-form select,.project-edit-form textarea { width:100%; min-height:50px; padding:14px; color:#fff; background:#050b0f; border:1px solid rgba(255,255,255,.16); border-radius:4px; font:inherit; outline:none; resize:vertical; }
.project-edit-form select { color-scheme:dark; }
.project-edit-form input:focus,.project-edit-form select:focus,.project-edit-form textarea:focus { border-color:var(--engineering); box-shadow:0 0 0 3px rgba(0,185,238,.16); }
.project-edit-submit { display:flex; flex-wrap:wrap; gap:10px; }
.project-edit-submit button { min-height:48px; padding:0 18px; color:#00131b; background:var(--engineering); border:1px solid var(--engineering); border-radius:4px; font-weight:850; cursor:pointer; }
.project-edit-submit .project-edit-cancel { color:#c6d2d9; background:transparent; border-color:rgba(255,255,255,.2); }
.project-edit-submit button:hover,.project-edit-submit button:focus-visible { color:#fff; background:#087da5; outline:3px solid rgba(0,185,238,.18); outline-offset:2px; }
.works-gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.work-gallery-card { background:#091117; border:1px solid rgba(255,255,255,.1); }
.work-gallery-images { padding:8px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.work-gallery-images .gallery-thumb:first-child { grid-column:1/-1; aspect-ratio:16/10; }
.work-gallery-copy { padding:20px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.work-gallery-card h2 { margin:0; font-size:1.25rem; letter-spacing:-.025em; }
.work-gallery-copy form { margin:0; }
.work-gallery-copy button { min-height:44px; padding:0 15px; color:#ffc7c7; background:transparent; border:1px solid rgba(248,113,113,.46); border-radius:4px; font-size:.68rem; font-weight:850; letter-spacing:.06em; text-transform:uppercase; cursor:pointer; }
.work-gallery-copy button:hover,.work-gallery-copy button:focus-visible { color:#fff; background:#b91c1c; border-color:#ef4444; outline:3px solid rgba(239,68,68,.24); outline-offset:2px; }
.image-lightbox { width:100vw; max-width:none; height:100dvh; max-height:none; margin:0; padding:24px; color:#fff; background:rgba(2,5,8,.94); border:0; overflow:auto; }
.image-lightbox::backdrop { background:rgba(0,0,0,.82); backdrop-filter:blur(8px); }
.lightbox-panel { position:relative; width:min(1180px,100%); min-height:calc(100dvh - 48px); margin:auto; display:grid; grid-template-rows:minmax(0,1fr) auto; align-items:center; }
.lightbox-panel > img { width:100%; max-height:calc(100dvh - 150px); object-fit:contain; }
.lightbox-close { position:fixed; z-index:2; top:20px; right:20px; width:48px; height:48px; padding:12px; color:#fff; background:#0b151c; border:1px solid rgba(255,255,255,.2); border-radius:50%; cursor:pointer; }
.lightbox-close svg { width:100%; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.lightbox-close:hover,.lightbox-close:focus-visible { color:#00131b; background:var(--engineering); outline:3px solid rgba(0,185,238,.3); outline-offset:2px; }
.lightbox-controls { min-height:72px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:18px; }
.lightbox-controls p { margin:0; color:#c2d0d8; text-align:center; }
.lightbox-controls button { min-width:108px; min-height:46px; padding:0 16px; color:#dce7ed; background:#0b151c; border:1px solid rgba(255,255,255,.18); border-radius:4px; font-weight:800; cursor:pointer; }
.lightbox-controls button:hover,.lightbox-controls button:focus-visible { border-color:var(--engineering); outline:3px solid rgba(0,185,238,.18); outline-offset:2px; }
.lightbox-controls button:disabled { opacity:.38; cursor:default; }
.engineering-footer { padding:35px 0; border-top:1px solid rgba(255,255,255,.1); }
.engineering-footer .engineering-container { display:flex; align-items:center; justify-content:space-between; gap:24px; color:#74838e; font-size:.72rem; }
.engineering-footer .brand { width:86px; height:62px; }
.engineering-footer a { color:#a9b6c0; text-underline-offset:4px; }
.engineering-subpage { min-height:100dvh; display:flex; flex-direction:column; }
.engineering-subpage > main { flex:1; display:grid; }
.page-section { min-height:calc(100dvh - 84px); display:grid; align-items:center; }
.page-intro h1,.contact-copy h1 { margin:18px 0 0; font-size:clamp(2.7rem,5vw,5.3rem); line-height:.94; letter-spacing:-.055em; }
.page-intro { margin-bottom:56px; }

@media (max-width:900px) {
    .menu-toggle { display:block; }
    .engineering-menu { position:absolute; top:84px; right:20px; left:20px; padding:16px; display:none; align-items:stretch; flex-direction:column; gap:12px; background:#0b131a; border:1px solid rgba(255,255,255,.12); box-shadow:0 24px 60px rgba(0,0,0,.45); }
    .engineering-menu.is-open { display:flex; }
    .engineering-nav-links { display:flex; align-items:stretch; flex-direction:column; gap:0; }
    .engineering-nav-links a { padding:0 12px; border-bottom:1px solid rgba(255,255,255,.07); }
    .engineering-nav-links a:last-child { border-bottom:0; }
    .engineering-menu .login-button { width:100%; }
    .engineering-header .header-socials { margin-left:auto; }
    .hero-layout { grid-template-columns:1fr; }
    .system-visual { min-height:420px; }
    .project-grid { grid-template-columns:1fr; }
    .project-card { min-height:280px; }
    .work-flow { grid-template-columns:1fr 1fr; }
    .work-flow article:nth-child(2) { border-right:0; }
    .work-flow article:nth-child(-n+2) { border-bottom:1px solid rgba(255,255,255,.1); }
    .contact-layout { grid-template-columns:1fr; }
    .auth-layout { grid-template-columns:1fr; }
    .portfolio-card { grid-template-columns:1fr; }
    .project-edit-form { grid-template-columns:1fr; }
    .project-edit-form label { grid-column:1/-1; }
    .works-gallery-grid { grid-template-columns:1fr 1fr; }
    .creator-form-compact { grid-template-columns:1fr; }
    .creator-form-compact label:nth-of-type(2) { grid-column:1; }
    .contact-map { grid-template-columns:1fr; }
    .contact-map-frame,.contact-map-frame iframe { min-height:380px; }
}
@media (max-width:620px) {
    .gateway-page .gateway-shell { padding-top:calc(70px + env(safe-area-inset-top,0px)); }
    .engineering-container,.engineering-nav-wrap { width:min(100% - 28px,560px); }
    .engineering-header .brand { width:78px; height:58px; }
    .engineering-nav-wrap { gap:10px; }
    .engineering-header .header-socials { gap:6px; }
    .engineering-header .social-link { width:42px; min-width:42px; max-width:42px; height:42px; min-height:42px; max-height:42px; flex-basis:42px; }
    .gateway-socials { top:calc(12px + env(safe-area-inset-top,0px)); right:14px; }
    .gateway-socials .social-link { width:40px; min-width:40px; max-width:40px; height:40px; min-height:40px; max-height:40px; flex-basis:40px; }
    .hero-layout { padding:62px 0 74px; gap:32px; }
    .hero-copy h1 { font-size:clamp(3.15rem,16vw,5rem); }
    .system-visual { min-height:340px; transform:scale(.82); margin:-28px; }
    .engineering-section,.contact-section,.details-section { padding:82px 0; }
    .section-heading { grid-template-columns:1fr; gap:22px; }
    .project-card { min-height:250px; }
    .work-flow { grid-template-columns:1fr; }
    .work-flow article { min-height:230px; border-right:0; border-bottom:1px solid rgba(255,255,255,.1); }
    .work-flow article:last-child { border-bottom:0; }
    .work-flow h3 { margin-top:52px; }
    .contact-form { grid-template-columns:1fr; }
    .contact-form label,.contact-form label:last-of-type,.contact-form button { grid-column:1; }
    .creator-form { grid-template-columns:1fr; padding:22px; }
    .creator-form-heading,.creator-form label:nth-of-type(2),.creator-form .file-field,.creator-form > button { grid-column:1; }
    .portfolio-images { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .works-gallery-grid { grid-template-columns:1fr; }
    .gallery-page-section { padding:78px 0 92px; }
    .lightbox-controls { grid-template-columns:1fr 1fr; padding-top:14px; }
    .lightbox-controls p { grid-column:1/-1; grid-row:1; }
    .lightbox-controls button { grid-row:2; }
    .image-lightbox { padding:14px; }
    .lightbox-panel { min-height:calc(100dvh - 28px); }
    .details-grid { grid-template-columns:1fr; }
    .details-grid div { border-right:0; border-bottom:1px solid rgba(255,255,255,.1); }
    .details-grid div:last-child { border-bottom:0; }
    .contact-map { margin-top:30px; }
    .contact-map-frame,.contact-map-frame iframe { min-height:320px; }
    .engineering-footer .engineering-container { align-items:flex-start; flex-direction:column; }
}
