/* Szczepan Zieliński IT Solutions — one stylesheet for both language versions. */

:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --ink: #0b1b33;
  --muted: #52617a;
  --line: #dde5f0;
  --brand: #1d4ed8;
  --brand-strong: #1e3a8a;
  --brand-soft: #e9f0fe;
  --hero-a: #081730;
  --hero-b: #123a78;
  --hero-ink: #f3f7ff;
  --hero-muted: #b4c6e6;
  --radius: 14px;
  --wrap: 1080px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09111f;
    --surface: #101b2e;
    --ink: #e9eff9;
    --muted: #9dacc4;
    --line: #213049;
    --brand: #7aa7ff;
    --brand-strong: #a9c5ff;
    --brand-soft: #15274a;
    --hero-a: #060e1c;
    --hero-b: #0f2f63;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
}

.skip:focus {
  left: 8px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0b1f44, #1d4ed8);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-sub {
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 15px;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
}

.lang a,
.lang span {
  padding: 6px 12px;
  color: var(--muted);
}

.lang a:hover {
  color: var(--ink);
  text-decoration: none;
  background: var(--brand-soft);
}

.lang [aria-current="true"] {
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 700;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--hero-ink);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(59, 130, 246, 0.38), transparent 70%),
    linear-gradient(160deg, var(--hero-a) 0%, var(--hero-b) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  padding-top: 92px;
  padding-bottom: 56px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hero-muted);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.hero-role {
  margin-top: 14px;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 500;
  color: #9cc0ff;
}

.hero-lead {
  margin-top: 22px;
  max-width: 660px;
  font-size: 1.125rem;
  color: var(--hero-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-light {
  background: #fff;
  color: #0b1f44;
}

.btn-light:hover {
  background: #e6eeff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 68px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.fact-num {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.fact-label {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--hero-muted);
}

/* ---------- Sections ---------- */

section {
  scroll-margin-top: 72px;
}

.section {
  padding: 84px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.section h2 {
  margin-top: 10px;
  font-size: clamp(1.7rem, 3.4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
}

.icon svg {
  width: 22px;
  height: 22px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
}

.tags li {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Experience ---------- */

.timeline {
  border-top: 1px solid var(--line);
}

.timeline > li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.when {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--brand);
}

.timeline h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.org {
  color: var(--muted);
  font-weight: 500;
}

.timeline p {
  margin-top: 8px;
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
}

.bullets {
  margin-top: 12px;
  max-width: 720px;
}

.bullets li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 16px;
}

.bullets li + li {
  margin-top: 6px;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.7;
}

.edu {
  margin-top: 24px;
  color: var(--muted);
  font-size: 15.5px;
}

.edu strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Projects ---------- */

.card-feature {
  grid-column: 1 / -1;
  background:
    radial-gradient(520px 240px at 100% 0%, rgba(59, 130, 246, 0.14), transparent 70%),
    var(--surface);
}

.card-feature p {
  max-width: 760px;
}

.badge {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card .note {
  margin-top: 12px;
  font-size: 14px;
}

.card .more {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Certifications ---------- */

.issuer {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.cert h3 {
  margin-top: 10px;
}

.cert .year {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.also {
  margin-top: 24px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- Contact ---------- */

.contact {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: 56px;
  border-radius: 20px;
  color: var(--hero-ink);
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(59, 130, 246, 0.4), transparent 70%),
    linear-gradient(160deg, var(--hero-a), var(--hero-b));
}

.contact-panel .kicker {
  color: #9cc0ff;
}

.contact-panel h2 {
  margin-top: 10px;
  font-size: clamp(1.7rem, 3.4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.contact-panel p {
  margin-top: 14px;
  max-width: 600px;
  color: var(--hero-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline > li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .brand-sub {
    display: none;
  }

  .hero .wrap {
    padding-top: 60px;
    padding-bottom: 44px;
  }

  .facts {
    margin-top: 48px;
    gap: 22px 18px;
  }

  .section,
  .contact {
    padding: 60px 0;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px;
  }

  .contact-panel {
    padding: 32px 22px;
    border-radius: 16px;
  }

  .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media print {
  .site-header {
    position: static;
  }
}
