:root {
  --bg: #050914;
  --bg-soft: #0a1020;
  --surface: rgba(13, 20, 38, 0.78);
  --surface-strong: #10182b;
  --line: rgba(139, 160, 210, 0.16);
  --text: #f5f7ff;
  --muted: #a7b0c6;
  --primary: #5d6cff;
  --primary-2: #4db7ff;
  --green: #48e2b4;
  --radius: 20px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 10%, rgba(49, 74, 255, 0.12), transparent 28%),
    radial-gradient(circle at 10% 40%, rgba(0, 174, 255, 0.06), transparent 25%),
    var(--bg);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  z-index: -2;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

#tech-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: .42;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(5, 9, 20, .75);
  backdrop-filter: blur(18px);
}

.brand { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.brand-mark { color: var(--primary-2); font: 700 1.15rem "JetBrains Mono", monospace; }
.main-nav { display: flex; gap: 30px; font-size: .92rem; color: #d8def0; }
.main-nav a { position: relative; transition: color .25s ease; }
.main-nav a::after { content:""; position:absolute; left:0; bottom:-8px; width:0; height:2px; background:linear-gradient(90deg,var(--primary),var(--primary-2)); transition: width .25s ease; }
.main-nav a:hover { color:#fff; }
.main-nav a:hover::after { width:100%; }
.menu-toggle { display:none; border:0; background:none; padding:8px; }
.menu-toggle span { display:block; width:24px; height:2px; background:#fff; margin:5px 0; }

.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0; }
.hero { min-height: calc(100vh - 72px); display:grid; grid-template-columns: 1.02fr .98fr; gap:70px; align-items:center; padding-top:80px; }
.eyebrow, .section-kicker { color:#7d8cff; font:500 .9rem "JetBrains Mono", monospace; letter-spacing:.02em; }
.eyebrow span { color:var(--primary-2); }
.hero h1 { margin:18px 0 22px; font-size:clamp(3.7rem, 7vw, 6.7rem); line-height:.92; letter-spacing:-.065em; }
.hero-lead { margin:0 0 18px; font-size:clamp(1.25rem,2.3vw,1.8rem); font-weight:700; }
.hero-lead span { background:linear-gradient(90deg,#7480ff,#45c4ff); -webkit-background-clip:text; color:transparent; }
.hero-description { max-width:650px; color:var(--muted); font-size:1.04rem; }
.hero-actions { display:flex; flex-wrap:wrap; gap:14px; margin:34px 0 26px; }
.button { min-height:52px; display:inline-flex; align-items:center; justify-content:center; gap:12px; padding:0 22px; border-radius:11px; font-weight:700; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.button:hover { transform:translateY(-3px); }
.button-primary { background:linear-gradient(135deg,var(--primary),#3c5cff); box-shadow:0 14px 38px rgba(65,83,255,.28); }
.button-secondary { border:1px solid var(--line); background:rgba(255,255,255,.025); }
.button-secondary:hover { border-color:rgba(118,137,255,.55); }
.hero-meta { display:flex; flex-wrap:wrap; gap:10px; }
.hero-meta span, .tag-list span { border:1px solid var(--line); background:rgba(255,255,255,.025); color:#b8c1d8; padding:6px 10px; border-radius:999px; font:500 .72rem "JetBrains Mono", monospace; }

.hero-visual { position:relative; min-height:540px; }
.glow-orb { position:absolute; border-radius:50%; filter:blur(22px); }
.glow-one { width:300px; height:300px; right:5%; top:12%; background:rgba(75,93,255,.18); }
.glow-two { width:180px; height:180px; left:8%; bottom:6%; background:rgba(0,180,255,.11); }
.terminal-window { position:absolute; left:0; top:45px; width:80%; border:1px solid rgba(131,153,218,.23); border-radius:18px; background:linear-gradient(145deg,rgba(12,19,34,.98),rgba(5,10,20,.94)); box-shadow:var(--shadow); transform:perspective(1200px) rotateY(-7deg) rotateX(2deg); overflow:hidden; }
.terminal-topbar { height:44px; display:flex; align-items:center; justify-content:space-between; padding:0 16px; color:#66728d; border-bottom:1px solid var(--line); font:500 .72rem "JetBrains Mono", monospace; }
.window-dots { display:flex; gap:7px; }
.window-dots span { width:8px; height:8px; border-radius:50%; background:#40506e; }
.terminal-body { min-height:350px; padding:24px; color:#cbd4eb; font:500 clamp(.72rem,1.1vw,.88rem)/1.85 "JetBrains Mono", monospace; }
.terminal-body p { margin:0; }
.indent { padding-left:24px; }.indent-2 { padding-left:48px; }
.code-blue { color:#58a6ff; }.code-yellow { color:#f6c85f; }.code-green { color:#52d6a7; }
.terminal-line { margin-top:30px!important; color:#9faac3; }
.terminal-line > span:first-child { color:#52d6a7; margin-right:10px; }
.cursor { display:inline-block; width:8px; height:17px; margin-left:8px; background:#7381ff; vertical-align:middle; animation:blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity:0; } }

.server-rack { position:absolute; right:0; top:82px; width:170px; padding:14px; border-radius:16px; border:1px solid rgba(131,153,218,.2); background:linear-gradient(180deg,#10182a,#070b14); box-shadow:var(--shadow); transform:perspective(900px) rotateY(-10deg); }
.server-unit { height:58px; margin:9px 0; border-radius:8px; border:1px solid rgba(255,255,255,.06); background:#0b1120; display:flex; align-items:center; gap:7px; padding:0 12px; }
.server-unit span { width:54px; height:6px; border-radius:5px; background:linear-gradient(90deg,#24d3a4,#3575ff); box-shadow:0 0 18px rgba(36,211,164,.35); }
.server-unit i { width:6px; height:6px; border-radius:50%; background:#2b3c5f; }
.cloud-lock { position:absolute; right:1%; bottom:26px; width:230px; height:160px; filter:drop-shadow(0 0 34px rgba(58,105,255,.38)); }
.cloud-shape { position:absolute; left:20px; bottom:18px; width:190px; height:86px; border:4px solid #4b79ff; border-radius:48px; background:rgba(15,31,76,.72); }
.cloud-shape::before,.cloud-shape::after { content:""; position:absolute; border:4px solid #4b79ff; background:#10204e; border-bottom:0; }
.cloud-shape::before { width:74px; height:72px; border-radius:50% 50% 0 0; left:27px; top:-52px; }
.cloud-shape::after { width:58px; height:55px; border-radius:50% 50% 0 0; right:24px; top:-37px; }
.lock-body { position:absolute; left:94px; bottom:0; width:64px; height:70px; border-radius:10px; background:linear-gradient(180deg,#112968,#09132d); border:2px solid #4693ff; box-shadow:0 0 26px rgba(54,112,255,.45); }
.lock-body::before { content:""; position:absolute; left:16px; top:-31px; width:28px; height:34px; border:4px solid #4693ff; border-bottom:0; border-radius:20px 20px 0 0; }
.lock-body span { position:absolute; left:29px; top:24px; width:7px; height:22px; border-radius:6px; background:#50baff; }

.section-heading { margin-bottom:44px; }
.section-heading-row { display:flex; justify-content:space-between; gap:40px; align-items:end; }
.section-heading h2 { margin:10px 0 0; max-width:820px; font-size:clamp(2.2rem,4.5vw,4rem); line-height:1.08; letter-spacing:-.045em; }
.section-note { max-width:340px; color:var(--muted); }
.about-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.about-card, .tech-card { border:1px solid var(--line); border-radius:var(--radius); background:linear-gradient(145deg,rgba(14,22,41,.76),rgba(8,13,24,.72)); transition:transform .25s ease,border-color .25s ease,background .25s ease; }
.about-card { min-height:240px; padding:28px; }
.about-card:hover,.tech-card:hover { transform:translateY(-6px); border-color:rgba(108,127,255,.42); background:linear-gradient(145deg,rgba(19,29,55,.86),rgba(8,14,28,.78)); }
.card-number { font:600 .74rem "JetBrains Mono",monospace; color:#5d6cff; }
.about-card h3 { margin:58px 0 10px; font-size:1.15rem; }
.about-card p { margin:0; color:var(--muted); font-size:.94rem; }

.projects-grid { display:grid; grid-template-columns:1.2fr .9fr .9fr; gap:18px; }
.project-card { overflow:hidden; border:1px solid var(--line); border-radius:var(--radius); background:rgba(10,16,30,.82); transition:transform .3s ease,border-color .3s ease; }
.project-card:hover { transform:translateY(-8px); border-color:rgba(111,130,255,.48); }
.project-preview { height:250px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.project-featured .project-preview { height:290px; }
.safefoto-preview { background:linear-gradient(145deg,#111e38,#07101f); }
.preview-browser { width:84%; border:1px solid rgba(255,255,255,.14); border-radius:12px; overflow:hidden; box-shadow:0 22px 45px rgba(0,0,0,.38); transform:rotate(-2deg); }
.preview-bar { height:22px; background:#0a1020; padding:7px; display:flex; gap:4px; }
.preview-bar span { width:5px;height:5px;border-radius:50%;background:#65728f; }
.preview-content { min-height:185px; padding:28px; background:radial-gradient(circle at 70% 25%,rgba(94,113,255,.28),transparent 35%),linear-gradient(135deg,#18233c,#0c1325); }
.preview-logo { font-weight:800; font-size:1rem; }.preview-title { margin-top:30px; font-size:1.6rem; line-height:1.05; font-weight:800; }.preview-button { width:86px;height:13px;margin-top:25px;border-radius:5px;background:#5668ff; }
.linguists-preview { background:#f1e7d4; color:#183b62; }
.linguists-board { position:relative; width:78%; min-height:190px; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; }
.linguists-board strong { font-size:2.5rem; line-height:.9; }.linguists-board small { margin-top:14px; color:#6d7890; }
.bubble { position:absolute; display:grid; place-items:center; width:42px;height:42px;border-radius:50%; background:#fff; font-weight:800; box-shadow:0 10px 20px rgba(0,0,0,.09); }
.bubble-a { right:2%;top:15%;}.bubble-b{right:18%;bottom:7%;}.bubble-c{left:42%;top:0;}
.config-preview { background:radial-gradient(circle at 50% 35%,rgba(93,108,255,.18),transparent 40%),#070a11; }
.config-ui { width:88%; height:180px; display:grid;grid-template-columns:1.5fr .8fr;gap:15px; }
.product-model { position:relative; border:1px solid #1e2a42;border-radius:10px;background:linear-gradient(145deg,#151922,#090b11); }
.product-model span { position:absolute;left:30%;top:24%;width:72px;height:86px;border:3px solid #7b8391;border-radius:26px 26px 18px 18px;transform:rotate(-8deg); }
.product-model i { position:absolute;left:41%;top:57%;width:4px;height:58px;background:#707988;box-shadow:23px 36px 0 -1px #707988,-24px 36px 0 -1px #707988; }
.config-panel { padding:16px;border:1px solid #1e2a42;border-radius:10px;background:#0c111c;font-size:.7rem; }
.config-panel b { display:block;margin-bottom:18px; }.config-panel span { display:block;height:16px;margin:10px 0;border-radius:5px;background:#151e30;border:1px solid #26324b; }
.project-content { padding:24px; }
.project-heading { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.project-heading h3 { margin:0;font-size:1.25rem; }.project-label { padding:5px 9px;border-radius:999px;background:rgba(84,101,255,.16);color:#8390ff;font-size:.68rem;white-space:nowrap; }
.project-content p { color:var(--muted);font-size:.92rem; }
.tag-list { display:flex;flex-wrap:wrap;gap:7px;margin-top:18px; }

.tech-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.tech-card { min-height:125px;padding:24px;display:flex;flex-direction:column;justify-content:flex-end; }
.tech-card strong { font:600 1rem "JetBrains Mono",monospace; }.tech-card span { margin-top:7px;color:var(--muted);font-size:.8rem; }

.infrastructure-panel { padding:50px;border:1px solid var(--line);border-radius:28px;background:linear-gradient(135deg,rgba(16,25,47,.88),rgba(7,12,23,.9));box-shadow:var(--shadow); }
.infra-copy { display:grid;grid-template-columns:1fr 1.1fr;gap:50px;align-items:end; }
.infra-copy h2 { margin:10px 0 0;font-size:clamp(2.1rem,4.2vw,3.8rem);line-height:1.04; }.infra-copy p:last-child { color:var(--muted); }
.infra-flow { display:grid;grid-template-columns:1fr 50px 1fr 50px 1fr 50px 1fr;align-items:center;margin-top:50px; }
.flow-node { min-height:130px;padding:20px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.02); }
.flow-node span { color:#6575ff;font:600 .75rem "JetBrains Mono",monospace; }.flow-node strong,.flow-node small{display:block;}.flow-node strong{margin-top:20px;}.flow-node small{margin-top:5px;color:var(--muted);font-size:.75rem;}.flow-line{height:1px;background:linear-gradient(90deg,rgba(86,105,255,.2),rgba(86,105,255,.85),rgba(86,105,255,.2));}

.contact-section { padding-top:40px; }
.contact-box { display:flex;align-items:center;justify-content:space-between;gap:40px;padding:46px 50px;border:1px solid rgba(97,117,255,.28);border-radius:28px;background:radial-gradient(circle at 80% 20%,rgba(67,97,255,.15),transparent 30%),rgba(13,20,38,.85); }
.contact-box h2 { margin:8px 0;font-size:clamp(2rem,4vw,3.5rem);letter-spacing:-.04em; }.contact-box p { color:var(--muted); }.contact-actions { display:flex;flex-direction:column;align-items:flex-end;gap:12px; }.contact-actions span { color:#8994ae;font-size:.82rem; }
.site-footer { width:min(1180px,calc(100% - 40px));margin:0 auto;padding:30px 0 42px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:25px;color:#6f7890;font-size:.78rem; }

.reveal { opacity:0; transform:translateY(24px); transition:opacity .7s ease,transform .7s ease; }.reveal.visible { opacity:1;transform:none; }

@media (max-width: 980px) {
  .hero { grid-template-columns:1fr; padding-top:60px; }
  .hero-visual { min-height:510px; }
  .about-grid,.tech-grid { grid-template-columns:repeat(2,1fr); }
  .projects-grid { grid-template-columns:1fr 1fr; }.project-featured{grid-column:1/-1;}
  .infra-copy { grid-template-columns:1fr;gap:20px; }.infra-flow { grid-template-columns:1fr 1fr;gap:14px; }.flow-line{display:none;}
}

@media (max-width: 760px) {
  .site-header { padding:0 20px; }.brand span:last-child{font-size:.9rem;}
  .menu-toggle { display:block; }.main-nav { position:absolute;top:72px;left:0;right:0;padding:18px 20px 24px;display:none;flex-direction:column;gap:18px;background:rgba(5,9,20,.97);border-bottom:1px solid var(--line); }.main-nav.open{display:flex;}
  .section { width:min(100% - 28px,1180px);padding:78px 0; }
  .hero { min-height:auto;gap:36px;padding-top:50px; }.hero h1{font-size:clamp(3.1rem,17vw,5rem);}
  .hero-visual{min-height:400px;}.terminal-window{width:92%;top:20px;}.terminal-body{min-height:270px;padding:17px;}.server-rack{width:120px;top:70px;}.server-unit{height:42px;padding:0 8px}.server-unit span{width:38px}.cloud-lock{transform:scale(.7);transform-origin:right bottom;}
  .section-heading-row,.contact-box,.site-footer{flex-direction:column;align-items:flex-start;}.section-note{max-width:none;}.projects-grid,.about-grid,.tech-grid{grid-template-columns:1fr;}.project-featured{grid-column:auto;}.project-preview,.project-featured .project-preview{height:235px;}
  .infrastructure-panel{padding:28px 20px;}.infra-flow{grid-template-columns:1fr;}.contact-box{padding:32px 24px;}.contact-actions{align-items:flex-start;}.site-footer{padding-bottom:28px;}
}

/* === Futurystyczny interfejs inspirowany klasycznymi konsolami science-fiction === */
:root {
  --bg:#030306;
  --bg-soft:#090910;
  --surface:rgba(14,14,22,.88);
  --surface-strong:#16141d;
  --line:rgba(255,180,112,.22);
  --text:#f8f3ef;
  --muted:#b9b1bd;
  --primary:#f09a4a;
  --primary-2:#d76bd8;
  --green:#6fd6c1;
  --lcars-orange:#f3a04d;
  --lcars-peach:#f2b89a;
  --lcars-purple:#b978d6;
  --lcars-blue:#79b9ef;
  --lcars-red:#d7656f;
  --radius:18px;
  --shadow:0 26px 80px rgba(0,0,0,.58);
}
body {
  background:#030306;
  font-family:"Inter",sans-serif;
}
body::before {
  background:
    linear-gradient(90deg,transparent 0 49.8%,rgba(255,255,255,.018) 50%,transparent 50.2%),
    linear-gradient(transparent 0 49.8%,rgba(255,255,255,.014) 50%,transparent 50.2%);
  background-size:110px 110px;
  mask-image:linear-gradient(to bottom,black,transparent 88%);
}
#tech-bg { opacity:1; }
.lcars-frame { position:fixed; inset:88px 16px 16px; z-index:-1; pointer-events:none; border-left:18px solid rgba(243,160,77,.72); border-bottom:8px solid rgba(121,185,239,.55); border-radius:38px 0 0 38px; opacity:.7; }
.lcars-frame::before { content:""; position:absolute; left:-18px; top:0; width:18px; height:22%; background:var(--lcars-purple); border-radius:18px 0 0 18px; }
.lcars-frame::after { content:""; position:absolute; left:-18px; bottom:18%; width:18px; height:13%; background:var(--lcars-peach); }
.lcars-frame span { position:absolute; bottom:-8px; height:8px; border-radius:8px; }
.lcars-frame span:nth-child(1){left:8%;width:18%;background:var(--lcars-orange)}
.lcars-frame span:nth-child(2){left:28%;width:10%;background:var(--lcars-purple)}
.lcars-frame span:nth-child(3){left:40%;width:24%;background:var(--lcars-peach)}
.lcars-frame span:nth-child(4){right:3%;width:26%;background:var(--lcars-blue)}
.site-header { min-height:78px; background:rgba(3,3,6,.82); border-bottom:0; }
.site-header::after { content:""; position:absolute; left:max(24px,calc((100vw - 1180px)/2)); right:max(24px,calc((100vw - 1180px)/2)); bottom:0; height:7px; border-radius:0 18px 18px 0; background:linear-gradient(90deg,var(--lcars-orange) 0 22%,transparent 22% 23%,var(--lcars-purple) 23% 36%,transparent 36% 37%,var(--lcars-peach) 37% 70%,transparent 70% 71%,var(--lcars-blue) 71%); }
.brand { text-transform:uppercase; letter-spacing:.08em; font-size:.82rem; }
.brand-mark { display:grid; place-items:center; width:42px; height:26px; border-radius:14px 4px 4px 14px; background:var(--lcars-orange); color:#120d0b; font:800 .75rem "JetBrains Mono",monospace; }
.main-nav { gap:8px; font:600 .72rem "JetBrains Mono",monospace; text-transform:uppercase; }
.main-nav a { padding:8px 13px; border-radius:12px 4px 4px 12px; background:rgba(255,255,255,.035); }
.main-nav a:nth-child(2n){background:rgba(185,120,214,.16)}
.main-nav a:hover { background:var(--lcars-orange); color:#120d0b; }
.main-nav a::after { display:none; }
.section { position:relative; }
.section::before { content:""; position:absolute; left:0; top:82px; width:68px; height:7px; border-radius:8px; background:var(--lcars-purple); box-shadow:78px 0 0 var(--lcars-orange),132px 0 0 var(--lcars-peach); opacity:.9; }
.hero { min-height:calc(100vh - 78px); padding-top:70px; }
.eyebrow,.section-kicker { color:var(--lcars-orange); font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.eyebrow span { color:#08070a; background:var(--lcars-peach); padding:4px 9px; border-radius:10px 3px 3px 10px; margin-right:8px; }
.hero h1 { margin:22px 0 20px; max-width:720px; font-size:clamp(2.55rem,5vw,4.65rem); line-height:1; letter-spacing:-.045em; }
.hero-lead span { background:linear-gradient(90deg,var(--lcars-orange),var(--lcars-purple),var(--lcars-blue)); -webkit-background-clip:text; color:transparent; }
.hero-description { max-width:610px; }
.button { border-radius:22px 6px 6px 22px; min-width:170px; text-transform:uppercase; letter-spacing:.06em; font:800 .76rem "JetBrains Mono",monospace; }
.button-primary { color:#150e09; background:var(--lcars-orange); box-shadow:0 14px 38px rgba(240,154,74,.22); }
.button-secondary { color:#160e18; border:0; background:var(--lcars-purple); }
.hero-meta span,.tag-list span { border:0; border-radius:12px 3px 3px 12px; color:#100c0f; background:var(--lcars-peach); font-weight:700; }
.hero-meta span:nth-child(2n),.tag-list span:nth-child(2n){background:var(--lcars-blue)}
.hero-meta span:nth-child(3n),.tag-list span:nth-child(3n){background:var(--lcars-purple)}
.hero-visual { min-height:520px; }
.glow-one { background:rgba(240,154,74,.16); }
.glow-two { background:rgba(185,120,214,.14); }
.terminal-window { border:2px solid rgba(242,184,154,.3); border-radius:34px 8px 8px 34px; background:linear-gradient(145deg,rgba(18,15,22,.98),rgba(5,5,9,.96)); }
.terminal-topbar { color:#0d090d; background:linear-gradient(90deg,var(--lcars-orange) 0 32%,var(--lcars-peach) 32% 66%,var(--lcars-purple) 66%); border:0; font-weight:800; }
.window-dots span { background:#1a1212; }
.code-blue{color:var(--lcars-blue)} .code-yellow{color:var(--lcars-orange)} .code-green{color:var(--green)}
.cursor { background:var(--lcars-orange); }
.server-rack { border:2px solid rgba(121,185,239,.28); border-radius:28px 8px 8px 28px; background:linear-gradient(180deg,#16121d,#08070c); }
.server-unit { border-radius:15px 4px 4px 15px; border:0; background:#100e15; }
.server-unit span { background:linear-gradient(90deg,var(--lcars-orange),var(--lcars-purple)); }
.server-unit i:nth-last-child(1){background:var(--lcars-blue)}
.cloud-shape { border-color:var(--lcars-blue); background:rgba(23,22,37,.82); }
.cloud-shape::before,.cloud-shape::after { border-color:var(--lcars-blue); background:#151522; }
.lock-body { border-color:var(--lcars-orange); background:linear-gradient(180deg,#3a2116,#130d0a); box-shadow:0 0 26px rgba(240,154,74,.4); }
.lock-body::before { border-color:var(--lcars-orange); }
.lock-body span { background:var(--lcars-peach); }
.section-heading h2,.infra-copy h2,.contact-box h2 { letter-spacing:-.035em; }
.about-card,.tech-card,.project-card,.infrastructure-panel,.contact-box { border:1px solid rgba(242,184,154,.18); border-radius:30px 8px 8px 30px; background:linear-gradient(145deg,rgba(20,17,25,.88),rgba(7,7,11,.84)); }
.about-card:hover,.tech-card:hover,.project-card:hover { border-color:rgba(240,154,74,.55); background:linear-gradient(145deg,rgba(33,24,31,.94),rgba(9,8,13,.9)); }
.card-number,.flow-node span { color:var(--lcars-orange); }
.project-label { border-radius:12px 3px 3px 12px; background:var(--lcars-purple); color:#100b12; font-weight:800; }
.safefoto-preview,.config-preview { background:radial-gradient(circle at 70% 20%,rgba(185,120,214,.2),transparent 34%),linear-gradient(145deg,#17111c,#07070a); }
.preview-button { background:var(--lcars-orange); }
.infrastructure-panel { box-shadow:var(--shadow); }
.flow-node { border:0; border-radius:22px 5px 5px 22px; background:rgba(255,255,255,.035); }
.flow-line { height:5px; background:linear-gradient(90deg,var(--lcars-orange),var(--lcars-purple)); }
.contact-box { background:radial-gradient(circle at 82% 20%,rgba(121,185,239,.13),transparent 34%),rgba(15,13,19,.9); }
.site-footer { border-top:7px solid var(--lcars-orange); }
@media (max-width:760px){
  .lcars-frame{inset:80px 6px 8px;border-left-width:7px;opacity:.45}
  .site-header::after{left:14px;right:14px}
  .hero h1{font-size:clamp(2.35rem,12vw,3.8rem)}
  .main-nav{background:rgba(3,3,6,.98)}
  .main-nav a{width:100%}
  .section::before{top:58px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
}

/* === Rozbudowa portfolio: animacje, drawer LCARS, demo panelu i asystent rezerwacji === */
.button-compact { min-height:44px; padding:0 16px; font-size:.84rem; }

@keyframes driftXSlow {
  0%,100% { transform:perspective(1200px) rotateY(-7deg) rotateX(2deg) translateX(0); }
  50% { transform:perspective(1200px) rotateY(-7deg) rotateX(2deg) translateX(18px); }
}
@keyframes driftXReverse {
  0%,100% { transform:perspective(900px) rotateY(-10deg) translateX(0); }
  50% { transform:perspective(900px) rotateY(-10deg) translateX(-16px); }
}
@keyframes driftXFloat {
  0%,100% { transform:translateX(0) translateY(0); }
  50% { transform:translateX(14px) translateY(-6px); }
}
@keyframes driftXFast {
  0%,100% { transform:translateX(0); }
  50% { transform:translateX(-14px); }
}

.drift-x-slow { animation:driftXSlow 8s ease-in-out infinite; }
.drift-x-reverse { animation:driftXReverse 7.5s ease-in-out infinite; }
.drift-x-float { animation:driftXFloat 7s ease-in-out infinite; }
.drift-x-fast { animation:driftXFast 6.3s ease-in-out infinite; }

.lcars-drawer {
  position:fixed;
  top:132px;
  right:-232px;
  z-index:55;
  width:290px;
  display:flex;
  transition:right .32s ease;
}
.lcars-drawer:hover,
.lcars-drawer:focus-within { right:0; }
.lcars-drawer-handle {
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  border-radius:18px 0 0 18px;
  background:linear-gradient(180deg,var(--lcars-orange),var(--lcars-purple));
  color:#120d0b;
  font:700 .74rem "JetBrains Mono", monospace;
  letter-spacing:.12em;
  padding:18px 10px;
  box-shadow:0 12px 32px rgba(0,0,0,.3);
}
.lcars-drawer-body {
  min-height:216px;
  padding:18px 18px 18px 20px;
  border:1px solid rgba(242,184,154,.2);
  border-left:0;
  border-radius:0 18px 18px 0;
  background:linear-gradient(145deg,rgba(27,20,26,.95),rgba(8,8,12,.96));
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:232px;
}
.lcars-drawer-title {
  margin:0 0 6px;
  color:var(--lcars-peach);
  font:700 .72rem "JetBrains Mono", monospace;
  text-transform:uppercase;
  letter-spacing:.12em;
}
.lcars-drawer-body a {
  padding:10px 12px;
  border-radius:12px 4px 4px 12px;
  background:rgba(255,255,255,.04);
  font:600 .78rem "JetBrains Mono", monospace;
  text-transform:uppercase;
  transition:transform .2s ease, background .2s ease;
}
.lcars-drawer-body a:hover { background:rgba(243,160,77,.18); transform:translateX(-3px); }

.floating-auth-card {
  position:absolute;
  left:28px;
  bottom:18px;
  width:248px;
  border:1px solid rgba(242,184,154,.25);
  border-radius:22px 8px 8px 22px;
  background:linear-gradient(145deg,rgba(23,18,28,.94),rgba(8,8,12,.95));
  box-shadow:var(--shadow);
  overflow:hidden;
}
.floating-auth-head {
  padding:14px 16px 10px;
  border-bottom:1px solid rgba(242,184,154,.12);
}
.floating-auth-head strong,
.floating-auth-head span { display:block; }
.floating-auth-head strong { font-size:.96rem; }
.floating-auth-head span { color:var(--muted); font-size:.73rem; }
.floating-auth-body {
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:14px 16px 16px;
}
.floating-auth-body label,
.demo-form label { font:600 .72rem "JetBrains Mono", monospace; color:#d9cfcb; }
.fake-input,
.demo-form input {
  width:100%;
  min-height:44px;
  padding:0 14px;
  border:1px solid rgba(242,184,154,.15);
  border-radius:12px;
  background:rgba(255,255,255,.03);
  color:var(--text);
}
.demo-form input {
  font-family:"Inter", sans-serif;
  outline:none;
}
.demo-form input:focus { border-color:rgba(243,160,77,.55); box-shadow:0 0 0 3px rgba(243,160,77,.1); }
.floating-auth-status {
  margin:2px 0 0;
  color:#8cc9e9;
  font-size:.75rem;
}

.skills-panel {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.skills-column {
  padding:30px;
  border:1px solid rgba(242,184,154,.18);
  border-radius:28px 8px 8px 28px;
  background:linear-gradient(145deg,rgba(20,17,25,.88),rgba(7,7,11,.84));
}
.skills-column h3 { margin:0 0 18px; font-size:1.28rem; }
.strength-list {
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:14px;
}
.strength-list li {
  position:relative;
  padding-left:20px;
  color:var(--muted);
}
.strength-list li::before {
  content:"";
  position:absolute;
  left:0;
  top:10px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:linear-gradient(180deg,var(--lcars-orange),var(--lcars-blue));
}
.metric-list {
  display:grid;
  gap:12px;
}
.metric-card {
  padding:16px 18px;
  border:1px solid rgba(242,184,154,.12);
  border-radius:18px 6px 6px 18px;
  background:rgba(255,255,255,.025);
}
.metric-card strong,
.metric-card span { display:block; }
.metric-card strong { margin-bottom:6px; font-size:.95rem; }
.metric-card span { color:var(--muted); font-size:.88rem; }

.systems-preview {
  background:radial-gradient(circle at 20% 20%,rgba(217,107,216,.18),transparent 30%),linear-gradient(145deg,#151018,#08080d);
}
.systems-ui {
  width:84%;
  display:grid;
  gap:14px;
}
.systems-card {
  height:66px;
  border:1px solid rgba(242,184,154,.18);
  border-radius:16px 6px 6px 16px;
  background:linear-gradient(90deg,rgba(243,160,77,.22),rgba(121,185,239,.1));
  position:relative;
  overflow:hidden;
}
.systems-card::before,
.systems-card::after {
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
}
.systems-card::before { top:16px; height:8px; }
.systems-card::after { top:34px; height:6px; width:52%; }
.systems-card.small { height:54px; }
.systems-card.slim { height:40px; }

.demo-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.demo-panel {
  padding:28px;
  border:1px solid rgba(242,184,154,.18);
  border-radius:30px 8px 8px 30px;
  background:linear-gradient(145deg,rgba(20,17,25,.88),rgba(7,7,11,.84));
}
.demo-panel-head {
  margin-bottom:18px;
}
.demo-panel-head span,
.assistant-chat-head span { font:700 .72rem "JetBrains Mono", monospace; color:var(--lcars-orange); letter-spacing:.12em; }
.demo-panel-head strong,
.assistant-chat-head strong { display:block; margin-top:8px; font-size:1.18rem; }
.demo-form {
  display:grid;
  gap:10px;
}
.demo-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:10px;
}
.checkbox-row {
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:8px;
  color:var(--muted);
  font-size:.9rem;
}
.checkbox-row input {
  width:18px;
  height:18px;
  margin-top:2px;
  accent-color:var(--lcars-orange);
}
.demo-note {
  margin:8px 0 0;
  color:#9db6d0;
  font-size:.83rem;
}
.demo-output {
  margin-top:12px;
  padding:14px 16px;
  border:1px solid rgba(111,214,193,.18);
  border-radius:16px 6px 6px 16px;
  background:rgba(111,214,193,.06);
}
.demo-output strong,
.demo-output span { display:block; }
.demo-output span { margin-top:4px; color:var(--muted); font-size:.86rem; }

.assistant-panel {
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:18px;
  align-items:stretch;
}
.assistant-copy,
.assistant-chat {
  padding:30px;
  border:1px solid rgba(242,184,154,.18);
  border-radius:30px 8px 8px 30px;
  background:linear-gradient(145deg,rgba(20,17,25,.88),rgba(7,7,11,.84));
}
.assistant-copy h2 { margin:10px 0 18px; font-size:clamp(2rem,4.2vw,3.5rem); line-height:1.05; }
.assistant-copy p { color:var(--muted); }
.assistant-points {
  margin:20px 0 0;
  padding-left:18px;
  color:var(--muted);
}
.assistant-points li + li { margin-top:8px; }
.assistant-actions { margin-bottom:0; }
.assistant-chat {
  display:flex;
  flex-direction:column;
  gap:14px;
}
.assistant-chat-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:8px;
  border-bottom:1px solid rgba(242,184,154,.1);
}
.assistant-chat-head span:last-child {
  color:#8edec6;
  letter-spacing:0;
}
.assistant-bubble {
  max-width:88%;
  padding:14px 16px;
  border-radius:16px;
  line-height:1.5;
}
.assistant-bubble-bot {
  background:rgba(121,185,239,.1);
  border:1px solid rgba(121,185,239,.15);
}
.assistant-bubble-user {
  align-self:flex-end;
  background:rgba(243,160,77,.12);
  border:1px solid rgba(243,160,77,.18);
}
.assistant-choices,
.assistant-time-slots {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.assistant-choices button,
.assistant-time-slots span {
  min-height:40px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(242,184,154,.16);
  background:rgba(255,255,255,.03);
  color:var(--text);
  font:600 .8rem "JetBrains Mono", monospace;
}
.assistant-choices button { cursor:pointer; }

@media (max-width: 1180px) {
  .lcars-drawer { top:110px; }
  .floating-auth-card { width:230px; left:16px; }
}

@media (max-width: 980px) {
  .skills-panel,
  .demo-grid,
  .assistant-panel { grid-template-columns:1fr; }
}

@media (max-width: 760px) {
  .lcars-drawer { display:none; }
  .hero-visual { min-height:620px; }
  .floating-auth-card {
    position:relative;
    left:auto;
    bottom:auto;
    width:100%;
    margin-top:16px;
  }
  .demo-panel,
  .skills-column,
  .assistant-copy,
  .assistant-chat { padding:22px; }
  .demo-actions { flex-direction:column; }
}

@media (prefers-reduced-motion: reduce) {
  .drift-x-slow,
  .drift-x-reverse,
  .drift-x-float,
  .drift-x-fast { animation:none !important; }
  .button,
  .lcars-drawer,
  .lcars-drawer-body a { transition:none !important; }
}

/* === Korekta ruchu hero, profile zawodowe i trzy profile wyświetlania === */
.hero-visual {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  perspective: 1200px;
}
.hero-visual .terminal-window,
.hero-visual .server-rack,
.hero-visual .cloud-lock {
  transition:transform .35s ease;
  will-change:transform;
}
.hero-visual .terminal-window.hero-tilt {
  transform:perspective(1200px) rotateX(var(--tilt-x)) rotateY(calc(-7deg + var(--tilt-y)));
}
.hero-visual .server-rack.hero-tilt-secondary {
  transform:perspective(900px) rotateX(calc(var(--tilt-x) * .55)) rotateY(calc(-10deg + var(--tilt-y) * .55));
}
.hero-visual .cloud-lock.hero-tilt-tertiary {
  transform:translate3d(calc(var(--tilt-y) * 1.4), calc(var(--tilt-x) * -1.1), 0);
}
body.motion-off .hero-visual .terminal-window,
body.motion-off .hero-visual .server-rack,
body.motion-off .hero-visual .cloud-lock {
  transition:none;
  transform:none !important;
}

.display-drawer {
  position:fixed;
  top:188px;
  left:-238px;
  z-index:58;
  width:292px;
  display:flex;
  flex-direction:row-reverse;
  transition:left .32s ease;
}
.display-drawer.open,
.display-drawer:hover,
.display-drawer:focus-within { left:0; }
.display-drawer-handle {
  writing-mode:vertical-rl;
  border:0;
  border-radius:0 18px 18px 0;
  background:linear-gradient(180deg,var(--lcars-blue),var(--lcars-peach));
  color:#111019;
  font:800 .72rem "JetBrains Mono", monospace;
  letter-spacing:.12em;
  padding:17px 10px;
  cursor:pointer;
  box-shadow:0 12px 32px rgba(0,0,0,.28);
}
.display-drawer-body {
  min-width:238px;
  padding:18px;
  border:1px solid rgba(242,184,154,.22);
  border-right:0;
  border-radius:18px 0 0 18px;
  background:linear-gradient(145deg,rgba(26,21,28,.97),rgba(7,7,11,.98));
  display:flex;
  flex-direction:column;
  gap:10px;
  box-shadow:0 18px 50px rgba(0,0,0,.3);
}
.display-drawer-title {
  margin:0 0 5px;
  color:var(--lcars-peach);
  font:700 .72rem "JetBrains Mono", monospace;
  text-transform:uppercase;
  letter-spacing:.12em;
}
.theme-option,
.motion-toggle {
  width:100%;
  min-height:42px;
  border:1px solid rgba(242,184,154,.14);
  border-radius:6px 15px 15px 6px;
  background:rgba(255,255,255,.035);
  color:var(--text);
  text-align:left;
  padding:0 13px;
  cursor:pointer;
  font:600 .76rem "JetBrains Mono", monospace;
}
.theme-option:hover,
.theme-option.active,
.motion-toggle:hover {
  border-color:rgba(243,160,77,.48);
  background:rgba(243,160,77,.14);
}

.career-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.career-card {
  min-height:300px;
  padding:28px;
  border:1px solid rgba(242,184,154,.18);
  border-radius:30px 8px 8px 30px;
  background:linear-gradient(145deg,rgba(20,17,25,.88),rgba(7,7,11,.84));
  transition:transform .25s ease,border-color .25s ease;
}
.career-card:hover { transform:translateY(-6px); border-color:rgba(240,154,74,.55); }
.career-code { color:var(--lcars-blue); font:700 .73rem "JetBrains Mono",monospace; letter-spacing:.12em; }
.career-card h3 { margin:52px 0 12px; font-size:1.35rem; }
.career-card p { color:var(--muted); }

/* Jasny profil: pełne przełączenie całej strony */
body[data-theme="light"] {
  --bg:#eef2f7;
  --bg-soft:#ffffff;
  --surface:rgba(255,255,255,.9);
  --surface-strong:#ffffff;
  --line:rgba(50,64,92,.16);
  --text:#182033;
  --muted:#59657b;
  --primary:#315caa;
  --primary-2:#5c3f95;
  --green:#247c69;
  --lcars-orange:#d87824;
  --lcars-peach:#e8a57f;
  --lcars-purple:#7f55a2;
  --lcars-blue:#3677af;
  --lcars-red:#b54856;
  background:
    radial-gradient(circle at 85% 10%,rgba(79,119,179,.12),transparent 28%),
    radial-gradient(circle at 10% 40%,rgba(216,120,36,.08),transparent 25%),
    #eef2f7;
  color:var(--text);
}
body[data-theme="light"]::before { opacity:.35; }
body[data-theme="light"] .site-header {
  background:rgba(244,247,251,.88);
  color:#182033;
}
body[data-theme="light"] .main-nav { color:#39465d; }
body[data-theme="light"] .main-nav a,
body[data-theme="light"] .hero-meta span,
body[data-theme="light"] .tag-list span { color:#3d4960; }
body[data-theme="light"] .terminal-window,
body[data-theme="light"] .server-rack,
body[data-theme="light"] .about-card,
body[data-theme="light"] .tech-card,
body[data-theme="light"] .project-card,
body[data-theme="light"] .skills-column,
body[data-theme="light"] .career-card,
body[data-theme="light"] .demo-panel,
body[data-theme="light"] .assistant-copy,
body[data-theme="light"] .assistant-chat,
body[data-theme="light"] .infrastructure-panel,
body[data-theme="light"] .contact-box {
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(236,241,247,.93));
  color:#182033;
  box-shadow:0 20px 60px rgba(41,53,78,.12);
}
body[data-theme="light"] .terminal-body { color:#344057; }
body[data-theme="light"] .terminal-topbar { color:#58667c; }
body[data-theme="light"] .server-unit { background:#e7edf5; }
body[data-theme="light"] .display-drawer-body,
body[data-theme="light"] .lcars-drawer-body { background:rgba(255,255,255,.98); color:#182033; }
body[data-theme="light"] .theme-option,
body[data-theme="light"] .motion-toggle { color:#182033; background:rgba(48,78,126,.05); }
body[data-theme="light"] .demo-form input,
body[data-theme="light"] .fake-input { background:#fff; color:#182033; }
body[data-theme="light"] #tech-bg { opacity:.18; }

/* Profil terminalowy */
body[data-theme="terminal"] {
  --bg:#020b07;
  --bg-soft:#05120c;
  --surface:rgba(4,18,11,.9);
  --surface-strong:#071b11;
  --line:rgba(90,255,164,.18);
  --text:#d8ffe7;
  --muted:#8db79c;
  --primary:#2ebd72;
  --primary-2:#77e6a8;
  --green:#5aff9e;
  --lcars-orange:#59e092;
  --lcars-peach:#9be8ba;
  --lcars-purple:#4aa874;
  --lcars-blue:#6cdca2;
  --lcars-red:#e38282;
  background:#020b07;
  font-family:"JetBrains Mono",monospace;
}
body[data-theme="terminal"] .site-header,
body[data-theme="terminal"] .display-drawer-body,
body[data-theme="terminal"] .lcars-drawer-body { background:rgba(2,11,7,.94); }
body[data-theme="terminal"] .about-card,
body[data-theme="terminal"] .tech-card,
body[data-theme="terminal"] .project-card,
body[data-theme="terminal"] .skills-column,
body[data-theme="terminal"] .career-card,
body[data-theme="terminal"] .demo-panel,
body[data-theme="terminal"] .assistant-copy,
body[data-theme="terminal"] .assistant-chat,
body[data-theme="terminal"] .infrastructure-panel,
body[data-theme="terminal"] .contact-box,
body[data-theme="terminal"] .terminal-window {
  background:linear-gradient(145deg,rgba(5,24,14,.94),rgba(1,10,6,.94));
  border-color:rgba(90,255,164,.22);
}
body[data-theme="terminal"] .button-primary { background:linear-gradient(135deg,#197c47,#2ebd72); }
body[data-theme="terminal"] #tech-bg { opacity:.55; }

@media (max-width:980px) {
  .career-grid { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  .display-drawer { top:104px; left:-238px; }
  .display-drawer.open { left:0; }
}

/* === Projekty: prawdziwe miniatury i równe karty === */
.projects-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
}
.project-card,
.project-card.project-featured {
  display:flex;
  flex-direction:column;
  height:100%;
  grid-column:auto;
}
.project-preview,
.project-featured .project-preview {
  height:260px;
  min-height:260px;
  width:100%;
}
.project-content {
  display:flex;
  flex-direction:column;
  flex:1;
}
.project-content > p { flex:1; }
.project-content .tag-list { margin-top:auto; }
.website-preview {
  position:relative;
  display:block;
  overflow:hidden;
  background:#08080d;
}
.website-preview img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
  transition:transform .35s ease,filter .35s ease;
}
.website-preview::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top,rgba(3,3,6,.82),transparent 58%);
  opacity:.25;
  transition:opacity .3s ease;
}
.website-preview-overlay {
  position:absolute;
  left:18px;
  right:18px;
  bottom:16px;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 14px;
  border:1px solid rgba(242,184,154,.22);
  border-radius:14px 5px 5px 14px;
  background:rgba(8,8,12,.88);
  color:#fff;
  font:600 .78rem "JetBrains Mono",monospace;
  opacity:0;
  transform:translateY(8px);
  transition:opacity .3s ease,transform .3s ease;
}
.website-preview:hover img { transform:scale(1.035); filter:brightness(.82); }
.website-preview:hover::after { opacity:.75; }
.website-preview:hover .website-preview-overlay { opacity:1; transform:none; }
.website-preview-overlay b { color:var(--lcars-orange); font-size:1rem; }

@media (max-width:980px) {
  .projects-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:760px) {
  .projects-grid { grid-template-columns:1fr; }
  .project-preview,
  .project-featured .project-preview { height:235px; min-height:235px; }
  .website-preview-overlay { opacity:1; transform:none; }
}

/* === Mocniejszy efekt lotu wyłącznie dla motywu LCARS / ciemnego === */
body[data-theme="lcars"] {
  background:
    radial-gradient(circle at 78% 14%, rgba(243,160,77,.12), transparent 18%),
    radial-gradient(circle at 18% 22%, rgba(185,120,214,.12), transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(121,185,239,.05), transparent 42%),
    linear-gradient(180deg, #060309 0%, #020204 42%, #010102 100%);
}

body[data-theme="lcars"]::before {
  opacity:.88;
  background:
    linear-gradient(90deg,transparent 0 49.75%,rgba(255,255,255,.024) 50%,transparent 50.25%),
    linear-gradient(transparent 0 49.75%,rgba(255,255,255,.018) 50%,transparent 50.25%);
  background-size:96px 96px;
}

body[data-theme="lcars"] #tech-bg {
  opacity:1;
  filter:saturate(1.1) contrast(1.08);
}

body[data-theme="lcars"] .lcars-frame {
  opacity:.92;
  border-left:20px solid rgba(243,160,77,.82);
  border-bottom:9px solid rgba(121,185,239,.7);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03),0 0 48px rgba(243,160,77,.08);
}

body[data-theme="lcars"] .site-header {
  background:rgba(2,2,5,.9);
  box-shadow:0 10px 36px rgba(0,0,0,.28);
}

@media (max-width:760px) {
  body[data-theme="lcars"]::before { background-size:70px 70px; }
}


/* === Poprawka mobilna: bez zmian w widoku desktopowym === */
@media (max-width: 760px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    min-height: 74px;
    padding: 0 18px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand span:last-child {
    max-width: calc(100vw - 132px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .82rem;
    letter-spacing: .055em;
  }

  .brand-mark {
    flex: 0 0 auto;
  }

  .main-nav {
    top: 74px;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }

  .lcars-frame,
  body[data-theme="lcars"] .lcars-frame {
    inset: 80px 4px 6px;
    border-left-width: 5px;
    border-bottom-width: 5px;
    border-radius: 22px 0 0 22px;
    opacity: .34;
  }

  .lcars-frame::before,
  .lcars-frame::after {
    left: -5px;
    width: 5px;
  }

  .lcars-frame span {
    bottom: -5px;
    height: 5px;
  }

  .section {
    width: calc(100% - 32px);
    padding: 68px 0;
  }

  .section::before {
    top: 40px;
    left: 0;
    width: 42px;
    height: 5px;
    box-shadow:
      50px 0 0 var(--lcars-orange),
      92px 0 0 var(--lcars-peach);
  }

  .hero {
    display: block;
    min-height: auto;
    padding-top: 54px;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
  }

  .eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: .72rem;
    letter-spacing: .09em;
  }

  .eyebrow span {
    margin-right: 0;
  }

  .hero h1 {
    max-width: 100%;
    margin: 20px 0 18px;
    font-size: clamp(2.5rem, 12.3vw, 3.55rem);
    line-height: 1.02;
    letter-spacing: -.05em;
    overflow-wrap: anywhere;
  }

  .hero-lead {
    font-size: 1.18rem;
    line-height: 1.45;
  }

  .hero-description {
    max-width: 100%;
    font-size: .98rem;
    line-height: 1.75;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 12px;
    margin: 28px 0 22px;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 0 16px;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
  }

  .hero-meta {
    gap: 8px;
  }

  .hero-meta span {
    max-width: 100%;
    padding: 6px 9px;
    font-size: .67rem;
  }

  .hero-visual {
    min-height: 0;
    margin-top: 44px;
    perspective: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .hero-visual .glow-orb {
    opacity: .42;
  }

  .hero-visual .terminal-window,
  .hero-visual .terminal-window.hero-tilt {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none !important;
    animation: none !important;
    border-radius: 24px 7px 7px 24px;
  }

  .terminal-topbar {
    min-height: 48px;
    height: auto;
    gap: 10px;
    padding: 10px 14px;
    font-size: .61rem;
  }

  .terminal-body {
    min-height: 0;
    padding: 18px 15px 22px;
    font-size: clamp(.62rem, 2.65vw, .78rem);
    line-height: 1.7;
    overflow-x: auto;
  }

  .indent {
    padding-left: 14px;
  }

  .indent-2 {
    padding-left: 28px;
  }

  .server-rack,
  .hero-visual .server-rack.hero-tilt-secondary {
    position: relative;
    inset: auto;
    align-self: flex-end;
    width: min(48%, 170px);
    margin-top: -78px;
    margin-right: -4px;
    transform: none !important;
    animation: none !important;
    z-index: 3;
  }

  .server-unit {
    height: 44px;
    margin: 7px 0;
  }

  .cloud-lock,
  .hero-visual .cloud-lock.hero-tilt-tertiary {
    position: relative;
    inset: auto;
    align-self: center;
    width: 210px;
    height: 150px;
    margin-top: 10px;
    transform: scale(.84) !important;
    transform-origin: center;
    animation: none !important;
  }

  .floating-auth-card {
    position: relative;
    inset: auto;
    width: 100%;
    margin: 0;
    animation: none !important;
  }

  .display-drawer {
    top: auto;
    left: auto;
    right: 14px;
    bottom: 14px;
    width: auto;
    z-index: 80;
    display: block;
  }

  .display-drawer:hover,
  .display-drawer:focus-within {
    left: auto;
  }

  .display-drawer-handle {
    writing-mode: horizontal-tb;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.42);
  }

  .display-drawer-body {
    display: none;
    position: absolute;
    right: 0;
    bottom: 56px;
    width: min(292px, calc(100vw - 28px));
    min-width: 0;
    max-height: 65vh;
    overflow-y: auto;
    border-radius: 18px 18px 6px 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.52);
  }

  .display-drawer.open .display-drawer-body {
    display: block;
  }

  .display-drawer.open {
    left: auto;
  }

  .lcars-drawer {
    display: none;
  }

  .projects-grid,
  .about-grid,
  .tech-grid,
  .skills-panel,
  .demo-grid,
  .assistant-panel,
  .career-grid {
    grid-template-columns: 1fr;
  }

  .project-preview,
  .project-featured .project-preview {
    min-height: 210px;
    height: 210px;
  }

  .contact-box,
  .site-footer {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: clamp(2.25rem, 11.8vw, 3rem);
  }

  .brand span:last-child {
    font-size: .74rem;
  }

  .terminal-body {
    font-size: .6rem;
  }

  .server-rack {
    width: 46%;
  }
}

/* Aktywny formularz kontaktowy */
.contact-box { align-items:stretch; }
.contact-copy { flex:0 1 420px; }
.contact-email { display:inline-block; margin-top:18px; color:#f0a05a; font:700 .9rem "JetBrains Mono",monospace; }
.contact-form { flex:1 1 560px; display:flex; flex-direction:column; gap:15px; }
.contact-form-row { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.contact-form label { display:flex; flex-direction:column; gap:7px; color:#d9cfcb; font:600 .72rem "JetBrains Mono",monospace; }
.contact-form input,.contact-form textarea { width:100%; border:1px solid rgba(242,184,154,.18); border-radius:12px; background:rgba(255,255,255,.035); color:var(--text); padding:13px 14px; font:400 .92rem "Inter",sans-serif; outline:none; }
.contact-form input { min-height:48px; }
.contact-form textarea { min-height:145px; resize:vertical; }
.contact-form input:focus,.contact-form textarea:focus { border-color:rgba(243,160,77,.62); box-shadow:0 0 0 3px rgba(243,160,77,.1); }
.contact-submit-row { display:flex; align-items:center; gap:18px; }
.contact-submit-row .button:disabled { opacity:.65; cursor:wait; transform:none; }
.contact-status { margin:0; color:var(--muted); font-size:.8rem; line-height:1.45; }
.contact-status.success { color:#82d9a4; }
.contact-status.error { color:#ff9c9c; }
.contact-honeypot { position:absolute!important; left:-9999px!important; width:1px!important; height:1px!important; overflow:hidden!important; }
body[data-theme="light"] .contact-form input,body[data-theme="light"] .contact-form textarea { background:rgba(255,255,255,.75); color:#182033; border-color:rgba(40,52,82,.2); }
body[data-theme="terminal"] .contact-email { color:#67e59a; }
@media (max-width:980px) { .contact-form { width:100%; } }
@media (max-width:640px) { .contact-form-row { grid-template-columns:1fr; } .contact-submit-row { align-items:flex-start; flex-direction:column; } .contact-submit-row .button { width:100%; } }

/* Zgoda w formularzu kontaktowym */
.contact-form .contact-consent {
  display:grid;
  grid-template-columns:20px 1fr;
  align-items:start;
  gap:10px;
  color:var(--muted);
  font:400 .78rem/1.5 "Inter",sans-serif;
  cursor:pointer;
}
.contact-form .contact-consent input {
  width:18px;
  min-height:18px;
  height:18px;
  margin:2px 0 0;
  padding:0;
  accent-color:#f0a05a;
}
.contact-form .contact-consent span { display:block; }
