  /* Inter hostowany lokalnie (SIL OFL 1.1) — bez przekazywania IP odwiedzających do Google */
  @font-face {
    font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
  }
  @font-face {
    font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
  }
  :root {
    /* Paleta z karty identyfikacji wizualnej M3 */
    --navy: #0C1D31;
    --blue: #1F6FEB;
    --blue-hover: #185CC8;
    --blue-light: #5596F1;
    --blue-text: #6EABF7;
    --bg: #E9EEF3;
    --white: #FFFFFF;
    --muted: #94A3B8;
    --ink: #0C1D31;
    --ink-soft: #52637B;
    --line: #DCE3EB;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --gutter: clamp(16px, 4vw, 56px);
    --max: 1240px;
    --radius: 10px;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: #F7F9FB;
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  img { display: block; max-width: 100%; height: auto; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 4px; }
  .wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
  .skip { position: absolute; left: -9999px; }
  .skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 6px; }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 0 26px;
    font: inherit; font-size: 0.975rem; font-weight: 600;
    text-decoration: none; border-radius: 8px;
    transition: background-color .2s, box-shadow .2s, transform .2s, color .2s;
  }
  .btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 24px -10px rgba(31,111,235,.8); }
  .btn-blue:hover { background: var(--blue-hover); transform: translateY(-1px); }
  .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; background: rgba(255,255,255,.06); }

  /* ---------- Nagłówek ---------- */
  .top { position: absolute; inset: 0 0 auto 0; z-index: 10; color: #fff; }
  .top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .brand img { width: 52px; height: 52px; object-fit: contain; }
  .brand span { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; white-space: nowrap; }
  .brand b { color: var(--blue-light); font-weight: 800; }
  .nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); font-size: 0.95rem; font-weight: 500; }
  .nav a:not(.btn) { text-decoration: none; opacity: .88; transition: opacity .2s; }
  .nav a:not(.btn):hover { opacity: 1; }
  .nav .btn { min-height: 42px; padding: 0 22px; }

  /* Przełącznik języka — natywne <details>, działa bez JS i z klawiatury */
  .lang { position: relative; }
  .lang summary {
    list-style: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 42px; padding: 0 12px; border-radius: 8px;
    font-weight: 600; font-size: 0.875rem; letter-spacing: 0.02em;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
    transition: box-shadow .2s, background-color .2s;
  }
  .lang summary::-webkit-details-marker { display: none; }
  .lang summary:hover, .lang[open] summary { box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); background: rgba(255,255,255,.06); }
  .lang summary svg { width: 18px; height: 18px; }
  .lang ul {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
    min-width: 176px; margin: 0; padding: 6px; list-style: none;
    background: #fff; border-radius: 10px;
    box-shadow: 0 20px 48px -12px rgba(5,14,28,.55), 0 0 0 1px rgba(12,29,49,.06);
  }
  .lang a {
    display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 6px;
    color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  }
  .lang a:hover { background: var(--bg); }
  /* Flaga mniejsza niż wysokość liter (proporcja 3:2) */
  .lang .flag { flex: none; width: 0.95em; height: 0.64em; border-radius: 1px; box-shadow: 0 0 0 1px rgba(12,29,49,.14); }
  .lang a[aria-current="page"] { color: var(--blue); font-weight: 700; background: #EEF4FE; }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    min-height: max(680px, 100svh);
    background:
      radial-gradient(900px 520px at 70% 18%, rgba(85,150,241,.22) 0%, rgba(12,29,49,0) 60%),
      linear-gradient(180deg, #0A1828 0%, var(--navy) 55%, #0E2036 100%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
  }
  .hero canvas {
    position: absolute; z-index: -3;
    top: -4%; right: -30vw;
    width: min(1500px, 120vw); aspect-ratio: 1;
  }
  .hero::after {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background: linear-gradient(90deg, rgba(10,24,40,.92) 0%, rgba(10,24,40,.55) 38%, rgba(10,24,40,0) 62%);
    pointer-events: none;
  }
  .hero .wrap {
    min-height: inherit;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: 130px; padding-bottom: 56px;
  }
  .hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 5.6vw, 4.75rem);
    font-weight: 700; line-height: 1.06; letter-spacing: -0.035em;
  }
  .hero h1 span { display: block; }
  .hero h1 .accent { color: var(--blue-text); }
  .lede { margin: 26px 0 0; max-width: 44ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: #D3DCE8; }
  .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

  .stats { list-style: none; margin: clamp(56px, 8vh, 96px) 0 0; padding: 0; display: flex; flex-wrap: wrap; }
  .stats li { padding: 0 clamp(24px, 3.4vw, 44px); }
  .stats li:first-child { padding-left: 0; }
  .stats li + li { border-left: 1px solid rgba(255,255,255,.22); }
  .stats .k { display: block; font-size: 0.875rem; color: #C3CEDD; }
  .stats .v { display: block; font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin: 4px 0 2px; }
  .stats .u { display: block; font-size: 0.875rem; color: #C3CEDD; }

  /* Wejście: glob odsłania się w canvas, treść hero łagodnie się pojawia */
  .js .hero .wrap > * { opacity: 0; transform: translateY(14px); }
  .ready .hero .wrap > * { opacity: 1; transform: none; transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
  .ready .hero .wrap > :nth-child(2) { transition-delay: .12s; }
  .ready .hero .wrap > :nth-child(3) { transition-delay: .24s; }
  .ready .hero .wrap > :nth-child(4) { transition-delay: .5s; }

  /* ---------- Sekcje ---------- */
  section { scroll-margin-top: 16px; }
  .block { padding: clamp(80px, 10vw, 128px) 0; }
  .center { text-align: center; }
  .eyebrow { margin: 0 0 14px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
  .h2 { margin: 0; font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
  .sub { margin: 16px auto 0; max-width: 56ch; font-size: 1.125rem; color: var(--ink-soft); }
  .section-head { margin-bottom: clamp(44px, 5vw, 64px); }

  /* Rozwiązania — karty z ikonami */
  .cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 28px 34px;
    text-align: center;
    transition: border-color .2s, box-shadow .2s;
  }
  .card:hover { border-color: #BCD0EA; box-shadow: 0 18px 40px -24px rgba(12,29,49,.35); }
  .card svg { width: 56px; height: 56px; color: var(--blue); margin: 0 auto 20px; display: block; }
  .card h3 { margin: 0 0 10px; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
  .card p { margin: 0; color: var(--ink-soft); font-size: 0.975rem; }

  /* Materiały */
  .materials-sec { background: var(--bg); }
  .mats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .mat { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
  .mat .tex { height: 168px; }
  .tex-steel {
    background:
      linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.32) 46%, rgba(255,255,255,0) 62%),
      repeating-linear-gradient(90deg, #5a6576 0 1px, #687385 1px 3px, #616c7d 3px 4px);
  }
  .tex-alu {
    background:
      linear-gradient(120deg, rgba(255,255,255,0) 25%, rgba(255,255,255,.6) 44%, rgba(255,255,255,0) 60%),
      repeating-linear-gradient(0deg, #c2c9d3 0 1px, #d2d8e0 1px 2px, #c9d0d9 2px 4px);
  }
  .tex-tarp {
    background:
      linear-gradient(160deg, rgba(255,255,255,.16), rgba(0,0,0,.22)),
      repeating-linear-gradient(45deg, rgba(0,0,0,.16) 0 2px, transparent 2px 6px),
      repeating-linear-gradient(-45deg, rgba(255,255,255,.08) 0 2px, transparent 2px 6px),
      #1C4C9C;
  }
  .mat .body { padding: 28px 28px 30px; }
  .mat h3 { margin: 0 0 10px; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
  .mat p { margin: 0 0 18px; color: var(--ink-soft); font-size: 0.975rem; }
  .mat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.95rem; }
  .mat li { display: flex; gap: 10px; align-items: baseline; }
  .mat li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); transform: translateY(-2px); }

  /* Branże */
  .industries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .ind { display: flex; gap: 20px; padding: 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
  .ind svg { flex: none; width: 44px; height: 44px; color: var(--blue); }
  .ind h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
  .ind p { margin: 0; color: var(--ink-soft); font-size: 0.975rem; }

  /* O nas — proces jest faktyczną sekwencją, stąd numeracja */
  .about { background: var(--navy); color: #fff; }
  .about .eyebrow { color: var(--muted); }
  .about .sub { color: #B6C3D4; }
  .steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: s; position: relative; }
  .steps::before { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 2px; background: linear-gradient(90deg, var(--blue), rgba(85,150,241,.25)); }
  .steps li { position: relative; counter-increment: s; }
  .steps li::before {
    content: counter(s);
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    background: var(--navy); box-shadow: inset 0 0 0 2px var(--blue-light);
    font-weight: 700; color: #fff; margin-bottom: 22px; position: relative;
  }
  .steps li:first-child::before { background: var(--blue); box-shadow: none; }
  .steps h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 700; }
  .steps p { margin: 0; color: #B6C3D4; font-size: 0.95rem; }

  /* Kontakt */
  .contact .panel {
    display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 48px;
    background: var(--white); border: 1px solid var(--line); border-radius: 16px;
    padding: clamp(32px, 5vw, 64px);
  }
  .contact .h2 { margin-bottom: 16px; }
  .contact p { margin: 0 0 30px; color: var(--ink-soft); max-width: 46ch; }
  .contact .actions { margin-top: 0; }
  .contact .btn-outline { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
  .contact .btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
  .contact .logo { width: min(380px, 100%); justify-self: center; }

  footer { background: var(--navy); color: var(--muted); font-size: 0.9rem; }
  footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
  footer .brand img { width: 36px; height: 36px; }
  footer .brand span { color: #fff; font-size: 1rem; }

  /* ---------- Responsywność ---------- */
  @media (max-width: 1040px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .mats { grid-template-columns: 1fr; }
    .mat { flex-direction: row; }
    .mat .tex { height: auto; width: 34%; flex: none; }
    .steps { grid-template-columns: 1fr; gap: 28px; }
    .steps::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue), rgba(85,150,241,.25)); }
    .steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; }
    .steps li::before { grid-row: span 2; margin: 0; }
  }
  @media (max-width: 1100px) {
    .nav > a:not(.btn) { display: none; }
  }
  @media (max-width: 760px) {
    .hero canvas { right: -70vw; top: -4%; width: 170vw; }
    .hero::after { background: linear-gradient(180deg, rgba(10,24,40,.35) 0%, rgba(10,24,40,.85) 55%, rgba(10,24,40,.6) 100%); }
    .stats .v { font-size: 1.75rem; }
    .cards, .industries { grid-template-columns: 1fr; }
    .mat { flex-direction: column; }
    .mat .tex { width: auto; height: 120px; }
    .contact .panel { grid-template-columns: 1fr; }
    .contact .logo { width: min(260px, 80%); }
  }
  @media (max-width: 480px) {
    .brand span { font-size: 1.05rem; }
    .top .wrap { gap: 10px; }
    .brand img { width: 40px; height: 40px; }
    .nav { gap: 8px; }
    .nav .btn { padding: 0 14px; }
    .stats li, .stats li + li { padding: 0 14px; }
    .stats li:first-child { padding-left: 0; }
    .stats .k { display: none; }
  }
  @media (max-width: 400px) {
    .top .brand span { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .hero .wrap > * { opacity: 1; transform: none; }
    .ready * { transition: none !important; }
  }

  /* Chiński: Inter nie ma znaków CJK — systemowe kroje, bez ujemnego światła liter */
  :lang(zh) body { font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif; }
  :lang(zh) .hero h1, :lang(zh) .h2, :lang(zh) h3 { letter-spacing: 0; }
  :lang(zh) .hero h1 { line-height: 1.18; }
  :lang(zh) .eyebrow { letter-spacing: 0.1em; }
