:root {
  color-scheme: dark;
  --base: #070b13;
  --panel: #0d1420;
  --ink: #f0f6ff;
  --muted: #a8b7cc;
  --line: #24364b;
  --accent: #8cf0fa;
  --focus: #acefff;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --display: "Space Grotesk", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body { margin: 0; color: var(--ink); background: var(--base); font: 16px/1.65 var(--body); }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .28em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
.shell { width: min(1216px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 12px; transform: translateY(-200%); z-index: 50; background: var(--ink); color: var(--base); padding: .6rem 1rem; }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  inset: 0 0 auto;
  z-index: 20;
  background: #070b13ed;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #29435b85;
}
.header-inner { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; font: 760 21px/1 var(--display); letter-spacing: -.025em; white-space: nowrap; }
.brand-space { display: inline-block; width: 6px; }
.brand-mark { width: 30px; height: 30px; display: inline-grid; place-items: center; position: relative; border: 1px solid #538392; border-radius: 9px; transform: rotate(-9deg); }
.brand-mark i { width: 4px; border-radius: 5px; position: absolute; height: 10px; background: var(--accent); }
.brand-mark i:first-child { left: 7px; height: 7px; transform: translateY(2px); }
.brand-mark i:last-child { right: 7px; height: 14px; transform: translateY(-1px); }
.desktop-nav { display: flex; align-items: center; gap: clamp(17px, 2.4vw, 34px); }
.desktop-nav a, .mobile-nav nav a { color: #c4d0e0; text-decoration: none; font-size: .88rem; font-weight: 550; }
.desktop-nav a:hover, .mobile-nav nav a:hover { color: var(--accent); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.languages { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; }
.languages a { padding: 4px 8px; min-width: 34px; text-align: center; border-radius: 5px; color: var(--muted); text-decoration: none; font: 600 .73rem/1.6 var(--mono); }
.languages a[aria-current="page"] { background: #183244; color: var(--accent); }
.languages a:hover { color: var(--accent); }
.mobile-nav { display: none; }
.mobile-nav summary { list-style: none; width: 36px; height: 36px; display: grid; align-content: center; justify-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 8px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { width: 15px; height: 1px; background: var(--ink); }
.mobile-nav nav { position: absolute; inset: 100% 0 auto; background: #0b1422; border-bottom: 1px solid var(--line); display: grid; }
.mobile-nav nav a { padding: 14px 24px; border-top: 1px solid #233345; }

.hero { isolation: isolate; position: relative; overflow: hidden; display: grid; align-items: center; min-height: clamp(630px, 78svh, 845px); }
.hero-art { position: absolute; inset: 0 0 0 auto; width: min(100%, 1600px); height: 100%; object-fit: cover; object-position: 57% 50%; z-index: -3; }
.hero::before { position: absolute; content: ""; inset: 0; z-index: -2; background: linear-gradient(90deg, #070b13 0%, #070b13f5 10%, #070b13c7 34%, #070b134d 58%, #070b1310 95%); }
.hero::after { position: absolute; content: ""; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--base) 0%, transparent 35%); }
.hero-inner { padding-block: 72px 90px; }
.eyebrow { color: var(--accent); font: 620 .73rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .15em; }
.hero-location { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 29px; border: 1px solid #466374a6; border-radius: 100px; background: #0715238c; }
.hero-location span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #8cf0fa9c; }
h1, h2, h3 { font-family: var(--display); }
h1 { font-size: clamp(3.45rem, 6.7vw, 7rem); line-height: .98; font-weight: 760; letter-spacing: -.069em; text-wrap: balance; max-width: 870px; }
:lang(pl) h1 { font-size: clamp(3rem, 5.45vw, 5.85rem); max-width: 820px; }
.hero-intro { margin-top: 27px; max-width: 36rem; color: #c4d2e5; font-size: clamp(1rem, 1.55vw, 1.2rem); }
.hero-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
.button { display: inline-flex; gap: 17px; align-items: center; justify-content: center; padding: .8rem 1.1rem; min-height: 47px; text-decoration: none; border-radius: 7px; border: 1px solid transparent; font-size: .9rem; line-height: 1.35; font-weight: 720; }
.primary { color: #061421; background: var(--accent); }
.primary:hover { background: #b4f7ff; }
.primary:disabled { opacity: .7; cursor: progress; }
.button span, .text-link span { font-size: 1.2em; line-height: .9; }
.text-link { color: var(--ink); text-decoration: none; font-size: .91rem; font-weight: 620; }
.text-link span { color: var(--accent); margin-left: 8px; }
.text-link:hover { color: var(--accent); }

.section { padding-block: clamp(76px, 9.5vw, 128px); border-top: 1px solid var(--line); position: relative; }
.section-heading { max-width: 700px; }
.section-heading .eyebrow { margin-bottom: 16px; }
h2 { font-size: clamp(2.15rem, 4.6vw, 4.2rem); line-height: 1.02; font-weight: 740; letter-spacing: -.055em; text-wrap: balance; }
.intro { color: var(--muted); margin-top: 20px; max-width: 640px; font-size: clamp(1rem, 1.25vw, 1.08rem); }
h3 { font-weight: 690; line-height: 1.2; letter-spacing: -.02em; font-size: clamp(1.1rem, 1.6vw, 1.31rem); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); align-items: start; gap: clamp(40px, 7vw, 105px); }

.research { background: radial-gradient(ellipse at 100% -10%, #14253c 0%, transparent 54%), #0a111c; }
.research-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 43px; }
.research-card { min-height: 208px; background: linear-gradient(142deg,#13243a9c,#0b1725a6); padding: 25px 20px 24px; border: 1px solid #29435b; border-radius: 12px; }
.research-card p, .consulting-list p, .workflow p, .steps p { margin-top: 9px; color: var(--muted); font-size: .91rem; }
.research-symbol { display: block; width: 31px; height: 31px; margin-bottom: 18px; color: var(--accent); position: relative; }
.research-symbol::before, .research-symbol::after { content: ""; position: absolute; }
.symbol-1 { background: radial-gradient(circle, var(--accent) 1.2px, transparent 2px) 0 0/8px 8px; }
.symbol-2 { border: 1px solid var(--accent); border-radius: 50%; }
.symbol-2::before { inset: 6px; border: 1px solid var(--accent); border-radius: 50%; }
.symbol-2::after { inset: 12px; border-radius: 50%; background: var(--accent); }
.symbol-3 { border: 1px solid #8cf0fa83; border-radius: 5px; }
.symbol-3::before { width: 18px; height: 10px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-44deg); left: 6px; top: 7px; }
.symbol-4::before { width: 10px; height: 17px; border: 1px solid var(--accent); bottom: 0; left: 2px; }
.symbol-4::after { width: 10px; height: 26px; background: #8cf0fa49; border: 1px solid var(--accent); bottom: 0; left: 17px; }

.consulting { background: linear-gradient(145deg,#101d31 0%,#0b1422 57%,#0b1525 100%); }
.consulting-list { border-top: 1px solid #3d5d77; }
.consulting-list li { display: grid; grid-template-columns: 32px 1fr; gap: 13px; padding: 21px 0; border-bottom: 1px solid #3d5d7770; }
.list-mark { color: var(--accent); font-size: 1.1rem; line-height: 1.4; }
.consulting-list p { max-width: 500px; }

.development { background: radial-gradient(ellipse at 75% 70%, #16334d67, transparent 54%), #080e19; }
.workflow {
  position: relative;
  padding: 16px;
  border: 1px solid #2d4a63;
  border-radius: 15px;
  background: linear-gradient(#102034ed,#0d1929ed), repeating-linear-gradient(90deg,#3b5266 0 1px,transparent 1px 32px);
}
.workflow li { display: grid; grid-template-columns: 45px 1fr; gap: 16px; align-items: center; padding: 16px 13px; }
.workflow li + li { border-top: 1px solid #2a435c; }
.workflow-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; gap: 3px; background: #102c40; border: 1px solid #32556a; border-radius: 9px; }
.workflow-icon i { width: 5px; height: 9px; border-radius: 2px; background: var(--accent); }
.workflow-icon-2 i:nth-child(2) { height: 17px; }
.workflow-icon-3 i:first-child { height: 6px; }
.workflow-icon-3 i:nth-child(2) { height: 11px; }
.workflow-icon-3 i:last-child { height: 18px; }
.workflow p { margin-top: 5px; }

.approach { background: #0c1422; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 38px; }
.steps li { border-top: 1px solid #45718a; padding: 19px 14px 0 0; }
.step-number { display: inline-block; margin-bottom: 13px; color: var(--accent); font: 640 .76rem/1 var(--mono); }
.steps p { max-width: 230px; }

.contact { background: radial-gradient(ellipse at 0% 100%, #17314c77, transparent 55%), #080e18; }
.contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 86px); }
.contact-email { display: inline-flex; gap: 10px; align-items: center; margin-top: 28px; color: var(--accent); font-weight: 660; overflow-wrap: anywhere; }
.contact-email:hover { color: #d2fbff; }
.inquiry-form { padding: clamp(20px, 3vw, 31px); position: relative; border: 1px solid #35536d; border-radius: 14px; background: #111e30; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.inquiry-form label { color: #e2ecf9; font-size: .87rem; font-weight: 580; display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.inquiry-form input, .inquiry-form textarea, .inquiry-form select {
  width: 100%; min-width: 0; color: var(--ink); background: #0a1422; border: 1px solid #3a536c; border-radius: 6px; padding: 9px 11px; min-height: 43px;
}
.inquiry-form select:invalid { color: #a9b6c9; }
.inquiry-form textarea { resize: vertical; }
.trap { position: absolute; clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: .81rem; margin: 0 0 16px; }
.form-note a { color: var(--accent); }
.form-status { color: #bac9db; font-size: .88rem; margin-top: 10px; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: #ffb7bd; }
.form-status[data-state="success"] { color: #a1f2d4; }

.site-footer { padding-block: 43px 23px; border-top: 1px solid var(--line); background: #070c15; color: var(--muted); font-size: .83rem; }
.site-footer .brand { color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 26px; }
.legal-name { color: #d4e1ef; font-weight: 640; margin-top: 14px; }
address { font-style: normal; }
.footer-label { color: var(--ink); font-weight: 680; margin-bottom: 8px; }
.registry dl { display: flex; flex-wrap: wrap; gap: 8px 19px; margin-bottom: 8px; }
.registry dl div { display: flex; gap: 6px; }
.registry dt { font-weight: 620; color: #cfdcec; }
.privacy { border-top: 1px solid var(--line); padding-top: 13px; }
.privacy summary { width: fit-content; color: #b9d4e8; }
.privacy div { max-width: 870px; margin-top: 12px; }
.privacy p + p { margin-top: 9px; }
.confirmation { min-height: 100svh; display: grid; place-content: center; padding-block: 50px; }
.confirmation p { margin-top: 1rem; }
.confirmation a { color: var(--accent); }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 64px); }
  .header-inner { gap: 15px; }
  .desktop-nav { gap: 15px; }
  .desktop-nav a { font-size: .79rem; }
  .research-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .research-card { min-height: 170px; }
}
@media (max-width: 800px) {
  :root { --header: 62px; }
  .shell { width: calc(100% - 44px); }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .hero { min-height: 620px; }
  .hero-inner { padding-block: 95px 66px; }
  .hero-art { width: 100%; object-position: 57% 30%; opacity: .8; }
  .hero::before { background: linear-gradient(90deg, #070b13f7, #070b13c0 45%, #070b1352 100%); }
  .hero::after { background: linear-gradient(0deg, var(--base), #070b1330 57%, transparent 85%); }
  h1 { text-wrap: initial; }
  .split { gap: 33px; }
  .contact-grid, .split { grid-template-columns: minmax(0,1fr); }
  .steps { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
}
@media (max-width: 485px) {
  .shell { width: calc(100% - 34px); }
  .header-inner { gap: 7px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand-mark { width: 27px; height: 27px; }
  .hero { min-height: 650px; align-items: end; }
  .hero-inner { padding-block: 156px 54px; }
  .hero-art { height: 70%; object-position: 69% 38%; }
  .hero::before { background: linear-gradient(90deg, #070b139e, #070b1340 65%, #070b1325); }
  .hero::after { background: linear-gradient(0deg, var(--base) 12%, #070b13ed 34%, #070b1380 55%, transparent 95%); }
  h1 { font-size: clamp(2.8rem, 10.5vw, 3.7rem); }
  :lang(pl) h1 { font-size: clamp(2.35rem, 9vw, 3.1rem); }
  .hero-location { margin-bottom: 20px; font-size: .64rem; }
  .hero-intro { margin-top: 21px; }
  .hero-links { gap: 15px 21px; margin-top: 25px; }
  .section { padding-block: 63px; }
  .research-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
  .research-card { min-height: auto; padding: 19px 17px; }
  .research-symbol { margin-bottom: 12px; }
  .workflow li { padding-inline: 4px; gap: 12px; }
  .steps { margin-top: 25px; gap: 21px 15px; }
  .form-row, .footer-grid { grid-template-columns: minmax(0,1fr); }
  .form-row { gap: 0; }
  .footer-grid { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
